LowPowerLab Forum

Software support => Pi Gateway => Topic started by: Lensdigital on November 02, 2015, 09:16:46 PM

Title: "Snooping" mode
Post by: Lensdigital on November 02, 2015, 09:16:46 PM
Is it possible to receive data with node "A" that was sent to node "B"? If both on same network? And if both are on different network (but same frequency)?
Title: Re: "Snooping" mode
Post by: Felix on November 02, 2015, 09:28:15 PM
If you look in RFM69.cpp (https://github.com/LowPowerLab/RFM69/blob/master/RFM69.cpp) you will find this:

// true  = disable filtering to capture all frames on network
// false = enable node/broadcast filtering to capture only frames sent to this/broadcast address
void RFM69::promiscuous(bool onOff) {
  _promiscuousMode = onOff;
}


"promiscuous mode" allows to capture all messages on the same network, regardless of target ID.
Obviously the frequency has the be the same on all nodes.
Title: Re: "Snooping" mode
Post by: Lensdigital on November 02, 2015, 10:30:30 PM
Quote from: Felix on November 02, 2015, 09:28:15 PM
If you look in RFM69.cpp (https://github.com/LowPowerLab/RFM69/blob/master/RFM69.cpp) you will find this:

// true  = disable filtering to capture all frames on network
// false = enable node/broadcast filtering to capture only frames sent to this/broadcast address
void RFM69::promiscuous(bool onOff) {
  _promiscuousMode = onOff;
}


"promiscuous mode" allows to capture all messages on the same network, regardless of target ID.
Obviously the frequency has the be the same on all nodes.

Fantastic!!! Thank Felix!
Title: Re: "Snooping" mode
Post by: Lensdigital on November 02, 2015, 10:55:42 PM
WOW this is really interesting. Looks like I'm getting "echo" from gateway itself replying (ACK) :) Gotta code a line to ignore self NodeID....