Welcome! Log In Create A New Profile

Advanced

Ubuntu USB-Serial port install procedure

Posted by Anonymous User 
Prolific Technology, Inc. PL2303 Serial Port


configuration #1 chosen from 1 choice
[ 141.286592] pl2303 2-1:1.0: pl2303

converter detected
[ 141.311418] usb 2-1: pl2303 converter now attached to ttyUSB0
engkozhe@ubuntu:~$ sudo wvdial
[sudo] password for engkozhe:
--> WvDial: Internet dialer

version 1.60
--> Cannot get information for serial port.
--> Initializing modem.
-->

Sending: ATZ
OK
--> Sending: ATQ0 V1 E1 S0=0 &C1 &D2
ATQ0 V1 E1 S0=0 &C1 &D2
OK
--> Modem

initialized.
--> Sending: ATDT#777
--> Waiting for carrier.
ATDT#777
NO CARRIER

.... PLEASE HELP me with this problem ..
1. I can get my PL2303 serial driver information
2. THe dialer seems tobe on and off
thanks for your help
Re: Ubuntu USB-Serial port install procedure
September 20, 2010 02:33PM
What are you trying to do and which applications do you use? I'm using Ubuntu as well and there were no installations for the serial port necessary.


Generation 7 Electronics Teacup Firmware RepRap DIY
     
Freeman Wrote:
-------------------------------------------------------
> The procedure for using the USB adapter from the
> BOM wasn't in the wiki - nor was it immediately
> obvious, so, here goes.
>
>
> If you are using the usb -> RS232 adapter, the
> serial drivers may need to be installed for the
> device to work properly. After plugging in the
> device, first check the hardware messages to see
> the device was detected:
>
> dmesg
>
> Torward the end of the messages, you should see
> this:
>
> usb 1-1: new full speed USB device using uhci_and
> address 2
> usb 1-1: configuration #1 chosen from 1 choice
>
> Now, we need to figure out the device vendor
> number and product number to tell the usbserial
> driver. For this we can use lsusb. The easiest
> way to find the information is to first unplug the
> device, then run lsusb:
>
> lsusb
>
>
> You will see a summary list of your USB devices on
> the system, I only have one:
>
> Bus 001 Device 001: ID 0000:0000
>
> Now, plug the device back in, and run lsusb
> again:
>
> lsusb
>
> Which returns the summary list again, but now
> showing the new USB device:
>
> Bus 001 Device 002: ID 4348:5523
> Bus 001 Device 001: ID 0000:0000
>
>
> Now, we can load up the driver for this device:
>
> sudo modprobe usbserial vendor=0x4348
> product=0x5523
>
> Finally, check dmesg again to ensure it loaded
> properly.
>
> dmesg
>
> Near the end, you should see something like:
>
> usbserial_generic 1-1:1.0: generic converter
> detected
> usb 1-1: generic converter now attached to
> ttyUSB0
> usbcore: registered new interface driver
> usbserial_generic
>
> Congratulations, your link is up - in this
> example, the device can be used on /dev/ttyUSB0.
> As much fun as you had doing this, there is some
> chance you want to do this automatically in the
> future. Just add this line:
>
> usbserial vendor=0x4348 product=0x5523
>
> to /etc/modules with the vendor and product
> numbers you found. Now, you should have no
> problem using this device for RepRap like a normal
> serial port. Huzzah! grinning smiley

------------------------------------------------------------------------------------
Johnpaul C I
I bought a new phone having the modem ct800p . I wanted to connect that modem to linux debian or ubuntu. I had tried my level best for configuring the modem as per the above method, because my modem was not recognised as a ttyUSB device in the /dev/ file. All my efforts went in vain
followed instructions but adapter not working

[ 3878.944100] mct_u232 ttyUSB0: usb_submit_urb(read bulk) failed pipe 0x40410880 err -22
[ 3878.956085] mct_u232 ttyUSB0: usb_submit_urb(read bulk) failed pipe 0x40410880 err -22
[ 3878.968082] mct_u232 ttyUSB0: usb_submit_urb(read bulk) failed pipe 0x40410880 err -22
[ 3878.980113] mct_u232 ttyUSB0: usb_submit_urb(read bulk) failed pipe 0x40410880 err -22
[ 3878.992085] mct_u232 ttyUSB0: usb_submit_urb(read bulk) failed pipe 0x40410880 err -22
[ 4018.910082] mct_u232 ttyUSB0: usb_submit_urb(read bulk) failed pipe 0x40410880 err -22
[ 4018.922077] mct_u232 ttyUSB0: usb_submit_urb(read bulk) failed pipe 0x40410880 err -22
[ 4018.934090] mct_u232 ttyUSB0: usb_submit_urb(read bulk) failed pipe 0x40410880 err -22
[ 4018.946087] mct_u232 ttyUSB0: usb_submit_urb(read bulk) failed pipe 0x40410880 err -22
[ 4018.958100] mct_u232 ttyUSB0: usb_submit_urb(read bulk) failed pipe 0x40410880 err -22
[ 4018.970090] mct_u232 ttyUSB0: usb_submit_urb(read bulk) failed pipe 0x40410880 err -22
[ 4018.982087] mct_u232 ttyUSB0: usb_submit_urb(read bulk) failed pipe 0x40410880 err -22
[ 4018.994110] mct_u232 ttyUSB0: usb_submit_urb(read bulk) failed pipe 0x40410880 err -22
[ 6765.692623] handle_rx_packet: invalid, small RX packet : 1
[ 6792.986818] usb 2-1: USB disconnect, address 9
[ 6795.736066] usb 2-1: new full speed USB device using ohci_hcd and address 10
[ 7005.597043] CE: hpet increased min_delta_ns to 7500 nsec
[ 7273.164806] usb 2-2: USB disconnect, address 8
[ 7273.165406] mct_u232 ttyUSB0: MCT U232 converter now disconnected from ttyUSB0
[ 7273.165449] mct_u232 2-2:1.0: device disconnected
[ 7274.945662] usb 2-1: USB disconnect, address 10
[ 7288.772075] usb 2-2: new full speed USB device using ohci_hcd and address 11
[ 8053.399703] usb 2-2: USB disconnect, address 11
[ 8057.568071] usb 2-2: new full speed USB device using ohci_hcd and address 12
[ 8386.616091] usb 1-1: new high speed USB device using ehci_hcd and address 14
[ 8387.260592] Initializing USB Mass Storage driver...
[ 8387.260878] scsi4 : usb-storage 1-1:1.0
[ 8387.261368] usbcore: registered new interface driver usb-storage
[ 8387.261375] USB Mass Storage support registered.
[ 8390.324739] scsi 4:0:0:0: Direct-Access Lexar USB Flash Drive 3000 PQ: 0 ANSI: 0 CCS
[ 8390.326629] sd 4:0:0:0: Attached scsi generic sg2 type 0
[ 8394.444645] sd 4:0:0:0: [sdb] 31326208 512-byte logical blocks: (16.0 GB/14.9 Gicool smiley
[ 8394.446085] sd 4:0:0:0: [sdb] Write Protect is off
[ 8394.446101] sd 4:0:0:0: [sdb] Mode Sense: 43 00 00 00
[ 8394.446109] sd 4:0:0:0: [sdb] Assuming drive cache: write through
[ 8394.451175] sd 4:0:0:0: [sdb] Assuming drive cache: write through
[ 8394.451209] sdb: sdb1
[ 8394.458094] sd 4:0:0:0: [sdb] Assuming drive cache: write through
[ 8394.458114] sd 4:0:0:0: [sdb] Attached SCSI removable disk
[ 8842.244373] handle_rx_packet: invalid, small RX packet : 1
[ 8885.032491] handle_rx_packet: invalid, small RX packet : 1
[ 8887.574753] handle_rx_packet: invalid, small RX packet : 1
[ 8890.738889] handle_rx_packet: invalid, small RX packet : 1
[10077.803837] usb 1-1: USB disconnect, address 14
[10085.201188] usb 2-2: USB disconnect, address 12
[10091.252091] usb 2-2: new full speed USB device using ohci_hcd and address 13
[10286.526161] usb 2-2: USB disconnect, address 13
[10288.772097] usb 2-1: new full speed USB device using ohci_hcd and address 14


any help would be appreciated?
Re: Ubuntu USB-Serial port install procedure
October 31, 2010 12:54AM
Your log quote looks good. Is the new device appearing in /dev/ ? It's name should be tty.usb.something.


Generation 7 Electronics Teacup Firmware RepRap DIY
     
GG
Re: Ubuntu USB-Serial port install procedure
January 29, 2011 01:43PM
Thx for the tips. For Ubuntu 10, I just plugged the device and everything was there. Just needed to use dmesg to make sure it's there.
I've done the procedures and it seems that I've gotten the desired results. However, the program I'm using (I'm connecting to a robot) requests a COMM port number to send commands through. How can the port be set up as a COMM1-COMM4 so that the program will recognize and use it correctly?
Re: Ubuntu USB-Serial port install procedure
February 26, 2011 01:39AM
What's COM on Windows is /dev/tty.... on Ubuntu (or Linux or Unix in general).


Generation 7 Electronics Teacup Firmware RepRap DIY
     
Great! thanks a lot for this, I Googles for quite a while before I found this. The installation guide works like a charm with my FTDI USB to serial adapter
Hi,
I am using a pl2303x USB to serial convertor. I got until this point where I plugged in the cable and typed lsusb and then got this: Bus 005 Device 005: ID 067b:2303 Prolific Technology, Inc. PL2303 Serial Port. The last few lines after I typed in dmesg are: [ 4924.854666] usb 5-1: configuration #1 chosen from 1 choice
[4924.857613] pl2303 5-1:1.0: pl2303 convertor detected
[4924.869657] usb 5-1: pl2303 convertor now attached to ttyUSB0
When I typed in : modprobe usbserial vendor=0x067b product=2303 it returned nothing. I confirmed that the cable is working by shorting out terminals 2,3 then plugging it into a Windows machine and using Hyperterminal at a baud rate 19200 with 8N1. I opened Microcom and save a new configuration with settings baud rate 19200 with 8N1 and also changed the serial device to /dev/ttyUSB0. The terminals 2,3 were still sorted out and when I opened minicom I got this output:
AT S7=45 S0=0 L1 V1 X4 &c1 E1 Q0
Then a flashing cursor which allowed me to type but did not echo back anything.

Earlier I associated ttyS0 to ttyUSB0 using the ln command then removed the ttyS0 from the /dev/ folder. I don't know if I am missing a driver or something else. Any help is appreciated that might solve this problem.
Regards,
JM
Thanks a lot for this. Very cool. I used it for this USB to Serial adapter and it worked flawlessly
You're the GREAT.
You Thank !!!! O_O !!!!! Thanks grinning smiley
Just tryna hack my PDA and install linux on this HP iPAQ h5500 XDDD
Can anyone help me ?.
I have tried the given code. and am getting the following error.

FATAL: Error inserting usbserial (/lib/modules/2.6.32-33-generic/kernel/drivers/usb/serial/usbserial.ko): Invalid module format.
Hi i tried the above procedure but didnt get worked please help me:-

lsusb
Bus 006 Device 002: ID 03f0:7029 Hewlett-Packard
Bus 006 Device 001: ID 0000:0000
Bus 003 Device 001: ID 0000:0000
Bus 002 Device 001: ID 0000:0000
Bus 001 Device 001: ID 0000:0000
Bus 004 Device 001: ID 0000:0000
Bus 005 Device 011: ID 0c52:a025 Sealevel Systems, Inc.
Bus 005 Device 007: ID 0451:2046 Texas Instruments, Inc. TUSB2046 Hub
Bus 005 Device 010: ID 0c52:a024 Sealevel Systems, Inc.
Bus 005 Device 009: ID 0c52:a023 Sealevel Systems, Inc.
Bus 005 Device 008: ID 0c52:a022 Sealevel Systems, Inc.
Bus 005 Device 001: ID 0000:0000

# modprobe usbserial vendor=0451 product=2046

When i run this command it show nothing



# dmesg|grep ttyUSB
Hi Freeman

Thansk a lot,

I had a lot a problem to get my FTDI2232H device detected and working as a serial port,
You have provided all the answers and commands to get it working (Ubuntu).

THX again

SuperxGDX
Vincent
Re: Ubuntu USB-Serial port install procedure
February 27, 2012 08:31PM
Hi
It works for my usb-convertor using minicom.
However, if usb-rs232 converter is plugged into USB HUB first
and HUB connected to Ubuntu PC, minicom will not work.
Could you help to make it work with USB HUB ?
Thanks!
Vincent
Thanks alot, I am able to see USB serial port on the Raspberrypi.

-Krishna
Can someone advise where I can decent cable? I bought one on ebay and it's appear to faulty...
I am trying to connect a TenTec 550Pegasus ham radio to a Dell computer with ubuntu12-04 OS using a Gigaware 6' USBserial port cable (from Radioshack) with no success with everything suggested above.

Can anyone help me?
Works perfect.
Thanks a lot
I amusing a PL2303 converter, and have followed the instructions and still cannot get it to connect to the internet !... I am using Linux Mint15 Olivia... and am new to Linux !....

without the usb/converter plugged in.... dmesg

[ 5218.336106] usb 6-2: USB disconnect, device number 5
[ 5218.336243] pl2303 ttyUSB0: pl2303 converter now disconnected from ttyUSB0
[ 5218.336257] pl2303 6-2:1.0: device disconnected
[ 5222.932942] sd 6:0:0:0: [sda] Test WP failed, assume Write Enabled
[ 5222.935192] sd 6:0:0:0: [sda] Asking for cache data failed
[ 5222.935196] sd 6:0:0:0: [sda] Assuming drive cache: write through

plug in the converter and ...... dmesg

[ 5433.432048] usb 6-2: new full-speed USB device number 6 using uhci_hcd
[ 5433.593088] usb 6-2: New USB device found, idVendor=067b, idProduct=2303
[ 5433.593093] usb 6-2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 5433.593096] usb 6-2: Product: USB-Serial Controller D
[ 5433.593098] usb 6-2: Manufacturer: Prolific Technology Inc.
[ 5433.595128] pl2303 6-2:1.0: pl2303 converter detected
[ 5433.607159] usb 6-2: pl2303 converter now attached to ttyUSB0

lsusb shows

Bus 001 Device 002: ID 0bda:0158 Realtek Semiconductor Corp. USB 2.0 multicard reader
Bus 002 Device 002: ID 152d:2338 JMicron Technology Corp. / JMicron USA Technology Corp. JM20337 Hi-Speed USB to SATA & PATA Combo Bridge
Bus 006 Device 006: ID 067b:2303 Prolific Technology, Inc. PL2303 Serial Port
Bus 007 Device 002: ID 15d9:0a4c Trust International B.V. USB+PS/2 Optical

I am using the program CWCOM, for morse over the internet.... although the program produces a morse sound and the text on the screen, when using the keyboard down arrow key, I am not getting the "DE IONOSPHERE : CONNECTED indication that it has actually connected to the internet... also I cannot get the COMPORT to connect so I can use the morse key attached to the usb/converter. How do I get the program/driver to connect to the comport?
Re: Ubuntu USB-Serial port install procedure
July 31, 2013 04:06AM
Over internet (IP network) is different from over a serial port. What are you trying to achieve (connect) with that pl2303 converter ?


Most of my technical comments should be correct, but is THIS one ?
Anyway, as a rule of thumb, always double check what people write.
Have managed to get it connected and working now... Although it does not show "DE IONOSPHERE : CONNECTED as it does on the Windows platform....

I tested it with another laptop... and also made a couple of contacts across the world, so happy chappy now...

Thank you for the guidance on this forum... Much appreciated.
Hallo freeman i will work whis cute terminal for configuration cisco or oneaccess router
i see that the driver was o.k. the name was ttyusb0 but in the terminalprogramm cute terminal or putty i can t change on the serialport /dev/ttyusb0 ?
have you an idee?



16.968255] usbcore: registered new interface driver usbserial
[ 16.968265] USB Serial support registered for generic
[ 16.968285] usbcore: registered new interface driver usbserial_generic
[ 16.968286] usbserial: USB Serial Driver core
[ 16.968577] USB Serial support registered for pl2303
[ 16.968590] pl2303 2-1.2:1.0: pl2303 converter detected

[ 16.976078] device-mapper: multipath: version 1.3.0 loaded
[ 16.987818] usb 2-1.2: pl2303 converter now attached to ttyUSB0
[ 16.987837] usbcore: registered new interface driver pl2303
[ 16.987838] pl2303: Prolific PL2303 USB to serial adaptor driver
[ 17.059306] input: HP WMI hotkeys as /devices/virtual/input/input5
Re: Ubuntu USB-Serial port install procedure
August 01, 2014 04:18AM
Hi!
I tried all that and finally see:

[ 7550.048894] usb 6-2: New USB device found, idVendor=067b, idProduct=2303
[ 7550.048900] usb 6-2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 7550.048904] usb 6-2: Product: USB 2.0 To COM Device
[ 7550.048908] usb 6-2: Manufacturer: Prolific Technology Inc.
[ 7550.051758] pl2303 6-2:1.0: pl2303 converter detected
[ 7550.063931] usb 6-2: pl2303 converter now attached to ttyUSB0

But in my application (which is running under WINE) it always says s.th. like "couldn't find serial device COM1". The application is then looking for other COM-ports, but ends up with USB-Serial-Adapter out of function.
The adapter is definitely working, because I also use it in a Windows XP environment.

Does anybody have an idea?
Re: Ubuntu USB-Serial port install procedure
September 22, 2014 05:58AM
I hope this forum is still alive. I just found this and have followed the procedure for installing Prolific USB to Serial Adapter very carefully several times with mixed results. Usually when I do this the serial port does't work. The messages I get at end of dmesg are:

[ 4955.155747] usb 7-1: USB disconnect, device number 6
[ 4955.156133] generic ttyUSB0: generic converter now disconnected from ttyUSB0
[ 4955.156174] usbserial_generic 7-1:1.0: device disconnected
[ 4964.354998] usb 7-1: new full-speed USB device number 7 using ohci-pci
[ 4964.522265] usb 7-1: New USB device found, idVendor=067b, idProduct=2303
[ 4964.522277] usb 7-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 4964.522285] usb 7-1: Product: USB-Serial Controller D
[ 4964.522291] usb 7-1: Manufacturer: Prolific Technology Inc.
[ 4964.524394] usbserial_generic 7-1:1.0: The "generic" usb-serial driver is only for testing and one-off prototypes.
[ 4964.524404] usbserial_generic 7-1:1.0: Tell linux-usb@vger.kernel.org to add your device to a proper driver.
[ 4964.524409] usbserial_generic 7-1:1.0: generic converter detected
[ 4964.524577] usb 7-1: generic converter now attached to ttyUSB0

When I'm able to get it to work, the messages look like this:

[ 5839.547389] usb 7-1: USB disconnect, device number 7
[ 5842.045777] usb 7-1: new full-speed USB device number 8 using ohci-pci
[ 5842.213072] usb 7-1: New USB device found, idVendor=067b, idProduct=2303
[ 5842.213085] usb 7-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 5842.213092] usb 7-1: Product: USB-Serial Controller D
[ 5842.213098] usb 7-1: Manufacturer: Prolific Technology Inc.
[ 5842.254841] usbcore: registered new interface driver usbserial
[ 5842.254887] usbcore: registered new interface driver usbserial_generic
[ 5842.254916] usbserial: USB Serial support registered for generic
[ 5842.259085] usbcore: registered new interface driver pl2303
[ 5842.259108] usbserial: USB Serial support registered for pl2303
[ 5842.259153] pl2303 7-1:1.0: pl2303 converter detected
[ 5842.280308] usb 7-1: pl2303 converter now attached to ttyUSB0
hec@SpockU:/dev$[/size]

The difference seems to be that in the later case that works, the specific pl2303 is detected where as in the case above it's just a generic version of usbserial? Anyway I can't figure out why sometimes I get the later but most of the time I get the former.

Also, I have the statement usbserial vendor=0x067b product=0x2303 in /etc/modules but even when I have the port working (case 2 above) the change is not persistent across reboots and I have to start all over again.

I would really appreciate someone pointing out what must be obvious but that I can't seem to overcome despite many hours of work.

Thanks in advance.
Sorry, only registered users may post in this forum.

Click here to login