-
Notifications
You must be signed in to change notification settings - Fork 209
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
Lmic returns unknown Event Codes 100 and 20 #541
Comments
ConsoleLog (only Event Code 100) - Event Code 20 is very rare (could it be that this is Code is only thrown if something did happen on the TTN Side?) 12:45:48.362 -> EV_TXSTART |
See comment on #542. The text "Message code" appears nowhere in the arduino-lmic liibrary, so you are running a sketch that I'm not aware of. I have no idea what that might be. |
the text "Message Code:" I'll add in my sketch for every event (when the debug is on) this is just for debug/dev purpose. But the event with this number is thrown somewhere from lmic/ttn or gw In your Example you'd catch these errors with default case: and then the out would be: I found in the file src\lmic\lmic.h fallowing enum that could match the error code: |
@Dardrai -- those are not error codes. In addition, we don't see those errors in other BSPs, so something else is going on. I don't have your hardware or your sketch, so I'm unable to test; I'm happy to advise or correct the problem, but need your help to find it. My suggestion is that you use
|
Okay I did found the problem - Error Code 20 is EV_JOIN_TXCOMPLETE which was missing from my sketch. |
Unchatched events
in the methode void onEvent(ev_t event) some event code are getting dispatched and I don't know what they are for the message codes are 100 and 20
Environment
Example Message Code 100:
https://i.imgur.com/jBBkkQL.png
Normaly (if Debug is activated) the output should look like:
12:22:05.651 -> EV_TXSTART
12:22:05.651 -> Message Code: 17
12:22:10.817 -> EV_JOINED
12:22:10.817 -> Message Code: 6
12:22:10.817 -> EV_TXSTART
12:22:10.817 -> Message Code: 17
12:22:12.912 -> EV_TXCOMPLETE
I'm shure that the OTAA Keys are stored in the right format and values (not like in Issue #492 ) then sometimes I receive the Event Code 100 or 20 - and later the lmic "recovers" and is sending correctly.
What is the meaning of these two event Codes?
The text was updated successfully, but these errors were encountered: