Skip to content

Commit fcda51c

Browse files
Update APFPV.md
make correction suggested
1 parent cce55a4 commit fcda51c

File tree

1 file changed

+13
-17
lines changed

1 file changed

+13
-17
lines changed

src/content/docs/use-cases/fpv/APFPV.md

Lines changed: 13 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ APFPV bridges the gap between complex FPV systems and simple solutions, making F
323323

324324
##APFPV with runcam gs or other gs that got many wifi card
325325

326-
step 1 : download APFPV radxa img at this link https://github.com/OpenIPC/sbc-groundstations/
326+
step 1 : download APFPV radxa img at this link https://github.com/OpenIPC/sbc-groundstations/ and click on APFPV v0.0.1 link
327327
step 2 : flash sd card using balena etcher or other similar software
328328
setp 3 : once finish we need to modify stream.sh and firstboot.sh
329329

@@ -336,9 +336,9 @@ SSID="OpenIPC"
336336
PASSWORD="12345678"
337337
EXCLUDE_IFACE="wlan0"
338338

339-
echo "[*] Détection des interfaces Wi-Fi via ip..."
339+
echo "[*] scan wifi card"
340340

341-
# Liste des interfaces de type wlan* ou wlx* sauf wlan0
341+
# list every wifi interface wlx or wlan expect wlan0
342342
WIFI_IFACES=$(ip -o link show | awk -F': ' '{print $2}' | grep -E '^wlan|^wlx' | grep -v "^$EXCLUDE_IFACE$")
343343

344344
INDEX=1
@@ -349,42 +349,38 @@ for IFACE in $WIFI_IFACES; do
349349
echo ""
350350
echo "=== Interface détectée : $IFACE → connexion nommée $CONN_NAME ==="
351351

352-
# Supprimer ancienne connexion si elle existe
352+
# delete old connection
353353
if nmcli connection show "$CONN_NAME" &>/dev/null; then
354-
echo "[*] Suppression de l'ancienne connexion $CONN_NAME"
355354
nmcli connection delete "$CONN_NAME"
356355
fi
357356

358-
# Scanner les réseaux Wi-Fi
359-
echo "[*] Scan des réseaux pour $IFACE..."
357+
# scan avaible wifi network
360358
nmcli device wifi rescan ifname "$IFACE"
361359
sleep 2
362360

363-
# Créer la connexion Wi-Fi
364-
echo "[*] Création de la connexion $CONN_NAME..."
361+
# connect to APFPV network
362+
echo "[*] create $CONN_NAME..."
365363
nmcli connection add type wifi ifname "$IFACE" con-name "$CONN_NAME" ssid "$SSID" \
366364
wifi-sec.key-mgmt wpa-psk wifi-sec.psk "$PASSWORD" \
367365
ipv4.method auto connection.autoconnect yes
368366

369-
# Définir la priorité de route
367+
# enable ip route
370368
if [[ "$CONN_NAME" == "wifi1" ]]; then
371-
echo "[*] Affectation de la priorité de route : 100 (wifi1)"
369+
372370
nmcli connection modify "$CONN_NAME" ipv4.route-metric 100
373371
elif [[ "$CONN_NAME" == "wifi2" ]]; then
374-
echo "[*] Affectation de la priorité de route : 200 (wifi2)"
372+
375373
nmcli connection modify "$CONN_NAME" ipv4.route-metric 200
376374
fi
377375

378-
# Activer la connexion
379-
echo "[*] Activation de la connexion $CONN_NAME"
376+
# enable connection
380377
nmcli connection up "$CONN_NAME"
381378

382-
echo "[+] $CONN_NAME connectée et priorisée"
383379
INDEX=$((INDEX + 1))
384380
done
385381

386382
echo ""
387-
echo "[✓] Toutes les interfaces sont connectées avec priorités configurées."
383+
echo "[✓] evrything done, end of script"
388384
```
389385
step 4 : in stream.sh disable wlan0 using nmcli
390386

@@ -448,6 +444,6 @@ get_dynamic_decrease() {
448444
same thing at get dynamic interval will lower bitrate faster or lower depends of link quality.
449445

450446
I suggest to try different value for d > dbm and see in flight
451-
447+
you can killall ap_alink.sh and type sh /etc/ap_alink.sh to execute script with log, log will show current bitrate, interval and dbm
452448
thats all for the moment
453449

0 commit comments

Comments
 (0)