On Monday, October 24, 2016 at 2:06:17 PM UTC-4, Miguel EA8AJC wrote:
>
> It happens the same to me with WH2300 driver on RaspberryPi3, randomly
> after a few hours it stop reading the weather station data.
>
> Oct 24 14:50:23 radio weewx[600]: engine: Caught unrecoverable exception
>> in engine:
>> Oct 24 14:50:23 radio weewx[600]: **** could not detach kernel
>> driver from interface 0: No hay datos disponibles
>> Oct 24 14:50:23 radio weewx[600]: **** Traceback (most recent call
>> last):
>> Oct 24 14:50:23 radio weewx[600]: **** File
>> "/usr/share/weewx/weewx/engine.py", line 844, in main
>> Oct 24 14:50:23 radio weewx[600]: **** engine.run()
>> Oct 24 14:50:23 radio weewx[600]: **** File
>> "/usr/share/weewx/weewx/engine.py", line 186, in run
>> Oct 24 14:50:23 radio weewx[600]: **** for packet in
>> self.console.genLoopPackets():
>> Oct 24 14:50:23 radio weewx[600]: **** File
>> "/usr/share/weewx/user/wh2300.py", line 314, in genLoopPackets
>> Oct 24 14:50:23 radio weewx[600]: **** raw =
>> self._station.get_current()
>> Oct 24 14:50:23 radio weewx[600]: **** File
>> "/usr/share/weewx/user/wh2300.py", line 606, in get_current
>> Oct 24 14:50:23 radio weewx[600]: **** return
>> self._read_record()
>> Oct 24 14:50:23 radio weewx[600]: **** File
>> "/usr/share/weewx/user/wh2300.py", line 544, in _read_record
>> Oct 24 14:50:23 radio weewx[600]: **** self._write("read_record",
>> buf)
>> Oct 24 14:50:23 radio weewx[600]: **** File
>> "/usr/share/weewx/user/wh2300.py", line 491, in _write
>> Oct 24 14:50:23 radio weewx[600]: **** cnt =
>> self.devh.interruptWrite(self.USB_ENDPOINT_OUT, buf, self.timeout)
>> Oct 24 14:50:23 radio weewx[600]: **** USBError: could not detach
>> kernel driver from interface 0: No hay datos disponibles
>> Oct 24 14:50:23 radio weewx[600]: **** Exiting.
>>
>
miguel,
the problem you see with the fine offset wh23xx driver is completely
different than the lockup that happens to the fine offset 10xx/20xx/30xx
stations.
libusb often raises a "no data available" error or "no error" error that
does not really seem to be an error. in other drivers we check for the
string "no data available" then ignore it and retry the request. we might
have to do this for the wh23xx driver as well.
how often does this happen?
which version of the wh23xx driver are you using?
m
--
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 [email protected].
For more options, visit https://groups.google.com/d/optout.