de_comm config.module.json Configuration File
A file called de_comm.config.module.json exists in /home/pi/drone_engage/de_comm/ This file is written in JSON format. However, you can still add comments to the file. To those who do not know JSON just consider it a text file that you need to edit only few lines in it.
login to your Raspberry-PI board using ssh.
ssh pi@raspberry_pi_ip_address
and go to the file
cd /home/pi/drone_engage/de_comm/
ls
and open the file
nano de_comm.config.module.json
Fields Meaning
Heading Field Name |
Heading Description |
Heading Example |
---|---|---|
“module_id” |
just a name for your module. |
“C1” , “COMM_MAIN” …etc. |
“unit_type” |
ignore this field if you are using a drone module. It is used if you run the unit as SDR or GPIO module without a drone. |
“control_unit”. |
“s2s_udp_listening_ip” (**) |
listen ip for the de_comm module to communicate with other modules. |
“127.0.0.1” if all modules on the same board else “0.0.0.0”. |
“s2s_udp_listening_port” (**) |
ip port used to communicate with other modules. |
default: “60000”. |
“s2s_udp_packet_size” (**) |
define max size of a udp packets, should be same value in all modules. (**) |
default: “8192”. |
“auth_ip” (**) |
authentication server ip |
“andruav.com”, “droneengage.com”, or your local server ip. |
“auth_port” (**) |
authentication server port. It is a number no “” |
default: 19408. Do not change unless you use a local server. |
“userName” (M) |
just a name for your module. |
“C1” , “COMM_MAIN” …etc. |
“accessCode” (M) |
just a name for your module. |
“C1” , “COMM_MAIN” …etc. |
“unitID” (M) |
a readable name for your drone that will be displayed. |
“drone1”, “D1-Copter” …etc. |
“groupID” (**) |
“1” |
s |
“unitDescription” (M) |
a brief single line description of vehicle. |
“My X8 Drone” …etc. |
“logger_enabled” (*) |
enabling it will create a log file for each run in a folder called Logs |
false |
“ping_server_rate_in_ms” (**) |
ping rate to the server. |
|
“max_allowed_ping_delay_in_ms” (**) |
restart communication attempts if not responding. |
|
“led_pins_enabled” (*) |
enable power led indicator. Used with GPIO module only. |
true. |
“buzzer_pins_enabled” (*) |
enable buzzer indicator. Used with GPIO module only. |
true. |
(*) You can keep default value.
(**) You SHOULD keep the default value unless you know what you do.
(M) You need to change it based on your account.
Important
If you change unitDescription and unitID then you need to delete file de_comm.local use rm de_comm.local to delete it.
Note: userName and accessCode can be generated from Create your Drone-Engage Account Key.