Sending MAC layer commands
-
Hi,
I'm going throungh the LoRa API documentation at https://docs.pycom.io/firmwareapi/pycom/network/lora.html and cant see anywhere I can set MAC layer commands other than the battery level.
What I'm looking for is the link check interface in order to determine link quality and force a re-join if needed.I've used this effectively on other devices where I can set a link check frequency and failure threshold. This looks to be lacking in the python layer.
Any timescales on this being implemented or a workaround to access the MAC layer through the python interfaces?
thanks
Andrew
-
Hi,
Lopy is a device and not a gateway, so it's only receive MAC command from gateway (linkaddrreq). Lopy lorawan revision is 1.02, and MAC command to force a rejoin from a gateway is only in 1.1 lorawan rev.You have use lora.stats() to implements your rule :
-check rssi, snr, used datarate from the latest downlink received is good enought for you or if your board have to do a forced rejoin
-If you haven't a downlink from the time you have set , force a rejoin...
and so on....The lora.set_battery_level(level) is an automatic response you set before the gateway send to your device the request, it doesn't send anything by himself before the gateway ask for it.
-
Hi,
I know this is not a gateway. I have been using other devices where I am able to send MAC layer commands. Your response fails to answer any of this.
Andrew
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login