-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathgs.conf
210 lines (200 loc) · 7.39 KB
/
gs.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
## Network Configuration
# WiFi device integrated by radxa zero 3W is named wifi0 in OS.
# wifi_mode can be station or hotspot
wifi_mode='hotspot'
# If SSID and Password is not configured, system will automatically connect to an open WiFi named OpenIPC.
wifi_ssid='OpenIPC'
wifi_encryption='wpa-psk'
wifi_password=''
hotspot_ssid='SBC-GS'
hotspot_password='12345678'
hotspot_ip='192.168.4.1/24'
# Ethernet device integrated by radxa zero 3E is named eth0 in OS.
# External USB tethering NIC named usb0
# Bridged eth0 and usb0 to br0
br0_fixed_ip='192.168.1.20/24'
br0_fixed_ip2='10.0.36.254/24'
# Radxa Gadget USB NIC named radxa0
gadget_net_fixed_ip='192.168.2.20/24'
## Video Configuration
# If you want to boot into the terminal, set video_on_boot to no.
video_on_boot='yes'
# CAUTION: Invalid screen mode settings may cause pixelpilot fail to start.
# keep screen_mode empty for auto detect, recommended set manually only when preferred screen mode is not the best mode
# screen_mode support <width>x<heigth>@<fps>(e.g. 1920x1080@60), max-fps, max-res and empty.
screen_mode=''
# video_player can be pixelpilot or gstreamer.
video_player='pixelpilot'
video_codec='h265'
# pixelpilot support multi osd types, gstreamer only support wfb-ng-osd
osd_enable='yes'
# following OSD options is only for pixelpilot.
# pixelpilot osd fps
osd_fps='20'
# osd_type can be mavlink, msposd_air, msposd_gs
osd_type='msposd_air'
# msposd_gs_ options only valid when osd_type set to msposd_gs
# msposd_gs_method can be tunnel or wfbrx
msposd_gs_method='tunnel'
msposd_gs_port='14551'
msposd_gs_fps='20'
msposd_gs_ahi='0'
# osd_config_file must be the absolute path of pixelpilot osd json config file. e.g. `/config/pixelpilot_osd_custom.json`.
# If osd_config_file is not set, will auto select as follows
# * mavlink => /etc/pixelpilot/pixelpilot_osd.json
# * msposd_air => /etc/pixelpilot/pixelpilot_osd_simple.json
# * msposd_gs => /etc/pixelpilot/pixelpilot_msposd.json
osd_config_file=''
## Record Configuration
# Folder for saving video files.
rec_dir='/Videos'
# Minimum remaining space(MB) of record partition
rec_dir_freespace_min='1000'
# CAUTION: Must be the same value setting in IPC.
rec_fps='60'
# Auto recording Configuration
# * keep blank will recording manually
# * set to boot will auto start recording when system startup
# * set to arm will start recording when FC armed(only working with pixelpilot)
record_on=''
## Wifibroadcast Configuration
# Use integrated WiFi card for wfb, hotplug script only working with USB WiFi.
# If you want use wifi0 (sdio Wifi integrated by Radxa zero 3W) for wfb, set wfb_integrated_wnic='wifi0'
wfb_integrated_wnic=''
# wfb_mode can be standalone, cluster, aggregator.
# standalone mode: Offical mode supported by wfb-ng. start [email protected] on boot. Auto generate /etc/wifibroadcast.cfg /etc/default/wifibroadcast
# and restart [email protected] when USB WiFi plug and unplug by udev rules.
# cluster mode: Offical mode supported by wfb-ng. start [email protected] on boot.
# start wfb_tx forwarder for each USB WiFi. Auto generate /etc/wifibroadcast.cfg
# and restart [email protected] when USB WiFi plug and unplug by udev rules.
# You can get stream from USB WiFi or external devices like an OpenWrt router via Ethernet.
# aggregator mode: Unoffical mode. wfb_rx aggregator running on boot and start wfb_tx forwarder for each USB WiFi.
# You can get stream from USB WiFi or external devices like an OpenWrt router via Ethernet.
# Hot-plugging of USB WiFi or Ethernet will not interrupting data stream.
# Rx only and not support wfb_tunnel.
# WARING: cluster and aggregator mode may introduce additional delays(~1ms?)
wfb_mode='standalone'
wfb_key='/etc/gs.key'
# Enable or disable wfb_rtsp_server, rtsp://x.x.x.x:8554/wfb
wfb_rtsp_server_enable='no'
# WiFi Monitor Configuration
wfb_channel='161'
wfb_region='00'
wfb_bandwidth='20'
# Set tx power in mbm(0~3000)
wfb_txpower=''
# wfb general Configuration
wfb_link_id='7669206'
wfb_stream_id_video='0'
wfb_stream_id_mavlink='16'
wfb_stream_id_tunnel='32'
# use 224.0.0.1 for multicast and USB tethering push stream support
# use 127.0.0.1 for localhost
wfb_outgoing_ip='224.0.0.1'
wfb_outgoing_port_video='5600'
wfb_outgoing_port_mavlink='14550'
## GPIO Configuration
# RubyFPV compatibility
# Quick Button
btn_q1_pin='32'
btn_q2_pin='38'
btn_q3_pin='40'
# Custom Button
btn_cu_pin='18'
btn_cd_pin='16'
btn_cl_pin='13'
btn_cr_pin='11'
btn_cm_pin=''
# Red LED (recommend for record)
red_led_pin='22'
# LED GPIO drive mode can be push-pull or open-drain.
# If LED direct connected to GPIO, should use `push-pull` drive mode
# If LED is connected to a pull-up resistor, should use `open-drain` mode
red_led_drive='push-pull'
# Green LED (recommend for power)
green_led_pin='15'
green_led_drive='push-pull'
# Blue LED
blue_led_pin='12'
blue_led_drive='push-pull'
## Button Function Configuration
# Supported Functions
# * toggle_record
# * toggle_stream
# * cleanup_record_files
# * change_wifi_mode
# * change_otg_mode
# * scan_wfb_channel
# * apply_conf
# * shutdown_gs
# * reboot_gs
# Quick Button Function
btn_q1_single_press='toggle_record'
btn_q1_long_press='cleanup_record_files'
btn_q2_single_press='scan_wfb_channel'
btn_q2_long_press='change_otg_mode'
btn_q3_single_press=''
btn_q3_long_press='change_wifi_mode'
# Custom Button Function
btn_cu_single_press=''
btn_cu_long_press=''
btn_cd_single_press=''
btn_cd_long_press=''
btn_cl_single_press=''
btn_cl_long_press=''
btn_cr_single_press=''
btn_cr_long_press=''
btn_cm_single_press=''
btn_cm_long_press=''
## System Configuration
# Enable or disable SBC GS CC Edition WebUI
webui_enable='yes'
# Rootfs reserved space in MB.
rootfs_reserved_space='1500'
# disable radxa zero 3W integrated WiFi
disable_integrated_wifi='no'
# use external antenna or not for integrated WiFi on radxa zero 3w
enable_external_antenna='no'
# Set max resolution to 3820x2160(default max resolution is 1920x1080)
# CAUTION: Not compat with some monitors which may result in no display at all
max_resolution_4k='no'
# Enable GPIO functions using dtb overlay
dtbo_enable_list='pwm14-m0 uart3-m0 i2c4-m0'
# OTG mode can be host or device
otg_mode='device'
# Use external DS3231 RTC
use_external_rtc='no'
# Append to kernel cmdline, e.g. console=ttyS3,115200n8
append_kernel_cmdline=''
# set screen mode for system wide
# Waring: wrong screen mode will cause the screen to be completely blank
system_wide_screen_mode='no'
# enable gps will auto use gps time
use_gps='no'
# uart need enable in dtbo, ttyS3 is enabled by GS default
gps_uart='ttyS3'
gps_uart_baudrate='38400'
# Enable or Disable web tty. Default port is 81
ttyd_enable='yes'
## Cooling Configuration
fan_service_enable='yes'
# Must enable the following pwm chip and channel in dtbo
fan_pwm_chip='14'
fan_pwm_channel='0'
fan_pwm_frequency='25000'
# If fan direct connected to pwm pin, should set polarity to normal
# If fan connected to a pull-up resistor, should set polarity to inversed
fan_pwm_polarity='normal'
fan_pwm_min_duty_cycle='0'
fan_pwm_max_duty_cycle='80'
fan_pwm_step_duty_cycle='5'
fan_target_temperature='50'
fan_target_temperature_deviation='3'
fan_overheat_temperature='70'
monitor_8812eu_temperature='yes'
rtl8812eu_temperature_offset='-1'
temperature_monitor_cycle='10'
## LED Configuration
# otg mode led
otg_mode_led_pin='green_led_pin'
otg_mode_led_drive='green_led_drive'