-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathcrypto.ini
228 lines (214 loc) · 7.71 KB
/
crypto.ini
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
; This is the configuration file for the entire system
; Values in this file can be overridden by taking the sections
; and values you wish to change and putting them in a crypto.ini
; file in the config directory on your SD card. For example, if you
; wish to run the 700E mode with encryption disabled and PTT enabled,
; your crypto.ini file may look like
;
; [Codec]
; Mode = 700E
;
; [Crypto]
; Enabled = 0
;
; [PTT]
; Enabled = 1
;
; You should only put values you wish to override in that file. DO NOT PUT
; THE ENTIRE CONTENTS OF THIS FILE ONTO YOUR SD CARD.
; Developer options. You may be asked to change these values to help
; troubleshoot problems
[Diagnostics]
LogFile = /dev/null
LogLevel = 3
; This setting cannot be overridden by a user config file
; Set to 0 for Release builds
ForceShowConfig = 0
; This setting cannot be overridden by a user config file
; Set to 0 for Release builds
ShellEnabled = 0
[Codec]
; Controls whether or not digital voice is used.
; If this is set to 0 analog audio will be sent
; to the radio
Enabled = 1
; For more information: https://github.com/drowe67/codec2/blob/master/README_freedv.md
; Supported values:
; 700C
; 700D
; 700E
; 800XA
; 1600
; 2400B
Mode = 2400B
; Enables the built-in FreeDV SNR-based squelch used by the 700C/D/E modes
SquelchEnabled = 1
; Mode-specific SNR thresholds. Defaults are taken from sm1000_main.c
SquelchThresh700C = 2.0
SquelchThresh700D = -2.0
SquelchThresh700E = 0.0
[Crypto]
; When not using PTT, this will cause the system to obtain
; a new random AES initialization vector at a regular interval.
; This value is specified in seconds.
; The default value is already conservative, and you should not need to
; go lower than this.
; If using push to talk, a new initialization vector is obtained every time
; the PTT button is pressed, and this timer is reset
AutoRekey = 300
; Controls whether or not encryption is enabled. With encryption disabled
; this system essentially behaves like an SM1000 and can be used over
; amateur radio bands
Enabled = 1
; The Current Key Index. The first key is 1 (not 0). This cannot be saved
; in a SD card crypto.ini
KeyIndex = 1
[Audio]
; Used to control the modem squelch feature. If a modem signal is less
; than this value demodulation of the signal coming from the radio
; is disabled. This value is specified as the root mean square of the
; modem input frame encoded as a 16-bit signed integer.
ModemQuietMaxThresh = 1000
; Used to control the modem squelch feature. If a modem signal is
; greater than or equal to this value demodulation of the signal
; coming from the radio is enabled. This value is specified as the
; root mean square of the modem input frame encoded as a 16-bit
; signed integer.
ModemSignalMinThresh = 2500
; This will pass a certain number of "quiet" modem frames through the
; demodulator to "flush" out the system at the end of a transmission
ModemNumQuietFlushFrames = 10;
[PTT]
; Controls push to talk. 0 disables, 1 enables
Enabled = 0
; Refer to the GPIO numbers documented here: https://pinout.xyz/
GPIONum = 27
; Controls whether or not the internal pull-up or pull-down resistors are
; used. If you are just connecting the PTT input to a button you will want to
; configure this. If your PTT input is being actively driven by an external
; source, you probably should disable this.
;
; Supported values:
; pull-up
; pull-down
; disable
Bias = pull-up
; 1 if the signal is Active low (generally used when the input is pull-up)
; 0 if the signal is Active high (generally used when the input is pull-down)
; By reversing this value from what it "should" be, the push to talk feature
; can be used as a mute feature
ActiveLow = 1
; These values control the PTT output, which can output a PTT signal to
; the radio
; Refer to GPIO numbers here: https://pinout.xyz/
OutputGPIONum = 24
; Same as "Bias" but for the output pin
OutputBias = disable
; Controls how the output pin is driven
;
; Supported values:
; open-drain
; open-source
; push-pull
OutputDrive = open-drain
; 1 if the signal is Active low
; 0 if the signal is Active high
OutputActiveLow = 1
[Keypad]
; Refer to the GPIO numbers documented here: https://pinout.xyz/
UpGPIONum = 5
DownGPIONum = 7
AGPIONum = 13
BGPIONum = 21
DGPIONum = 3
; Controls whether or not the internal pull-up or pull-down resistors are
; used. If you are just connecting the PTT input to a button you will want to
; configure this. If your PTT input is being actively driven by an external
; source, you probably should disable this.
;
; Supported values:
; pull-up
; pull-down
; disable
Bias = pull-up
; 1 if the signal is Active low (generally used when the input is pull-up)
; 0 if the signal is Active high (generally used when the input is pull-down)
ActiveLow = 1
; The amount of debounce to apply to the buttons. Higher numbers are more
; resiliant to noise but require heavier button presses. This value roughly
; corresponds to the amount of time in tens of milliseonds the button must be
; fully depressed for
Debounce = 5
[JACK]
; The configured sample rate for the USB audio interfaces. Generally
; this is going to be 48000. Some audio interfaces only support 44100.
; The system works best if this value is a multiple of 8000, and if you
; are primarily using the 2400B mode this system works best with 48000
SampleRateTX = 48000
SampleRateRX = 48000
; The number of audio buffers used by the system. Audio latency is generally
; defined as (Period / SampleRate) * NumBuffers
; JACK documentation says 3 is generally preferred, 2 is the minimum value.
; 2 seems to be working for this application, so that's what we go with.
NumBuffersTX = 2
NumBuffersRX = 2
; Internal file locations for notification sounds. Leave these alone
SecureNotifyFile = /usr/share/sounds/secure.wav
InsecureNotifyFile = /usr/share/sounds/insecure.wav
; Controls which hardware interfaces map to which audio inputs/outputs.
VoiceDevice = hw:0
ModemDevice = hw:1
; Internal software configuration parameters. Leave these alone
VoiceInPort = system:capture_1
ModemOutPort = system:playback_*
ModemInPort = system:capture_1
VoiceOutPort = system:playback_*
NotifyOutPort = system:playback_*
; Controls the fundamental number of input samples that are
; processed by the system at one time. As a general rule, this
; value is dependent on the amount of latency in the CODEC mode
; as well as how processor intensive it is. By default the system
; computes these based on the codec frame sizes and sample rate,
; and generally it's best to just let the system do that.
;
; However you may have to adjust them if your sound cards use unusual
; sample rates, or if they require the value to be a power of 2. Generally
; (Period / SampleRate) * NumBuffers must be an integer number of milliseconds
;
; These values cannot be greater than or equal to 8192
;RXPeriod700C = 3840
;RXPeriod700D = 7680
;RXPeriod700E = 3840
;RXPeriod800XA = 3840
;RXPeriod1600 = 1920
;RXPeriod2400B = 1920
;TXPeriod700C = 3840
;TXPeriod700D = 7680
;TXPeriod700E = 3840
;TXPeriod800XA = 3840
;TXPeriod1600 = 1920
;TXPeriod2400B = 1920
[Config]
; Controls whether the UI is displayed when the system boots up.
; Note that if this is set to 0 you lose the ability to change it
; with the UI
Enabled = 1
; Controls whether the Configuration Options are available in the
; Main Menu
; Empty String disables all restrictions
; Asterisk disables Configuration Menu
; Otherwise this is a /etc/shadow password hash
ConfigPassword =
; Controls the sort of write protect applied to Locked Device images.
; This setting cannot be overridden by a user config file
;
; lock
; permlock
; none
;
; Set to permlock for Release builds
ProtectMode = permlock
; Controls whether this device is only being used for Key Fill
; and not Radio operations (ie. it does not have audio devices
; connected)
KeyFillOnly = 0