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

Exchanging MAC Commands #80

Open
tohlh opened this issue May 22, 2020 · 1 comment
Open

Exchanging MAC Commands #80

tohlh opened this issue May 22, 2020 · 1 comment

Comments

@tohlh
Copy link

tohlh commented May 22, 2020

Hello, I am trying out MAC commands on my MKRWAN 1310. I am currently testing it with a ChirpStack server. The MAC commands are sent with AT+SENDB=0:xx.

I started out my test with AT+SENDB=0:02, which will initialize a LinkCheckReq from the end node to the server. This is what I saw on the server page, we can clearly see that LinkCheckReq is received from the uplink:

Screenshot 2020-05-21 at 12 30 23 PM

Following the above, the server responded with a downlink of LinkCheckAns in FOpts.
Screenshot 2020-05-21 at 12 30 45 PM
Screenshot 2020-05-21 at 12 30 56 PM

The question is how do I receive and "see" the LinkCheckAns payload on my MKRWAN? I also tested this on firmware 1.3.0 on PR #78 .

@facchinm
Copy link
Contributor

During normal operations, downlink messages will be received via an unsolicited message starting with +RECV (https://github.com/arduino-libraries/MKRWAN/blob/master/src/MKRWAN.h#L920). If you don't receive anything it could be that the message has only been enqueued (and another message needs to be sent in order to receive it) or the RX windows are too tight.
FW 1.3.0 uses a different message to report the downlink but the rationale is the same. Hope it helps!

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

2 participants