Page 1 of 1

Tutorial for RFM69 radio ?

Posted: Wednesday 11 November 2015 19:35
by burton666
Hi I had my RFM69(H)W Gateway and sensors working after several days of trial and error. A couple of days ago I started fiddeling around with the gateways when trying to add a NRF radio. The nrf works great but now my RFM69 has stopped working.

Can anyone write down a complete step by step instruction of how to get the Serial gateway and sensors working using the RFM69.


This is what I have done:

MyConfig.h - Checked that the right radio options was selected.

Mysensor.h - Added

#include "MyTransportRFM69.h"

//MySensor(MyTransport &radio =*new MyTransportNRF24(), MyHw &hw=*new MyHwDriver()
MySensor(MyTransport &radio =*new MyTransportRFM69(), MyHw &hw=*new MyHwDriver()



SerialGateway:
added:
"MyTransportRFM69 transport (RFM69_FREQUENCY, RFM69_NETWORKID, RF69_SPI_CS, RF69_IRQ_PIN, true, RF69_IRQ_NUM) ;" (I have the H version on the gateway)


Are there any more steps? anything more I need to add to the SerialGateway Sketch?
The Sensor-sketches also seems to have been modified recently, how do I add the Radio info in the sketches?

Re: Tutorial for RFM69 radio ?

Posted: Saturday 21 November 2015 15:02
by gizmocuz
i think you better use the 1.6 development branch, now you just need some defines for the RFM69

Re: Tutorial for RFM69 radio ?

Posted: Tuesday 29 November 2016 1:25
by moebius
Hello,

I just downloaded the Domoticz and I'm trying to configure my Whisper Node (https://talk2.wisen.com.au/product-talk ... -node-avr/) as a Node and serial Gateway connected to my Rasbperry PI. I can see a "define" to change the module from NRF24 to RFM69 on the example (https://www.mysensors.org/build/serial_gateway), but where I define details for the RFM69 driver like frequency, power, encryption, etc?

Also, I'm trying to find details about the protocol between a node and a gateway as well, so I can try to write my own Remote Node for non-standard uses, as well to optimize for very low-power consumption as I plan to run few nodes using two AAA batteries and others using CR2032 coin-cell. At the moment I only found documentation about the Serial protocol (https://www.mysensors.org/download/serial_api_20).

Meanwhile I'll keep digging into the code, still getting familiar with the libraries. Any help is appreciated, thanks.