Cannot add port 'tty/ttyUSB0', unhandled serial type

4,236 views
Skip to first unread message

Eric Gammeter

unread,
Dec 9, 2016, 12:12:18 PM12/9/16
to weewx-user
Originally installed WEEWX on my RPI3...now I am trying it on another bigger DEBIAN-Jesse PC...and am running into the following:

[    3.443530] usbcore: registered new interface driver usbserial
[    3.443537] usbcore: registered new interface driver usbserial_generic
[    3.443543] usbserial: USB Serial support registered for generic
[    3.444314] usbcore: registered new interface driver cp210x
[    3.444321] usbserial: USB Serial support registered for cp210x
[    3.444335] cp210x 1-9.3:1.0: cp210x converter detected
[    3.530777] usb 1-9.3: reset full-speed USB device number 4 using xhci_hcd
[    3.635371] xhci_hcd 0000:00:14.0: xHCI xhci_drop_endpoint called with disabled ep ffff8800d4723bc8
[    3.635373] xhci_hcd 0000:00:14.0: xHCI xhci_drop_endpoint called with disabled ep ffff8800d4723b80
[    3.635940] usb 1-9.3: cp210x converter now attached to ttyUSB0
[    5.537293] e1000e: eth0 NIC Link is Up 1000 Mbps Full Duplex, Flow Control: Rx/Tx
[    5.537329] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready


root@debian:/home/eric# tail -f /var/log/syslog
Dec  9 11:45:46 debian colord: Profile added: icc-367df34b126f217da35f27715d81e794
Dec  9 11:45:46 debian colord: Profile added: icc-2150c09a870a515b284d5774d6a5bdb7
Dec  9 11:45:46 debian vmusr[1225]: [ warning] [vmusr] Error creating backup of old config file.
Dec  9 11:45:46 debian vmusr[1225]: [ warning] [vmtoolsd] The vmusr service needs to run inside a virtual machine.
Dec  9 11:45:46 debian org.gnome.zeitgeist.Engine[1089]: ** (zeitgeist-datahub:1247): WARNING **: zeitgeist-datahub.vala:226: Unable to get name "org.gnome.zeitgeist.datahub" on the bus!
Dec  9 11:45:48 debian systemd[1]: Reloading OpenBSD Secure Shell server.
Dec  9 11:45:48 debian systemd[1]: Reloaded OpenBSD Secure Shell server.
Dec  9 11:45:52 debian ModemManager[534]: <info>  Creating modem with plugin 'Generic' and '1' ports
Dec  9 11:45:52 debian ModemManager[534]: <warn>  Could not grab port (tty/ttyUSB0): 'Cannot add port 'tty/ttyUSB0', unhandled serial type'
Dec  9 11:45:52 debian ModemManager[534]: <warn>  Couldn't create modem for device at '/sys/devices/pci0000:00/0000:00:14.0/usb1/1-9/1-9.3': Failed to find primary AT port

Andrew Milner

unread,
Dec 9, 2016, 12:32:36 PM12/9/16
to weewx-user
You do no need or use modem manager for weewx - so it is not an issue if modemmanager cannot grab ttyusb0.  In fact you can probably uninstall modemmanager o avoid the messages.

Thomas Keffer

unread,
Dec 9, 2016, 7:54:48 PM12/9/16
to weewx-user
Unless you actually own a dialup modem, you should uninstall modemmanager. On system startup, it can compete with weewx for the USB port.

sudo apt-get remove modemmanager

-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.

Eric Gammeter

unread,
Dec 15, 2016, 7:11:00 PM12/15/16
to weewx-user


Still at it:  Attempting to get WEEWX to run on my bigger Debian desktop PC.  It was not talking to the ttyUSB0 port so I did the REMOVE of MODEMMANAGER. (apt-get remove modemmanager) as you sugested;  No joy-  it still did not talk to the Davis Vantage USB0 port;  I used the MINICOM tty "test" of ttyUSB0 and it indeed returned "TEST" in all caps just like your description.  I added ferrite cores to both ends of the USB cable and reran the MINICOM "test"  still good

BUT 

when I start WEEWX it starts the "LOOP" but it appears that it is not getting any data back from the usb connection. 

Any thoughts? 

Thanks as always! 
Regards,
/e 

root@debian:/etc/apache2/sites-available# tail -f /var/log/syslog
Dec 15 18:56:15 debian weewx[1797]: manager: Daily summaries up to date
Dec 15 18:56:15 debian weewx[1797]: restx: StationRegistry: Registration not requested.
Dec 15 18:56:15 debian weewx[1797]: restx: Wunderground: Posting not enabled.
Dec 15 18:56:15 debian weewx[1797]: restx: PWSweather: Posting not enabled.
Dec 15 18:56:15 debian weewx[1797]: restx: CWOP: Posting not enabled.
Dec 15 18:56:15 debian weewx[1797]: restx: WOW: Posting not enabled.
Dec 15 18:56:15 debian weewx[1797]: restx: AWEKAS: Posting not enabled.
Dec 15 18:56:15 debian weewx[1797]: engine: Starting up weewx version 3.6.2
Dec 15 18:56:16 debian weewx[1797]: engine: Clock error is -0.01 seconds (positive is fast)
Dec 15 18:56:16 debian weewx[1797]: engine: Starting main packet loop.
Dec 15 19:00:14 debian weewx[1797]: manager: added record 2016-12-15 19:00:00 EST (1481846400) to database 'weewx.sdb'
Dec 15 19:00:14 debian weewx[1797]: manager: added record 2016-12-15 19:00:00 EST (1481846400) to daily summary in 'weewx.sdb'
Dec 15 19:00:15 debian weewx[1797]: cheetahgenerator: Generated 14 files for report StandardReport in 0.42 seconds
Dec 15 19:00:15 debian weewx[1797]: genimages: Generated 24 images for StandardReport in 0.19 seconds
Dec 15 19:00:15 debian weewx[1797]: reportengine: copied 9 files to /var/www/html/weewx





[  608.457167] usb 1-10.1: Product: CP2102 USB to UART Bridge Controller
[  608.457171] usb 1-10.1: Manufacturer: Silicon Labs
[  608.457174] usb 1-10.1: SerialNumber: 1476644218
[  608.458555] cp210x 1-10.1:1.0: cp210x converter detected
[  608.547438] usb 1-10.1: reset full-speed USB device number 7 using xhci_hcd
[  608.652065] xhci_hcd 0000:00:14.0: xHCI xhci_drop_endpoint called with disabled ep ffff88040c220a48
[  608.652077] xhci_hcd 0000:00:14.0: xHCI xhci_drop_endpoint called with disabled ep ffff88040c220a00
[  608.652744] usb 1-10.1: cp210x converter now attached to ttyUSB0
root@debian:/home/eric#






[  574.904155] cp210x 1-10.1:1.0: cp210x converter detected
[  574.989368] usb 1-10.1: reset full-speed USB device number 6 using xhci_hcd
[  575.093957] xhci_hcd 0000:00:14.0: xHCI xhci_drop_endpoint called with disabled ep ffff88040d666088
[  575.093960] xhci_hcd 0000:00:14.0: xHCI xhci_drop_endpoint called with disabled ep ffff88040d666040
[  575.094519] usb 1-10.1: cp210x converter now attached to ttyUSB0
[  601.729813] usb 1-10.1: USB disconnect, device number 6
[  601.730120] cp210x ttyUSB0: cp210x converter now disconnected from ttyUSB0
[  601.730147] cp210x 1-10.1:1.0: device disconnected
[  608.347177] usb 1-10.1: new full-speed USB device number 7 using xhci_hcd
[  608.457154] usb 1-10.1: New USB device found, idVendor=10c4, idProduct=ea61
[  608.457163] usb 1-10.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[  608.457167] usb 1-10.1: Product: CP2102 USB to UART Bridge Controller
[  608.457171] usb 1-10.1: Manufacturer: Silicon Labs
[  608.457174] usb 1-10.1: SerialNumber: 1476644218
[  608.458555] cp210x 1-10.1:1.0: cp210x converter detected
[  608.547438] usb 1-10.1: reset full-speed USB device number 7 using xhci_hcd
[  608.652065] xhci_hcd 0000:00:14.0: xHCI xhci_drop_endpoint called with disabled ep ffff88040c220a48
[  608.652077] xhci_hcd 0000:00:14.0: xHCI xhci_drop_endpoint called with disabled ep ffff88040c220a00
[  608.652744] usb 1-10.1: cp210x converter now attached to ttyUSB0

Thomas Keffer

unread,
Dec 15, 2016, 8:08:52 PM12/15/16
to weewx-user
​Hello, Eric

Everything looks normal to me. An archive record for 19:00 EST was stored in the database, and some HTML files were generated from it.

What problem are you trying to solve?

-tk​

Eric Gammeter

unread,
Dec 16, 2016, 4:00:09 PM12/16/16
to weewx-user
Right...  Well-  I was expecting to see those "loop" messages and wasn't seeing them- so I "thought" there was a problem with the USB0 link:  I was wrong!  the /var/www/html/weewx/index.html file is getting updated just fine with current data.  My bad.  This topic is RESOLVED. 
Tnx again. 
/e

Eric Gammeter

unread,
Dec 20, 2016, 9:31:26 AM12/20/16
to weewx-user
HI-  Still at it.  Everything I see below looks like the USB connection to my Vantage Vue is working:  but it isn't:  The weewx index.html file is NOT updating.  As always any comments/recommendations are welcome. 
/e


root@debian:/home/eric# apt-get remove modemmanager
Reading package lists... Done
Building dependency tree      
Reading state information... Done
Package 'modemmanager' is not installed, so not removed

Welcome to minicom 2.7
OPTIONS: I18n
Compiled on Jan  1 2014, 09:30:18.
Port /dev/ttyUSB0, 09:13:33

Press CTRL-A Z for help on special keys

TEST

TEST

TEST

TEST


dmesg:
[    3.531834] usbcore: registered new interface driver usbserial
[    3.531842] usbcore: registered new interface driver usbserial_generic
[    3.531848] usbserial: USB Serial support registered for generic
[    3.532431] usbcore: registered new interface driver cp210x
[    3.532438] usbserial: USB Serial support registered for cp210x
[    3.532455] cp210x 3-10.1:1.0: cp210x converter detected
[    3.618829] usb 3-10.1: reset full-speed USB device number 4 using xhci_hcd
[    3.723504] xhci_hcd 0000:00:14.0: xHCI xhci_drop_endpoint called with disabled ep ffff88040d11e088
[    3.723517] xhci_hcd 0000:00:14.0: xHCI xhci_drop_endpoint called with disabled ep ffff88040d11e040
[    3.724159] usb 3-10.1: cp210x converter now attached to ttyUSB0

root@debian:/home/eric# service weewx status
● weewx.service - LSB: weewx weather system
   Loaded: loaded (/etc/init.d/weewx)
   Active: active (exited) since Mon 2016-12-19 17:29:27 EST; 15h ago
  Process: 538 ExecStart=/etc/init.d/weewx start (code=exited, status=0/SUCCESS)

Dec 19 17:29:27 debian weewx[607]: engine: Using Python 2.7.9 (default, Jun 29 2016, 13:08:31)
                                   [GCC 4.9.2]
Dec 19 17:29:27 debian weewx[607]: engine: Platform Linux-3.16.0-4-amd64-x86_64-with-debian-8.6
Dec 19 17:29:27 debian weewx[607]: engine: pid file is /var/run/weewx.pid
Dec 19 17:29:27 debian weewx[892]: engine: Using configuration file /etc/weewx/weewx.conf
Dec 19 17:29:27 debian weewx[892]: engine: Loading station type Vantage (weewx.drivers.vantage)
Dec 19 17:29:27 debian weewx[538]: Starting weewx weather system: weewx.
Dec 19 17:29:27 debian systemd[1]: Started LSB: weewx weather system.
Dec 19 17:29:27 debian weewx[892]: import of driver failed: could not open port /dev/ttyUSB0: [Errno 2] No such file or di...tion'>)
Dec 19 17:29:27 debian weewx[892]: engine: Unable to load driver: could not open port /dev/ttyUSB0: [Errno 2] No such file...tyUSB0'
Dec 19 17:29:27 debian weewx[892]: ****  Exiting...



Eric Gammeter

unread,
Dec 20, 2016, 9:39:31 AM12/20/16
to weewx-user
Also I am not getting any updates to WU.  (see snippet below from the attached weewx.conf file.
/e

[[Wunderground]]
        # This section is for configuring posts to the Weather Underground.
       
        # If you wish to do this, set the option 'enable' to true,
        # and specify a station (e.g., 'KORHOODR3') and password.
        enable = true
        station = KMDNEWWI7   
        password = 6l3gnlqp
       
        # Set the following to True to have weewx use the WU "Rapidfire"
        # protocol. Not all hardware can support it. See the User's Guide.
        rapidfire = False

weewx.conf

Thomas Keffer

unread,
Dec 20, 2016, 8:42:15 PM12/20/16
to weewx-user
It looks like you have at least two copies of weewx running.

Kill them all, then start just one.

kill -9 607
kill -9 892
kill -9 538

-tk

Reply all
Reply to author
Forward
0 new messages