WMR300 driver update

206 views
Skip to first unread message

Cameron D

unread,
Sep 23, 2018, 9:03:37 PM9/23/18
to weewx-user
I have attached an updated WMR300 driver, based on v19rc6 from v3.8.2

The history clear has been reinstated, and an issue with the console stopping data transmission has been fixed.
This is done simply by identifying when no data has been received for a minute and issuing an instruction to restart sending data.

To install:
Either:
  A. you could rename it and overwrite the wmr300.py file in weewx/drivers (having first made a backup)
or
  B. (safer)
  1. copy the file into the "user" folder of the installation folder.
  2. edit the weewx.conf file to point to the new driver: in the [WMR300] section, change
    "driver = weewx.drivers.wmr300"
    to "driver = user.wmr300-v19rc6+fix"

    
the driver has extra options that you can enable if necessary:
    debug_history = 1
    debug_timing = 1
    
This code has been working continuously under weewx 3.8.0 for 6 months with no hangs and many instances where it needed to restart the console.
I have a 1 minute history interval and clear at 6%, which means the history clear runs approx every 32 hours.

Cameron

Cameron D

unread,
Sep 23, 2018, 9:04:37 PM9/23/18
to weewx-user
This time with attachment
wmr300-v19rc6+fix.zip

Alberto Sánchez

unread,
Sep 25, 2018, 2:30:40 AM9/25/18
to weewx-user
Thank you very much Cameron,

I will try to test it as soon as possible.

El lunes, 24 de septiembre de 2018, 3:04:37 (UTC+2), Cameron D escribió:
This time with attachment

Ruben Navarro Huedo

unread,
Sep 25, 2018, 2:54:06 AM9/25/18
to weewx-user
A lot of thank's Cameron.
I will test it in some minutes.

I have some log of 3.8.2 standard driver version when stops receiving data:

Sep 25 06:25:07 MeteoElche weewx[1512]: wmr300: read: e.errno=None e.strerror=None e.message=could not detach kernel driver from interface 0: No hay datos disponibles repr=USBError('could not detach kernel driver from interface 0: No ha$
Sep 25 06:25:07 MeteoElche weewx[1512]: wmr300: read: e.errno=None e.strerror=None e.message=could not detach kernel driver from interface 0: No hay datos disponibles repr=USBError('could not detach kernel driver from interface 0: No ha$
Sep 25 06:25:08 MeteoElche weewx[1512]: wmr300: read: e.errno=None e.strerror=None e.message=could not detach kernel driver from interface 0: No hay datos disponibles repr=USBError('could not detach kernel driver from interface 0: No ha$
Sep 25 06:25:08 MeteoElche weewx[1512]: wmr300: read: e.errno=None e.strerror=None e.message=could not detach kernel driver from interface 0: No hay datos disponibles repr=USBError('could not detach kernel driver from interface 0: No ha$
Sep 25 06:25:09 MeteoElche weewx[1512]: wmr300: read: e.errno=None e.strerror=None e.message=could not detach kernel driver from interface 0: No hay datos disponibles repr=USBError('could not detach kernel driver from interface 0: No ha$
Sep 25 06:25:09 MeteoElche weewx[1512]: wmr300: read: e.errno=None e.strerror=None e.message=could not detach kernel driver from interface 0: No hay datos disponibles repr=USBError('could not detach kernel driver from interface 0: No ha$
Sep 25 06:25:10 MeteoElche weewx[1512]: wmr300: read: e.errno=None e.strerror=None e.message=could not detach kernel driver from interface 0: No hay datos disponibles repr=USBError('could not detach kernel driver from interface 0: No ha$
Sep 25 06:25:10 MeteoElche weewx[1512]: wmr300: read: e.errno=None e.strerror=None e.message=could not detach kernel driver from interface 0: No hay datos disponibles repr=USBError('could not detach kernel driver from interface 0: No ha$
Sep 25 06:25:11 MeteoElche weewx[1512]: wmr300: read: e.errno=None e.strerror=None e.message=could not detach kernel driver from interface 0: No hay datos disponibles repr=USBError('could not detach kernel driver from interface 0: No ha$
Sep 25 06:25:11 MeteoElche weewx[1512]: wmr300: read: e.errno=None e.strerror=None e.message=could not detach kernel driver from interface 0: No hay datos disponibles repr=USBError('could not detach kernel driver from interface 0: No ha$
Sep 25 06:25:12 MeteoElche weewx[1512]: wmr300: read: e.errno=None e.strerror=None e.message=could not detach kernel driver from interface 0: No hay datos disponibles repr=USBError('could not detach kernel driver from interface 0: No ha$
Sep 25 06:25:12 MeteoElche weewx[1512]: wmr300: read: e.errno=None e.strerror=None e.message=could not detach kernel driver from interface 0: No hay datos disponibles repr=USBError('could not detach kernel driver from interface 0: No ha$
Sep 25 06:25:13 MeteoElche weewx[1512]: wmr300: read: e.errno=None e.strerror=None e.message=could not detach kernel driver from interface 0: No hay datos disponibles repr=USBError('could not detach kernel driver from interface 0: No ha$
Sep 25 06:25:13 MeteoElche weewx[1512]: wmr300: read: e.errno=None e.strerror=None e.message=could not detach kernel driver from interface 0: No hay datos disponibles repr=USBError('could not detach kernel driver from interface 0: No ha$
Sep 25 06:25:14 MeteoElche weewx[1512]: wmr300: read: e.errno=None e.strerror=None e.message=could not detach kernel driver from interface 0: No hay datos disponibles repr=USBError('could not detach kernel driver from interface 0: No ha$
Sep 25 06:25:14 MeteoElche weewx[1512]: wmr300: read: e.errno=None e.strerror=None e.message=could not detach kernel driver from interface 0: No hay datos disponibles repr=USBError('could not detach kernel driver from interface 0: No ha$
Sep 25 06:25:15 MeteoElche weewx[1512]: wmr300: read: e.errno=None e.strerror=None e.message=could not detach kernel driver from interface 0: No hay datos disponibles repr=USBError('could not detach kernel driver from interface 0: No ha$
Sep 25 06:25:15 MeteoElche weewx[1512]: wmr300: read: e.errno=None e.strerror=None e.message=could not detach kernel driver from interface 0: No hay datos disponibles repr=USBError('could not detach kernel driver from interface 0: No ha$
Sep 25 06:25:16 MeteoElche weewx[1512]: wmr300: read: e.errno=None e.strerror=None e.message=could not detach kernel driver from interface 0: No hay datos disponibles repr=USBError('could not detach kernel driver from interface 0: No ha$
Sep 25 06:25:16 MeteoElche weewx[1512]: wmr300: read: e.errno=None e.strerror=None e.message=could not detach kernel driver from interface 0: No hay datos disponibles repr=USBError('could not detach kernel driver from interface 0: No ha$
Sep 25 06:25:17 MeteoElche weewx[1512]: wmr300: read: e.errno=None e.strerror=None e.message=could not detach kernel driver from interface 0: No hay datos disponibles repr=USBError('could not detach kernel driver from interface 0: No ha$
Sep 25 06:25:17 MeteoElche weewx[1512]: wmr300: read: e.errno=None e.strerror=None e.message=could not detach kernel driver from interface 0: No hay datos disponibles repr=USBError('could not detach kernel driver from interface 0: No ha$
Sep 25 06:25:18 MeteoElche weewx[1512]: wmr300: read: e.errno=None e.strerror=None e.message=could not detach kernel driver from interface 0: No hay datos disponibles repr=USBError('could not detach kernel driver from interface 0: No ha$
Sep 25 06:25:18 MeteoElche weewx[1512]: wmr300: read: e.errno=None e.strerror=None e.message=could not detach kernel driver from interface 0: No hay datos disponibles repr=USBError('could not detach kernel driver from interface 0: No ha$
Sep 25 06:25:19 MeteoElche weewx[1512]: wmr300: read: e.errno=None e.strerror=None e.message=could not detach kernel driver from interface 0: No hay datos disponibles repr=USBError('could not detach kernel driver from interface 0: No ha$
Sep 25 06:25:19 MeteoElche weewx[1512]: wmr300: read: e.errno=None e.strerror=None e.message=could not detach kernel driver from interface 0: No hay datos disponibles repr=USBError('could not detach kernel driver from interface 0: No ha$
Sep 25 06:25:20 MeteoElche weewx[1512]: wmr300: read: e.errno=None e.strerror=None e.message=could not detach kernel driver from interface 0: No hay datos disponibles repr=USBError('could not detach kernel driver from interface 0: No ha$
Sep 25 06:25:20 MeteoElche weewx[1512]: wmr300: read: e.errno=None e.strerror=None e.message=could not detach kernel driver from interface 0: No hay datos disponibles repr=USBError('could not detach kernel driver from interface 0: No ha$
Sep 25 06:25:21 MeteoElche weewx[1512]: wmr300: read: e.errno=None e.strerror=None e.message=could not detach kernel driver from interface 0: No hay datos disponibles repr=USBError('could not detach kernel driver from interface 0: No ha$
Sep 25 06:25:21 MeteoElche weewx[1512]: wmr300: read: e.errno=None e.strerror=None e.message=could not detach kernel driver from interface 0: No hay datos disponibles repr=USBError('could not detach kernel driver from interface 0: No ha$
Sep 25 06:25:22 MeteoElche weewx[1512]: wmr300: read: e.errno=None e.strerror=None e.message=could not detach kernel driver from interface 0: No hay datos disponibles repr=USBError('could not detach kernel driver from interface 0: No ha$
Sep 25 06:25:22 MeteoElche weewx[1512]: wmr300: read: e.errno=None e.strerror=None e.message=could not detach kernel driver from interface 0: No hay datos disponibles repr=USBError('could not detach kernel driver from interface 0: No ha$
Sep 25 06:25:23 MeteoElche weewx[1512]: wmr300: read: e.errno=None e.strerror=None e.message=could not detach kernel driver from interface 0: No hay datos disponibles repr=USBError('could not detach kernel driver from interface 0: No ha$
Sep 25 06:25:23 MeteoElche weewx[1512]: wmr300: read: e.errno=None e.strerror=None e.message=could not detach kernel driver from interface 0: No hay datos disponibles repr=USBError('could not detach kernel driver from interface 0: No ha$

Ruben Navarro Huedo

unread,
Sep 25, 2018, 3:00:04 AM9/25/18
to weewx-user
Running your version.

I can see debug is enabled by default.
Is this ok?
I will tell you in some hours the result.

 ff 7f ff 7f ff 7f ff 7f ff 7f fd 7f ff 00 00 00 02 00 00 00 00 00 00 00 00 00 00 0f 80 12 06 02 0d 21 00 00 27 11 00 7f ff 7f ff 7f ff 7f ff 7f 7f 7f 7f 7f 7f 7f 7f ff 7f ff 7f ff 00 00 00 00 00 00 00 af 01
Sep 25 08:57:13 MeteoElche weewx[2179]: wmr300: Bogus historical record index: 1698
Sep 25 08:57:13 MeteoElche weewx[2179]: wmr300:     content: d2 80 06 a2 ee ee ee 00 05 01 01 01 00 7f ff 7f ff 7f ff 7f ff 7f ff 7f ff 7f ff 20 00 7f 7f 7f 7f 7f 7f 7f 00 80 7f ff 7f ff 7f ff 7f ff 7f ff 7f ff 7f ff 01 00 7f ff 7f ff 7f ff 7f ff 7f ff 7f ff 7f ff 7f fd 7f ff 00 00 00 02 00 10 00 04 00 00 00 00 00 00 0f 80 12 06 02 0d 21 00 00 27 91 00 7f ff 7f ff 7f ff 7f ff 7f 7f 7f 7f 7f 7f 7f 7f ff 7f ff 7f ff 00 00 00 00 00 00 00 c6 01
Sep 25 08:57:13 MeteoElche weewx[2179]: wmr300: Bogus historical record index: 1699
Sep 25 08:57:13 MeteoElche weewx[2179]: wmr300:     content: d2 80 06 a3 ee ee ee 00 04 01 01 01 00 7f ff 7f ff 7f ff 7f ff 7f ff 7f ff 7f ff 21 00 7f 7f 7f 7f 7f 7f 7f 00 80 7f ff 7f ff 7f ff 7f ff 7f ff 7f ff 7f ff 01 00 7f ff 7f ff 7f ff 7f ff 7f ff 7f ff 7f ff 7f fd 7f ff 00 00 00 02 00 00 00 04 00 00 00 00 00 00 0f 80 12 06 02 0d 21 00 00 27 91 00 7f ff 7f ff 7f ff 7f ff 7f 7f 7f 7f 7f 7f 7f 7f ff 7f ff 7f ff 00 00 00 00 00 00 00 b7 01
Sep 25 08:57:13 MeteoElche weewx[2179]: wmr300: Bogus historical record index: 1700
Sep 25 08:57:13 MeteoElche weewx[2179]: wmr300:     content: d2 80 06 a4 ee ee ee 08 05 01 01 01 10 7f ff 7f ff 7f ff 7f ff 7f ff 7f ff 7f ff 31 00 7f 7f 7f 7f 7f 7f 7f 00 94 7f ff 7f ff 7f ff 7f ff 7f ff 7f ff 7f ff 01 00 7f ff 7f ff 7f ff 7f ff 7f ff 7f ff 7f ff 7f fd 7f ff 00 08 00 02 00 00 00 04 00 08 00 00 00 00 0f 80 12 06 02 0d 21 00 00 27 91 00 7f ff 7f ff 7f ff 7f ff 7f 7f 7f 7f 7f 7f 7f 7f ff 7f ff 7f ff 00 00 00 00 00 00 00 05 01
Sep 25 08:57:13 MeteoElche weewx[2179]: wmr300: Bogus historical record index: 1701
Sep 25 08:57:13 MeteoElche weewx[2179]: wmr300:     content: d2 80 06 a5 ee ee ee 08 02 01 08 01 10 7f ff 7f ff 7f ff 7f ff 7f ff 7f ff 7f ff 31 04 7f 7f 7f 7f 7f 7f 7f 00 c8 7f ff 7f ff 7f ff 7f ff 7f ff 7f ff 7f ff 01 02 7f ff 7f ff 7f ff 7f ff 7f ff 7f ff 7f ff 7f fd 7f ff 00 10 00 02 00 08 00 04 00 08 00 00 00 00 0f 80 12 06 02 0d 21 00 00 27 91 00 7f ff 7f ff 7f ff 7f ff 7f 7f 7f 7f 7f 7f 7f 7f ff 7f ff 7f ff 00 00 00 00 00 00 00 54 01
Sep 25 08:57:13 MeteoElche weewx[2179]: wmr300: Bogus historical record index: 1702
Sep 25 08:57:13 MeteoElche weewx[2179]: wmr300:     content: d2 80 06 a6 ee ee ee 08 07 01 08 01 10 7f ff 7f ff 7f ff 7f ff 7f ff 7f ff 7f ff 30 04 7f 7f 7f 7f 7f 7f 7f 00 c8 7f ff 7f ff 7f ff 7f ff 7f ff 7f ff 7f ff 01 00 7f ff 7f ff 7f ff 7f ff 7f ff 7f ff 7f ff 7f fd 7f ff 00 0c 00 02 00 0c 00 04 00 08 00 00 00 00 0f 80 12 06 02 0d 21 00 00 27 91 00 7f ff 7f ff 7f ff 7f ff 7f 7f 7f 7f 7f 7f 7f 7f ff 7f ff 7f ff 00 00 00 00 00 00 00 57 01
Sep 25 08:57:13 MeteoElche weewx[2179]: wmr300: Bogus historical record index: 1703
Sep 25 08:57:13 MeteoElche weewx[2179]: wmr300:     content: d2 80 06 a7 ee ee ee 08 14 01 01 01 10 7f ff 7f ff 7f ff 7f ff 7f ff 7f ff 7f ff 29 00 7f 7f 7f 7f 7f 7f 7f 00 9c 7f ff 7f ff 7f ff 7f ff 7f ff 7f ff 7f ff 01 00 7f ff 7f ff 7f ff 7f ff 7f ff 7f ff 7f ff 7f fd 7f ff 00 10 00 12 00 04 00 08 00 08 00 00 00 00 0f 80 12 06 02 0d 21 00 00 27 91 00 7f ff 7f ff 7f ff 7f ff 7f 7f 7f 7f 7f 7f 7f 7f ff 7f ff 7f ff 00 00 00 00 00 00 00 37 01
Sep 25 08:57:13 MeteoElche weewx[2179]: wmr300: Bogus historical record index: 1704
Sep 25 08:57:13 MeteoElche weewx[2179]: wmr300:     content: d2 80 06 a8 ee ee ee 08 11 01 00 01 14 7f ff 7f ff 7f ff 7f ff 7f ff 7f ff 7f ff 29 04 7f 7f 7f 7f 7f 7f 7f 00 c8 7f ff 7f ff 7f ff 7f ff 7f ff 7f ff 7f ff 01 02 7f ff 7f ff 7f ff 7f ff 7f ff 7f ff 7f ff 7f fd 7f ff 00 18 00 12 00 00 00 08 00 08 00 00 00 00 0f 80 12 06 02 0d 21 00 00 27 91 00 7f ff 7f ff 7f ff 7f ff 7f 7f 7f 7f 7f 7f 7f 7f ff 7f ff 7f ff 00 00 00 00 00 00 00 6e 01
Sep 25 08:57:13 MeteoElche weewx[2179]: wmr300: Bogus historical record index: 1728
Sep 25 08:57:13 MeteoElche weewx[2179]: wmr300:     content: d2 80 06 c0 ee ee ee 00 00 01 00 00 18 7f ff 7f ff 7f ff 7f ff 7f ff 7f ff 7f ff 2b 08 7f 7f 7f 7f 7f 7f 7f 00 82 7f ff 7f ff 7f ff 7f ff 7f ff 7f ff 7f ff 01 34 7f ff 7f ff 7f ff 7f ff 7f ff 7f ff 7f ff 7f fd 7f ff 00 10 00 28 00 02 00 08 00 00 00 00 00 00 05 0b 10 02 00 0d 01 00 00 27 03 00 7f ff 7f ff 7f ff 7f ff 7f 7f 7f 7f 7f 7f 7f 7f ff 7f ff 7f ff 00 00 00 00 00 00 00 35 01
Sep 25 08:57:13 MeteoElche weewx[2179]: wmr300: Bogus historical record index: 1729
Sep 25 08:57:13 MeteoElche weewx[2179]: wmr300:     content: d2 80 06 c1 ee ee ee 00 02 01 00 00 18 7f ff 7f ff 7f ff 7f ff 7f ff 7f ff 7f ff 2b 09 7f 7f 7f 7f 7f 7f 7f 00 82 7f ff 7f ff 7f ff 7f ff 7f ff 7f ff 7f ff 01 34 7f ff 7f ff 7f ff 7f ff 7f ff 7f ff 7f ff 7f fd 7f ff 00 20 00 28 00 24 00 08 00 00 00 00 00 00 05 0b 10 02 00 0d 01 00 00 27 03 00 7f ff 7f ff 7f ff 7f ff 7f 7f 7f 7f 7f 7f 7f 7f ff 7f ff 7f ff 00 00 00 00 00 00 00 6b 01
Sep 25 08:57:13 MeteoElche weewx[2179]: wmr300: Bogus historical record index: 1730
Sep 25 08:57:13 MeteoElche weewx[2179]: wmr300:     content: d2 80 06 c2 ee ee ee 00 02 01 00 00 1a 7f ff 7f ff 7f ff 7f ff 7f ff 7f ff 7f ff 2b 09 7f 7f 7f 7f 7f 7f 7f 00 82 7f ff 7f ff 7f ff 7f ff 7f ff 7f ff 7f ff 01 34 7f ff 7f ff 7f ff 7f ff 7f ff 7f ff 7f ff 7f fd 7f ff 00 30 00 29 00 40 00 00 00 00 00 00 00 00 05 0b 10 02 00 0d 01 00 00 27 03 00 7f ff 7f ff 7f ff 7f ff 7f 7f 7f 7f 7f 7f 7f 7f ff 7f ff 7f ff 00 00 00 00 00 00 00 93 01
Sep 25 08:57:13 MeteoElche weewx[2179]: wmr300: Bogus historical record index: 1731
Sep 25 08:57:13 MeteoElche weewx[2179]: wmr300:     content: d2 80 06 c3 ee ee ee 00 10 01 00 00 1a 7f ff 7f ff 7f ff 7f ff 7f ff 7f ff 7f ff 2b 08 7f 7f 7f 7f 7f 7f 7f 00 82 7f ff 7f ff 7f ff 7f ff 7f ff 7f ff 7f ff 01 34 7f ff 7f ff 7f ff 7f ff 7f ff 7f ff 7f ff 7f fd 7f ff 00 26 00 29 00 00 00 00 00 00 00 00 00 00 05 0b 10 02 00 0d 01 00 00 27 00 00 7f ff 7f ff 7f ff 7f ff 7f 7f 7f 7f 7f 7f 7f 7f ff 7f ff 7f ff 00 00 00 00 00 00 00 54 01
Sep 25 08:57:13 MeteoElche weewx[2179]: wmr300: Bogus historical record index: 1732
Sep 25 08:57:13 MeteoElche weewx[2179]: wmr300:     content: d2 80 06 c4 ee ee ee 00 10 01 00 00 1a 7f ff 7f ff 7f ff 7f ff 7f ff 7f ff 7f ff 2b 08 7f 7f 7f 7f 7f 7f 7f 00 82 7f ff 7f ff 7f ff 7f ff 7f ff 7f ff 7f ff 01 34 7f ff 7f ff 7f ff 7f ff 7f ff 7f ff 7f ff 7f fd 7f ff 00 25 00 20 00 50 00 08 00 08 00 00 00 00 05 0b 10 02 00 0d 01 00 00 27 00 00 7f ff 7f ff 7f ff 7f ff 7f 7f 7f 7f 7f 7f 7f 7f ff 7f ff 7f ff 00 00 00 00 00 00 00 ab 01
Sep 25 08:57:33 MeteoElche weewx[2179]: wmr300: possible missed rain event: new=0.0 old=None
Sep 25 08:57:33 MeteoElche weewx[2179]: wmr300: rain=None rain_total=0.0 last_rain=None
Sep 25 08:57:33 MeteoElche weewx[2179]: wmr300: get history complete: count=0 last_index=8013 history_end_index=8014
Sep 25 08:57:33 MeteoElche weewx[2179]: engine: Starting main packet loop.
Sep 25 08:57:34 MeteoElche weewx[2179]: wmr300: dump history
Sep 25 08:57:34 MeteoElche weewx[2179]: wmr300: reading records since 2018-09-25 08:57:34 CEST (1537858654) (last_index=8013 history_end_index=8014)
Sep 25 08:57:34 MeteoElche weewx[2179]: wmr300: get history complete: count=0 last_index=8013 history_end_index=8014
Sep 25 08:57:59 MeteoElche weewx[2179]: wmr300: history buffer at 0.00% (32)


Cameron D

unread,
Sep 25, 2018, 5:25:18 AM9/25/18
to weewx-user
Hello Ruben,
On the new code, I have deliberately left in the listing of bogus history records, as I am interested in their occurrence. I was worried that there was something about my history clearing that was creating them, however your system still has them even before the history clear begins.
They are only printed during startup or clearing history and I have never seen more than 30, so they should not full the logs. However they do accumulate so they might need to be examined in more detail in the future.

On the log that you posted from 3.8.2, the messages are simply saying the console is not giving any data, but there is no indication as to why.
If you enable the debug_timing option in my code then it should reveal issues that could have caused the hang-ups.

Cameron.

Ruben Navarro Huedo

unread,
Sep 25, 2018, 8:01:23 AM9/25/18
to weewx-user
Oks.
Now is running with your code.
If i have more problems i will enable it and we will study the problem.

Thank's a lot.

Leo De Geer

unread,
Sep 25, 2018, 8:16:42 AM9/25/18
to weewx...@googlegroups.com

HI

I'm now running the new driver on 3.8.1 and all are running ok for the first day new record

Good work Cameron

Regards Leo

--
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.
For more options, visit https://groups.google.com/d/optout.

Paul Lacatus (Gmail)

unread,
Sep 25, 2018, 11:37:42 AM9/25/18
to weewx...@googlegroups.com
Hi Cameron and all other users of WMR300. I switched today to the last version of WMR 300 driver and up to now looks ok

Paul

Ruben Navarro Huedo

unread,
Sep 25, 2018, 2:24:35 PM9/25/18
to weewx-user
Same here.... Now 12 hours uptime.
Record with 3.8.2.
With 3.8.2 original driver no more than 4 - 5 hours.

Juan Antonio Mosquera

unread,
Sep 25, 2018, 3:59:31 PM9/25/18
to weewx-user
It seems that with the new driver everything is OK. I will inform you. Thank you!


El lunes, 24 de septiembre de 2018, 3:03:37 (UTC+2), Cameron D escribió:

Juan Antonio Mosquera

unread,
Sep 26, 2018, 3:33:51 PM9/26/18
to weewx-user
I have detected a problem that I do not know if it is the driver or the skin (Belchertown). There are spaces in time that I do not have wind data, it can be seen in the capture that I attach.

Captura de pantalla de 2018-09-26 21-32-23.png



Thank you.

El lunes, 24 de septiembre de 2018, 3:03:37 (UTC+2), Cameron D escribió:

Ruben Navarro Huedo

unread,
Sep 26, 2018, 5:11:21 PM9/26/18
to weewx-user
Juan Antonio: Prueba un skin "normal" a ver que resultado tienes.
Yo no he observado eso.

Juan Antonio Mosquera

unread,
Sep 27, 2018, 2:07:25 AM9/27/18
to weewx-user
Hola,

Curiosamente desde que he publicado el mensaje tengo datos continuamente... 

Gracias, saludos.

Juan Antonio Mosquera

unread,
Oct 2, 2018, 2:04:34 AM10/2/18
to weewx-user
I have problems again, at a certain moment weewx stops receiving wind data. You can see it at www.meteomontaos.es
Greetings and thanks

El lunes, 24 de septiembre de 2018, 3:03:37 (UTC+2), Cameron D escribió:

Cameron D

unread,
Oct 2, 2018, 5:22:08 AM10/2/18
to weewx-user
OK, I can see you have recorded zero wind reading for today. What does the WMR300 console display?
Do you have wind chill and heat index configured for hardware or software?
If you have not changed the default from "prefer_hardware" then it suggests that the console is also seeing zero wind speed, because (if I translate the Spanish OK) then these values are tracking the temperature exactly.

Can you see the anemometer rotating?

Cameron.

Ruben Navarro Huedo

unread,
Oct 2, 2018, 9:04:16 AM10/2/18
to weewx-user
I have tested your driver some days.
All is very stable with 2.4.* Kernel but now with 2.9.*
With 2.9 systems hangs up randomly and after boot again i can't see anything on logs.

Cameron D

unread,
Oct 2, 2018, 10:12:50 AM10/2/18
to weewx-user
If you post the logs anyway, there might be something meaningful to me.
I am not aware of any kernel version sensitivity.

When you say "hangs up", is it just the same symptom of simply failing to collect any data, or does weewx stop or hang totally?

Ruben Navarro Huedo

unread,
Oct 2, 2018, 10:48:02 AM10/2/18
to weewx-user
It hang raspberry totally

Cameron D

unread,
Oct 2, 2018, 10:15:37 PM10/2/18
to weewx-user
Sounds bad.  I guess the most likely issue is that they have changed the USB kernel code in some way.
I doubt that there is much I can do by way of debugging, as it seems specifically tied to your kernel. Have you checked for other people reporting USB issues with this version?

All I can offer is you could try my experimental driver based on libusb1, since that is the library that interacts most directly with the kernel usb code.
It will stay experimental, as Matthew has reasons for not complicating the main driver.
I have an updated version from what I posted last year, which is keeping parallel with Matthew's changes.

On Wednesday, 3 October 2018 00:48:02 UTC+10, Ruben Navarro Huedo wrote:
It hang raspberry totally

Juan Antonio Mosquera

unread,
Oct 3, 2018, 1:51:20 AM10/3/18
to weewx-user
I have had the same problem, I have tried the following kernels and the one that I detected that does not cause the raspberry to turn off is the one I show at the end. total 64K drwxr-xr-x 16 root root 4.0K Sep 24 17:48. drwxr-xr-x 18 root root 4.0K Sep 22 12:04 .. drwxr-xr-x 3 root root 4.0K Sep 22 11:15 4.14.70+ drwxr-xr-x 3 root root 4.0K Sep 22 11:15 4.14.70-v7 + drwxr-xr-x 3 root root 4.0K Sep 22 10:39 4.14.71+ drwxr-xr-x 3 root root 4.0K Sep 22 10:39 4.14.71-v7 + drwxr-xr-x 3 root root 4.0K Sep 25 09:54 4.4.48+ drwxr-xr-x 3 root root 4.0K Sep 25 09:54 4.4.48-v7 + drwxr-xr-x 3 root root 4.0K Jun 24 2017 4.9.33+ drwxr-xr-x 3 root root 4.0K Jun 24 2017 4.9.33-v7 + drwxr-xr-x 3 root root 4.0K Jul 23 2017 4.9.39+ drwxr-xr-x 3 root root 4.0K Jul 23 2017 4.9.39-v7 + drwxr-xr-x 3 root root 4.0K Sep 24 17:49 4.9.51+ drwxr-xr-x 3 root root 4.0K Sep 24 17:49 4.9.51-v7 + drwxr-xr-x 3 root root 4.0K Sep 24 3:00 PM 4.9.80+ drwxr-xr-x 3 root root 4.0K Sep 24 15:00 4.9.80-v7 + pi @ meteomontaos: / lib / modules $ sudo uname -r 4.4.48+

Ruben Navarro Huedo

unread,
Oct 3, 2018, 6:28:43 AM10/3/18
to weewx-user
Same here:

pi@MeteoElche:~ $ uname -a
Linux MeteoElche 4.4.50-v7+ #970 SMP Mon Feb 20 19:18:29 GMT 2017 armv7l GNU/Linux
pi@MeteoElche:~ $

4.4.50 is the one stable for me.

4.4.* is stable.

I have the same problem with other Raspberry running a WMR200 weather station.

vince

unread,
Oct 3, 2018, 12:06:04 PM10/3/18
to weewx-user
On Tuesday, October 2, 2018 at 10:51:20 PM UTC-7, Juan Antonio Mosquera wrote:
I have had the same problem, I have tried the following kernels and the one that I detected that does not cause the raspberry to turn off is the one I show at the end. total 64K drwxr-xr-x 16 root root 4.0K Sep 24 17:48. drwxr-xr-x 18 root root 4.0K Sep 22 12:04 .. drwxr-xr-x 3 root root 4.0K Sep 22 11:15 4.14.70+ drwxr-xr-x 3 root root 4.0K Sep 22 11:15 4.14.70-v7 + drwxr-xr-x 3 root root 4.0K Sep 22 10:39 4.14.71+ drwxr-xr-x 3 root root 4.0K Sep 22 10:39 4.14.71-v7 + drwxr-xr-x 3 root root 4.0K Sep 25 09:54 4.4.48+ drwxr-xr-x 3 root root 4.0K Sep 25 09:54 4.4.48-v7 + drwxr-xr-x 3 root root 4.0K Jun 24 2017 4.9.33+ drwxr-xr-x 3 root root 4.0K Jun 24 2017 4.9.33-v7 + drwxr-xr-x 3 root root 4.0K Jul 23 2017 4.9.39+ drwxr-xr-x 3 root root 4.0K Jul 23 2017 4.9.39-v7 + drwxr-xr-x 3 root root 4.0K Sep 24 17:49 4.9.51+ drwxr-xr-x 3 root root 4.0K Sep 24 17:49 4.9.51-v7 + drwxr-xr-x 3 root root 4.0K Sep 24 3:00 PM 4.9.80+ drwxr-xr-x 3 root root 4.0K Sep 24 15:00 4.9.80-v7 + pi @ meteomontaos: / lib / modules $ sudo uname -r 4.4.48+


The latest Raspbian kernel is 4.14.70-v7+ for the pi3plus, based on doing an upgrade a few minutes ago.

Are you compiling your own kernel and perhaps getting some settings wrong ?    I'd also expect (untested) that the Raspbian folks might have some patches in their kernels perhaps (?) 

Ruben Navarro Huedo

unread,
Oct 3, 2018, 2:08:17 PM10/3/18
to weewx-user
NO
I don't compile kernel.
I run raspbian distributed stable kernels and also i have tested with latests rpi-update kernels with same result.

Ruben Navarro Huedo

unread,
Oct 3, 2018, 2:35:45 PM10/3/18
to weewx-user
Cameron: Yes... i can test your experimental driver.
I don't know what has changed from 4.4 to the nexts kernels, but with 4.4 all is stable.

Ruben Navarro Huedo

unread,
Oct 3, 2018, 3:45:48 PM10/3/18
to weewx-user
Juan Antonio: Con el fin de intentar ver la causa del problema.
¿Sería posible ponerme en contacto contigo por privado?

Mi email es runahue en gmail punto com

Gracias

El miércoles, 3 de octubre de 2018, 7:51:20 (UTC+2), Juan Antonio Mosquera escribió:

Juan Antonio Mosquera

unread,
Oct 3, 2018, 4:39:00 PM10/3/18
to weewx-user
The panel shows wind data, the anemometer moves, I have tried unplugging and plugging, everything works correctly. I have disabled Belchertown extension and it does not work either. Everything points to a bug in the driver.

Thank you.

El martes, 2 de octubre de 2018, 11:22:08 (UTC+2), Cameron D escribió:

Juan Antonio Mosquera

unread,
Oct 3, 2018, 4:39:29 PM10/3/18
to weewx-user
Ok, no hay problema, te envío un correo.

Juan Antonio Mosquera

unread,
Oct 4, 2018, 1:45:58 AM10/4/18
to weewx-user
the problem with the kernel happens to me with previous versions of weewx and the wmr300 driver.

Ruben Navarro Huedo

unread,
Oct 4, 2018, 7:36:58 AM10/4/18
to weewx-user
And the same with wmr200 driver

Thomas Keffer

unread,
Oct 4, 2018, 7:52:49 AM10/4/18
to weewx-user
I hesitate to wade into this, but are you running as a privileged user (i.e., 'root')? What happens if you run unprivileged (with appropriate /dev permissions, of course)?

-tk

On Thu, Oct 4, 2018 at 4:37 AM Ruben Navarro Huedo <run...@gmail.com> wrote:
And the same with wmr200 driver

Cameron D

unread,
Oct 4, 2018, 8:27:32 AM10/4/18
to weewx-user
There are multiple issues being posted here, neither of which are likely to be from the changes I made in the original thread post.

I will create two new threads - one for each of what seem to be the major issues, and see if we can concentrate the discussion.

Cameron.

Ruben Navarro Huedo

unread,
Oct 4, 2018, 9:22:04 AM10/4/18
to weewx-user
I haven't tested it with non-root .
How can I give privileges to /dev ?

Thomas Keffer

unread,
Oct 4, 2018, 9:35:58 AM10/4/18
to weewx...@googlegroups.com
It's in the Wiki. 
On Thu, Oct 4, 2018 at 6:22 AM Ruben Navarro Huedo <run...@gmail.com> wrote:
I haven't tested it with non-root .
How can I give privileges to /dev ?

--
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.
For more options, visit https://groups.google.com/d/optout.
--
-tk

Ruben Navarro Huedo

unread,
Oct 4, 2018, 9:54:34 AM10/4/18
to weewx-user
Thanks
I will try.
Reply all
Reply to author
Forward
0 new messages