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

    WiPy antenna select

    Scheduled Pinned Locked Moved WiPy 2&3
    wipy3.0wifiantenna
    5 Posts 3 Posters 1.4k 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.
    • J Offline
      johand
      last edited by

      I am testing WIFI signal strength with external antenna on WiPy 3 with latest FW (1.18.1.r1). I am using this antenna: https://pycom.io/product/external-wifi-antenna/

      I scan for networks with this code:

      from network import WLAN
      wlan = WLAN(mode=WLAN.STA)
      wlan.antenna(WLAN.EXT_ANT)
      nets = wlan.scan()
      for net in nets:
      	print(net)
      

      I usually see rssi-values in the range -65 - -70, the same when I use the internal antenna. When I put my thumb over the integrated antenna rssi goes to appr. -85.

      Is this expected? Should I test this in another way?

      When connected to an access point the access point give the same information, when the integrated antenna is covered (external antenna selected) signal strength decrease.

      Johan

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

        There must be a problem with the antenna selection method, is there a problem with my code?

        I added this and now the external antenna works:

        from machine import Pin
        p_out = Pin('P12', mode=Pin.OUT)
        p_out.value(1)

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

          Reported this issue on GitHub as well:
          https://github.com/pycom/pycom-micropython-sigfox/issues/206

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

            I can confirm same behaviour with LoPy4 running FW 1.18.1.r1. Difference in RSSI in my case is more than 20dB because the module (and its integrated antenna) is enclosed in aluminium housing.

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

              I confirm that

              wlan.antenna(WLAN.EXT_ANT)
              

              works with Pycom firmware > 1.18.1.r1.

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

              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