Author Topic: How to set up serial to USB modem in LXDE  (Read 1298 times)

Offline silverbirch

  • Sr. Member
  • ****
  • Posts: 370
How to set up serial to USB modem in LXDE
« on: September 23, 2010, 06:48:47 PM »
Laptop is dial up with no serial port.  Using serial to USB connector lsusb gives me this:
on the second line -
Bus 001 Device 002:  ID 0403:6001  Future Technology Devices International, Ltd FT 232 USB.  Serial (UART) IC


I assume I need to modify a file somewhere to have it recognised.  Info says recognised as /dev/ttyUSBO but I didn't think to see if that was there.  Am now at home at my own computer.

Many thanks
« Last Edit: September 23, 2010, 06:52:00 PM by silverbirch »
Pclinuxos 2010.1 KDE on AMD Athlon XP (runs as1.8 Ghz), 1 G memory, on board VIA graphics and sound

Offline melodie

  • Hero Member
  • *****
  • Posts: 5942
  • XMMP=Jabber, free instant messaging protocol !
    • PCLinuxOS Fr
Re: How to set up serial to USB modem in LXDE
« Reply #1 on: September 23, 2010, 11:56:57 PM »
Hi,

What to "lsusb" as root and "lspci" give when you connect both "serial to usb" adaptator and the serial modem ?

(first time I see someone who tries to use one of theses adaptors - do you have a link on the web to show your brand and model adaptor ?)
melodie at swissjabber dot ch - IRC #pclinuxos-fr sur freenode

skyhawk

  • Guest
Re: How to set up serial to USB modem in LXDE
« Reply #2 on: September 24, 2010, 08:23:39 AM »
Here is a link providing some basic how-to information:

http://www.linux-usb.org/USB-guide/x356.html

Note that you need to get some vital facts on your hardware first.

Offline melodie

  • Hero Member
  • *****
  • Posts: 5942
  • XMMP=Jabber, free instant messaging protocol !
    • PCLinuxOS Fr
Re: How to set up serial to USB modem in LXDE
« Reply #3 on: September 24, 2010, 08:34:09 AM »
Here is a link providing some basic how-to information:

http://www.linux-usb.org/USB-guide/x356.html

Note that you need to get some vital facts on your hardware first.



Hi,

If he needs to create an udev rule, the informations he found seem to me to be fine: ID 0403:6001
melodie at swissjabber dot ch - IRC #pclinuxos-fr sur freenode

Offline silverbirch

  • Sr. Member
  • ****
  • Posts: 370
Re: How to set up serial to USB modem in LXDE
« Reply #4 on: September 24, 2010, 09:42:22 PM »
Here is a link providing some basic how-to information:

http://www.linux-usb.org/USB-guide/x356.html

Note that you need to get some vital facts on your hardware first.



Hi,

If he needs to create an udev rule, the informations he found seem to me to be fine: ID 0403:6001


I thought the hardware info was listed in my first post.

Unfortunately the link's info is way beyond my understanding.

I will try to get around to the person's place in a day or so and run lspci

Thanks
Pclinuxos 2010.1 KDE on AMD Athlon XP (runs as1.8 Ghz), 1 G memory, on board VIA graphics and sound

Offline melodie

  • Hero Member
  • *****
  • Posts: 5942
  • XMMP=Jabber, free instant messaging protocol !
    • PCLinuxOS Fr
Re: How to set up serial to USB modem in LXDE
« Reply #5 on: September 25, 2010, 03:55:15 AM »
Here is a link providing some basic how-to information:

http://www.linux-usb.org/USB-guide/x356.html
Note that you need to get some vital facts on your hardware first.


Hi,
If he needs to create an udev rule, the informations he found seem to me to be fine: ID 0403:6001


I thought the hardware info was listed in my first post.
Unfortunately the link's info is way beyond my understanding.
I will try to get around to the person's place in a day or so and run lspci
Thanks


Hi,

You said:
Quote
Bus 001 Device 002:  ID 0403:6001  Future Technology Devices International, Ltd FT 232 USB.  Serial (UART) IC


I happened to have added a rule in a sane udev rule when they existed, because the one for my scanner was not listed.

Here, you have provided the ID : the first 4 numbers are most probably for "Vendor" and the 4 following ones for "Product".

So the link provided by LXDEmystified states:
Quote
The Generic Serial Driver can be used with a wide range of converters, by specifying the vendor and product ID codes when you load the USB serial converter module: insmod usb-serial.o vendor=0xVVVV product-0xPPPP, where you need to change the VVVV and PPPP to match your device.


What I get out of this, is that I would invoke as root:

Quote
$ su
passwd
# insmod usb-serial.o vendor=0x0403 product=0x6001  //here I think there is a mistake in the web page, and that the last argument "product" can't be "product-0xPPPP" but "product=0xPPPP" as it is in the preceeding argument


The greater risk is that it won't work.

If you add the device entries as he says on the web page, and do the insmod command line and that it doesn't work, you can switch vendor and product numbers. Usually vendor comes first though. (I hope my explanation is not too confusing)




melodie at swissjabber dot ch - IRC #pclinuxos-fr sur freenode

skyhawk

  • Guest
Re: How to set up serial to USB modem in LXDE
« Reply #6 on: September 25, 2010, 08:47:11 AM »
Melodie's suggestions are good ones. Begin by doing as she recommends. If problems are encountered, you can repost, and you can also do some additional searching at "Linux-USB". From what I see there, supported hardware is somewhat limited, so problems might dictate that you search to see if your hardware is on the supported list.

Offline silverbirch

  • Sr. Member
  • ****
  • Posts: 370
Re: How to set up serial to USB modem in LXDE
« Reply #7 on: September 27, 2010, 12:46:37 AM »



Here, you have provided the ID : the first 4 numbers are most probably for "Vendor" and the 4 following ones for "Product".

So the link provided by LXDEmystified states:
Quote
The Generic Serial Driver can be used with a wide range of converters, by specifying the vendor and product ID codes when you load the USB serial converter module: insmod usb-serial.o vendor=0xVVVV product-0xPPPP, where you need to change the VVVV and PPPP to match your device.

What I get out of this, is that I would invoke as root:

Quote
$ su
passwd
# insmod usb-serial.o vendor=0x0403 product=0x6001  //here I think there is a mistake in the web page, and that the last argument "product" can't be "product-0xPPPP" but "product=0xPPPP" as it is in the preceeding argument

The greater risk is that it won't work.

If you add the device entries as he says on the web page, and do the insmod command line and that it doesn't work, you can switch vendor and product numbers. Usually vendor comes first though. (I hope my explanation is not too confusing)






Thanks - I went around and tried that.  Trying to add the device entries gave me "no such file", but when I looked using mc I could see ttyUSB0 there, which is what the info with the connector said it's seen as.

So I ran the command you suggested and got "no such file or directory".

Thanks for your time.  The person concerned has decided she wants to back to Windows, so I'll order the disks tomorrow.  Then her internal winmodem will work :-)

Once again thanks so much for your time.
Pclinuxos 2010.1 KDE on AMD Athlon XP (runs as1.8 Ghz), 1 G memory, on board VIA graphics and sound

Offline melodie

  • Hero Member
  • *****
  • Posts: 5942
  • XMMP=Jabber, free instant messaging protocol !
    • PCLinuxOS Fr
Re: How to set up serial to USB modem in LXDE
« Reply #8 on: September 27, 2010, 01:27:57 AM »
Hi,

I see USB SERIAL compiled in kernel as module:
Code: [Select]
$ zgrep USB_SERIAL /proc/config.gz
CONFIG_USB_SERIAL=m
CONFIG_USB_SERIAL_GENERIC=y
...

What is the name for it ?
Code: [Select]
$ cd /lib/modules/
$ find . -name "usb*"

Then a long list, and in this list a name approaching.
Code: [Select]
./2.6.32.21-pclos1.bfs/kernel/drivers/usb/serial/usbserial.ko.gz
So I would try "insmod usbserial vendor=0x0403 product=0x6001".

Or maybe try something totally different, as I can see man insmod is of 2002, it might be deprecated. I would try load the module, and create an udev rule.

as root:
# modprobe usbserial

and for an udev rule I'm not sure about the best way...

Time : I have been wondering before if a usb to serial could work on Linux boxes. :p



melodie at swissjabber dot ch - IRC #pclinuxos-fr sur freenode

Offline silverbirch

  • Sr. Member
  • ****
  • Posts: 370
Re: How to set up serial to USB modem in LXDE
« Reply #9 on: September 27, 2010, 02:27:59 AM »
Hi,


Time : I have been wondering before if a usb to serial could work on Linux boxes. :p





Thank you so much for your time.  For me I would be happy to continue to solve this, or really, for you to solve this!  However the computer owner has decided to go back to Windows so I don't want to take up your time.  The very little information about Linux that came with the device said it would be seen as /dev/ttyUSB0
and I see that entry when looking with mc.

But thanks so much for your help, seing as she is going back to Win please don't bother about it any more.
Pclinuxos 2010.1 KDE on AMD Athlon XP (runs as1.8 Ghz), 1 G memory, on board VIA graphics and sound

Offline Was_Just19

  • Hero Member
  • *****
  • Posts: 6852
  • MLU
Re: How to set up serial to USB modem in LXDE
« Reply #10 on: September 27, 2010, 02:52:19 AM »
modprobe is more normally used in place of insmod these days, AFAIK.