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 join request SF in OTAA mode?

    Scheduled Pinned Locked Moved LoPy
    lopyotaattn
    4 Posts 2 Posters 639 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.
    • M Offline
      miroslav.petrov
      last edited by

      Hello,

      Is it possible to set the SF of the join requests that the LoPy sends to the GW. The problem is that my LoPy is sending the join requests only on SF7 and most of the time in cannot receive the join accept message from the GW. 0_1548183167782_Screenshot 2019-01-22 at 20.48.16.png

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

        According to pycom documentation when you call lora.join you can add parameter <dr=0> (eg SF12,125BW) (I think your using EU868).

        lora.join(activation=LoRa.OTAA, auth=(dev_eui, app_eui, app_key), timeout=0,dr=0)
        

        BUT are you sure that your gateway have send a join-accept to your device ?
        Because, if the gateway receive your device frame there's a chance that your device will receive answer from gateway in RXW1 (same freq same DR as your request) and even more chance in RXW2 (869.525 SF12 fallback except from ttn they use SF9 and not SF12 in RXW2)
        If you plan to use TTN please have alook on https://www.thethingsnetwork.org/forum/t/pycom-fipy-connects-ok-with-abp-but-not-otaa/13426

        M 1 Reply Last reply Reply Quote 0
        • M Offline
          miroslav.petrov @Eric73
          last edited by

          @eric73

          Thank you for the quick response. Now with lower DR it works from the first join request. But I have another question, how to use the adaptive data rate feature of LoRaWAN? I tried with LoRa(mode=LoRa.LORAWAN, region=LoRa.EU868, adr=True) but nothing happens. As I have read somewhere when using OTAA its possible to use ADR where the node and gateway negotiate the best data rate.

          E 1 Reply Last reply Reply Quote 0
          • E Offline
            Eric73 @miroslav.petrov
            last edited by

            @miroslav-petrov Hi, yes adr need to be driven by gateway. In pycom documentation adr is parameter of lora constructor.
            So what make you said it's not work ? As far i know some network compute adr setting only after a big sample of rx frame (for a nation wide operator in france they use approximatly one hundred of frame before send first downlink adr request to my device).
            Does your gateway show if adr is set in your uplink frame ?

            1 Reply Last reply Reply Quote 1

            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