Australian XC0422 (same as HP1000??) Weather Station VID and PID

729 views
Skip to first unread message

vk3...@gmail.com

unread,
Jul 13, 2016, 1:50:18 AM7/13/16
to weewx-user
I have just bought an XC0422 Weather station from Jaycar (in Australia) and it appears to be working well. My understanding is that this is a re-badged Fine Offset HP1000 - it appears to be identical except that mine came with rechargeable batteries!
I have installed Weewx on a Raspberry Pi (2 B+) and told it that it should connect via USB using the weewx.drivers.fousb driver. However I suspect that there is a difference in the USB VID and PID that the driver is looking for as all of the various weewx utilities and weewx itself seem to crash with a python stack dump about 'unable to find USB device'.
I get syslog messages saying that it cannot find a device with a VID of 0x1941 and a PID of 0x8021. My VID is 0x45e and PID is 0x00ce
Is there somewhere I can set the VID and PID for the driver to look for to see my device?
Susan

Andrew Milner

unread,
Jul 13, 2016, 2:07:53 AM7/13/16
to weewx-user
self.vendor_id and self.product_id are set in fousb.py in ...../bin/weewx/drivers directory - so you should be able to save the original as a backup and then edit the file - but you will have to remember to remake the edits whenever the driver is updated..

mwall

unread,
Jul 13, 2016, 7:35:00 AM7/13/16
to weewx-user

hi susan,

welcome to weewx!

the hp1000 transmits data via wifi, not usb; the fousb driver will not work with it.

the weewx wiki has some general information about these stations:

https://github.com/weewx/weewx/wiki/observer

you should try the interceptor driver:

https://github.com/matthewwall/weewx-interceptor

m

vk3...@gmail.com

unread,
Jul 14, 2016, 1:46:33 AM7/14/16
to weewx-user
That makes a lot of sense now - thanks.
I think I have other problems with the RPi setup I'm using as the WeeWx daemon does not seem to want to keep running still but that is another story.
Susan

gjr80

unread,
Jul 14, 2016, 2:29:17 AM7/14/16
to weewx-user
Hi,

It's often a good idea to get weewx bedded down and running properly using the simulator driver rather than a physical station. This at least takes one variable out of the equation when trying to get weewx up and running. Once weewx is running properly, it is a simple matter to move any simulated data aside and then cut across (either manually or using the weewx utility wee_config) to your physical station.

Gary

vk3...@gmail.com

unread,
Jul 15, 2016, 3:32:51 AM7/15/16
to weewx-user
Thank you for the suggestion.
I'm rebuilding my Ham Radio station right now (just moved to a new place) and trying to do a bit too much all at once perhaps.
Got a lot to learn about WeeWx etc..
Susan

vk3...@gmail.com

unread,
Jul 24, 2016, 1:53:24 AM7/24/16
to weewx-user
Progress so far: I have WeeWx running with the simulator and that seems to be working OK; at least the web page display seems to be updating.
I've installed the 'interceptor' driver (successfully I think) and I've configured it to look at port 9999.
I've used the 'nmap' program on my iMac to probe the RPi and it shows that the port is open (as a tcp http port).
I've also run 'tcpdump' on the RPi to monitor port 9999 and I can see the traffic from my iMac probing the port.
I've tried to set up the XC0422 to send its information every minute to the RPi but I see nothing on the RPI.
Therefore I'm looking for some help is how to set up the XC4022 (seems to be identical to the HP1000 in this respect) as the manual seems to show how to connect to the Weather Underground site only.
If I go into the 'Weather Server' setup screen, I have it set up as follows:

Web: www.***.com     - this is the default but the only other option seems to be 'www.wunderground.com' which only gives me the 'StationID' and 'Password' options which makes sense
Station ID: (blank)
Password: ******        - again this seems to be the default
Server: 10.1.1.21       - the IP address of the RPI
Server Type: JSP      - the default but the other options are ASP and PHP
Upload type: Default
Server Port: 9999

I can't find out what the settings should be (especially the 'Server type') but what I have does not seem to work at all.
Any assistance would be appreciated.
Susan

mwall

unread,
Jul 24, 2016, 9:55:20 PM7/24/16
to weewx-user

did you try php for the server type?  the interceptor looks for an http GET of the form /weatherstation/updateweatherstation.php?ID=...

can you run tcpdump on the router to which the station is connected?  that will tell you exactly what the station is spitting out.

also, i seem to recall someone mentioning that a power cycle of the station is required for changes to take effect.  could you find out if that is necessary?

m

vk3...@gmail.com

unread,
Jul 25, 2016, 7:11:19 AM7/25/16
to weewx-user
I have tried setting the 'Server type' to PHP but no change.

Also the tcpdump looking at both the weather station and the IP address it should be connecting to shows no traffic at all (except for 'who-has' ARP packets from the modem).

I also tried putting in a dummy 'Station ID' and restarting the console but still nothing.

I will try to register for Weather Underground and see if I can detect the packets being sent form the console in that configuration.

Thanks for the continuing assistance.

Susan
Message has been deleted

Andrew Milner

unread,
Oct 17, 2017, 4:12:25 AM10/17/17
to weewx...@googlegroups.com
doesn't the HP1000 communicate via wifi rather than usb??  See the drivers section of the weewx wiki (under support)

On 17 October 2017 at 10:34, <pat.g...@gmail.com> wrote:

--
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/FdbfX4zPXq4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to weewx-user+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

vk3...@gmail.com

unread,
Oct 18, 2017, 12:29:20 AM10/18/17
to weewx-user
You are replying to a post of mine that is very out of date and my misunderstanding was corrected shortly after I posted.

In fact, if you look under the drivers section of the Wiki you will find the HP1000 driver that I wrote that uses the Wifi connection directly from Weewx to gather data from these consoles.

Susan
To unsubscribe from this group and all its topics, send an email to weewx-user+...@googlegroups.com.

Pat Boyle

unread,
Oct 18, 2017, 12:47:46 AM10/18/17
to weewx...@googlegroups.com
Hi Susan,

Yes, I switched to it earlier today and it does appear to be talking nicely, thanks.  I'll dive into the code when work's quiet some day next week and see how exactly you achieved that.

Thanks for the prompt reply!

Pat

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

For more options, visit https://groups.google.com/d/optout.



--


Regards,

Pat Boyle
Application Security Engineer
pat.boyle.workday (Skype)
+353 (0)833199107 (IRL Cell)


Reply all
Reply to author
Forward
0 new messages