Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Device not work after first join #1

Open
thetiana opened this issue Feb 11, 2020 · 2 comments
Open

Device not work after first join #1

thetiana opened this issue Feb 11, 2020 · 2 comments

Comments

@thetiana
Copy link

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
Copy link
Owner

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:

  • Write a sketch to fill the FRAM with zeroes
  • Change the magic constant to something else, this will force a re-join as well.

@thetiana
Copy link
Author

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants