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

    LoPy OTAA query in documentation -Change in Auth params in OTAA

    Scheduled Pinned Locked Moved LoPy
    lopy loraotaadocumentation
    4 Posts 3 Posters 736 Views 3 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.
    • S Offline
      shivankgarg98
      last edited by

      I was just revisiting the official pycom documentation on OTAA ( https://docs.pycom.io/chapter/tutorials/lora/lorawan-otaa.html )and I noticed that the parameter of the OTAA function-

      # create an OTAA authentication parameters
      app_eui = binascii.unhexlify('ADA4DAE3AC12676B')
      app_key = binascii.unhexlify('11B0282A189B75B0B4D2D8C7FA38548B')
      
      # join a network using OTAA (Over the Air Activation)
      lora.join(activation=LoRa.OTAA, auth=(app_eui, app_key), timeout=0)
      

      A few days back, we have to specify dev_eui too. But now it is not the case?
      I am using loraserver.io for my application-server and they don't ask app_eui but dev_eui.
      P.S.- My device is not responding to OTAA from 3 days, Maybe this is the issue, Please help me, what is the case?

      robert-hhR 1 Reply Last reply Reply Quote 0
      • robert-hhR Offline
        robert-hh @shivankgarg98
        last edited by robert-hh

        @shivankgarg98 The dev_eui parameter is optional (see https://docs.pycom.io/chapter/firmwareapi/pycom/network/lora.html). If you do not specify it, it is taken from the configuration established when loading the firmware. That however fails sometimes. If you want to be sure that it matches the network setting, you can specify it.

        P 1 Reply Last reply Reply Quote 0
        • P Offline
          Prawnhead @robert-hh
          last edited by

          @robert-hh said in LoPy OTAA query in documentation -Change in Auth params in OTAA:

          ...That however fails sometimes...

          Ok, I'll use explicit dev_eui from now on. Is there a bug report for this?

          • Thanks, Chris.
          robert-hhR 1 Reply Last reply Reply Quote 0
          • robert-hhR Offline
            robert-hh @Prawnhead
            last edited by

            @prawnhead It' less a bug in the firmware, than the way the device is handled by the user and some interference with the background database at Pycom, which keeps the assigned dev_uid. The dev_uid is stored in the device's flash and can be written to that using the updater tool. So you have three elements (flash, user, background system), which have to interact correctly, and there are few way to succeed and many ways to fail.

            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