Skip to content

LoRaWAN: Downlinks Fail After Disconnecting and Connecting Again #7759

@mattbrown015

Description

@mattbrown015

Description

Here's what I've just tried:

  1. Connect to the TTN using OTAA.
  2. Watch some successful uplinks and downlinks.
  3. Call LoRaWANInterface::disconnect().
  4. Wait a minute.
  5. Call LoRaWANInterface::connect(), receiving the join-accept message.
  6. Watch some successful uplinks.
  7. Do something that requires a downlink, for example add a link check request.
  8. Downlinks fail with [ERR ][LMAC]: MIC failed.

My feeling is that there is a problem with downlink_counter; while processing the first downlink it has the value of 65537.

I also tried disconnecting and then connecting again to a different TTN app, the behaviour was the same.

The documentation has a great deal to say in **NOTES ON RECONNECTION:** but I'm not sure what any of it means for me. Just calling 'disconnect' and 'connect` seems like the obvious thing to do.

SHA 2a824a1

Issue request type

[ ] Question
[ ] Enhancement
[X] Bug

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions