No /dev/ttyUSB0

3,296 views
Skip to first unread message

Joe Percival

unread,
Sep 17, 2017, 1:22:48 PM9/17/17
to weewx-user
Trying to check connection to vantage pro 2 USB but I have no file /dev/ttyUSB0, nor anything similar.
I'm running ubuntu 16.04 LTS on an Azulle Byte Plus.
Station is on and plugged into the USB 2.0 port and some other things are plugged into a hub on one of the USB 3.0 ports.
Any idea what I may have done wrong?

Thomas Keffer

unread,
Sep 17, 2017, 2:03:01 PM9/17/17
to weewx-user
Plug the station in, then try the command dmesg. It will show the port the USB device was attached to. Should look something like:

[20065.643632] usb 2-2: new full-speed USB device number 7 using xhci_hcd
[20065.772251] usb 2-2: New USB device found, idVendor=05ad, idProduct=0fba
[20065.772257] usb 2-2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[20065.772260] usb 2-2: Product: USB-Serial Controller
[20065.772263] usb 2-2: Manufacturer: Prolific Technology Inc.
[20065.772764] pl2303 2-2:1.0: pl2303 converter detected
[20065.775446] usb 2-2: pl2303 converter now attached to ttyUSB0

-tk


--
You received this message because you are subscribed to the Google Groups "weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Joe Percival

unread,
Sep 17, 2017, 3:00:07 PM9/17/17
to weewx-user
I don't see anything like that. Could this be a clue?
When I did a lsusb the vantage connection indicates that it is a cp210x UART bridge.
When I do a osmosis, cp210x is not listed. Usbserial is also missing. Does this mean that the build that came with my machine is incompatible?

Joe Percival

unread,
Sep 17, 2017, 3:02:56 PM9/17/17
to weewx-user
I'm about ready to give up on this box and go with the well known rasberry pi 3.

Joe Percival

unread,
Sep 17, 2017, 3:11:00 PM9/17/17
to weewx-user
Not osmosis... lsmod 😜

Joe Percival

unread,
Sep 17, 2017, 3:19:30 PM9/17/17
to weewx-user
Oh, and when I do a lsusb -t  the driver for this connection is empty.

Thomas Keffer

unread,
Sep 17, 2017, 3:25:34 PM9/17/17
to weewx-user
The command lsusb will tell you what devices are on the bus, but it will not tell you which port (if any) they have been mapped to.

Sounds like the cp210x driver module is not getting loaded or does not exist on your system. It's the driver needed for a USB device on the bus to be treated as a serial device.

To see if it exists, look in /lib/modules and subdirectories. A command line

find /lib/modules -type f -name "*.ko"|grep cp21

will get you started. If you can find it, then you can load it:

sudo modprobe cp210x

-tk

On Sun, Sep 17, 2017 at 12:11 PM, Joe Percival <j...@bigtreestech.com> wrote:
Not osmosis... lsmod 😜

Thomas Keffer

unread,
Sep 17, 2017, 3:27:28 PM9/17/17
to weewx-user
Oh, and if the module is not on your system, then try to download from the chip manufacturer.

-tk

Joe Percival

unread,
Sep 17, 2017, 3:39:12 PM9/17/17
to weewx-user
Nothing came back from the find command

Joe Percival

unread,
Sep 17, 2017, 3:44:12 PM9/17/17
to weewx-user
They only have files for Linux kernels 2.x and 3.x. Ubuntu 16.04 uses kernel version 4.4 😢

Thomas Keffer

unread,
Sep 17, 2017, 3:50:16 PM9/17/17
to weewx-user
I'm surprised. My version of Ubuntu 16.04 comes with the cp210x module:

find /lib/modules -type f -name "*.ko"|grep cp210x
/lib/modules/4.4.0-93-generic/kernel/drivers/usb/serial/cp210x.ko
/lib/modules/4.4.0-92-generic/kernel/drivers/usb/serial/cp210x.ko

Perhaps they don't offer it for the Azulle Byte? If that's the case, you will probably find it a real challenge to port and compile the module. If the Byte Plus has a support forum, I'd ask around there.

-tk


On Sun, Sep 17, 2017 at 12:44 PM, Joe Percival <j...@bigtreestech.com> wrote:
They only have files for Linux kernels 2.x and 3.x. Ubuntu 16.04 uses kernel version 4.4 😢

Joe Percival

unread,
Sep 17, 2017, 4:07:13 PM9/17/17
to weewx-user
When I disconnect the vantage, reconnect it, and then do dmesg I get:
USB disconnect, device number 10
new full-speed USB device number 11 using xhci_hcd

Every time I disconnect and reconnect, the device number increments

Joe Percival

unread,
Sep 17, 2017, 4:14:04 PM9/17/17
to weewx-user
Will the raspberry pi 3 work?
This is not the first major problem ive had with tha byte plus

Thomas Keffer

unread,
Sep 17, 2017, 5:39:15 PM9/17/17
to weewx-user
I don't know about the RPi 3, but I just checked an RPi B+, running wheezy on kernel 4.1.19+, and it had the cp210x module.

Odds are the RPI3 will have it.

-tk

On Sun, Sep 17, 2017 at 1:14 PM, Joe Percival <j...@bigtreestech.com> wrote:
Will the raspberry pi 3 work?
This is not the first major problem ive had with tha byte plus

Joe Percival

unread,
Sep 18, 2017, 9:13:37 AM9/18/17
to weewx-user
Thank you for being so responsive and tolerant!
Will start work on rpi 3 tomorrow. I found a YouTube video by a guy running weewx on rpi 3 so am hopeful.
The Azulle had to have a custom build of ubuntu because of other driver issues, like wifi. I suspect this is just one more of its limitations.
Thanks again!

Joe Percival

unread,
Sep 22, 2017, 2:12:40 PM9/22/17
to weewx-user
👍. After getting the new raspberry 3 B set up and configured to boot from hard drive, run NUT, and configured as a RealVNC server, installing and getting weewx running and talking to my station was really straightforward!
Thanks so much for awesome software, documentation, and support!
Reply all
Reply to author
Forward
0 new messages