python icon indicating copy to clipboard operation
python copied to clipboard

onReceive() question

Open mcc324 opened this issue 7 months ago • 4 comments

Most of the time there is a 'decoded' item in the packet, but sometimes i see packets that don't contain that. What are those?

thanks, Larry

mcc324 avatar May 10 '25 17:05 mcc324

They are likely packets sent with a channel psk that isn’t on your node and/or DMs not meant for you.

pdxlocations avatar May 10 '25 18:05 pdxlocations

Here's the latest example. Just printing the info that might be relevant.

[2025-05-10 15:14:37] None --> ^all snr = 6.0, rssi = -22 chan = 124

Due to the snr and rssi, I'm wondering if it might be some kind of packet from one of my nodes. There is no 'app' in the packet.

mcc324 avatar May 10 '25 19:05 mcc324

Portnums or Apps are in the encoded payload so you won't see them if your node can't decode it.

pdxlocations avatar May 10 '25 19:05 pdxlocations

packets should either have:

encrypted: "\334\234\306\362\031I\230\024\217m\000\006\031I[\314\360r\024\rs32\273\326g}\351^!8\243\266 \033"

or something like:

decoded {
  portnum: POSITION_APP
  payload: "\r\000\240\025\033\025\000\340\332\266\030\273\001%!\266\037h(\003x\001\200\001\000\230\001\014\270\001\022"
  bitfield: 1
}

You'll only see decoded if your node has the key

pdxlocations avatar May 10 '25 20:05 pdxlocations