Closed BryanMM closed 2 years ago
Are you using OTAA? Do you call one of the join functions/methods?
On Tue, Oct 5, 2021 at 12:13 AM BryanMM @.***> wrote:
Greetings, i've been working on an program that mounts an WIFI AP for a period of time and then it reads some sensors to finally send the information to TTN. I've been getting the following error once the device tries to join ttn: ttn_hal: LMIC failed and stopped: ../programs/weatherStation/radio.c:1166 Is there any special consideration that i gotta have while trying to use the esp32's WiFi and the sx1276? Thanks in advance.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/manuelbl/ttn-esp32/issues/43, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACTSOHCDXTO5QT4CXYWEPJ3UFIRKHANCNFSM5FKL2FCA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
Yes, i'm currently using as base the deep sleep example you added few days ago.
this it what it does once the join is called:
Joining...
I (34063) ttn_hal: IO initialized
I (34063) ttn_hal: SPI initialized
I (34073) ttn_hal: Timer initialized
E (34083) ttn_hal: LMIC failed and stopped: ../programs/weatherStation/radio.c:1166
I'm assuming this error happens when TTN is used for the first time and not when the device resumes from deep sleep.
The error could indicate that the communication between the ESP32 and the SX1276 chip isn't working properly. Are you using the correct pin configuration? Have you checked it with a simple program like the hello_world example?
Checking the code i realized i was touching the RST pin within the wifi's AP, commented that and it fixed it.
Greetings, i've been working on an program that mounts an WIFI AP for a period of time and then it reads some sensors to finally send the information to TTN. I've been getting the following error once the device tries to join ttn:
ttn_hal: LMIC failed and stopped: ../programs/weatherStation/radio.c:1166
Is there any special consideration that i gotta have while trying to use the esp32's WiFi and the sx1276? Thanks in advance.