Rx Power Calibration(2)

来源:互联网 发布:魔法王座圣灵升阶数据 编辑:程序博客网 时间:2024/04/28 08:53

我觉得这种Rx Calibration的方法整合了拟合、解出参数的好处。
根据SFF8472协议,我们知道measuared Rx Power(Rx_PWR (μW))跟Raw Rx Power(Rx_PWRAD)之间的关系是:
Rx_PWR (μW) =  Rx_PWR(4)*Rx_PWRAD4 (16 bit unsigned integer)
  +Rx_PWR(3)*Rx_PWRAD3(16 bit unsigned integer)
  +Rx_PWR(2)*Rx_PWRAD2(16 bit unsigned integer)
  +Rx_PWR(1)*Rx_PWRAD (16 bit unsigned integer)
  +Rx_PWR(0)

其测试的过程为:
1. 设定Starting Power 和 Ending Power,以1dB为step,逐步逼近Ending Power,并读出EEprom里面的Raw Value。
至此生成两个数组:Rx_PWR (μW)和Raw Rx Power,数组的长度为(Starting Power(dB) - Ending Power(dB))/1(dB).

2. 再由Raw Rx Power根据measuared Rx Power(Rx_PWR (μW))跟Raw Rx Power(Rx_PWRAD)之间的关系生成一个二维数组

3. 接下来用General LS Linear Fit .vi解出拟合出来的5系数。

4. 在Front Panel XY Graph的横轴是Raw Rx Power,纵轴的有两个数据一个是measuared Rx Power,另一个是General LS Linear Fit.vi根据解出的值和Raw Rx Power算出的一个最佳的Rx Power。

5. 将General LS Linear Fit .vi解出的5个系数写入EEprom。


原创粉丝点击