matthijskooijman / arduino-lmic

:warning: This library is deprecated, see the README for alternatives.
705 stars 651 forks source link

65535 cnt value on TTN network #246

Open v3yron opened 4 years ago

v3yron commented 4 years ago

Hello, My issue is that the code seems to run perfectly and i can see the up-link message on the TTN network, The problem that I am facing is that my frame is somehow changing between aes encryption (my guess) because I have checked it before encryption and it shows the frame 6 and frame 7 values to be 0x00 but for some reason what i am receiving on the TTN network is 0xFF. and because of this the cnt on TTN shows 65535 as the first count. what could be the reason for this. One more thing I am using this library on renesas synergy SK-S7G2 board. The reasons I have come up with so far is

  1. 32 bit arm m4 processor may be the cause as the library was intended for 8 bit arduino
  2. conversion issues

physical payload received on TTN 406511012680 FFFF 0171F9EF1810C3B61F4D4EDE940844A945CE

console messages while running

Starting.. Time: 0 RXMODE_RSSI 5824: engineUpdate, opmode=0x808 7349: TXMODE, freq=868100000, len=26, SF=7, BW=125, CR=4/5, IH=0 Packet queued 42111: RXMODE_SINGLE, freq=868100000, SF=7, BW=125, CR=4/5, IH=0 73505: RXMODE_SINGLE, freq=869525000, SF=9, BW=125, CR=4/5, IH=0 75435Event EV_TXCOMPLETE (includes waiting for RX windows) 79028: engineUpdate, opmode=0x900