🛠 Wi-Fi AP6212 : le piège de l'antenne U.FL non fournie

Banana Pi BPI-M2 Zero (Allwinner H2+ / H3) · debutant · Schéma : IMG-bananapi-m2-zero-debutant-3-wifi-ap6212-antenne-m2-zero.svg — BPI-M2 Zero avec gros plan sur le connecteur RF U.FL situé à côté du mini-HDMI, petite antenne vissée, et terminal affichant nmtui connecté à un réseau 2,4 GHz.

Objectives

The BPI-M2 Zero features an AP6212 module (BCM43430 class): 1×1 Wi-Fi 802.11 b/g/n over SDIO, exclusively on the 2.4 GHz band. The particularity that ruins the first few evenings: the board did not come with an antenna — only an RF U.FL pad next to the mini-HDMI port allows you to screw one on. Published measurements: without an antenna, speeds oscillate between 0.68 and 13 Mbit/s and the list of networks is ghostly; with a cheap antenna, approximately 26/34 Mbit/s and about twenty visible networks. You will equip the board and connect it properly.

Hardware

Complete Code

# 1) Visser l'antenne U.FL (contact franc, connecteur fragile)
ip -br link show wlan0

# 2) État des lieux AVANT / APRÈS antenne : la différence est édifiante
sudo iw dev wlan0 scan | grep -c SSID    # relancer après avoir vissé l'antenne

# 3) Connexion en ligne de commande (NetworkManager)
sudo apt install -y network-manager
nmcli dev wifi connect "MON_SSID" password "MON_MDP" ifname wlan0
nmcli -f SSID,SIGNAL,CHAN dev wifi list | head

# 4) Vérifier le lien et le débit réel
iw dev wlan0 link
ping -c 3 9.9.9.9
iperf3 -c mon_serveur_lan

Expected Verification

With an antenna: about twenty SSIDs in the scan, iw dev wlan0 link shows a connected link, iperf3 approaches the published 26 to 34 Mbit/s. Without an antenna, the board often only "sees" the nearby hotspot with unstable speeds — this is the documented behavior, not a failure.

Common Errors

Other tutorials for this board

Code examples for this board

← Back to the board 🛠 All tutorials