I've recently purchased an "HL USB-RS232" adapter, for my ThinkPad. The package says it's Linux compatible, but there's no instructions for Linux (even the Windows instructions are weak). Does anyone know how I might set up this adapter? tnx jk
On Tue, 2005-07-12 at 18:49 -0400, James Knott wrote:
I've recently purchased an "HL USB-RS232" adapter, for my ThinkPad. The package says it's Linux compatible, but there's no instructions for Linux (even the Windows instructions are weak). Does anyone know how I might set up this adapter?
tnx jk
Take a look at dmesg and it should show you which tty port to use. Probably ttyUSB0 would be my guess. -- Ken Schneider UNIX since 1989, linux since 1994, SuSE since 1998 "The day Microsoft makes something that doesn't suck is probably the day they start making vacuum cleaners." -Ernst Jan Plugge
Ken Schneider wrote:
On Tue, 2005-07-12 at 18:49 -0400, James Knott wrote: Take a look at dmesg and it should show you which tty port to use. Probably ttyUSB0 would be my guess.
you might also try "hwinfo --usb" and lsusb to confirm it is being found. I will ask a question now also using "find / -name usb3/3-2/3-2:1.0" # find / -name usb3/3-2/3-2:1.0 find: WARNING: Hard link count is wrong for /proc/1/task: this may be a bug in your filesystem driver. Automatically turning on find's -noleaf option. Earlier results may have failed to include directories that should have been searched. This came from "l /proc/1/task/1" as "root". lrwxrwxrwx 1 root root 0 2005-07-12 18:31 cwd -> / lrwxrwxrwx 1 root root 0 2005-07-12 18:31 root -> / Who is to blame here? SuSE, SuSE's kernel, or find # find --version GNU find version 4.2.19 Features enabled: D_TYPE O_NOFOLLOW(enabled " http://ftp.physics.auth.gr/pub/gnu/findutils/ " does not even show 4.2.19 -- 73 de Donn Washburn Hpage: " http://www.hal-pc.org/~n5xwb " Ham Callsign N5XWB Email: " n5xwb@hal-pc.org " 307 Savoy St. HAMs: " n5xwb@arrl.net " Sugar Land, TX 77478 BMW MOA #: 4146 - Ambassador LL# 1.281.242.3256 " http://counter.li.org " #279316
Donn Washburn wrote:
Ken Schneider wrote:
On Tue, 2005-07-12 at 18:49 -0400, James Knott wrote: Take a look at dmesg and it should show you which tty port to use. Probably ttyUSB0 would be my guess.
you might also try "hwinfo --usb" and lsusb to confirm it is being found.
05: USB 00.0: 0000 Unclassified device [Created at usb.122] Unique ID: FKGF.xp82xpppGKA Parent ID: pBe4.ijinCpfCdXE SysFS ID: /devices/pci0000:00/0000:00:1d.1/usb2/2-1/2-1:1.0 SysFS BusID: 2-1:1.0 Hardware Class: unknown Model: "Cypress USB to Serial" Hotplug: USB Vendor: usb 0x04b4 "Cypress Semiconductor" Device: usb 0x5500 "USB to Serial" Speed: 12 Mbps Config Status: cfg=no, avail=yes, need=no, active=unknown Attached to: #4 (Hub)
Ken Schneider wrote:
On Tue, 2005-07-12 at 18:49 -0400, James Knott wrote:
I've recently purchased an "HL USB-RS232" adapter, for my ThinkPad. The package says it's Linux compatible, but there's no instructions for Linux (even the Windows instructions are weak). Does anyone know how I might set up this adapter?
tnx jk
Take a look at dmesg and it should show you which tty port to use. Probably ttyUSB0 would be my guess.
dmesg shows drivers/usb/serial/usb-serial.c: USB Serial support registered for Generic usbcore: registered new driver usbserial_generic usbcore: registered new driver usbserial drivers/usb/serial/usb-serial.c: USB Serial Driver core v2.0 However, I don't see any reference to ttyUSB.
On Tue, 2005-07-12 at 20:41 -0400, James Knott wrote:
Ken Schneider wrote:
On Tue, 2005-07-12 at 18:49 -0400, James Knott wrote:
I've recently purchased an "HL USB-RS232" adapter, for my ThinkPad. The package says it's Linux compatible, but there's no instructions for Linux (even the Windows instructions are weak). Does anyone know how I might set up this adapter?
tnx jk
Take a look at dmesg and it should show you which tty port to use. Probably ttyUSB0 would be my guess.
dmesg shows drivers/usb/serial/usb-serial.c: USB Serial support registered for Generic usbcore: registered new driver usbserial_generic usbcore: registered new driver usbserial drivers/usb/serial/usb-serial.c: USB Serial Driver core v2.0
However, I don't see any reference to ttyUSB.
The one I own is a Belkin F5U109 and dmesg shows the following when it is plugged in: usb 1-3.1: new full speed USB device using ohci_hcd and address 6 drivers/usb/serial/usb-serial.c: USB Serial support registered for MCT U232 mct_u232 1-3.1:1.0: MCT U232 converter detected usb 1-3.1: MCT U232 converter now attached to ttyUSB0 usbcore: registered new driver mct_u232 drivers/usb/serial/mct_u232.c: Magic Control Technology USB-RS232 converter driver z2.0 Perhaps the one you have is not supported. -- Ken Schneider UNIX since 1989, linux since 1994, SuSE since 1998 "The day Microsoft makes something that doesn't suck is probably the day they start making vacuum cleaners." -Ernst Jan Plugge
James Knott wrote:
Ken Schneider wrote:
On Tue, 2005-07-12 at 18:49 -0400, James Knott wrote:
I've recently purchased an "HL USB-RS232" adapter, for my ThinkPad. The package says it's Linux compatible, but there's no instructions for Linux (even the Windows instructions are weak). Does anyone know how I might set up this adapter?
tnx jk
Take a look at dmesg and it should show you which tty port to use. Probably ttyUSB0 would be my guess.
dmesg shows drivers/usb/serial/usb-serial.c: USB Serial support registered for Generic usbcore: registered new driver usbserial_generic usbcore: registered new driver usbserial drivers/usb/serial/usb-serial.c: USB Serial Driver core v2.0
However, I don't see any reference to ttyUSB.
My dmesg has wrapped around with debug stuff, but "zgrep /var/log/messages*.gz" shows lots of hotplug events mentioning ttyUSB0. May be there is something in /var/log/messages*. Regards Sid. -- Sid Boyce ... Hamradio License G3VBV, Keen licensed Private Pilot Retired IBM Mainframes and Sun Servers Tech Support Specialist Microsoft Windows Free Zone - Linux used for all Computing Tasks
Sid Boyce wrote:
James Knott wrote:
Ken Schneider wrote:
On Tue, 2005-07-12 at 18:49 -0400, James Knott wrote:
I've recently purchased an "HL USB-RS232" adapter, for my ThinkPad. The package says it's Linux compatible, but there's no instructions for Linux (even the Windows instructions are weak). Does anyone know how I might set up this adapter?
tnx jk
Take a look at dmesg and it should show you which tty port to use. Probably ttyUSB0 would be my guess.
dmesg shows drivers/usb/serial/usb-serial.c: USB Serial support registered for Generic usbcore: registered new driver usbserial_generic usbcore: registered new driver usbserial drivers/usb/serial/usb-serial.c: USB Serial Driver core v2.0
However, I don't see any reference to ttyUSB.
My dmesg has wrapped around with debug stuff, but "zgrep /var/log/messages*.gz" shows lots of hotplug events mentioning ttyUSB0. May be there is something in /var/log/messages*. Regards Sid.
I looked there, and didn't find anything. As I mentioned in another note, it doesn't work in XP either, so I'm taking it back. tnx jk
On 13/07/05, James Knott <james.knott@rogers.com> wrote:
I looked there, and didn't find anything. As I mentioned in another note, it doesn't work in XP either, so I'm taking it back.
tnx jk
I had somethig a few days ago that would not work straight off in XP. It did with SuSE :-))))) Sadly not applicable here but it does show that XP is not the be all and end all. I know, we all know it anyway :-) -- Take care. Kevan Farmer 34 Hill Street Cheslyn Hay Staffordshire WS6 7HR
Kevanf1 wrote:
On 13/07/05, James Knott <james.knott@rogers.com> wrote:
I looked there, and didn't find anything. As I mentioned in another note, it doesn't work in XP either, so I'm taking it back.
tnx jk
I had somethig a few days ago that would not work straight off in XP. It did with SuSE :-))))) Sadly not applicable here but it does show that XP is not the be all and end all.
I know, we all know it anyway :-)
I took that adapter back, and bought another one that works in both Linux & XP. However, I had to install drivers for it to work with XP.
Kevanf1 wrote:
I had somethig a few days ago that would not work straight off in XP. It did with SuSE :-))))) Sadly not applicable here but it does show that XP is not the be all and end all.
Oddly enough, I had just this happen on an XP laptop I later installed 9.1Pro on -- I *had* to have a serial port, and this machine has nothing but USB. XP hardware manager recognized the USB->serial port, and added the right drivers, but I could *never* get the associated COM port to open. But on the same machine, under SuSE, it works just fine. Unfortunately, the *software* that needed the serial port is Win-only....
James Knott wrote:
Sid Boyce wrote:
James Knott wrote:
Ken Schneider wrote:
On Tue, 2005-07-12 at 18:49 -0400, James Knott wrote:
I've recently purchased an "HL USB-RS232" adapter, for my ThinkPad. The package says it's Linux compatible, but there's no instructions for Linux (even the Windows instructions are weak). Does anyone know how I might set up this adapter?
tnx jk
Take a look at dmesg and it should show you which tty port to use. Probably ttyUSB0 would be my guess.
dmesg shows drivers/usb/serial/usb-serial.c: USB Serial support registered for Generic usbcore: registered new driver usbserial_generic usbcore: registered new driver usbserial drivers/usb/serial/usb-serial.c: USB Serial Driver core v2.0
However, I don't see any reference to ttyUSB.
My dmesg has wrapped around with debug stuff, but "zgrep /var/log/messages*.gz" shows lots of hotplug events mentioning ttyUSB0. May be there is something in /var/log/messages*. Regards Sid.
I looked there, and didn't find anything. As I mentioned in another note, it doesn't work in XP either, so I'm taking it back.
tnx jk
I'd suggest getting something like the Prolific technology PL2303 that definitely works. It's strange that it is recognised, the correct driver and module are loaded, but it doesn't build a device for it. I think there are some problems still with USB hotplug/udev as I have a PhoneSkype USB phone where the audio side works but the keypad doesn't though it is detected in /sys and /proc, hwinfo on the other hand only detects the usb-audio side. Andrew Morton threw that problem to the USB development group, but I've not had a single reply to that and several updates detailing the problem. Regards Sid. -- Sid Boyce ... Hamradio License G3VBV, Keen licensed Private Pilot Retired IBM Mainframes and Sun Servers Tech Support Specialist Microsoft Windows Free Zone - Linux used for all Computing Tasks
James Knott wrote:
I've recently purchased an "HL USB-RS232" adapter, for my ThinkPad. The package says it's Linux compatible, but there's no instructions for Linux (even the Windows instructions are weak). Does anyone know how I might set up this adapter?
tnx jk
I have a prolific Technology PL2303 serial port for which there is a kernel module pl2303.ko, but I've also got it to work with the usbserial.ko and the USB Gerneric serial driver, see Documentation/usb-serial.txt. The port is registered as /dev/ttyUSB0. I can't see specific support for that adapter in the kernel... SuSE kernel config has the following, so you should only need to "modprobe usbserial" if it's not automatically detected. # USB Serial Converter support CONFIG_USB_SERIAL=m <============ CONFIG_USB_SERIAL_GENERIC=y <========= CONFIG_USB_SERIAL_BELKIN=m CONFIG_USB_SERIAL_WHITEHEAT=m CONFIG_USB_SERIAL_DIGI_ACCELEPORT=m CONFIG_USB_SERIAL_CYPRESS_M8=m CONFIG_USB_SERIAL_EMPEG=m CONFIG_USB_SERIAL_FTDI_SIO=m CONFIG_USB_SERIAL_VISOR=m CONFIG_USB_SERIAL_IPAQ=m CONFIG_USB_SERIAL_IR=m CONFIG_USB_SERIAL_EDGEPORT=m CONFIG_USB_SERIAL_EDGEPORT_TI=m CONFIG_USB_SERIAL_GARMIN=m CONFIG_USB_SERIAL_IPW=m CONFIG_USB_SERIAL_KEYSPAN_PDA=m CONFIG_USB_SERIAL_KEYSPAN=m CONFIG_USB_SERIAL_KEYSPAN_MPR=y CONFIG_USB_SERIAL_KEYSPAN_USA28=y CONFIG_USB_SERIAL_KEYSPAN_USA28X=y CONFIG_USB_SERIAL_KEYSPAN_USA28XA=y CONFIG_USB_SERIAL_KEYSPAN_USA28XB=y CONFIG_USB_SERIAL_KEYSPAN_USA19=y CONFIG_USB_SERIAL_KEYSPAN_USA18X=y CONFIG_USB_SERIAL_KEYSPAN_USA19W=y CONFIG_USB_SERIAL_KEYSPAN_USA19QW=y CONFIG_USB_SERIAL_KEYSPAN_USA19QI=y CONFIG_USB_SERIAL_KEYSPAN_USA49W=y CONFIG_USB_SERIAL_KEYSPAN_USA49WLC=y CONFIG_USB_SERIAL_KLSI=m CONFIG_USB_SERIAL_KOBIL_SCT=m CONFIG_USB_SERIAL_MCT_U232=m CONFIG_USB_SERIAL_PL2303=m CONFIG_USB_SERIAL_SAFE=m CONFIG_USB_SERIAL_SAFE_PADDED=y CONFIG_USB_SERIAL_TI=m CONFIG_USB_SERIAL_CYBERJACK=m CONFIG_USB_SERIAL_XIRCOM=m CONFIG_USB_SERIAL_OMNINET=m CONFIG_USB_EZUSB=y Regards Sid. -- Sid Boyce ... Hamradio License G3VBV, Keen licensed Private Pilot Retired IBM Mainframes and Sun Servers Tech Support Specialist Microsoft Windows Free Zone - Linux used for all Computing Tasks
Sid Boyce wrote:
James Knott wrote:
I've recently purchased an "HL USB-RS232" adapter, for my ThinkPad. The package says it's Linux compatible, but there's no instructions for Linux (even the Windows instructions are weak). Does anyone know how I might set up this adapter?
tnx jk
I have a prolific Technology PL2303 serial port for which there is a kernel module pl2303.ko, but I've also got it to work with the usbserial.ko and the USB Gerneric serial driver, see Documentation/usb-serial.txt. The port is registered as /dev/ttyUSB0. I can't see specific support for that adapter in the kernel... SuSE kernel config has the following, so you should only need to "modprobe usbserial" if it's not automatically detected.
I took the other one back, and got a "StarTech" adapter, with that chipset, that worked immediately in Linux and as soon as I installed the drivers in XP. Funny that. Linux is supposed to be more difficult, but Windows requires installing a driver. ;-) tnx jk
James Knott wrote:
Sid Boyce wrote:
James Knott wrote:
I've recently purchased an "HL USB-RS232" adapter, for my ThinkPad. The package says it's Linux compatible, but there's no instructions for Linux (even the Windows instructions are weak). Does anyone know how I might set up this adapter?
tnx jk
I have a prolific Technology PL2303 serial port for which there is a kernel module pl2303.ko, but I've also got it to work with the usbserial.ko and the USB Gerneric serial driver, see Documentation/usb-serial.txt. The port is registered as /dev/ttyUSB0. I can't see specific support for that adapter in the kernel... SuSE kernel config has the following, so you should only need to "modprobe usbserial" if it's not automatically detected.
I took the other one back, and got a "StarTech" adapter, with that chipset, that worked immediately in Linux and as soon as I installed the drivers in XP. Funny that. Linux is supposed to be more difficult, but Windows requires installing a driver. ;-)
tnx jk
The manufacturers usually have to support their products under Windows, MS wouldn't do that for them. On Linux, the manufacturers in the main don't care, so it's left up to the kernel developers to do the best job they can, sometimes without any product data. Many years ago I had a PCI modem that I never got to work with Windows 95 and the best advice I had from the Linux newsgroups was to sell it and buy a standalone modem. I eventually got it working under Linux and was able to help lots of people get their PCI modems working. With Linux, we have to be "smarter than the average bear". I'm still surprised the original didn't work, bad hardware perhaps. Regards Sid. -- Sid Boyce ... Hamradio License G3VBV, Keen licensed Private Pilot Retired IBM Mainframes and Sun Servers Tech Support Specialist Microsoft Windows Free Zone - Linux used for all Computing Tasks
Sid Boyce wrote:
James Knott wrote:
Sid Boyce wrote:
James Knott wrote:
I've recently purchased an "HL USB-RS232" adapter, for my ThinkPad. The package says it's Linux compatible, but there's no instructions for Linux (even the Windows instructions are weak). Does anyone know how I might set up this adapter?
tnx jk
I have a prolific Technology PL2303 serial port for which there is a kernel module pl2303.ko, but I've also got it to work with the usbserial.ko and the USB Gerneric serial driver, see Documentation/usb-serial.txt. The port is registered as /dev/ttyUSB0. I can't see specific support for that adapter in the kernel... SuSE kernel config has the following, so you should only need to "modprobe usbserial" if it's not automatically detected.
I took the other one back, and got a "StarTech" adapter, with that chipset, that worked immediately in Linux and as soon as I installed the drivers in XP. Funny that. Linux is supposed to be more difficult, but Windows requires installing a driver. ;-)
tnx jk
The manufacturers usually have to support their products under Windows, MS wouldn't do that for them. On Linux, the manufacturers in the main don't care, so it's left up to the kernel developers to do the best job they can, sometimes without any product data. Many years ago I had a PCI modem that I never got to work with Windows 95 and the best advice I had from the Linux newsgroups was to sell it and buy a standalone modem. I eventually got it working under Linux and was able to help lots of people get their PCI modems working. With Linux, we have to be "smarter than the average bear". I'm still surprised the original didn't work, bad hardware perhaps.
More likely bad design or a run of bad hardware. When I took it back, I tried another one and it too failed. The clerk also tried it on his computer and it was still bad. The bad ones had (IIRC), a Cyprus chip set and I have read that they have problems providing sufficient voltage for RS-232.
participants (6)
-
David McMillan
-
Donn Washburn
-
James Knott
-
Ken Schneider
-
Kevanf1
-
Sid Boyce