I ran into the same issue yesterday when upgrading my RaspberryPI. The device had changed from /dev/ttyUSB0 to /dev/ttyUSB1
I updated the weewx.conf file and all is well. > On Oct 28, 2022, at 9:12 AM, wfs...@gmail.com <wfs9...@gmail.com> wrote: > > I just updated to 4.9.1 and am having similar problems..."unable to wake up > Vantage console". I have a VP1 and I've rebooted the Pi and unplugged and > replugged the serial-to-USB interface. > > At reboot when Weewx first tries to start, it gets the unable to wakeup > error. If I do a sudo /etc/init.d/weewx stop and then sudo /etc/init.d/weewx > start, it starts OK. But I have yet to see it process an archive interval > correctly. It's getting an unable to wakeup error every time. > > FWIW, I was watching the syslog with tail -f and the try errors all spilled > out at once, like it wasn't pausing between retries. > > My setup up until now has been very stable. I'll go for months without any > errors. > > At update, I chose to keep my current weewx.conf, and I haven't made any > changes. The only somewhat unexpected difference between my weewx.conf and > weewx.conf-4.9.1 is that the socket timeout parameter is not in 4.9.1. But > that seems unrelated, and it's still in my weewx.conf anyway. > > Walt > > At initial startup: > > Oct 28 08:20:56 raspberrypi weewx[907] INFO weewx.engine: Loading station > type Vantage (weewx.drivers.vantage) > Oct 28 08:20:56 raspberrypi weewx[894]: Starting weewx weather system: weewx. > Oct 28 08:20:56 raspberrypi systemd[1]: Started LSB: weewx weather system. > Oct 28 08:20:56 raspberrypi weewx[907] ERROR weewx.drivers.vantage: Unable to > wake up Vantage console > Oct 28 08:20:56 raspberrypi weewx[907] ERROR weewx.engine: Import of driver > failed: Unable to wake up Vantage console (<class 'weewx.WakeupError'>) > Oct 28 08:20:56 raspberrypi weewx[907] CRITICAL weewx.engine: **** > Traceback (most recent call last): > Oct 28 08:20:56 raspberrypi weewx[907] CRITICAL weewx.engine: **** > File "/usr/share/weewx/weewx/engine.py", line 119, in setupStation > Oct 28 08:20:56 raspberrypi weewx[907] CRITICAL weewx.engine: **** > self.console = loader_function(config_dict, self) > Oct 28 08:20:56 raspberrypi weewx[907] CRITICAL weewx.engine: **** > File "/usr/share/weewx/weewx/drivers/vantage.py", line 40, in loader > Oct 28 08:20:56 raspberrypi weewx[907] CRITICAL weewx.engine: **** > return VantageService(engine, config_dict) > Oct 28 08:20:56 raspberrypi weewx[907] CRITICAL weewx.engine: **** > File "/usr/share/weewx/weewx/drivers/vantage.py", line 1939, in __init__ > Oct 28 08:20:56 raspberrypi weewx[907] CRITICAL weewx.engine: **** > Vantage.__init__(self, **config_dict[DRIVER_NAME]) > Oct 28 08:20:56 raspberrypi weewx[907] CRITICAL weewx.engine: **** > File "/usr/share/weewx/weewx/drivers/vantage.py", line 521, in __init__ > Oct 28 08:20:56 raspberrypi weewx[907] CRITICAL weewx.engine: **** > self._setup() > Oct 28 08:20:56 raspberrypi weewx[907] CRITICAL weewx.engine: **** > File "/usr/share/weewx/weewx/drivers/vantage.py", line 1340, in _setup > Oct 28 08:20:56 raspberrypi weewx[907] CRITICAL weewx.engine: **** > self.port.wakeup_console(max_tries=self.max_tries) > Oct 28 08:20:56 raspberrypi weewx[907] CRITICAL weewx.engine: **** > File "/usr/share/weewx/weewx/drivers/vantage.py", line 118, in wakeup_console > Oct 28 08:20:56 raspberrypi weewx[907] CRITICAL weewx.engine: **** > raise weewx.WakeupError("Unable to wake up Vantage console") > Oct 28 08:20:56 raspberrypi weewx[907] CRITICAL weewx.engine: **** > weewx.WakeupError: Unable to wake up Vantage console > Oct 28 08:20:56 raspberrypi weewx[907] CRITICAL __main__: Unable to load > driver: Unable to wake up Vantage console > Oct 28 08:20:56 raspberrypi weewx[907] CRITICAL __main__: **** Exiting... > Oct 28 08:20:56 raspberrypi kernel: [ 151.179492] pl2303 ttyUSB0: > pl2303_read_int_callback - usb_submit_urb failed with result -1 > > > At archive interval: > > Oct 28 08:45:16 raspberrypi weewx[1022] ERROR weewx.drivers.vantage: Unable > to wake up Vantage console > Oct 28 08:45:16 raspberrypi weewx[1022] ERROR weewx.drivers.vantage: DMPAFT > try #1; error: Unable to wake up Vantage console > Oct 28 08:45:16 raspberrypi weewx[1022] ERROR weewx.drivers.vantage: Unable > to wake up Vantage console > Oct 28 08:45:16 raspberrypi weewx[1022] ERROR weewx.drivers.vantage: DMPAFT > try #2; error: Unable to wake up Vantage console > Oct 28 08:45:16 raspberrypi weewx[1022] ERROR weewx.drivers.vantage: Unable > to wake up Vantage console > Oct 28 08:45:16 raspberrypi weewx[1022] ERROR weewx.drivers.vantage: DMPAFT > try #3; error: Unable to wake up Vantage console > Oct 28 08:45:16 raspberrypi weewx[1022] ERROR weewx.drivers.vantage: Unable > to wake up Vantage console > Oct 28 08:45:16 raspberrypi weewx[1022] ERROR weewx.drivers.vantage: DMPAFT > try #4; error: Unable to wake up Vantage console > Oct 28 08:45:16 raspberrypi weewx[1022] ERROR weewx.drivers.vantage: DMPAFT > max tries (4) exceeded. > Oct 28 08:45:16 raspberrypi weewx[1022] INFO weewx.engine: Main loop exiting. > Shutting engine down. > Oct 28 08:45:16 raspberrypi weewx[1022] CRITICAL __main__: Caught > WeeWxIOError: Max tries exceeded while getting archive data. > Oct 28 08:45:16 raspberrypi weewx[1022] CRITICAL __main__: **** Waiting > 60 seconds then retrying... > Oct 28 08:46:17 raspberrypi weewx[1022] INFO __main__: retrying... > > On Thursday, October 27, 2022 at 2:11:17 PM UTC-5 vince wrote: > Spoke too fast. Got a couple failures and restarts just a few minutes ago. > > I also notice one restart overnight after 1am PDT so the other one wasn't > quite perfect it seems. > > [...Tom - If you want to take this to email I can post a followup if we find > the cause later on....] > > Oct 27 11:35:59 pi4 weewx[19695] ERROR weewx.drivers.vantage: LOOP batch try > #1; error: Expected to read 99 chars; got 0 instead > Oct 27 11:35:59 pi4 weewx[19695] DEBUG weewx.drivers.vantage: Rude wake up > retry #1 failed. Response: b'O\x00' > Oct 27 11:35:59 pi4 weewx[19695] DEBUG weewx.drivers.vantage: Retry #1 unable > to wake up console... sleeping > Oct 27 11:36:00 pi4 weewx[19695] DEBUG weewx.drivers.vantage: Rude wake up of > console successful > Oct 27 11:36:06 pi4 weewx[19695] ERROR weewx.drivers.vantage: LOOP batch try > #2; error: Expected to read 99 chars; got 0 instead > Oct 27 11:36:06 pi4 weewx[19695] DEBUG weewx.drivers.vantage: Rude wake up > retry #1 failed. Response: b'\x00\x00' > Oct 27 11:36:06 pi4 weewx[19695] DEBUG weewx.drivers.vantage: Retry #1 unable > to wake up console... sleeping > Oct 27 11:36:07 pi4 weewx[19695] DEBUG weewx.drivers.vantage: Rude wake up of > console successful > Oct 27 11:36:19 pi4 weewx[19695] ERROR weewx.drivers.vantage: LOOP batch try > #3; error: Expected to read 99 chars; got 0 instead > Oct 27 11:36:19 pi4 weewx[19695] ERROR weewx.drivers.vantage: LOOP max batch > errors (3) exceeded. > Oct 27 11:36:19 pi4 weewx[19695] INFO weewx.engine: Main loop exiting. > Shutting engine down. > Oct 27 11:36:19 pi4 weewx[19695] INFO weewx.engine: Shutting down StdReport > thread > Oct 27 11:36:19 pi4 weewx[19695] DEBUG weewx.engine: StdReport thread has > been terminated > Oct 27 11:36:19 pi4 weewx[19695] DEBUG weewx.restx: Shut down MQTT thread. > Oct 27 11:36:19 pi4 weewx[19695] DEBUG weewx.restx: Shut down CWOP thread. > Oct 27 11:36:19 pi4 weewx[19695] DEBUG weewx.restx: Shut down PWSWeather > thread. > Oct 27 11:36:19 pi4 weewx[19695] DEBUG weewx.restx: Shut down > Wunderground-PWS thread. > Oct 27 11:36:19 pi4 weewx[19695] DEBUG weewx.restx: Shut down StationRegistry > thread. > Oct 27 11:36:19 pi4 weewx[19695] INFO user.MQTTSubscribe: (Service) > Disconnected with result code 0 > Oct 27 11:36:19 pi4 weewx[19695] CRITICAL __main__: Caught WeeWxIOError: LOOP > max batch errors (3) exceeded. > Oct 27 11:36:19 pi4 weewx[19695] CRITICAL __main__: **** Waiting 60 > seconds then retrying... > Oct 27 11:37:19 pi4 weewx[19695] INFO __main__: retrying... > Oct 27 11:37:19 pi4 weewx[19695] DEBUG __main__: Initializing engine > Oct 27 11:37:19 pi4 weewx[19695] INFO weewx.engine: Loading station type > Vantage (weewx.drivers.vantage) > Oct 27 11:37:19 pi4 weewx[19695] DEBUG weewx.drivers.vantage: Driver version > is 3.5.0 > Oct 27 11:37:19 pi4 weewx[19695] DEBUG weewx.drivers.vantage: Option > loop_request=1 > Oct 27 11:37:19 pi4 weewx[19695] DEBUG weewx.drivers.vantage: Opened up > serial port /dev/ttyUSB0; baud 19200; timeout 5.00 > Oct 27 11:37:19 pi4 weewx[19695] DEBUG weewx.drivers.vantage: Gentle wake up > of console successful > Oct 27 11:37:19 pi4 weewx[19695] DEBUG weewx.drivers.vantage: Hardware type > is 16 > Oct 27 11:37:19 pi4 weewx[19695] DEBUG weewx.drivers.vantage: ISS ID is 1 > Oct 27 11:37:19 pi4 weewx[19695] DEBUG weewx.drivers.vantage: Hardware name: > Vantage Pro2 > Oct 27 11:37:19 pi4 weewx[19695] DEBUG weewx.engine: Loading service > weewx.engine.StdTimeSynch > Oct 27 11:37:19 pi4 weewx[19695] DEBUG weewx.engine: Finished loading service > weewx.engine.StdTimeSynch > On Thursday, October 27, 2022 at 11:33:13 AM UTC-7 vince wrote: > The instrumented one looks ok. I can not explain why. > > Oct 27 10:05:48 pi4 pi: vantage ==> running 4.9.1 instrumented version of > driver > Oct 27 10:05:48 pi4 weewx[19695] INFO weewx.engine: Loading station type > Vantage (weewx.drivers.vantage) > Oct 27 10:05:48 pi4 weewx[19695] DEBUG weewx.drivers.vantage: Driver version > is 3.5.0 > Oct 27 10:05:48 pi4 weewx[19695] DEBUG weewx.drivers.vantage: Option > loop_request=1 > Oct 27 10:05:48 pi4 weewx[19695] DEBUG weewx.drivers.vantage: Opened up > serial port /dev/ttyUSB0; baud 19200; timeout 5.00 > Oct 27 10:05:48 pi4 weewx[19695] DEBUG weewx.drivers.vantage: Gentle wake up > of console successful > Oct 27 10:05:48 pi4 weewx[19695] DEBUG weewx.drivers.vantage: Hardware type > is 16 > Oct 27 10:05:48 pi4 weewx[19695] DEBUG weewx.drivers.vantage: ISS ID is 1 > Oct 27 10:05:48 pi4 weewx[19695] DEBUG weewx.drivers.vantage: Hardware name: > Vantage Pro2 > Oct 27 10:05:50 pi4 weewx[19695] DEBUG weewx.drivers.vantage: Gentle wake up > of console successful > Oct 27 10:05:50 pi4 weewx[19695] DEBUG weewx.drivers.vantage: Getting archive > packets since 2022-10-27 10:05:00 PDT (1666890300) > Oct 27 10:05:50 pi4 weewx[19695] DEBUG weewx.drivers.vantage: Gentle wake up > of console successful > Oct 27 10:05:50 pi4 weewx[19695] DEBUG weewx.drivers.vantage: Retrieving 0 > page(s); starting index= 0 > Oct 27 10:05:50 pi4 weewx[19695] DEBUG weewx.drivers.vantage: Gentle wake up > of console successful > Oct 27 10:05:50 pi4 weewx[19695] DEBUG weewx.drivers.vantage: Requesting 200 > LOOP packets. > Oct 27 10:05:50 pi4 weewx[19695] DEBUG weewx.drivers.vantage: Gentle wake up > of console successful > Oct 27 10:10:14 pi4 weewx[19695] DEBUG weewx.drivers.vantage: Getting archive > packets since 2022-10-27 10:05:00 PDT (1666890300) > Oct 27 10:10:16 pi4 weewx[19695] DEBUG weewx.drivers.vantage: Rude wake up > retry #1 failed. Response: b'O\xec' > Oct 27 10:10:16 pi4 weewx[19695] DEBUG weewx.drivers.vantage: Retry #1 unable > to wake up console... sleeping > Oct 27 10:10:17 pi4 weewx[19695] DEBUG weewx.drivers.vantage: Rude wake up of > console successful > Oct 27 10:10:17 pi4 weewx[19695] DEBUG weewx.drivers.vantage: Retrieving 1 > page(s); starting index= 0 > Oct 27 10:10:18 pi4 weewx[19695] DEBUG weewx.drivers.vantage: DMPAFT > complete: page timestamp 2022-10-18 12:55:00 PDT (1666122900) less than final > timestamp 2022-10-27 10:10:00 PDT (1666890600) > Oct 27 10:10:18 pi4 weewx[19695] DEBUG weewx.drivers.vantage: Catch up > complete. > Oct 27 10:10:18 pi4 weewx[19695] DEBUG weewx.drivers.vantage: Requesting 200 > LOOP packets. > Oct 27 10:10:18 pi4 weewx[19695] DEBUG weewx.drivers.vantage: Gentle wake up > of console successful > Oct 27 10:15:14 pi4 weewx[19695] DEBUG weewx.drivers.vantage: Getting archive > packets since 2022-10-27 10:10:00 PDT (1666890600) > Oct 27 10:15:16 pi4 weewx[19695] DEBUG weewx.drivers.vantage: Rude wake up > retry #1 failed. Response: b'O\x00' > Oct 27 10:15:16 pi4 weewx[19695] DEBUG weewx.drivers.vantage: Retry #1 unable > to wake up console... sleeping > Oct 27 10:15:17 pi4 weewx[19695] DEBUG weewx.drivers.vantage: Rude wake up of > console successful > Oct 27 10:15:17 pi4 weewx[19695] DEBUG weewx.drivers.vantage: Retrieving 1 > page(s); starting index= 1 > Oct 27 10:15:18 pi4 weewx[19695] DEBUG weewx.drivers.vantage: DMPAFT > complete: page timestamp 2022-10-18 13:00:00 PDT (1666123200) less than final > timestamp 2022-10-27 10:15:00 PDT (1666890900) > Oct 27 10:15:18 pi4 weewx[19695] DEBUG weewx.drivers.vantage: Catch up > complete. > Oct 27 10:15:18 pi4 weewx[19695] DEBUG weewx.drivers.vantage: Requesting 200 > LOOP packets. > Oct 27 10:15:18 pi4 weewx[19695] DEBUG weewx.drivers.vantage: Gentle wake up > of console successful > Oct 27 10:20:14 pi4 weewx[19695] DEBUG weewx.drivers.vantage: Getting archive > packets since 2022-10-27 10:15:00 PDT (1666890900) > Oct 27 10:20:16 pi4 weewx[19695] DEBUG weewx.drivers.vantage: Rude wake up > retry #1 failed. Response: b'O\x00' > Oct 27 10:20:16 pi4 weewx[19695] DEBUG weewx.drivers.vantage: Retry #1 unable > to wake up console... sleeping > Oct 27 10:20:17 pi4 weewx[19695] DEBUG weewx.drivers.vantage: Rude wake up of > console successful > Oct 27 10:20:17 pi4 weewx[19695] DEBUG weewx.drivers.vantage: Retrieving 1 > page(s); starting index= 2 > Oct 27 10:20:18 pi4 weewx[19695] DEBUG weewx.drivers.vantage: DMPAFT > complete: page timestamp 2022-10-18 13:05:00 PDT (1666123500) less than final > timestamp 2022-10-27 10:20:00 PDT (1666891200) > Oct 27 10:20:18 pi4 weewx[19695] DEBUG weewx.drivers.vantage: Catch up > complete. > Oct 27 10:20:18 pi4 weewx[19695] DEBUG weewx.drivers.vantage: Requesting 200 > LOOP packets. > Oct 27 10:20:18 pi4 weewx[19695] DEBUG weewx.drivers.vantage: Gentle wake up > of console successful > > > On Thursday, October 27, 2022 at 5:27:05 AM UTC-7 Tom Keffer wrote: > Nice sleuthing, Vince. > > Very mysterious. I don't think the firmware version has anything to do with > it. Mine is even older than yours (6-Jun-2007) and it's working fine. > > Try this version. It still uses the v4.9.1 approach, but logs a bit more > information about failure modes. > > On Wed, Oct 26, 2022 at 8:01 PM vince <vince...@gmail.com <>> wrote: > Testing each later version one-by-one to see when it goes belly up via 'git > checkout revnumberhere -- vantage.py' > 4.8.0 version looks ok when dropped into place over 4.9.1 weewx > may-06th version 7024f seems ok as well > may-18th version b0145 fails repeatedly with the 'max tries exceeded' error > debug=1 syslog entries from 'grep vantage /var/log/syslog' are in the > attachment. > I used 'logger' to write out which version driver I was starting up.... > > On Wednesday, October 26, 2022 at 3:46:35 PM UTC-7 Tom Keffer wrote: > How about trying the old V4.8.0 driver in v4.9.1? You can find it here: > https://raw.githubusercontent.com/weewx/weewx/v4.8.0/bin/weewx/drivers/vantage.py > > <https://raw.githubusercontent.com/weewx/weewx/v4.8.0/bin/weewx/drivers/vantage.py> > On Wed, Oct 26, 2022 at 3:12 PM vince <vince...@gmail.com <>> wrote: > Almost every single time. Not 100% but pretty close. > I put the 4.9.1 driver on my working 4.8.0 system, deleted the __pycache__ > file for it, and started weewx up and it 'did' recreate the problem. Failed > immediately and kept failing. > I also repeated the test with the extra sensors stuff set to { } and it > didn't fix it. So I'm guessing it's the issue-772 mods are at fault. > If you can get me a driver with issue-772 backed out or with more diagnostic > logging etc added I'd be happy to do more tests to try to figure it out. > > Lastly, FWIW, I'm running a VP2 with rather old firmware, if that matters. > > Davis Vantage EEPROM settings: > > CONSOLE TYPE: Vantage Pro2 > > CONSOLE FIRMWARE: > Date: Jul 14 2008 > Version: 1.80 > > CONSOLE SETTINGS: > Archive interval: 300 (seconds) > Altitude: 365 (foot) > Wind cup type: large > Rain bucket type: 0.01 inches > Rain year start: 10 > Onboard time: 2022-10-26 15:10:05 > > CONSOLE DISPLAY UNITS: > Barometer: inHg > Temperature: degree_F > Rain: inch > Wind: mile_per_hour > > CONSOLE STATION INFO: > Latitude (onboard): +47.3 > Longitude (onboard): -122.3 > Use manual or auto DST? AUTO > DST setting: N/A > Use GMT offset or zone code? GMT_OFFSET > Time zone code: N/A > GMT offset: -8.0 hours > Temperature logging: LAST > Retransmit channel: OFF (0) > > TRANSMITTERS: > Channel Receive Repeater Type > 1 active none iss > 2 inactive none (N/A) > 3 inactive none (N/A) > 4 inactive none (N/A) > 5 inactive none (N/A) > 6 inactive none (N/A) > 7 inactive none (N/A) > 8 inactive none (N/A) > > RECEPTION STATS: > Total packets received: 255 > Total packets missed: 3 > Number of resynchronizations: 0 > Longest good stretch: 122 > Number of CRC errors: 0 > > BAROMETER CALIBRATION DATA: > Current barometer reading: 30.130 inHg > Altitude: 365 feet > Dew point: 44 F > Virtual temperature: 46 F > Humidity correction factor: 1.9 > Correction ratio: 1.014 > Correction constant: +0.000 inHg > Gain: 0.000 > Offset: 35.000 > > OFFSETS: > Wind direction: +0 deg > Inside Temperature: +0.0 F > Inside Humidity: +0 % > Outside Temperature: +0.0 F > Outside Humidity: +0 % > > -- > 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/87a9b91d-265d-4c51-9fcf-4d8c7370a3dfn%40googlegroups.com > > <https://groups.google.com/d/msgid/weewx-user/87a9b91d-265d-4c51-9fcf-4d8c7370a3dfn%40googlegroups.com?utm_medium=email&utm_source=footer>. > > -- > 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/a15a58d3-57c9-4e9c-9f55-10dab3dcd549n%40googlegroups.com > > <https://groups.google.com/d/msgid/weewx-user/a15a58d3-57c9-4e9c-9f55-10dab3dcd549n%40googlegroups.com?utm_medium=email&utm_source=footer>. > > -- > 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+unsubscr...@googlegroups.com > <mailto:weewx-user+unsubscr...@googlegroups.com>. > To view this discussion on the web visit > https://groups.google.com/d/msgid/weewx-user/540448ed-3698-4332-a947-6a0b6b7b50ecn%40googlegroups.com > > <https://groups.google.com/d/msgid/weewx-user/540448ed-3698-4332-a947-6a0b6b7b50ecn%40googlegroups.com?utm_medium=email&utm_source=footer>. Marius -- Marius Schamschula -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/73DEDA32-1A68-4FDF-8AC7-71EA073461C2%40gmail.com.