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

    ABP keys (nwk_swkey, app_swkey)

    Scheduled Pinned Locked Moved LoPy
    otaa abp
    7 Posts 2 Posters 1.2k 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.
    • Z Offline
      zappfinger
      last edited by

      After trying OTAA unsuccessfully, I am trying ABP now. I found some example code that uses nwk_swkey and app_swkey, but no explanation on how to get/generate these keys. Also, I am assuming that dev_addr is the same as the OTAA device address?

      J 1 Reply Last reply Reply Quote 0
      • J Offline
        jmarcelino @zappfinger
        last edited by

        @zappfinger
        Those keys including dev_addr come from and must match what’s on your Network Server

        Dev_addr is not the same as Dev EUI.

        To relate to WiFi think of Dev EUI as your WiFi adapter MAC address and Dev Addr as your assigned IP.

        Z 1 Reply Last reply Reply Quote 0
        • Z Offline
          zappfinger @jmarcelino
          last edited by zappfinger

          @jmarcelino Thanks, but it is not clear to me. For OTAA activation I have these fields on the Things Network:0_1517469141887_Screen Shot 2018-02-01 at 08.07.43.png
          Activation mode: OTAA Do I have to change this to ABP?
          Device EUI, Application EUI : do I have to use any of these in ABP?
          Device address: my question was about this field not Device EUI....

          Can anyone please provide all the steps needed for ABP acivation?

          J 1 Reply Last reply Reply Quote 0
          • J Offline
            jmarcelino @zappfinger
            last edited by

            @zappfinger
            Go into the Settings tab for your device, change "Activation method" to ABP and everything will become clear :-)

            0_1517469755780_Screen Shot 2018-02-01 at 08.21.22.png

            Once the fields are generated in the TTN console copy them over to your lora.join(...) call.

            Z 2 Replies Last reply Reply Quote 0
            • Z Offline
              zappfinger @jmarcelino
              last edited by zappfinger

              @jmarcelino Ok, I followed these steps. The application is happily sending data, but nothing gets received on the TTN page...

              Also, what frequency should I use for the Netherlands? I have tried 868100000, 868300000 and 868500000.

              Z 1 Reply Last reply Reply Quote 0
              • Z Offline
                zappfinger @zappfinger
                last edited by

                @zappfinger Got it! I moved my device closer to a window and now data arrives at the TTN site. We live in an apartment with several floors above us, so that was probably too big a barrier for the signal...

                1 Reply Last reply Reply Quote 0
                • Z Offline
                  zappfinger @jmarcelino
                  last edited by

                  @jmarcelino One more 'beginners' question: how do I read data back from TTN?

                  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