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.

CC2530定位rssi值

Other Parts Discussed in Thread: CC2530

现在在做cc2530 定位,组播通信方式,设置了两个路由器来转发终端发来的数据,然后在发给协调器,协调器通过pkt->rssi获取rssi值。

如果要定位设置参考节点(路由器)怎么在协调器上获取不同参考节点转发过来的数据包的rssi值来进行定位?

协调器上的接收数据函数:

void SDApp_MessageMSGCB( afIncomingMSGPacket_t *pkt )
{       
  uint8 rssi_buf[3];

  if(0x0001 == pkt->groupId) //组别为1
  {
    if(10 == pkt->endPoint) //房间号为10
    {
      switch(pkt->clusterId) //簇号为0001
      {
      case 0x0001:
        rssi_buf[0] = pkt->rssi;
        Uart_Send_String(rssi_buf,1);
        HalLedBlink (HAL_LED_1, 5, 50, 1000);           
        break;
      }
    }
  }
 }