Author Topic: WIttboy aka W90 firmware update with dfu-util (Linux)  (Read 1841 times)

0 Members and 1 Guest are viewing this topic.

Offline BaseLine

  • Senior Contributor
  • ****
  • Posts: 184
WIttboy aka W90 firmware update with dfu-util (Linux)
« on: September 07, 2022, 04:13:05 AM »
Hello
I have no wish to brick my WS90  :grin: ...
Have any of you managed to update Ecowitt Witboy (or similar devices) with dfu-util or do you know, how to do it?
My W90 firmware seems to be ancient (1.0.95) and I decided to update it to the latest available one.
 
I do not have MS Windows nor do I plan to install it (virtual or separate partition) so please, save your time recommending it. Thank you. I also do not have the bandwidth do download it.

I have installed dfu-util , and got the WS90_V1.2.5.dfu file.

dfu-util 0.11 finds the device without any problems.

Code: [Select]
./dfu-util -lv

Found DFU: [0483:df11] ver=0200, devnum=7, cfg=1, intf=0, path="1-2",
alt=0, name="@Internal Flash   /0x08000000/192*256ba,320*256bg", serial="00000000001A"

« Last Edit: September 07, 2022, 04:30:11 AM by BaseLine »
Sun cooked nothingburger of climate change hysteria with a side order of peak-oil nonsense fries.

Offline olicat

  • Forecaster
  • *****
  • Posts: 1522
  • GWxx00, HPx5x1C, WN1900C, WN1980C & WS3xx0C
    • FOSHKplugin
Re: WIttboy aka W90 firmware update with dfu-util (Linux)
« Reply #1 on: September 07, 2022, 04:45:18 AM »
Hi!

So far, no one has dared to try it out. At least I can't remember any such reports.
So you could be the first to gather experience. Or even the first to brick the sensor...
:-#
I think the risk is actually manageable if the device is displayed. But of course I can't give any guarantee and I'm not sure I would have the courage to try it out.

There is also an Android app that could possibly be used to upgrade the WS90. But as far as I know, no one has tried that yet either.
I would find that much more interesting than always having to climb to the sensor with the notebook.

How brave are you?
;-)

Oliver

Offline BaseLine

  • Senior Contributor
  • ****
  • Posts: 184
Re: WIttboy aka W90 firmware update with dfu-util (Linux)
« Reply #2 on: September 07, 2022, 05:26:25 AM »
I used
Code: [Select]
./dfu-util -vv -a 0 -D /tmp/WS90_V1.2.5.dfu

I think the firmware versions app is reporting is actually the gateway or the phone app.
I have no idea did it work or not. S

BTW, how can I find out what's the firmware version is?
Sun cooked nothingburger of climate change hysteria with a side order of peak-oil nonsense fries.

Offline Gyvate

  • Forecaster
  • *****
  • Posts: 3329
Re: WIttboy aka W90 firmware update with dfu-util (Linux)
« Reply #3 on: September 07, 2022, 06:00:09 AM »
Quote
BTW, how can I find out what's the firmware version is?

by reading the firmware section of our MUST READ thread
https://www.wxforum.net/index.php?topic=40730.0  8-)

When your GW1100 or GW2000 is on FW >= 2.1.6, you can hover with the mouse pointer over the WS90 icon in the sensorsID page of the WebUI - and the WS90 FW should be shown
e.g.
 [ You are not allowed to view attachments ]
« Last Edit: September 07, 2022, 06:06:49 AM by Gyvate »
WS2350 1.6.7, GW1000(3) 1.7.7,WH2650 WiFi (2) 1.7.7 (test/backup), GW1100 2.3.1, GW2000(3) 3.1.1, HP2551 1.9.5,5.1.5;HP3500 1.7.2,WS3800 1.2.8, WN1910 1.2.3,WN1980 1.2.3;
Ecowitt WS90(2)1.3.5/1.4.0, WS80(2)1.2.5, WS68, WS69, WH40, WH31, WH31-EP, WN30, WN34L, WN35, WH32, WH32-EP, WH32B, WH57 [Lightning], WH41 [PM2.5], WH51, WH45, WH55
MeteobridgePro(2)[test,prod] 5.8 Mar 01 2024, 15185 - Blake-Larsen Sun Recorder - RPi4/weewx 4.8.0/4.10.2/CumulusMX 3283/Meteobridge RPi4B-2GB(3169)
Barani Meteoshield Pro, MetSpec Rad02 - Ecowitt 5763,34418;WU ISAARB3(WH4000SE),ISAARB22(HP2553), http://meshka.eu

Offline Gyvate

  • Forecaster
  • *****
  • Posts: 3329
Re: WIttboy aka W90 firmware update with dfu-util (Linux)
« Reply #4 on: September 07, 2022, 06:05:26 AM »
I do not have MS Windows nor do I plan to install it (virtual or separate partition) so please, save your time recommending it. Thank you. I also do not have the bandwidth do download it.
an imho practical alternative could be to borrow a Windows laptop from an acquaintance and do the upgrade  8-)
(if the acquaintance agrees  ;)) - would save a lot of time, no risk ...
WS2350 1.6.7, GW1000(3) 1.7.7,WH2650 WiFi (2) 1.7.7 (test/backup), GW1100 2.3.1, GW2000(3) 3.1.1, HP2551 1.9.5,5.1.5;HP3500 1.7.2,WS3800 1.2.8, WN1910 1.2.3,WN1980 1.2.3;
Ecowitt WS90(2)1.3.5/1.4.0, WS80(2)1.2.5, WS68, WS69, WH40, WH31, WH31-EP, WN30, WN34L, WN35, WH32, WH32-EP, WH32B, WH57 [Lightning], WH41 [PM2.5], WH51, WH45, WH55
MeteobridgePro(2)[test,prod] 5.8 Mar 01 2024, 15185 - Blake-Larsen Sun Recorder - RPi4/weewx 4.8.0/4.10.2/CumulusMX 3283/Meteobridge RPi4B-2GB(3169)
Barani Meteoshield Pro, MetSpec Rad02 - Ecowitt 5763,34418;WU ISAARB3(WH4000SE),ISAARB22(HP2553), http://meshka.eu

Offline BaseLine

  • Senior Contributor
  • ****
  • Posts: 184
Re: WIttboy aka W90 firmware update with dfu-util (Linux)
« Reply #5 on: September 07, 2022, 08:18:38 AM »

an imho practical alternative could be to borrow a Windows laptop from an acquaintance and do the upgrade  8-)
(if the acquaintance agrees  ;)) - would save a lot of time, no risk ...
=D>

NO  
Sun cooked nothingburger of climate change hysteria with a side order of peak-oil nonsense fries.

Offline olicat

  • Forecaster
  • *****
  • Posts: 1522
  • GWxx00, HPx5x1C, WN1900C, WN1980C & WS3xx0C
    • FOSHKplugin
Re: WIttboy aka W90 firmware update with dfu-util (Linux)
« Reply #6 on: September 07, 2022, 08:35:21 AM »
Hi BaseLine,

Quote
BTW, how can I find out what's the firmware version is?
in the meantime, can you confirm that you were able to update the WS90 with Linux? Have you checked the current version number?
That would be nice for all of us to know. Thank you very much!

Oliver

Offline BaseLine

  • Senior Contributor
  • ****
  • Posts: 184
Re: WIttboy aka W90 firmware update with dfu-util (Linux)
« Reply #7 on: September 07, 2022, 09:06:31 AM »
I have no idea did it update or not but it was sending data to GW2000 just fine.
I seems I had forgotten the gateway password so I did a "reset", logged in and now the WS90 is not showing up any more. The blue light indicating connection between the gateway and WS blinks like it's receiving data but nothing shows up on admin page or in my phone app. 
Sun cooked nothingburger of climate change hysteria with a side order of peak-oil nonsense fries.

Offline olicat

  • Forecaster
  • *****
  • Posts: 1522
  • GWxx00, HPx5x1C, WN1900C, WN1980C & WS3xx0C
    • FOSHKplugin
Re: WIttboy aka W90 firmware update with dfu-util (Linux)
« Reply #8 on: September 07, 2022, 09:18:29 AM »
Hi!

You should try to reregister the WS90 in the WSView Plus app or the admin interface on the GW2000.
More/Sensors ID - Disable, enable, re-register. Something like that.
Beware!
Do not use the WSView app but the WSView Plus app (or the http page).

Oliver

Offline Gyvate

  • Forecaster
  • *****
  • Posts: 3329
Re: WIttboy aka W90 firmware update with dfu-util (Linux)
« Reply #9 on: September 07, 2022, 09:37:27 AM »
I have no idea did it update or not but it was sending data to GW2000 just fine.
I seems I had forgotten the gateway password so I did a "reset", logged in and now the WS90 is not showing up any more. The blue light indicating connection between the gateway and WS blinks like it's receiving data but nothing shows up on admin page or in my phone app.
did you do another WS90 sensor reset after the upgrade ?
you have to press the reset button again for 5-10 seconds after the upgrade completed - once the blue LED of the WS90 is blinking again every 9 seconds, the GW2000 should recognize it.
If you have (had ?) noted down the sensor ID of the WS90 before (something I recommend for all sensors !), you could manually register it again.
WS2350 1.6.7, GW1000(3) 1.7.7,WH2650 WiFi (2) 1.7.7 (test/backup), GW1100 2.3.1, GW2000(3) 3.1.1, HP2551 1.9.5,5.1.5;HP3500 1.7.2,WS3800 1.2.8, WN1910 1.2.3,WN1980 1.2.3;
Ecowitt WS90(2)1.3.5/1.4.0, WS80(2)1.2.5, WS68, WS69, WH40, WH31, WH31-EP, WN30, WN34L, WN35, WH32, WH32-EP, WH32B, WH57 [Lightning], WH41 [PM2.5], WH51, WH45, WH55
MeteobridgePro(2)[test,prod] 5.8 Mar 01 2024, 15185 - Blake-Larsen Sun Recorder - RPi4/weewx 4.8.0/4.10.2/CumulusMX 3283/Meteobridge RPi4B-2GB(3169)
Barani Meteoshield Pro, MetSpec Rad02 - Ecowitt 5763,34418;WU ISAARB3(WH4000SE),ISAARB22(HP2553), http://meshka.eu

Offline BaseLine

  • Senior Contributor
  • ****
  • Posts: 184
Re: WIttboy aka W90 firmware update with dfu-util (Linux)
« Reply #10 on: September 07, 2022, 11:04:33 AM »
did you do another WS90 sensor reset after the upgrade ?
you have to press the reset button again for 5-10 seconds after the upgrade completed - once the blue LED of the WS90 is blinking again every 9 seconds, the GW2000 should recognize it.
If you have (had ?) noted down the sensor ID of the WS90 before (something I recommend for all sensors !), you could manually register it again.

What I did with WS90:

I plugged in the USB. It did not show up on my list of USB devices.

I held the Reset button down for about 5 sec and the blue light starts to blink

Code: [Select]
lsusb
Bus 001 Device 022: ID 0483:df11 STMicroelectronics STM Device in DFU Mode

I ran dfu-util and it seems to upload what ever it uploads but it never exist cleanly. Just hangs there showing:
Code: [Select]
Erasing page size 256 at address 0x08017200, page starting at 0x08017200
   Poll timeout 50 ms
   Poll timeout 0 ms
 Download from image offset 00000000 to memory 0800c000-0800c3ff, size 1024
  Setting address pointer to 0x0800c000
   Poll timeout 50 ms
   Poll timeout 0 ms

SO, after a while I stopped it, unplugged the WS90 from USB and held the Reset for 5 sec.... nothing.
10 sec.... still nothing

I guess I have a nice 300+ EUR doorstop :)
 
« Last Edit: September 07, 2022, 11:10:12 AM by BaseLine »
Sun cooked nothingburger of climate change hysteria with a side order of peak-oil nonsense fries.

Offline Gyvate

  • Forecaster
  • *****
  • Posts: 3329
Re: WIttboy aka W90 firmware update with dfu-util (Linux)
« Reply #11 on: September 07, 2022, 12:37:19 PM »
What I did with WS90:

I plugged in the USB. It did not show up on my list of USB devices.

I held the Reset button down for about 5 sec and the blue light starts to blink

After plugging in the mini-USB, you have to press the reset button for 5-10 seconds until the blue LED which was blinking before shows a constant blue light.
Only then the WS90 can be recognized as a USB device.
Then do the upload (your log seems to show that nothing happened - only timeout).
Make sure you don't confuse the CAL button with the RESET button.
Maybe try again ....
WS2350 1.6.7, GW1000(3) 1.7.7,WH2650 WiFi (2) 1.7.7 (test/backup), GW1100 2.3.1, GW2000(3) 3.1.1, HP2551 1.9.5,5.1.5;HP3500 1.7.2,WS3800 1.2.8, WN1910 1.2.3,WN1980 1.2.3;
Ecowitt WS90(2)1.3.5/1.4.0, WS80(2)1.2.5, WS68, WS69, WH40, WH31, WH31-EP, WN30, WN34L, WN35, WH32, WH32-EP, WH32B, WH57 [Lightning], WH41 [PM2.5], WH51, WH45, WH55
MeteobridgePro(2)[test,prod] 5.8 Mar 01 2024, 15185 - Blake-Larsen Sun Recorder - RPi4/weewx 4.8.0/4.10.2/CumulusMX 3283/Meteobridge RPi4B-2GB(3169)
Barani Meteoshield Pro, MetSpec Rad02 - Ecowitt 5763,34418;WU ISAARB3(WH4000SE),ISAARB22(HP2553), http://meshka.eu

Offline Gyvate

  • Forecaster
  • *****
  • Posts: 3329
Re: WIttboy aka W90 firmware update with dfu-util (Linux)
« Reply #12 on: September 07, 2022, 12:40:41 PM »
Quote
I guess I have a nice 300+ EUR doorstop :)
if you really need a new WS90, it will be rather 200 EUR than 300 EUR (see shop.ecowitt.com) - your GW2000 should still work  8-)
WS2350 1.6.7, GW1000(3) 1.7.7,WH2650 WiFi (2) 1.7.7 (test/backup), GW1100 2.3.1, GW2000(3) 3.1.1, HP2551 1.9.5,5.1.5;HP3500 1.7.2,WS3800 1.2.8, WN1910 1.2.3,WN1980 1.2.3;
Ecowitt WS90(2)1.3.5/1.4.0, WS80(2)1.2.5, WS68, WS69, WH40, WH31, WH31-EP, WN30, WN34L, WN35, WH32, WH32-EP, WH32B, WH57 [Lightning], WH41 [PM2.5], WH51, WH45, WH55
MeteobridgePro(2)[test,prod] 5.8 Mar 01 2024, 15185 - Blake-Larsen Sun Recorder - RPi4/weewx 4.8.0/4.10.2/CumulusMX 3283/Meteobridge RPi4B-2GB(3169)
Barani Meteoshield Pro, MetSpec Rad02 - Ecowitt 5763,34418;WU ISAARB3(WH4000SE),ISAARB22(HP2553), http://meshka.eu

Offline olicat

  • Forecaster
  • *****
  • Posts: 1522
  • GWxx00, HPx5x1C, WN1900C, WN1980C & WS3xx0C
    • FOSHKplugin
Re: WIttboy aka W90 firmware update with dfu-util (Linux)
« Reply #13 on: September 07, 2022, 12:45:14 PM »
Hi!

Where did you read about the 5 or 10 seconds? The instructions I have for the update only say "Press Reset".
I only ever press it briefly once.

Oliver

Offline Gyvate

  • Forecaster
  • *****
  • Posts: 3329
Re: WIttboy aka W90 firmware update with dfu-util (Linux)
« Reply #14 on: September 07, 2022, 01:17:01 PM »
Hi!
Where did you read about the 5 or 10 seconds? The instructions I have for the update only say "Press Reset".
I only ever press it briefly once.
Oliver
From Henry (Ecowitt) in the Facebook Wittboy Betatest Group ...
And that's how I did it so far several times successfully  8-)
It may be redundant to press the button that long - but it worked (or didn't keep it from working).
And confusing the buttons can easily happen ...
WS2350 1.6.7, GW1000(3) 1.7.7,WH2650 WiFi (2) 1.7.7 (test/backup), GW1100 2.3.1, GW2000(3) 3.1.1, HP2551 1.9.5,5.1.5;HP3500 1.7.2,WS3800 1.2.8, WN1910 1.2.3,WN1980 1.2.3;
Ecowitt WS90(2)1.3.5/1.4.0, WS80(2)1.2.5, WS68, WS69, WH40, WH31, WH31-EP, WN30, WN34L, WN35, WH32, WH32-EP, WH32B, WH57 [Lightning], WH41 [PM2.5], WH51, WH45, WH55
MeteobridgePro(2)[test,prod] 5.8 Mar 01 2024, 15185 - Blake-Larsen Sun Recorder - RPi4/weewx 4.8.0/4.10.2/CumulusMX 3283/Meteobridge RPi4B-2GB(3169)
Barani Meteoshield Pro, MetSpec Rad02 - Ecowitt 5763,34418;WU ISAARB3(WH4000SE),ISAARB22(HP2553), http://meshka.eu

Offline BaseLine

  • Senior Contributor
  • ****
  • Posts: 184
Re: WIttboy aka W90 firmware update with dfu-util (Linux)
« Reply #15 on: September 07, 2022, 01:42:45 PM »

After plugging in the mini-USB, you have to press the reset button for 5-10 seconds until the blue LED which was blinking before shows a constant blue light.

Makes no difference if I hold it for 5 10 or 15 seconds, it ends up blinking and shows up as STMicroelectronics STM Device in DFU Mode.



« Last Edit: September 07, 2022, 01:45:16 PM by BaseLine »
Sun cooked nothingburger of climate change hysteria with a side order of peak-oil nonsense fries.

Offline Rover1822

  • Forecaster
  • *****
  • Posts: 2017
    • Mini Wind and Solar Data project
Re: WIttboy aka W90 firmware update with dfu-util (Linux)
« Reply #16 on: September 07, 2022, 02:33:37 PM »

After plugging in the mini-USB, you have to press the reset button for 5-10 seconds until the blue LED which was blinking before shows a constant blue light.

Makes no difference if I hold it for 5 10 or 15 seconds, it ends up blinking and shows up as STMicroelectronics STM Device in DFU Mode.
I believe you want to be disconnected at that final reset
Ambient:
  WS-2000
  PM 2.5(2)
  WH31B(2)
  WH40E
  WH31P
EcoWitt:
  GW1100
  GW1000(4)
  WH31(2)
  WH57
  WH51(12),
  WH40
  WH5360B
  WN34S
  WittBoy WS90 + GW2000
  WS90 (other one) + GW1100
Personal Sites: Weather Cam

Offline DelChard

  • Senior Contributor
  • ****
  • Posts: 205
Re: WIttboy aka W90 firmware update with dfu-util (Linux)
« Reply #17 on: September 07, 2022, 04:57:21 PM »
A shot in the dark.
The instructions for dfuse require you to explicitly leave dfu mode.
In dfu-util this would be :leave
Example from dfu-util
$ dfu-util -a 0 -s 0x08004000:leave -D /path/to/image.bin

Offline BaseLine

  • Senior Contributor
  • ****
  • Posts: 184
Re: WIttboy aka W90 firmware update with dfu-util (Linux)
« Reply #18 on: September 08, 2022, 05:15:57 AM »
The instructions for dfuse require you to explicitly leave dfu mode.
No such requirement. Looks like it's only used when dealing with bin files.
Sun cooked nothingburger of climate change hysteria with a side order of peak-oil nonsense fries.

Offline DelChard

  • Senior Contributor
  • ****
  • Posts: 205
Re: WIttboy aka W90 firmware update with dfu-util (Linux)
« Reply #19 on: September 08, 2022, 05:24:07 AM »
I only have a WS80, so maybe the instruction is different. See item 5
 [ You are not allowed to view attachments ]

Offline olicat

  • Forecaster
  • *****
  • Posts: 1522
  • GWxx00, HPx5x1C, WN1900C, WN1980C & WS3xx0C
    • FOSHKplugin
Re: WIttboy aka W90 firmware update with dfu-util (Linux)
« Reply #20 on: September 08, 2022, 05:51:29 AM »
Hi!

The identical picture and procedure applies to the description of the WS90 update, which is included as a pdf "WS90 Firmware upgrade Help File.pdf" in every firmware update ZIP package (also in v1.2.5).

I wrote a small batch script to help me to remember all the things to do in the right order.
Here're the echos from the script file:

mini howto updating the WS90 sensor
1. plug in USB cable
2. reset WS90 device (left button on WS90)
3. start DfuSeDemo.exe
4. choose upload file (middle button in the lower area)
5. mark "Verify after download"
6. start Upgrade (button)
7. leave DFU mode (button)
8. unplug USB cable
9. reset WS90 device (left button on WS90)

This way I already updated my WS90 several times.

Oliver

Offline olicat

  • Forecaster
  • *****
  • Posts: 1522
  • GWxx00, HPx5x1C, WN1900C, WN1980C & WS3xx0C
    • FOSHKplugin
Re: WIttboy aka W90 firmware update with dfu-util (Linux)
« Reply #21 on: September 09, 2022, 03:19:29 AM »
Hi BaseLine,

WS90 firmware 1.2.5 is a joke. Do not update. I get rain in early mornings while the sky is clear.
I think it's water form melting frost.
so you're back in the game? How did you achieve that?
Please share your findings here! This can help others a lot.
Thanks!

Regards, Oliver

Offline chineplate

  • Member
  • *
  • Posts: 5
Re: WIttboy aka W90 firmware update with dfu-util (Linux)
« Reply #22 on: September 14, 2022, 06:56:48 AM »
v1.2.5 doesn’t appear fit for purpose.
Updated to v1.2.5 yesterday and this morning receiving several indications of light rain, in total 1mm. Problem is, it’s been a dry day with clear sky.
Reverting back to 1.2.3

Offline nobelium

  • Member
  • *
  • Posts: 1
Re: WIttboy aka W90 firmware update with dfu-util (Linux)
« Reply #23 on: November 01, 2022, 12:26:56 PM »
I'm also desperate to get my hands on dfu-util since it works on macOS and I don't have any Windows machine laying around. Has anyone had any progress so far emulating DfuSe?

Offline MonsterDog6

  • Senior Member
  • **
  • Posts: 65
Re: WIttboy aka W90 firmware update with dfu-util (Linux)
« Reply #24 on: November 01, 2022, 12:54:39 PM »
Davis vantage pro2 plus 6263m
Weatherlink console 6313

Ecowitt :
HP2560_C
Ws3900
Ecowitt WS90(2)[SHT35], WH40W,  WH57 [Lightning],
WH41 [PM2.5]  WH51 , WH45, WH46[PM1.0,PM4.0]

 

anything