Commit graph

438 commits

Author SHA1 Message Date
Jonathan Naylor 9720c7a40d Make space for dPMR. 2025-07-09 13:38:55 +01:00
Jonathan Naylor 2b69832d16
Merge pull request #842 from f1rmb/f1rmb_fix_windows_build
Fix Windows build (few warnings and a wrong file descriptor comparison).
2025-06-02 16:09:49 +01:00
Daniel Caujolle-Bert 14ee06fed0 Fix Windows build (few warnings and a wrong file descriptor comparison). 2025-06-02 17:06:12 +02:00
Daniel Caujolle-Bert 065dd7aab1 Merge enableMode()/disableMode() to processEnableModeCommand(). 2025-05-30 09:22:48 +02:00
Daniel Caujolle-Bert 7d2da549c2 CDMRSlot::clock(),
CDStarControl::clock(),
CM17Control::clock(),
CNXDNControl::clock(),
CP25Control::clock(),
CYSFControl::clock():
  - Leave ASAP when it's disabled.

CDMRSlot::enable(),
CDStarControl::enable(),
CM17Control::enable(),
CNXDNControl::enable(),
CP25Control::enable(),
CYSFControl::enable():
  - Log a message when Controller get disabled while running, "<MODE>, RF user has timed out" or "<MODE>, network user has timed out", depending of the RF/Net state.

CMMDVMHost::run():
  - After getting the modem data, don't handle it (read/write<Controler>, etc) if the given mode is not enabled.

MMDVMHost:
  - Rename CMMDVMHost::processEnableCommand() to CMMDVMHost::enableModemMode().
  - Add CMMDVMHost::enableMode() and CMMDVMHost::disableMode(), called now from CMMDVMHost::remoteControl(), which clarify the code.
  - CMMDVMHost::remoteControl():
    * Fix indentation,
    * Simplify ENABLE_x/DISABLE_x cases code.
  - CMMDVMHost::setMode():
    * Enable pocsag network only if m_pocsagEnabled is true,
    * Enable ax25 network only if m_ax25Enabled is true (not m_fmEnabled).
2025-05-29 18:29:42 +02:00
Daniel Caujolle-Bert 7462c143af Set mode to IDLE when disabling a mode currently in use. 2025-04-28 07:08:12 +02:00
Daniel Caujolle-Bert 8e010d8749 Keep disabled mode (using RemoteCommand) disabled, until it gets explicilty reactivated. 2025-03-30 06:15:25 +02:00
Jonathan Naylor cf15f42a0f Convert to C++ nullptr from NULL. 2025-03-14 12:13:11 +00:00
Jonathan Naylor 43f8b2f6f0 Change all of the enums to the modern format. 2025-03-13 18:16:33 +00:00
Jonathan Naylor 78fc96b0a5 Add new processing for D-Star Fast Data which doesn't clobber normal
D-Star audio.
2025-03-12 12:55:25 +00:00
Jonathan Naylor 001dfd6db6 Small cleanups. 2024-08-31 20:12:10 +01:00
Jonathan Naylor aa03a96925 Fix the restart processing. 2024-08-28 16:32:20 +01:00
Jonathan Naylor 738c82d7b9 Fix the Winsock compilation errors. 2024-04-22 19:12:33 +01:00
Jonathan Naylor 08ccf148ad Add more debugging logging. 2023-12-05 18:25:08 +00:00
Jonathan Naylor 1b277741de Add more logging for mode changing. 2023-12-04 13:04:12 +00:00
Jonathan Naylor 3eb29a0bf5 Add the squelch file as needed by SVXLink. 2023-10-25 12:39:09 +01:00
Jonathan Naylor e91f640e7e Add a resampler to the FM network RAW data mode. 2023-10-18 11:34:38 +01:00
Jonathan Naylor 9085112b4d Add extra logging when starting and stopping the MMDVM. 2023-06-07 11:28:41 +01:00
Jonathan Naylor e10454c2d5 Fix the signal handling. 2023-06-06 19:41:17 +01:00
Chipster adb67ff698 Suppress DMR Roaming Beacon debug messages in simplex mode; refinement to PR #753 merge. 2022-12-05 08:38:57 -06:00
Chipster 14fcbd9c1a Enable Debug Log Messages when DMR Roaming Beacons are being sent. 2022-11-30 08:51:06 -06:00
Max Lapan 55ba1233a8 Page alert commands 2022-11-26 11:04:01 +01:00
Max Lapan 8f5ff4ca05 Add command page_bcd to send bcd message with pocsag 2022-11-25 20:58:26 +01:00
Max Lapan f3fb072238 Sending test bcd message after every page command - need this for testing 2022-11-25 17:52:45 +01:00
Daniel Caujolle-Bert a30ae3af4d Add new remote command:
- hosts: display connected hosts, or NONE if disconnected (surrounded with double quotes).
Increase buffer size, for reply string, from 100 to 1024.
2022-01-21 10:51:41 +00:00
Daniel Caujolle-Bert 20b1367848 Add M17 network status to Remote command "status" output.
YSFNetwork: fix ::IsConnected(), it should not take m_enabled in account.
2022-01-07 11:47:19 +00:00
Jonathan Naylor cb89b34a39 Rename SimpleMode to LinkMode. 2021-09-06 21:47:23 +01:00
Jonathan Naylor ded46ebb60 Add a new simple FM mode for gatewaying. 2021-09-05 19:07:50 +01:00
Jonathan Naylor 4ec4b3dafe Update the copyright header. 2021-08-17 12:15:54 +01:00
Jonathan Naylor e344fc5b56 Alter the mode timer reset behaviour when already in that mode. 2021-06-18 08:56:29 +01:00
Jonathan Naylor 5727acceb8 Restore the FM lockout parameter. 2021-05-25 20:33:28 +01:00
Jonathan Naylor 0448a315e9 Merge branch 'M17_AX25_FM' of https://github.com/g4klx/MMDVMHost into M17_AX25_FM 2021-05-25 19:05:01 +01:00
Jonathan Naylor 347fc4bedb Add an FM lockout to add to the other modes. 2021-05-25 19:04:09 +01:00
Jonathan Naylor 8d6da34b79 Fix M17 and FM mode switching. 2021-05-18 20:24:26 +01:00
Jonathan Naylor 8363a72f6a Merge branch 'master' into M17_AX25_FM 2021-05-18 20:05:40 +01:00
Geoffrey f5e3427cd8 Add SMeter to DStar ack and error 2021-05-15 06:51:12 +02:00
Jonathan Naylor c0e3fd0a5b Remove unneeded warning message. 2021-05-08 19:57:28 +01:00
Jonathan Naylor e6fc679502 Add modem capabilities to stop misconfiguration. 2021-05-08 19:34:44 +01:00
Jonathan Naylor 7008c624d9 Regularise the local address handling across all of the protocol. 2021-04-25 11:10:35 +01:00
Jonathan Naylor 8b45e04ea0 Merge branch 'master' into M17_AX25_FM 2021-04-25 10:26:57 +01:00
Daniel Caujolle-Bert ec0bc51899
Fix network ports datatype (unsigned int -> unsigned short). UDPSocket: fix old bug using m_port instead of m_port[x]. 2021-04-25 07:47:06 +02:00
Jonathan Naylor 609f1e356a Add the USDP metadata header to the FM network output. 2021-04-24 08:43:48 +01:00
Jonathan Naylor cfe9e0fba4 Remove the FM networking sample rate conversion. 2021-04-11 19:15:23 +01:00
Jonathan Naylor e6d5ef9055 Merge branch 'master' into M17_AX25_FM 2021-04-08 18:44:51 +01:00
Jonathan Naylor dad34bea98 Don't send RPTCL on DMR under error conditions. 2021-04-08 18:36:27 +01:00
Jonathan Naylor dbf771d80c Fixed M17 to be compatible with the latest protocol speciication. 2021-03-25 21:07:44 +00:00
Jonathan Naylor 69a4fdd23c Merge branch 'master' into M17_AX25_FM 2021-03-22 22:14:54 +00:00
Daniel Caujolle-Bert 27b7d3fc41
Add RemoteCommand 'status' command.
As DMRGateway, it reports connection status.

Command sent: "status" to port: 7642
dstar:n/a dmr:conn ysf:n/a p25:n/a nxdn:n/a fm:n/a

RemoveCommand has been slighlty modified, as using Log on a read-only filesystem simply forbids the strings to be displayed.
Another solution would be to set LogInitialisse's filePath to "/tmp/" for *nix systems.
2021-03-22 20:32:43 +01:00
Jonathan Naylor 75e8e95aad Add FM network audio gain and optional pre- and de-emphasis. 2021-03-14 14:59:34 +00:00
Jonathan Naylor fb0d1ef5e2 Allow the USRP audio format to be used natively by the FM networking. 2021-03-14 12:16:39 +00:00