It sounds as if it might be the infamous "USB lockup" problem. Does the
station console allow you to see logged records? (Press 'memory' once
and the '+' and '-' buttons should start flashing, allowing you to
examine previous readings.) If you can't see logged data, it's probably
hung up. The only cure is to remove the batteries (and USB lead) to
power down the console, losing its stored data.
You haven't said what version of pywws you're running. I assume it's
from before November 2012 when the software was changed to try and avoid
the USB lockup problem.
--
Jim Easterbrook <http://www.jim-easterbrook.me.uk/>
Hi Jim
Thanks for your response.
According to PKG-INFO: Version: 12.05_r521.
I can confirm that the station console does show logged records (@ half-hourly intervals). I have since reset the station console (disconnecting USB cable and removal of batteries).
On reconnecting the station, /var/log/messages records the following:
Jul 21 06:51:30 pennardpi01 kernel: [86880.206431] usb 1-1.3.4.4: new low-speed USB device number 17 using dwc_otg
Jul 21 06:51:30 pennardpi01 kernel: [86880.666372] usb 1-1.3.4.4: new low-speed USB device number 18 using dwc_otg
Jul 21 06:51:31 pennardpi01 kernel: [86881.126304] usb 1-1.3.4.4: new low-speed USB device number 19 using dwc_otg
Jul 21 06:51:31 pennardpi01 kernel: [86881.626240] usb 1-1.3.4.4: new low-speed USB device number 20 using dwc_otg
This morning I renamed the “weather” directory and did a fresh install of pywws (v13.06), but I am still getting the same errors.
The following snippet had come from sudo python -vvv -m pywws.TestWeatherStation:
# trying /usr/lib/python2.7/lib-dynload/hid.py
# trying /usr/lib/python2.7/lib-dynload/hid.pyc
# trying /usr/local/lib/python2.7/dist-packages/hid.so
dlopen("/usr/local/lib/python2.7/dist-packages/hid.so", 2);
import hid # dynamically loaded from /usr/local/lib/python2.7/dist-packages/hid.so
Traceback (most recent call last):
File "/usr/lib/python2.7/runpy.py", line 162, in _run_module_as_main
"__main__", fname, loader, pkg_name)
File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
exec code in run_globals
File "/pi01/media/weather/pywws/pywws/TestWeatherStation.py", line 176, in <module>
sys.exit(main())
File "/pi01/media/weather/pywws/pywws/TestWeatherStation.py", line 111, in main
ws = WeatherStation.weather_station()
File "pywws/WeatherStation.py", line 318, in __init__
self.cusb = CUSBDrive()
File "pywws/WeatherStation.py", line 241, in __init__
self.dev = USBDevice(0x1941, 0x8021)
File "pywws/device_cython_hidapi.py", line 113, in __init__
self.hid = hid.device(idVendor, idProduct)
File "hid.pyx", line 42, in hid.device.__cinit__ (hid.c:1064)
IOError: open failed
# clear __builtin__._
I have attached the full verbose output if that is of any help
I will continue to investigate, but would welcome any further thoughts you may have.
Kindest regards
Mark
Ah, that's more meaningful. Does it actually show up in the output of
lsusb? (Its ID is 1941:8021.)