This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

LAUNCHXL-CC1310: rfPacketErrorRate例程如何打印数据包

Part Number: LAUNCHXL-CC1310

尊敬的TI工程师:

      我现在基于simplelink_cc13x0_sdk_4_20_02_07中的rfPacketErrorRate进行改变,将原来例程中发送的数据替换成采集到的ADC数据,但是现在为什么接收端收集到数据后打印出来的结果确是0,代码如下。

if(buffer_flag == 0)
    {
        for (i = 1; i < 125; i++)
          {
            a = i + i ;
            pPacket[a] = packet[a] = (uint8_t)(adc_buffer2[i] >> 8);
            pPacket[a+1] = packet[a+1] = (uint8_t)(adc_buffer2[i]);
          }
    }

    if(buffer_flag == 1)
    {
        for (i = 1; i < 125; i++)
          {
            a = i + i ;
            pPacket[a] = packet[a] =(uint8_t)adc_buffer1[i] >> 8;
            pPacket[a+1] = packet[a+1] =(uint8_t)adc_buffer1[i];
          }
    }

若是我将

            pPacket[a] = packet[a] = (uint8_t)(adc_buffer2[i] >> 8);
            pPacket[a+1] = packet[a+1] = (uint8_t)(adc_buffer2[i]);
替换成
            pPacket[a] = packet[a] = 0xff;
            pPacket[a+1] = packet[a+1] = 0xff;
那么接收端打印出来的数据便是正确的。

我想知道这是什么问题。

期待收到您的回复!