ksangeelee
Posts: 192
Joined: Sun Dec 25, 2011 5:25 pm
Location: Edinburgh, UK
Contact: Website

Re: Fine Offset WH1081 (Maplin N96GY) sensors working on Pi

Sat Feb 15, 2014 6:40 pm

bluenoisePi wrote:I'm not sure how to confirm it's a 433 module. While I don't recall any markings on the module to indicate its band, the packaging from the vendor labels it as 433 FSK in the SMD package.
I'd trust the vendor packaging. As far as I can tell, from the Si4320 datasheet (which I think the RFM01 is based on), a handful of capacitors and inductors are chosen according to the frequency at which the module is expected to operate. I've read in the past that, even so, the modules will work at other frequencies, albeit at lower performance. I've never tried this myself.

Let us know how you get on...

bluenoisePi
Posts: 15
Joined: Fri Feb 14, 2014 5:43 am

Re: Fine Offset WH1081 (Maplin N96GY) sensors working on Pi

Thu Feb 20, 2014 2:12 am

I have returned from my trip and can continue with this project. While I was away, I'd periodically SSH in to my Pi to see if I could make it work. Strangely, for the past several days, the readings in the table have been mostly 0.00 and the live updating RSSI has rarely climbed above 4.00. Now that I'm home and can tinker with the hardware, I've removed the guitar-string antenna and instead stripped back 17.5 cm of my coax's center conductor. This, unfortunately, has not affected my readings:

Code: Select all

Initialising RFM01
SPI: mode 0, 8-bit, 1000 KHz
Ctrl+C to exit
  LNA_0,RSSI_73 idx 0     0.00    0.00    0.00    1.08    2.17    0.00  
  LNA_0,RSSI_79 idx 1     0.00    3.23    1.09    1.09    1.09    0.00  
  LNA_0,RSSI_85 idx 2     1.10    1.06    4.35    3.23    1.08    2.17  
  LNA_0,RSSI_91 idx 3     1.09<   1.09    1.08    0.00    1.06    2.17  
  LNA_0,RSSI_97 idx 4     2.20    0.00    1.06    2.13    0.00    0.00  
 LNA_0,RSSI_103 idx 5     4.35    2.20    2.15    1.09    2.15    0.00  
  LNA_6,RSSI_73 idx 6     4.30    5.49    2.17    3.26    4.35    4.35  
  LNA_6,RSSI_79 idx 7     2.17    2.17    3.26    4.30    1.09    5.49  
  LNA_6,RSSI_85 idx 8     0.00    6.59    3.26    3.26    3.26    2.17  
  LNA_6,RSSI_91 idx 9     5.43    4.35    2.15    5.13    6.67    4.55  
  LNA_6,RSSI_97 idx 10    5.49    2.27    2.13    6.45    4.30    1.09  
 LNA_6,RSSI_103 idx 11    2.15    6.52    2.17    3.26    5.43    2.17  
 LNA_14,RSSI_73 idx 12    1.08    2.17    1.09    1.09    5.38    2.17  
 LNA_14,RSSI_79 idx 13    1.08    1.08    1.08    6.52    3.19    5.43  
 LNA_14,RSSI_85 idx 14    3.26    0.00    0.00    3.23    2.17    4.35  
 LNA_14,RSSI_91 idx 15    4.35    4.35    3.26    1.08    5.38    2.15  
 LNA_14,RSSI_97 idx 16    1.08    4.30    2.27    2.15    2.15    2.17  
LNA_14,RSSI_103 idx 17    2.17    2.17    2.15    3.26    4.30    0.00  
 LNA_20,RSSI_73 idx 18    1.09    1.08    4.30    3.26    3.23    1.08  
 LNA_20,RSSI_79 idx 19    2.15    4.35    2.15    2.17    2.13    0.00  
 LNA_20,RSSI_85 idx 20    1.10    0.00    3.23    1.09    0.00    1.08  
 LNA_20,RSSI_91 idx 21    1.09    3.19    2.15    4.30    8.97    1.08  
 LNA_20,RSSI_97 idx 22    1.09    7.53    4.55    1.05    3.23    4.30  
LNA_20,RSSI_103 idx 23    5.43    0.00    3.26    3.26    0.00    2.15  
RSSI Duty 2.27
Transmitting on the 433 MHz band still has no effect on the RSSI readings and there has been nothing further displayed after the table above, in spite of multiple transmissions from the weather sensor array. This is rather frustrating.

bluenoisePi
Posts: 15
Joined: Fri Feb 14, 2014 5:43 am

Re: Fine Offset WH1081 (Maplin N96GY) sensors working on Pi

Thu Feb 20, 2014 3:15 am

Well, this is embarrassing. Thinking it was behaving like a poorly-grounded circuit, I decided to recheck my wiring. Sure enough, I had all the connections on the odd-numbered pins shifted by one. I've corrected that issue and am thankful I didn't seem to damage anything. :oops:

Here is what I see now:

Code: Select all

Initialising RFM01
SPI: mode 0, 8-bit, 1000 KHz
Ctrl+C to exit
  LNA_0,RSSI_73 idx 0     0.00    0.00    0.00    0.00    0.00    0.00  
  LNA_0,RSSI_79 idx 1     0.00    0.00    0.00    0.00    0.00    0.00  
  LNA_0,RSSI_85 idx 2     0.00    0.00    0.00    0.00    0.00    0.00  
  LNA_0,RSSI_91 idx 3     0.00<   0.00   83.70  100.00  100.00  100.00  
  LNA_0,RSSI_97 idx 4   100.00  100.00  100.00  100.00  100.00  100.00  
 LNA_0,RSSI_103 idx 5   100.00  100.00  100.00  100.00  100.00  100.00  
  LNA_6,RSSI_73 idx 6     0.00    0.00    0.00    0.00    0.00    0.00  
  LNA_6,RSSI_79 idx 7     0.00    0.00    0.00    0.00    0.00    0.00  
  LNA_6,RSSI_85 idx 8     0.00    0.00    0.00    0.00    0.00    0.00  
  LNA_6,RSSI_91 idx 9     0.00    0.00    0.00    0.00   70.65  100.00  
  LNA_6,RSSI_97 idx 10   68.82  100.00  100.00  100.00  100.00  100.00  
 LNA_6,RSSI_103 idx 11  100.00  100.00  100.00  100.00  100.00  100.00  
 LNA_14,RSSI_73 idx 12    0.00    0.00    0.00    0.00    0.00    0.00  
 LNA_14,RSSI_79 idx 13    0.00    0.00    0.00    0.00    0.00    0.00  
 LNA_14,RSSI_85 idx 14    0.00    0.00    0.00    0.00    0.00    0.00  
 LNA_14,RSSI_91 idx 15    0.00    0.00    0.00    0.00    0.00    0.00  
 LNA_14,RSSI_97 idx 16    0.00    0.00    0.00    0.00    0.00    0.00  
LNA_14,RSSI_103 idx 17    0.00  100.00  100.00  100.00  100.00  100.00  
 LNA_20,RSSI_73 idx 18    0.00    0.00    0.00    0.00    0.00    0.00  
 LNA_20,RSSI_79 idx 19    0.00    0.00    0.00    0.00    0.00    0.00  
 LNA_20,RSSI_85 idx 20    0.00    0.00    0.00    0.00    0.00    0.00  
 LNA_20,RSSI_91 idx 21    0.00    0.00    0.00    0.00    0.00    0.00  
 LNA_20,RSSI_97 idx 22    0.00    0.00    0.00    0.00    0.00    0.00  
LNA_20,RSSI_103 idx 23    0.00   93.68  100.00  100.00  100.00  100.00  
RSSI Duty 0.00
Additionally, keying up my ham radio at 433 MHz pegs the RSSI at 100.0, as expected. Also, when the receive icon on my station's LCD illuminates, the RSSI jumps to about 33.0 for a moment. Woo!

Now, I need to figure out what initialization values will allow it to read the data as it currently does not decode anything, yet.

I apologize for the wild goose chase!

ksangeelee
Posts: 192
Joined: Sun Dec 25, 2011 5:25 pm
Location: Edinburgh, UK
Contact: Website

Re: Fine Offset WH1081 (Maplin N96GY) sensors working on Pi

Thu Feb 20, 2014 11:51 am

Glad it's working - with hindsight, that even spread of data was a big clue that the pin being sampling wasn't related to the RF signal.

bluenoisePi
Posts: 15
Joined: Fri Feb 14, 2014 5:43 am

Re: Fine Offset WH1081 (Maplin N96GY) sensors working on Pi

Thu Feb 20, 2014 7:48 pm

I am having trouble understanding how to determine the optimal initialization settings. I've tried many different permutations and cannot get it to indicate anything after drawing the table. If I do the live view, I see the RSSI number jump when the transmitter blinks (I have the sending unit next to my antenna), but it never shows that it is trying to decipher the data. Here is my current screen:

Code: Select all

Initialising RFM01
SPI: mode 0, 8-bit, 1000 KHz
Ctrl+C to exit
                         BW_67  BW_134  BW_200  BW_270  BW_340  BW_400
  LNA_0,RSSI_73 idx 0     0.00    0.00    0.00    0.00    0.00    0.00  
  LNA_0,RSSI_79 idx 1     0.00    0.00    0.00    0.00    0.00    0.00  
  LNA_0,RSSI_85 idx 2     0.00    0.00    0.00    0.00    0.00    0.00  
  LNA_0,RSSI_91 idx 3     0.00   38.04  100.00  100.00  100.00  100.00  
  LNA_0,RSSI_97 idx 4   100.00  100.00  100.00  100.00  100.00  100.00  
 LNA_0,RSSI_103 idx 5   100.00  100.00  100.00  100.00  100.00  100.00  
  LNA_6,RSSI_73 idx 6     0.00    0.00    0.00    0.00    0.00    0.00  
  LNA_6,RSSI_79 idx 7     0.00    0.00    0.00    0.00    0.00    0.00  
  LNA_6,RSSI_85 idx 8     0.00    0.00    0.00    0.00    0.00    0.00  
  LNA_6,RSSI_91 idx 9     0.00    0.00    0.00<  96.74  100.00  100.00  
  LNA_6,RSSI_97 idx 10  100.00  100.00  100.00  100.00  100.00  100.00  
 LNA_6,RSSI_103 idx 11  100.00  100.00  100.00  100.00  100.00  100.00  
 LNA_14,RSSI_73 idx 12    0.00    0.00    0.00    0.00    0.00    0.00  
 LNA_14,RSSI_79 idx 13    0.00    0.00    0.00    0.00    0.00    0.00  
 LNA_14,RSSI_85 idx 14    0.00    0.00    0.00    0.00    0.00    0.00  
 LNA_14,RSSI_91 idx 15    0.00    0.00    0.00    0.00    0.00    0.00  
 LNA_14,RSSI_97 idx 16    0.00    0.00    0.00    0.00    0.00    3.26  
LNA_14,RSSI_103 idx 17   75.27  100.00  100.00  100.00  100.00  100.00  
 LNA_20,RSSI_73 idx 18    0.00    0.00    0.00    0.00    0.00    0.00  
 LNA_20,RSSI_79 idx 19    0.00    0.00    0.00    0.00    0.00    0.00  
 LNA_20,RSSI_85 idx 20    0.00    0.00    0.00    0.00    0.00    0.00  
 LNA_20,RSSI_91 idx 21    0.00    0.00    0.00    0.00    0.00    0.00  
 LNA_20,RSSI_97 idx 22    0.00    0.00    0.00    0.00    0.00    0.00  
LNA_20,RSSI_103 idx 23    0.00  100.00  100.00  100.00  100.00  100.00  
RSSI Duty 1.09
This time, I picked a setting close to a "noisy" one, but I've tried many others as well. What is the recommended procedure for determining the settings?

ksangeelee
Posts: 192
Joined: Sun Dec 25, 2011 5:25 pm
Location: Edinburgh, UK
Contact: Website

Re: Fine Offset WH1081 (Maplin N96GY) sensors working on Pi

Thu Feb 20, 2014 8:08 pm

bluenoisePi wrote:What is the recommended procedure for determining the settings?
I would bring the transmitter and my receiver close together, to reduce the dependence on having very specific parameters. Once you get a reading, then work back from there - as you increase the distance, the parameters will need to change to stay in the 'habitable zone', so to speak, where the OOK signal makes sense to the receiver.

I used the existing LCD display to confirm when the transmitter was sending.

bluenoisePi
Posts: 15
Joined: Fri Feb 14, 2014 5:43 am

Re: Fine Offset WH1081 (Maplin N96GY) sensors working on Pi

Thu Feb 20, 2014 8:26 pm

I have the transmitter here on the floor next to my receiver and Pi. There is an LED on the transmitter that blinks when it transmits, so I can see when that happens. It also lights the indicator on the factory receiving unit's LCD.

I suspect the issue I may not have the correct data pins connected. I am running a Rev 2 board, but I think the code is for a Rev 1 board and I need to figure out how to translate. So, it could be receiving, but my connection isn't getting the data. Does that sound correct?

ksangeelee
Posts: 192
Joined: Sun Dec 25, 2011 5:25 pm
Location: Edinburgh, UK
Contact: Website

Re: Fine Offset WH1081 (Maplin N96GY) sensors working on Pi

Thu Feb 20, 2014 9:12 pm

bluenoisePi wrote:I suspect the issue I may not have the correct data pins connected. I am running a Rev 2 board, but I think the code is for a Rev 1 board and I need to figure out how to translate. So, it could be receiving, but my connection isn't getting the data. Does that sound correct?
Yes, that sounds likely - other people (e.g. kenmc, as I recall) have posted Rev 2 versions of the code on GitHub and linked to it from this forum.

I think that the following changes are enough to work with revision 2 boards, but you might want to work through it for yourself, particularly if you're on a learning exercise - beware, I haven't looked at this stuff in ages.

Code: Select all

~ line 360: datapin = ((*(gpio.addr + 13)) >> 21) & 1;    /* The 21 becomes 27 */

~ line 230: *(gpio.addr + 2) = (*(gpio.addr + 2) & 0xfffffe07)|(0x001 << 6);    /* The 0xfffffe07 becomes 0xff1ffe3f */

bluenoisePi
Posts: 15
Joined: Fri Feb 14, 2014 5:43 am

Re: Fine Offset WH1081 (Maplin N96GY) sensors working on Pi

Thu Feb 20, 2014 10:18 pm

Success! Thank you very much for clearing this up for me. :)

bluenoisePi
Posts: 15
Joined: Fri Feb 14, 2014 5:43 am

Re: Fine Offset WH1081 (Maplin N96GY) sensors working on Pi

Fri Feb 21, 2014 8:19 am

I feel like I've made good progress today. I've remounted the transmitter to the sensor array and am still getting 100% of its transmissions to my Pi. I've installed pywws and commented out the line where it polls the hardware via USB as mentioned earlier in this thread. I've got weatherlogger built and running and its getting data from my sensor array. However, I have run into a snag that has me stumped. When I run weatherlogger, I get this output:

Code: Select all

starting main loop
Data bits = 88   (offset 0) (0 short)
Frequency deviation 0.0KHz (0)
ff a3 b1 d0 5c 00 01 00 f0 0a 88 crc ok (gap 50s)
Pulse stats: Hi: 692 - 824   Lo: 1664 - 1796  (88 point)
Threshold now 1244

Time is: 2014-02-21 00:06:18buffer string is 0xa3,0xb1,0xd0,0x5c,0x00,0x01,0x00,0xf0,0x0a,
Station Id: 0A3B
Temperature: 6.4C, Humidity: 92%
Wind speed: 0.0 mph, Gust Speed 0.8 mph, SW
Total rain: 72.0 mm
SQL error: no such table: raw_data
SQL error: no such table: derived_data
Wait 7s   
I have no SQL tables as referenced by weatherlogger. My guess is they are created by pywws when it first fetches data from a hardware weather station such as the 1080. The problem is that I don't have one that works, so now I think I may be in a chicken-and-egg situation. Is there a way to force pywws to create those tables without needing it to read the data via USB from a hardware receiver? Are empty versions of those tables available for download somewhere?

User avatar
Tsjakka
Posts: 18
Joined: Fri Dec 21, 2012 7:21 pm

Re: Fine Offset WH1081 (Maplin N96GY) sensors working on Pi

Fri Feb 28, 2014 12:42 pm

I recently bought an RFM01 and now I am trying to receive the data from my Alecto WS-3000. I have created this setup:

Image.

The rfm01 is connected to the RPi by way of a connector and some cables, without any pull-up resistors. I have connected an ~8cm antenna via a piece of coax.

The output of ‘gpio readall’ is:

Code: Select all

+———-+——+——–+——+——+
| wiringPi | GPIO | Name | Mode | Value |
+———-+——+——–+——+——+
| 0 | 17 | GPIO 0 | IN | Low |
| 1 | 18 | GPIO 1 | IN | Low |
| 2 | 21 | GPIO 2 | IN | High |
| 3 | 22 | GPIO 3 | OUT | Low |
| 4 | 23 | GPIO 4 | IN | Low |
| 5 | 24 | GPIO 5 | IN | Low |
| 6 | 25 | GPIO 6 | IN | Low |
| 7 | 4 | GPIO 7 | IN | Low |
| 8 | 0 | SDA | ALT2 | High |
| 9 | 1 | SCL | ALT2 | High |
| 10 | 8 | CE0 | ALT2 | High |
| 11 | 7 | CE1 | ALT2 | High |
| 12 | 10 | MOSI | ALT2 | High |
| 13 | 9 | MISO | ALT2 | Low |
| 14 | 11 | SCLK | ALT2 | Low |
| 15 | 14 | TxD | ALT2 | High |
| 16 | 15 | RxD | ALT2 | High |
+———-+——+——–+——+——+
The output of wh1080_rf is as follows:

Code: Select all

Initialising RFM01
SPI: mode 0, 8-bit, 1000 KHz
Ctrl+C to exit
LNA_0,RSSI_73 idx 0 0.00 0.00 0.00 0.00 0.00 0.00
LNA_0,RSSI_79 idx 1 0.00 0.00 0.00 0.00 0.00 0.00
LNA_0,RSSI_85 idx 2 0.00 0.00 0.00 0.00 0.00 0.00
LNA_0,RSSI_91 idx 3 0.00 0.00 0.00 0.00 0.00 0.00
LNA_0,RSSI_97 idx 4 0.00 0.00 0.00 0.00 0.00 0.00
LNA_0,RSSI_103 idx 5 5.43 100.00< 100.00 100.00 100.00 100.00
LNA_6,RSSI_73 idx 6 0.00 0.00 0.00 0.00 0.00 0.00
LNA_6,RSSI_79 idx 7 0.00 0.00 0.00 0.00 0.00 0.00
LNA_6,RSSI_85 idx 8 0.00 0.00 0.00 0.00 0.00 0.00
LNA_6,RSSI_91 idx 9 0.00 0.00 0.00 0.00 0.00 0.00
LNA_6,RSSI_97 idx 10 0.00 0.00 0.00 0.00 0.00 0.00
LNA_6,RSSI_103 idx 11 0.00 94.57 100.00 100.00 100.00 100.00
LNA_14,RSSI_73 idx 12 0.00 0.00 0.00 0.00 0.00 0.00
LNA_14,RSSI_79 idx 13 0.00 0.00 0.00 0.00 0.00 0.00
LNA_14,RSSI_85 idx 14 0.00 0.00 0.00 0.00 0.00 0.00
LNA_14,RSSI_91 idx 15 0.00 0.00 0.00 0.00 0.00 0.00
LNA_14,RSSI_97 idx 16 0.00 0.00 0.00 0.00 0.00 0.00
LNA_14,RSSI_103 idx 17 0.00 0.00 0.00 20.88 100.00 100.00
LNA_20,RSSI_73 idx 18 0.00 0.00 0.00 0.00 0.00 0.00
LNA_20,RSSI_79 idx 19 0.00 0.00 0.00 0.00 0.00 0.00
LNA_20,RSSI_85 idx 20 0.00 0.00 0.00 0.00 0.00 0.00
LNA_20,RSSI_91 idx 21 0.00 0.00 0.00 0.00 0.00 0.00
LNA_20,RSSI_97 idx 22 0.00 0.00 0.00 0.00 0.00 0.00
LNA_20,RSSI_103 idx 23 0.00 0.00 0.00 11.96 91.01 100.00
RSSI Duty 100.00
……………………………………….Pulse stats: Hi: 126 – 992 Lo: 1014 – 8665 (57 point)
.Pulse stats: Hi: 199 – 921 Lo: 1129 – 5216 (41 point)
…Pulse stats: Hi: 167 – 982 Lo: 1200 – 3337 (44 point)
……………………………………………………………………………..
So, I mostly get dots with sometimes a message that is apparently too small for a valid packet. I have tried a bunch of other settings for LNA, RSSI etc., but to no avail. I would love to hear your suggestions on this issue.

rockyy
Posts: 5
Joined: Sat Mar 15, 2014 9:19 pm

Re: Fine Offset WH1081 (Maplin N96GY) sensors working on Pi

Sun Jun 08, 2014 2:33 pm

hello, i got the WH1070 and have problems getting the rfm01 receiver working :(

Initialising RFM01
can't open device: No such file or directory

can anyone tell me what im doing wrong?

uberneo
Posts: 1
Joined: Mon Sep 01, 2014 2:01 am

Re: Fine Offset WH1081 (Maplin N96GY) sensors working on Pi

Mon Sep 01, 2014 2:08 am

SideInfo wrote:Hello,

is there is a way to "manually: check is RFM01 is alive?

I have Raspberry PI Rev 2.0 and RFM01 module connected according to http://www.susa.net/wordpress/2012/08/r ... /#more-133

also have changed code to run it on Rev. 2.0 board but when running an application I got only this:

Code: Select all

pi@raspberrypi:~/wh1080_rf$ sudo ./wh1080_rf
Initialising RFM01
SPI: mode 0, 8-bit, 1000 KHz
Ctrl+C to exit
  LNA_0,RSSI_73 idx 0     0.00    0.00    0.00    0.00    0.00    0.00
  LNA_0,RSSI_79 idx 1     0.00    0.00    0.00    0.00    0.00    0.00
  LNA_0,RSSI_85 idx 2     0.00    0.00    0.00    0.00    0.00    0.00
  LNA_0,RSSI_91 idx 3     0.00    0.00    0.00    0.00    0.00    0.00<
  LNA_0,RSSI_97 idx 4     0.00    0.00    0.00    0.00    0.00    0.00
 LNA_0,RSSI_103 idx 5     0.00    0.00    0.00    0.00    0.00    0.00
  LNA_6,RSSI_73 idx 6     0.00    0.00    0.00    0.00    0.00    0.00
  LNA_6,RSSI_79 idx 7     0.00    0.00    0.00    0.00    0.00    0.00
  LNA_6,RSSI_85 idx 8     0.00    0.00    0.00    0.00    0.00    0.00
  LNA_6,RSSI_91 idx 9     0.00    0.00    0.00    0.00    0.00    0.00
  LNA_6,RSSI_97 idx 10    0.00    0.00    0.00    0.00    0.00    0.00
 LNA_6,RSSI_103 idx 11    0.00    0.00    0.00    0.00    0.00    0.00
 LNA_14,RSSI_73 idx 12    0.00    0.00    0.00    0.00    0.00    0.00
 LNA_14,RSSI_79 idx 13    0.00    0.00    0.00    0.00    0.00    0.00
 LNA_14,RSSI_85 idx 14    0.00    0.00    0.00    0.00    0.00    0.00
 LNA_14,RSSI_91 idx 15    0.00    0.00    0.00    0.00    0.00    0.00
 LNA_14,RSSI_97 idx 16    0.00    0.00    0.00    0.00    0.00    0.00
LNA_14,RSSI_103 idx 17    0.00    0.00    0.00    0.00    0.00    0.00
 LNA_20,RSSI_73 idx 18    0.00    0.00    0.00    0.00    0.00    0.00
 LNA_20,RSSI_79 idx 19    0.00    0.00    0.00    0.00    0.00    0.00
 LNA_20,RSSI_85 idx 20    0.00    0.00    0.00    0.00    0.00    0.00
 LNA_20,RSSI_91 idx 21    0.00    0.00    0.00    0.00    0.00    0.00
 LNA_20,RSSI_97 idx 22    0.00    0.00    0.00    0.00    0.00    0.00
LNA_20,RSSI_103 idx 23    0.00    0.00    0.00    0.00    0.00    0.00
RSSI Duty 0.00
I will be really grateful for any help...


I have the similar situation where I am getting all zeroes .. I am using weatherlogger on raspberry Pi B+ with below changes --

// RPi (Rev1) Init GPIO21 (on pin 13) as input (DATA), GPIO22 (pin 15) as output (nRES)
*(gpio.addr + 2) = (*(gpio.addr + 2) & 0xfffffe07)|(0x001 << 6);
Becomes:
// RPi (Rev2) Init GPIO27 (on pin 13) as input (DATA)
*(gpio.addr + 2) = (*(gpio.addr + 2) & 0xff1fffff)|(0x001 << 6)
And:
// RPi (Rev1) - GPIO21
status = ((*(gpio.addr + 13)) >> 21) & 1;
Becomes:
// RPi (Rev2) GPIO27
status = ((*(gpio.addr + 13)) >> 27) & 1;

static const char *device = "/dev/spidev0.1";


My RFM12B module is http://www.ebay.ie/itm/Raspberrypi-RFM1 ... escription

Any help here ?

User avatar
RichardUK
Posts: 235
Joined: Fri Jun 01, 2012 5:12 pm

Re: Fine Offset WH1081 (Maplin N96GY) sensors working on Pi

Thu Sep 18, 2014 11:01 pm

rockyy wrote:hello, i got the WH1070 and have problems getting the rfm01 receiver working :(

Initialising RFM01
can't open device: No such file or directory

can anyone tell me what im doing wrong?
Sounds like spi is not enabled.
ls /dev/spi*
I get...
/dev/spidev0.0 /dev/spidev0.1

ck78
Posts: 2
Joined: Fri Nov 28, 2014 5:40 pm

Re: Fine Offset WH1081 (Maplin N96GY) sensors working on Pi

Fri Nov 28, 2014 5:47 pm

uberneo wrote:
SideInfo wrote:Hello,

is there is a way to "manually: check is RFM01 is alive?

I have Raspberry PI Rev 2.0 and RFM01 module connected according to http://www.susa.net/wordpress/2012/08/r ... /#more-133

also have changed code to run it on Rev. 2.0 board but when running an application I got only this:

Code: Select all

pi@raspberrypi:~/wh1080_rf$ sudo ./wh1080_rf
Initialising RFM01
SPI: mode 0, 8-bit, 1000 KHz
Ctrl+C to exit
  LNA_0,RSSI_73 idx 0     0.00    0.00    0.00    0.00    0.00    0.00
  LNA_0,RSSI_79 idx 1     0.00    0.00    0.00    0.00    0.00    0.00
  LNA_0,RSSI_85 idx 2     0.00    0.00    0.00    0.00    0.00    0.00
  LNA_0,RSSI_91 idx 3     0.00    0.00    0.00    0.00    0.00    0.00<
  LNA_0,RSSI_97 idx 4     0.00    0.00    0.00    0.00    0.00    0.00
 LNA_0,RSSI_103 idx 5     0.00    0.00    0.00    0.00    0.00    0.00
  LNA_6,RSSI_73 idx 6     0.00    0.00    0.00    0.00    0.00    0.00
  LNA_6,RSSI_79 idx 7     0.00    0.00    0.00    0.00    0.00    0.00
  LNA_6,RSSI_85 idx 8     0.00    0.00    0.00    0.00    0.00    0.00
  LNA_6,RSSI_91 idx 9     0.00    0.00    0.00    0.00    0.00    0.00
  LNA_6,RSSI_97 idx 10    0.00    0.00    0.00    0.00    0.00    0.00
 LNA_6,RSSI_103 idx 11    0.00    0.00    0.00    0.00    0.00    0.00
 LNA_14,RSSI_73 idx 12    0.00    0.00    0.00    0.00    0.00    0.00
 LNA_14,RSSI_79 idx 13    0.00    0.00    0.00    0.00    0.00    0.00
 LNA_14,RSSI_85 idx 14    0.00    0.00    0.00    0.00    0.00    0.00
 LNA_14,RSSI_91 idx 15    0.00    0.00    0.00    0.00    0.00    0.00
 LNA_14,RSSI_97 idx 16    0.00    0.00    0.00    0.00    0.00    0.00
LNA_14,RSSI_103 idx 17    0.00    0.00    0.00    0.00    0.00    0.00
 LNA_20,RSSI_73 idx 18    0.00    0.00    0.00    0.00    0.00    0.00
 LNA_20,RSSI_79 idx 19    0.00    0.00    0.00    0.00    0.00    0.00
 LNA_20,RSSI_85 idx 20    0.00    0.00    0.00    0.00    0.00    0.00
 LNA_20,RSSI_91 idx 21    0.00    0.00    0.00    0.00    0.00    0.00
 LNA_20,RSSI_97 idx 22    0.00    0.00    0.00    0.00    0.00    0.00
LNA_20,RSSI_103 idx 23    0.00    0.00    0.00    0.00    0.00    0.00
RSSI Duty 0.00
I will be really grateful for any help...


I have the similar situation where I am getting all zeroes .. I am using weatherlogger on raspberry Pi B+ with below changes --

// RPi (Rev1) Init GPIO21 (on pin 13) as input (DATA), GPIO22 (pin 15) as output (nRES)
*(gpio.addr + 2) = (*(gpio.addr + 2) & 0xfffffe07)|(0x001 << 6);
Becomes:
// RPi (Rev2) Init GPIO27 (on pin 13) as input (DATA)
*(gpio.addr + 2) = (*(gpio.addr + 2) & 0xff1fffff)|(0x001 << 6)
And:
// RPi (Rev1) - GPIO21
status = ((*(gpio.addr + 13)) >> 21) & 1;
Becomes:
// RPi (Rev2) GPIO27
status = ((*(gpio.addr + 13)) >> 27) & 1;

static const char *device = "/dev/spidev0.1";


My RFM12B module is http://www.ebay.ie/itm/Raspberrypi-RFM1 ... escription

Any help here ?

Guys were you able to get it up and running?
Trying since weeks now without success, still getting only zeros :(

ck78
Posts: 2
Joined: Fri Nov 28, 2014 5:40 pm

Re: Fine Offset WH1081 (Maplin N96GY) sensors working on Pi

Sat Nov 29, 2014 1:08 pm

One step forward...
I've measured the transmitter with an spectrum analyzer and observed a frequency of 868.38MHz. So I tuned the settings to this value. I also worked out the "all zero table", unfortunately the MISO line was broken and I did probing on the receiver so thought everything was fine. Damn it :lol: ...

Nevertheless the receiption is not consisdently, I use settings were the number on the table is less than 5...6. The table itself is reproducible and similar at any start up.
My observation is that one day the stuff is working fine even when I restart the software. But when I start the same software on another day (similar table, same settings) nothing is received.
More ore less I have to tune my settings daywise.
The "tricky" point is, when I keep the software running from one day to another there is no issue :? ...

For me it looks like that an "overnight sleep" of the Raspberry has an effect and an reboot not.

Any tips?

Alfio
Posts: 1
Joined: Mon Apr 11, 2016 1:02 pm

Re: Fine Offset WH1081 (Maplin N96GY) sensors working on Pi

Mon Apr 11, 2016 1:10 pm

Hi
I set up in my country house a Maplic N96GY in 2014 and I connected it to a Raspberry PI via USB.

Unfortunately theft perioodically visited me and have stolen already twice the display ( I guess they thought it was a tablet).
I saw this very nice post and the associated articles and I am very eager to try using the sensors directly ( they did not touch the mast).

My initial question is: how to find out if the transmitter ( 433MHz) is working in FSK or OOK ?
Do you have more detail information about the meaning of the 10 Bythes ( some fields were marked unknown)

Thanks for any support
Alfio

gazza_d
Posts: 5
Joined: Thu May 24, 2012 9:36 pm

Re: Fine Offset WH1081 (Maplin N96GY) sensors working on Pi

Thu Oct 05, 2017 2:29 pm

I appreciate this is an old thread, but hopefully someone will be watching.

I have the Clas Ohlson variant of the WH1080 with a 868mhz module, and the memory is kaput in the console so although it displays the data from the sensors, it will not log any more, so this looked like an ideal solution.

I am struggling though. I've downloaded and made Kevin's code, and when I run it I get the following. I have been though and set the various parameters (LNA, RSSI) to the parameters, but never get any further than the RSSI duty line.

I'm not sure if I need to change anything else or if my station is an FSK, and I need some different code. Any ideas and solutions would be welcome, as I would love to be able to get back to uploading the data to Wunderground

Thanks

Initialising RFM01
SPI: mode 0, 8-bit, 1000 KHz
Ctrl+C to exit
LNA_0,RSSI_73 idx 0 0.00 0.00 0.00 0.00 0.00 0.00
LNA_0,RSSI_79 idx 1 0.00 0.00 0.00 0.00 0.00 0.00
LNA_0,RSSI_85 idx 2 0.00 0.00 0.00 0.00 0.00 0.00
LNA_0,RSSI_91 idx 3 0.00 0.00 0.00 0.00 0.00 0.00
LNA_0,RSSI_97 idx 4 0.00 0.00 20.65 52.17 58.70 76.09
LNA_0,RSSI_103 idx 5 100.00 100.00 100.00 100.00 100.00 100.00
LNA_6,RSSI_73 idx 6 0.00 0.00 0.00 0.00 0.00 0.00
LNA_6,RSSI_79 idx 7 0.00 0.00 0.00 0.00 0.00 0.00
LNA_6,RSSI_85 idx 8 0.00 0.00 0.00 0.00 0.00 0.00
LNA_6,RSSI_91 idx 9 0.00 0.00 0.00 0.00 0.00 0.00
LNA_6,RSSI_97 idx 10 0.00 0.00 0.00 1.09 4.30 27.17
LNA_6,RSSI_103 idx 11 84.95 100.00 100.00 100.00 100.00 100.00
LNA_14,RSSI_73 idx 12 0.00 0.00 0.00 0.00 0.00 0.00
LNA_14,RSSI_79 idx 13 0.00 0.00 0.00 0.00 0.00 0.00
LNA_14,RSSI_85 idx 14 0.00 0.00 0.00 0.00 0.00 0.00
LNA_14,RSSI_91 idx 15 0.00 0.00 0.00 0.00 0.00 0.00
LNA_14,RSSI_97 idx 16 0.00 0.00 0.00 0.00 0.00 0.00
LNA_14,RSSI_103 idx 17 0.00 2.15 54.35 82.98 97.83 100.00
LNA_20,RSSI_73 idx 18 0.00 0.00 0.00 0.00 0.00 0.00
LNA_20,RSSI_79 idx 19 0.00 0.00 0.00 0.00 0.00 0.00
LNA_20,RSSI_85 idx 20 0.00 0.00 0.00 0.00 0.00 0.00
LNA_20,RSSI_91 idx 21 0.00 0.00 0.00 0.00 0.00 0.00
LNA_20,RSSI_97 idx 22 0.00 0.00 0.00 0.00 0.00 0.00
LNA_20,RSSI_103 idx 23 0.00< 0.00 6.45 49.46 68.48 93.62
RSSI Duty 0.00

User avatar
KarlS
Posts: 42
Joined: Fri Oct 12, 2012 1:10 pm

Re: Fine Offset WH1081 (Maplin N96GY) sensors working on Pi

Fri Oct 06, 2017 6:12 pm

As far as I know, the 868MHz version of the weather station uses FSK. A long time ago I worked on decoding the protocol and posted it on this forum. I also wrote a short demo (viewtopic.php?p=298700#p298700), but it might be out of date. You might also want to look at https://jeelabs.net/boards/6/topics/1203

User avatar
rpikurti
Posts: 37
Joined: Sun Jul 17, 2016 9:59 am

Re: Fine Offset WH1081 (Maplin N96GY) sensors working on Pi

Sun Nov 10, 2019 3:15 pm

Hello,
I found your tutorial very helpful and I think it will help me to make my project.
  1. reading the weatherdata from the device
  2. storing the weatherdata in a database
  3. writing the data to a website
I own a wh1080 weatherstation and I would like to read the data via 868mHz radio signal.
Now I bought a RFM01 868mHz receiver and connected it to a raspberry zero.
After downloading and compiling the softwar I can run it as root without error.
But the software is setup for 433mHz and I cannot find any instructions how to modfy. How must I modify the software to run on a freqency of 868mHz?
I get now this output on the raspberry:

Code: Select all

Initialising RFM01
SPI: mode 0, 8-bit, 1000 KHz
Ctrl+C to exit
  LNA_0,RSSI_73 idx 0     0.00    0.00    0.00    0.00    0.00    0.00
  LNA_0,RSSI_79 idx 1     0.00    0.00    0.00    0.00    0.00    0.00
  LNA_0,RSSI_85 idx 2     0.00    0.00    0.00    0.00    0.00    0.00
  LNA_0,RSSI_91 idx 3     0.00    0.00<   0.00    0.00    0.00    0.00
  LNA_0,RSSI_97 idx 4     0.00    0.00   77.78   83.87   93.75  100.00
 LNA_0,RSSI_103 idx 5   100.00  100.00  100.00  100.00  100.00  100.00
  LNA_6,RSSI_73 idx 6     0.00    0.00    0.00    0.00    0.00    0.00
  LNA_6,RSSI_79 idx 7     0.00    0.00    0.00    0.00    0.00    0.00
  LNA_6,RSSI_85 idx 8     0.00    0.00    0.00    0.00    0.00    0.00
  LNA_6,RSSI_91 idx 9     0.00    0.00    0.00    0.00    0.00    0.00
  LNA_6,RSSI_97 idx 10    0.00    0.00    0.00    0.00    0.00    0.00
 LNA_6,RSSI_103 idx 11    4.69  100.00  100.00  100.00  100.00  100.00
 LNA_14,RSSI_73 idx 12    0.00    0.00    0.00    0.00    0.00    0.00
 LNA_14,RSSI_79 idx 13    0.00    0.00    0.00    0.00    0.00    0.00
 LNA_14,RSSI_85 idx 14    0.00    0.00    0.00    0.00    0.00    0.00
 LNA_14,RSSI_91 idx 15    0.00    0.00    0.00    0.00    0.00    0.00
 LNA_14,RSSI_97 idx 16    0.00    0.00    0.00    0.00    0.00    0.00
LNA_14,RSSI_103 idx 17    0.00    0.00    0.00    0.00    0.00   17.54
 LNA_20,RSSI_73 idx 18    0.00    0.00    0.00    0.00    0.00    0.00
 LNA_20,RSSI_79 idx 19    0.00    0.00    0.00    0.00    0.00    0.00
 LNA_20,RSSI_85 idx 20    0.00    0.00    0.00    0.00    0.00    0.00
 LNA_20,RSSI_91 idx 21    0.00    0.00    0.00    0.00    0.00    0.00
 LNA_20,RSSI_97 idx 22    0.00    0.00    0.00    0.00    0.00    0.00
LNA_20,RSSI_103 idx 23    0.00    0.00    0.00    0.00    0.00    0.00
RSSI Duty 0.00
I have no idea what this means.
Please could you give me a hint what to do?
Thanks a lot in advance

Return to “Automation, sensing and robotics”