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

    Multiple issues with LoPy TTN Nano Gateway

    Scheduled Pinned Locked Moved LoPy
    ttn gatewayguru meditation
    16 Posts 4 Posters 4.3k Views 4 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.
    • T Offline
      Thosch42 @jmarcelino
      last edited by

      @jmarcelino
      Currently I try to setup a firmware build environment on Win10 in order to debug the thing, but it works not yet.
      Does anybody have a complete guidance or a docker image?

      G 1 Reply Last reply Reply Quote 0
      • G Offline
        gertjanvanhethof Pybytes Beta @Thosch42
        last edited by

        @Thosch42 I don't thing it has anything to do with you build environment.
        I don't have guru meditation errors but still facing problems with acceptance of the gateway connection by TTN.
        See: TTN Join accept not handled properly

        Do you use the code from github?

        T 1 Reply Last reply Reply Quote 0
        • T Offline
          Thosch42 @gertjanvanhethof
          last edited by

          @gertjanvanhethof
          Yes, I use the original gitlab source, and also the original binary with Pycom Firmware Updater. But I run always into this Guru Meditation error. I tried it with the tutorial scripts from from gitlab and also with modified versions. Always the same.
          Offline debugging tells me only, the bad code line is inside the byte code (what means, inside the python scripts, isn't it?).
          Cheers,
          Thomas

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

            @Thosch42

            I’ve never seen anything quite that bad and I’ve seen a fair share of nano gateways.

            Which nodes are you using? just LoPys?

            It’s possible to get the offending line from the address given in the guru medication error, if you have the tool chain and a compiled image you can use addr2line included in the compiler tool chain

            T 3 Replies Last reply Reply Quote 0
            • T Offline
              Thosch42 @jmarcelino
              last edited by

              @jmarcelino Yes, just LoPys with Expansionboards V2.1A.
              Good to know, with the addr2line command for gdb. I check it, as soon as I'm back in the office.
              Cheers,
              Thomas

              1 Reply Last reply Reply Quote 0
              • T Offline
                Thosch42 @jmarcelino
                last edited by

                @jmarcelino Ok, it took a while. Currently pretty busy:
                The addr2line tool told me the following:

                ts@Vrumfondell MSYS ~/pycom-micropython-sigfox/esp32/build/LOPY_868/release
                $ xtensa-esp32-elf-addr2line -e application.elf -a 0x400f7b66
                0x400f7b66
                C:\msys32\home\ts\pycom-micropython-sigfox\esp32/../py/vm.c:1206
                

                what leads me directly to

                (gdb) info symbol 0x400f7b66
                mp_execute_bytecode + 4166 in section .flash.text
                (gdb) list *0x400f7b66
                0x400f7b66 is in mp_execute_bytecode (../py/vm.c:1206).
                1201                    ENTRY(MP_BC_BINARY_OP_MULTI): {
                1202                        MARK_EXC_IP_SELECTIVE();
                1203                        mp_obj_t rhs = POP();
                1204                        mp_obj_t lhs = TOP();
                1205                        SET_TOP(mp_binary_op(ip[-1] - P_BC_BINARY_OP_MULTI, lhs, rhs));
                1206                        DISPATCH();
                1207                    }
                1208
                1209                    ENTRY_DEFAULT:
                1210                        MARK_EXC_IP_SELECTIVE();
                

                but it does (me) not really help.

                Cheers,
                Thomas

                1 Reply Last reply Reply Quote 0
                • T Offline
                  Thosch42 @jmarcelino
                  last edited by

                  @jmarcelino
                  Hi!
                  I still have this problem.Another question: Should there really not boot.py? Because I have one.

                  import os
                  from machine import UART
                  uart = UART(0, 115200)
                  os.dupterm(uart)
                  

                  Or should I better delete the boot.py and connect the LoPy via Wi-Fi?

                  Cheers,
                  Thomas

                  1 Reply Last reply Reply Quote 0
                  • R Offline
                    rm
                    last edited by

                    @jmarcelino said in Multiple issues with LoPy TTN Nano Gateway:

                    https://forum.pycom.io/topic/1361/firmware-release-1-7-3-b1

                    After my update from 1.6.2 to 1.7.x the nano gateway stopped functioning. Is there anyone who has working code for a nano gateway functioning on 1.7.3-b1 firmware?

                    1 Reply Last reply Reply Quote 0
                    • T Offline
                      Thosch42
                      last edited by

                      OK, it seems running now. But I don't know why.
                      I updated the device with the newest 1.7.5.b1 firmware via update tool - no success.
                      I flashed my own build from the latest pull - get a red light after update
                      I updated the device again with the update tool - no red light, but also no success
                      I synced the lopy directly from the git working directory, just changed the three lines in config.py, leaving the otaa_node.py where it is (so it copied it also to the gateway) and - Tataa - the gateway runs now for more than an houre.
                      Ok, the node is not joining, but I#ve seen, there are some threads about this issue.

                      And I have to find out, why I get a red light and a freeze, when I flash my own build from the original source.

                      Cheers,
                      Thomas

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

                        @Thosch42
                        This tip from Robert should fix your red light:

                        https://forum.pycom.io/topic/1343/solved-lopy-bricked-red-led/3

                        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