[Coco] Socat drivewire relay to CoCo1

jon bird news at onastick.clara.co.uk
Mon Mar 2 14:26:15 EST 2015


In article 
<CAArsGaYnWOKtfJ-smUsyBvGTeBaOhnfa72+ELM7TsN7-fhk0Qw at mail.gmail.com>, 
Tormod Volden <lists.tormod at gmail.com> writes

[...]

>I have quite some experience with USB-serial chips from developing the
>Dragon DriveWire adapters. I evaluated PL2303 but found them less
>reliable when used with DLOAD and DriveWire. I have also read
>something about these chips being pirated on large scale and giving
>Profilic undeserved bad reputation. I do have some PL2303-based
>adapters at work that are running 24/24 for years so they cannot all
>be bad. FTDI adapters sometimes have extra functionality but IMO are
>overprized for simple USB-serial conversion, and the driver situation
>is complex (many versions, trouble on Mac, non-free drivers on Linux,
>etc). All my adapters are using Silicon Labs CP210x chips. As far as I
>(and meanwhile many users!) can see they work 100% reliably with
>DriveWire, and the drivers are straight-forward on all platforms.
>
>+1 on Gene's comment, although my knowledge of this probably
>originated from him anyway :) . If you replace the op-amp you might be
>able to use the "CoCo 2" software and configuration.

Thanks for the info. As I mentioned yesterday, I've purloined another 
USB serial adaptor, this one has an FTDI chipset in it. Unfortunately I 
get near enough identical results as with the Prolific one, a consistent 
checksum failure by the CoCo on reading the first sector. I also today 
managed to get the ROM I needed programming up in order to get my CoCo2 
working as well so I've given that a go with the same setup (serial port 
at 56700 this time). Identical results with this as well.

I've also added some debug from the 'socat' redirector to capture the 
exchange at that level - here is the o/p from 3 successive DIR calls:

  d2 00 00 01 42
  ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 
ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 
ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 
ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 
ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 
ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 
ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 
ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 
ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 
ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 
ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
  f9 f7
  f3
  d2 00 00 01
  42
  ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 
ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 
ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 
ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 
ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 
ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 
ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 
ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 
ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 
ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 
ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
  f9 f7
  f3
  d2 00 00 01 42
  ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 
ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 
ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 
ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 
ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 
ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 
ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 
ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 
ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 
ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 
ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
  f9
  f7
  f3
  d2 00 00 01
  42
  ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 
ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 
ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 
ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 
ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 
ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 
ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 
ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 
ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 
ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 
ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
  f9 f7
  f3

That checksum of $f9f7 is fairly consistent (although I have seen a few 
instances where it comes back with something completely different). The 
"good" trace I posted yesterday shows the server accepting a checksum of 
$ff00.

Possibly a bit of a random angle but I attempted to compute the checksum 
myself given the algorithm at the back of the Drivewire 3 spec. For a 
buffer set entirely to $ff I get a result of $FE01 which doesn't tally 
up with any of this.

I'm at a bit of a loss now to explain what exactly is causing this.

Rgs,


Jon.
-- 
== jon bird - software engineer
== <reply to address _may_ be invalid, real mail below>
== <reduce rsi, stop using the shift key>
== posted as: news 'at' onastick 'dot' clara.co.uk



More information about the Coco mailing list