您的位置:首页 > 其它

MTK校准默认参数修改(2010-3-29 16:16)

2015-12-13 15:56 615 查看
随着市场的激烈变化,MTK平台手机研发周期大大缩短到一个月内,往往机器出货了,软件还在不断的的更新,根据不同的客户需求,软件版本有许多种.往往升级时需要格式化下载,这样的话会造成格式话掉了校准参数和IMEI号.
这样就迫切需要一种方法来保存好已校准好的参数和IMEI号.
一般有下面几种方法:
1.使用MTK提供的META工具的 Updata Parameters项读出已校准好的参数,升完级以后再把这个参数写回本机中.
2.为校准参数划分空间范围,格式化升级的范围在参数之外!
对于128Mbit的NORFLASH 参数备份在0x00E00000-0x00EF0000中
Begin Address : 0x00F00000 Format Length : 0x00100000

对于256Mbit的NORFLASH 参数备份在0x00100000-0x00150000中
Begin Address : 0x01600000 Format Length : 0x00A00000
3.提取多台样机的校准参数,然后给出一个合适的默认值写到代码中.
这样,所有的机器就共用一个默认参数,对使用来说影响不大.
上述三种方式各有利弊,第1种应该算保存校准参数最好的方式,但好费时间,增加了升级的工序量.第2种由于存储是动态的,这样版本更新较多时,会出现格式化不彻底的问题!但比较方便!第3种是最勉强的方法,虽说不能完全保存校准参数,但不影响出货,因为不是所有的手机的天线辐射性能都一样,在一个范围内!同时升完级还要重写一下IMEI,相对于第一种要简单点.当然第2种方法再改进一下是最好的.还待继续研究!
下面就说说第三种方法的修改地方和内容:
/* m12193.h[ #define PSI_EE (4100);#define C_PSI_STA (585) ]*/
[AFC control]

Initial value=4110

Slope=7.4608
/*l1d_custom_rf.h*/
[Crystal AFC control]

cap_id=31
/*m12193.c*/

[GSM900 Sub band, RX loss]

Max ARFCN=15,30,40,50,60,70,80,95,110,124,1000,1023

RX loss=2.125,2.375,2.250,2.000,2.000,1.625,1.625,1.875,2.250,2.375,0.750,1.6250

[DCS1800 Sub band, RX loss]

Max ARFCN=550,580,610,640,670,700,730,760,790,820,850,885

RX loss=1.625,2.000,2.000,1.875,1.875,1.625,1.625,1.875,1.875,2.250,2.125,1.8750

[PCS1900 Sub band, RX loss]

Max ARFCN=540,565,590,615,640,665,690,715,740,765,790,810

RX loss=3.375,3.125,3.000,2.750,2.625,2.875,3.000,3.500,3.875,4.125,4.250,4.1250

[GSM850 Sub band, RX loss]

Max ARFCN=140,150,160,170,180,190,200,210,220,230,240,251

RX loss=2.750,4.000,4.750,4.625,4.000,3.250,2.875,3.625,5.125,6.500,7.500,7.8750
/*l1d_rf.h*/
[BB TX Parameters]

BB TX common mode voltage=-1

BB TX gain=-1

BB TX calrcsel=-2

APC bat low voltage=3.50000

APC bat high voltage=4.00000

APC bat low temperature=0.00000

APC bat high temperature=50.00000

Trim I=-1

Trim Q=0

Offset I=1

Offset Q=-2

Calibrated flag=0

BB TX phasesel=0
/*m12193.c*/
[GSM900 level, ramp]

APC dc offset=0

Low APC dc offset=0

APC lowest power=0

TX power level=195,266,312,359,379,416,444,490,548,621,713,736,781,822,878,878

profile 0 ramp up=0,0,0,0,0,40,40,80,100,120,160,220,240,250,255,255

profile 0 ramp down=255,220,200,0,0,0,0,0,0,0,0,0,0,0,0,0

profile 1 ramp up=0,0,0,0,0,40,40,80,80,110,150,220,240,250,255,255

profile 1 ramp down=255,220,200,180,0,0,0,0,0,0,0,0,0,0,0,0

profile 2 ramp up=0,0,0,0,0,0,40,80,100,120,190,220,240,250,255,255

profile 2 ramp down=255,245,230,180,110,0,0,0,0,0,0,0,0,0,0,0

profile 3 ramp up=0,0,0,0,0,40,40,80,80,110,150,220,240,250,255,255

profile 3 ramp down=255,240,220,180,0,0,0,0,0,0,0,0,0,0,0,0

profile 4 ramp up=0,0,0,0,0,40,40,80,80,110,150,220,240,250,255,250

profile 4 ramp down=255,220,200,180,0,0,0,0,0,0,0,0,0,0,0,0

profile 5 ramp up=0,0,0,0,0,0,0,0,50,100,150,200,255,255,255,250

profile 5 ramp down=255,240,220,180,130,100,0,0,0,0,0,0,0,0,0,0

profile 6 ramp up=0,0,0,0,0,50,80,80,160,180,220,240,250,255,255,255

profile 6 ramp down=255,240,220,180,130,100,0,0,0,0,0,0,0,0,0,0

profile 7 ramp up=0,0,0,0,0,0,80,80,160,180,220,240,250,255,255,255

profile 7 ramp down=255,240,220,180,130,100,0,0,0,0,0,0,0,0,0,0

profile 8 ramp up=0,0,0,0,0,0,80,80,180,200,220,240,250,255,255,255

profile 8 ramp down=255,240,220,180,130,100,0,0,0,0,0,0,0,0,0,0

profile 9 ramp up=0,0,0,0,0,0,80,80,160,180,210,240,250,255,255,253

profile 9 ramp down=255,240,220,180,130,100,0,0,0,0,0,0,0,0,0,0

profile 10 ramp up=0,0,0,0,0,0,40,40,100,110,180,230,250,255,255,255

profile 10 ramp down=255,240,220,180,130,100,0,0,0,0,0,0,0,0,0,0

profile 11 ramp up=0,0,0,0,0,0,80,40,165,175,200,240,243,250,255,253

profile 11 ramp down=255,240,220,180,130,110,0,0,0,0,0,0,0,0,0,0

profile 12 ramp up=0,0,0,0,0,40,40,100,120,180,230,255,255,255,255,255

profile 12 ramp down=250,240,200,160,110,80,0,0,0,0,0,0,0,0,0,0

profile 13 ramp up=0,0,0,0,0,0,80,40,160,180,220,240,250,255,255,255

profile 13 ramp down=255,240,220,180,130,100,0,0,0,0,0,0,0,0,0,0

profile 14 ramp up=0,0,0,0,0,0,40,40,100,110,180,230,250,255,255,255

profile 14 ramp down=255,243,225,200,50,70,0,0,0,0,0,0,0,0,0,0

profile 15 ramp up=0,0,0,0,0,0,0,0,0,8,25,65,145,219,255,255

profile 15 ramp down=255,239,197,138,78,32,10,0,0,0,0,0,0,0,0,0

Subband max arfcn=40,82,124,1000,1023,-1,0,0,0,0,0

Subband mid level=11,11,11,11,11,11,11,11,11,11,11

Subband high weight=1.010,1.015,1.015,1.010,1.010,1.000,1.000,1.000,1.000,1.000,1.0000

Subband low weight=1.010,1.015,1.015,1.010,1.010,1.000,1.000,1.000,1.000,1.000,1.0000

Battery compensate, low voltage, low temperature=1.00000

Battery compensate, low voltage, mid temperature=1.00000

Battery compensate, low voltage, high temperature=1.00000

Battery compensate, mid voltage, low temperature=1.00000

Battery compensate, mid voltage, mid temperature=1.00000

Battery compensate, mid voltage, high temperature=1.00000

Battery compensate, high voltage, low temperature=1.00000

Battery compensate, high voltage, mid temperature=1.00000

Battery compensate, high voltage, high temperature=1.00000

TX AFC DAC offset=4 /*l1d_data.c AFC_Dac_TRx_Offset[2]*/

[DCS1800 level, ramp]

APC dc offset=70

Low APC dc offset=0

APC lowest power=0

TX power level=70,92,117,159,213,251,294,349,420,561,641,678,722,776,826,894

profile 0 ramp up=0,0,0,0,0,0,0,1,50,50,220,220,250,255,255,252

profile 0 ramp down=254,240,182,64,23,4,10,0,0,0,0,0,0,0,0,0

profile 1 ramp up=0,0,0,0,0,0,0,0,0,30,50,100,200,215,245,250

profile 1 ramp down=245,235,120,80,0,0,0,0,0,0,0,0,0,0,0,0

profile 2 ramp up=0,0,0,0,0,0,0,0,30,50,100,200,215,245,250,250

profile 2 ramp down=245,235,120,80,0,0,0,0,0,0,0,0,0,0,0,0

profile 3 ramp up=0,0,0,0,0,0,0,0,30,50,100,200,215,245,250,250

profile 3 ramp down=245,235,120,80,0,0,0,0,0,0,0,0,0,0,0,0

profile 4 ramp up=0,0,0,0,0,0,0,0,30,50,100,200,215,245,250,250

profile 4 ramp down=245,235,120,80,0,0,0,0,0,0,0,0,0,0,0,0

profile 5 ramp up=0,0,0,0,0,0,0,0,30,50,100,200,215,245,250,250

profile 5 ramp down=245,235,120,80,0,0,0,0,0,0,0,0,0,0,0,0

profile 6 ramp up=0,0,0,0,0,0,0,30,50,100,150,200,230,250,250,250

profile 6 ramp down=245,200,140,80,50,0,0,0,0,0,0,0,0,0,0,0

profile 7 ramp up=0,0,0,0,0,0,0,30,50,100,150,200,240,245,250,250

profile 7 ramp down=240,230,160,120,80,0,0,0,0,0,0,0,0,0,0,0

profile 8 ramp up=0,0,0,0,0,0,0,30,50,100,150,200,230,255,255,250

profile 8 ramp down=250,230,160,120,80,0,0,0,0,0,0,0,0,0,0,0

profile 9 ramp up=0,0,0,0,0,0,0,30,50,100,150,200,230,255,255,250

profile 9 ramp down=250,225,205,160,120,80,0,0,0,0,0,0,0,0,0,0

profile 10 ramp up=0,0,0,0,0,0,30,50,100,150,200,215,230,245,255,250

profile 10 ramp down=250,225,205,160,120,80,0,0,0,0,0,0,0,0,0,0

profile 11 ramp up=0,0,0,0,0,0,30,50,100,150,200,240,250,255,255,250

profile 11 ramp down=250,235,200,160,120,60,0,0,0,0,0,0,0,0,0,0

profile 12 ramp up=0,0,0,0,0,0,30,50,100,150,200,240,250,255,255,250

profile 12 ramp down=250,235,200,160,120,60,0,0,0,0,0,0,0,0,0,0

profile 13 ramp up=0,0,0,0,0,0,0,60,160,190,220,240,250,255,255,255

profile 13 ramp down=255,243,220,190,110,80,0,0,0,0,0,0,0,0,0,0

profile 14 ramp up=0,0,0,0,0,0,0,60,160,190,220,240,250,255,255,255

profile 14 ramp down=255,243,220,190,110,80,0,0,0,0,0,0,0,0,0,0

profile 15 ramp up=0,0,0,0,0,0,30,50,100,150,200,215,230,245,255,250

profile 15 ramp down=250,225,205,160,100,100,0,0,0,0,0,0,0,0,0,0

Subband max arfcn=580,660,680,720,800,885,-1,-1,-1,-1,-1

Subband mid level=7,7,7,7,7,7,7,7,7,7,7

Subband high weight=0.980,0.992,0.993,0.993,0.992,0.992,1.000,1.000,1.000,1.000,1.0000

Subband low weight=0.990,0.995,0.997,0.997,0.995,0.992,1.000,1.000,1.000,1.000,1.0000

Battery compensate, low voltage, low temperature=1.00000

Battery compensate, low voltage, mid temperature=1.00000

Battery compensate, low voltage, high temperature=1.00000

Battery compensate, mid voltage, low temperature=1.00000

Battery compensate, mid voltage, mid temperature=1.00000

Battery compensate, mid voltage, high temperature=1.00000

Battery compensate, high voltage, low temperature=1.00000

Battery compensate, high voltage, mid temperature=1.00000

Battery compensate, high voltage, high temperature=1.00000

TX AFC DAC offset=2 /*AFC_Dac_TRx_Offset[3]*/

[PCS1900 level, ramp]

APC dc offset=70

Low APC dc offset=0

APC lowest power=0

TX power level=93,114,150,198,255,291,334,390,466,557,626,663,700,748,791,850

profile 0 ramp up=0,0,0,0,0,0,0,0,1,50,50,220,220,250,255,255

profile 0 ramp down=250,120,0,0,0,0,0,0,0,0,0,0,0,0,0,0

profile 1 ramp up=0,0,0,0,0,0,0,0,0,30,50,100,200,215,245,250

profile 1 ramp down=235,120,80,0,0,0,0,0,0,0,0,0,0,0,0,0

profile 2 ramp up=0,0,0,0,0,0,0,0,0,30,50,100,200,215,245,250

profile 2 ramp down=235,120,80,0,0,0,0,0,0,0,0,0,0,0,0,0

profile 3 ramp up=0,0,0,0,0,0,0,0,0,30,50,100,200,215,245,250

profile 3 ramp down=235,120,80,0,0,0,0,0,0,0,0,0,0,0,0,0

profile 4 ramp up=0,0,0,0,0,0,0,0,0,30,50,100,200,215,245,250

profile 4 ramp down=235,120,80,0,0,0,0,0,0,0,0,0,0,0,0,0

profile 5 ramp up=0,0,0,0,0,0,0,0,0,30,50,100,200,215,245,250

profile 5 ramp down=245,235,120,80,0,0,0,0,0,0,0,0,0,0,0,0

profile 6 ramp up=0,0,0,0,0,0,0,0,0,0,50,100,220,250,255,255

profile 6 ramp down=250,225,180,40,0,0,0,0,0,0,0,0,0,0,0,0

profile 7 ramp up=0,0,0,0,0,0,0,0,0,0,20,100,220,250,255,255

profile 7 ramp down=250,225,180,40,0,0,0,0,0,0,0,0,0,0,0,0

profile 8 ramp up=0,0,0,0,0,0,0,0,0,50,120,160,220,250,255,255

profile 8 ramp down=250,225,180,40,0,0,0,0,0,0,0,0,0,0,0,0

profile 9 ramp up=0,0,0,0,0,0,0,0,0,50,120,160,220,250,255,255

profile 9 ramp down=250,225,180,40,0,0,0,0,0,0,0,0,0,0,0,0

profile 10 ramp up=0,0,0,0,0,0,0,0,0,50,120,160,220,250,255,255

profile 10 ramp down=250,225,180,40,0,0,0,0,0,0,0,0,0,0,0,0

profile 11 ramp up=0,0,0,0,0,0,0,0,0,50,120,160,220,250,255,255

profile 11 ramp down=250,225,180,40,0,0,0,0,0,0,0,0,0,0,0,0

profile 12 ramp up=0,0,0,0,0,0,0,0,0,50,120,160,220,250,255,255

profile 12 ramp down=250,225,180,40,0,0,0,0,0,0,0,0,0,0,0,0

profile 13 ramp up=0,0,0,0,0,0,0,0,0,50,120,160,220,250,255,255

profile 13 ramp down=250,225,180,40,0,0,0,0,0,0,0,0,0,0,0,0

profile 14 ramp up=0,0,0,0,0,0,0,0,50,120,160,220,250,255,255,255

profile 14 ramp down=250,225,180,40,0,0,0,0,0,0,0,0,0,0,0,0

profile 15 ramp up=0,0,0,0,0,0,0,0,0,50,120,220,245,250,255,255

profile 15 ramp down=250,225,180,40,0,0,0,0,0,0,0,0,0,0,0,0

Subband max arfcn=512,580,620,650,700,750,810,-1,-1,-1,-1

Subband mid level=11,11,11,11,11,11,11,11,11,11,11

Subband high weight=1.000,1.000,1.000,1.000,1.000,1.000,1.000,0.000,0.000,0.000,0.0000

Subband low weight=1.000,1.000,1.000,1.000,1.000,1.000,1.000,0.000,0.000,0.000,0.0000

Battery compensate, low voltage, low temperature=1.00000

Battery compensate, low voltage, mid temperature=1.00000

Battery compensate, low voltage, high temperature=1.00000

Battery compensate, mid voltage, low temperature=1.00000

Battery compensate, mid voltage, mid temperature=1.00000

Battery compensate, mid voltage, high temperature=1.00000

Battery compensate, high voltage, low temperature=1.00000

Battery compensate, high voltage, mid temperature=1.00000

Battery compensate, high voltage, high temperature=1.00000

TX AFC DAC offset=3 /*AFC_Dac_TRx_Offset[4]*/

[GSM850 level, ramp]

APC dc offset=0

Low APC dc offset=0

APC lowest power=0

TX power level=229,281,327,375,394,431,458,503,559,630,719,747,796,841,902,902

profile 0 ramp up=0,0,0,0,0,40,40,80,100,120,160,220,240,250,255,255

profile 0 ramp down=255,220,200,0,0,0,0,0,0,0,0,0,0,0,0,0

profile 1 ramp up=0,0,0,0,0,40,40,80,80,110,150,220,240,250,255,255

profile 1 ramp down=255,220,200,180,0,0,0,0,0,0,0,0,0,0,0,0

profile 2 ramp up=0,0,0,0,0,0,40,80,100,120,190,220,240,250,255,255

profile 2 ramp down=255,245,230,180,110,0,0,0,0,0,0,0,0,0,0,0

profile 3 ramp up=0,0,0,0,0,40,40,80,80,110,150,220,240,250,255,255

profile 3 ramp down=255,240,220,180,0,0,0,0,0,0,0,0,0,0,0,0

profile 4 ramp up=0,0,0,0,0,40,40,80,80,110,150,220,240,250,255,250

profile 4 ramp down=255,220,200,180,0,0,0,0,0,0,0,0,0,0,0,0

profile 5 ramp up=0,0,0,0,0,0,0,0,50,100,150,200,255,255,255,250

profile 5 ramp down=255,240,220,180,130,100,0,0,0,0,0,0,0,0,0,0

profile 6 ramp up=0,0,0,0,0,50,80,80,160,180,220,240,250,255,255,255

profile 6 ramp down=255,240,220,180,130,100,0,0,0,0,0,0,0,0,0,0

profile 7 ramp up=0,0,0,0,0,0,80,80,160,180,220,240,250,255,255,255

profile 7 ramp down=255,240,220,180,130,100,0,0,0,0,0,0,0,0,0,0

profile 8 ramp up=0,0,0,0,0,0,80,80,180,200,220,240,250,255,255,255

profile 8 ramp down=255,240,220,180,130,100,0,0,0,0,0,0,0,0,0,0

profile 9 ramp up=0,0,0,0,0,0,80,80,160,180,210,240,250,255,255,253

profile 9 ramp down=255,240,220,180,130,100,0,0,0,0,0,0,0,0,0,0

profile 10 ramp up=0,0,0,0,0,0,40,40,100,110,180,230,250,255,255,255

profile 10 ramp down=255,240,220,180,130,100,0,0,0,0,0,0,0,0,0,0

profile 11 ramp up=0,0,0,0,0,0,80,40,165,175,200,240,243,250,255,253

profile 11 ramp down=255,240,220,180,130,110,0,0,0,0,0,0,0,0,0,0

profile 12 ramp up=0,0,0,0,0,0,40,40,100,120,180,230,255,255,255,250

profile 12 ramp down=240,215,160,110,80,0,0,0,0,0,0,0,0,0,0,0

profile 13 ramp up=0,0,0,0,0,0,80,40,160,180,220,240,250,255,255,255

profile 13 ramp down=255,240,220,180,130,100,0,0,0,0,0,0,0,0,0,0

profile 14 ramp up=0,0,0,0,0,0,40,40,100,110,180,230,250,255,255,250

profile 14 ramp down=255,243,225,200,50,70,0,0,0,0,0,0,0,0,0,0

profile 15 ramp up=0,0,0,0,0,0,0,0,0,8,25,65,145,219,255,255

profile 15 ramp down=255,239,197,138,78,32,10,0,0,0,0,0,0,0,0,0

Subband max arfcn=128,160,251,-1,-1,-1,-1,-1,-1,-1,-1

Subband mid level=11,11,11,11,11,11,11,11,11,11,11

Subband high weight=1.010,1.015,1.015,1.010,1.010,1.000,1.000,1.000,1.000,1.000,1.0000

Subband low weight=1.010,1.015,1.015,1.010,1.010,1.000,1.000,1.000,1.000,1.000,1.0000

Battery compensate, low voltage, low temperature=1.00000

Battery compensate, low voltage, mid temperature=1.00000

Battery compensate, low voltage, high temperature=1.00000

Battery compensate, mid voltage, low temperature=1.00000

Battery compensate, mid voltage, mid temperature=1.00000

Battery compensate, mid voltage, high temperature=1.00000

Battery compensate, high voltage, low temperature=1.00000

Battery compensate, high voltage, mid temperature=1.00000

Battery compensate, high voltage, high temperature=1.00000

TX AFC DAC offset=0 /*AFC_Dac_TRx_Offset[1]*/
[BT Info]

Crystal CAP ID=127
/*chr_parameter.c*/
[ADC control]

offset=30868,46190,30868,30868,30868,30868,30868

slope=5435,5408,5435,5435,5435,5435,5435
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: