Repository navigation
MD-380 contacts, both ways: md380tools user DB and codeplug contact fill - #138
Merged
Merged
Conversation
User DB (md380tools patched firmware): build md380tools' linear user database from the DMR Contacts library, prioritized, and write it to SPI flash at 0x100000 through the patched firmware's DFU block-1 commands, then read it all back. Gated on the patched firmware's USB strings and the 16 MB chip; every erase and write is bounds-checked above the codeplug in protocol.rs. A dropped erase (the firmware ignores one sent while the chip is busy) is resent. Hardware-proven on Tim's UHF MD-380: 269,452 users written and read back, codeplug intact. Refused on Windows (STTub30 hides the USB strings). Codeplug contacts (stock firmware): "Fill spare contacts with DMR users" under Channel set fills the codeplug's 1000 contacts with prioritized users after the talkgroups. Hardware-proven: verified, radio's Contacts list = talkgroups then the users. The Program dialog gains a User DB card; the AnyTone's DMR-user picker is now a shared component. write_callsign_db resolves the radio from the codeplug, so no profile is needed; its report says whether the driver read the DB back. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Two ways to get DMR users into a TYT MD-380, from the local DMR Contacts library.
User DB (md380tools patched firmware)
protocol.rs.Codeplug contacts (stock firmware)
Also
DmrUserPicker.write_callsign_dbresolves the radio from the codeplug (no profile needed);CallsignDbReport.verifiedsays whether the driver read it back.🤖 Generated with Claude Code