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

    How to set dwelltime to 0 at AS923 in lopy4?

    Scheduled Pinned Locked Moved LoPy
    7 Posts 2 Posters 59 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.
    • Gusti Made Arya WijayaG Offline
      Gusti Made Arya Wijaya
      last edited by Gusti Made Arya Wijaya

      hello, I have a problem when sending >11 bytes payload at SF10 (AS923) my lopy is getting os error and in TTN displays "not provided". after I read it https://lora-alliance.org/wp-content/uploads/2020/11/lorawan_regional_parameters_v1.0.3reva_0.pdf , my error occur due to dwelltime value is 1 aa1e22e8-e376-4263-b009-dc80079b7a81-image.png.

      How to set dwelltime to 0?, so I can send more data, and can reach DR1 and DR0

      J 1 Reply Last reply Reply Quote 0
      • J Offline
        jcaron @Gusti Made Arya Wijaya
        last edited by

        @Gusti-Made-Arya-Wijaya The dwell time configuration is decided by the network, which sends it via the TxParamSetupReq MAC command. The default is that dwell time is enabled until the network says otherwise.

        So it would require TTN to send configuration with UplinkDwellTime=0. Not sure this is possible, it may depend on the specific country or something similar.

        Gusti Made Arya WijayaG 1 Reply Last reply Reply Quote 0
        • Gusti Made Arya WijayaG Offline
          Gusti Made Arya Wijaya @jcaron
          last edited by

          @jcaron thanks for reply. but I've test another lorawan end node (ursalink) and it can send 33 bytes payload at SF10, so this node work with dwelltime = 0.
          tes sf10ursalink.JPG

          why lopy4 can't do that?

          J 1 Reply Last reply Reply Quote 0
          • J Offline
            jcaron @Gusti Made Arya Wijaya
            last edited by

            @Gusti-Made-Arya-Wijaya You would need to check if the network sends a TxParamSetupReq MAC command to the device, and if so, what the value of the UplinkDwellTime bit is.

            Then either TTN sends UplinkDwellTime=0 and the LoPy does not take it into account, or is sends UplinkDwellTime=1 or no TxParamSetupReq at all, and then it would be the other device which is not compliant.

            Note that it sometimes takes a few exchanges after a join to get a full config, if the network needs to send several MAC commands it may need to wait for as many uplinks to send the MAC command in response.

            So if you just do join - send it may be normal that on that first send it doesn't work.

            Gusti Made Arya WijayaG 1 Reply Last reply Reply Quote 1
            • Gusti Made Arya WijayaG Offline
              Gusti Made Arya Wijaya @jcaron
              last edited by

              @jcaron how to check the network sends a TxParamSetupReq MAC command to the device? I'm using TTN network server, Kerlink Gateway, and lopy4

              J 1 Reply Last reply Reply Quote 0
              • J Offline
                jcaron @Gusti Made Arya Wijaya
                last edited by

                @Gusti-Made-Arya-Wijaya Start by checking the TTN logs for downlinks. I don’t remember if they show MAC commands (and their contents), but if they do it’s probably the easiest.

                Next option is to check if your gateway includes such logs, though I don’t remember if MAC commands are part of the encrypted data in which case you wouldn’t be able to see them.

                On the LoPy itself IIRC if you want to see those you would need to recompile your own firmware after adding traces in the relevant places. I don’t think there’s an off-the-shelf way of getting that info from micropython (someone please correct me if I’m wrong).

                Gusti Made Arya WijayaG 1 Reply Last reply Reply Quote 0
                • Gusti Made Arya WijayaG Offline
                  Gusti Made Arya Wijaya @jcaron
                  last edited by

                  @jcaron I've read updated documentation in https://lora-alliance.org/wp-content/uploads/2020/11/RP_2-1.0.2.pdf 0a0d62fa-27fd-4836-8fa2-196b24eb1904-image.png , it says AS923 have dwelltime limitation. So I think uplinkdwelltime value keep 1. is it right?

                  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