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

    Pygate debug messages over WLAN AP

    Scheduled Pinned Locked Moved Getting Started
    pygaterepldebugap modelopy4
    5 Posts 3 Posters 71 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.
    • D Offline
      d.alvrzx
      last edited by

      Hello all,

      I was wondering, is it possible to get the debug output for the Pygate through the LoPy4's WLAN AP?

      I tried, and I get prints over the AP while the LoPy4 is connecting to the Ethernet and getting the RTC sync, but once the Pygate initializes, the prints stop. The Pygate however turns on its green LED and works just fine. This is the output:

      Connecting to 192.168.4.1...
        Starting LoRaWAN concentrator
      Connecting to the Internet via Ethernet....................... OK
      Syncing RTC via ntp..... OK
      
      Pycom MicroPython 1.20.2.rc10 [v1.11-b2436d4] on 2020-07-01; LoPy4 with ESP32
      Type "help()" for more information.
      >>>
      >>>
      

      So I don't get disconnected from the AP, the REPL still works, but the debug messages don't appear. These can only be observed when connected over serial.

      Any input is appreciated.

      Best,

      Dan

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

        Yes it is possible, see MicroWebsrv2

        Had something similar running on mine but as there isn't any interface from the Lopy4/WiPy to the Pygate to get stats it wasn't very effective fro anything other than setting up the config and restarting the gateway packet forwarder.

        Andrew

        D 1 Reply Last reply Reply Quote 1
        • D Offline
          d.alvrzx @thinginnovations
          last edited by d.alvrzx

          @thinginnovations hello, thank you for the recommendation! As I have never set up a web server, do you have any code you could share with this (specifically for the Pygate)? If not, I understand. Thanks!

          EDIT: I just noticed Pycom has released a new firmware for the Pygate that includes "Pygate debug messages are printed to telnet". See: https://forum.pycom.io/topic/6289/new-release-candidate-1-20-2-rc11-for-pygate

          Will check this out!

          1 Reply Last reply Reply Quote 1
          • G Offline
            Gijs
            last edited by

            Hi
            Yes, the issue was that the messages were printed only to UART because we used a different method. In the new firmware, we used a different method, making the logs print to Telnet as well! Let me know if it works for you

            D 1 Reply Last reply Reply Quote 0
            • D Offline
              d.alvrzx @Gijs
              last edited by

              @Gijs Yes! Tested rc11 yesterday and it worked just fine. Thx!

              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