kizniche / ttgo-tbeam-ttn-tracker

TTGO T-Beam Tracker for TTN Mapper and TTN Tracker using US (915 MHz) and EU (868 MHz) frequencies
https://kylegabriel.com/projects/2019/04/lorawan-tracker-and-mapper.html
GNU General Public License v3.0
265 stars 139 forks source link

The Things Stack v3 - Frame Counter does not reset #44

Closed Quas7 closed 2 years ago

Quas7 commented 2 years ago

Hi,

it looks like that the v2->v3 transition makes it more complicated to "ignore" the framecounter in APB mode. I will now try to reset the fcnt with LMIC_reset() or LMIC.seqnoUp = 0 during setup().

Could be related to my problem in #43

Quas7 commented 2 years ago

after some digging I found static void ttn_set_cnt() is overruling all my attempts to get the frame counter back to zero. ;)

Quas7 commented 2 years ago

solved my issue with the frame counter and also found ttn_erase_prefs() accessable via button press. Maybe add the erase function somewhere in the readme as it is required to be done for migrating v2-->v3 (or switching applications on the TTN).

kizniche commented 2 years ago

Added comment in configuration.h