- Silicon Labs Community
- Welcome and Announcements
- Silicon Labs Knowledge Base
- 8-bit MCU
- 32-bit MCU
- Bluetooth / Wi-Fi
- Other Products Category
- Optical/RH/Temp Sensor
- Other Products
- Hardware and Software Tools
- Simplicity Studio and Software
- General Discussions and Suggestions
- Chinese Forum
- Software Libraries
- Development Kits
- Reference Designs
- Third Party Tools
- White Papers
- Official Blog of Silicon Labs
- Chinese Blog
04-02-2017 04:17 AM - last edited on 07-24-2017 01:14 PM by Siliconlabs
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
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).
- 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.
- 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.
04-03-2017 06:23 AM
After analysis I found serial bus gives error :
USB it goes down.
I am attaching GTKTerm log for further analysis.
04-03-2017 08:15 AM
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.
04-03-2017 11:54 PM
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.
04-06-2017 01:47 AM
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.
04-06-2017 08:18 AM
That "GPS overflow" error sound like a problem with your device at the other end of the serial line, not with the CP2104.