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

    New firmware release 1.6.7.b1 (LoRaWAN Nano Gateway with TTN example!!)

    Scheduled Pinned Locked Moved Announcements & News
    firmware
    113 Posts 34 Posters 88.4k Views 32 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.
    • J Offline
      jomifo Pybytes Beta @daniel
      last edited by

      @daniel +1 to see code adapted for US frequencies.

      1 Reply Last reply Reply Quote 0
      • C Offline
        Colateral
        last edited by

        Hello Daniel,

        You promised weeks ago (around build 1.3.0) that you will enable frozen bytecode. When this will happen?

        1 Reply Last reply Reply Quote 0
        • J Offline
          johncaipa
          last edited by

          Is there anyone who has tested how many nodes could be received in practice with the nano-gateway?

          C 1 Reply Last reply Reply Quote 0
          • C Offline
            Colateral @johncaipa
            last edited by

            @johncaipa So far we tested with 7 nodes .... but not with pycom nano-gw example.

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

              Hello Daniel,

              The scripts look great, but I don't seem to get them working.
              I have created a gateway in the TTN console, but the gateway doesn't connect.
              I have a WiFi connection to my router, so that is not the problem.

              In your config.py:
              the GATEWAY_ID = '11aa334455bb7788'. Where did you get this ID?
              I created my own ID when I registered a gateway at TTN console.
              Can I leave the LORA_DR = "SF7BW125" # DR_5 unchanged?

              In the nanogateway.py:
              def stop(self):
              # TODO: Check how to stop the NTP sync
              # TODO: Create a cancel method for the alarm
              # TODO: kill the UDP thread
              self.sock.close()
              I have no idea how to handle those TODO's.
              Can you give some examples?

              Hopefully you can help a newbee to get this working.
              Thanks

              GerkeZ

              J 1 Reply Last reply Reply Quote 0
              • D Offline
                daniel
                last edited by

                @gerkez you can put there in the Gateway ID that you created when registering it to TTN.

                Can I leave the LORA_DR = "SF7BW125" # DR_5 unchanged?

                Yes.

                Don't worry about those TODO's, those will be taken care of on a future update of the nanogateway scripts.

                Cheers,
                Daniel

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

                  @gerkez
                  also make sure you have selected the "packet forwarder" protocol when registering the gateway in TTN. I think your ID question may relate to this.

                  G 1 Reply Last reply Reply Quote 0
                  • G Offline
                    gerkez @daniel
                    last edited by

                    @daniel
                    Thanks. I'll try it and let you know

                    1 Reply Last reply Reply Quote 0
                    • G Offline
                      gerkez @jmarcelino
                      last edited by

                      @jmarcelino
                      Hi. Thanks.
                      I deleted my gateway and registered a new one with the "packet forwarder" protocol.
                      It generates a Gateway ID based on the EUI (eui-70b3d54991ae49e8).
                      I tried both ID's in the config.py.
                      eui-70b3d54991ae49e8: script runs but the console displays "not connected".
                      70b3d54991ae49e8 (without prefix eui-): script runs but restarts all the time.

                      Here is my config.py:

                      GATEWAY_ID = 'eui-70b3d54991ae49e8' (not working)

                      GATEWAY_ID = '70b3d54991ae49e8' (infinite loop, restart)

                      SERVER = 'bridge.eu.thethings.network'
                      PORT = 1883

                      NTP = "pool.ntp.org"
                      NTP_PERIOD_S = 3600

                      WIFI_SSID = 'my ssid'
                      WIFI_PASS = 'my passwd'

                      LORA_FREQUENCY = 868100000
                      LORA_DR = "SF7BW125" # DR_5

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

                        The correct gateway ID to use is: 70b3d54991ae49e8

                        These 2 parameters are incorrect:

                        SERVER = 'bridge.eu.thethings.network'
                        PORT = 1883
                        

                        Please use the same as in the example, which are:

                        SERVER = 'router.eu.thethings.network'
                        PORT = 1700
                        

                        Cheers,
                        Daniel

                        G 1 Reply Last reply Reply Quote 0
                        • G Offline
                          gerkez @daniel
                          last edited by

                          @daniel
                          @jmarcelino

                          Hi Guys,

                          Thanks a lot for helping.
                          I have a connection to TTN, but is seems that my lopy reboots all the time (every 30 -60 seconds).
                          I hav put a red led for 3 seconds in main.py and I can see this red led light up all the time and than I lose my connection (wiFi as well).
                          Hope you have an idea what's going wrong

                          L S 2 Replies Last reply Reply Quote 0
                          • L Offline
                            livius @gerkez
                            last edited by

                            @gerkez
                            What you got on UART REPL?
                            Put info here - there can be some usefull info

                            think about people first, then computers

                            G 2 Replies Last reply Reply Quote 0
                            • G Offline
                              gerkez @livius
                              last edited by

                              @livius
                              Hello Livius,

                              My pymakr doesn't work. Connection errors.
                              So I use Putty. Problem is that the device reboots all the time, so I don't see anything on the UART REPL

                              L 1 Reply Last reply Reply Quote 0
                              • L Offline
                                livius @gerkez
                                last edited by

                                @gerkez
                                Try Arduino IDE -> COM port monitor instead

                                think about people first, then computers

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

                                  @Colateral
                                  My problem was that password was not long enough. Once I changed it, it worked fine. It would be better if some indication was given about a problem from WiPy, but no big deal, once understood...!

                                  G 1 Reply Last reply Reply Quote 0
                                  • G Offline
                                    gerkez @zmrzli
                                    last edited by

                                    @zmrzli
                                    Which password do you mean?

                                    1 Reply Last reply Reply Quote 0
                                    • S Offline
                                      Shaun @gerkez
                                      last edited by

                                      @gerkez Are you using a custom base PCB (your own) or are you using the Pycom expansion PCB?
                                      I ask, as you may be running into the WiPy resetting due to rf reflections issue.

                                      G 1 Reply Last reply Reply Quote 0
                                      • G Offline
                                        gerkez @Shaun
                                        last edited by

                                        @Shaun
                                        I am using a pycom expansion board with LoPy

                                        S 1 Reply Last reply Reply Quote 0
                                        • S Offline
                                          Shaun @gerkez
                                          last edited by

                                          @gerkez Ok, then you should not be experiance problems from rf reflections, and should be able to rule it out.
                                          I doubt you are working on a conductive table ;-)

                                          1 Reply Last reply Reply Quote 0
                                          • G Offline
                                            gerkez @livius
                                            last edited by

                                            @livius

                                            Hello Livius.

                                            Here is what I see on my W UART REPL:

                                            I (146522) wifi: mode : sta (24:0a:c4:00:84:44)
                                            I (146523) wifi: sleep disable
                                            I (146650) wifi: n:1 0, o:6 0, ap:255 255, sta:1 0, prof:6
                                            I (147638) wifi: state: init -> auth (b0)
                                            I (147640) wifi: state: auth -> assoc (0)
                                            I (147643) wifi: state: assoc -> run (10)
                                            I (147662) wifi: connected with IANNIS, channel 1
                                            WiFi connected!

                                            Push ack
                                            I (157644) wifi: pm start, type:0

                                            Pull ack
                                            Pull ack
                                            Push ack
                                            Guru Meditation Error of type LoadProhibited occurred on core 0. Exception was unhandled.
                                            Register dump:
                                            PC : 0x400f6f9f PS : 0x00060b30 A0 : 0x800d8428 A1 : 0x3ffc5c30
                                            A2 : 0x000330d0 A3 : 0x3ffc666c A4 : 0x00000001 A5 : 0x00000000
                                            A6 : 0x00000000 A7 : 0x00000000 A8 : 0x800f5ed2 A9 : 0x3ffe96c0
                                            A10 : 0x00000001 A11 : 0x00000001 A12 : 0x3ffe21b0 A13 : 0x00000010
                                            A14 : 0x3ffe9830 A15 : 0x3ffe9790 SAR : 0x00000013 EXCCAUSE: 0x0000001c
                                            EXCVADDR: 0x000330d0 LBEG : 0x400f296c LEND : 0x400f2974 LCOUNT : 0x00000000

                                            Backtrace: 0x400f6f9f:0x3ffc5c30 0x400d8428:0x3ffc5c70 0x400d85b8:0x3ffc5c90 0x400d862b:0x3ffc5cb0 0x400d8b38:0x3ffc5ce0 0x400d8d52:0x3ffc5d00 0x400d7eff:0x3ffc5d40

                                            ================= CORE DUMP START =================

                                            Here is a coredump. I haven't copied it.

                                            ================= CORE DUMP END =================
                                            Rebooting...
                                            ets Jun 8 2016 00:22:57

                                            rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
                                            configsip: 0, SPIWP:0x00
                                            clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
                                            mode:QIO, clock div:2
                                            load:0x3fff9010,len:8
                                            load:0x3fff9018,len:248
                                            load:0x40078000,len:4056
                                            load:0x4009fc00,len:920
                                            entry 0x4009fde4
                                            I (1542) wifi: wifi firmware version: 2a22b2d
                                            I (1558) wifi: pp_task_hdl : 3ffd72f8, prio:23, stack:8192
                                            I (1558) wifi: Init lldesc rx mblock:10
                                            I (1558) wifi: Init lldesc rx ampdu len mblock:7
                                            I (1560) wifi: Init lldesc rx ampdu entry mblock:4
                                            I (1565) wifi: sleep disable
                                            I (2553) wifi: frc2_timer_task_hdl:3ffdd348, prio:22, stack:2048
                                            I (2574) wifi: mode : softAP (24:0a:c4:00:84:45)
                                            MicroPython v1.8.6-493-g99ac80fe on 2017-03-03; LoPy with ESP32
                                            Type "help()" for more information.

                                            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
                                            • 2
                                            • 3
                                            • 4
                                            • 5
                                            • 6
                                            • 4 / 6
                                            • First post
                                              Last post

                                            Pycom on Twitter

                                            Pycom