Commit graph

77 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 5d2f528ec7 Fix some naming issues around NULL and a D-Star bug with frame counts. 2025-04-19 16:36:00 +01: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 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 06a3da0f2e Hopefully fix the unreceivable P25 transmissions. 2024-02-07 19:38:54 +00:00
Jonathan Naylor 92982351d2 Remove P25 LDU validation. 2024-01-26 16:12:58 +00:00
Jonathan Naylor 0571d90b5b Format cleanups 2024-01-25 19:23:32 +00:00
Jonathan Naylor 3bde9442f4 Merge branch 'master' into P25Changes 2024-01-25 19:08:05 +00:00
Jonathan Naylor 9471e322ff Add more P25 status symbol values. 2024-01-25 18:53:43 +00:00
Jonathan Naylor 771aba2557 Update the P25 symbols bits to be the correct values. 2024-01-20 22:03:24 +00: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 8dc54ed21f Ignore M17 packet data, for now. 2021-03-29 19:36:55 +01:00
Jonathan Naylor 54ae56942f Add P25 end of transmission data. 2019-09-29 16:34:56 +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
Bryan Biedenkapp 0da6167c61 readd missing constants and missing FEC code from previous revert; 2019-01-09 03:02:51 +00:00
Bryan Biedenkapp 1c1462e71e correct file formatting to be tabs and not spaces; 2018-11-12 13:25:24 -05:00
Bryan Biedenkapp a06dbf9d55 implement logic to reuse the last properly decoded LC's instead of dropping the entire LDU; add undecodable LC counter; 2018-11-12 13:22:18 -05:00
Jonathan Naylor 34eb69dede Revert "Merge pull request #462 from gatekeep/master"
This reverts commit a14a316572, reversing
changes made to f5a70aa6ce.
2018-11-12 09:48:00 +00:00
Bryan Biedenkapp 85bc8357aa implement proper LDU2 encode/decode; implement proper HDU (Header) encode/decode 2018-10-03 23:06:56 -04:00
Andy CA6JAU b66a92bb9c Fix other crashes 2018-08-20 00:47:45 -03:00
Bryan Biedenkapp 62dd3c420e Once again -- fix my poor whitespace formatting. 2018-05-14 10:49:03 -04:00
Bryan Biedenkapp e903c1edea Fix whitespace and tabbing. Fix missing closing brace. 2018-05-14 10:45:49 -04:00
Bryan Biedenkapp 471e084723 Fix commit with bad line endings. 2018-05-14 10:25:19 -04:00
Bryan Biedenkapp 0395955ab3 Add support to decode and encode P25 TSDU data; Add support to process P25 TSDU data. 2018-05-14 09:36:57 -04:00
Jonathan Naylor 980efe3023 Remove the RSSI debug message if nothing interesting to show. 2018-03-06 20:12:29 +00:00
Jonathan Naylor 2881e159c3 Remove the display for P25 data, it looks silly. Upgrade the log message
instead.
2018-01-25 07:08:28 +00:00
Jonathan Naylor 2ffd831c98 Fix the P25 PDU transmit length. 2018-01-17 07:59:40 +00:00
Jonathan Naylor 082c2e1b1f Fix P25 data reception, regeneration, and transmission. 2018-01-16 23:26:05 +00:00
Jonathan Naylor 05e54c44a9 Add simplistic RF repeating of P25 data, no FEC done apart from the sync
and NID.
2018-01-04 22:06:25 +00:00
Jonathan Naylor 4665d590f8 Progress on P25 data. 2018-01-04 21:17:34 +00:00
Jonathan Naylor 8437c4388f Dump all P25 PDU data. 2018-01-03 21:47:05 +00:00
Jonathan Naylor 194b008189 Correct the status bits when using the MMDVM as a P25 remote gateway. 2018-01-03 20:10:13 +00:00
Jonathan Naylor 97e51ca60d Add beginnings of P25 data handling. 2018-01-03 20:03:10 +00:00
Jonathan Naylor 85e90610d7 Add remote gateway modes to D-Star and P25. 2017-11-09 09:21:22 +00:00
Jonathan Naylor afe38bcb9d Add stricter P25 id checking. 2017-08-19 12:37:32 +01:00
Andy Taylor 2f48d65907 Account for 8/9 digit DMR IDs
Many hotspot users have 8/9 digit DMR IDs configured, the 7 Digit ID in the radio will then fail the match.
This is a possibly ugly but functional patch that will account for those cases (similar to the recent work on the DMR Access for the same reasons).
2017-08-17 14:17:56 +01:00
Jonathan Naylor f79527174c Log P25 rejections better. 2017-08-15 15:43:58 +01:00
Jonathan Naylor cf0c70087d Add SelfOnly to P25 based on the DMR Id. 2017-08-15 10:30:05 +01:00
Jonathan Naylor aeeb1eaa4a Fix compiler warning. 2017-05-21 11:52:06 +01:00
Jonathan Naylor c0571edb0b Modify the P25 UID check slightly. 2017-03-29 20:46:27 +01:00
Ryan Butler aae96a1caf This adds the ability to override the UID checking in P25 code to force 7 digit IDs.
Jonathan added this code due to a lack of CRC on P25 checking but some parties desire the ability to have any id.

It's understood that on networked connections, the need to use a 7 digit unique ID like the DMR ID is necessary.

This change is affected by adding a new parameter to the [P25 Network] section called OverrideUIDCheck and it defaults to 0.

The logic is, if the network is enabled, or if the network is disabled and the override is disabled, the check is made, otherwise it is not.

This has been field tested for all 4 configuration cases and found to work as described above.
2017-03-29 10:18:54 -05:00
Jonathan Naylor f0387d25dd Add BER display to the Nextion and reduce Talker Id logging. 2017-02-12 18:37:00 +00:00
Jonathan Naylor 5968f3b47c Remove RSSI log data if no RSSI data to show. 2017-01-07 12:25:03 +00:00
Jonathan Naylor 3c9666e780 Display the RSSI on the Nextion screen. 2017-01-05 19:44:52 +00:00
Jonathan Naylor af721f89e2 Add RSSI display for all modes. 2017-01-05 19:15:10 +00:00
Jonathan Naylor 2ac7e43929 Alter and clean up the P25 network protocol. 2016-11-01 19:01:37 +00:00