MTK手机平台MauiMETA导出的射频参数对应代码修改

硬件工程师在调试完射频参数后,一般都是使用META工具导出一个RF.ini之类的文件给驱动工程师合到代码中,
以下例子是ini对代码的关系:
[AFC control]
RF Chip ID=RF_ID_MT6261RF
Initial value=4541
Slope=7.2240 => C_PSI_STA (需要换算/* C_PSI_STA= sta^(-1) * (2^12), sta=7.2240 */)
[Crystal AFC control]
RF Chip ID=RF_ID_MT6261RF
cap_id=19 => Custom_RF_XO_CapID
[DCXO low power mode data]
cload=57436 => CUSTOM_CLOAD_FREQ_OFFSET
[GSM900 Sub band, RX loss] => AGC_PATHLOSS_GSM900
RF Chip ID=RF_ID_MT6261RF
Max ARFCN=15,30,45,55,65,75,90,105,975,1000,1010,1023
RX loss=3.62500,3.62500,3.62500,3.75000,3.75000,3.62500,3.62500,3.62500,3.62500,3.62500,3.62500,3.625000
[DCS1800 Sub band, RX loss] => AGC_PATHLOSS_DCS1800
RF Chip ID=RF_ID_MT6261RF
Max ARFCN=540,570,600,630,670,700,730,760,790,820,850,885
RX loss=-1.12500,-1.12500,-1.12500,-1.12500,-1.12500,-1.12500,-1.12500,-1.00000,-1.00000,-0.87500,-0.87500,-0.750000
[PCS1900 Sub band, RX loss] => AGC_PATHLOSS_PCS1900
RF Chip ID=RF_ID_MT6261RF
Max ARFCN=530,550,570,600,630,660,690,720,750,770,790,810
RX loss=-0.62500,-0.62500,-0.62500,-0.62500,-0.62500,-0.62500,-0.62500,-0.62500,-0.62500,-0.50000,-0.50000,-0.500000
[GSM850 Sub band, RX loss] => AGC_PATHLOSS_GSM850
RF Chip ID=RF_ID_MT6261RF
Max ARFCN=140,150,160,170,180,190,200,210,220,230,240,251
RX loss=3.37500,3.37500,3.37500,3.25000,3.37500,3.37500,3.37500,3.37500,3.37500,3.37500,3.37500,3.500000
[W Coefficients] => (w_coef)mt6256_51rf.w_data[19]
RF Chip ID=RF_ID_MT6261RF
W image=0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
W real=0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
[BB TX Parameters] => BBTXParameters
RF Chip ID=RF_ID_MT6261RF
BB TX common mode voltage=0 => BBTX_COMMON_MODE_VOLTAGE
BB TX gain=0 => BBTX_GAIN
BB TX calrcsel=0 => BBTX_CALRCSEL
APC bat low voltage=3.50000 => BAT_LOW_VOLTAGE_TRHESHOLD
APC bat high voltage=4.00000 => BAT_HIGH_VOLTAGE_TRHESHOLD
APC bat low temperature=0.00000 => BAT_LOW_TEMPERATURE_TRHESHOLD
APC bat high temperature=50.00000 => BAT_HIGH_TEMPERATURE_TRHESHOLD
Trim I=0 => BBTX_TRIM_I
Trim Q=0 => BBTX_TRIM_Q
Offset I=0 => BBTX_OFFSET_I
Offset Q=0 => BBTX_OFFSET_Q
Calibrated flag=0 =>
BB TX phasesel=0 => BBTX_PHSEL​


如果需要使用以下内容需要把__SLIM_CALIBRATION_DATA__宏禁用,不然就是使用默认的参数
[GSM900 level, ramp] => GSM_RampData
RF Chip ID=RF_ID_MT6261RF
APC dc offset=80
Low APC dc offset=0
APC lowest power=5
TX power level=117,126,136,148,163,180,204,232,268,312,368,439,524,603,698,698
profile 0 ramp up=0,0,0,0,0,0,0,0,0,0,0,29,71,124,184,255
profile 0 ramp down=255,255,255,171,48,0,0,0,0,0,0,0,0,0,0,0
profile 1 ramp up=0,0,0,0,0,0,0,0,0,0,0,0,73,123,180,255
profile 1 ramp down=255,255,255,184,71,0,0,0,0,0,0,0,0,0,0,0
profile 2 ramp up=0,0,0,0,0,0,0,0,0,0,0,0,73,123,180,255
profile 2 ramp down=255,255,255,184,63,0,0,0,0,0,0,0,0,0,0,0
profile 3 ramp up=0,0,0,0,0,0,0,0,0,0,0,33,73,128,186,255
profile 3 ramp down=255,255,255,184,60,0,0,0,0,0,0,0,0,0,0,0
profile 4 ramp up=0,0,0,0,0,0,0,0,0,0,0,0,73,123,180,255
profile 4 ramp down=255,255,255,184,65,0,0,0,0,0,0,0,0,0,0,0
profile 5 ramp up=0,0,0,0,0,0,0,0,0,0,0,0,73,123,180,255
profile 5 ramp down=255,255,255,184,73,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,0,0,37,105,166,255
profile 6 ramp down=255,255,255,160,31,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,0,0,73,123,180,255
profile 7 ramp down=255,255,255,184,75,0,0,0,0,0,0,0,0,0,0,0
profile 8 ramp up=0,0,0,0,0,0,0,0,0,0,0,3,57,116,196,255
profile 8 ramp down=255,255,255,173,54,0,0,0,0,0,0,0,0,0,0,0
profile 9 ramp up=0,0,0,0,0,0,0,0,0,0,0,42,86,140,196,255
profile 9 ramp down=255,255,236,166,53,0,0,0,0,0,0,0,0,0,0,0
profile 10 ramp up=0,0,0,0,0,0,0,0,0,0,0,28,68,131,192,255
profile 10 ramp down=255,255,255,173,108,44,0,0,0,0,0,0,0,0,0,0
profile 11 ramp up=0,0,0,0,0,0,0,0,0,0,0,11,53,111,166,255
profile 11 ramp down=255,255,193,119,76,15,0,0,0,0,0,0,0,0,0,0
profile 12 ramp up=0,0,0,0,0,0,0,0,0,0,0,0,25,73,164,255
profile 12 ramp down=255,255,207,138,52,6,0,0,0,0,0,0,0,0,0,0
profile 13 ramp up=0,0,0,0,0,0,0,0,0,0,0,0,58,132,191,255
profile 13 ramp down=255,255,182,120,61,7,0,0,0,0,0,0,0,0,0,0
profile 14 ramp up=0,0,0,0,0,0,0,0,0,0,0,0,45,115,181,255
profile 14 ramp down=255,255,169,98,44,4,0,0,0,0,0,0,0,0,0,0
profile 15 ramp up=0,0,0,0,0,0,0,0,31,115,191,217,238,247,255,255
profile 15 ramp down=255,255,255,231,106,0,0,0,0,0,0,0,0,0,0,0
Subband max arfcn=0,20,40,62,80,100,124,975,1000,1023,-1
Subband mid level=14,14,14,14,14,14,14,14,14,14,12
Subband high weight=0.97992,0.97992,0.98993,1.00000,1.00000,1.00995,1.01996,0.96991,0.97992,0.97992,0.000000
Subband low weight=1.00000,1.00000,1.00000,1.00000,1.00000,1.00000,1.00000,1.00000,1.00000,1.00000,0.000000
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
[DCS1800 level, ramp] =》DCS_RampData
RF Chip ID=RF_ID_MT6261RF
APC dc offset=80
Low APC dc offset=0
APC lowest power=0
TX power level=124,134,142,152,159,172,191,210,236,267,306,354,410,479,559,635
profile 0 ramp up=0,0,0,0,0,0,0,0,0,0,2,0,40,135,210,255
profile 0 ramp down=255,255,255,235,158,82,20,0,0,0,0,0,0,0,0,0
profile 1 ramp up=0,0,0,0,0,0,0,0,0,0,2,0,75,163,222,255
profile 1 ramp down=255,255,255,242,182,91,0,0,0,0,0,0,0,0,0,0
profile 2 ramp up=0,0,0,0,0,0,0,0,0,0,2,0,57,163,222,255
profile 2 ramp down=255,255,255,247,187,115,0,0,0,0,0,0,0,0,0,0
profile 3 ramp up=0,0,0,0,0,0,0,0,0,0,2,0,57,163,222,255
profile 3 ramp down=255,255,255,241,181,101,0,0,0,0,0,0,0,0,0,0
profile 4 ramp up=0,0,0,0,0,0,0,0,0,0,2,0,57,163,222,255
profile 4 ramp down=255,255,255,237,160,79,0,0,0,0,0,0,0,0,0,0
profile 5 ramp up=0,0,0,0,0,0,0,0,0,0,2,0,57,134,208,255
profile 5 ramp down=255,255,255,227,144,63,0,0,0,0,0,0,0,0,0,0
profile 6 ramp up=0,0,0,0,0,0,0,0,0,0,0,47,98,150,208,255
profile 6 ramp down=255,255,255,225,152,65,0,0,0,0,0,0,0,0,0,0
profile 7 ramp up=0,0,0,0,0,0,0,0,0,0,0,0,72,125,198,255
profile 7 ramp down=255,255,255,213,143,70,0,0,0,0,0,0,0,0,0,0
profile 8 ramp up=0,0,0,0,0,0,0,0,0,0,2,0,57,132,222,255
profile 8 ramp down=255,255,255,211,126,51,0,0,0,0,0,0,0,0,0,0
profile 9 ramp up=0,0,0,0,0,0,0,0,0,0,2,0,46,114,222,255
profile 9 ramp down=255,255,255,209,128,42,0,0,0,0,0,0,0,0,0,0
profile 10 ramp up=0,0,0,0,0,0,0,0,0,0,2,0,59,133,204,255
profile 10 ramp down=255,255,253,193,109,34,0,0,0,0,0,0,0,0,0,0
profile 11 ramp up=0,0,0,0,0,0,0,0,0,0,0,0,42,120,196,255
profile 11 ramp down=255,255,239,144,57,3,0,0,0,0,0,0,0,0,0,0
profile 12 ramp up=0,0,0,0,0,0,0,0,0,0,0,0,63,121,175,255
profile 12 ramp down=255,255,239,120,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,0,0,0,41,95,182,255
profile 13 ramp down=255,255,239,118,0,0,0,0,0,0,0,0,0,0,0,0
profile 14 ramp up=0,0,0,0,0,0,0,0,0,0,0,0,39,111,191,255
profile 14 ramp down=255,255,255,135,53,0,0,0,0,0,0,0,0,0,0,0
profile 15 ramp up=0,0,0,0,0,0,0,0,0,0,0,0,67,122,179,255
profile 15 ramp down=255,255,176,110,66,14,0,0,0,0,0,0,0,0,0,0

Subband max arfcn=512,540,580,620,660,700,740,780,830,885,-1
Subband mid level=12,12,12,12,12,12,12,12,12,12,15
Subband high weight=1.03595,1.03479,1.02997,1.02997,1.02997,1.02997,1.02997,1.02997,1.02997,1.02997,0.000000
Subband low weight=1.00000,1.00000,1.00000,1.00000,1.00000,1.00000,1.00000,1.00000,1.00000,1.00000,0.000000
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
[PCS1900 level, ramp] =》 PCS_RampData
RF Chip ID=RF_ID_MT6261RF
APC dc offset=80
Low APC dc offset=0
APC lowest power=0
TX power level=119,128,136,145,155,169,186,206,231,261,300,344,406,471,555,637
profile 0 ramp up=0,0,0,0,0,0,0,0,0,0,2,44,85,141,201,255
profile 0 ramp down=255,255,255,213,139,57,0,0,0,0,0,0,0,0,0,0
profile 1 ramp up=0,0,0,0,0,0,0,0,0,0,0,35,95,161,222,255
profile 1 ramp down=255,255,255,247,173,88,26,0,0,0,0,0,0,0,0,0
profile 2 ramp up=0,0,0,0,0,0,0,0,0,0,0,34,96,166,222,255
profile 2 ramp down=255,255,255,238,182,114,40,0,0,0,0,0,0,0,0,0
profile 3 ramp up=0,0,0,0,0,0,0,0,0,0,0,0,35,97,183,255
profile 3 ramp down=255,255,255,193,106,26,0,0,0,0,0,0,0,0,0,0
profile 4 ramp up=0,0,0,0,0,0,0,0,0,0,0,36,97,171,222,255
profile 4 ramp down=255,255,255,233,163,85,29,0,0,0,0,0,0,0,0,0
profile 5 ramp up=0,0,0,0,0,0,0,0,0,0,0,34,90,151,208,255
profile 5 ramp down=255,255,255,222,160,85,27,0,0,0,0,0,0,0,0,0
profile 6 ramp up=0,0,0,0,0,0,0,0,0,0,0,33,89,164,215,255
profile 6 ramp down=255,255,244,191,112,41,0,0,0,0,0,0,0,0,0,0
profile 7 ramp up=0,0,0,0,0,0,0,0,0,0,0,28,83,146,212,255
profile 7 ramp down=255,255,255,217,132,44,0,0,0,0,0,0,0,0,0,0
profile 8 ramp up=0,0,0,0,0,0,0,0,0,0,0,21,80,148,210,255
profile 8 ramp down=255,255,255,231,146,81,17,0,0,0,0,0,0,0,0,0
profile 9 ramp up=0,0,0,0,0,0,0,0,0,0,0,17,64,125,192,255
profile 9 ramp down=255,255,255,195,116,49,0,0,0,0,0,0,0,0,0,0
profile 10 ramp up=0,0,0,0,0,0,0,0,0,0,0,0,61,124,201,255
profile 10 ramp down=255,255,255,186,119,48,0,0,0,0,0,0,0,0,0,0
profile 11 ramp up=0,0,0,0,0,0,0,0,0,0,0,29,72,139,200,255
profile 11 ramp down=255,255,240,164,84,28,0,0,0,0,0,0,0,0,0,0
profile 12 ramp up=0,0,0,0,0,0,0,0,0,0,0,0,40,84,188,255
profile 12 ramp down=255,255,255,185,97,36,0,0,0,0,0,0,0,0,0,0
profile 13 ramp up=0,0,0,0,0,0,0,0,0,0,0,0,27,79,197,255
profile 13 ramp down=255,255,255,174,77,22,0,0,0,0,0,0,0,0,0,0
profile 14 ramp up=0,0,0,0,0,0,0,0,0,0,0,0,56,120,182,255
profile 14 ramp down=255,255,195,121,55,0,0,0,0,0,0,0,0,0,0,0
profile 15 ramp up=0,0,0,0,0,0,0,0,0,0,0,36,75,122,181,255
profile 15 ramp down=255,255,197,120,56,0,0,0,0,0,0,0,0,0,0,0
Subband max arfcn=512,550,600,660,700,750,810,-1,-1,-1,-1
Subband mid level=12,12,12,12,12,12,12,15,15,15,15
Subband high weight=0.99176,0.99292,1.00000,1.00995,1.01996,1.03998,1.06995,0.00000,0.00000,0.00000,0.000000
Subband low weight=1.00000,1.00000,1.00000,1.00000,1.00000,1.00000,1.00000,0.00000,0.00000,0.00000,0.000000
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
[GSM850 level, ramp] =》 GSM850_RampData
RF Chip ID=RF_ID_MT6261RF
APC dc offset=80
Low APC dc offset=0
APC lowest power=5
TX power level=120,128,139,151,168,186,210,239,277,322,378,447,533,611,721,721
profile 0 ramp up=0,0,0,0,0,0,0,0,0,0,0,0,31,104,191,255
profile 0 ramp down=255,255,255,188,112,41,0,0,0,0,0,0,0,0,0,0
profile 1 ramp up=0,0,0,0,0,0,0,0,0,0,0,0,40,120,200,255
profile 1 ramp down=255,255,255,208,128,50,0,0,0,0,0,0,0,0,0,0
profile 2 ramp up=0,0,0,0,0,0,0,0,0,0,0,0,35,111,191,255
profile 2 ramp down=255,255,255,202,120,40,0,0,0,0,0,0,0,0,0,0
profile 3 ramp up=0,0,0,0,0,0,0,0,0,0,0,0,23,86,168,255
profile 3 ramp down=255,255,255,226,130,44,0,0,0,0,0,0,0,0,0,0
profile 4 ramp up=0,0,0,0,0,0,0,0,0,0,0,0,33,92,180,255
profile 4 ramp down=255,255,255,222,142,57,0,0,0,0,0,0,0,0,0,0
profile 5 ramp up=0,0,0,0,0,0,0,0,0,0,0,0,35,93,180,255
profile 5 ramp down=255,255,255,218,141,71,0,0,0,0,0,0,0,0,0,0
profile 6 ramp up=0,0,0,0,0,0,0,0,0,0,0,0,41,99,180,255
profile 6 ramp down=255,255,255,196,130,54,0,0,0,0,0,0,0,0,0,0
profile 7 ramp up=0,0,0,0,0,0,0,0,0,0,0,0,18,87,172,255
profile 7 ramp down=255,255,255,213,135,57,0,0,0,0,0,0,0,0,0,0
profile 8 ramp up=0,0,0,0,0,0,0,0,0,0,0,0,36,97,180,255
profile 8 ramp down=255,255,248,177,102,34,0,0,0,0,0,0,0,0,0,0
profile 9 ramp up=0,0,0,0,0,0,0,0,0,0,0,0,31,88,168,255
profile 9 ramp down=255,255,255,191,115,32,0,0,0,0,0,0,0,0,0,0
profile 10 ramp up=0,0,0,0,0,0,0,0,0,0,0,0,22,60,182,255
profile 10 ramp down=255,255,255,195,113,43,0,0,0,0,0,0,0,0,0,0
profile 11 ramp up=0,0,0,0,0,0,0,0,0,0,0,0,34,108,209,255
profile 11 ramp down=255,255,255,177,94,0,0,0,0,0,0,0,0,0,0,0
profile 12 ramp up=0,0,0,0,0,0,0,0,0,0,0,15,57,111,184,255
profile 12 ramp down=255,255,255,158,70,0,0,0,0,0,0,0,0,0,0,0
profile 13 ramp up=0,0,0,0,0,0,0,0,0,0,0,16,76,135,196,255
profile 13 ramp down=255,255,158,96,51,3,0,0,0,0,0,0,0,0,0,0
profile 14 ramp up=0,0,0,0,0,0,0,0,0,0,0,13,71,146,213,255
profile 14 ramp down=255,255,181,101,31,0,0,0,4,0,0,0,0,0,0,0
profile 15 ramp up=0,0,0,0,0,0,0,0,31,115,191,217,238,247,255,255
profile 15 ramp down=255,255,255,231,106,0,0,0,0,0,0,0,0,0,0,0
Subband max arfcn=128,140,160,190,210,230,251,-1,-1,-1,-1
Subband mid level=15,15,15,15,15,15,15,19,19,19,19
Subband high weight=1.01776,1.01477,1.01099,1.00000,0.99799,0.99585,0.99292,0.00000,0.00000,0.00000,0.000000
Subband low weight=1.00000,1.00000,1.00000,1.00000,1.00000,1.00000,1.00000,0.00000,0.00000,0.00000,0.000000
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
[BT Info]
Crystal CAP ID=255
[ADC control]
offset=14466,14466,14466,14466,14466,14466,14466,14466,14466,14466,14466,14466,14466,14466,14466,14466
slope=5434,5434,5434,5434,5434,5434,5434,5434,5434,5434,5434,5434,5434,5434,5434,5434
[WiFi TX DC Offset]
I_DC=0
Q_DC=0
[WiFi TX power 2.4G]
TX power CCK=19,19,0,0,0,0,0,0,0,0,0,0,0,0
TX power OFDM=16,16,16,16,14,14,0,0,0,0,0,0,0,0
[WiFi MAC Address]
Address=0,12,231,0,0,0​

★博文内容均由个人提供,与平台无关,如有违法或侵权,请与网站管理员联系。

★文明上网,请理性发言。内容一周内被举报5次,发文人进小黑屋喔~

评论