Virtual COM port on Linux
dave at thesmithfam.org
Mon Mar 15 11:40:12 MDT 2010
Byron Clark wrote:
> On Tue, Feb 23, 2010 at 09:04:18AM -0700, Dave Smith wrote:
>> Has anyone gotten a USB device that requires "Virtual COM Port" support
>> to work in Linux? I'm considering employing this relay to perform a
>> nightly reboot of my pile-of-junk Comcast cable modem.
> It looks like it uses the FTDI chip so it should work fine with any
> 2.6.x kernel.
The part arrived today and after a few minutes of hacking, it works
beautifully. I didn't have to install or configure anything for
/dev/ttyUSB0 to appear. And now I have a very simple python script that
can turn the relay on:
for byte in [0xff, 0x01, 0x00]:
(Is there a one-liner to do this?)
I wired the relay such that when the USB connection is lost, the power
stays on. It works wonderfully.
Thanks for the help all.
More information about the PLUG