For those that want to live on the edge. I've posted beta 309.1 which has my new urf rx module. This requires you to connect an Arduino with a RF receiever and feed the serial output to the Livebox for interpretation. It should work on a HAHNode too if you wire it correctly.
There isn't any documenation on how this all works but if you are keen I can get motiviated to get some started, its on my do to list along with overhauling the pachube web page to xively.
Member for
16 years 10 monthsURF RX notes
I made a start on some notes: http://www.dbzoo.com/livebox/universalrfrx
Member for
14 years 5 monthsAuto correction of pulse lengths
Brett
Having a play with the URFRX. I can receive the RF streams sent out by the HAH but the pulse lengths vary a little too much.
e.g.
-11200,1040,-336,336,-1024,1040,-352,1008,-352,336,-1040,1024,-336,336,-1040,320,
-1040,1040,-336,1024,-352,336,-1040,1024,-336,336,-1040,320,-1056,320,-1040,1024,-352,1008,
-368,320,-1040,1024,-352,1024,-336,336,-1040,1008,-368,320,-1040,320,-1056,1008,-10016
Using http://www.dbzoo.com/public/pulseTrainToURF.html I get
I would say that 0, 2 and 4 are actually the same pulse def, as are 1 and 3
If I manually edit the stream to this
-11264,1024,-320,320,-1024,1024,-320,1024,-320,320,-1024,1024,-320,320,-1024,
320,-1024,1024,-320,1024,-320,320,-1024,1024,-320,320,-1024,320,-1024,320,-1024,
1024,-320,1024,-320,320,-1024,1024,-320,1024,-320,320,-1024,320,-1024,1024,-320,
1024,-320,1024,-10048
Then I get this definition
I have had a look at altering USECPERTICK but that had little effect
Is there a way to 'pull in' the pulses to set values?
Also I was hoping that this code would also pick up my HE light switches but it doesn't so I need to play some more
Mark
Member for
16 years 10 monthsThe pulses will always float
The pulses will always float around like this so if you want to TUNE the definition down it has to be done by hand.
Capturing RF is a little tricky like this, and I didn't want to put too much intelligence into how the stream is interprets because guarantee once I did that it would be wrong anyway.
I think I had some HE light switches here and it captured those. It might be the intergap has to be extended >10ms slightly.
#define _GAP 10000 // Minimum gap between transmissions (uS)
In the RFRX.h file.
Brett
Member for
14 years 5 monthsI'll give it a try
Brett
I know for a fact that these light switches send out at least 3 different pulse streams. I presume to work with new and legacy HE devices.
Mark
Member for
14 years 5 monthsBsenode mod
I've modifed the basenode with RF receiver code to include the generalized 433MHz OOK decoder in the Jeelib samples.
This is an alternative to the URFRX code Brett has written. This code will decode the signals from HE, BBSB, Byron as well as some others. The decoder are all opensource.
A typical output to the HAH would look like this
OK 8 0 0 182 0
OK 3 47 0 187 0
OK 2 81 0 213 0
BBSBA 128 80 49 129
BBSBA 128 80 49 145
OK 7 12 0 196 0
Member for
13 years 7 monthsHAHCentral hex RF supoport
Hi all,
Does the compiled hex of HAHCentral or HAHCentral no config enable the RF support on pin 4?
I finally got my nodes built and hope to start using room nodes and URF soon. I have a 433MHz receiver connected to port 1 of my HAHCental none.
Thanks
Robin
Member for
15 years 7 monthsHi Robin ,the hex files are
Hi Robin,
the hex files are older versions I believe.
you would be best to copy the text from here
https://code.google.com/p/livebox-hah/source/browse/trunk/userapps/ardu…
into the arduino IDE and upload to your node.
no config version not required anymore as node id hardcoded as you can see in above code, also, remember to uncomment the define RF bit.
Goodluck,
Garry,
ps this has rf on pin4, digital pin on port 1 (confusing...yeah!)
Member for
13 years 7 monthsThanks Garry,I got the IDE
Thanks Garry,
I got the IDE installed and the code compiled but ran out of time. Hopefully get it loaded and finally start testing nodes later this week.
Does it matter which target you select for a JeeNode? anything 328?
I assume it is AVR ISP to program vis the USB->Srrial cable?
Thsnks
Robin
Member for
15 years 7 monthsRobin, so far so good!i use
Robin, so far so good!
i use the duemilanove 328 but I guess as long as it's 328 16mhz, you'll be fine.
no need to worry about ISP, this is for burning bootloaders, node kits from the shop come with bootloaders already on.
just select the correct com port for your usb/serial lead and click upload! Job done.
Garry.
Member for
14 years 5 monthsBoard selection
Hi Robin
I use Arduino Duemilanove w/ ATmega328 if the bootloader used was atmega (uses 57600baud) but some AVRs I have were programmed with the optiboot bootloader. These work (for me) using the Arduino Uno board setting (uses 115200baud)
If you find Arduino won't upload to AVR with Duemilanove and you are sure you have the right port selected, try the other.
Mark
Member for
13 years 7 monthsThanks mark,garry I went for
Thanks mark,garry
I went for duemilanove 328 and that seemed to work. Used AVR ISP to program and then the serial monitor built into the ardunio ide to verify the function. All looks good do far although I'm not getting great range, need to check my antenna lengths next I think.
Member for
13 years 11 monthsThanks Mark. I'm using your
Thanks Mark.
I'm using your sketch on my Basenode, i can detect most of my HE / BBSB kit using the jeelabs generalized OOK decoder
Andrew
Member for
13 years 11 monthsHi Brett, I've had some
Hi Brett,
I've had some sucess with your URF Rx sketch but only with Home easy / BBSB kit
it doesnt seem to want to pick up any streams from other 433mhz kit - could this be as simple as the kit is not using OOK encoding
i expected to see something even if just vague pulses...
Thanks
Andrew