forked from talkkonnect/talkkonnect
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtalkkonnect.xml
335 lines (306 loc) · 22.4 KB
/
talkkonnect.xml
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
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
<?xml version="1.0" encoding="UTF-8"?>
<document type="talkkonnect/xml">
<!-- talkkonnect-raspberrypi-hd44780-i2c.xml -->
<!-- Sample for Raspberry Pi 3/A/B+3+ Target Board With HD44780 LCD Screen in I2C Mode -->
<!-- Copy this sample file to talkkonnect.xml and modify it to match your hardware configuration -->
<!-- O esquemático abaixo trata a correspondencia dos pinos de GPIO da Raspberry PI e os IDs nas TAGs XML de configuração -->
<!-- +=======================+=====================+=========+=========+====+ +======+=========+=========+==========+======================+ -->
<!-- | I/O Device Physical | XML Tag | XML Tag | Pin | RPI3 GPIO | Pin | XML Tag | XML Tag | I/O Device Physical | -->
<!-- | Connection | Name | Value | Name | Header | Name | Value | Name | Connection | -->
<!-- +=======================+=====================+=========+=========+====+ +======+=========+=========+==========+======================+ -->
<!-- | NC | | | 3.3v | 1 | | 2 | 5v | | | HD44780 PIN 2 (+5V)| -->
<!-- | I2C SDA HD44780 | | 2 | SDA.1 | 3 | | 4 | 5v | | | PAM8403 AMP VCC (+5V)| -->
<!-- | I2C SCL HD44780 | | 3 | SCL.1 | 5 | | 6 | 0v | | | HD44780 PIN 1 (GND)| -->
<!-- | LED Transmit (+)|<transmitledpin> | 4 | GPIO. 7 | 7 | | 8 | TxD | | | NC | -->
<!-- | LED Common Ground (-)| | | GND | 9 | | 10 | RxD | | | NC | -->
<!-- | LED Heartbeat |<heartbeatledpin> | 17 | GPIO. 0 | 11 | | 12 | GPIO. 1 | 18 | | NC | -->
<!-- | LED Voice Activity (+)|<voiceactivityledpin>| 27 | GPIO. 2 | 13 | | 14 | GND | | | NC | -->
<!-- | LED Participants (+)|<participantsledpin> | 22 | GPIO. 3 | 15 | | 16 | GPIO. 4 | 23 | | NC | -->
<!-- | NC | | | 3.3v | 17 | | 18 | GPIO. 5 | 24 | | NC | -->
<!-- | Button Panic |<panicbuttonpin> | 10 | MOSI | 19 | | 20 | GND | | | NC | -->
<!-- | Switch Comment (+)|<commentbuttonpin> | 9 | MISO | 21 | | 22 | GPIO. 6 | 25 | | NC | -->
<!-- | Button TX Toggle |<txtogglepin> | 11 | SCLK | 23 | | 24 | CE0 | 8 | | NC | -->
<!-- | Button | | | GND | 25 | | 26 | CE1 | 7 | | NC | -->
<!-- | NC | | | SDA.0 | 27 | | 28 | SCL.0 | | | NC | -->
<!-- | LED Online |<onlineledpin> | 5 | GPIO.21 | 29 | | 30 | GND | | | NC | -->
<!-- | Backlight Tr Base |<lcdbacklightpin> | 6 | GPIO.22 | 31 | | 32 | GPIO.26 | 12 | | NC | -->
<!-- | Button CH Down (+)|<downbuttonpin> | 13 | GPIO.23 | 33 | | 34 | GND | | | PAM8403 AMP (GND)| -->
<!-- | Button CH Up (+)|<upbuttonpin> | 19 | GPIO.24 | 35 | | 36 | GPIO.27 | 16 | | NC | -->
<!-- | TX Button (+)|<txbuttonpin> | 26 | GPIO.25 | 37 | | 38 | GPIO.28 | 20 | | NC | -->
<!-- | NC | | | GND | 39 | | 40 | GPIO.29 | 21 | | NC | -->
<!-- +=======================+=====================+=========+=========+====+ +======+=========+=========+==========+======================+ -->
<!-- Need to Have At Least One Account Set as Default Account, The First Account With the default="true" will be the one used! -->
<!-- This example connects to our community server, after you install talkkonnect chat with us here! -->
<accounts>
<account name="PMMG-11RPM" default="true"> <!-- Rótulo ou nome do servidor a ser conectado. -->
<serverandport>10.14.76.18:64738</serverandport> <!-- server:port endereço do servidor a ser conectado por este cliente -->
<username>exemplo</username> <!-- Nome de usuário registrado no servidor MUMBLE-->
<password>exemplo</password> <!-- MSenha do usuário regostrado no servidor MUMBLE -->
<insecure>true</insecure> <!-- Configurado como "true" para permitir conexão sem a utilização de certificado digital-->
<certificate></certificate> <!-- caminho completo (diretorio e nome de arquivo) do certificado a ser utilizado por este usuário -->
<channel>Root</channel> <!-- Canal inicial a ser acessado por este usuário -->
<ident>Identity</ident> <!-- Identificação a ser enviada em caso de apertar o botão de panico. -->
</account>
</accounts>
<!-- Global section for setting behaviour of talkkonnect, soundsfiles paths and volumes, physical connections of pinouts for buttons and leds, lcd screen connections and usb gps parameters -->
<global>
<software> <!-- Section for Setting the behaviour of talkkonnect software for logging and daemonization -->
<settings>
<outputdevice>Speaker</outputdevice> <!-- Set Output Device to Speaker, Master, Headphone or whatever your OS/Alsa Detects as the Master Sound Card Device for Output in alsamixer -->
<logfilenameandpath>/var/log/talkkonnect.log</logfilenameandpath> <!-- full path to writeable log file -->
<logging>screen</logging> <!--set logging to screen if screen only desired otherwise leave it as blank and talkkonnect will log to both screen and logfile -->
<daemonize>false</daemonize> <!-- this feature is not implemented yet -->
<cancellablestream>true</cancellablestream> <!-- Set to true if you allow others to stop your streaming upon keying up -->
<simplexwithmute>true</simplexwithmute>
<txcounter>true</txcounter>
</settings>
<!-- http autoprovisioning server and client details -->
<autoprovisioning enabled="false"> <!-- enable autoprovisioning on talkkonnect startup -->
<tkid>00000001</tkid> <!-- unique identifier for xml filename to fetch upon autoprovisioning from provisioing server -->
<url>http://provision.example.com</url> <!-- URL of server storing XML configuration file -->
<savefilepath>/home/talkkonnect/gocode/src/github.com/talkkonnect/talkkonnect</savefilepath> <!-- full path of config xml file in local host -->
<savefilename>talkkonnect.xml</savefilename> <!-- filename of config xml in local host -->
</autoprovisioning>
<!-- Repeater Beacon play Short WAV file every period (secs) to announce by playing sound file into stream to show that TK Repeater is alive and in service -->
<beacon enabled="false">
<beacontimersecs>10</beacontimersecs>
<beaconfileandpath>/opt/talkkonnect/soundfiles/voiceprompts/Beacon.wav</beaconfileandpath>
<volume>1</volume>
</beacon>
<!-- Local Text to Speech for easy usage and accessability -->
<tts enabled="false">
<volumelevel>70</volumelevel>
<participants>false</participants>
<channelup>true</channelup>
<channelupfilenameandpath>/opt/talkkonnect/soundfiles/voiceprompts/ChannelUp.wav</channelupfilenameandpath>
<channeldown>true</channeldown>
<channeldownfilenameandpath>/opt/talkkonnect/soundfiles/voiceprompts/ChannelDown.wav</channeldownfilenameandpath>
<muteunmutespeaker>true</muteunmutespeaker>
<muteunmutespeakerfilenameandpath>/opt/talkkonnect/soundfiles/voiceprompts/MuteUnMuteSpeaker.wav</muteunmutespeakerfilenameandpath>
<currentvolumelevel>true</currentvolumelevel>
<currentvolumelevelfilenameandpath>/opt/talkkonnect/soundfiles/voiceprompts/CurrentVolumeLevel.wav</currentvolumelevelfilenameandpath>
<digitalvolumeup>true</digitalvolumeup>
<digitalvolumeupfilenameandpath>/opt/talkkonnect/soundfiles/voiceprompts/DigitalVolumeUp.wav</digitalvolumeupfilenameandpath>
<digitalvolumedown>true</digitalvolumedown>
<digitalvolumedownfilenameandpath>/opt/talkkonnect/soundfiles/voiceprompts/DigitalVolumeDown.wav</digitalvolumedownfilenameandpath>
<listserverchannels>true</listserverchannels>
<listserverchannelsfilenameandpath>/opt/talkkonnect/soundfiles/voiceprompts/ListServerChannels.wav</listserverchannelsfilenameandpath>
<starttransmitting>true</starttransmitting>
<starttransmittingfilenameandpath>/opt/talkkonnect/soundfiles/voiceprompts/StartTransmitting.wav</starttransmittingfilenameandpath>
<stoptransmitting>true</stoptransmitting>
<stoptransmittingfilenameandpath>/opt/talkkonnect/soundfiles/voiceprompts/StopTransmitting.wav</stoptransmittingfilenameandpath>
<listonlineusers>true</listonlineusers>
<listonlineusersfilenameandpath>/opt/talkkonnect/soundfiles/voiceprompts/ListOnlineUsers.wav</listonlineusersfilenameandpath>
<playchimes>true</playchimes>
<playchimesfilenameandpath>/opt/talkkonnect/soundfiles/voiceprompts/PlayChimes.wav</playchimesfilenameandpath>
<requestgpsposition>true</requestgpsposition>
<requestgpspositionfilenameandpath>/opt/talkkonnect/soundfiles/voiceprompts/RequestGpsPosition.wav</requestgpspositionfilenameandpath>
<panicsimulation>true</panicsimulation>
<panicsimulationfilenameandpath>/opt/talkkonnect/soundfiles/voiceprompts/PanicSimulation.wav</panicsimulationfilenameandpath>
<printxmlconfig>true</printxmlconfig>
<printxmlconfigfilenameandpath>/opt/talkkonnect/soundfiles/voiceprompts/PrintXmlConfig.wav</printxmlconfigfilenameandpath>
<sendemail>true</sendemail>
<sendemailfilenameandpath>/opt/talkkonnect/soundfiles/voiceprompts/SendEmail.wav</sendemailfilenameandpath>
<displaymenu>true</displaymenu>
<displaymenufilenameandpath>/opt/talkkonnect/soundfiles/voiceprompts/DisplayMenu.wav</displaymenufilenameandpath>
<quittalkkonnect>true</quittalkkonnect>
<quittalkkonnectfilenameandpath>/opt/talkkonnect/soundfiles/voiceprompts/QuitTalkkonnect.wav</quittalkkonnectfilenameandpath>
<talkkonnectloaded>true</talkkonnectloaded>
<talkkonnectloadedfilenameandpath>/opt/talkkonnect/soundfiles/voiceprompts/Loaded.wav</talkkonnectloadedfilenameandpath>
<pingservers>true</pingservers>
<pingserversfilenameandpath/>
<scan>true</scan>
<scanfilenameandpath/>
</tts>
<!-- Gmail Account Settings for Sending EMAIL from Talkkonnect -->
<smtp enabled="false">
<username>robot@email.com</username>
<password>user</password>
<receiver>suvir@talkkonnect.com</receiver>
<subject>Talkkonnect Email Message with GPS</subject>
<message>Hello From Talkkonnect</message>
<gpsdatetime>true</gpsdatetime> <!-- Send the GPS Date/Time Stamp Received from Satellite -->
<gpslatlong>true</gpslatlong> <!-- Sent LAT and LOG of current position -->
<googlemapsurl>true</googlemapsurl> <!-- Send in body of email URL showing current position in google maps -->
</smtp>
<!-- Section for Setting Sound file definitions for events, alerts, rogerbeep with their respective paths and playback volume -->
<sounds>
<event enabled="true"> <!-- Event Sound File (WAV format) to be locally played on event -->
<filenameandpath>/opt/talkkonnect/soundfiles/events/event.wav</filenameandpath>
</event>
<!-- Panic Sound File (WAV format) to be played into stream -->
<alert enabled="true">
<filenameandpath>/opt/talkkonnect/soundfiles/alerts/alert.wav</filenameandpath>
<volume>1.0</volume>
</alert>
<!-- Roger Beep Sound File to be played if Rogerbeep Enabled into Stream Upon TX Button Release (Supports most sound formats via ffmpeg) -->
<rogerbeep enabled="true">
<filenameandpath>/opt/talkkonnect/soundfiles/rogerbeeps/Chirsp.wav</filenameandpath>
<volume>0.1</volume>
</rogerbeep>
<!-- File/Streaming Service for playing into transmitted stream (Supports most sound formats via ffmpeg) -->
<chimes enabled="true">
<!--<filenameandpath>/root/whatever.mp3</filenameandpath>-->
<!--filenameandpath>http://d.liveatc.net/vtbs_app</filenameandpath>-->
<!--<filenameandpath>http://d.liveatc.net/kjfk_arinc</filenameandpath>-->
<!--<filenameandpath>http://d.liveatc.net/vtbs_atis</filenameandpath>-->
<filenameandpath>http://bbcwssc.ic.llnwd.net/stream/bbcwssc_mp1_ws-eieuk</filenameandpath>
<!--<filenameandpath>https://voa28.akacast.akamaistream.net/7/325/437810/v1/ibb.akacast.akamaistream.net/voa28</filenameandpath>-->
<volume>1</volume>
</chimes>
</sounds>
<!-- Transmit Timeout (Prevent Transmitter to Be keyed Longer [stuck key] than predefined time interval in seconds) -->
<txtimeout enabled="false">
<txtimeoutsecs>60</txtimeoutsecs>
</txtimeout>
<!-- Global HTTP API Enabling and Listening Port, Commands Can Be Disabled/Enabled Individually -->
<api enabled="true"> <!-- global setting to enable/disable api remote controllability of talkkonnect -->
<apilistenport>8080</apilistenport>
<displaymenu>true</displaymenu>
<channelup>true</channelup>
<channeldown>true</channeldown>
<mute>true</mute>
<currentvolumelevel>true</currentvolumelevel>
<digitalvolumeup>true</digitalvolumeup>
<digitalvolumedown>true</digitalvolumedown>
<listserverchannels>true</listserverchannels>
<starttransmitting>true</starttransmitting>
<stoptransmitting>true</stoptransmitting>
<listonlineusers>true</listonlineusers>
<playchimes>true</playchimes>
<requestgpsposition>true</requestgpsposition>
<sendemail>true</sendemail>
<nextserver>true</nextserver>
<panicsimulation>true</panicsimulation>
<scanchannels>true</scanchannels>
<displayversion>true</displayversion>
<clearscreen>true</clearscreen>
<pingservers>true</pingservers>
<repeattxlooptest>true</repeattxlooptest>
<printxmlconfig>true</printxmlconfig>
</api>
<!-- Printout Read Varaibles from XML Config For Debugging When Pressing Ctrl-X (Very useful for XML debugging) -->
<printvariables>
<printaccount>false</printaccount>
<printlogging>false</printlogging>
<printprovisioning>false</printprovisioning>
<printbeacon>false</printbeacon>
<printtts>false</printtts>
<printsmtp>false</printsmtp>
<printsounds>false</printsounds>
<printtxtimeout>false</printtxtimeout>
<printhttpapi>true</printhttpapi>
<printtargetboard>false</printtargetboard>
<printleds>false</printleds>
<printheartbeat>false</printheartbeat>
<printbuttons>false</printbuttons>
<printcomment>false</printcomment>
<printlcd>false</printlcd>
<printoled>true</printoled>
<printgps>false</printgps>
<printpanic>false</printpanic>
</printvariables>
</software>
<!-- Section for Configuring Rasperrry Pi GPIOs used for LEDs, Buttons, LCD Screens, GPS Serial Port Settings, Panic Functio Settings -->
<hardware targetboard="rpi"> <!-- set targetboard to "rpi" for raspberry pi and other single board computers GPIO and "pc" for boards without gpios -->
<!-- Set GPIO for Panel LEDS -->
<lights>
<!-- O Pino VoiceActivity é o pino utilizado para dar PTT no rádio, ele ṕr padrão trabalha em 0V e retorne 5V quando alguem transmite no CANAL DO MUMBLE)
Verifique qual o pino do GPIO corresponde ao id informado aqui abaixo (17) para realizar ligação -->
<voiceactivityledpin>17</voiceactivityledpin> <!-- lights up on received transmission -->
<participantsledpin>27</participantsledpin> <!-- lights up when you are not alone in a channel -->
<transmitledpin>4</transmitledpin> <!-- lights up to indicate talkkonnect is transmitting -->
<onlineledpin>5</onlineledpin> <!-- lights up to indicate successful connection to server -->
</lights>
<!-- Set GPIO for Heart Beat LED to Indicate TK is alive -->
<heartbeat enabled="true">
<heartbeatledpin>22</heartbeatledpin>
<periodmsecs>2000</periodmsecs>
<ledonmsecs>1000</ledonmsecs>
<ledoffmsecs>1010</ledoffmsecs>
</heartbeat>
<!-- Set GPIO for Panel Buttons -->
<buttons>
<!-- o Pino do txbuttonpin é utilizado para sql, que RECEBE PTT DO RÁDIO quando alguem fala na REDE Rádio, nos moldes do RX de repetidora rádio a rádio -->
<txbuttonpin>26</txbuttonpin> <!-- Push Button for TX on Push and RX on Release -->
<txtogglepin>11</txtogglepin> <!-- Push Button to toggle TX mode -->
<upbuttonpin>19</upbuttonpin> <!-- Push Button to Incement Channel -->
<downbuttonpin>13</downbuttonpin> <!-- Push Button to Decrement Channel -->
<panicbuttonpin>14</panicbuttonpin> <!-- Push Button to Send out Panic Distress Call -->
<chimesbuttonpin></chimesbuttonpin> <!-- Push Button to Start Stop Chimes/Streaming -->
</buttons>
<!-- Set GPIO for Away Toggle Switch and Away Message -->
<comment>
<commentbuttonpin>9</commentbuttonpin>
<commentmessageoff>Standby</commentmessageoff>
<commentmessageon>Unavailable</commentmessageon>
</comment>
<!-- To Use HD44780 I2C Interface Make Sure You Don't Define RPI GPIO Pins 2 & 3 For Anything Else! -->
<lcd enabled="false">
<lcdinterfacetype>i2c</lcdinterfacetype> <!-- put parallel or i2c depending on your display interface type here -->
<lcdi2caddress>63</lcdi2caddress> <!-- put the decimal value of the i2c hex address your display was detected on -->
<lcdbacklighttimerenabled>true</lcdbacklighttimerenabled> <!-- this value is necessary if you are going to control backlight both parallel and i2c -->
<lcdbacklighttimeoutsecs>30</lcdbacklighttimeoutsecs> <!-- this value is necessary if you are going to control backlight both parallel and i -->
<lcdbacklightpin></lcdbacklightpin>
<lcdrspin></lcdrspin>
<lcdepin></lcdepin>
<lcdd4pin></lcdd4pin>
<lcdd5pin></lcdd5pin>
<lcdd6pin></lcdd6pin>
<lcdd7pin></lcdd7pin>
</lcd>
<!-- Set Parameters for USB GPS Module Ublox Neo-7 -->
<gps enabled="false">
<port>/dev/ttyACM0</port>
<baud>115200</baud>
<txdata/>
<even>false</even>
<odd>false</odd>
<rs485>false</rs485>
<rs485highduringsend>false</rs485highduringsend>
<rs485highaftersend>false</rs485highaftersend>
<stopbits>1</stopbits>
<databits>8</databits>
<chartimeout>100</chartimeout>
<minread>0</minread>
<rx>true</rx>
</gps>
<!-- Set Parameters for Panic Button Simulation -->
<panicfunction enabled="true">
<filenameandpath>/opt/talkkonnect/soundfiles/alerts/alert.wav</filenameandpath>
<volume>0.5</volume>
<sendident>true</sendident>
<panicmessage>Need Help! Now!</panicmessage>
<recursivesendmessage>false</recursivesendmessage>
<sendgpslocation>true</sendgpslocation>
<txlockenabled>true</txlockenabled>
<txlocktimeoutsecs>30</txlocktimeoutsecs>
</panicfunction>
<audiorecordfunction enabled="true">
<recordonstart>false</recordonstart> <!--Record on Program Start (Incoming Traffic, Ambient Audio)-->
<recordmode>traffic</recordmode> <!--Traffic (traffic), Ambient (ambient), Both (combo)-->
<recordtimeout>0</recordtimeout> <!--Record Incoming Traffic Timeout (seconds). "0" for Continous-->
<recordfromoutput>hw:Loopback,1,0</recordfromoutput> <!--Name of the Audio Output...It could be Loopback, Monitor, Source from Alsa, Pulse, Jack). Depends on Sound Config... hw:Loopback,1,0, loopout, etc-->$
<recordfrominput>plug:dsnooper</recordfrominput> <!--Device Name for Physical Audio Input (Microphone).Needs pulseaudio. Depends on Sound Config, dsnoop, plug:dsnooper, plughw:1,0-->
<recordmictimeout>0</recordmictimeout> <!--When to Stop Recording from Microphone (seconds). "0" for Continous-->
<recordsoft>sox</recordsoft> <!--External Audio Software: /usr/bin/sox, arecord, ffmpeg, other-->
<recordsavepath>/avrec/audio</recordsavepath> <!--Where To Save Audio Records-->
<recordarchivepath>/avrec/archive/audio</recordarchivepath> <!--Where to Archive Recorded Audio Files-->
<recordprofile>standard</recordprofile> <!--Recording Mode. Just Record (standard); With VOX and Trimming silence (vox-trimsilence); With Vox, Trimming Silence and File Chunks (vox-trimsilence-chunks); Wi-->
<recordfileformat>mp3</recordfileformat> <!--Recording Format (wav, mp3, ogg)-->
<recordchunksize>600</recordchunksize> <!--Size of Audio FIle Chunks in Seconds-->
</audiorecordfunction>
<serialcomm>
<!-- Função de comunicação serial para PTT e SQL experimental em desenvolvimento, ainda não implementada. -->
<seriamcommenable>false</seriamcommenable>
<serialport>/dev/ttyUSB0</serialport>
<serialpttmode>rts</serialpttmode>
<pttdefault>false</pttdefault>
<sqldefault>false</sqldefault>
<dsrdefault>false</dsrdefault>
<dsralarmenable>false</dsralarmenable>
<dtrreference>false</dtrreference>
</serialcomm>
</hardware>
</global>
</document>