Commit graph

293 commits

Author SHA1 Message Date
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
Jonathan Naylor 19ead93af9 Fix some search & replace mistakes. 2025-03-14 16:31:29 +00: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 ebea3eddb2 Revert "Amalgamate the two Trellis implementations and small cleanups."
This reverts commit ec9f7d7496.
2024-10-04 17:14:36 +01:00
Jonathan Naylor ec9f7d7496 Amalgamate the two Trellis implementations and small cleanups. 2024-10-02 14:42:25 +01:00
Jonathan Naylor 05db572738 Fix formatting. 2023-09-27 14:29:34 +01:00
Alex Ernst a79793ee8a Fix formatting 2023-09-18 13:28:42 +02:00
Alex Ernst 3a670f84c9 Add debugging messages for DMR data packets 2023-09-17 22:36:43 +02:00
Jonathan Naylor d709c2bc60 Clean up the DMR Talker Alias code and logging. 2023-06-06 20:33:25 +01:00
rick51231 ecf21f9573 Emergency call CSBK support. 2022-12-15 14:11:40 +03:00
Jonathan Naylor fe195c4e40 Rewrite the OVCM handling. 2022-05-23 22:35:14 +01:00
iddq 82024fae5f Add Radio Check CSBK 2022-03-04 10:53:54 +01:00
Jonathan Naylor e2e5ddf4c8 Add M17 Codec 1600 mode on RX and remove the remains of M17 packet mode
support.
2021-08-10 19:54:14 +01:00
Jonathan Naylor bfacdee8e2 Merge branch 'master' into M17_AX25_FM 2021-08-09 22:14:15 +01:00
Stefan Saraev 61e5623ad3 DMRSlot: reset m_rfState after rejecting rf activity 2021-08-08 00:29:34 +03:00
Jonathan Naylor 8dc54ed21f Ignore M17 packet data, for now. 2021-03-29 19:36:55 +01:00
Jonathan Naylor 5d8d1a3fb9 Add mode 4 (force off) for the DMR OVCM flag. 2021-03-07 17:42:55 +00:00
Randy Hall c6f5a21a27
Proposed fix for #683
Adding 2 byte offset to the data pointer passed to CDMRTA::add() in the "RF" section of CDMRSlot.cpp::writeModem(). Fixes the bug that incorrectly decodes talker alias coming in over RF.
2021-03-07 07:27:34 -08:00
Jonathan Naylor 135fd04e0d Revert "Merge branch 'M17_AX25_FM'"
This reverts commit e1427e3e37, reversing
changes made to bcdba292eb.
2020-12-15 15:52:27 +00:00
Jonathan Naylor ef6056506c Merge branch 'master' into M17_AX25_FM 2020-12-06 16:46:10 +00:00
Jonathan Naylor 136deac61a Allow optional direct connections to masters again. 2020-12-06 16:12:54 +00:00
Jonathan Naylor aa8b78a311 Refactor the Modem class hierarchy. 2020-06-30 12:35:03 +01:00
SASANO Takayoshi 4ff77c50d6 use UserDBentry from findWithName() to writeDMR(), add writeDMREx() 2020-03-08 08:06:27 +09:00
Jonathan Naylor ab13f355d5 Add decode for Call Alert and Call Alert Ack CSBKs. 2020-03-02 12:10:44 +00:00
SASANO Takayoshi 45013ac179 Lookup name on DMR network late entry (2)
There is two cases that shows "received network late entry"

1. dataType == DT_VOICE_PI_HEADER && m_netState != RS_NET_AUDIO
2. dataType == DT_VOICE_SYNC && m_netState == RS_NET_IDLE

case 1 is already treated. this fix is for case 2.
2020-02-17 19:57:47 +09:00
Jonathan Naylor 4450caeddc Update the copyright date. 2020-02-16 15:56:31 +00:00
Jonathan Naylor fa08abfded Lookup name on DMR network late entry. 2020-02-16 15:52:42 +00:00
Jonathan Naylor ed7f593e07 Remove the duplicate end of DMR transmission network message. 2019-11-20 08:13:26 +00:00
Shawn Chain 2ecd9b3440 fix OVCM enum logical check 2019-11-19 11:05:45 +08:00
Shawn Chain c2584066d8 Correct the m_ovcm flag check in DMRSlot 2019-11-18 20:47:56 +08:00
Shawn Chain 88d91e420a use enum DMR_OVCM_TYPES 2019-11-17 10:57:58 +08:00
Shawn Chain 2f9595949a Change ovcm config to int value 2019-11-16 23:06:26 +08:00
Patrick Maier 6caffb2bc0 Separate the config if OVCM should be supported in sending and receiving direction 2019-11-09 17:22:39 +01:00
Jonathan Naylor e74df4875b
Merge pull request #532 from maierp/maierp_ovcm_in_csbk
Include ovcm also in csbk
2019-11-06 15:28:34 +00:00
Jonathan Naylor bc5a1d24c4 Make the default for OVCM to be off. 2019-11-05 15:49:00 +00:00
maierp 1ed79d01c0
Merge pull request #2 from maierp/master
Merge changes from master to sidebranch
2019-10-18 19:58:16 +02:00
Patrick Maier 1993262c52 Also set the OVCM bit in the two supported CSBKs: "Unit to Unit Voice Service Request CSBK" and "Unit to Unit Voice Service Answer Response CSBK" 2019-10-18 19:40:35 +02:00
Jonathan Naylor 6bababeb96 Add OVCM support. 2019-10-11 18:24:25 +01:00
Jonathan Naylor 16a8bfd757 Remove use of NULL m_rfLC. 2019-10-10 13:06:28 +01:00
Jonathan Naylor 4f3ca97e69 Remove use of NULL m_netLC. 2019-10-10 11:53:08 +01:00
Jonathan Naylor 87e60a81f8 Add end of transmission data to DMR. 2019-09-29 17:30:25 +01:00
Jonathan Naylor 0f6945ef4e Stop any response from any mode when not enabled. 2019-01-20 17:09:40 +00:00
Jonathan Naylor ae9e6ea6ab Reset the mode's state machines when going to the disabled state. 2019-01-19 17:15:24 +00:00
Jonathan Naylor 335b56f4bd Add busy lockout to remote mode handling. 2019-01-10 09:05:15 +00:00
Shawn Chain 4ee8dc9dee Fixed incorrect DMRTA header packet length from RF side 2018-12-09 23:49:15 +08:00
Shawn Chain 334307cd4a Bugfix of the DMRTA decoding for blocks comes in with random order 2018-12-09 17:24:11 +08:00
Shawn Chain 50c2500f82 Extract the DMR talker alias decode logic from Display.cpp 2018-12-08 22:09:59 +08:00
Jonathan Naylor 66a37d7d25 Add the beginnings of mobile hotspot location. 2018-10-30 07:53:11 +00:00