Commit graph

67 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 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 5e4100e3b3 Remove the debugging statements. 2023-12-06 17:30:03 +00:00
Jonathan Naylor b18aeb5f9d Initialise the M17 LSF correctly when not initialised.
Use a private LSF for testing the encryption.
2023-12-06 15:36:50 +00:00
Jonathan Naylor 333757829f Add even more debugging. 2023-12-06 14:06:48 +00:00
Jonathan Naylor d3f8c17bc8 Add M17 LSF Text data interpretation. 2023-06-16 12:14:35 +01:00
Jonathan Naylor 9085112b4d Add extra logging when starting and stopping the MMDVM. 2023-06-07 11:28:41 +01:00
Jonathan Naylor 45e45da6e6 Substitute the source with the repeaters callsign and add the extended callsign information on RF. 2021-09-21 20:56:11 +01:00
Jonathan Naylor cdfe3620d5 Merge branch 'M17_AX25_FM' into extended 2021-09-19 17:26:11 +01:00
Jonathan Naylor 50a3afd66f Change to the new method of M17 EOT transmission. 2021-09-19 15:15:37 +01:00
Jonathan Naylor 14e682dec4 Merge branch 'M17_AX25_FM' into extended 2021-09-05 18:01:28 +01:00
Jonathan Naylor d1dc6bb7a0 Simplify the LSF processing to allow changed META field data changed
through.
2021-08-26 21:49:46 +01:00
Jonathan Naylor b779ea5ae6 Convert to the new EOF marker. 2021-08-25 19:27:53 +01:00
Jonathan Naylor ef6ce0ef88 Include the fragment LICH in the network data. 2021-08-22 21:56:46 +01:00
Jonathan Naylor e966d355cd Change the internal network protocol. 2021-08-22 20:38:26 +01:00
Jonathan Naylor 8c31fe6f34 Fix a bug introduced in the new EOF processing. 2021-08-20 09:23:39 +01:00
Jonathan Naylor fbb835812d Clean up the new EOF handling. 2021-08-20 07:08:18 +01:00
Jonathan Naylor 55f4c6ce1a Fix small queueing bug. 2021-08-19 21:39:29 +01:00
Jonathan Naylor 293962a7f7 Filter the EOF marker out of the FN for retransmission. 2021-08-19 20:50:31 +01:00
Jonathan Naylor e1b164de70 Add the new EOF frame. 2021-08-19 20:44:15 +01:00
Jonathan Naylor 8e34cab68b Add validation for M17 end bit. 2021-08-18 19:36:00 +01:00
Jonathan Naylor 200986b698 Fix problem with incoming network audio being ignored. 2021-08-17 21:30:05 +01:00
Jonathan Naylor 2a63f83a9b Remove the unused packetTimer from the M17 controller. 2021-08-17 10:54:59 +01:00
Jonathan Naylor 14bf5007d5 Fix the M17 convolution. 2021-08-11 18:42:15 +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 dd09c666bb Display the M17 FN numbers correctly. 2021-07-29 21:32:07 +01:00
Jonathan Naylor 42c53d3c39 Add LSF BER debug message. 2021-06-30 07:46:19 +01:00
Jonathan Naylor 926755171f Fix the M17 FN handling. 2021-06-30 07:42:48 +01:00
Jonathan Naylor dae05ad58a Use the BER from the Viterbi decoder in M17 mode to determine if the
audio is usable or not.
2021-06-28 19:16:16 +01:00
Jonathan Naylor 8547a210bd Get the convolution BER directly from the decoder. 2021-06-27 17:29:55 +01:00
Jonathan Naylor 50337639b2 Accept rejected or invalid transmissions as being 'in' despite not being
relayed. Also give extra headroom on the convolution decoders.
2021-06-25 16:21:48 +01:00
Jonathan Naylor bf3bf07747 Fix the return status for M17 RF data. 2021-05-25 06:56:01 +01:00
Jonathan Naylor 3a73a25c1e Update M17 to the latest secification, removal of the CRC from the
stream data.
2021-04-11 17:31:05 +01:00
Jonathan Naylor ffb4bdb042 Refactor the Golay 24,12,8 code and its uses. 2021-04-07 19:56:28 +01:00
Jonathan Naylor 8dc54ed21f Ignore M17 packet data, for now. 2021-03-29 19:36:55 +01:00
Jonathan Naylor 389bd3b928 Remove the CRC4 processing. 2021-03-28 15:29:26 +01:00
Jonathan Naylor 6ac672e106 Finally process the Golay(24,12,8) parity bit. 2021-03-27 20:00:53 +00:00
Jonathan Naylor 4422444179 Disable the LICH CRC and clean up the payload checksum handling. 2021-03-27 14:51:53 +00:00
Jonathan Naylor 8efd77132f Rename the CRC4 functions correctly. 2021-03-26 22:45:33 +00:00
Jonathan Naylor 0a94b0deb6 Add the LICH CRC. 2021-03-26 22:21:20 +00:00
Jonathan Naylor 242cf50240 Remove the CAN processing from the LICH. 2021-03-26 20:34:08 +00:00
Jonathan Naylor dbf771d80c Fixed M17 to be compatible with the latest protocol speciication. 2021-03-25 21:07:44 +00:00
Jonathan Naylor 9d85b6451c Update the M17 sync words. 2020-12-26 12:12:52 +00:00
Jonathan Naylor d77e2a00ce Restore the branch 2020-12-15 16:21:07 +00: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 ef9fedcc01 Fix the logging messages for late entry. 2020-11-26 14:25:45 +00:00
Jonathan Naylor ec80e9553a Fully implement the latest M17 specification. 2020-11-26 13:47:47 +00:00
Jonathan Naylor 67b93d6310 Partial work supporting the latest M17 specification. 2020-11-26 11:30:16 +00:00
Jonathan Naylor bb5e20538d Change the M17 logging slightly. 2020-11-11 18:35:52 +00:00