Author Topic: "Snooping" mode  (Read 2135 times)

Lensdigital

  • Full Member
  • ***
  • Posts: 155
    • Lensdigital
"Snooping" mode
« 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)?

Felix

  • Administrator
  • Hero Member
  • *****
  • Posts: 6866
  • Country: us
    • LowPowerLab
Re: "Snooping" mode
« Reply #1 on: November 02, 2015, 09:28:15 PM »
If you look in RFM69.cpp you will find this:

Code: [Select]
// 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.

Lensdigital

  • Full Member
  • ***
  • Posts: 155
    • Lensdigital
Re: "Snooping" mode
« Reply #2 on: November 02, 2015, 10:30:30 PM »
If you look in RFM69.cpp you will find this:

Code: [Select]
// 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!

Lensdigital

  • Full Member
  • ***
  • Posts: 155
    • Lensdigital
Re: "Snooping" mode
« Reply #3 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....