Skip to content

Commit ef66f6c

Browse files
Update APFPV.md
update for new fallback ap_alink
1 parent 1048781 commit ef66f6c

File tree

1 file changed

+20
-37
lines changed

1 file changed

+20
-37
lines changed

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

Lines changed: 20 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,7 @@ nmcli device disconnect wlan0
390390
Thats all, now put the SD card in your vrx and turn it ON, you will get 2 wifi interfaces connected to APFPV credentials, and with ip route it will pick the best wifi card every time, the range should increase significantly.
391391

392392
### Using APAlink
393-
APAlink will modify the bitrate on the fly to keep link alive, it still on exprimental stage, use on your own risk!
393+
APAlink will modify the bitrate on the fly to keep link alive, its stable beta now, will be port in cpp soon.
394394
1. Download it from [GitHub](https://github.com/carabidulebabat/CaraSandbox/blob/main/ap_alink.sh).
395395
2. Modify rc.local in /etc/ folder and add before exit 0 and save the file.
396396
```bash
@@ -403,44 +403,27 @@ APAlink will modify the bitrate on the fly to keep link alive, it still on expri
403403
chmod +x /etc/ap_alink.sh
404404
```
405405

406-
Now lets see the different setting, cause its experimental we can play with various parametrer
406+
Now lets see how its work now.
407407

408-
bitrate=30 is the default bitrate, when its boot it will start at 30mbps
409-
bitratemax is the max bitrate allowed, majestic will not go higher than this value
410-
default value is bitrate 30 and max 40, its good if you have a radxa gs with good wifi card, if your on android try lower value like
408+
Apfpv already got modulation scheme adaptive, so now the ap aplink is a simple fallback link that trigger 2mbps when signal is low.
409+
We got bitrate max wich the maximum bitrate reachable and bitrate min wich is the fall back bitrate
411410

412-
```bash
413-
bitrate=4
414-
bitratemax=10
415-
````
411+
Stock setting use 25mbps bitrate and 2 mbps for fallback
416412

417-
Power output is not adaptive yet.
418-
```bash
419-
get_dynamic_interval() {
420-
dbm=$(get_dbm)
421-
echo $(awk -v d="$dbm" 'BEGIN {
422-
if (d > -40) print 8;
423-
else if (d > -65) print 6;
424-
else if (d > -75) print 4;
425-
else if (d > -85) print 2;
426-
else print 1;
427-
}')
428-
}
429-
```
430-
This function allows to increase the bitrate faster or lower depends on link quality in dbm. You can modify the d value to set the sensitivity of APAlink.
431-
```bash
432-
get_dynamic_decrease() {
433-
dbm=$(get_dbm)
434-
echo $(awk -v d="$dbm" 'BEGIN {
435-
if (d > -60) print 2;
436-
else if (d > -75) print 5;
437-
else if (d > -85) print 15;
438-
else print 20;
439-
}')
440-
}
441-
```
442-
Same thing as get dynamic interval, but it will lower bitrate faster or lower depends of link quality.
413+
now we got dbm wich is the threshold when fallback kick in.
414+
415+
you can use 3 value
416+
417+
-48 wich make fallback enter very quicly and a worse image quality, its good value for > 25mbps bitrate
418+
-50 wich is the default value and a good compromise between link consistency and image quality
419+
-61 Its works but not recommand this value, fallback will enter too late and you will lose video, if your on rc car or fix wing, or ardupilot kwad you can try it.
420+
421+
Note, more higher bitrate you set you need to higher dbm value, unless majestic will not adapt in time and you will get poor performance.
422+
423+
for bitrates that works
443424

444-
I suggest to try different value for d > dbm and see in flight.
445-
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. Thats all for APAlink at the moment
425+
10mbps very stable
426+
15mbps stable
427+
25mbps higher stable bitrate we got
446428

429+
48mbps !!!!! will give a 50mbps video feed that crystal clear but not very stable now. I will suggest 45mbps to try first.

0 commit comments

Comments
 (0)