Skip to content
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

Handling network server mac commands #169

Open
SloMusti opened this issue Nov 19, 2020 · 3 comments
Open

Handling network server mac commands #169

SloMusti opened this issue Nov 19, 2020 · 3 comments

Comments

@SloMusti
Copy link

Using this library, I have observed issues and device hangs on receiving mac commands from the network server, for example receiving something similar to this: https://lorawan-packet-decoder-0ta6puiniaut.runkit.sh/?data=0708f80084500709c8088450070a98108450070b68188450&nwkskey=&appskey=

How is this handled in this library. It appears like ti should be implemented at low level. Anyone has experience by using various public networks?

@SloMusti
Copy link
Author

SloMusti commented Nov 19, 2020

Requirement from a network provider provider:
The “Data rate ACK” and “Power Ack” can be set to 0. The network server is only retrying the message because the Channel Mask Ack bit is set to 0
So a proper response will be with ADR OFF
Data rate ACK 0
Channel Mask ACK 1
Power ACK 0

@SloMusti
Copy link
Author

There appears to be necessary support here

static LoRaMacStatus_t AddMacCommand( uint8_t cmd, uint8_t p1, uint8_t p2 )
, investigating if this works or what must be done for it.

@SloMusti
Copy link
Author

Downlink messages are handled here and mac commands processed:

ProcessMacCommands( LoRaMacRxPayload, 0, frameLen, snr );

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant