OpenMD9600 for the TYT MD9600 and the Retevis RT-90

IMPORTANT NOTE
The new languages folder contains the screen text for different languages, you can select one of them to load as a user language. English is automatically loaded with the firmware. This is simply for the screen language on the radio it doesn't affect the voice packs which are uploaded in the usual way. Copy the language dot gla file you want to use from the language folder into the same folder as the file bin file you are going to use and then choose the language in the Firware Loader window of the CPS.

Version 3.4R/S 5/5/26
Just optimisation no new features.

Version 3.4Q  29/3/25
    Reapply CSS RX once the DTMF sequence has ended.
    Take care of RD5R display buffer height (48 vs 64 on MK22 platforms).
    Screengrabber Python script takes care of RD5R screen size too.
        available at https://drive.proton.me/urls/K2TF5ZCQJ8#NhIcfp2oKy0R.
    Add GPS support for RD5R platform.
        NOTE: the RSSI screen doesn't display the sat's number, as there is no room for this on screen.


Version 3.4P  16/3/25
    Disable "Use position" in VFOs, as it's not supported.
    Rework 'g' height in 6x8 fonts.
    Fix flash storage corruption on all STM32 based transceivers.
    Hide volume notification on power off (on HAS_SOFT_VOLUME featured platforms).
    Use double height font, if enabled, in uiPowerOff and Radio info screens.
    Display a marker when a channel has ALL_SKIP or ZONE_SKIP flag set.
        It takes care of the current selected zone (zone/All Channels).
        Zone is displayed: '<zone name> Ch^<channel number>', instead of '<zone name> Ch:<channel number>',
        When Roaming is enabled: '<zone name> ^ <distance>', instead of '<zone name> | <distance>'.
    Last heard screen:
        Handle Up/Down key repeat,
        Toggles to detailed view on SK2 Down, not Long Down.
    RD-5R bug: Fix Power and ColorCode self changing to random values (it was triggered when roaming was enabled).
    Fix DMR AGC wrongly applied to Voice Prompts and Beeps.
    Italian update from Fabio IZ2EIB.


Version 3.4N  23/2/25
    Add audio amp mute feature:
        When the audio mute is enabled, the radio mode (FM/DMR) font is stroked.
        Add "Mute: On/Off" in quick menus.
        Use longpress '0' key for audio mute toggling.
    Some internal cleanups.
Version 3.4M  9/2/25
    In DMR mode, clear the LC data after an APRS beaconing to avoid handling incomplete
    data (wrong IDs and so on).
    Fix APRS QSY: RX and TX freqs were swapped.
Version 3.4L  28/1/25
   Fix firmware freezing when an APRS becon can't be sent (like when the squelch is
   constantly opened).

Version 3.4K  19/1/25
    Add GPS baud rate detection
    Show channel distance when scan is paused
    Fix bug in channel/VFO modes when scanning with VP
    Add last talker in screen option.
        In DIGITAL mode, when this option is enabled, the last caller callsign and channel contact are displayed each x seconds alternatively, in both Channel and VFO menus.
    Don't display CSS in header while DW scanning.
    Add APRS tx frequency support.
        When a TX Frequency is set in the APRS Config, the device is tuned to that frequency before transmitting the frame.
        That permits setting an APRS Config to a DIGITAL channel (menuChannelDetails supports
        that too).
        Also, a CODEPLUG_APRS_CONFIG_FLAG_TRANSMIT_QSY_INFO APRS Config flag is now supported,
        which add QSY information to the beacon text (like frequency / tone / shift). Tested
        on my TH-D74.
        NOTE: this is not enabled/supported while in Satellite mode.
        "APRS" word in the header had to be changed, since it could appear in DIGITAL mode too. It's now a "a", next to the mode.
        WARNING: The APRS Config version has been changed for this, so you need to read and write back your codeplug to update the APRS configurations, using the latest CPS (>= 2025 01 17).
    Fix DMR Rx AGC (wasn't disabled once enabled, until the transceiver got power cycled).
    Add special beeps when ReverseRepeater is enabled/disabled.
    Contact TS override has to be displayed, no matter the Display option "Info" is set.
    Many other small fixes/cleanups.


Version 3.4J  12/12/24
No functional changes just some clean up of the code.

Version 3.4H  18/10/24
* On the Channel Details screen, the repeater Latitude and Longitude can be entered and also the "Use location" setting, can be set to Yes/No.
Note. the Use location is called "Location" because "Use location" won't fit on the screen
* GPS NMEA output is not disabled during Tx, like it is on other supported radios, becuase the MD9600 can transmit and also output NMEA data at the same time.
* Power to the GPS module is turned off when the power button is pressed to turn the radio off.
Note. The MD9600 is never completely off. Pressing the power button actually puts the radio into standby, as the MD9600 does not have any hardware to actually disconnect its power supply.
* Prevent Roaming channels re-sorting when a scan is ended.
* Updates to the Italian language translation

version 3.4G  9/10/24
• Increase number of nuisance entries during scan from 16 to 32
• Change Auto Power Off step size and maximum time
• (MD9600 only) Use battery RAM for settings, so that if power is removed from the radio the last change to settings / channel / vfo will be retained
• Handle if settings can’t be saved to Flash because of Write failure
• Added automatic roaming function, based on position e.g. from GPS or manual entry.
• Force re-sorting of channels in Roaming mode, my pressing Green button on the Roaming setting e.g Roaming:Manual
• (MD9600/UV380/DM1701/MD2017) Add option to display the time instead of the batter voltage or battery percentage
• Show distance to a repeater / channel when button 8 is held down (long press)

version3.4F  38/9/24
While driving when GPS causes a channel change then radio beeps amd back light turns on.

Version 3.4E  4/8/24
Bug fixes for out of band transmit with VOX and possible transmit when in receive only mode.

Version unchanged 14/7/24
some redundant code removed from the firmware.

Version 3.4D  30/6/24
This version fixes the bugs in the previous Beta release but it no longer has the SMS passthrough functionality in Hotspot mode, becuase this was causing problems for normal operation


Version 3.4C  24/6/24
* Add Hotspot SMS passthrough function - Thanks for multiple authors including DL4LEX and Daniel for incorporating this change.
* Reinstate Private call alarm beep
* Add safe boot functionality (minimum functionality boot)
* Fix cursor Y position problem on RD-5R
* Fix Hotspot echo bug and change hotspot version number
* Fix DTMF tone cancellation problem
* Fix TimeSlot detection and synchronisation when TimeSlot filter is disabled
* Fix bug with edit cursor problems
* Fix voltage history plotting bug
* Fix phantom PTT tiggering bug
* Changes to hardware debug screen

Version 3.4B  14/4/24
Fixes an audio bug plus a few other minor bugs and needs the new voice prompt files.

Version 3.4A  17/3/24
* Fixes a problem with reading and writing to the Flash
memory which causes the radio to run slower than it should.
* Fixes problems of the VFO and Channel screen sometimes being blank
* Fixes problems with AT1846S TRx chip register cache system
* Fixes problem when attempting to transmit DTMF in satellite mode.
* Fixes QuickKey problems e.g. in VFO Dual Watch
* Updated multiple translations
* Romanian added. Note: The latest CPS is required
to be able to select Romanian
* Adds Force DMO open to DMR channels.
This sets a channel to operate in simplex / DMO even when the
Tx and Rx frequencies are different.
The CPS has also been updated to support this option.

All users should update because of the bug in the Flash memory access.

Version 3.3M  8/12/23
This version changes the operation of the Last Heard screen
Pressing the Green button changes the TG to the TG of the currently selected line
Pressing SK2 + Green changes the radio to make a private call to the station

Verson 3.3L  20/11/23
Added APRS Beaconing and lots of bug fixes to the APRS code.
Needs new CPS so install this first and it also needs the New voice prompts as well as the new firmware.

Version 3.3K  15/9/23
Changes in this version
* Channel order in zones can now be sorted by distance, using the Latitude and Longitude data entered into the CPS.
This works for all real zones, but Not the All Channels zone becuase this is not a real zone
Distance sorting is enabled via the "Dist sort" option in the Quick Menu
In this mode the distance is displayed in place of the channel number
* Distance can also be displayed at all times by using the "Show dist" option in the Display Options.
* GPS functionality has been added to the GD-77, DM-1801 and DM-1801 firmwares
None of these types of radios was originally available with GPS, so operators will need to fit a GPS module inside their radio, and connect the data and power control connections directly to the CPU chip
GPS data needs to be connected to pin 99 and power control to pin 97. Becasue pins 98 and 100 are not used, it is safe, to bridge between 97 and 98 for power control and between 99 and 100 for data, and bridging pins makes it far easier to solder to the CPU.
* Fixes and improvements to GPS course and accuracy display (Thanks to Daniel F1RMB)
* Czech language update
* Various other internal code changes and optimisations (Thanks to Daniel F1RMB)

Version 3.3J  3/9/23
There have been many other changes to the firmware and CPS.
• Remove APRS Destination from CPS and now use APOG77 built into the firmware
• Add APRS ambiguity support in CPS and firmware
• Add APRS support for ‘Fixed position’ location Lat/Lon in CPS and the firmware
• Add APRS support for 300 Baud transmission.
• Add Location Lat/Lon support to Channel data in the CPS and support in the firmware
MDUV380 shows distance in km from radio location to Channel Lat/Lon on the Channel screen.
GD77 and MD9600 the distance in km is shown if button SK1 (P2 on MD9600) is held in.
Note. The distance does not currently update if the radio changes position until the channel screen is reloaded. This function will be improved in the future to automatically recalculate and redisplay the distance if it changes by more than 0.1km
• MD9600 now supports short APRS comments.
• Firmware character font – Add missing N/n with Caron (F1RMB)
• Fix frequency calibration bug on all radio types
• Change APRS Tx method. SK1 is no longer required to transmit APRS.
Channels with and APRS config set, will now only transmit APRS, not voice and transmission of APRS is triggered simply by pressing the PTT.
APRS Tx ends immediately after the end of the data even if the PTT is held in.
• Improve ‘UI Notification’ popup (F1RMB)
• MDUV380 only – Add volume control visual display, See Options->Display options-> Volume : Off/On (F1RMB)
• Stop GPS NMEA output when CPS uploads/downloads the codeplug or other data (F1RMB)
• Satellite mode APRS frequency will now only transmit APRS
It is no longer possible to send APRS on the ‘Voice’ frequency of satellites
• Czech language updates (OK2MOP, Pavel )
CPS
• Changes to APRS screen to remove Destination and add Ambiguity and Fixed position and 300 baud Tx
• CPS has been updated to remove non functioning Tevel 1 and Tevel 8 satellites
• Maximum number of satellites has been increased from 15 to 25
• Channels can now have Latitude and Longitude values


Version 3.3H  21/8(23
This version fixes the 1750Hz 'tone burst' low deviation bug
It also improves APRS deviation
And also fixes Tx frequency offsets when transmitting 1750Hz tone or APRS
Additionally, the calibration screen user interface has been changed so that it is the same as the GD77. 

Version 3.3G  18/8/23
Changes in this version are as follows
• Bug fix APRS
• Bug fix boot screen problem
• Bug fix MD9600 1750Hz Tx problem
• Bug fix DMR TA decoding
• Add APRS setting to Channel Details screen
• Added +/- 4.6Mhz repeater frequency shift
• Improve MD9600 and UV380 1750Hz and DTMF tone indication through speaker
• Improve satellite screen.
Maximum number of satellites has been increased from 18 to 25.
More satellites have been added to the CPS, e.g. TEVEL2,3,4,5 etc. Some nonfunctioning satellites have been removed.
Each satellite now has 3 possibly frequencies: Voice, APRS and Beacon, by pressing keys 1,2 or 3
APRS configuration is now defined for each satellite via the satellites.txt file in the CPS
To customise an APRS configuation for a specific satellite e.g. "ISS" create an APRS configuration with the same name as the satellite, and this will be used instead of the APRS configuation for that satellite from satellites.txt in the CPS
APRS Tx is possible on any satellite frequency where the Tx frequency has been enabled, but transmitting on the "Voice" frequency of a satellite e.g. ISS wil not result in your position being sent to APRS.fi and will annoy anyone trying to use the Voice frequency of the satellite.
• Turkish language updates
• Czech language update
• Various other small bug fixes.
Very Important
To use APRS and Satellite mode in this version, you MUST update to the latest CPS.
downloads/CPS/Latest/OpenGD77CPSInstall ... .18.01.exe
In this CPS you will need to re-create any APRS configurations and link them to the appropriate channels, then upload the new codeplug into the radio
In the CPS you MUST upload new satellite Keps
APRS Tx will NOT work unless a channel or VFO has an APRS configuation.
There is no longer a default APRS configration in the firmware.
Remember also. For APRS you must enter your callsign into the CPS. If there is no callsign then the APRS transmission will not be valid.

Version 3.3F  9/8/23
Changes in this version.

• New GPS direction and speed etc screen (F1RMB)
• Turkish language update.
• Beep instead of voice prompt when GPS had fix, when voice prompts are not enabled (F1RMB)
• Tx Frequency offset function in the Channel details screen, By pressing Left / Right button on the Tx frequency (F1RMB)
• UV380 rotary control debouncing (F1RMB)
• Improve GPS NMEA data decoding (F1RMB)
• Various other GPS screen fixes (F1RMB)
• Improve Voice prompts on GPS screen (F1RMB)
• Fix MD-9600 scanning problems. Rotary control restarts scan on paused channel, Up arrow sets currently paused channel as nuisance (F1RMB)
• Remove space characters from font data to save program memory space (F1RMB)
• Fix sunrise and sunset calculations, for use with the Day / Night theme (F1RMB)
• Fixes to Auto Night functionality (F1RMB)
• Fix –W+ power setting on Satellite screen (F1RMB)
• Automatically update realtime clock from GPS (F1RMB)
• Fix PIN code display when no theme is available (F1RMB)
• FM APRS Tx. Quick press SK1 while transmitting on FM - see also the new CPS (VK3KYY)
For details of the FM APRS functionality, see viewtopic.php?f=5&t=3120


Version 3.3E  15/7/23
New night display with brightness control in the options menu and day and night themes for radio's with a colour display plus some bug fixes. This version has new CPS/Firmware/Voice pakcs.

Version 3.3D  2/7/23
This firmware version includes the following bug fixes and improvements
    Italian and German text updates
    Update Spanish Theme texts
    Update Catalan Theme texts
    Polish update from SP9EX.
    Add Last Used Channel In Zone feature. The firmware keeps track on last used channel in every zone (AllChannels included) BIG FAT NOTE: it needs a new CPS .
    No keypad beep option.
    Handle empty zones.
    Colin's DMR Private Call filter changes.
    Monitor mode available when Reverse Repeater is enabled.
    Add "Contact" edition in channel's details.
    Change text "rx group" to "tg list" in Channel's details.
    DMR filter "RxG" as been renames to "TGL".
    Fix bootscreen auto-hiding bug.
    Fix suspend on Satellite alarm pass (except on MD-9600, as it will never go into suspend mode)
    Use menu name theme scheme for all input "window" title (TG/PC/DMRId/PinCode).
    Enable "Safe Pwr-On" feature.
    It's possible to change GPS power status in the GPS menu, using GREEN/RED + SK2.
    lot of bugfixes, code optimization and improvments.


Version 3.3C  24/4/23
This version must be installed using the latest CPS from my package.
This version includes the Calibration option to accurately calibrate you frequency and power. Due to the small screen the calibration in on more than one screen and you can move between them with SK2 plus up and down.
This version also includes the Talk around feature in the Quick menu so that when on a repeater channel you can put the transmit frequency on the receive frequency.

Version 3.3B  28/2/23
DCS Rx decoding fixed. Plus Settings storage is now in Flash memory rather than battery RAM and manual backlight toggle as been assigned to button P2 on the front of the radio.

Version 3.3A  25/2/23
This version of the firmware will run on the older MD9600/RT90 with the original STM microprocessor and also on the new MD9600/RT90 using the Chinese Clone microrocessor. In the menu item Firmware Information there is an extra line CPU then either STM for original or TYT for Chinese Clone.

Version 3.2D  24/1/23
New CPS which allows the use of the new satellite FO118.

Version 3.2C  1/12/22
this version has a new GPS screen for finding your position using the GPS satellites. Be aware that the GPS receiver is not very sensetive and needs a good signal from the satellite.

Version 3.2B  25/11/22
this version contains a new CPS which allows you to select various TA option in the channel informtion on a channel by channel basis. The default is master which uses whatever is selected in options menu of the radio.

Version 3.2A  19/11/22
if you turn on Talker Alias in the options then the radio will transmit your location as well as your call-sign which allows the networkk to plot your position on an APRS map. This works on the DMR+ network and in Brandmeister if you go to self care and set your radio type to Hytera and GPS in Call to on. 

Version 3.1P  7/11/22
fixes a small problem with using the D key on the microphone to create SK2 Latch.

Version 3.1O  28/10/22
ABCD DTMF keys mapped to same keys as the GD77 and UV380.
New CPS with minor modifications.

Version 3.1N  22/10/22
In the CPS arbitrary frequencies can now be entered rather than just 25/12.5 or 6.25Khz steps.

Version 3.1M  17/10/22
New CPS from 16/10/22 and in the firmware
Improved scanning speed and several small bugs fixed.

Version 3.1L  16/9/22
This fixed 2 bugs on the VFO screen
1. The Tx frequency was set to the Rx frequency when saving or writing to the radio, if the Tx frequency was different to the Rx frequency
2. After fixing bug #1 above, I found that cross-band was still not possible, so that bug has also been fixed

Version 3.1K  23/9/22
small fix for the GPS.

Version 3.1J  21/9/22
Multiple bug fixes.

Version 3.1I  20/9/22
New CPS which cures a problem that doesn't affect the MD9600 only the GD77.

Version 3.1H  20/8/22
Number of bug fixes.

Version 3.1G  30/7/22
Contains a number of bug fixes.

Version 3.1F  27/6/22
New firmware version where you can start a scan by holding the up arrow on the front panel while in channell mode.

Version 3.1E  26/6/22
S meter corrected to give more accurate results over S9 with Version 5 radios.

Version 3.1D  22/6/22
New CPS which allows you to use control u and control d to move item up or down when the zone list is on sthe screen.

Version 3.1C  20/6/22
New CPS which now allows you to move channels up and down the channels list in the Channel list window using Ctrl+u for up and Ctrl+d for down.

Version 3.1B  19/6/22
New CPS which allows you to move channels up or down with ctrl+u or ctrl+d when the channels list is on the screen however this only works in tree view and so is at the moment not really usable for the blind and some small bug fixes in the firmware.

Version 3.1A 17/6/22
This version reduces the standby current (radio switched off) from 1ß0mA to around 19mA.
Also with this version you can enter firmware upload mode in the following way. With the radio switched off but power connected hold the orange and p1 buttons depressed and then press and release the power button on the front panel.

Version 3.0J  13/6/22
New version of the CPS program which included the firmware loader option within the program, so a seperate loader program is no longer needed.

Version 3.0H  11/6/22
Fixes a bug with settings update going to the Beep option rather than voice level 1 even when the voice pack was present and also decresases the mic gain on FM by 3db as standard. Holding the # key while switching on the radio brings the radio up in voicing level 3.

Version 3.0G  4/6/22
New CPS installer cures a small bug with the Radio ID field.

Version 3.0F  2/6/22
Automatic power off feature added.

Version 3.0E  24/5/22
OK display message changed to ENT to reflect the button used on the MD9600/RT90.
Reset at power on by holding P3 pressed while pwoering on.

Version 3.0D  20.05.2022
Same as version 3.0C but now called a Beta rather than an Alpha version.

Version 3.0C  10.05.2022
Eco option removed, becuase its not supported. Suspend option removed, becuase its not supported
Out Of Band message is displayed if Channel(s) or VFO frequencies are outside the operating range of the radio.
This message was added because the CPS allows Channels and VFO frequencies in the 220Mhz band, but the MD9600 hardware does not support it

Version 3.0B  03.05.2022
New CPS, firmware and voice prompt packs so you need to install all three.
Adds the ability in the CPS to turn beeps on or off and Eco on or off individually for each channel.

Version 3.0A   13/4/2022
Voice mode 1 implemented with P2 for voicing.

Version 2.0C  3/4/2022
Scan bug fixed and lock added for keypad and PTT.

Version 2.0B  1/4/2022
Small bug fix for the RSSI indicator and in V1 power button bug fix.

Version 2.0A  31/3/2022
Includes Colour Code scan option and voicing for the Click suppress, 
DMR RX AGC, Talker and RX beep options . This version needs the new Voice Prompts.

Version 1.0B  17.03.2022
Fix for V4 hardware problem and on/off state remembered after power off.

Version 1.0A  06.03.2022
Initial Alpha version of OpenMD9600 




