Commit graph

89 commits

Author SHA1 Message Date
Jonathan Naylor 136deac61a Allow optional direct connections to masters again. 2020-12-06 16:12:54 +00:00
Jonathan Naylor e45f0edec4 Merge branch 'ipv6' into SimpleDMR 2020-09-06 11:57:11 +01:00
SASANO Takayoshi 457be810a3 UDPSocket renewal
Currently there is six variations of (IPv4) UDPSocket.cpp.

- FMClients, NXDNClients, P25Clients, YSFClients(YSFParrot)
	use ::fprintf() for logging

- YSFClients(YSFReflector)
	use LogError() and LogInfo() for logging
	special open(string &bindaddr) function

- YSFClients(YSFGateway), DAPNETGateway
	use LogError() and LogInfo() for logging

- P25Clients, DMRGateway
	use LogError() for logging
	no LogInfo("Opening UDP port on") message

- NXDNClients
	use LogError() for logging
	no LogInfo("Opening UDP port on") message
	add #include <ifaddrs.h>

- MMDVMHost
	use LogError() for logging
	no LogInfo("Opening UDP port on") message
	no assert(!address.empty()) at constructor

to avoid explosion, commonized them.

	switch ::fprintf()/LogError by #define HAVE_LOG_H
	always display LogInfo("Opening UDP port on") message
	delete #include <ifaddrs.h>, this is not needed
	no assert(!address.empty()) at constructor

and to support YSFReflector, add multiple socket support.
default is #define UDP_SOCKET_MAX 1 so normally this feature is disabled.

added these functions.

	CUDPSocket()	(constructor without any parameters)
	open(index, af, addr, port)
	close(index)

CUDPSocket() means CUDPSocket(address = "", port = 0)
index selects socket, address and port is defined at open.

to have compatibility for old codes, these function works as

	CUDPSocket(addr, port)	store addr and port to index #0
	CUDPSocket(port)	store addr = "" and port to index #0
	open()		open with addr and port of index #0, AF_UNSPEC
	open(af)	open with addr and port of index #0, specified af
	close()		close *all* sockets

read/write operation is for all opened sockets.
2020-09-06 12:09:37 +09:00
Jonathan Naylor 01da0ded7f Remove the unused SHA256 functions. 2020-08-27 09:00:49 +01:00
Jonathan Naylor 66a17f4849 Simplify the Host to DMR Gateway protocol. 2020-08-26 09:29:11 +01:00
Jonathan Naylor df47466aa2 Use USE_GPSD instead of USE_GPS. 2020-06-30 11:38:25 +01:00
Jonathan Naylor edce667018 Replace MobileGPS with gpsd. 2020-06-29 11:25:10 +01:00
Kimi Jin 325b30d30b Add install rules into Makefile. This will insatll MMDVMHost and RemoteCommand to /usr/local/bin/ path, so need exec with command 'sudo make install'. 2020-06-24 13:33:23 +08:00
Jonathan Naylor 7bfe2f2b2f Fix Linux compile. 2020-05-27 12:52:15 +01:00
Jonathan Naylor 45eafe3672 Start adding the Kenwood protocol as an option. 2020-05-27 11:38:46 +01:00
SASANO Takayoshi 8ff3913729 add user database storage
simply added UserDB* source code and modified Makefile.
others are untouched.
2020-03-05 06:35:14 +09:00
SASANO Takayoshi f3844ceae8 Add Surenoo UART-TFT panel (1.8inch, 128x160) support.
HobbyTronics TFT Shield has discontinued, here is a replacement TFT module
that can be controlled from UART.

Different from TFT Shield, it cannot display figures that stored in
micro SD card. So appearance is simplified like OLED.

Surenoo module sometimes ignores display commands (in busy stuation?),
this driver buffers display status and refresh at clockInt().
2019-12-01 16:33:19 +09:00
GuusvanDooren 847652f8ce Update make files. 2019-05-10 22:54:14 +02:00
SASANO Takayoshi 7cf1e602e6 Use system default compiler. At least there is no difference under Linux.
OpenBSD's gcc is old (4.2) so we have to use clang-6.0.0 compiler.
2019-03-13 20:33:02 +09:00
phl0 3cc09a70d4
Fix some bugs 2019-01-08 15:13:18 +01:00
Jonathan Naylor 1c96afc093 Update the makefiles for RemoteCommand. 2019-01-08 08:46:43 +00:00
Jonathan Naylor 42a48209d4 Add remote control interface. 2019-01-07 11:03:37 +00:00
Shawn Chain 50c2500f82 Extract the DMR talker alias decode logic from Display.cpp 2018-12-08 22:09:59 +08:00
phl0 570eaab40e
Fix Makefile (ref. 833e3a5) 2018-12-08 07:41:37 +01:00
Jonathan Naylor 833e3a5cbb Add VS2017 and other targets. 2018-12-07 14:57:00 +00:00
Shawn Chain fba77bb95e Add NullModem support 2018-12-07 17:36:11 +08:00
Jonathan Naylor e847711d17 Add MobileGPS support for DMR. 2018-11-06 12:14:57 +00:00
Jonathan Naylor 9cb7790bf9 Clean up the code for Windows and style. 2018-07-30 18:19:46 +01:00
Shawn Chain d715470b1c Extract I2C logic from SerialController to separate class 2018-07-30 21:58:35 +08:00
Jonathan Naylor 2a0364a6d4 nitial commit of POCSAG files. 2018-06-07 18:46:03 +01:00
Jonathan Naylor 22f2d7e540 Start on the NXDN Icom network audio handling. 2018-02-19 19:09:01 +00:00
Jonathan Naylor 635a774c83 Merge branch 'master' into nxdn 2018-02-08 20:50:18 +00:00
Jonathan Naylor e6ed2e17a1 Roll back the jitter buffer changes. 2018-02-08 20:25:03 +00:00
Jonathan Naylor d1ae3b0c18 Merge branch 'master' into nxdn 2018-02-05 20:05:39 +00:00
Jonathan Naylor 4323c02a0a Add a proper bypass for the jitter buffer if wanted. 2018-02-05 19:46:27 +00:00
Jonathan Naylor d8086e468c Remove FACCH2 processing and add voice body processing. 2018-01-30 20:41:43 +00:00
Jonathan Naylor ba31b6d8a7 Add decoding of the Layer 3 messages. 2018-01-30 19:51:47 +00:00
Jonathan Naylor 309e8b03c4 Add skeletons for the other channel decoders. 2018-01-24 18:37:45 +00:00
Jonathan Naylor 5291a6427c Add more NXDN support files. 2018-01-17 21:21:25 +00:00
Jonathan Naylor e0a5ae7fb3 Add the NXDN LICH processing. 2018-01-16 20:10:35 +00:00
Jonathan Naylor b2586654a2 Initial commit of NXDN scaffolding. 2018-01-11 19:35:33 +00:00
Jonathan Naylor 78c600aa94 Add the P25Trellis file to the Makefiles. 2018-01-04 22:29:09 +00:00
Jonathan Naylor 036d8b3d2d Beginnings of a generic jitter buffer for all modes. 2017-11-22 13:21:48 +00:00
Jonathan Naylor 711bcbf745 Reformat code and make small alterations. 2017-11-15 10:47:56 +00:00
ON7LDS 3b62bd1666 New Nextion screen layout with better looking fonts
New parameter for selecting ON7LDS Nextion screen layout
The active ip address of the host is showed on main screen
Nextion DMR page:
* Talker alias (if available) will be decoded and displayed (in green to know it's the TA)
* Font will get smaller if TA is to long
GPS data will be decoded and logged
2017-11-13 21:48:47 +01:00
Jonathan Naylor 90e4794a3d Revert "Devel" 2017-10-24 21:55:58 +01:00
root 3a9c011dfa Refinements of the Nextion displays
* better looking fonts
* DMR talker alias is shown (in green) if received
* font is automaticly  adapted when TA would be too long for display
* DMR ID, call or TA (depending on what was shown) goes to gray at voice end
* "MMDVM stopped" at rest screen when MMDVMHost application is ended
* active network interface and IP address on rest screen so you know how to contact it
2017-10-02 21:04:46 +02:00
phl0 2bc3606ed4
Fix case errors with GitVersion.h 2017-03-10 11:00:31 +01:00
George Smart d3377e776c Added Git Version number (*NIX only) 2017-03-09 20:55:41 +00:00
Jonathan Naylor dfa359565a Upgrade the Embedded Data regeneration. 2017-01-10 19:27:12 +00:00
Jonathan Naylor aac48cb58f Use a linear interpolator for the reported RSSI values. 2016-12-21 19:58:46 +00:00
Jonathan Naylor 015896a299 Add the host support for the UMP. 2016-11-03 19:07:44 +00:00
Tony Corbett G0WFV 627e4f1dc3 Initial LCDproc support 2016-10-28 13:22:20 +01:00
Jonathan Naylor b715b276cb Add the Mutex class. 2016-10-06 20:06:57 +01:00
Jonathan Naylor 178e104d44 Allow the modem to host a serial display. 2016-10-06 18:38:16 +01:00