Commit graph

137 commits

Author SHA1 Message Date
Jonathan Naylor 0dffbf9ddb Allow it to build on Windows again. 2024-04-22 13:57:09 +01:00
Chipster 508692a554 Add Symbol= option to [APRS] stanza in config, to allow user to define APRS symbol. Backward-compat., and will default to the standard D& symbol (diamond with "D" overlay) if Symbol= is not defined. 2023-02-12 19:27:45 -06:00
Daniel Caujolle-Bert 4f9f30b678 Fix: XLX ID as 3 characters string instead of a number.
* Since some XLX reflectors are using characters instead of numbers (like USA,JPN,etc...), it's not possible to use them as startup reflector.
 * Of course, it's still not possible to switch to that kind of reflector using the xlxBase + 4000 trick.
Update Copyright year.
2022-02-17 09:36:23 +00:00
Daniel Caujolle-Bert 6c36e29f88 Add new remote command:
- hosts: display connected hosts, or NONE if disconnected (surrounded with double quotes).
2022-01-21 08:13:24 +00:00
narspt 6822a1346a
avoid invalid lat/lon/height values increasing RPTC pkt len 2022-01-05 21:38:51 +00:00
Daniel Caujolle-Bert d9a09a9364
Fix network ports datatype (unsigned int -> unsigned short). UDPSocket: fix old bug using m_port instead of m_port[x]. 2021-04-25 07:44:55 +02:00
Jonathan Naylor daa54d3d32 Don't use default arguments for closing the network connection. 2021-04-09 10:16:52 +01:00
Daniel Caujolle-Bert 41a49d5785 Implement remote command support.
- Defaut port is 7643 (totally arbitrary)

- Using RemoteCommandDMRG, each network can be enabled or disabled (net1 .. net5, xlx):
    ~ $ RemoteCommandDMRG 7643 disable net2
    M: 2021-03-20 11:48:40.494 Command sent: "disable net2" to port: 7643
    M: 2021-03-20 11:48:40.545 OK

- Using RemoteCommandDMRG, a connection status can be retrieved:
    ~ $ RemoteCommandDMRG 7643 status
    M: 2021-03-20 11:49:13.513 Command sent: "status" to port: 7643
    M: 2021-03-20 11:49:13.563 xlx:conn net1:conn net2:n/a net3:n/a net4:conn net5:n/a

A returned string is expected from the socket connection, this is why I did not reuse the MMDVMHost's RemoteCommand (unless MMDVMHost RemoteControl is modified as well).

The exit value can be used in scripting (also 1 if we didn't get any reply).
2021-03-20 13:03:19 +01:00
Daniel Caujolle-Bert 4ebc7f1af7 Fix segfault when GPS is not enabled in config (NULL reference usage). 2020-11-03 23:39:27 +01:00
Jonathan Naylor 023b5d48e0 Add optional log file rotation and UDP error handling. 2020-10-31 22:45:54 +00:00
Jonathan Naylor cf6f9b9ab7 Merge branch 'master' into SimpleDMR 2020-10-05 13:00:27 +01:00
Jonathan Naylor c63d1503bb Updates for NetBSD. 2020-10-05 12:59:57 +01:00
Jonathan Naylor 5656547ec3 Clean up tabbing. 2020-09-21 10:14:15 +01:00
Jonathan Naylor 7934cc78bb Fix Windows. 2020-09-20 21:24:13 +01:00
Jonathan Naylor b11a967171 Reformat the latitude and longitude values. 2020-09-16 13:28:11 +01:00
Jonathan Naylor 5e3e9f10b9 Merge branch 'IPv6' into SimpleDMR 2020-09-03 11:16:10 +01:00
Jonathan Naylor 94289e062d Update to support changes since IPv6 was added. 2020-09-03 10:52:22 +01:00
Jonathan Naylor 83fbcaaf0a Some cleanups. 2020-08-30 14:42:40 +01:00
Jonathan Naylor f93c48a922 Add optional reporting of the home location to APRS-IS directly. 2020-08-28 15:15:25 +01:00
Jonathan Naylor 8ef67976ab Ensure the correct width of the configuration packet. 2020-08-28 10:58:33 +01:00
Jonathan Naylor 1606c4e644 Move the location to the DMR Gateway from the Host. 2020-08-27 10:37:26 +01:00
Jonathan Naylor f6643eb697 Fix compile with GPSD enabled. 2020-08-26 14:25:37 +01:00
Jonathan Naylor b344248e0a Simplify the Host to DMR Gateway protocol. 2020-08-26 14:20:04 +01:00
Jonathan Naylor 00342c763a Abort the voice prompt if network traffic appears on the same slot. 2020-04-18 22:33:24 +01:00
Jonathan Naylor 42afea8527 Add extern dynamic TG control via UDP. 2020-04-13 14:15:21 +01:00
Jonathan Naylor 7a8548cc41 Merge branch 'master' into DynTG 2020-04-08 17:29:33 +01:00
Jonathan Naylor dafac8c025 Fix the order of processing the dynamic rewrite rules. 2020-04-08 17:28:43 +01:00
John doe a3884c2150 Using in DMRGateway.cpp 2020-04-08 16:48:43 +09:00
Jonathan Naylor 6b470c92a7 Allow for excluded TGs. 2020-04-07 23:03:27 +01:00
Jonathan Naylor 8f39ca9ece Fix reported bugs in the dynamic rewrite code. 2020-04-05 13:43:57 +01:00
Jonathan Naylor 0fef073c13 Add dynamic TG voice prompts and status TG. 2020-04-03 16:54:35 +01:00
Jonathan Naylor 9771b1ff0c Prepare for having two voice subsystems. 2020-04-03 15:25:33 +01:00
Jonathan Naylor 73270ad7a5 Allow for more rewrite processing options. 2020-04-03 15:10:41 +01:00
Jonathan Naylor 8fc9872aaa Finish off the translation logic. 2020-04-01 22:56:48 +01:00
Jonathan Naylor 10e890bdd4 Begin the dynamic TG support. 2020-04-01 22:22:12 +01:00
Jonathan Naylor 82f1053d9d Fix compile issue. 2019-07-17 14:36:00 +01:00
Jonathan Naylor 996eacb1e1 Only direct talker alias and embedded GPS to the current active network. 2019-07-17 09:46:41 +01:00
Jonathan Naylor 82d0b06db1 Add a fifth DMR network. This has not been tested nor even compiled. 2019-07-17 08:21:52 +01:00
Jan Hegr 8909395d10 Added the IdRewrite=RFId,NetworkId rule to the network configuration section for bidirectional ID translation 2019-05-19 08:56:39 +02:00
DO2BN abdd79b6b7 Added 4. DMR Network 2019-03-16 11:44:55 +01:00
DO2BN be4ef3c5e5 Added 4. DMR Network 2019-03-16 11:08:32 +01:00
Colby Ross d1e3ee7865
Fix DMR Network 3 LogInfo
Correct dmr2name to dmr3name.
2018-12-24 10:17:28 -05:00
Jonathan Naylor 0c31af146c Pass through the MMDVM's home position to all connected networks. 2018-10-30 07:42:04 +00:00
Simon b289f816f6 XLX: Fix error in default module override logic 2018-10-21 15:46:24 +01:00
Simon 45b910d686 XLX: Fix error with Module init 2018-10-21 15:33:44 +01:00
Simon 8ed2565a25 XLX: Add option to overide default module in config. 2018-10-21 15:26:54 +01:00
Simon 3ce8076e89 Add config option to enable/disable user XLX link control 2018-10-21 10:18:55 +01:00
Jonathan Naylor 6e65ce5e18 Close the fds as the log initialisation. 2018-07-26 18:47:55 +01:00
Jonathan Naylor 3738d428cd Move the log initialisation. 2018-06-18 18:27:35 +01:00
Jonathan Naylor afe593d7b5 Add identification of the DMR Gateway to connected networks. 2018-06-04 21:56:10 +01:00