-
Notifications
You must be signed in to change notification settings - Fork 410
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
Downlink MIC Mismatch on every uplink #851
Comments
@davidfobar I am not mister Gromes himself, but the current downlink implementation is indeed very poor at receiving downlinks. Other LoRa-ish waves (of which there are a lot in the US ISM band) are also listened to in the current state of the code, they cause the code to think there's a downlink, it starts receiving and ends up with some gibberish not intended for your device. Work is in progress on my side to improve this. |
@davidfobar it looks like the The "Timeout in" debug message is the transmission timeout. @StevenCellist if this really was a non-LoRa transmission triggering the CAD, then it is quite strange the packet length passes the checks. It also seems to be a consistent issue, I would expect spruious packets to be random. Finally, it doesn't explain the identical content of the buffer. |
while attempting to debug, I #define RADIOLIB_STATIC_ONLY, which resulted in a compile error unrelated to my project: ///////////////////////////////////////////////////////////////////// |
Another data point, I stopped initializing the device using beginOTAA, and rather starting using the persistent storage. This creates two issues, I cleared the error code by adding the following to LoRaWANNode::Begin(): But that causes a RADIOLIB_ERR_DOWNLINK_MALFORMED error to be thrown further into the downlink function call. |
@davidfobar I addressed the first issue with static memory management, the rest will need some more investigation from my side. |
@davidfobar if you are still on this issue, could you check out #867 and see if that PR solves your issue? Please let us know whether the problem persists. |
@davidfobar #867 was just merged - my understanding is that it also resolves this issue. Could you please confirm? Otherwise I will have to close this as stale as per the contributing doc. Thanks! |
Closed due to inactivity. |
I am using the SEEEDstudio E5-mini (STM32WLE5 with integrated SX126x) and a personal gateway running a Chirpstack v4 application server.
I can connect and send "Hello World!" messages to the application with no issues. I cannot get a working downlink yet.
I am still learning about the LoRaWAN protocol, so forgive me if this is incorrect, running Class A the endnode looks for a downlink only after it sends an uplink message. Unless the application server or gateway server have something to provide the endnodes there shouldn't be any downlink, and I would expect the endnode to timeout in the RX windows and continue to function.
To test that, I had the endnode connected and sending messages to the application server successfully, then I shut down the application server, I still received a MIC mismatch:
So I then unplugged the gateway thinking that maybe it was providing a downlink, but I still got the MIC mismatch:
Three questions: first, is this expected behavior? second, is it possible that the STM32wle5 is unexpectedly being interrupted and the "received downlink" is random information from memory? Finally, what is causing the "Timeout in 678912 us" debug message to print?
The text was updated successfully, but these errors were encountered: