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

How to add MAC commands to uplinks? #25

Closed
BNNorman opened this issue Nov 30, 2021 · 1 comment
Closed

How to add MAC commands to uplinks? #25

BNNorman opened this issue Nov 30, 2021 · 1 comment
Labels
question Further information is requested

Comments

@BNNorman
Copy link

I want to use the linkCheckReq MAC command. The server should report the gateway margin and number of gateways which picked up the signal.

This could be very useful when installing nodes to ensure there is gateway redundancy (more reliability). The gateway margin indicates the chances of being able to decode the received signal - if my reading/interpretation of the LoRaWAN spec is correct.

I know I have to expose gwmargin and ngws from lmic.h and lmic.c but I tried calling put_mac_uplink_byte(0x02); (after exposing the method) but didn't see any evidence in the V3 console that the MAC command was received, just the normal uplink messages on Port 10.

Can anyone help? I have posted a similar question on github for the MCCI library and asked for an enhancement to the library but no-one has commented in 5 days. (mcci-catena/arduino-lmic#823)

@lnlp lnlp added the question Further information is requested label Dec 1, 2021
@lnlp
Copy link
Owner

lnlp commented Dec 1, 2021

Hi @BNNorman,

I'm sorry but this is not an LMIC-node related issue but MCCI LMIC related. I will therefore close the issue.

I see that you created a feature request in the MCCI LMIC repository. Posting it as a question could possibly help you get a quicker response. Other options are to try the repository's Discussions or post a question on the MCCI forum.

As far as I'm aware the user of (MCCI) LMIC is more or less isolated from MAC commands.
It is possible to manually decode MAC command requests/responses from the data buffer of downlinks but I have no experience with this. Whether it is possible to send your own MAC commands via uplinks with LMIC I don't know.

@lnlp lnlp closed this as completed Dec 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants