LowPowerLab Forum

Hardware support => RF - Range - Antennas - RFM69 library => Topic started by: jhoward88 on September 12, 2016, 08:43:46 PM

Title: Is use of NETWORKID possible with LoRa RFM95
Post by: jhoward88 on September 12, 2016, 08:43:46 PM
I see that the RFM69 library has the Initialize method that allows a nodeID and networkID parameter, while the RH_RF95 library has no such feature.   

Is there a way to use a networkID with the RH_RF95 library or any other way to limit received transmissions to a specific group or network?

I'm just starting to dig into RH_RF95.h and .cpp, but I thought if someone else has already solved this then I'm happy to not re-invent the wheel.

Regards,
Jerry

Title: Re: Is use of NETWORKID possible with LoRa RFM95
Post by: sid1202 on September 13, 2016, 08:09:32 PM
Did you get the LowPowerLab  (https://lowpowerlab.com/RadioHead_LowPowerLab.zip)version or the Radiohead version ?

I'm not a 100% sure but I think this is handled it the LowPowerLab version Checkout this link:

https://lowpowerlab.com/moteino/#lora

Sid
Title: Re: Is use of NETWORKID possible with LoRa RFM95
Post by: Tostaki on September 14, 2016, 03:38:10 AM
There is no specific NetworkID. Instead, the radioHead Lib supply 2 others "meta" lib which are RHReliableDatagram or RHDatagram. They allows you to specify NodeID & GatewayID
Title: Re: Is use of NETWORKID possible with LoRa RFM95
Post by: jhoward88 on September 14, 2016, 03:45:23 PM
Thanks!  I should be able to use those libs. 

Another question I have:  If you use an address, i.e., network ID and/or node ID,  will the receivers that are also set to that ID be woken up from from radio.sleep when a message targeting them is available?  Or does the device have to not be in radio.sleep and lowPower sleep modes?

Also, will they be woken up from radio.sleep if a message not targeted for them comes through the airwaves on the same frequency?

-Jerry

Title: Re: Is use of NETWORKID possible with LoRa RFM95
Post by: Tostaki on September 19, 2016, 03:43:38 AM
radio.sleep != radio.recv :)

From the doc :

Sets the radio into low-power sleep mode. If successful, the transport will stay in sleep mode until woken by changing mode it idle, transmit or receive (eg by calling send(), recv(), available() etc) Caution: there is a time penalty as the radio takes a finite time to wake from sleep mode.