WiPy antenna select
-
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
-
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) -
Reported this issue on GitHub as well:
https://github.com/pycom/pycom-micropython-sigfox/issues/206 -
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.
-
I confirm that
wlan.antenna(WLAN.EXT_ANT)works with Pycom firmware > 1.18.1.r1.
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