2023-02-11 21:49:07 +00:00
|
|
|
# FreeDATA - DAEMON network documentation
|
2022-01-16 11:48:44 +00:00
|
|
|
|
|
|
|
## GET DAEMON STATE
|
2023-02-11 21:49:07 +00:00
|
|
|
|
2022-01-16 11:48:44 +00:00
|
|
|
#### Description:
|
2023-02-11 21:49:07 +00:00
|
|
|
|
2022-01-16 11:48:44 +00:00
|
|
|
Get the current daemon state
|
|
|
|
|
|
|
|
#### Parameters
|
2023-02-11 21:49:07 +00:00
|
|
|
|
|
|
|
- Type: GET
|
2022-01-16 11:48:44 +00:00
|
|
|
- Command: DAEMON_STATE
|
|
|
|
- Parameter: --- (str)
|
|
|
|
|
2023-02-11 21:49:07 +00:00
|
|
|
#### Example
|
|
|
|
|
2022-01-16 11:48:44 +00:00
|
|
|
```
|
|
|
|
{"type" : "GET", "command" : "DAEMON_STATE"}
|
|
|
|
```
|
|
|
|
|
|
|
|
#### Returns
|
2023-02-11 21:49:07 +00:00
|
|
|
|
2022-01-16 11:48:44 +00:00
|
|
|
```
|
|
|
|
{
|
|
|
|
"COMMAND": "DAEMON_STATE",
|
|
|
|
"DAEMON_STATE": [],
|
|
|
|
"PYTHON_VERSION": str(python_version),
|
|
|
|
"HAMLIB_VERSION": str(hamlib_version),
|
|
|
|
"INPUT_DEVICES": [],
|
|
|
|
"OUTPUT_DEVICES": [],
|
2023-02-11 21:49:07 +00:00
|
|
|
"SERIAL_DEVICES": [],
|
|
|
|
"CPU": "",
|
|
|
|
"RAM": "",
|
2022-01-16 11:48:44 +00:00
|
|
|
"VERSION": "0.1-prototype"
|
|
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
|
## SET CALLSIGN
|
2023-02-11 21:49:07 +00:00
|
|
|
|
2022-01-16 11:48:44 +00:00
|
|
|
#### Description:
|
2023-02-11 21:49:07 +00:00
|
|
|
|
2022-01-16 11:48:44 +00:00
|
|
|
Save your callsign to the daemon
|
|
|
|
|
|
|
|
#### Parameters
|
2023-02-11 21:49:07 +00:00
|
|
|
|
|
|
|
- Type: SET
|
2022-01-16 11:48:44 +00:00
|
|
|
- Command: MYCALLSIGN
|
|
|
|
- Parameter: callsign (str)
|
|
|
|
- timestamp: unix timestamp (str)
|
|
|
|
|
2023-02-11 21:49:07 +00:00
|
|
|
#### Example
|
|
|
|
|
2022-01-16 11:48:44 +00:00
|
|
|
```
|
|
|
|
{"type" : "SET", "command": "MYCALLSIGN" , "parameter": "<callsign>", "timestamp" : "123456789"}
|
|
|
|
```
|
|
|
|
|
|
|
|
## SET GRIDSQUARE
|
2023-02-11 21:49:07 +00:00
|
|
|
|
2022-01-16 11:48:44 +00:00
|
|
|
#### Description:
|
2023-02-11 21:49:07 +00:00
|
|
|
|
2022-01-16 11:48:44 +00:00
|
|
|
Save your gridsquare/maidenhead-locator to the daemon
|
|
|
|
|
|
|
|
#### Parameters
|
2023-02-11 21:49:07 +00:00
|
|
|
|
|
|
|
- Type: SET
|
2022-01-16 11:48:44 +00:00
|
|
|
- Command: MYGRID
|
|
|
|
- Parameter: gridsquare (str)
|
|
|
|
- timestamp: unix timestamp (str)
|
|
|
|
|
2023-02-11 21:49:07 +00:00
|
|
|
#### Example
|
|
|
|
|
2022-01-16 11:48:44 +00:00
|
|
|
```
|
|
|
|
{"type" : "SET", "command": "MYGRID" , "parameter": "<gridsquare>", "timestamp" : "123456789"}
|
|
|
|
```
|
|
|
|
|
|
|
|
## TEST HAMLIB
|
2023-02-11 21:49:07 +00:00
|
|
|
|
2022-01-16 11:48:44 +00:00
|
|
|
#### Description:
|
2023-02-11 21:49:07 +00:00
|
|
|
|
2022-01-16 11:48:44 +00:00
|
|
|
Test your hamlib settings
|
|
|
|
|
|
|
|
#### Parameters
|
2023-02-11 21:49:07 +00:00
|
|
|
|
|
|
|
- Type: GET
|
2022-01-16 11:48:44 +00:00
|
|
|
- Command: TEST_HAMLIB
|
|
|
|
- Parameter: obj
|
2023-02-11 21:49:07 +00:00
|
|
|
- devicename
|
|
|
|
- deviceport
|
|
|
|
- pttprotocol
|
|
|
|
- pttport
|
|
|
|
- serialspeed
|
|
|
|
- data_bits
|
|
|
|
- stop_bits
|
|
|
|
- handshake
|
2022-01-16 11:48:44 +00:00
|
|
|
- timestamp: unix timestamp (str)
|
|
|
|
|
2023-02-11 21:49:07 +00:00
|
|
|
#### Example
|
|
|
|
|
2022-01-16 11:48:44 +00:00
|
|
|
```
|
|
|
|
{
|
|
|
|
"type": "GET",
|
|
|
|
"command" : "TEST_HAMLIB",
|
|
|
|
"parameter" : [{
|
|
|
|
"devicename" : "<devicename>",
|
|
|
|
"deviceport" : "<deviceport>",
|
|
|
|
"pttprotocol" : "<pttprotocol>",
|
|
|
|
"pttport" : "<pttport>",
|
|
|
|
"serialspeed" : "<serialspeed>",
|
|
|
|
"data_bits" : "<data_bits>",
|
|
|
|
"stop_bits" : "<stop_bits>",
|
|
|
|
"handshake" : "<handshake>"
|
|
|
|
}]
|
|
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
|
## START TNC
|
2023-02-11 21:49:07 +00:00
|
|
|
|
2022-01-16 11:48:44 +00:00
|
|
|
#### Description:
|
2023-02-11 21:49:07 +00:00
|
|
|
|
2022-01-16 11:48:44 +00:00
|
|
|
Start the tnc process
|
|
|
|
|
|
|
|
#### Parameters
|
2023-02-11 21:49:07 +00:00
|
|
|
|
|
|
|
- Type: GET
|
2022-01-16 11:48:44 +00:00
|
|
|
- Command: TEST_HAMLIB
|
|
|
|
- Parameter: obj
|
2023-02-11 21:49:07 +00:00
|
|
|
- mycall
|
|
|
|
- mygrid
|
|
|
|
- rx_audio
|
|
|
|
- tx_audio
|
|
|
|
- devicename
|
|
|
|
- deviceport
|
|
|
|
- pttprotocol
|
|
|
|
- pttport
|
|
|
|
- serialspeed
|
|
|
|
- data_bits
|
|
|
|
- stop_bits
|
|
|
|
- handshake
|
|
|
|
|
|
|
|
#### Example
|
|
|
|
|
2022-01-16 11:48:44 +00:00
|
|
|
```
|
|
|
|
{
|
|
|
|
type: 'SET',
|
|
|
|
command: 'STARTTNC',
|
|
|
|
parameter: [{
|
|
|
|
mycall: mycall,
|
|
|
|
mygrid: mygrid,
|
|
|
|
rx_audio: rx_audio,
|
|
|
|
tx_audio: tx_audio,
|
|
|
|
devicename: devicename,
|
|
|
|
deviceport: deviceport,
|
|
|
|
pttprotocol: pttprotocol,
|
|
|
|
pttport: pttport,
|
|
|
|
serialspeed: serialspeed,
|
|
|
|
data_bits: data_bits,
|
|
|
|
stop_bits: stop_bits,
|
|
|
|
handshake: handshake
|
|
|
|
|
|
|
|
}]
|
|
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
|
## STOP TNC
|
2023-02-11 21:49:07 +00:00
|
|
|
|
2022-01-16 11:48:44 +00:00
|
|
|
#### Description:
|
2023-02-11 21:49:07 +00:00
|
|
|
|
2022-01-16 11:48:44 +00:00
|
|
|
Stop the tnc process
|
|
|
|
|
|
|
|
#### Parameters
|
2023-02-11 21:49:07 +00:00
|
|
|
|
|
|
|
- Type: SET
|
2022-01-16 11:48:44 +00:00
|
|
|
- Command: STOPTNC
|
|
|
|
- Parameter: ---
|
|
|
|
|
2023-02-11 21:49:07 +00:00
|
|
|
#### Example
|
|
|
|
|
2022-01-16 11:48:44 +00:00
|
|
|
```
|
|
|
|
{"type" : "SET", "command": "STOPTNC" , "parameter": "---" }
|
|
|
|
```
|