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

    Some Examples from Quick reference not working

    Scheduled Pinned Locked Moved LoPy
    14 Posts 3 Posters 4.3k 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.
    • B Offline
      Batilan
      last edited by

      You might want to have a look at the TTN network: https://www.thethingsnetwork.org/
      The wiki: https://www.thethingsnetwork.org/wiki/Home
      And their forum; https://www.thethingsnetwork.org/forum/

      D 1 Reply Last reply Reply Quote 0
      • D Offline
        DarkHawk @Batilan
        last edited by

        @Batilan thats where I went first after I read your first comment. I'm in the process to register a device, but still what about the DevEUI? I have to enter some id there, can I just create something randomly ? I would guess if these ID's have to be unique they should be defined somehow.

        D 1 Reply Last reply Reply Quote 0
        • D Offline
          DarkHawk @DarkHawk
          last edited by

          @Batilan ok, seems I got it working, just have to get closer to a gateway. I read in the ttn forum a comment from you that the example did not work for you completely but that it seems you got registered. I should see this in the ttn dashboard right?

          1 Reply Last reply Reply Quote 0
          • B Offline
            Batilan
            last edited by Batilan

            Glad you got it working :-) However for me it didn't work out yet (I have a gateway at home, so that shouldn't be the issue). Also it seems that people from Pycom and TTN are aware that things might not work and ar working on it (discussed at https://www.thethingsnetwork.org/forum/t/lopy-micro-python-lorawan-nano-gateway-board-with-wifi-ble/1156/15).

            I would really like to try ABP activation as that is less prone to timing issues and downlink errors. I didn't see an example for ABP yet.

            And I see it is also discussed in the Multitech Conduit topic on this forum by Daniel

            D 1 Reply Last reply Reply Quote 0
            • A Offline
              abilio @DarkHawk
              last edited by

              Thanks @DarkHawk, I can confirm you're totally right here, 0xFF means blue, so that line's comment is wrong.

              In the LoRa example, the A ... F bytes are definitely not valid written that way. If you wanted Python to pass the example as it is, you'll have to add leading 0x to the hex values, like:

              auth = (bytes([0,1,2,3,4,5,6,7,8,9 ,0x0A,0xB,0x0C,0x0D,0x0E,0x0F]), bytes([1,2,3,4,5,6,7,8]), bytes([8,7,6,5,4,3,2,1]))
              

              We are very sorry about the typo, and we're surely taking these issues into account for our next documentation revision.

              1 Reply Last reply Reply Quote 0
              • B Offline
                Batilan
                last edited by

                @abilio Great!

                While you are at it, can you also document the auth tuple for ABP activation?
                Also would be good to mention if it should be written in MSB or LSB form.

                Maybe extend the comment a little to make clear you obtain these values normally from your LoRaWAN dashboard at your operator (like TTN)

                A 1 Reply Last reply Reply Quote 0
                • A Offline
                  abilio @Batilan
                  last edited by

                  @Batilan We're going to put out an amended version of the docs in the upcoming days, with these and other fixes. Please stay tuned for news about it, and thanks again for your patience.

                  1 Reply Last reply Reply Quote 0
                  • D Offline
                    DarkHawk @Batilan
                    last edited by

                    @Batilan today I visited a lora gateway next to my place and i was able to connect just fine. I was also able to get out of the while loop (I added some blinking codes to see which stage I reach. I was able to register, send and receive. I just have do add something to store whatever I received. But I'm in contact with the gateway owner so I think he will at least see in his logs the message I've send. and I can confirm AppKey, AppEUI and DevEUI have to be in MSB format.

                    A 1 Reply Last reply Reply Quote 1
                    • A Offline
                      abilio @DarkHawk
                      last edited by

                      @DarkHawk Thanks a lot for your detailed feedback, please keep us posted.

                      1 Reply Last reply Reply Quote 0
                      • B Offline
                        Batilan
                        last edited by

                        Thanks indeed! Latest information is that it might be gateway related because some other people are experiencing the same issue. Now patiently awaiting the ABP capable firmware and docs :-)

                        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