Skip to main content
Home▸ Forums▸ 68kMLA▸ Keyspan USB-serial is hackable! — #2
Post #2 by Gorgonops
Source Forum68kMLA
CategoryHardware
Post DateThu, 24 Jan 2013 - 17:41
Original URLhttps://68kmla.org/bb/threads/keyspan-usb-serial-is-hackable.27113/
Post
Interesting. Somewhere in a junk box I might have one of the "USA-19" models, the irritating "PDA Adapter". (So named because it doesn't have handshaking signals on the serial port, apparently PalmPilots didn't need them.) If I stumble across it I'll be sure to toss it into the "assorted microcontroller crud I never find time to play with" drawer. As for "suggested uses", well, by adding a little circuitry you get, depending on the exact version of the adapter, a few pins that can be configured as either inputs or outputs, a little CPU, and, assuming you put the code in to do it, the ability to transfer packets over USB to a host computer. You can blink some lights, watch for some switch to be thrown, and depending on how you code it you can have those transactions entirely handled by the 8051 or communicate with the host computer and let it chew on it. I guess you also have the UART so you could in theory program the device to watch for serial input and rather than simply stuff it into USB packets analyze it and act on it independently.

(You could, for instance, wire the serial lines to one of those weather stations that output via serial and have the dongle use one of the remaining I/O lines to throw a switch that closes your motorized patio umbrella when the weather station reports wind speeds in excess 10 miles per hour. Presumably if you powered the dongle from its own 5v source instead of having it draw from the host USB port it would be able to do this independently once the program was loaded even if you unplugged the computer.)

On the flip side platforms like Arduino are so cheap these days it's sort of hard to suggest that hacking an *old* Keyspan adapter is a productive use of time. (That page was written in 2000, when that wasn't necessarily true.) Anything you could do with the spare I/O pins on that Keyspan Arduino could do better and it'll be *much* easier to program.

mp.ls