hmatuschek / qdmr

A GUI application for configuring and programming cheap DMR radios under Linux and MacOS X.
https://dm3mat.darc.de/qdmr/
GNU General Public License v3.0
223 stars 46 forks source link

RT3/MD380 with md380tools has more button settings #419

Closed allesand closed 3 days ago

allesand commented 8 months ago

A RT3/MD380 with installed md380tools has more options for the side buttons that QDMR currently can not decode and thus can not write back to the radio.

For example:

This note as a reminder, will provide more info when at the laptop next time..

ERROR in src/extensionwrapper.cc@572: Cannot map value 81 to enum ButtonAction. Ignore attribute but this points to an incompatibility in some codeplug. Consider reporting it to https://github.com/hmatuschek/qdmr/issues. ERROR in src/extensionwrapper.cc@572: Cannot map value 86 to enum ButtonAction. Ignore attribute but this points to an incompatibility in some codeplug. Consider reporting it to https://github.com/hmatuschek/qdmr/issues.

Tried

*** tyt_extensions.hh.orig 2024-03-18 16:51:10.242894738 +0100 --- tyt_extensions.hh 2024-03-18 17:23:18.993810701 +0100


* 308,314 ** SwitchUpDown = 47, ///< Switch Channel A/B. RightKey = 48, ///< Who knows? LeftKey = 49, ///< Who knows? ! ZoneDecrement = 55 ///< Switch to previous zone. }; Q_ENUM(ButtonAction)

--- 308,316 ---- SwitchUpDown = 47, ///< Switch Channel A/B. RightKey = 48, ///< Who knows? LeftKey = 49, ///< Who knows? ! ZoneDecrement = 55, ///< Switch to previous zone. ! SetTalkgroup = 81, ///< md380tools: set temp. TG ! PromiscOnOff = 86 ///< md380tools: enable/disable promiscuous mode }; Q_ENUM(ButtonAction)

but that does not seem to be enough. @hmatuschek : what information do you need and/or what files do I need to change and send you a diff with the additional settings for an md380tools enabled RT3?

allesand commented 8 months ago

Another note: md380tools has a ContactDB, editcp can write it to the radio, so there is a Linux solution. Low Prio: if possible to detect the presence of the md380tools on the radio, enable ContactDB write to the radio.

hmatuschek commented 6 months ago

Is there a dedicated CPS for md380tools? Or can these buttons only be set on the radio itself? If so, I may only need the information, you already provided above. For now, I do not know how I could detect the md380tools firmware.

hmatuschek commented 6 months ago

The changes you proposed above, should have been enough. Had a look at the codeplug tool https://github.com/travisgoodspeed/md380tools/blob/master/md380_codeplug.py, it appears to be ok.

hmatuschek commented 6 months ago

Let me outline the changes needed:

allesand commented 6 months ago

Is there a dedicated CPS for md380tools? Or can these buttons only be set on the radio itself? If so, I may only need the information, you already provided above. For now, I do not know how I could detect the md380tools firmware.

Sorry, forgot the links: https://github.com/DaleFarnsworth-DMR/editcp / https://www.farnsworth.org/dale/codeplug/editcp/ has extensions for md380tools specific button settings and writing the ContactDB.

allesand commented 6 months ago

With https://github.com/hmatuschek/qdmr/tree/419-md380tools-button-settings the md380tools-specific button settings I used are read and written back correctly - thanks! Will check for more settings and report.