Page 1 of 1

Discovery doesn't work for GW1000 at 433MHz

Posted: Sun 09 May 2021 12:44 pm
by zoomx
I noticed that the autodiscovery doesn't work for a GW1000 at 433MHz that I have.

I believe that the bug is in GW1000Station.cs line 425

Code: Select all

string[] namesToCheck = { "GW1000A", "WH2650A", "EasyWeather", "AMBWeather", "WS1900A" };
because the reply of this GW1000 is .... GW1000 and not GW1000A. I am not sure if all GW1000 at 433MHz reply in this way.

Instead WN1900, I have one, reply as you expected as WS1900A but maybe the 433 MHz lack the A too.
Unfortunately only discovery works, no data is show. It seems that there was a change in the protocol for this small console.

These are the diagnostic

Code: Select all

2021-05-09 14:31:25.297 ERROR: No data received from the GW1000 for 30 seconds
2021-05-09 14:31:25.297 Running GW-1000 auto-discovery...
2021-05-09 14:31:25.454 Attempting to reconnect to GW1000...
2021-05-09 14:31:30.428 Discovered more than one potential GW1000 device.
2021-05-09 14:31:30.428 Please select the IP address from the list and enter it manually into the configuration
2021-05-09 14:31:30.430   discovered IPs = 192.168.1.52 192.168.1.54 192.168.1.90 
2021-05-09 14:31:35.463 Attempting to reconnect to GW1000...
2021-05-09 14:31:45.475 Attempting to reconnect to GW1000...
2021-05-09 14:31:55.306 ERROR: No data received from the GW1000 for 30 seconds
2021-05-09 14:31:55.306 Running GW-1000 auto-discovery...
2021-05-09 14:31:55.478 Attempting to reconnect to GW1000...
Maybe the query packet is different.

I used Wireshark against WSview but my driver doesn't support promiscuous mode because I don't see the GW1000 and others device reply.

Re: Discovery doesn't work for GW1000 at 433MHz

Posted: Sun 09 May 2021 12:53 pm
by liddelljs
I would second this based on my 433 MHz GW1000 station. I'm not sure which version the problems started but certainly from build 3122 the autodiscovery hasn't worked. I have solved it by reserving an IP address in my router and then entering this IP address and the station MAC address into the GW1000 settings and turning off autodiscovery.

Cheers
Steve

Re: Discovery doesn't work for GW1000 at 433MHz

Posted: Sun 09 May 2021 2:09 pm
by zoomx
Instead it seems that the protocol was not changed and it works with WN1900.
WN1900 is more slow to reply also with WSview, maybe errors are due to this. But this console is still in beta so maybe thing will change.

Re: Discovery doesn't work for GW1000 at 433MHz

Posted: Sun 09 May 2021 3:42 pm
by mcrossley
Cumulus was discovering three potential devices...

Code: Select all

Discovered more than one potential GW1000 device.
Please select the IP address from the list and enter it manually into the configuration
   discovered IPs = 192.168.1.52 192.168.1.54 192.168.1.90 
As there are three devices responding, you have to decide which one you are going to use. Then enter it's IP address manually in the configuration.

Auto-discovery only works if there is a single device to begin with - though it will attempt to "track" the device via its MAC address if it subsequently changes IP address, or another device is added to the network.

I have an enhancement on the long ToDo list to allow you to run discovery from the settings page, then select the device from the discovered list if there is more than one. I'm not sure when/if that will get implemented though.

Re: Discovery doesn't work for GW1000 at 433MHz

Posted: Sun 09 May 2021 5:53 pm
by zoomx
I have four Devices

192.168.1.51 GW1000-433-1
192.168.1.52 GW1000-868-1
192.168.1.54 GW1000-868-2
192.168.1.90 WN1900

The first one is the one that is not recognized. I don't need it because I know the IP (it's assigned by the router) but maybe for other can be a problem.
I don't know if all GW1000 at 433MHz give the same reply but mine reply with GW1000 and not GW1000A, I know this because I replicated your discovery code in a small program to test this.

Re: Discovery doesn't work for GW1000 at 433MHz

Posted: Mon 10 May 2021 9:03 am
by The Dalek Hunter
Auto-discovery doesn't work with the GW1000B at 915 MHz either.

I have just setup my new Ecowitt Station with the latest CMX (to run alongside my Davis WLL one) - auto-discovery didn't work but as above I gave ithe GW1000 a fixed IP address and set this IP and MAC in the settings and it is fine

Re: Discovery doesn't work for GW1000 at 433MHz

Posted: Mon 10 May 2021 10:02 am
by zoomx
So without any letter mean 433MHx, A mean 868 MHz and B mean 915MHz version.

Re: Discovery doesn't work for GW1000 at 433MHz

Posted: Mon 10 May 2021 1:40 pm
by mcrossley
We learn something about Ecowitt stations every week! It's a shame they do not document it all :(

Re: Discovery doesn't work for GW1000 at 433MHz

Posted: Mon 10 May 2021 1:58 pm
by mcrossley
Fixed for the next release.