Output hexdump file will be stored into the /tmp folder now.
This commit is contained in:
parent
75ee72e1b9
commit
402d8207db
2 changed files with 37 additions and 36 deletions
71
README.md
71
README.md
|
@ -9,10 +9,10 @@ The base of the chirp driver is based on https://www.universirius.com/preppers/q
|
||||||
|
|
||||||
## EEPROM content for 0.5 HF:
|
## EEPROM content for 0.5 HF:
|
||||||
|
|
||||||
Address: 0x0D60
|
Address: 0x0D60
|
||||||
Content:
|
Content:
|
||||||
for(uint16_t i = 0; i < sizeof(MR_ChannelAttributes); i++) { ChannelAttributes_t *att = &MR_ChannelAttributes[i]; if(att->__val == 0xff){ att->__val = 0; att->band = 0xf; } }
|
for(uint16_t i = 0; i < sizeof(MR_ChannelAttributes); i++) { ChannelAttributes_t *att = &MR_ChannelAttributes[i]; if(att->__val == 0xff){ att->__val = 0; att->band = 0xf; } }
|
||||||
|
|
||||||
Address: 0x0E70
|
Address: 0x0E70
|
||||||
Content:
|
Content:
|
||||||
0: CHAN_1_CALL
|
0: CHAN_1_CALL
|
||||||
|
@ -23,10 +23,10 @@ Content:
|
||||||
5: VOX_SWITCH
|
5: VOX_SWITCH
|
||||||
6: VOX_LEVEL
|
6: VOX_LEVEL
|
||||||
7: MIC_SENSITIVITY
|
7: MIC_SENSITIVITY
|
||||||
|
|
||||||
Address: 0x0E78
|
Address: 0x0E78
|
||||||
Content:
|
Content:
|
||||||
0: BACKLIGHT_MAX (0x0f) & BACKLIGHT_MIN (0xf0 >> 4)
|
0: BACKLIGHT_MAX (0x0f) & BACKLIGHT_MIN (0xf0 >> 4)
|
||||||
1: CHANNEL_DISPLAY_MODE
|
1: CHANNEL_DISPLAY_MODE
|
||||||
2: CROSS_BAND_RX_TX
|
2: CROSS_BAND_RX_TX
|
||||||
3: BATTERY_SAVE
|
3: BATTERY_SAVE
|
||||||
|
@ -34,7 +34,7 @@ Content:
|
||||||
5: BACKLIGHT_TIME
|
5: BACKLIGHT_TIME
|
||||||
6: TAIL_TONE_ELIMINATION
|
6: TAIL_TONE_ELIMINATION
|
||||||
7: VFO_OPEN
|
7: VFO_OPEN
|
||||||
|
|
||||||
Address: 0x0E80
|
Address: 0x0E80
|
||||||
Content:
|
Content:
|
||||||
0: ScreenChannel[0]
|
0: ScreenChannel[0]
|
||||||
|
@ -45,10 +45,10 @@ Content:
|
||||||
5: FreqChannel[1]
|
5: FreqChannel[1]
|
||||||
6: NoaaChannel[0]
|
6: NoaaChannel[0]
|
||||||
7: NoaaChannel[1]
|
7: NoaaChannel[1]
|
||||||
|
|
||||||
Address: 0x0E90
|
Address: 0x0E90
|
||||||
Content:
|
Content:
|
||||||
0: BEEP_CONTROL (0x01) & KEY_M_LONG_PRESS_ACTION (>> 1)
|
0: BEEP_CONTROL (0x01) & KEY_M_LONG_PRESS_ACTION (>> 1)
|
||||||
1: KEY_1_SHORT_PRESS_ACTION
|
1: KEY_1_SHORT_PRESS_ACTION
|
||||||
2: KEY_1_LONG_PRESS_ACTION
|
2: KEY_1_LONG_PRESS_ACTION
|
||||||
3: KEY_2_SHORT_PRESS_ACTION
|
3: KEY_2_SHORT_PRESS_ACTION
|
||||||
|
@ -56,17 +56,17 @@ Content:
|
||||||
5: SCAN_RESUME_MODE
|
5: SCAN_RESUME_MODE
|
||||||
6: AUTO_KEYPAD_LOCK
|
6: AUTO_KEYPAD_LOCK
|
||||||
7: POWER_ON_DISPLAY_MODE
|
7: POWER_ON_DISPLAY_MODE
|
||||||
|
|
||||||
Address: 0x0E98
|
Address: 0x0E98
|
||||||
Content:
|
Content:
|
||||||
0: memcpy(&POWER_ON_PASSWORD, Data, 4)
|
0: memcpy(&POWER_ON_PASSWORD, Data, 4)
|
||||||
|
|
||||||
Address: 0x0EA0
|
Address: 0x0EA0
|
||||||
Content:
|
Content:
|
||||||
0: VOICE_PROMPT
|
0: VOICE_PROMPT
|
||||||
1: S0_LEVEL
|
1: S0_LEVEL
|
||||||
2: S9_LEVEL
|
2: S9_LEVEL
|
||||||
|
|
||||||
Address: 0x0EA8
|
Address: 0x0EA8
|
||||||
Content:
|
Content:
|
||||||
0: ALARM_MODE
|
0: ALARM_MODE
|
||||||
|
@ -74,12 +74,12 @@ Content:
|
||||||
2: REPEATER_TAIL_TONE_ELIMINATION
|
2: REPEATER_TAIL_TONE_ELIMINATION
|
||||||
3: TX_VFO
|
3: TX_VFO
|
||||||
4: BATTERY_TYPE
|
4: BATTERY_TYPE
|
||||||
|
|
||||||
Address: 0x0EB0
|
Address: 0x0EB0
|
||||||
Content:
|
Content:
|
||||||
EEPROM_WELCOMESTRING1 (16 byte)
|
EEPROM_WELCOMESTRING1 (16 byte)
|
||||||
EEPROM_WELCOMESTRING2 (16 byte)
|
EEPROM_WELCOMESTRING2 (16 byte)
|
||||||
|
|
||||||
Address: 0x0ED0
|
Address: 0x0ED0
|
||||||
Content:
|
Content:
|
||||||
0: DTMF_SIDE_TONE
|
0: DTMF_SIDE_TONE
|
||||||
|
@ -90,47 +90,47 @@ Content:
|
||||||
5: DTMF_PRELOAD_TIME
|
5: DTMF_PRELOAD_TIME
|
||||||
6: DTMF_FIRST_CODE_PERSIST_TIME
|
6: DTMF_FIRST_CODE_PERSIST_TIME
|
||||||
7: DTMF_HASH_CODE_PERSIST_TIME
|
7: DTMF_HASH_CODE_PERSIST_TIME
|
||||||
|
|
||||||
Address: 0x0ED8
|
Address: 0x0ED8
|
||||||
Content:
|
Content:
|
||||||
0: DTMF_CODE_PERSIST_TIME
|
0: DTMF_CODE_PERSIST_TIME
|
||||||
1: DTMF_CODE_INTERVAL_TIME
|
1: DTMF_CODE_INTERVAL_TIME
|
||||||
2: PERMIT_REMOTE_KILL
|
2: PERMIT_REMOTE_KILL
|
||||||
|
|
||||||
Address: 0x0EE0
|
Address: 0x0EE0
|
||||||
Content:
|
Content:
|
||||||
0: memcpy(ANI_DTMF_ID, Data, sizeof(ANI_DTMF_ID))
|
0: memcpy(ANI_DTMF_ID, Data, sizeof(ANI_DTMF_ID))
|
||||||
|
|
||||||
Address: 0x0EE8
|
Address: 0x0EE8
|
||||||
Content:
|
Content:
|
||||||
0: memcpy(KILL_CODE, Data, sizeof(KILL_CODE))
|
0: memcpy(KILL_CODE, Data, sizeof(KILL_CODE))
|
||||||
|
|
||||||
Address: 0x0EF0
|
Address: 0x0EF0
|
||||||
Content:
|
Content:
|
||||||
0: memcpy(REVIVE_CODE, Data, sizeof(REVIVE_CODE))
|
0: memcpy(REVIVE_CODE, Data, sizeof(REVIVE_CODE))
|
||||||
|
|
||||||
Address: 0x0EF8
|
Address: 0x0EF8
|
||||||
Content:
|
Content:
|
||||||
0: memcpy(DTMF_UP_CODE, Data, sizeof(DTMF_UP_CODE))
|
0: memcpy(DTMF_UP_CODE, Data, sizeof(DTMF_UP_CODE))
|
||||||
|
|
||||||
Address: 0x0F08
|
Address: 0x0F08
|
||||||
Content:
|
Content:
|
||||||
0: memcpy(DTMF_DOWN_CODE, Data, sizeof(DTMF_DOWN_CODE))
|
0: memcpy(DTMF_DOWN_CODE, Data, sizeof(DTMF_DOWN_CODE))
|
||||||
|
|
||||||
Address: 0x0F18
|
Address: 0x0F18
|
||||||
Content:
|
Content:
|
||||||
0: SCAN_LIST_DEFAULT
|
0: SCAN_LIST_DEFAULT
|
||||||
1: SCAN_LIST_ENABLED[0]
|
1: SCAN_LIST_ENABLED_1
|
||||||
2: SCANLIST_PRIORITY_CH1[0]
|
2: SCANLIST_PRIORITY_CH1_1
|
||||||
3: SCANLIST_PRIORITY_CH2[0]
|
3: SCANLIST_PRIORITY_CH2_1
|
||||||
4: SCAN_LIST_ENABLED[1]
|
4: SCAN_LIST_ENABLED_2
|
||||||
5: SCANLIST_PRIORITY_CH1[1]
|
5: SCANLIST_PRIORITY_CH1_2
|
||||||
6: SCANLIST_PRIORITY_CH2[1]
|
6: SCANLIST_PRIORITY_CH2_2
|
||||||
|
|
||||||
Address: 0x0F30
|
Address: 0x0F30
|
||||||
Content:
|
Content:
|
||||||
bHasCustomAesKey: true/false
|
bHasCustomAesKey: true/false
|
||||||
|
|
||||||
Address: 0x0F40
|
Address: 0x0F40
|
||||||
Content:
|
Content:
|
||||||
0: F_LOCK
|
0: F_LOCK
|
||||||
|
@ -141,10 +141,11 @@ Content:
|
||||||
5: 350EN
|
5: 350EN
|
||||||
6: ScrambleEnable
|
6: ScrambleEnable
|
||||||
7: live_DTMF_decoder
|
7: live_DTMF_decoder
|
||||||
|
|
||||||
Address: CEC_EEPROM_START1 = 0x1D50
|
Address: CEC_EEPROM_START1 = 0x1D50
|
||||||
Content:
|
Content:
|
||||||
LiveSeekMode
|
LiveSeekMode
|
||||||
CW_KEYTYPE
|
CW_KEYTYPE
|
||||||
CW_SPEED
|
CW_SPEED
|
||||||
CW_TONE
|
CW_TONE
|
||||||
|
|
||||||
|
|
|
@ -630,7 +630,7 @@ def do_download(radio):
|
||||||
|
|
||||||
if DEBUG_WRITE_RADIO_HEXDUMP:
|
if DEBUG_WRITE_RADIO_HEXDUMP:
|
||||||
hex_data = _convert_to_intel_hex(eeprom)
|
hex_data = _convert_to_intel_hex(eeprom)
|
||||||
_save_to_hex_file(hex_data, "radio_dump.hex")
|
_save_to_hex_file(hex_data, "/tmp/radio_dump.hex")
|
||||||
|
|
||||||
return memmap.MemoryMapBytes(eeprom)
|
return memmap.MemoryMapBytes(eeprom)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue