Closed ralphhughes closed 8 months ago
This is caused when the WS6in1 driver fails to communicate with the weatherstation - from memory it is allowed 6 timeouts after which it assumes communication is broken. I saw the same error recently on my system. I'm using systemd which automatically restarts weewx after a 1 minute delay, and no problem on recovery. If this error is repeatable for you it might be worth swapping the usb cable to see if that makes a difference. I'll revisit the code and see if I can improve the robustness. I've not had any other reports of this problem.
Thanks for the tips on what to investigate. Tried a different USB cable and problem got worse to the point weather station didn't show up in lsusb anymore so defo cable related. Took your advice on using systemd service to auto-restart weewx if it crashes. $ cat /var/log/syslog | grep "bad CRC" shows 58 occurrences in the past 24 hours for me. Wondering if a powered USB hub might help as I'm also powering the console over the USB cable from the host?
I use a powered usb hub which works well for my use (raspberryPi and Console) the "bad CRC" is a warning only and means a message was received with an invalid checksum. These occur intermittently and can be ignored (usually the console has sent an incomplete message).
Hi, thanks so much for writing this driver, I'm using it with a Bresser 7002571 weather station I got for Christmas. The console part of the weather station is plugged in via USB to a 32-bit x86 "fitPC" fanless mini-PC running Ubuntu 18.04 server that is on 24/7.
I noticed today weewx had crashed. /var/log/syslog shows:
Any idea where I should start with debugging this? I know a bit of Java but I'm new to weewx & python