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

    lora.stats(), ACK packet

    Scheduled Pinned Locked Moved MicroPython
    3 Posts 2 Posters 462 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.
    • J Offline
      justin
      last edited by

      Hello, I am using the LoRa mode of FiPy+Pysense. I would like to ask if the lora.stats() would also record the ACK packets.

      In the manual, it said
      lora.stats()
      Return a named tuple with useful information from the last received LoRa or LoRaWAN packet. The named tuple has the following form:
      (rx_timestamp, rssi, snr, sftx, sfrx, tx_trials, tx_power, tx_time_on_air, tx_counter, tx_frequency)

      I wondered if downlink ACK is also treated as a received packet. What I would really like to do is to get the timestamp and rssi/snr of the received downlink ACK packets.

      Any thoughts are welcome. Many thanks.

      J 1 Reply Last reply Reply Quote 0
      • J Offline
        jcaron @justin
        last edited by

        @justin An ACK is not a special kind of packet, it's just a regular downlink which contains the relevant info, so it will be included in lora.stats. Note that some of the data returned by lora.stats is related to the last received packet, while some is related to the last sent packet. Some of the data is actually non-functional.

        Note also that LoRa packets do not have ACKs, and LoRaWAN packets only have ACKs if you sent them as confirmed.

        And finally, remember that in some regions, regulatory limits often mean you can't send all packets as confirmed packets as this make the gateway exceed duty cycle limitations or the like. There may also be network-level limits for the same reason (see TTN fair use policy for instance).

        J 1 Reply Last reply Reply Quote 0
        • J Offline
          justin @jcaron
          last edited by

          @jcaron Many thanks for the detailed explanation. Very helpful.

          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