USB Error in Raspberry Pi 5

99 views
Skip to first unread message

areax99

unread,
Sep 11, 2024, 3:33:14 AM9/11/24
to weewx-user


set 10 22:52:51 raspberrypi5 weewxd[1303]: ERROR weewx.drivers.vantage: SerialException on read.

set 10 22:52:51 raspberrypi5 weewxd[1303]: ERROR weewx.drivers.vantage:    ****  device reports readiness to read but returned no data (device disconnected or multiple access on port?)

set 10 22:52:51 raspberrypi5 weewxd[1303]: ERROR weewx.drivers.vantage:    ****  Is there a competing process running??

set 10 22:52:51 raspberrypi5 weewxd[1303]: ERROR weewx.drivers.vantage: LOOP batch try #1; error: device reports readiness to read but returned no data (device disconnected or multiple access on port?)

set 10 22:52:55 raspberrypi5 weewxd[1303]: ERROR weewx.drivers.vantage: Unable to wake up Vantage console

set 10 22:52:55 raspberrypi5 weewxd[1303]: ERROR weewx.drivers.vantage: LOOP batch try #2; error: Unable to wake up Vantage console

set 10 22:53:00 raspberrypi5 weewxd[1303]: ERROR weewx.drivers.vantage: Unable to wake up Vantage console

set 10 22:53:00 raspberrypi5 weewxd[1303]: ERROR weewx.drivers.vantage: LOOP batch try #3; error: Unable to wake up Vantage console

set 10 22:53:00 raspberrypi5 weewxd[1303]: ERROR weewx.drivers.vantage: LOOP max batch errors (3) exceeded.

set 10 22:53:00 raspberrypi5 weewxd[1303]: INFO weewx.engine: Main loop exiting. Shutting engine down.

set 10 22:53:00 raspberrypi5 weewxd[1303]: INFO weewx.engine: Shutting down StdReport thread

set 10 22:53:00 raspberrypi5 weewxd[1303]: ERROR weewx.drivers.vantage: SerialException on write.

set 10 22:53:00 raspberrypi5 weewxd[1303]: ERROR weewx.drivers.vantage:    ****  write failed: [Errno 5] Errore di input/output

set 10 22:53:00 raspberrypi5 weewxd[1303]: CRITICAL __main__: Caught WeeWxIOError: LOOP max batch errors (3) exceeded.

set 10 22:53:00 raspberrypi5 weewxd[1303]: CRITICAL __main__:     ****  Waiting 60.0 seconds then retrying...

set 10 22:54:00 raspberrypi5 weewxd[1303]: INFO __main__: retrying...

set 10 22:54:00 raspberrypi5 weewxd[1303]: INFO weewx.engine: Loading station type Vantage (weewx.drivers.vantage)

set 10 22:54:00 raspberrypi5 weewxd[1303]: ERROR weewx.engine: Import of driver failed: [Errno 2] could not open port /dev/ttyUSB0: [Errno 2] File o directory non esistente: '/dev/ttyUSB0' (<class 'serial.serialutil.SerialException'>)

set 10 22:54:00 raspberrypi5 weewxd[1303]: CRITICAL weewx.engine:     ****  Traceback (most recent call last):

set 10 22:54:00 raspberrypi5 weewxd[1303]: CRITICAL weewx.engine:     ****    File "/usr/lib/python3/dist-packages/serial/serialposix.py", line 322, in open

set 10 22:54:00 raspberrypi5 weewxd[1303]: CRITICAL weewx.engine:     ****      self.fd = os.open(self.portstr, os.O_RDWR | os.O_NOCTTY | os.O_NONBLOCK)

set 10 22:54:00 raspberrypi5 weewxd[1303]: CRITICAL weewx.engine:     ****                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

set 10 22:54:00 raspberrypi5 weewxd[1303]: CRITICAL weewx.engine:     ****  FileNotFoundError: [Errno 2] File o directory non esistente: '/dev/ttyUSB0'

set 10 22:54:00 raspberrypi5 weewxd[1303]: CRITICAL weewx.engine:     ****

set 10 22:54:00 raspberrypi5 weewxd[1303]: CRITICAL weewx.engine:     ****  During handling of the above exception, another exception occurred:

set 10 22:54:00 raspberrypi5 weewxd[1303]: CRITICAL weewx.engine:     ****

set 10 22:54:00 raspberrypi5 weewxd[1303]: CRITICAL weewx.engine:     ****  Traceback (most recent call last):

set 10 22:54:00 raspberrypi5 weewxd[1303]: CRITICAL weewx.engine:     ****    File "/usr/share/weewx/weewx/engine.py", line 115, in setupStation

set 10 22:54:00 raspberrypi5 weewxd[1303]: CRITICAL weewx.engine:     ****      self.console = loader_function(config_dict, self)

set 10 22:54:00 raspberrypi5 weewxd[1303]: CRITICAL weewx.engine:     ****                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

set 10 22:54:00 raspberrypi5 weewxd[1303]: CRITICAL weewx.engine:     ****    File "/usr/share/weewx/weewx/drivers/vantage.py", line 32, in loader

set 10 22:54:00 raspberrypi5 weewxd[1303]: CRITICAL weewx.engine:     ****      return VantageService(engine, config_dict)

set 10 22:54:00 raspberrypi5 weewxd[1303]: CRITICAL weewx.engine:     ****             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

set 10 22:54:00 raspberrypi5 weewxd[1303]: CRITICAL weewx.engine:     ****    File "/usr/share/weewx/weewx/drivers/vantage.py", line 2046, in __init__

set 10 22:54:00 raspberrypi5 weewxd[1303]: CRITICAL weewx.engine:     ****      Vantage.__init__(self, **config_dict[DRIVER_NAME])

set 10 22:54:00 raspberrypi5 weewxd[1303]: CRITICAL weewx.engine:     ****    File "/usr/share/weewx/weewx/drivers/vantage.py", line 536, in __init__

set 10 22:54:00 raspberrypi5 weewxd[1303]: CRITICAL weewx.engine:     ****      self.port.openPort()

set 10 22:54:00 raspberrypi5 weewxd[1303]: CRITICAL weewx.engine:     ****    File "/usr/share/weewx/weewx/drivers/vantage.py", line 319, in openPort

set 10 22:54:00 raspberrypi5 weewxd[1303]: CRITICAL weewx.engine:     ****      self.serial_port = serial.Serial(self.port, self.baudrate, timeout=self.timeout)

set 10 22:54:00 raspberrypi5 weewxd[1303]: CRITICAL weewx.engine:     ****                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

set 10 22:54:00 raspberrypi5 weewxd[1303]: CRITICAL weewx.engine:     ****    File "/usr/lib/python3/dist-packages/serial/serialutil.py", line 244, in __init__

set 10 22:54:00 raspberrypi5 weewxd[1303]: CRITICAL weewx.engine:     ****      self.open()

set 10 22:54:00 raspberrypi5 weewxd[1303]: CRITICAL weewx.engine:     ****    File "/usr/lib/python3/dist-packages/serial/serialposix.py", line 325, in open

set 10 22:54:00 raspberrypi5 weewxd[1303]: CRITICAL weewx.engine:     ****      raise SerialException(msg.errno, "could not open port {}: {}".format(self._port, msg))

set 10 22:54:00 raspberrypi5 weewxd[1303]: CRITICAL weewx.engine:     ****  serial.serialutil.SerialException: [Errno 2] could not open port /dev/ttyUSB0: [Errno 2] File o directory non esistente: '/dev/ttyUSB0'

set 10 22:54:00 raspberrypi5 weewxd[1303]: CRITICAL __main__: Unable to load driver: [Errno 2] could not open port /dev/ttyUSB0: [Errno 2] File o directory non esistente: '/dev/ttyUSB0'

set 10 22:54:00 raspberrypi5 weewxd[1303]: CRITICAL __main__:     ****  Exiting...

set 10 22:54:00 raspberrypi5 systemd[1]: weewx.service: Main process exited, code=exited, status=4/NOPERMISSION

set 10 22:54:00 raspberrypi5 systemd[1]: weewx.service: Failed with result 'exit-code'.

set 10 22:54:00 raspberrypi5 systemd[1]: weewx.service: Consumed 7min 26.322s CPU time.


Since I switched from Rpi 4 to Rpi 5, I sometimes get this error from weewx. And then I am forced to reboot it.

Tom Keffer

unread,
Sep 11, 2024, 10:54:25 AM9/11/24
to weewx...@googlegroups.com
You specified /dev/ttyUSB0 as the port the Vantage is connected to. Unfortunately, it's not there.

This can happen when the Vantage disconnects for some reason. It will often reconnect at a different port. This is particularly common if you use a serial to USB port converter. 

See the wiki guide on Troubleshooting Davis stations. In particular, the section David cp2101 converter problems and the following section, Installing a udev script.

--
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/3524ec88-b064-4a2e-94ed-a2064186122bn%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages