Reply
Posts: 4
Registered: ‎04-02-2017

Ubuntu 16.0.4 & USB failed to send data - CP2104 USB-to-Serial Adapter Carrier

Work Environment :
    Linux : Ubuntu 16.0.4
    Linux Kernel Version : 4.8.0-45-generic
    USB : 3.0 (Industrail PC).

    USB Serial Adapter :
          CP2104 USB-to-Serial Adapter Carrier
              https://www.pololu.com/product/1308
     Driver :
           Linux-3-x-x-VCP-Driver-Source.zip
            http://www.silabs.com/products/development-tools/software/usb-to-uart-bridge-vcp-drivers

 

    Port : /dev/ttyUSB0  baud rate : 115200

 

 

Issue : I have build driver source code using make "Linux-3-x-x-VCP-Driver-Source" &
inserted driver successfully (ex: insmod cp210x.ko).

  1.  USB port /dev/ttyUSB0 send data packets for first few minutes, after few some time (ex: 10 minutes) it don't send any data packets. If I plug out & plug in cable into USB  port, again it start sending data correctly.
  2. USB port /dev/ttyUSB0 don't send any packet. But if I plug out & Plug into USB 3.0, it start sending data packets.

I used gtkterm to open /dev/ttyUSB0 to check the data packets.

 

Look like USB driver have an issue with Ubuntu 16.0.4 with USB 3.0 ? 

 

any suggestion & help is highly appreciated.

Posts: 4
Registered: ‎04-02-2017

Re: Ubuntu 16.0.4 & USB failed to send data - CP2104 USB-to-Serial Adapter Carrier

After analysis I found  serial bus gives error :

       GPS overflow.

USB it goes down.

I am attaching GTKTerm log for further analysis.

<a href="http://community.silabs.com/t5/Welcome-and-Announcements/Community-Ranking-System-and-Recognition-Program/m-p/140490#U140490"><font color="#000000"><font size="2">Super Star</font></font> </a> CL
Posts: 24
Registered: ‎10-28-2015

Re: Ubuntu 16.0.4 & USB failed to send data - CP2104 USB-to-Serial Adapter Carrier

The cp210x driver is already part of the Linux 4.x kernel. You have overwritten it with an older version for 3.x kernels.

 

Try with the correct driver. If it still fails, check if there are any messages in the system log.

Posts: 4
Registered: ‎04-02-2017

Re: Ubuntu 16.0.4 & USB failed to send data - CP2104 USB-to-Serial Adapter Carrier

thanks lot for inputs.

I have upgraded CP2104 driver with Ubuntu version.

      sudo cat /var/log/kern.log | grep usb 

 

Apr 4 10:58:47 eduPC-IPC-R1 kernel: [ 10.751201] usbcore: registered new interface driver usbserial
Apr 4 10:58:47 eduPC-IPC-R1 kernel: [ 10.751219] usbcore: registered new interface driver usbserial_generic
Apr 4 10:58:47 eduPC-IPC-R1 kernel: [ 10.751234] usbserial: USB Serial support registered for generic
Apr 4 10:58:47 eduPC-IPC-R1 kernel: [ 10.753366] usbcore: registered new interface driver cp210x
Apr 4 10:58:47 eduPC-IPC-R1 kernel: [ 10.753387] usbserial: USB Serial support registered for cp210x
Apr 4 10:58:47 eduPC-IPC-R1 kernel: [ 10.754312] usb 2-1.5: cp210x converter now attached to ttyUSB0

 

sudo lsmod | grep usb

 

cp210x                 28672  1

usbserial              53248  3 cp210x

 

 

then I have used gtkterm, open port  /dev/ttyUSB0 at  baud rate 115200. 

but it don't to send any data packets, If plug out & plug into USB it start sending me data  packets. 

 

you suggestion & help is highly appreciated. 

Posts: 4
Registered: ‎04-02-2017

Re: Ubuntu 16.0.4 & USB failed to send data - CP2104 USB-to-Serial Adapter Carrier

In my product I am taking data from UM7 (accelrometer, gyrometer, mangentometer ) & GPS sensor.

So it gives me below overflow error.

 

snpÔpýf jR÷       C ” ¤GPS overflow.

ßsnp̉>—>»>ì•u¼£Õ& GPS overflow.

 

 

I change baud rate, but it don't work. 

attaching log for more detail.

Highlighted
<a href="http://community.silabs.com/t5/Welcome-and-Announcements/Community-Ranking-System-and-Recognition-Program/m-p/140490#U140490"><font color="#000000"><font size="2">Super Star</font></font> </a> CL
Posts: 24
Registered: ‎10-28-2015

Re: Ubuntu 16.0.4 & USB failed to send data - CP2104 USB-to-Serial Adapter Carrier

That "GPS overflow" error sound like a problem with your device at the other end of the serial line, not with the CP2104.