I bought a USB to serial adapter. Before I attempt communicating to
other computers, I shall first practice by communicating to the same
computer, running Debian Linux 2.6. One end I hook to my computer's
USB port, the other end I hook to my computer's serial port. Let's say
I run getty on ttyS0, but then how do I talk to that from the USB
side? minicom? But to what tty number?
$ echo>/dev/ttyUSB0
bash: /dev/ttyUSB0: No such device
But just moments ago, dmesg:
visor ttyUSB0: Handspring Visor / Palm OS converter now disconnected from ttyUSB0
As for what my device is, dmesg says
usb 1-2.1.1: new low speed USB device using address 6
usbcore: registered new driver hiddev
hiddev96: USB HID v1.00 Device [SemiTech Semiconductor USB to Serial] on usb-0000:00:10.0-2.1.1
usbcore: registered new driver usbhid
drivers/usb/input/hid-core.c: v2.0:USB HID core driver
And lsusb says
Bus 001 Device 006: ID 04b4:5500 Cypress Semiconductor Corp. HID->COM RS232 Adapter
I even do mknod /dev/usb/hiddev0 c 180 96
I even do rmmod usbserial; modprobe usbserial vendor=0x04b4 product=0x5500
If I can one day even figure out how to send a single byte over this
connection, then I will even attempt ppp over this connection.
By the way, can one connect two computers via USB? I notice that would
take a female to female adapter. And of course then what are the tty
numbers, etc.?
|