Sandaysoft

Support forum for Cumulus weather station software
It is currently Wed Jun 19, 2013 7:26 pm
Please click here before posting. Help me to help you!
Useful Links: Cumulus FAQ • Enhancement requests • Wiki (documentation)
Please put your approximate location into your profile
Add your web site to the Cumulus user map
Vantage Pro2 users with firmware 3.00 should upgrade to fw 3.12 and Cumulus 1.9.4

All times are UTC




Post new topic Reply to topic  [ 122 posts ]  Go to page Previous  1 ... 5, 6, 7, 8, 9  Next
Author Message
 Post subject: Re: The inside of the ws-1081
PostPosted: Tue Apr 10, 2012 2:56 pm 
Offline

Joined: Tue Apr 10, 2012 11:50 am
Posts: 6
Location: UK
Weather Station: WH1081
Operating System: Windows XP
AllyCat wrote:
You've omitted "Fit a larger battery to the transmitter" (or maybe add solar powering). The reason that the transmitter runs for a year or more on a pair of cells is that it only transmits for 50ms every 48 seconds (i.e. 0.1% duty cycle).


Not a concern for me it will only ever need to run for a week at a time maximum and usually a lot less than that.


Top
 Profile  
 
 Post subject: Re: The inside of the ws-1081
PostPosted: Tue Apr 10, 2012 3:50 pm 
Offline
Site Admin
User avatar

Joined: Mon Jun 02, 2008 6:49 pm
Posts: 17835
Location: Sanday, Orkney
Weather Station: Davis VP2
Operating System: Windows Home Server 2011
MFX wrote:
Ah sorry I don't mean the USB link between the receiver and the PC I mean the bit between the micro in the receiver and the Holtek USB chip.
I had a feeling you were after something more low level than the bit I understand.
Quote:
Would there be any way of making Cumulus look at the data more frequently than every 10 seconds (at least for wind information?)
It would be easy enough to make the interval configurable (I've been thinking of doing that anyway); I'd just have to check to make sure that I haven't written any code that currently relies on the 10 second interval. It would have to read all of the data at the same time, not just the wind data.

_________________
Steve
Sanday Weather
----------------------------------------------------------------------------------------------------------------------------------
Like Cumulus and want to support it? Please donate! Image


Top
 Profile  
 
 Post subject: Re: The inside of the ws-1081
PostPosted: Tue Apr 10, 2012 8:21 pm 
Offline

Joined: Tue Apr 10, 2012 11:50 am
Posts: 6
Location: UK
Weather Station: WH1081
Operating System: Windows XP
Quote:
Good luck working out the RF protocol, nobody else seems to have succeeded yet.


Well I'm making progress, I've isolated the bits of the data stream that indicate :-

Wind speed
Direction
Rainfall
Temperature
Humidity
Low battery
possibly TX battery voltage?

But I haven't been able to work out how the numbers sent correspond to what's displayed yet. Next stage is to make a dummy transmitter so I can send numbers of my choice and see what they correspond to on the display. There's also a lot of bits that don't seem to change whatever I do, maybe reserved for other features?

Martin.


Top
 Profile  
 
 Post subject: Re: The inside of the ws-1081
PostPosted: Wed Apr 11, 2012 9:55 am 
Offline

Joined: Tue Apr 10, 2012 11:50 am
Posts: 6
Location: UK
Weather Station: WH1081
Operating System: Windows XP
MFX wrote:
Quote:
Good luck working out the RF protocol, nobody else seems to have succeeded yet.

possibly TX battery voltage?


Ah what I though may be battery voltage looks like it may be a checksum which is a bit of a stumbling block until I can work out what checksum method they've used.

Martin.


Top
 Profile  
 
 Post subject: Re: The inside of the ws-1081
PostPosted: Sat Jun 02, 2012 12:13 pm 
Offline

Joined: Sat Jun 02, 2012 12:00 pm
Posts: 1
Location: Christchurch, New Zealand
Weather Station: WH1081
Operating System: Windows 7
MFX wrote:
Well I'm making progress, I've isolated the bits of the data stream that indicate :-

Wind speed
Direction
Rainfall
Temperature
Humidity
Low battery
possibly TX battery voltage?

But I haven't been able to work out how the numbers sent correspond to what's displayed yet. Next stage is to make a dummy transmitter so I can send numbers of my choice and see what they correspond to on the display. There's also a lot of bits that don't seem to change whatever I do, maybe reserved for other features?

Martin.

Can you please share your findings so far? I'm planning on rigging up a microcontroller to receive the data from my station (I'm just awaiting a pitch changer for the RF transceiver I've got, so I can attach it more easily) - so anything you're able to share would be a great help, both in terms of your setup and the protocol. I've got a TI Launchpad (with an MSP430G2553) lined up for the job, with a CC1101-based transceiver module, but no matter what you're using I'm sure there'll be some room for collaboration (i.e. the protocol).

Cheers,
Paul


Top
 Profile  
 
 Post subject: Re: The inside of the ws-1081
PostPosted: Wed Sep 26, 2012 12:23 am 
Offline

Joined: Sun Nov 20, 2011 9:50 pm
Posts: 8
Location: Edinburgh
Weather Station: WH-1081
Operating System: Debian
steve wrote:
MFX wrote:
Work out the protocol for the wireless link between the units (has someone done this already?)

Others have asked about this, but I'm not aware of anyone who has actually done it.


I've created a receiver for my WH1081 (Maplin branded, 433MHz) using a Raspberry Pi. As part of the project, I had to figure out the wireless protocol, which I've documented in the (link) here.

Kevin


Top
 Profile  
 
 Post subject: Re: The inside of the ws-1081
PostPosted: Wed Sep 26, 2012 3:48 am 
Offline
User avatar

Joined: Tue Sep 09, 2008 3:37 am
Posts: 704
Location: Auckland, New Zealand
Weather Station: wh-1081
Operating System: Weather Laptop - Windows 7 Pro
Well done.. Great project for a rainy day :-)

_________________
Terry Wiltshire
http://www.janter.co.nz/weather/index.htm
Image


Top
 Profile  
 
 Post subject: Re: The inside of the ws-1081
PostPosted: Wed Sep 26, 2012 6:43 am 
Offline
Site Admin
User avatar

Joined: Mon Jun 02, 2008 6:49 pm
Posts: 17835
Location: Sanday, Orkney
Weather Station: Davis VP2
Operating System: Windows Home Server 2011
Nice work!

_________________
Steve
Sanday Weather
----------------------------------------------------------------------------------------------------------------------------------
Like Cumulus and want to support it? Please donate! Image


Top
 Profile  
 
 Post subject: Re: The inside of the ws-1081
PostPosted: Wed Sep 26, 2012 1:54 pm 
Offline
User avatar

Joined: Thu Jan 07, 2010 9:44 pm
Posts: 2596
Location: Wilmslow, Cheshire, UK
Weather Station: Davis VP2
Operating System: XP SP3, Win 7
Also interesting that the radio data packet does have a checksum, so unless the base station ignores it, these 'wacky' values coming from the FO must be generated in the base station? Though I doubt the base station multi-tasks so my initial thought about possibly reading memory locations that are partially written to would seem unlikely?

_________________
Mark
Wilmslow Astro Weather


Top
 Profile  
 
 Post subject: Re: The inside of the ws-1081
PostPosted: Wed Sep 26, 2012 3:32 pm 
Offline

Joined: Sat Feb 26, 2011 1:58 pm
Posts: 504
Location: SE London
Weather Station: Fine Offset 1080/1 & 3080
Operating System: Windows XP SP3
mcrossley wrote:
Also interesting that the radio data packet does have a checksum, so unless the base station ignores it, these 'wacky' values coming from the FO must be generated in the base station?
Hi,

Or the "Transmitter" (external module) is creating/reading wacky values before calculating the checksum? :)

Yes, well done Kevin; I suspect that "m" is indeed the top nibble of the rain count. I seem to remember that the rain count from the Console (USB/memory map) is two bytes (but of course the Console could maintain an "overflow" from the "n" nibble locally). However, it should be easy to test, just plug the Wind (anemometer) cable into the Rain socket for few hours ! ;)

I'm fairly sure that that protocol is the "new" one, introduced on the 308x (Solar) models and apparently now on "recent" Maplin units. The earlier protocol seems to be quite different (surprisingly using a significantly higher data rate) because the full transmission takes less than 50ms (but no "repeats") with earlier models.

Personally, I don't have an RPi but as it appears you've posted the source code, perhaps someone else will be able to analyse some of the "other" protocols. The x080 models transmit the Radio Controlled Clock data as well, and the 308x models transmit solar data in a separate packet (with 60 seconds repetition rate). That might be easier to decypher (now that you've cracked the basic data format) because the Solar Pod encodes the data packet to send to the transmitter, so it can be read (on the Solar Pod cable) even without a radio receiver.

Cheers, Alan.


Top
 Profile  
 
 Post subject: Re: The inside of the ws-1081
PostPosted: Wed Sep 26, 2012 7:13 pm 
Offline

Joined: Sun Nov 20, 2011 9:50 pm
Posts: 8
Location: Edinburgh
Weather Station: WH-1081
Operating System: Debian
AllyCat wrote:
Personally, I don't have an RPi but as it appears you've posted the source code, perhaps someone else will be able to analyse some of the "other" protocols. The x080 models transmit the Radio Controlled Clock data as well, and the 308x models transmit solar data in a separate packet (with 60 seconds repetition rate). That might be easier to decypher (now that you've cracked the basic data format) because the Solar Pod encodes the data packet to send to the transmitter, so it can be read (on the Solar Pod cable) even without a radio receiver.


I expect it could be used to analyse most OOK-like signals on frequencies the RFM01 supports, given a bit of experimentation if the bit-rate is completely unknown. My original logic-analyser capture helped an awful lot though, since I then knew what I was looking for on the receiver side.

The bit of code that captures transitions on the DATA pin into 'rssitime_buf' is more or less all that would be needed, other than the hardware setup code. That buffer name is a bit of a misnomer - it was originally based on the RSSI state, but that wasn't a very reliable way of doing it - I should have renamed it 'highduration_buf'.

Also, for anyone who might use the code to investigate other data packets, be aware that I throw away all 'low->high' transitions, because these are just the (1ms) clock pulses in my WH1081 transmitter. For a true OOK signal, you'd want to include these in the buffer too (or have a corresponding 'lowduration_buf').

Thanks for the tip on getting rain readings - saves me running back and forth with a watering can!

Kevin


Top
 Profile  
 
 Post subject: Re: The inside of the ws-1081
PostPosted: Fri Nov 16, 2012 10:57 am 
Offline

Joined: Mon Mar 12, 2012 11:22 am
Posts: 10
Location: Belgium
Weather Station: WH1080
Operating System: Windows Vista
hmm... on top if the black blob there is "SPL191B1".

Googling it gives us that SPL191B1 is a Sunplus 8-bit CMOS microprocessor with 256K ROM (to store the program - can we read it?) and 704 bytes RAM and 20 I/Os
There is probably info to be found about Sunplus SPL191B, like datasheets, but they don't seem to be accesible for free.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 122 posts ]  Go to page Previous  1 ... 5, 6, 7, 8, 9  Next

All times are UTC


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group