Welcome to the Pycom forum Forum
    • \[\[global:header.categories\]\]
    • \[\[global:header.recent\]\]
    • \[\[global:header.tags\]\]
    • \[\[global:header.popular\]\]
    • Login

    Explore Pybytes | Official Documentation | Report a Firmware Bug/Issue | GitHub

    Sending MAC layer commands

    Scheduled Pinned Locked Moved LoPy
    lorawan
    3 Posts 2 Posters 268 Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • T Offline
      thinginnovations
      last edited by

      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

      1 Reply Last reply Reply Quote 0
      • E Offline
        Eric73
        last edited by

        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.

        1 Reply Last reply Reply Quote 0
        • T Offline
          thinginnovations
          last edited by

          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

          1 Reply Last reply Reply Quote 0

          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
          • 1 / 1
          • First post
            Last post

          Pycom on Twitter

          Pycom