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

    Can't get LoRaWan Nano-Gateway example to connect to TTN - TTN changed?

    Scheduled Pinned Locked Moved Guides
    lopynano gatewayttn gateway
    18 Posts 6 Posters 6.0k Views 7 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.
    • ddubyah17D Offline
      ddubyah17
      last edited by ddubyah17

      Hi folks. I've been trying to get the LoRaWan to Nano-Gateway tutorial examples to work, but i'm having no luck. I've watched the Alex's Corner YouTube episode that covers this as well as followed the docs, but haven't been able to work out what's wrong. I'm finding it hard to track the problem down in part because it looks like TheThingsNetwork app has been updated since the docs were written, so things have changed and i'm too much of a newb to spot what's going on.

      When configuring the gateway on TTN I've used the "legacy packet forwarder option", which most closely matches the workflow described in the tutorials. But i hit two main problems.

      1. I'm not sure what gateway id to use. Following the tutorial code i've constructed a gateway id based on the mac address of my LoPy e.g. 420ac4fffe02c4ab4. I then used this hex string as the gateway eui on TTN. But TTN prefixed the id with "euii" so "420ac4fffe02c4ab4" became eui-420ac4fffe02c4ab4. I can't use the eui prefixed id in the code because it throws bad hex value errors. But when i use the unprefixed value the gateway never connects. So what value should i be using for the gateway id in my config?

      2. The server addresses look to have changed. The ui for selecting a server region has changed with the addresses for the TTN servers hidden behind a drop down. The value on the new TTN drop down is bridge.eu.thethings.network, but that doesn't seem to work. So what value should i have for SERVER in my config?

      Any chance these tutorials are going to be updated sometime soon? Any help greatly appreciated.

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

        @ddubyah17 Thanks for bringing this to my attention! I'll look into this in the next week or so and see what's changed. I'll report back once I've had a chance to see what has changed.

        Thanks!

        Alex

        Developer Evangelist - Pycom

        ddubyah17D 1 Reply Last reply Reply Quote 0
        • ddubyah17D Offline
          ddubyah17
          last edited by

          This post is deleted!
          1 Reply Last reply Reply Quote 0
          • S Offline
            speeeeeed2006
            last edited by

            me too I can't connect to TTN, is there some change ?

            1 Reply Last reply Reply Quote 0
            • ddubyah17D Offline
              ddubyah17 @bucknall
              last edited by

              Hi Alex. Any idea when/ if you'll get a chance to look into this?

              B 1 Reply Last reply Reply Quote 0
              • B Offline
                bucknall @ddubyah17
                last edited by

                Hi @ddubyah17, apologies! Have been incredibly busy, I'll try to take a look at it this afternoon/tomorrow and will report back as soon as I've worked out what the issues are!

                Thanks for hanging in there! We'll get it working soon :)

                Developer Evangelist - Pycom

                ddubyah17D S 2 Replies Last reply Reply Quote 0
                • ddubyah17D Offline
                  ddubyah17 @bucknall
                  last edited by

                  @bucknall Much appreciated! Itching to get this working. Anything you can do to point me in the right direction would be great.

                  M 1 Reply Last reply Reply Quote 0
                  • M Offline
                    marcozennaro Pycom Ambassadors @ddubyah17
                    last edited by

                    @ddubyah17 Check this tutorial we prepared for a workshop:

                    https://github.com/franckalbinet/iot-smr3128-ictp/blob/master/labs/lorawan-nano-gateway.md

                    B ddubyah17D 2 Replies Last reply Reply Quote 1
                    • S Offline
                      speeeeeed2006 @bucknall
                      last edited by speeeeeed2006

                      @bucknall
                      There's some trouble with NOC. It can be that ?
                      You can check that : https://status.thethings.network for updates
                      someone have mention that for me

                      1 Reply Last reply Reply Quote 1
                      • B Offline
                        bucknall @marcozennaro
                        last edited by

                        Hey @marcozennaro - Just checking this out, this looks really great! Would you mind if we used it in our documentation?

                        Developer Evangelist - Pycom

                        M 1 Reply Last reply Reply Quote 0
                        • M Offline
                          marcozennaro Pycom Ambassadors @bucknall
                          last edited by

                          Hi @bucknall You are welcome to use it (please give credit to the authors F.Albinet and M.Rainone). There are two more tutorials you may want to check 1) syncing time if NTP is blocked (like in some universities) 2) producing a LoRa coverage map by using the GPS shared by an Android phone via WiFi. It's all well documented! Cheers, Marco

                          B 1 Reply Last reply Reply Quote 0
                          • B Offline
                            bucknall @marcozennaro
                            last edited by

                            @marcozennaro Fantastic! Of course, we'd give credit and can link back to a page/university website if you'd like? I'll take a look at those other tutorials!

                            Developer Evangelist - Pycom

                            1 Reply Last reply Reply Quote 0
                            • ddubyah17D Offline
                              ddubyah17 @marcozennaro
                              last edited by

                              @marcozennaro Worked a treat - thanks!

                              B 1 Reply Last reply Reply Quote 1
                              • B Offline
                                bucknall @ddubyah17
                                last edited by

                                @ddubyah17 I'm looking into this now and will also update the Nano-Gateway tutorial to follow @marcozennaro's instructions as they seem to work well!

                                Developer Evangelist - Pycom

                                ddubyah17D 1 Reply Last reply Reply Quote 0
                                • ddubyah17D Offline
                                  ddubyah17 @bucknall
                                  last edited by

                                  Great, thanks Alex

                                  1 Reply Last reply Reply Quote 0
                                  • F Offline
                                    finnzc
                                    last edited by

                                    @marcozennaro
                                    I followed the tutorial but my nanogateway still cannot connect to TTN (step 1.2). Am I missing anything important?

                                    M 1 Reply Last reply Reply Quote 0
                                    • M Offline
                                      marcozennaro Pycom Ambassadors @finnzc
                                      last edited by

                                      @finnzc Let me check with the latest firmware and I'll let you know.

                                      1 Reply Last reply Reply Quote 0
                                      • G Offline
                                        gmtl
                                        last edited by

                                        I follow the tutorial, checked config many times but my gateway seams to be still offline.. look stuck at the same place you where then posted this question. do you remember the things you've made different that made it work?

                                        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