AmedeeBulle / TTNMkrWanNode

Ultra Low Power with Arduino MKR WAN
21 stars 3 forks source link

Device not work after first join #1

Open thetiana opened 4 years ago

thetiana commented 4 years ago

Hello,

I not gonna make it work. when i upload the code for the first time the device works good for couple of hours. but after i reset it cannot join to the network again, on the ttn console i can see request from device to ttn for join the network but the network never return on this join request.

I think is something related to the values saved in the FRAM.

How i can clean the FRAM chip?

I change the application and the device secrets, but the device send strange packets to the ttn with the old app dev secrets.

AmedeeBulle commented 4 years ago

If the reset pin (1) is low when it initializes it will re-join and rewrite the data in the FRAM. See here.

Alternatively you can either:

thetiana commented 4 years ago

Actually the ttn not return on join request, and FRAM is full with some strange secrets, which not corresponding non of my applications. And the more strange think is the device is only be reset.

I look the code over and over again and everything seems to be OK in the code. May be i have some issues with the FRAM chip.

What about the settings in ttn network: the device should be OTAA ot ABP?