forked from mavlink-router/mavlink-router
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.sample
232 lines (185 loc) · 6.82 KB
/
config.sample
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
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
# This is the mavlink-router configuration file.
# Syntax
#
# The configuration file is composed of sections, each containing a set of
# key-value-pairs. Section names, keys and pre-defined values are case
# insensitive. Sections can have names when they have multiple instances.
#
# Lines starting with a `#` symbol are considered a comment and ignored.
# Comments at the end of a line are not allowed.
#
# A section starts with `[$section_type name-of-section]`. The name must not
# contain any blanks.
# Keys-value-pairs are separated by a `=` sign, the surrounding whitespace is
# ignored. So `key=value` is the same as `key = value`.
#
# Boolean values can either be defined as <true>/ <false> or <1>/ <0>.
# Lists are comma separated.
#
##
## General Configuration
##
[General]
# this section only has one instance and therefore no name
# Print traffic statistics to stdout
# Default: <false>
#ReportStats = false
# Logging verbosity (stderr)
# Valid values: <error>, <warning>, <info> or <debug>
# Default: <info>
#DebugLogLevel = info
# Enable de-duplication of incoming messages. If a message is received another
# time in the configured time period (in milliseconds), it will be dropped. The
# second message will reset the timer.
# It should be a bit higher, than the latency of the slowest link. More than
# 1000 ms might drop packets unintentionally though.
# Default: 0 (de-duplication disabled)
#DeDuplicationPeriod = 0
## TCP Server Endpoints
# Listen for TCP connections on this port. Set to 0 to disable.
# Default: 5760
#TcpServerPort = 5760
## Flight Stack Logging
# Define the MAVLink dialect used by the flight stack, so mavlink-router can
# log appropiately. In <auto> mode, the flight stack will be deferred from the
# heartbeat message.
# Valid values: <auto>, <common> or <ardupilotmega>
# Default: <auto>
#MavlinkDialect = auto
# Enable flight stack logging and specify directory to save log files in.
# No default/ disabled by default.
#Log = /some/path
# Define when to store flight stack logs. From the start of mavlink-router
# until it's stopped or just while the vehicle is armed.
# Valid values: <always>, <while-armed>
# Default: <always>
#LogMode = always
# Preset the FCU MAVLink ID from which logs should be received. If absent, it
# will be set to the system ID of the first flight stack heartbeat received.
# No default value.
#LogSystemId =
# Auto-delete old log files until there's at least the configured amount of
# bytes free on the storage device. Set to 0 to disable this functionality.
# Default: 0 (disabled)
#MinFreeSpace = 0
# Auto-delete old log files to not have more files than configured. Set to 0 to
# disable this functionality.
# Default: 0 (disabled)
#MaxLogFiles = 0
# SnifferSysid
# Forward all traffic to endpoints on which this MAVLink system ID is connected.
# This can be used to log or view all messages flowing though mavlink-router.
# Default: 0 (disabled)
#SnifferSysid=254
##
## UART Endpoint Configurations
## Duplicate sections (with a different name) to create multiple endpoints
##
#[UartEndpoint $name]
# Path to UART device. like `/dev/ttyS0`
# Mandatory, no default value
#Device =
# List of baudrates to use for the UART connection. The values will be cycled
# through until valid MAVLink packets are received.
# Format: Comma separated list of integers
# Default: 115200
#Baud = 115200
# Enable flow control on device
# Default: <false>
#FlowControl = false
# Only allow specified MAVLink message IDs to be sent via this endpoint. An
# empty list allows all message IDs.
# Format: Comma separated list of integers
# Default: Empty list (disabled)
#AllowMsgIdOut =
# Only allow messages from the specified MAVLink source component IDs to be
# sent via this endpoint. An empty list allows all source components.
# Format: Comma separated list of integers
# Default: Empty list (disabled)
#AllowSrcCompOut =
# Only allow messages from the specified MAVLink source systems to be sent via
# this endpoint. An empty list allows all source components.
# Format: Comma separated list of integers
# Default: Empty list (disabled)
#AllowSrcSysOut =
# Only allow specified MAVLink message IDs to be received on this endpoint.
# An empty list allows all message IDs.
# Format: Comma separated list of integers
# Default: Empty list (disabled)
#AllowMsgIdIn =
# Only allow messages from the specified MAVLink source component IDs to be
# received on this endpoint. An empty list allows all source components.
# Format: Comma separated list of integers
# Default: Empty list (disabled)
#AllowSrcCompIn =
# Only allow messages from the specified MAVLink source systems to be received
# on this endpoint. An empty list allows all source components.
# Format: Comma separated list of integers
# Default: Empty list (disabled)
#AllowSrcSysIn =
# Group parallel/ redundant data links to use the same list of connected
# systems. This is needed to prevent messages from one of the parallel links
# being send back on the other one right away.
# Set the same name (arbitrary string) on multiple endpoints to group them.
# Default: Empty (no group)
#Group =
## Example
[UartEndpoint alpha]
Device = /dev/ttyS0
Baud = 52000
##
## UDP Endpoint Configurations
## Duplicate sections (with a different name) to create multiple endpoints
##
#[UdpEndpoint $name]
# Mode of operation. See the readme for a detailed description of the endpoint
# behavior (client mode is <normal> in the configuraiton).
# Valid values: <normal>, <server>
# Mandatory, no default value
#Mode =
# Binding or target IP address (depending on mode).
# IPv6 addresses must be encosed in square brackets like `[::1]`.
# Binding to `0.0.0.0` or `[::]` will listen on all interfaces.
# Mandatory, no default value
#Address =
# UDP port to be used with the configured address.
# Mandatory in <server> mode, no default value
# Optional in <normal> mode, will select the next port not used by mavlink-router
# starting from 14550 when not speciifed.
#Port =
# See description at UartEndpoint
#AllowMsgIdOut =
## Examples
# bind to 0.0.0.0:10000
[UdpEndpoint bravo]
Mode = Server
Address = 0.0.0.0
Port = 10000
# send to 127.0.0.1:11000
[UdpEndpoint charlie]
Mode = Normal
Address = 127.0.0.1
Port = 11000
##
## TCP Client Endpoint Configurations
## Duplicate sections (with a different name) to create multiple endpoints
##
#[TcpEndpoint $name]
# Server IP address to connect to.
# IPv6 addresses must be encosed in square brackets like `[::1]`.
# Mandatory, no default value
#Address =
# TCP port to be used with the configured address.
# Mandatory, no default value
#Port =
# Enable automatic reconnect after the configured timeout in seconds. Set to 0
# to disable reconnection.
# Default: 5 seconds
#RetryTimeout = 5
# See description at UartEndpoint
#AllowMsgIdOut =
## Example
# connect to 127.0.0.1:25760 (e.g. another mavlink-router)
[TcpEndpoint delta]
Address = 127.0.0.1
Port = 25760