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
>>>>
>>>> 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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/3ac90e93-0ee5-411c-8cae-4b9c88ebbe5fn%40googlegroups.com.

Reply via email to