Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RT3/MD380 with md380tools has more button settings #419

Open
allesand opened this issue Mar 17, 2024 · 6 comments
Open

RT3/MD380 with md380tools has more button settings #419

allesand opened this issue Mar 17, 2024 · 6 comments
Assignees
Labels
enhancement New feature or request MD-390 Affects TyT MD-390 devices MD-UV390 Affects TYT MD-UV390 and Retevis RT3S devices

Comments

@allesand
Copy link

allesand commented Mar 17, 2024

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:

  • Direct talkgroup input
  • Promiscuous mode on/off

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
Copy link
Author

allesand commented Mar 18, 2024

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
Copy link
Owner

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 hmatuschek self-assigned this May 16, 2024
@hmatuschek hmatuschek added enhancement New feature or request MD-UV390 Affects TYT MD-UV390 and Retevis RT3S devices MD-390 Affects TyT MD-390 devices labels May 16, 2024
@hmatuschek
Copy link
Owner

hmatuschek commented May 16, 2024

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
Copy link
Owner

Let me outline the changes needed:

  • Add new button functions to TyT extension.
  • Find and implement ways to detect the presence of modified FW.
  • Filter button functions by device and FW variant:
    • TyT MD-380, MD-390, Retevis RT 8
    • TyT MD-UV380, MD-UV390, Retvis RT 3S
    • MD380-Tools

@allesand
Copy link
Author

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
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request MD-390 Affects TyT MD-390 devices MD-UV390 Affects TYT MD-UV390 and Retevis RT3S devices
Projects
None yet
Development

When branches are created from issues, their pull requests are automatically linked.

2 participants