[chirp_devel] [PATCH 0 of 2 ] Changes from Johan

He has uploaded those as diff files in the issue. I modified them to be applied over my latest patch. I think we can wait to add this to the repository until we finish working on this issue.
@ Johan I had to correct the memory map one as you changed also the KG816 driver. More, please avoid using tabs and replace them with spaces. I'll start writing the code to use the settings later today, please let me know if you want to do it your self :)

# HG changeset patch # User Johan Adler johan.adler@gmail.com # Date 1352113223 -3600 # Node ID c2f06cd453b0aeddf642260ad25d2c3fe11a247a # Parent b37eebb2372414a37bd2180f72932b77719434c9 [KG-UV6] Modified addressing of channel names Part of feature #335
diff --git a/chirp/wouxun.py b/chirp/wouxun.py --- a/chirp/wouxun.py +++ b/chirp/wouxun.py @@ -555,11 +555,10 @@ u16 uhf_tx_stop; } freq_ranges;
- #seekto 0x1008; + #seekto 0x1010; struct { - u8 unknown[8]; u8 name[6]; - u8 pad[2]; + u8 pad[10]; } names[199]; """

# HG changeset patch # User Johan Adler johan.adler@gmail.com # Date 1352116065 -3600 # Node ID cc2148360f002dceb8b69fc0f39874f5e9e6c38e # Parent c2f06cd453b0aeddf642260ad25d2c3fe11a247a [KG-UV6] Memory map as we know it More info at http://nyfiken.org/arkiv/310 Part of feature #335
diff --git a/chirp/wouxun.py b/chirp/wouxun.py --- a/chirp/wouxun.py +++ b/chirp/wouxun.py @@ -522,27 +522,111 @@ power_high:1, iswide:1, _2_unknown_2:4; - u8 unknown[2]; + u8 pad[2]; } memory[199];
#seekto 0x0F00; struct { - u8 unknown1[44]; - u8 unknown_flag1:6, + u8 welcome1[6]; + u8 welcome2[6]; + u8 single_band[6]; + } strings; + + #seekto 0x0F20; + struct { + u8 unknown_flag_01:6, + vfo_b_ch_disp:2; + u8 unknown_flag_02:5, + vfo_a_fr_step:3; + u8 unknown_flag_03:4, + vfo_a_squelch:4; + u8 unknown_flag_04:7, + power_save:1; + u8 unknown_flag_05:5, + pf2_function:3; + u8 unknown_flag_06:6, + roger_beep:2; + u8 unknown_flag_07:2, + transmit_time_out:6; + u8 unknown_flag_08:4, + vox:4; + u8 unknown_1[4]; + u8 unknown_flag_09:6, voice:2; - u8 unknown_flag2:7, + u8 unknown_flag_10:7, beep:1; - u8 unknown2[12]; - u8 unknown_flag3:6, + u8 unknown_flag_11:7, + ani_id_enable:1; + u8 unknown_2[2]; + u8 unknown_flag_12:5, + vfo_b_fr_step:3; + u8 unknown_3[1]; + u8 unknown_flag_13:3, + ani_id_tx_delay:5; + u8 unknown_4[1]; + u8 unknown_flag_14:6, + ani_id_sidetone:2; + u8 unknown_flag_15:4, + tx_time_out_alert:4; + u8 unknown_flag_16:6, + vfo_a_ch_disp:2; + u8 unknown_flag_15:6, + scan_mode:2; + u8 unknown_flag_16:7, + kbd_lock:1; + u8 unknown_flag_17:6, ponmsg:2; - u8 unknown3[3]; - u8 unknown_flag4:7, + u8 unknown_flag_18:5, + pf1_function:3; + u8 unknown_5[1]; + u8 unknown_flag_19:7, + auto_backlight:1; + u8 unknown_flag_20:7, sos_ch:1; - u8 unknown4[29]; - u8 unknown_flag5:7, + u8 unknown_6[2]; + u8 unknown_flag_21:7, + auto_lock_kbd:1; + u8 unknown_flag_22:4, + vfo_b_squelch:4; + u8 unknown_7[1]; + u8 unknown_flag_23:7, + stopwatch:1; + u8 vfo_a_cur_chan; + u8 unknown_flag_24:7, + dual_band_receive:1; + u8 current_vfo:1, + unknown_flag_24:7; + u8 unknown_8[2]; + u8 mode_password[6]; + u8 reset_password[6]; + u8 ani_id_content[6]; + u8 unknown_flag_25:7, menu_available:1; + u8 unknown_9[1]; + u8 priority_chan; + u8 vfo_8_cur_chan; } settings;
+ #seekto 0x0f60; + struct { + lbcd rx_freq[4]; + lbcd tx_freq[4]; + ul16 rx_tone; + ul16 tx_tone; + u8 _3_unknown_3:4, + bcl:1, + _3_unknown_4:3; + u8 splitdup:1, + _2_unknown_3:1, + power_high:1, + iswide:1, + _2_unknown_4:4; + u8 pad[2]; + } vfo_settings[2]; + + #seekto 0x0f80; + u16 fm_presets_0[9]; + #seekto 0x0ff0; struct { u16 vhf_rx_start; @@ -560,6 +644,17 @@ u8 name[6]; u8 pad[10]; } names[199]; + + #seekto 0x1f60; + struct { + u8 unknown_flag_26:6, + tx_offset_dir:2; + u8 tx_offset[6]; + u8 pad[9]; + } vfo_offset[2]; + + #seekto 0x1f80; + u16 fm_presets_1[9]; """
@@ -636,12 +731,12 @@ u16 uhf_tx_stop; } freq_ranges;
- #seekto 0x1008; + #seekto 0x1010; struct { - u8 unknown[8]; - u8 name[6]; - u8 pad[2]; + u8 name[6]; + u8 pad[10]; } names[199]; + """
@classmethod

Hi Marco,
Spaces instead of tabs? Not the way I am used to when working alone, but whatever works for the rest of you. :-)
I was not aware of having done anything to the KG816 parts.
2012/11/5 Marco Filippi IZ3GME iz3gme.marco@gmail.com:
He has uploaded those as diff files in the issue. I modified them to be applied over my latest patch. I think we can wait to add this to the repository until we finish working on this issue.
@ Johan I had to correct the memory map one as you changed also the KG816 driver. More, please avoid using tabs and replace them with spaces. I'll start writing the code to use the settings later today, please let me know if you want to do it your self :) _______________________________________________ chirp_devel mailing list chirp_devel@intrepid.danplanet.com http://intrepid.danplanet.com/mailman/listinfo/chirp_devel

Hi again :)
I was not aware of having done anything to the KG816 parts.
...mmm... may be it's my fault importing your diff ... never mind
BTW I can not work on chirp now as I thought to be able. I will not have many spare time in next days, you can go on working on this module freely. I'll help you via email or chat in case of need ...
73 de IZ3GME Marco
2012/11/5 Marco Filippi IZ3GME iz3gme.marco@gmail.com:
He has uploaded those as diff files in the issue. I modified them to be applied over my latest patch. I think we can wait to add this to the repository until we finish working on this issue.
@ Johan I had to correct the memory map one as you changed also the KG816 driver. More, please avoid using tabs and replace them with spaces. I'll start writing the code to use the settings later today, please let me know if you want to do it your self :) _______________________________________________ chirp_devel mailing list chirp_devel@intrepid.danplanet.com http://intrepid.danplanet.com/mailman/listinfo/chirp_devel
chirp_devel mailing list chirp_devel@intrepid.danplanet.com http://intrepid.danplanet.com/mailman/listinfo/chirp_devel
participants (4)
-
Dan Smith
-
IZ3GME Marco
-
Johan Adler
-
Marco Filippi IZ3GME