Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

It seems that the corresponding profile setting for smthd has not been applied #19

Open
lida2003 opened this issue Mar 7, 2025 · 1 comment

Comments

@lida2003
Copy link
Contributor

lida2003 commented Mar 7, 2025

I have got smthd 1590 --> it should be 1551 - 1600 long 2 10 15 6144 10 50 0,0,0,0 20 -12.
But actually, it set 1s 1024 20long0 8/12 Pw55 g10.0, why?

Version 0.58.0

842
00:13:18,456 --> 00:13:19,449
1s 1024 20long0 8/12 Pw55 g10.0
1.0Mb FPS:60 CPU44% tx42c
og 1590, smthd 1590
rssi-46, 1680
snr25, 1500
fec5 pnlt0 xtx981(21) idr0
  • /etc/alink.conf
# cat /etc/alink.conf
### alink_drone settings ###

### Allow power settings defined in txprofiles.conf
allow_set_power=1

### weights - how much consideration alink_drone puts on gs rssi vs snr
rssi_weight=0.5
snr_weight=0.5

### if gs heartbeat lost for x ms, set link low (fallback)
fallback_ms=1000
# keep link low for min x s
hold_fallback_mode_s=1

### limit time between any link change and the next
min_between_changes_ms=200
# wait x seconds before increasing link speed
hold_modes_down_s=3

### smooth out rssi/snr readings for link increase / decrease
hysteresis_percent=5
hysteresis_percent_down=5
exp_smoothing_factor=0.1
exp_smoothing_factor_down=1.0

### allow lost GS packet to request new keyframe
allow_request_keyframe=0
# allow drone driver-tx_dropped to request new keyframe
allow_rq_kf_by_tx_d=1
# limit time between keyframe requests
request_keyframe_interval_ms=1000
# request a keyframe at every link changes
idr_every_change=0

### enable higher quality in center of image
roi_focus_mode=0

### penalise link by this amount per packet above alarm (0 = disabled)
fec_rec_penalty=0
# allow fec below alarm value
fec_rec_alarm=2
# limit penalty to
max_fec_rec_penalty=150
apply_penalty_for_s=1

### attempt to help encoder bitrate spikes by strategically lowering FPS when on high resolutions
allow_spike_fix_fps=0

### how much info on OSD (0 to 4)
osd_level=4

### Command templates - Don't change these unless you know what you are doing
powerCommand="iw dev wlan0 set txpower fixed %d"
fpsCommandTemplate="echo 'setfps 0 %d' > /proc/mi_modules/mi_sensor/mi_sensor0"
qpDeltaCommand="curl localhost/api/v1/set?video0.qpDelta=%d"
mcsCommand="wfb_tx_cmd 8000 set_radio -B %d -G %s -S %d -L %d -M %d"
bitrateCommand="curl -s 'http://localhost/api/v1/set?video0.bitrate=%d'"
gopCommand="curl -s 'http://localhost/api/v1/set?video0.gopSize=%f'"
fecCommand="wfb_tx_cmd 8000 set_fec -k %d -n %d"
roiCommand="curl -s 'http://localhost/api
customOSD=&L%d0&F%d&B CPU&C tx&Wc&G8
  • /etc/txprofiles.conf
# cat /etc/txprofiles.conf
# <ra - nge> <gi> <mcs> <fecK> <fecN> <bitrate> <gop> <Pwr> <roiQP> <bandwidth> <divideFpsBy>
999 - 1100 long 0 8 12 1024 10 55 0,0,0,0 20 -12
1101 - 1200 long 0 10 15 1024 10 55 0,0,0,0 20 -12
1201 - 1300 long 0 8 12 2048 10 55 0,0,0,0 20 -12
1301 - 1400 long 0 10 15 2048 10 55 0,0,0,0 20 -12
1401 - 1450 long 1 8 12 4096 10 55 0,0,0,0 20 -12
1451 - 1500 long 1 10 15 4096 10 55 0,0,0,0 20 -12
1501 - 1550 long 2 8 12 6144 10 50 0,0,0,0 20 -12
1551 - 1600 long 2 10 15 6144 10 50 0,0,0,0 20 -12
1601 - 1650 long 2 8 12 8192 10 50 0,0,0,0 20 -12
1651 - 1700 long 2 10 15 8192 10 50 0,0,0,0 20 -12
1701 - 1750 long 3 8 12 11264 10 45 0,0,0,0 20 -12
1751 - 1800 long 3 10 15 11264 10 45 0,0,0,0 20 -12
1801 - 1900 long 4 8 12 14336 10 40 0,0,0,0 20 -12
1901 - 2001 long 4 10 15 14336 10 40 0,0,0,0 20 -12
@lida2003
Copy link
Contributor Author

lida2003 commented Mar 8, 2025

Just watch 2:00 of the video: https://www.youtube.com/watch?v=18dS7q_nHPg.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant