Vantage Console wakeup failing again....

542 views
Skip to first unread message

Joe

unread,
Feb 2, 2024, 8:36:14 PM2/2/24
to weewx-user
So this has starting being a problem again.  Its not really related to version 5.  But it is still happening.

This is a PI4 using the wifi option and a decent power connection and USB cord .

It seems to be a USB detection / conversion problem.

I've tried restarting the vantage a few times, and the PI computer pull the USB plug, and it restarts the USB device, attempts to begin pulling data and gets an error.  

Very frustrating after working for such a long time.






Feb  2 19:30:56 raspberrypi weewxd[920]: INFO __main__: Starting up weewx version 5.0.0
Feb  2 19:30:57 raspberrypi weewxd[920]: INFO weewx.engine: Clock error is -197.26 seconds (positive is fast)
Feb  2 19:30:57 raspberrypi weewxd[920]: INFO weewx.drivers.vantage: Clock set to 2024-02-02 19:30:58 CST (1706923858)
Feb  2 19:30:57 raspberrypi weewxd[920]: INFO weewx.engine: Using binding 'wx_binding' to database 'weewx.sdb'
Feb  2 19:30:57 raspberrypi weewxd[920]: INFO weewx.manager: Starting backfill of daily summaries
Feb  2 19:30:57 raspberrypi weewxd[920]: INFO weewx.manager: Daily summaries up to date
Feb  2 19:30:59 raspberrypi kernel: [ 1426.892512] cp210x ttyUSB0: usb_serial_generic_read_bulk_callback - urb stopped: -32
Feb  2 19:30:59 raspberrypi kernel: [ 1426.892962] cp210x ttyUSB0: usb_serial_generic_read_bulk_callback - urb stopped: -32
Feb  2 19:30:59 raspberrypi kernel: [ 1426.983918] usb 1-1.3: USB disconnect, device number 7
Feb  2 19:30:59 raspberrypi kernel: [ 1426.984264] cp210x ttyUSB0: failed set request 0x7 status: -19
Feb  2 19:30:59 raspberrypi kernel: [ 1426.984298] cp210x ttyUSB0: failed set request 0x12 status: -19
Feb  2 19:30:59 raspberrypi kernel: [ 1426.984316] cp210x ttyUSB0: failed set request 0x0 status: -19
Feb  2 19:30:59 raspberrypi kernel: [ 1426.985025] cp210x ttyUSB0: cp210x converter now disconnected from ttyUSB0
Feb  2 19:30:59 raspberrypi kernel: [ 1426.985139] cp210x 1-1.3:1.0: device disconnected
Feb  2 19:30:59 raspberrypi weewxd[920]: ERROR weewx.drivers.vantage: SerialException on read.
Feb  2 19:30:59 raspberrypi weewxd[920]: ERROR weewx.drivers.vantage:    ****  device reports readiness to read but returned no data (device disconnected or multiple access on port?)
Feb  2 19:30:59 raspberrypi weewxd[920]: ERROR weewx.drivers.vantage:    ****  Is there a competing process running??
Feb  2 19:31:03 raspberrypi weewxd[920]: ERROR weewx.drivers.vantage: Unable to wake up Vantage console
Feb  2 19:31:03 raspberrypi weewxd[920]: ERROR weewx.drivers.vantage: DMPAFT try #1; error: Unable to wake up Vantage console
Feb  2 19:31:08 raspberrypi weewxd[920]: ERROR weewx.drivers.vantage: Unable to wake up Vantage console
Feb  2 19:31:08 raspberrypi weewxd[920]: ERROR weewx.drivers.vantage: DMPAFT try #2; error: Unable to wake up Vantage console
Feb  2 19:31:13 raspberrypi weewxd[920]: ERROR weewx.drivers.vantage: Unable to wake up Vantage console
Feb  2 19:31:13 raspberrypi weewxd[920]: ERROR weewx.drivers.vantage: DMPAFT try #3; error: Unable to wake up Vantage console
Feb  2 19:31:18 raspberrypi weewxd[920]: ERROR weewx.drivers.vantage: Unable to wake up Vantage console
Feb  2 19:31:18 raspberrypi weewxd[920]: ERROR weewx.drivers.vantage: DMPAFT try #4; error: Unable to wake up Vantage console
Feb  2 19:31:18 raspberrypi weewxd[920]: ERROR weewx.drivers.vantage: DMPAFT max tries (4) exceeded.
Feb  2 19:31:18 raspberrypi weewxd[920]: INFO weewx.engine: Main loop exiting. Shutting engine down.
Feb  2 19:31:18 raspberrypi weewxd[920]: ERROR weewx.drivers.vantage: SerialException on write.
Feb  2 19:31:18 raspberrypi weewxd[920]: ERROR weewx.drivers.vantage:    ****  write failed: [Errno 5] Input/output error
Feb  2 19:31:18 raspberrypi weewxd[920]: CRITICAL __main__: Caught WeeWxIOError: Max tries exceeded while getting archive data.
Feb  2 19:31:18 raspberrypi weewxd[920]: CRITICAL __main__:     ****  Waiting 60.0 seconds then retrying...
Feb  2 19:32:18 raspberrypi weewxd[920]: INFO __main__: retrying...
Feb  2 19:32:18 raspberrypi weewxd[920]: INFO weewx.engine: Loading station type Vantage (weewx.drivers.vantage)
Feb  2 19:32:18 raspberrypi weewxd[920]: ERROR weewx.engine: Import of driver failed: [Errno 2] could not open port /dev/ttyUSB0: [Errno 2] No such file or directory: '/dev/ttyUSB0' (<class 'serial.serialutil.SerialException'>)
Feb  2 19:32:18 raspberrypi weewxd[920]: CRITICAL weewx.engine:     ****  Traceback (most recent call last):
Feb  2 19:32:18 raspberrypi weewxd[920]: CRITICAL weewx.engine:     ****    File "/usr/lib/python3/dist-packages/serial/serialposix.py", line 322, in open
Feb  2 19:32:18 raspberrypi weewxd[920]: CRITICAL weewx.engine:     ****      self.fd = os.open(self.portstr, os.O_RDWR | os.O_NOCTTY | os.O_NONBLOCK)
Feb  2 19:32:18 raspberrypi weewxd[920]: CRITICAL weewx.engine:     ****  FileNotFoundError: [Errno 2] No such file or directory: '/dev/ttyUSB0'
Feb  2 19:32:18 raspberrypi weewxd[920]: CRITICAL weewx.engine:     ****  
Feb  2 19:32:18 raspberrypi weewxd[920]: CRITICAL weewx.engine:     ****  During handling of the above exception, another exception occurred:
Feb  2 19:32:18 raspberrypi weewxd[920]: CRITICAL weewx.engine:     ****  
Feb  2 19:32:18 raspberrypi weewxd[920]: CRITICAL weewx.engine:     ****  Traceback (most recent call last):
Feb  2 19:32:18 raspberrypi weewxd[920]: CRITICAL weewx.engine:     ****    File "/usr/share/weewx/weewx/engine.py", line 115, in setupStation
Feb  2 19:32:18 raspberrypi weewxd[920]: CRITICAL weewx.engine:     ****      self.console = loader_function(config_dict, self)
Feb  2 19:32:18 raspberrypi weewxd[920]: CRITICAL weewx.engine:     ****    File "/usr/share/weewx/weewx/drivers/vantage.py", line 32, in loader
Feb  2 19:32:18 raspberrypi weewxd[920]: CRITICAL weewx.engine:     ****      return VantageService(engine, config_dict)
Feb  2 19:32:18 raspberrypi weewxd[920]: CRITICAL weewx.engine:     ****    File "/usr/share/weewx/weewx/drivers/vantage.py", line 2046, in __init__
Feb  2 19:32:18 raspberrypi weewxd[920]: CRITICAL weewx.engine:     ****      Vantage.__init__(self, **config_dict[DRIVER_NAME])
Feb  2 19:32:18 raspberrypi weewxd[920]: CRITICAL weewx.engine:     ****    File "/usr/share/weewx/weewx/drivers/vantage.py", line 536, in __init__
Feb  2 19:32:18 raspberrypi weewxd[920]: CRITICAL weewx.engine:     ****      self.port.openPort()
Feb  2 19:32:18 raspberrypi weewxd[920]: CRITICAL weewx.engine:     ****    File "/usr/share/weewx/weewx/drivers/vantage.py", line 319, in openPort
Feb  2 19:32:18 raspberrypi weewxd[920]: CRITICAL weewx.engine:     ****      self.serial_port = serial.Serial(self.port, self.baudrate, timeout=self.timeout)
Feb  2 19:32:18 raspberrypi weewxd[920]: CRITICAL weewx.engine:     ****    File "/usr/lib/python3/dist-packages/serial/serialutil.py", line 244, in __init__
Feb  2 19:32:18 raspberrypi weewxd[920]: CRITICAL weewx.engine:     ****      self.open()
Feb  2 19:32:18 raspberrypi weewxd[920]: CRITICAL weewx.engine:     ****    File "/usr/lib/python3/dist-packages/serial/serialposix.py", line 325, in open
Feb  2 19:32:18 raspberrypi weewxd[920]: CRITICAL weewx.engine:     ****      raise SerialException(msg.errno, "could not open port {}: {}".format(self._port, msg))
Feb  2 19:32:18 raspberrypi weewxd[920]: CRITICAL weewx.engine:     ****  serial.serialutil.SerialException: [Errno 2] could not open port /dev/ttyUSB0: [Errno 2] No such file or directory: '/dev/ttyUSB0'
Feb  2 19:32:18 raspberrypi weewxd[920]: CRITICAL __main__: Unable to load driver: [Errno 2] could not open port /dev/ttyUSB0: [Errno 2] No such file or directory: '/dev/ttyUSB0'
Feb  2 19:32:18 raspberrypi weewxd[920]: CRITICAL __main__:     ****  Exiting...
Feb  2 19:32:18 raspberrypi systemd[1]: weewx.service: Main process exited, code=exited, status=4/NOPERMISSION
Feb  2 19:32:18 raspberrypi systemd[1]: weewx.service: Failed with result 'exit-code'.
Feb  2 19:32:18 raspberrypi systemd[1]: weewx.service: Consumed 1.013s CPU time.

Tom Keffer

unread,
Feb 2, 2024, 8:53:40 PM2/2/24
to weewx...@googlegroups.com
Is this a serial logger with a serial-to-USB converter? Or, a USB logger? If the former, try another converter.

A couple of ferrite coils might help. See the wiki article on troubleshooting Davis stations.

It's also possible that the power supply of the RPi is failing and can't deliver enough power. Try another power supply, or a powered USB hub.



--
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+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/d891413b-664b-48fa-9f6e-ed66acaff4dbn%40googlegroups.com.

Joe

unread,
Feb 2, 2024, 9:23:04 PM2/2/24
to weewx-user
Its a standard PI4. No external USB devices are connected except for the Vantage data logger.
There are coils on both ends of the cable, too.  I'm going to try to find another power supply though.

Peter Fletcher

unread,
Feb 3, 2024, 3:37:15 PM2/3/24
to weewx-user
It is very unlikely to be the Pi power supply if the Pi itself is not flagging up power problems.

Joe

unread,
Feb 5, 2024, 6:53:39 AM2/5/24
to weewx-user

Even tried a new port # on the PI computer.  It sees the davis but hates it


Feb  5 05:48:15 raspberrypi weewxd[4416]: CRITICAL __main__:     ****  Exiting...
Feb  5 05:48:15 raspberrypi systemd[1]: weewx.service: Main process exited, code=exited, status=4/NOPERMISSION
Feb  5 05:48:15 raspberrypi systemd[1]: weewx.service: Failed with result 'exit-code'.
Feb  5 05:48:47 raspberrypi kernel: [206364.060056] usb 1-1.3: USB disconnect, device number 32
Feb  5 05:48:47 raspberrypi kernel: [206364.060992] cp210x ttyUSB0: cp210x converter now disconnected from ttyUSB0
Feb  5 05:48:47 raspberrypi kernel: [206364.061124] cp210x 1-1.3:1.0: device disconnected
Feb  5 05:48:51 raspberrypi kernel: [206368.742960] usb 1-1.2: new full-speed USB device number 33 using xhci_hcd
Feb  5 05:48:52 raspberrypi kernel: [206368.823208] usb 1-1.2: device descriptor read/64, error -32
Feb  5 05:48:52 raspberrypi kernel: [206369.011191] usb 1-1.2: device descriptor read/64, error -32
Feb  5 05:48:52 raspberrypi kernel: [206369.198959] usb 1-1.2: new full-speed USB device number 34 using xhci_hcd
Feb  5 05:48:52 raspberrypi kernel: [206369.279207] usb 1-1.2: device descriptor read/64, error -32
Feb  5 05:48:52 raspberrypi kernel: [206369.467193] usb 1-1.2: device descriptor read/64, error -32
Feb  5 05:48:52 raspberrypi kernel: [206369.575606] usb 1-1-port2: attempt power cycle
Feb  5 05:48:53 raspberrypi kernel: [206370.178963] usb 1-1.2: new full-speed USB device number 35 using xhci_hcd
Feb  5 05:48:53 raspberrypi kernel: [206370.179245] usb 1-1.2: Device not responding to setup address.
Feb  5 05:48:53 raspberrypi kernel: [206370.387214] usb 1-1.2: Device not responding to setup address.
Feb  5 05:48:53 raspberrypi kernel: [206370.594992] usb 1-1.2: device not accepting address 35, error -71
Feb  5 05:49:14 raspberrypi kernel: [206391.719029] usb 1-1.2: new full-speed USB device number 37 using xhci_hcd
Feb  5 05:49:15 raspberrypi kernel: [206391.824466] usb 1-1.2: New USB device found, idVendor=10c4, idProduct=ea60, bcdDevice= 1.00
Feb  5 05:49:15 raspberrypi kernel: [206391.824500] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Feb  5 05:49:15 raspberrypi kernel: [206391.824518] usb 1-1.2: Product: CP2102 USB to UART Bridge Controller
Feb  5 05:49:15 raspberrypi kernel: [206391.824532] usb 1-1.2: Manufacturer: Silicon Labs
Feb  5 05:49:15 raspberrypi kernel: [206391.824545] usb 1-1.2: SerialNumber: 0001
Feb  5 05:49:15 raspberrypi kernel: [206391.830290] cp210x 1-1.2:1.0: cp210x converter detected
Feb  5 05:49:15 raspberrypi kernel: [206391.836351] usb 1-1.2: cp210x converter now attached to ttyUSB0
Feb  5 05:49:15 raspberrypi mtp-probe: checking bus 1, device 37: "/sys/devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb1/1-1/1-1.2"
Feb  5 05:49:15 raspberrypi mtp-probe: bus: 1, device: 37 was not an MTP device
Feb  5 05:49:15 raspberrypi mtp-probe: checking bus 1, device 37: "/sys/devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb1/1-1/1-1.2"
Feb  5 05:49:15 raspberrypi mtp-probe: bus: 1, device: 37 was not an MTP device
Feb  5 05:49:17 raspberrypi ModemManager[453]: <info>  [base-manager] couldn't check support for device '/sys/devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb1/1-1/1-1.2': not supported by any plugin
Feb  5 05:50:33 raspberrypi systemd[1]: Started WeeWX.
Feb  5 05:50:34 raspberrypi weewxd[4471]: INFO __main__: Initializing weewxd version 5.0.0
Feb  5 05:50:34 raspberrypi weewxd[4471]: INFO __main__: Command line: /usr/share/weewx/weewxd.py /etc/weewx/weewx.conf
Feb  5 05:50:34 raspberrypi weewxd[4471]: INFO __main__: Using Python 3.9.2 (default, Mar 12 2021, 04:06:34) #012[GCC 10.2.1 20210110]
Feb  5 05:50:34 raspberrypi weewxd[4471]: INFO __main__: Located at /usr/bin/python3
Feb  5 05:50:34 raspberrypi weewxd[4471]: INFO __main__: Platform Linux-6.1.21-v8+-aarch64-with-glibc2.31
Feb  5 05:50:34 raspberrypi weewxd[4471]: INFO __main__: Locale: 'en_US.UTF-8'
Feb  5 05:50:34 raspberrypi weewxd[4471]: INFO __main__: Entry path: /usr/share/weewx/weewxd.py
Feb  5 05:50:34 raspberrypi weewxd[4471]: INFO __main__: WEEWX_ROOT: /
Feb  5 05:50:34 raspberrypi weewxd[4471]: INFO __main__: Configuration file: /etc/weewx/weewx.conf
Feb  5 05:50:34 raspberrypi weewxd[4471]: INFO __main__: User module: /etc/weewx/bin/user
Feb  5 05:50:34 raspberrypi weewxd[4471]: INFO __main__: Debug: 0
Feb  5 05:50:34 raspberrypi weewxd[4471]: INFO weewx.engine: Loading station type Vantage (weewx.drivers.vantage)
Feb  5 05:50:34 raspberrypi kernel: [206471.195927] cp210x ttyUSB0: usb_serial_generic_read_bulk_callback - urb stopped: -32
Feb  5 05:50:34 raspberrypi kernel: [206471.196586] cp210x ttyUSB0: usb_serial_generic_read_bulk_callback - urb stopped: -32
Feb  5 05:50:34 raspberrypi kernel: [206471.268421] usb 1-1.2: USB disconnect, device number 37
Feb  5 05:50:34 raspberrypi kernel: [206471.268765] cp210x ttyUSB0: failed set request 0x7 status: -19
Feb  5 05:50:34 raspberrypi kernel: [206471.268797] cp210x ttyUSB0: failed set request 0x12 status: -19
Feb  5 05:50:34 raspberrypi kernel: [206471.268814] cp210x ttyUSB0: failed set request 0x0 status: -19
Feb  5 05:50:34 raspberrypi kernel: [206471.269465] cp210x ttyUSB0: cp210x converter now disconnected from ttyUSB0
Feb  5 05:50:34 raspberrypi kernel: [206471.269578] cp210x 1-1.2:1.0: device disconnected
Feb  5 05:50:39 raspberrypi weewxd[4471]: ERROR weewx.drivers.vantage: Unable to wake up Vantage console
Feb  5 05:50:39 raspberrypi weewxd[4471]: ERROR weewx.engine: Import of driver failed: Unable to wake up Vantage console (<class 'weewx.WakeupError'>)
Feb  5 05:50:39 raspberrypi weewxd[4471]: CRITICAL weewx.engine:     ****  Traceback (most recent call last):
Feb  5 05:50:39 raspberrypi weewxd[4471]: CRITICAL weewx.engine:     ****    File "/usr/share/weewx/weewx/engine.py", line 115, in setupStation
Feb  5 05:50:39 raspberrypi weewxd[4471]: CRITICAL weewx.engine:     ****      self.console = loader_function(config_dict, self)
Feb  5 05:50:39 raspberrypi weewxd[4471]: CRITICAL weewx.engine:     ****    File "/usr/share/weewx/weewx/drivers/vantage.py", line 32, in loader
Feb  5 05:50:39 raspberrypi weewxd[4471]: CRITICAL weewx.engine:     ****      return VantageService(engine, config_dict)
Feb  5 05:50:39 raspberrypi weewxd[4471]: CRITICAL weewx.engine:     ****    File "/usr/share/weewx/weewx/drivers/vantage.py", line 2046, in __init__
Feb  5 05:50:39 raspberrypi weewxd[4471]: CRITICAL weewx.engine:     ****      Vantage.__init__(self, **config_dict[DRIVER_NAME])
Feb  5 05:50:39 raspberrypi weewxd[4471]: CRITICAL weewx.engine:     ****    File "/usr/share/weewx/weewx/drivers/vantage.py", line 539, in __init__
Feb  5 05:50:39 raspberrypi weewxd[4471]: CRITICAL weewx.engine:     ****      self._setup()
Feb  5 05:50:39 raspberrypi weewxd[4471]: CRITICAL weewx.engine:     ****    File "/usr/share/weewx/weewx/drivers/vantage.py", line 1440, in _setup
Feb  5 05:50:39 raspberrypi weewxd[4471]: CRITICAL weewx.engine:     ****      self.port.wakeup_console(max_tries=self.max_tries)
Feb  5 05:50:39 raspberrypi weewxd[4471]: CRITICAL weewx.engine:     ****    File "/usr/share/weewx/weewx/drivers/vantage.py", line 113, in wakeup_console
Feb  5 05:50:39 raspberrypi weewxd[4471]: CRITICAL weewx.engine:     ****      raise weewx.WakeupError("Unable to wake up Vantage console")
Feb  5 05:50:39 raspberrypi weewxd[4471]: CRITICAL weewx.engine:     ****  weewx.WakeupError: Unable to wake up Vantage console
Feb  5 05:50:39 raspberrypi weewxd[4471]: CRITICAL __main__: Unable to load driver: Unable to wake up Vantage console
Feb  5 05:50:39 raspberrypi weewxd[4471]: CRITICAL __main__:     ****  Exiting...
Feb  5 05:50:39 raspberrypi systemd[1]: weewx.service: Main process exited, code=exited, status=4/NOPERMISSION
Feb  5 05:50:39 raspberrypi systemd[1]: weewx.service: Failed with result 'exit-code'.
Feb  5 05:51:15 raspberrypi kernel: [206512.559257] usb 1-1.2: new full-speed USB device number 38 using xhci_hcd
Feb  5 05:51:15 raspberrypi kernel: [206512.664702] usb 1-1.2: New USB device found, idVendor=10c4, idProduct=ea60, bcdDevice= 1.00
Feb  5 05:51:15 raspberrypi kernel: [206512.664736] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Feb  5 05:51:15 raspberrypi kernel: [206512.664754] usb 1-1.2: Product: CP2102 USB to UART Bridge Controller
Feb  5 05:51:15 raspberrypi kernel: [206512.664769] usb 1-1.2: Manufacturer: Silicon Labs
Feb  5 05:51:15 raspberrypi kernel: [206512.664782] usb 1-1.2: SerialNumber: 0001
Feb  5 05:51:15 raspberrypi kernel: [206512.670692] cp210x 1-1.2:1.0: cp210x converter detected
Feb  5 05:51:15 raspberrypi kernel: [206512.676544] usb 1-1.2: cp210x converter now attached to ttyUSB0
Feb  5 05:51:15 raspberrypi mtp-probe: checking bus 1, device 38: "/sys/devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb1/1-1/1-1.2"
Feb  5 05:51:15 raspberrypi mtp-probe: bus: 1, device: 38 was not an MTP device
Feb  5 05:51:16 raspberrypi mtp-probe: checking bus 1, device 38: "/sys/devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb1/1-1/1-1.2"
Feb  5 05:51:16 raspberrypi mtp-probe: bus: 1, device: 38 was not an MTP device
Feb  5 05:51:18 raspberrypi ModemManager[453]: <info>  [base-manager] couldn't check support for device '/sys/devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb1/1-1/1-1.2': not supported by any plugin

Tom Keffer

unread,
Feb 5, 2024, 8:04:52 AM2/5/24
to weewx...@googlegroups.com
Try removing modemmanager:

sudo apt purge modemmanager


Joe

unread,
Feb 5, 2024, 6:37:30 PM2/5/24
to weewx-user
I replaced the USB cable, and it works now.

I dont have the ferrite cores on it yet though. Trying it without them.

Joe

unread,
Feb 9, 2024, 2:00:36 PM2/9/24
to weewx-user

Weewx failed to start or run again.

Feb  9 12:57:01 raspberrypi systemd[1]: Started WeeWX.
Feb  9 12:57:02 raspberrypi weewxd[12139]: INFO __main__: Initializing weewxd version 5.0.0
Feb  9 12:57:02 raspberrypi weewxd[12139]: INFO __main__: Command line: /usr/share/weewx/weewxd.py /etc/weewx/weewx.conf
Feb  9 12:57:02 raspberrypi weewxd[12139]: INFO __main__: Using Python 3.9.2 (default, Mar 12 2021, 04:06:34) #012[GCC 10.2.1 20210110]
Feb  9 12:57:02 raspberrypi weewxd[12139]: INFO __main__: Located at /usr/bin/python3
Feb  9 12:57:02 raspberrypi weewxd[12139]: INFO __main__: Platform Linux-6.1.21-v8+-aarch64-with-glibc2.31
Feb  9 12:57:02 raspberrypi weewxd[12139]: INFO __main__: Locale: 'en_US.UTF-8'
Feb  9 12:57:02 raspberrypi weewxd[12139]: INFO __main__: Entry path: /usr/share/weewx/weewxd.py
Feb  9 12:57:02 raspberrypi weewxd[12139]: INFO __main__: WEEWX_ROOT: /
Feb  9 12:57:02 raspberrypi weewxd[12139]: INFO __main__: Configuration file: /etc/weewx/weewx.conf
Feb  9 12:57:02 raspberrypi weewxd[12139]: INFO __main__: User module: /etc/weewx/bin/user
Feb  9 12:57:02 raspberrypi weewxd[12139]: INFO __main__: Debug: 0
Feb  9 12:57:02 raspberrypi weewxd[12139]: INFO weewx.engine: Loading station type Vantage (weewx.drivers.vantage)
Feb  9 12:57:02 raspberrypi weewxd[12139]: ERROR weewx.engine: Import of driver failed: [Errno 2] could not open port /dev/ttyUSB0: [Errno 2] No such file or directory: '/dev/ttyUSB0' (<class 'serial.serialutil.SerialException'>)
Feb  9 12:57:02 raspberrypi weewxd[12139]: CRITICAL weewx.engine:     ****  Traceback (most recent call last):
Feb  9 12:57:02 raspberrypi weewxd[12139]: CRITICAL weewx.engine:     ****    File "/usr/lib/python3/dist-packages/serial/serialposix.py", line 322, in open
Feb  9 12:57:02 raspberrypi weewxd[12139]: CRITICAL weewx.engine:     ****      self.fd = os.open(self.portstr, os.O_RDWR | os.O_NOCTTY | os.O_NONBLOCK)
Feb  9 12:57:02 raspberrypi weewxd[12139]: CRITICAL weewx.engine:     ****  FileNotFoundError: [Errno 2] No such file or directory: '/dev/ttyUSB0'
Feb  9 12:57:02 raspberrypi weewxd[12139]: CRITICAL weewx.engine:     ****  
Feb  9 12:57:02 raspberrypi weewxd[12139]: CRITICAL weewx.engine:     ****  During handling of the above exception, another exception occurred:
Feb  9 12:57:02 raspberrypi weewxd[12139]: CRITICAL weewx.engine:     ****  
Feb  9 12:57:02 raspberrypi weewxd[12139]: CRITICAL weewx.engine:     ****  Traceback (most recent call last):
Feb  9 12:57:02 raspberrypi weewxd[12139]: CRITICAL weewx.engine:     ****    File "/usr/share/weewx/weewx/engine.py", line 115, in setupStation
Feb  9 12:57:02 raspberrypi weewxd[12139]: CRITICAL weewx.engine:     ****      self.console = loader_function(config_dict, self)
Feb  9 12:57:02 raspberrypi weewxd[12139]: CRITICAL weewx.engine:     ****    File "/usr/share/weewx/weewx/drivers/vantage.py", line 32, in loader
Feb  9 12:57:02 raspberrypi weewxd[12139]: CRITICAL weewx.engine:     ****      return VantageService(engine, config_dict)
Feb  9 12:57:02 raspberrypi weewxd[12139]: CRITICAL weewx.engine:     ****    File "/usr/share/weewx/weewx/drivers/vantage.py", line 2046, in __init__
Feb  9 12:57:02 raspberrypi weewxd[12139]: CRITICAL weewx.engine:     ****      Vantage.__init__(self, **config_dict[DRIVER_NAME])
Feb  9 12:57:02 raspberrypi weewxd[12139]: CRITICAL weewx.engine:     ****    File "/usr/share/weewx/weewx/drivers/vantage.py", line 536, in __init__
Feb  9 12:57:02 raspberrypi weewxd[12139]: CRITICAL weewx.engine:     ****      self.port.openPort()
Feb  9 12:57:02 raspberrypi weewxd[12139]: CRITICAL weewx.engine:     ****    File "/usr/share/weewx/weewx/drivers/vantage.py", line 319, in openPort
Feb  9 12:57:02 raspberrypi weewxd[12139]: CRITICAL weewx.engine:     ****      self.serial_port = serial.Serial(self.port, self.baudrate, timeout=self.timeout)
Feb  9 12:57:02 raspberrypi weewxd[12139]: CRITICAL weewx.engine:     ****    File "/usr/lib/python3/dist-packages/serial/serialutil.py", line 244, in __init__
Feb  9 12:57:02 raspberrypi weewxd[12139]: CRITICAL weewx.engine:     ****      self.open()
Feb  9 12:57:02 raspberrypi weewxd[12139]: CRITICAL weewx.engine:     ****    File "/usr/lib/python3/dist-packages/serial/serialposix.py", line 325, in open
Feb  9 12:57:02 raspberrypi weewxd[12139]: CRITICAL weewx.engine:     ****      raise SerialException(msg.errno, "could not open port {}: {}".format(self._port, msg))
Feb  9 12:57:02 raspberrypi weewxd[12139]: CRITICAL weewx.engine:     ****  serial.serialutil.SerialException: [Errno 2] could not open port /dev/ttyUSB0: [Errno 2] No such file or directory: '/dev/ttyUSB0'
Feb  9 12:57:02 raspberrypi weewxd[12139]: CRITICAL __main__: Unable to load driver: [Errno 2] could not open port /dev/ttyUSB0: [Errno 2] No such file or directory: '/dev/ttyUSB0'
Feb  9 12:57:02 raspberrypi weewxd[12139]: CRITICAL __main__:     ****  Exiting...
Feb  9 12:57:02 raspberrypi systemd[1]: weewx.service: Main process exited, code=exited, status=4/NOPERMISSION
Feb  9 12:57:02 raspberrypi systemd[1]: weewx.service: Failed with result 'exit-code'.


However prior to that, this error was seen

Feb  8 14:45:56 raspberrypi kernel: [497794.276168] cp210x ttyUSB0: usb_serial_generic_read_bulk_callback - urb stopped: -32
Feb  8 14:46:02 raspberrypi kernel: [497800.099892] cp210x ttyUSB0: usb_serial_generic_read_bulk_callback - urb stopped: -32
Feb  8 14:46:06 raspberrypi weewxd[5015]: ERROR weewx.drivers.vantage: LOOP batch try #1; error: Expected to read 99 chars; got 0 instead
Feb  8 14:46:33 raspberrypi weewxd[5015]: ERROR weewx.drivers.vantage: Unable to wake up Vantage console
Feb  8 14:46:33 raspberrypi weewxd[5015]: ERROR weewx.drivers.vantage: LOOP batch try #2; error: Unable to wake up Vantage console
Feb  8 14:46:59 raspberrypi weewxd[5015]: ERROR weewx.drivers.vantage: Unable to wake up Vantage console
Feb  8 14:46:59 raspberrypi weewxd[5015]: ERROR weewx.drivers.vantage: LOOP batch try #3; error: Unable to wake up Vantage console
Feb  8 14:46:59 raspberrypi weewxd[5015]: ERROR weewx.drivers.vantage: LOOP max batch errors (3) exceeded.
Feb  8 14:46:59 raspberrypi weewxd[5015]: INFO weewx.engine: Main loop exiting. Shutting engine down.
Feb  8 14:46:59 raspberrypi weewxd[5015]: INFO weewx.engine: Shutting down StdReport thread
Feb  8 14:46:59 raspberrypi weewxd[5015]: CRITICAL __main__: Caught WeeWxIOError: LOOP max batch errors (3) exceeded.
Feb  8 14:46:59 raspberrypi weewxd[5015]: CRITICAL __main__:     ****  Waiting 60.0 seconds then retrying...

Joe

unread,
Feb 9, 2024, 2:07:41 PM2/9/24
to weewx-user
Plug in the replacement cable with ferrite cores, and I get this error

eb  9 13:03:58 raspberrypi kernel: [578076.357712] usb 1-1.4: USB disconnect, device number 42
Feb  9 13:03:58 raspberrypi kernel: [578076.358554] cp210x ttyUSB1: cp210x converter now disconnected from ttyUSB1
Feb  9 13:03:58 raspberrypi kernel: [578076.358689] cp210x 1-1.4:1.0: device disconnected
Feb  9 13:06:10 raspberrypi kernel: [578208.959876] usb 1-1.4: new full-speed USB device number 43 using xhci_hcd
Feb  9 13:06:11 raspberrypi kernel: [578209.065310] usb 1-1.4: New USB device found, idVendor=10c4, idProduct=ea60, bcdDevice= 1.00
Feb  9 13:06:11 raspberrypi kernel: [578209.065345] usb 1-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Feb  9 13:06:11 raspberrypi kernel: [578209.065362] usb 1-1.4: Product: CP2102 USB to UART Bridge Controller
Feb  9 13:06:11 raspberrypi kernel: [578209.065377] usb 1-1.4: Manufacturer: Silicon Labs
Feb  9 13:06:11 raspberrypi kernel: [578209.065390] usb 1-1.4: SerialNumber: 0001
Feb  9 13:06:11 raspberrypi kernel: [578209.071129] cp210x 1-1.4:1.0: cp210x converter detected
Feb  9 13:06:11 raspberrypi kernel: [578209.077119] usb 1-1.4: cp210x converter now attached to ttyUSB0
Feb  9 13:06:11 raspberrypi mtp-probe: checking bus 1, device 43: "/sys/devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb1/1-1/1-1.4"
Feb  9 13:06:11 raspberrypi mtp-probe: bus: 1, device: 43 was not an MTP device
Feb  9 13:06:11 raspberrypi mtp-probe: checking bus 1, device 43: "/sys/devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb1/1-1/1-1.4"
Feb  9 13:06:11 raspberrypi mtp-probe: bus: 1, device: 43 was not an MTP device
Feb  9 13:06:13 raspberrypi ModemManager[453]: <info>  [base-manager] couldn't check support for device '/sys/devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb1/1-1/1-1.4': not supported by any plugin

Joe

unread,
Feb 9, 2024, 2:08:35 PM2/9/24
to weewx-user

START weewx, and it begins publishing records again from the console.............................

Joe

unread,
Feb 9, 2024, 2:12:14 PM2/9/24
to weewx-user
Feb  9 13:07:55 raspberrypi systemd[1]: Started WeeWX.
Feb  9 13:07:56 raspberrypi weewxd[12185]: INFO __main__: Initializing weewxd version 5.0.0
Feb  9 13:07:56 raspberrypi weewxd[12185]: INFO __main__: Command line: /usr/share/weewx/weewxd.py /etc/weewx/weewx.conf
Feb  9 13:07:56 raspberrypi weewxd[12185]: INFO __main__: Using Python 3.9.2 (default, Mar 12 2021, 04:06:34) #012[GCC 10.2.1 20210110]
Feb  9 13:07:56 raspberrypi weewxd[12185]: INFO __main__: Located at /usr/bin/python3
Feb  9 13:07:56 raspberrypi weewxd[12185]: INFO __main__: Platform Linux-6.1.21-v8+-aarch64-with-glibc2.31
Feb  9 13:07:56 raspberrypi weewxd[12185]: INFO __main__: Locale: 'en_US.UTF-8'
Feb  9 13:07:56 raspberrypi weewxd[12185]: INFO __main__: Entry path: /usr/share/weewx/weewxd.py
Feb  9 13:07:56 raspberrypi weewxd[12185]: INFO __main__: WEEWX_ROOT: /
Feb  9 13:07:56 raspberrypi weewxd[12185]: INFO __main__: Configuration file: /etc/weewx/weewx.conf
Feb  9 13:07:56 raspberrypi weewxd[12185]: INFO __main__: User module: /etc/weewx/bin/user
Feb  9 13:07:56 raspberrypi weewxd[12185]: INFO __main__: Debug: 0
Feb  9 13:07:56 raspberrypi weewxd[12185]: INFO weewx.engine: Loading station type Vantage (weewx.drivers.vantage)
Feb  9 13:07:57 raspberrypi weewxd[12185]: INFO weewx.engine: StdConvert target unit is 0x1
Feb  9 13:07:57 raspberrypi weewxd[12185]: INFO weewx.wxservices: StdWXCalculate will use data binding wx_binding
Feb  9 13:07:57 raspberrypi weewxd[12185]: INFO weewx.engine: Archive will use data binding wx_binding
Feb  9 13:07:57 raspberrypi weewxd[12185]: INFO weewx.engine: Record generation will be attempted in 'hardware'
Feb  9 13:07:57 raspberrypi weewxd[12185]: INFO weewx.engine: Using archive interval of 300 seconds (specified by hardware)
Feb  9 13:07:57 raspberrypi weewxd[12185]: INFO weewx.restx: StationRegistry: Station will not be registered: no station_url specified.
Feb  9 13:07:57 raspberrypi weewxd[12185]: INFO weewx.restx: Wunderground: Posting not enabled.
Feb  9 13:07:57 raspberrypi weewxd[12185]: INFO weewx.restx: PWSWeather: Data for station JTX99 will be posted
Feb  9 13:07:57 raspberrypi weewxd[12185]: INFO weewx.restx: CWOP: Posting not enabled.
Feb  9 13:07:57 raspberrypi weewxd[12185]: INFO weewx.restx: WOW: Posting not enabled.
Feb  9 13:07:57 raspberrypi weewxd[12185]: INFO weewx.restx: AWEKAS: Posting not enabled.
Feb  9 13:07:57 raspberrypi weewxd[12185]: INFO weewx.engine: 'pyephem' detected, extended almanac data is available
Feb  9 13:07:57 raspberrypi weewxd[12185]: INFO __main__: Starting up weewx version 5.0.0
Feb  9 13:07:57 raspberrypi weewxd[12185]: INFO weewx.engine: Clock error is 4.14 seconds (positive is fast)
Feb  9 13:07:57 raspberrypi weewxd[12185]: INFO weewx.engine: Using binding 'wx_binding' to database 'weewx.sdb'
Feb  9 13:07:57 raspberrypi weewxd[12185]: INFO weewx.manager: Starting backfill of daily summaries
Feb  9 13:07:57 raspberrypi weewxd[12185]: INFO weewx.manager: Daily summaries up to date

Tom Keffer

unread,
Feb 9, 2024, 4:58:05 PM2/9/24
to weewx...@googlegroups.com
The log in that last email looked pretty normal. Is there a problem?

You should upgrade to v5.0.1. 

Be sure to get rid of ModemManager. It competes with weewxd for the port.

sudo apt purge 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+...@googlegroups.com.

Joe

unread,
Feb 9, 2024, 5:29:22 PM2/9/24
to weewx-user
Well, it failed with a USB error is the problem. I put the ferrite core on the cable and plugged it back in and it started normally.
Didnt see there was an update, I will do that, and remove the modemmanger

Joe

unread,
Feb 10, 2024, 8:47:09 AM2/10/24
to weewx-user
Back with the USB error again now..

Feb 10 07:45:51 raspberrypi systemd[1]: Started WeeWX.
Feb 10 07:45:51 raspberrypi weewxd[797]: INFO __main__: Initializing weewxd version 5.0.0
Feb 10 07:45:51 raspberrypi weewxd[797]: INFO __main__: Command line: /usr/share/weewx/weewxd.py /etc/weewx/weewx.conf
Feb 10 07:45:51 raspberrypi weewxd[797]: INFO __main__: Using Python 3.9.2 (default, Mar 12 2021, 04:06:34) #012[GCC 10.2.1 20210110]
Feb 10 07:45:51 raspberrypi weewxd[797]: INFO __main__: Located at /usr/bin/python3
Feb 10 07:45:51 raspberrypi weewxd[797]: INFO __main__: Platform Linux-6.1.21-v8+-aarch64-with-glibc2.31
Feb 10 07:45:51 raspberrypi weewxd[797]: INFO __main__: Locale: 'en_US.UTF-8'
Feb 10 07:45:51 raspberrypi weewxd[797]: INFO __main__: Entry path: /usr/share/weewx/weewxd.py
Feb 10 07:45:51 raspberrypi weewxd[797]: INFO __main__: WEEWX_ROOT: /
Feb 10 07:45:51 raspberrypi weewxd[797]: INFO __main__: Configuration file: /etc/weewx/weewx.conf
Feb 10 07:45:51 raspberrypi weewxd[797]: INFO __main__: User module: /etc/weewx/bin/user
Feb 10 07:45:51 raspberrypi weewxd[797]: INFO __main__: Debug: 0
Feb 10 07:45:51 raspberrypi weewxd[797]: INFO weewx.engine: Loading station type Vantage (weewx.drivers.vantage)
Feb 10 07:45:51 raspberrypi weewxd[797]: ERROR weewx.engine: Import of driver failed: [Errno 2] could not open port /dev/ttyUSB0: [Errno 2] No such file or directory: '/dev/ttyUSB0' (<class 'serial.serialutil.SerialException'>)
Feb 10 07:45:51 raspberrypi weewxd[797]: CRITICAL weewx.engine:     ****  Traceback (most recent call last):
Feb 10 07:45:51 raspberrypi weewxd[797]: CRITICAL weewx.engine:     ****    File "/usr/lib/python3/dist-packages/serial/serialposix.py", line 322, in open
Feb 10 07:45:51 raspberrypi weewxd[797]: CRITICAL weewx.engine:     ****      self.fd = os.open(self.portstr, os.O_RDWR | os.O_NOCTTY | os.O_NONBLOCK)
Feb 10 07:45:51 raspberrypi weewxd[797]: CRITICAL weewx.engine:     ****  FileNotFoundError: [Errno 2] No such file or directory: '/dev/ttyUSB0'
Feb 10 07:45:51 raspberrypi weewxd[797]: CRITICAL weewx.engine:     ****  
Feb 10 07:45:51 raspberrypi weewxd[797]: CRITICAL weewx.engine:     ****  During handling of the above exception, another exception occurred:
Feb 10 07:45:51 raspberrypi weewxd[797]: CRITICAL weewx.engine:     ****  
Feb 10 07:45:51 raspberrypi weewxd[797]: CRITICAL weewx.engine:     ****  Traceback (most recent call last):
Feb 10 07:45:51 raspberrypi weewxd[797]: CRITICAL weewx.engine:     ****    File "/usr/share/weewx/weewx/engine.py", line 115, in setupStation
Feb 10 07:45:51 raspberrypi weewxd[797]: CRITICAL weewx.engine:     ****      self.console = loader_function(config_dict, self)
Feb 10 07:45:51 raspberrypi weewxd[797]: CRITICAL weewx.engine:     ****    File "/usr/share/weewx/weewx/drivers/vantage.py", line 32, in loader
Feb 10 07:45:51 raspberrypi weewxd[797]: CRITICAL weewx.engine:     ****      return VantageService(engine, config_dict)
Feb 10 07:45:51 raspberrypi weewxd[797]: CRITICAL weewx.engine:     ****    File "/usr/share/weewx/weewx/drivers/vantage.py", line 2046, in __init__
Feb 10 07:45:51 raspberrypi weewxd[797]: CRITICAL weewx.engine:     ****      Vantage.__init__(self, **config_dict[DRIVER_NAME])
Feb 10 07:45:51 raspberrypi weewxd[797]: CRITICAL weewx.engine:     ****    File "/usr/share/weewx/weewx/drivers/vantage.py", line 536, in __init__
Feb 10 07:45:51 raspberrypi weewxd[797]: CRITICAL weewx.engine:     ****      self.port.openPort()
Feb 10 07:45:51 raspberrypi weewxd[797]: CRITICAL weewx.engine:     ****    File "/usr/share/weewx/weewx/drivers/vantage.py", line 319, in openPort
Feb 10 07:45:51 raspberrypi weewxd[797]: CRITICAL weewx.engine:     ****      self.serial_port = serial.Serial(self.port, self.baudrate, timeout=self.timeout)
Feb 10 07:45:51 raspberrypi weewxd[797]: CRITICAL weewx.engine:     ****    File "/usr/lib/python3/dist-packages/serial/serialutil.py", line 244, in __init__
Feb 10 07:45:51 raspberrypi weewxd[797]: CRITICAL weewx.engine:     ****      self.open()
Feb 10 07:45:51 raspberrypi weewxd[797]: CRITICAL weewx.engine:     ****    File "/usr/lib/python3/dist-packages/serial/serialposix.py", line 325, in open
Feb 10 07:45:51 raspberrypi weewxd[797]: CRITICAL weewx.engine:     ****      raise SerialException(msg.errno, "could not open port {}: {}".format(self._port, msg))
Feb 10 07:45:51 raspberrypi weewxd[797]: CRITICAL weewx.engine:     ****  serial.serialutil.SerialException: [Errno 2] could not open port /dev/ttyUSB0: [Errno 2] No such file or directory: '/dev/ttyUSB0'
Feb 10 07:45:51 raspberrypi weewxd[797]: CRITICAL __main__: Unable to load driver: [Errno 2] could not open port /dev/ttyUSB0: [Errno 2] No such file or directory: '/dev/ttyUSB0'
Feb 10 07:45:51 raspberrypi weewxd[797]: CRITICAL __main__:     ****  Exiting...
Feb 10 07:45:52 raspberrypi systemd[1]: weewx.service: Main process exited, code=exited, status=4/NOPERMISSION
Feb 10 07:45:52 raspberrypi systemd[1]: weewx.service: Failed with result 'exit-code'.

Tom Keffer

unread,
Feb 10, 2024, 8:52:03 AM2/10/24
to weewx...@googlegroups.com
Something is causing the usb adapter to release /dev/ttyUSB0. Try the kernel message "dmesg". It may give you some information.

Also you should update to v5.0.2

sudo apt update
sudo apt upgrade

-tk

Joe

unread,
Feb 10, 2024, 11:12:07 AM2/10/24
to weewx-user
Not sure why its doing this.  I will need to check my pi hole to make sure its not stoppiing the inquiry. 



Get:1 http://weewx.com/apt/python3 buster InRelease [4,252 B]
Hit:2 http://raspbian.raspberrypi.org/raspbian bullseye InRelease              
Hit:3 http://archive.raspberrypi.org/debian bullseye InRelease
Err:1 http://weewx.com/apt/python3 buster InRelease
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY E788768B9CB16E10
Fetched 4,252 B in 2s (2,129 B/s)
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
All packages are up to date.
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://weewx.com/apt/python3 buster InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY E788768B9CB16E10
W: Failed to fetch http://weewx.com/apt/python3/dists/buster/InRelease  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY E788768B9CB16E10
W: Some index files failed to download. They have been ignored, or old ones used instead.

vince

unread,
Feb 10, 2024, 1:01:18 PM2/10/24
to weewx-user
Update your apt keys first per the configure apt section at the top of
https://weewx.com/docs/5.0/quickstarts/debian/

Then do Tom’s two commands.

Joe

unread,
Feb 10, 2024, 4:36:09 PM2/10/24
to weewx-user
Thank you for the url about apt keys. Success. I'm running updates and its done, and i restarted weewx and it seems to be doing it however it is getting loop batch errors now I will see if it resolves...

Joe

unread,
Feb 12, 2024, 7:57:41 AM2/12/24
to weewx-user
The loopback errors have stopped for now. Not sure why...  Thanks for the suggestions I hope it helped!
Reply all
Reply to author
Forward
0 new messages