"Bad USB report received" from WMR88

514 views
Skip to first unread message

Per Edström

unread,
Sep 24, 2013, 9:58:10 AM9/24/13
to weewx...@googlegroups.com
I get this with ebox3350 running Ubuntu 10.04 and a WMR88.

What is the bad report about and is it checksum from WMR that is wrong?

"
Sep 24 15:55:36 eBox3350 weewx[17314]: wmrx: Bad checksum on buffer of length 3
Sep 24 15:56:05 eBox3350 weewx[17314]: wmrx: Bad USB report received.
Sep 24 15:56:05 eBox3350 weewx[17314]: ***** could not detach kernel driver from interface 0: No data available
S

Thomas Keffer

unread,
Sep 24, 2013, 10:47:24 AM9/24/13
to weewx-user
Which driver are you using?

-tk


--
You received this message because you are subscribed to the Google Groups "Weewx user's group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.



--
Tom Keffer
kef...@threefools.org
+1 541-386-8891 (h)
+1 541-490-9507 (c)
Skype: tkeffer

Tim Hewison

unread,
Jan 11, 2014, 12:31:25 PM1/11/14
to weewx...@googlegroups.com
I get the same thing on my WMR88. I get them in batches of 4-7 every few minutes.

I am using the default driver for WMR100.
It still works ok, though, so I'm not too worried.

e.g.
Jan 11 18:26:16 raspberrypi weewx[3276]: wmrx: Bad USB report received.
Jan 11 18:26:16 raspberrypi weewx[3276]: ***** [Errno 110] Operation timed out
Jan 11 18:26:45 raspberrypi weewx[3276]: wmrx: Bad USB report received.
Jan 11 18:26:45 raspberrypi weewx[3276]: ***** [Errno 110] Operation timed out
Jan 11 18:27:16 raspberrypi weewx[3276]: wmrx: Bad USB report received.
Jan 11 18:27:16 raspberrypi weewx[3276]: ***** [Errno 110] Operation timed out
Jan 11 18:27:41 raspberrypi weewx[3276]: wmrx: Bad USB report received.
Jan 11 18:27:41 raspberrypi weewx[3276]: ***** [Errno 110] Operation timed out
Jan 11 18:28:37 raspberrypi weewx[3276]: wmrx: Bad USB report received.
Jan 11 18:28:37 raspberrypi weewx[3276]: ***** [Errno 110] Operation timed out


Cheers,

Tim

Per Edström

unread,
Jan 11, 2014, 12:36:23 PM1/11/14
to weewx...@googlegroups.com

I had and still have it with wmr200 and R.pi but I pulled down the newest beta driver fron 2.6.04b and now it is handled better, though still there for some reason..

You received this message because you are subscribed to a topic in the Google Groups "Weewx user's group" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/weewx-user/IVAzHFq20P8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to weewx-user+...@googlegroups.com.

Tim Hewison

unread,
Jan 11, 2014, 6:11:07 PM1/11/14
to weewx...@googlegroups.com
Thanks - I might try that soon. But I'm now having problems getting weewx to run as a daemon.

It now runs nicely on my Raspberry Pi (except for these slightly annoying Bad USB messages), but only from the command line as root:
sudo ./bin/weewxd weewx.conf

When I try to start it as a daemon, as described in the User Guide, it seems to run OK, but does not generate any output.
I suspect it is a problem with the permissions on the USB port, as I can't work out how to change those on my Pi, and can only run it using the sudo prefix.

Snippet from /var/log/syslog:
Jan 11 23:55:18 raspberrypi weewx[2487]: wmrx: Bad USB report received.
Jan 11 23:55:18 raspberrypi weewx[2487]: ***** [Errno 110] Operation timed out
Jan 11 23:55:31 raspberrypi weewx[2487]: Archive: added archive record 2014-01-11 23:55:00 CET (1389480900)
Jan 11 23:55:32 raspberrypi weewx[2487]: reportengine: Running reports for latest time in the database.
Jan 11 23:55:32 raspberrypi weewx[2487]: reportengine: Running report StandardReport
Jan 11 23:55:32 raspberrypi weewx[2487]: reportengine: Found configuration file /home/weewx/skins/Standard/skin.conf for report StandardReport
Jan 11 23:55:32 raspberrypi weewx[2487]: cheetahgenerator: Running StandardReport report for time period SummaryByMonth
Jan 11 23:55:32 raspberrypi weewx[2487]: stats: Schema exists with 16 elements
Jan 11 23:55:33 raspberrypi weewx[2487]: cheetahgenerator: generated 1 'SummaryByMonth' files for StandardReport in 0.82 seconds
Jan 11 23:55:33 raspberrypi weewx[2487]: cheetahgenerator: Running StandardReport report for time period SummaryByYear
Jan 11 23:55:34 raspberrypi weewx[2487]: wmrx: Bad checksum on buffer of length 3
Jan 11 23:55:36 raspberrypi weewx[2487]: cheetahgenerator: generated 1 'SummaryByYear' files for StandardReport in 2.72 seconds
Jan 11 23:55:36 raspberrypi weewx[2487]: cheetahgenerator: Running StandardReport report for time period ToDate
Jan 11 23:55:39 raspberrypi weewx[2487]: cheetahgenerator: generated 12 'ToDate' files for StandardReport in 3.29 seconds
Jan 11 23:55:42 raspberrypi weewx[2487]: genimages: Generated 12 images for StandardReport in 3.50 seconds
Jan 11 23:55:43 raspberrypi weewx[2487]: reportengine: copied 0 files to /home/weewx/public_html
Jan 11 23:55:43 raspberrypi weewx[2487]: reportengine: Running report FTP
Jan 11 23:55:43 raspberrypi weewx[2487]: reportengine: Found configuration file /home/weewx/skins/Ftp/skin.conf for report FTP
Jan 11 23:55:43 raspberrypi weewx[2487]: reportengine: FTP upload not requested. Skipped.
Jan 11 23:55:43 raspberrypi weewx[2487]: reportengine: Running report RSYNC
Jan 11 23:55:43 raspberrypi weewx[2487]: reportengine: Found configuration file /home/weewx/skins/Rsync/skin.conf for report RSYNC
Jan 11 23:55:43 raspberrypi weewx[2487]: reportengine: rsync upload not requested. Skipped.
Jan 11 23:55:49 raspberrypi weewx[2487]: wmrx: Bad USB report received.
Jan 11 23:55:49 raspberrypi weewx[2487]: ***** [Errno 110] Operation timed out
Jan 11 23:56:16 raspberrypi weewx[2487]: wmrx: Bad USB report received.


 As always, any advice is welcome!

Cheers,

Tim

Thomas Keffer

unread,
Jan 11, 2014, 6:20:20 PM1/11/14
to weewx-user

What do you mean that it "does not generate any output?" From the log, an archive record for time 23:55 was added to the database. As it should, this kicked off a report, which generated a bunch of files and images. They should be in /home/weewx/public_html. They are not there?

-tk





--

Tim Hewison

unread,
Jan 12, 2014, 3:11:58 PM1/12/14
to weewx...@googlegroups.com
Thanks for your further help. 

I have still not succeeded in getting weewx running as a daemon on my Raspberry Pi for some reason I cannot work out (probably due to my lack of Linux experience). As I said, it was running, but not updating the webpage i.e. 0 files:

Jan 11 23:55:43 raspberrypi weewx[2487]: reportengine: copied 0 files to /home/weewx/public_html

But I have now got around the problem by starting the script from rc.local following the advice at http://www.raspberry-projects.com/pi/pi-operating-systems/raspbian/scripts (remembering to define the full paths).

Still getting the Bad USB reports, but if it continues to work, I'll be happy! And I've learnt a lot along the way...

Cheers,

Tim


On Tuesday, 24 September 2013 15:58:10 UTC+2, Per Edström wrote:

Thomas Keffer

unread,
Jan 12, 2014, 3:16:10 PM1/12/14
to weewx-user
The message "copied 0 files" only means that no files were copied from the skin subdirectory to public_html. Several files were generated (see your earlier email).

If you do

  ls -l /home/weewx/public_html

what does it show? I'm betting there are at least 14 files in there!

-tk


--

Tim Hewison

unread,
Jan 12, 2014, 5:11:37 PM1/12/14
to weewx...@googlegroups.com
The files were still there, but the content of the webpage was not updating. 

Having got it running at the moment without using a daemon, I'd like to run it for a while to check it's stable before revisiting this problem.

Cheers,

Tim 

On Tuesday, 24 September 2013 15:58:10 UTC+2, Per Edström wrote:

Florian B

unread,
Jan 21, 2014, 7:39:51 AM1/21/14
to weewx...@googlegroups.com
I've had a similar problem last night.

At about 3.45 am the weather station (WMR88) wasn't recognised by the raspberry. I don't know why. I unplugged the usb cord and plugged it in again and now it works.

Regards

Florian

Bob Geddes

unread,
Jan 21, 2014, 11:55:17 AM1/21/14
to weewx...@googlegroups.com


 
I have just recently sucessfully installed weewx 2.5.1 on a Raspberry Pi. I use a OS WMR88 (WMR100). All is apparently working well but I do regularly, every minute, see similar reports: -

 
Jan 21 16:49:36 rpi-49 weewx[2780]: wmrx: Bad USB report received.
Jan 21 16:49:36 rpi-49 weewx[2780]: ***** could not detach kernel driver from interface 0: No data available

If I reboot the computer the second one goes away until I restart weewx

Will have a look at the beta driver mentioned - but that will be a steep learning curve...

Dave Nesbitt

unread,
Jan 28, 2014, 6:13:24 AM1/28/14
to weewx...@googlegroups.com
Yes, me too - I see these when I have logging on debug. They don't seem to do any harm though as far as I can tell

Jules

unread,
Nov 24, 2018, 3:01:19 PM11/24/18
to weewx-user
Hi,

Old thread but I'm having this same issue.  WMR88 running on a Pi, latest version of Pi Debian, weewx 3.8.2.  Friend of mine running the same setup has the same problem.  Can run fine for days and then the occasional "N/A" appears under Current Conditions for one or more sensors.  Usually internal temperature stays ok, sometimes windspeed stays ok.

It's been doing it now for a few hours today.  Hardly anything showing on the graphs.  Nothing in the log so I turned on debug mode logging and I'm getting lots of these:


Nov 24 19:51:52 WeatherPi weewx[14394]: wmr100: Bad USB report received: [Errno 110] Operation timed out


I hadn't updated my Pi or Weewx for ages.  Weewx was version 3.1.something.  This problem started after the Pi and Weewx update.

Any ideas?  Roll back a version of the WMR 100 driver?  Or is it a Pi/Debian issue with the USB port?


thanks,


Jules

wysiwyg

unread,
May 12, 2019, 5:37:23 AM5/12/19
to weewx-user
Hi !

I do see similar issues recently.
Maybe after an update, not sure...

It more or less still work except it sometimes miss some rain data !!!

missing temperature or other is ok, but rain it pretty annoying.

I see different error messages:

May 12 11:30:57 raspberrypi weewx[2275]: reportengine: Report 'RSYNC' not enabled. Skipping.
May 12 11:31:11 raspberrypi weewx[2275]: wmr100: Bad USB report received: could not detach kernel driver from interface 0: No data available
May 12 11:31:56 raspberrypi weewx[2275]: wmr100: Bad USB report received: could not detach kernel driver from interface 0: No data available
May 12 11:32:16 raspberrypi weewx[2275]: wmr100: Bad USB report received: could not detach kernel driver from interface 0: No data available
May 12 11:32:47 raspberrypi weewx[2275]: wmr100: Bad USB report received: could not detach kernel driver from interface 0: No data available
May 12 11:33:07 raspberrypi weewx[2275]: wmr100: Bad USB report received: could not detach kernel driver from interface 0: No data available
May 12 11:33:47 raspberrypi weewx[2275]: wmr100: Bad USB report received: could not detach kernel driver from interface 0: No data available
May 12 11:34:07 raspberrypi weewx[2275]: wmr100: Bad USB report received: could not detach kernel driver from interface 0: No data available
May 12 11:34:12 raspberrypi weewx[2275]: wmr100: Bad USB report received: tuple index out of range
May 12 11:34:17 raspberrypi weewx[2275]: wmr100: Bad checksum on buffer of length 18
May 12 11:34:28 raspberrypi weewx[2275]: wmr100: Bad checksum on buffer of length 4
May 12 11:34:47 raspberrypi weewx[2275]: wmr100: Bad USB report received: could not detach kernel driver from interface 0: No data available
May 12 11:35:07 raspberrypi weewx[2275]: wmr100: Bad USB report received: could not detach kernel driver from interface 0: No data available
May 12 11:35:27 raspberrypi weewx[2275]: wmr100: Bad USB report received: could not detach kernel driver from interface 0: No data available




or

May 12 11:09:14 raspberrypi weewx[2275]: wmr100: Bad USB report received: Connection timed out
May 12 11:10:10 raspberrypi weewx[2275]: wmr100: Bad USB report received: Connection timed out
May 12 11:10:47 raspberrypi weewx[2275]: wmr100: Bad USB report received: Connection timed out
May 12 11:11:07 raspberrypi weewx[2275]: wmr100: Bad USB report received: Connection timed out
May 12 11:12:02 raspberrypi weewx[2275]: wmr100: Bad USB report received: Connection timed out
May 12 11:12:22 raspberrypi weewx[2275]: wmr100: Bad USB report received: Connection timed out





wysiwyg

unread,
May 12, 2019, 11:40:43 AM5/12/19
to weewx-user
I forget to tell it's a WMR88 station, using WMR100 driver.

Leon Shaner

unread,
May 12, 2019, 1:19:56 PM5/12/19
to weewx...@googlegroups.com
Hey, Wysiwyg,

Lots of people have reported USB issues on Raspberry Pi, myself included.
This is not a weewx issue, rather it's something wrong somewhere between the Raspbian kernel, USB driver, and the weatherstation firmware.  Apparently much older kernel releases didn't have the problem but any of the newer ones do.
The issue is also seen sometimes on full desktop-class linuxes.

Seems the issue is really out of our control, so that's ultimately why I wrote the weewx_watchdog utility that I've mentioned before.

It's over here if you are interested:


The latest version now spreads the wunderfixer calls out over twice the time, which is to allow WU more time to process the uploads, so that ultimately any loss of data -> WU is minimized.

If your system is like mine you can more than likely disable the restart remediation and just go with the reboot remediation.  In my case when the USB comms are wedged, restarting weewx is no help, so it's just a waste of over a minute before moving ahead to the reboot.

All behavior is easily customizable via a few flags at the top of the script.
Lemme know, off alias, if you have any questions.

Regards,
\Leon
--
Leon Shaner :: Dearborn, Michigan (iPad Pro)

On May 12, 2019, at 11:40 AM, wysiwyg <fst...@gmail.com> wrote:

I forget to tell it's a WMR88 station, using WMR100 driver.

--
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 weewx-user+...@googlegroups.com.

wysiwyg

unread,
May 12, 2019, 1:32:10 PM5/12/19
to weewx-user
Thanks for your answer Leon, but do you mean the watchdog will reboot in case of usb errors?
Because currently, reboot seems not helping in my situation.

Leon Shaner

unread,
May 12, 2019, 1:42:05 PM5/12/19
to weewx...@googlegroups.com
Wysiwyg,

Oh, then never mind.  I am surprised reboot is no help.

Do you have any other USB devices plugged in, such as any hard drives?
If so, do you have a HUB in between to supply additional power?
That can be a common issue with RPI and since all ports are on a hub behind what is really a single port, if any other devices are drawing too much power it could effect your weather station's comms.

Other than that, how long is your USB cable?
15 feet is the limit for a basic cable.  Longer than that and you need a powered "repeater" of sorts.  Can you try a different cable?

Regards,
\Leon
--
Leon Shaner :: Dearborn, Michigan (iPad Pro)

On May 12, 2019, at 1:32 PM, wysiwyg <fst...@gmail.com> wrote:

Thanks for your answer Leon, but do you mean the watchdog will reboot in case of usb errors?
Because currently, reboot seems not helping in my situation.

--
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 weewx-user+...@googlegroups.com.

Frederic Stuyk

unread,
May 12, 2019, 2:32:21 PM5/12/19
to weewx...@googlegroups.com
I have the wmr88 (cable around 1m20 or 1m50) and a wifi dongle.
It's an old raspberry (not sure which model). 
No usb hub. 
Maybe the wifi dongle take a little too much current?
I cannot check in details, the setup is at my parents place, 150km far... 
I connect by ssh. 

The setup worked fine for years. But I may have done some update recently (not sure if kernel or other relevant packages was part of it). 

I'll give a try with a hub, if I find one around... Otherwise, maybe replace the raspberry with something else. 

Thanks for your clarifications! 


You received this message because you are subscribed to a topic in the Google Groups "weewx-user" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/weewx-user/IVAzHFq20P8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to weewx-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/E2708CE6-EC29-45DF-800F-ACEF6670BA1B%40isylum.org.
Reply all
Reply to author
Forward
0 new messages