"Join failed - ERR_MIC_MISMATCH (-1112)" When Pressing "RST" Button on TTGO LoRa32 V1 (ESP32) #1544
Replies: 3 comments 2 replies
-
Mr. Etherton... I am once again stunned by the weird blend of eye for detail, red flags that are then ignored, the balance of "think (understand) before you speak" consumed and forum etiquette. Yes, that is my bag of mixed feelings that I describe there. I do believe that you're a fast learner however, so here are a few things:
Really, we want to support whatever journey you are on (we still never heard what that journey is), you got the brains to get there as far as I'm concerned, but if you want to get somewhere useful, it is crucial to ask the right questions, give the proper context, understand what is worth spending your time on, and what is worth asking someone else to spend their time on. Humans are not LLMs that generate some output whenever you throw in a question. Please keep this in mind. |
Beta Was this translation helpful? Give feedback.
-
All of the above (but not the JoinNonce, I didn't spot that, but TL;DR!) Plus:
This is embedded hardware that is hardly cutting edge, millions of these processors & flash memory are in use. We don't need to assume anything, the metric F tonne of documentation & debugging tools allow us to KNOW stuff upon investigation. Additionally:
I'm the owner of the TTGO LoRa32 and I'll run any tests that you produce that continues to cause issue if I don't have to wade through baked beans to get to the detail. |
Beta Was this translation helpful? Give feedback.
-
Hello @StevenCellist and @HeadBoffin, Thank you both for your replies. I have combined my reply for simplicity.
My contributions are made in good faith. Just like many, I work on LoRaWAN in my spare time, and I share what I find as a way to both document progress and potentially help others facing the same problems. I do not claim that my posts are complete or correct, they are a snapshot of where I am at that time. I post when I reach a stopping point, a gap in understanding or run out of time. Rather than delay indefinitely, I prefer to share what I have, even if it’s rough, because incomplete information can still be useful. Others might identify with the same issue or spot something I’ve missed. I do not expect replies or validation, but I would like to think that my participation, even if flawed or imperfect, is respected as part of what builds an open technical community. If my posts are not helpful to someone, they are free to disregard them. Because of the feedback, I am increasingly conscious of my wording, research, and phrasing in an effort to avoid issues. I feel like I have meaningful things to contribute, especially because the questions I raise often concern areas where documentation is sparse, discussion is limited, or few clear sources exist online.
Thank you for clarifying the purpose of the "Discussions" tab. I am perfectly happy for this to have moved as per my original post: This is not a big issue, and is easily avoided by disconnecting and reconnecting power to the board, however I can't imagine that I would be the only person to have thought that "RST" and power cycling would have the same result.
I have applied the "details" formatting as per your suggestion. This has required me to edit my original post, however has been done to substantially improve readability.
Yes, they are indeed very weird! Further leads to my suspicion that memory is not being cleared fully by pressing the "RST" button.
For others, this is referring to this post on the TTN Forum which I posted within the past couple of days (there's overlap between this repository and the Forum). The mention of "dwelltime" refers to this TTN Forum post. One thing which I did not mention in my original post was success with adapting the library to work with LoRaWAN Regional Parameters v1.1rA for AU915 rather than LoRaWAN Regional Parameters v1.1rB. Why is this version difference important for AU915? Using the older regional parameters is perfectly fine in Australia as there are no legislated dwell time limits. How did I make the change? Put simply...
No expectations, just awareness, and as @HeadBoffin rightly pointed out, devices under deployment conditions don't have their "RST" button pressed.
My journey is one of learning and discovery, to understand how to use LoRaWAN reliably, with confidence and to its fullest potential. I want to make sure I understand the transmission and network protocol correctly before starting to consider integrations and use cases.
Good point. I have not tried replicating the issue on another one of my TTGO LoRa32 boards.
My development environment is the Arduino IDE. I have yet to investigate the
Absolutely, the ESP32 does have the ability to save data, however "persistence" is not implemented in the code.
Great idea! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I'm using a TTGO LoRa32 V1 SX1276 (ESP32) with the LoRaWAN_Starter example code with TTN, using LoRaWAN Specification V1.1 and Regional Parameters V1.1 on AU915 and OTAA. I have enabled
#define RADIOLIB_DEBUG_BASIC
and#define RADIOLIB_DEBUG_PROTOCOL
inBuildOptUser.h
.I have "Reset join nonces" enabled in the TTN Console as I do not have any "persistence" capability.
Given each new join resets the DevNonce on OTAA, I do not need to reset this.
If I restart my board by pressing the "RST" button, I regularly get the error message
Join failed - ERR_MIC_MISMATCH (-1112)
. No such issue has ever occurred if I disconnect and reconnect power to the board. Without delving into it too deeply, I am assuming that the volatile memory on some components, such as the SX1276 LoRa radio or certain ESP32 peripherals, are not fully cleared when pressing the RST button, whereas a full power cycle does completely reset them.If this is a result of the board's design, no worries, go ahead and close this, but I thought it would be valuable to document it here for others who may be experiencing the same issue.
Below are a few examples, showing the serial output and the associated downlink payload. Do note how the
LoRaWAN revision
also changes without adjustments to settings from my side.Example No. 1
Serial Monitor
TTN Console
Example No. 2
Serial Monitor
TTN Console
Example No. 3
Serial Monitor
TTN Console
Beta Was this translation helpful? Give feedback.
All reactions