On Monday, 13 February 2017 03:26:27 UTC+10, Miguel Iniesta wrote:
>
>
> Hi m,
>
> This is the new error message (twice per second):
>
> weewx.service - LSB: weewx weather system
>    Loaded: loaded (/etc/init.d/weewx)
>    Active: active (running) since dom 2017-02-12 18:17:30 CET; 3min 10s ago
>   Process: 4043 ExecStart=/etc/init.d/weewx start (code=exited, 
> status=0/SUCCESS)
>    CGroup: /system.slice/weewx.service
>            └─4058 /usr/bin/python /home/weewx/bin/weewxd --daemon 
> --pidfile=/var/run/weewx.pid /home/weewx/weewx.conf
>
> feb 12 18:20:39 raspberrypi weewx[4058]: wmr300: e.errno=None 
> e.strerror=None e.message=could not detach kernel driver from interface 0: 
> No data available repr=USBError('could not detach kernel driver from 
> interface 0: No data available',)
> feb 12 18:20:39 raspberrypi weewx[4058]: wmr300: e.errno=None 
> e.strerror=None e.message=could not detach kernel driver from interface 0: 
> No data available repr=USBError('could not detach kernel driver from 
> interface 0: No data available',)
> ...
>


This is  actually an error in libusb0.  From my testing, the error message 
 about "could not detach..." is never cleared from the error  string buffer 
because the condition "no data available" is not regarded as an error 
condition at some level.
The first time you run weewx after plugging the USB device in, the kernel 
automatically attaches it (at least it does on my system) and the weewx 
driver has to detach it to access it in a different mode.
The next time (and subsequent times) weewx is run, the detach operation 
fails because it is no longer attached. This is OK, except for the spurious 
error message. 

You *should* still be getting data occasionally - if not then the wmr300 
console has gotten itself tied up in knots and you need to disconnect the 
USB and start again.

Try: 

   1. stop weewx
   2. unplug USB, wait 5 sec, reconnect USB.
   3. restart weewx.
   
this should fix both the error message and the no data condition.

-- 
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.

Reply via email to