I'm trying to run a Pi Zero W with a 1080 station but it has issues with timing out on the USB interface.
pywws.LiveLog do not run very long. Most of the time it doesnot even read anything from the station before it timeout.
Currently running pywws 16.12.0 and python 2.7.9 and tried both pyusb and libusb1 with timeout issues. I have alos played with the timeout value in device_libusb1.py without any noticable diffrency
07:19:36:pywws.WeatherStation.CUSBDrive:using pywws.device_libusb1 >> USBErrorTimeout: LIBUSB_ERROR_TIMEOUT [-7]
08:02:12:pywws.WeatherStation.CUSBDrive:using pywws.device_pyusb >> USBError: Connection timed out
I have been running this station connected to a Raspberry Pi 2 for a really long time (and still doing it) without these issues so I know the station itself is working.
The main diffrence with the two systems are the diffrent pi hardware. I'm guessing the USB interface are different.
Has anyone else tried the Zero with any luck!?
Regards,
Erik
-------------------------------------------------
pi@zero:~/applic/data $ sudo python -m pywws.LiveLog -vvv /home/pi/applic/data11:53:41:pywws.Logger:pywws version 16.12.0, build 1367 (e917ba9)11:53:41:pywws.Logger:Python version 2.7.9 (default, Sep 17 2016, 20:26:04)[GCC 4.9.2]11:53:41:pywws.WeatherStation.CUSBDrive:using pywws.device_libusb111:53:43:pywws.Calib:Using default calibration11:53:43:pywws.weather_station:read period 1511:53:43:pywws.weather_station:delay 6, pause 14.857411:53:58:pywws.weather_station:avoid 6.6629108831811:54:04:pywws.weather_station:avoid 1.8105057790311:54:06:pywws.weather_station:live_data new data11:54:06:pywws.Tasks.RegularTasks:Templating pywws.txt11:54:06:pywws.Tasks.RegularTasks:Templating domoticz.txt11:54:06:pywws.weather_station:delay 7, pause 39.187711:54:46:pywws.weather_station:delay 7, pause 0.511:54:46:pywws.weather_station:avoid 7.7800423352311:54:55:pywws.LiveLog:LIBUSB_ERROR_TIMEOUT [-7]Traceback (most recent call last):File "/usr/local/lib/python2.7/dist-packages/pywws/LiveLog.py", line 80, in LiveLoglogged_only=(not tasks.has_live_tasks())):File "/usr/local/lib/python2.7/dist-packages/pywws/LogData.py", line 256, in live_datafor data, ptr, logged in self.ws.live_data(logged_only=logged_only):File "/usr/local/lib/python2.7/dist-packages/pywws/WeatherStation.py", line 440, in live_datanew_ptr = self.current_pos()File "/usr/local/lib/python2.7/dist-packages/pywws/WeatherStation.py", line 586, in current_posself._read_fixed_block(0x0020), self.lo_fix_format['current_pos'])File "/usr/local/lib/python2.7/dist-packages/pywws/WeatherStation.py", line 642, in _read_fixed_blockresult += self._read_block(mempos)File "/usr/local/lib/python2.7/dist-packages/pywws/WeatherStation.py", line 630, in _read_blocknew_block = self.cusb.read_block(ptr)File "/usr/local/lib/python2.7/dist-packages/pywws/WeatherStation.py", line 267, in read_blockreturn self.dev.read_data(32)File "/usr/local/lib/python2.7/dist-packages/pywws/device_libusb1.py", line 100, in read_dataresult = self.dev.bulkRead(0x81, size, timeout=1200)File "/usr/local/lib/python2.7/dist-packages/usb1/__init__.py", line 1519, in bulkReadtransferred = self._bulkTransfer(endpoint, data, length, timeout)File "/usr/local/lib/python2.7/dist-packages/usb1/__init__.py", line 1480, in _bulkTransferself.__handle, endpoint, data, length, byref(transferred), timeout,File "/usr/local/lib/python2.7/dist-packages/usb1/__init__.py", line 133, in mayRaiseUSBError__raiseUSBError(value)File "/usr/local/lib/python2.7/dist-packages/usb1/__init__.py", line 125, in raiseUSBErrorraise __STATUS_TO_EXCEPTION_DICT.get(value, __USBError)(value)USBErrorTimeout: LIBUSB_ERROR_TIMEOUT [-7]