You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
391
391
392
-
### 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!
394
-
1. Download it from [GitHub](https://github.com/carabidulebabat/CaraSandbox/blob/main/ap_alink.sh).
395
-
2. Modify rc.local in /etc/ folder and add before exit 0 and save the file.
396
-
```bash
397
-
/etc/ap_alink.sh &
398
-
````
399
-
400
-
3. SSH into it(putty can be used) and type:
392
+
Using APALink
401
393
402
-
```bash
403
-
chmod +x /etc/ap_alink.sh
404
-
```
394
+
APALINK is a C program designed to keep your video link alive. It uses fallback logic to switch to a lower bitrate (e.g., 2 Mbps) when the signal is weak.
405
395
406
-
Now lets see the different setting, cause its experimental we can play with various parametrer
396
+
Installation
407
397
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
398
+
To install it is easy:
411
399
412
-
```bash
413
-
bitrate=4
414
-
bitratemax=10
415
-
````
400
+
1. Go to https://github.com/carabidulebabat/CaraSandbox
401
+
2. Follow the steps in the README.md.
416
402
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 functionallows 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.
403
+
3. Copy the ap_alink binary to /usr/bin:
404
+
405
+
'''bash
406
+
chmod 777 +x /usr/bin
407
+
'''
408
+
409
+
4. Copy the ap_alink.conf file to the /etc/ folder.
410
+
411
+
5. (Optional) Copy vtxmenu.ini to /etc/ as well to enable the APFPV menu.
412
+
413
+
6. Go fly!
414
+
415
+
Settings
416
+
417
+
You can edit the ap_alink.conf file:
418
+
419
+
'''bash
420
+
bitrate_max=22 ## its the bitrate when good signal
421
+
bitrate_min=2 ## its the fallback bitrate
422
+
dbm_threshold=-47 ## this value is the threshold of when fallback mode needs to kick in. WARNING: set this value as your Wi-Fi RF sensitivity
423
+
'''
424
+
425
+
- A lower threshold = better image quality for longer, but video may lag or freeze under weak signal.
426
+
- A higher threshold = fallback triggers faster, possibly reducing lag but also image quality.
427
+
428
+
Recommended Settings
429
+
430
+
EU2:
431
+
'''bash
432
+
bitrate_max=12
433
+
bitrate_min=2
434
+
dbm_threshold=-52
435
+
'''
436
+
437
+
8812AU AF1:
438
+
'''bash
439
+
bitrate_max=10
440
+
bitrate_min=2
441
+
dbm_threshold=-48
442
+
'''
443
+
444
+
MSP Menu
445
+
446
+
Navigate to the MSP menu just like in HDZero or WFB-NG.
447
+
448
+
Inside the "BASIC SETTING" submenu, you have:
449
+
450
+
- Tx Power: 1500 or 2000 (representing MIN/MAX power). 25mw or 100mw.
451
+
- Channel: Every 5GHz Wi-Fi channel is listed.
452
+
- AutoPower 0 or 1 enable set tx power auto of iw
443
453
444
-
I suggest to try different value ford > dbm and seein 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
454
+
That’s All
446
455
456
+
Straightforward, easy to understand — just plug and fly without overthinking.
0 commit comments