;=========================================================================
;                   LG Electronics, Ltd.
;                   Mobile Communications Research Lab.
;                   Development Soft Ware Group
;=========================================================================

;=========================================================================
;  File name: KG70c.SCR 
;  Made by  : LGE
;  Date     : 2006/12/28
;=========================================================================

print "LG-KG70c"
print "ÅëÇÕ±Ô°Ý ½Ãºñ½º ÇÁ·Î±×·¥"

spc "000000"

;hs_lock l                       ; HS UNLOCK!

; Put the DMSS in offline mode
mode offline-d

; Display the ESN and permanent physical station
; configuration parameters
nv_read esn
nv_read verno_maj
nv_read verno_min
nv_read scm
nv_read slot_cycle_index
nv_read mob_cai_rev
nv_read mob_firm_rev
nv_read mob_model
print "Hit any key to continue"

;pause
wait 1

; NAM info
nv_write curr_nam   {0}
nv_write name_nam   {0,"ÖÐ¹úÁªÍ¨"}
nv_write nam_chksum {0, 0xffff}
nv_write min_chksum {0, 0xffff, 0xffff}

; IMSI
nv_write dir_number      {0, "00000000000"}
nv_write min1            {0, "000-0000", "000-0000"}
nv_write min2            {0, "000", "000"}
nv_write accolc          {0, 0, 0}
nv_write imsi_addr_num   {0, 255}
nv_write imsi_mcc        {0, "460"}
nv_write imsi_11_12      {0, "03"}

; True IMSI
nv_write imsi_t_s1       {0, "000-0000","000-0000"}
nv_write imsi_t_s2       {0, "000", "000"}
nv_write imsi_t_addr_num {0, 255}
nv_write imsi_t_mcc      {0, "460"}
nv_write imsi_t_11_12    {0, "03"}

; Mode Preference
nv_write pref_mode   {0, "cdma only"} ; {0, 9}
nv_write system_pref {0, "standard"}  ; {0, 3}
nv_write band_pref   {0, 0xffff}
nv_write roam_pref   {0, 0xff}

; PRL related items
nv_write prl_enabled  {0, 1}
nv_write pcdmach      {0, 283, 384}
nv_write scdmach      {0, 691, 777}
nv_write home_sid_nid {0,0,65535,0,65535,0,65535,0,65535,0,65535,0,65535,0,65535,0,65535,0,65535,0,65535,0,65535,0,65535,0,65535,0,65535,0,65535,0,65535,0,65535,0,65535,0,65535,0,65535}
nv_write sid_nid_lock {0,0,65535,0,65535,0,65535,0,65535,0,65535,0,65535,0,65535,0,65535,0,65535,0,65535}
nv_write mru2_table   {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
;nv_write mru3_table  {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}

; Mob Term
nv_write mob_term_home    {0, true, true}
nv_write mob_term_for_sid {0, true, true}
nv_write mob_term_for_nid {0, true, true}

; AUTH related items
nv_write a_key      {0, 0x00000000, 0x00000000}
nv_write ssd_a      {0, 0x00000000, 0x00000000}
nv_write ssd_b      {0, 0x00000000, 0x00000000}
nv_write count      {0, 0}
nv_write voice_priv {0}

; OTA related items
nv_write spc_change_enabled {1}
nv_write otapa_enabled      {0, 1}
nv_write nam_lock           {0, 1}

; Service Option
nv_write pref_voice_so {0, 0, 0, 3, 3}
nv_write pref_for_rc   {3}

; SCI
nv_write slot_cycle_index {2}

; Service Code
nv_write lock_code {"0000"}
nv_write sec_code  {"000000"}
nv_write fsc       {"159753"};


print "Programming defaults value for Features"
nv_write rf_config {6}
nv_write hw_config {0}          ; Hardware Config       == Nothing Special
nv_write auto_redial {1,3}      ; Auto redial           == enable!(every 2secs)
nv_write auto_answer {0,0}      ; Auto answer           == disable!
nv_write onetouch_dial {1}      ; One touch dial        == enable!
nv_write cont_key_dtmf {on}     ; Prssed key tone       == Normal
nv_write auto_hyphen {on}       ; Auto hyphen           == enable!
nv_write auto_nam {false}       ; Auto nam              == off
nv_write call_fade_alert {off}  ; Alert/Fade            == off
nv_write call_beep {off}        ; Alert/Minute          == off
nv_write svc_area_alert {off}   ; Alert/Service         == off

nv_write call_timer_g {0x00}    ; Last time             == clear(00:00)
nv_write life_timer_g {0x00}    ; All calls time        == clear(00:00)
nv_write life_cnt {0x00}        ; All calls counter     == clear(00)

nv_write bt_onoff {0}		 ; BT chip init			== off
nv_write bt_discoverable {0}     ; BT discoverable state init	== off

nv_write handset_vocoder_codec_gain {0x4000,0x4000,0x4000} ; receiver codec gain value . {tx voice vol,codec tx gain, codec rx gain}
nv_write headset_vocoder_codec_gain{0x3000,0x3000,0x4000} ; headset codec gain value. {tx voice vol,codec tx gain, codec rx gain}
nv_write handset_rx_vocoder_volume{-5000,-800,-500,-200,100,400,700,1000} ; receiver vocodeer volume value.{level 0, level 1, level 2, level 3, level 4,level 5, level 6, level 7}
nv_write headset_rx_vocoder_volume{-5000,-1600,-1200,-800,-400,0,400,800} ; headset vocoder volume value.{level 0, level 1, level 2, level 3, level 4,level 5, level 6, level 7}
nv_write bt_headset_rx_vocoder_volume{-5000,-1600,-1200,-800,-400,0,400,800} ; headset vocoder volume value.{level 0, level 1, level 2, level 3, level 4,level 5, level 6, level 7}


;mic gain 0x00:16dB, 0x10:8dB, 0x20:6dB 0x40:-2dB 
nv_write sndcal_mic_gain 	{0x00, 0x00, 0x00}; 	{handset 16dB, headset 16dB, spkphone 16dB}

nv_write sndcal_sidetone_gain 	{0x0100, 0x0100, 0x0100}; 	sidetone gain{handset, headset, spkphone}

;echo canceler 0x00:OFF, 0x01:ESEC, 0x02:headset, 0x03:AEC, 0x04:SPEAKER, 0x05:DEFAULT
nv_write sndcal_echo_canceler 	{0x01, 0x02, 0x04, 0x00};		echo canceler type{handset, headset, spkphone, BT}

;noise suppresor 0x00:OFF, 0x01:ON, 0x02:DEFAULT
nv_write sndcal_noise_suppresor	{0x01, 0x01, 0x01, 0x00};		noise suppresor {handset, headset, spkphone, BT}

;rx hpf enable 0x00:disable, 0x01:enable
nv_write sndcal_rx_hpf_enable 	{0x00, 0x00, 0x00};		rx HPF enable {handset, headset, spkephone}

;print "charging mode & mru table enable"
nv_write spare_1 {0x2}           ; charging
nv_write spare_2 {0x1}           ; MRU Table Enable

nv_write cdma_rssi_thr{118,114,110,106,102,98,94} ; RSSI value..

nv_write batt_cutoff_adjust{190,132}  ; low temperature battery cutoff  {temperature , cutoff ) 

err_clr 0xff

print "End of Service Programming"
mode reset
