Commit Graph

336 Commits

Author SHA1 Message Date
Marco Kubon
a3d2bce8a5 Update Conf.cpp
Reading Descripton from section APRS is missing
2021-07-14 14:07:16 +02:00
Jonathan Naylor
03bcdbc7cc Merge pull request #106 from f1rmb/f1rmb_network_port_datatype
Fix network ports datatype (unsigned int -> unsigned short). UDPSocket: fix old bug using m_port instead of m_port[x].
2021-04-25 09:37:53 +01: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
Jonathan Naylor
a962971b11 Merge pull request #105 from f1rmb/f1rmb_no_goodbye_to_master_on_write_errors
Do not try to send RPTCL if the connection is already broken.
2021-04-08 18:33:09 +01:00
Jonathan Naylor
4e07b1b3b6 Merge pull request #104 from f1rmb/f1rmb_fix_UDPSocket_close
Fix nasty bug in UDPSocket::close().
2021-04-08 18:17:05 +01:00
Daniel Caujolle-Bert
86f492745e Do not try to send RPTCL if the connection is already broken. 2021-04-02 06:29:57 +02:00
Daniel Caujolle-Bert
be9b402aa3 Fix nasty bug in UDPSocket::close(). 2021-03-31 13:35:37 +02:00
Jonathan Naylor
68b81086a4 Add VS2019 support. 2021-03-22 22:18:59 +00:00
Jonathan Naylor
fdbe0e0fb4 Merge pull request #103 from f1rmb/f1rmb_remote_control
Implement remote command support.
2021-03-22 22:06:31 +00:00
Daniel Caujolle-Bert
579db99ae2 Remove RemoteCommandDMRG, as RemoteCommand from MMDVMHost's PR now works with DMRGatway too. 2021-03-22 20:16:35 +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
Jonathan Naylor
aff04fd6b1 Merge pull request #98 from awasser1/patch-1
Update XLXHostsupdate.sh
2020-12-12 14:18:40 +00:00
awasser1
00268eebe6 Update XLXHostsupdate.sh
if ($1 == "XLX389")
		reflector=4017
2020-12-12 12:57:02 +10:00
Jonathan Naylor
5ca0d6e5e0 Merge pull request #97 from ct1jib/patch-1
Update DMRGateway.ini
2020-11-13 16:32:03 +00:00
Jorge (George)
e7762d673a Update DMRGateway.ini
For normal repeater operation using some rigs dynamic rewrite is not usefull, not all have Promiscous mode. Reflectors are disabled (allmost) on Brandmeister Network.
2020-11-06 10:59:48 +00:00
Jonathan Naylor
b68415fe64 Merge pull request #96 from f1rmb/fix_gps_segfault
Fix segfault when GPS is not enabled in config (NULL reference usage).
2020-11-04 10:38:55 +00: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
be6364def2 Merge branch 'master' into SimpleDMR 2020-10-07 10:38:47 +01:00
Jonathan Naylor
62c5595915 Fix buffer overflow. 2020-10-07 10:38:19 +01: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
4bf272216a Use normal logging in UDPSocket 2020-09-22 15:50:10 +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
5051efa78d Fix Windows compilation. 2020-09-20 15:05:42 +01:00
Jonathan Naylor
09a5824956 Merge branch 'master' into SimpleDMR 2020-09-18 13:06:06 +01:00
Jonathan Naylor
1ff647b701 Add the missing "to" the Dynamic TG voice. 2020-09-18 13:05:29 +01:00
Jonathan Naylor
b11a967171 Reformat the latitude and longitude values. 2020-09-16 13:28:11 +01:00
Jonathan Naylor
8101f4d8e6 Merge branch 'IPv6' into SimpleDMR 2020-09-09 11:45:23 +01:00
Jonathan Naylor
6ce9a9db01 Merge pull request #93 from jg1uaa/IPv6
IPv6 and inline comment
2020-09-09 11:36:53 +01:00
SASANO Takayoshi
d2f71c5ed6 permit inline comment
in-line comment enabled

	example:
	# conventional comment, the line starts with #
	[Section]
	Key=value # this is new style comment
	Key="quoted value # this is not comment"
	Key="quoted value" # this is prohibited (not comment)

Whether in-line comment is used or not, delete trailing space/tab after
value.
2020-09-09 19:02:24 +09:00
SASANO Takayoshi
193ff5f8a0 renew UDPSocket code 2020-09-09 18:58:21 +09:00
Jonathan Naylor
f4d9895842 More IPv6 upgrades. 2020-09-05 20:49:30 +01:00
Jonathan Naylor
7e2f4d3c6e More IPv6 updates. 2020-09-05 20:15:23 +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
0e029e30d2 Remove warning. 2020-09-03 10:37:21 +01:00
Jonathan Naylor
056b40f267 Merge branch 'master' into IPv6 2020-09-03 10:25:51 +01:00
Jonathan Naylor
0b972e8616 Merge branch 'SimpleDMR' of https://github.com/g4klx/DMRGateway into SimpleDMR 2020-08-30 14:43:00 +01:00
Jonathan Naylor
83fbcaaf0a Some cleanups. 2020-08-30 14:42:40 +01:00
Jonathan Naylor
836625677d Fix compile with GPSD. 2020-08-28 15:21:59 +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
6e89e4922f Add the install target. 2020-06-25 10:00:57 +01:00
Jonathan Naylor
d715ea6b4a Merge branch 'master' into IPv6 2020-06-17 16:29:05 +01:00