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

    Any way to get RSSI of existing connection without scan?

    Scheduled Pinned Locked Moved WiPy 2&3
    wifi rssi
    5 Posts 5 Posters 1.2k Views 6 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.
    • M Offline
      mfallavol
      last edited by

      Is there any way of getting the RSSI of the connected router? I know its returned in a scan but I've found that starting a scan can often cause my WiPy 2.0 to hang indefinitely until power cycled. It would be nice if there was a WLAN.rssi() function or if it was returned with the ssid in WLAN.ssid().

      R 1 Reply Last reply Reply Quote 1
      • M Offline
        Martinnn
        last edited by

        Exactly the same question... I have a sensor and want it to publish the Wifi RSSI along with other measurement data. How do I read it (except for using the scan)?

        1 Reply Last reply Reply Quote 0
        • R Offline
          reidfo @mfallavol
          last edited by reidfo

          @mfallavol I would like a way to do this also, as well as see signal strength of all available carriers before connecting. Currently I'm just doing LTE.disconnect(), then sending AT+CSQ to the modem, and reconnecting. In newer firmwares I could use LTE.pppsuspend() and LTE.pppresume(). A better method would be great to have.

          EDIT: I just reread your post and you're talking about WiFi, but the same applies for LTE, which is my application.

          1 Reply Last reply Reply Quote 0
          • rcolisteteR Offline
            rcolistete
            last edited by alejandro

            While the official MicroPython has "wlan.status('rssi')" to to retrieve the RSSI of the AP signal (when you are in STA mode connect to the AP), Pycom firmware >= 1.20.0.rc0](https://forum.pycom.io/topic/4099/new-firmware-release-candidate-v1-20-0) has a new function :

            wlan.joined_ap_info()
            Returns a tuple with (bssid, ssid, primary channel, rssi, Authorization method, wifi standard used) of the connected AP in case of STA mode.

            Tested it with firmware 1.20.0.rc4 on LoPy4 and it works.
            So no need to call 'wlan.scan()' when there is already a connection to an access point.

            Also note that the same firmware 1.20.0.rc0 brings new features (for example, to filter by ssid or bssid) to 'wlan.scan' :

            wlan.scan([ssid=NULL, bssid=NULL, channel=0, show_hidden=False, type=WLAN.SCAN_ACTIVE, scantime=120ms])"

            My "MicroPython Samples". My "MicroPython Firmwares" with many options (double precision, ulab, etc).

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

              This post is deleted!
              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