TI中文支持网
TI专业的中文技术问题搜集分享网站

CC2530周期性发送数据定时时间问题

TI员工好,我利用CC2530,一个作协调器,一个作终端,点对点无线通信,终端周期性发送数据给协调器,协调器讲收到的数据串口打印,但速度和理论相差甚远。
发送函数如下:

[C] 纯文本查看 复制代码
?
01
02
03
04
05
06
07
08
09
10
11
12
13
14
15
16
17
18
voidSampleApp_Send_P2P_Message(void)
{
  uint8 data[2]="1";
   
  if( AF_DataRequest( &SampleApp_P2P_DstAddr, &SampleApp_epDesc,
                       SAMPLEAPP_P2P_CLUSTERID,
                       1,
                       data,
                       &SampleApp_TransID,
                       AF_DISCV_ROUTE,
                       AF_DEFAULT_RADIUS ) == afStatus_SUCCESS )
  {
  }
  else
  {
    // Error occurred in request to send.
  }
}

仅发送一个字符串,定时时间为20ms,定时发送函数如下:
            osal_start_timerEx( SampleApp_TaskID,
                              SAMPLEAPP_SEND_PERIODIC_MSG_EVT,
                              SAMPLEAPP_SEND_PERIODIC_MSG_TIMEOUT );// SAMPLEAPP_SEND_PERIODIC_MSG_TIMEOUT为20ms

但测试中,协调器1s内仅能接收到3到4次数据,跟理论相差的有点远,请问时间都耗在哪里呢?是osal_start_timerEx()函数问题吗?  如果想提高通信速率,该怎么解决呢,谢谢各位帮忙

WZ:

这是终端的通信原理的问题,请先参考: http://www.deyisupport.com/question_answer/wireless_connectivity/zigbee/f/104/t/122777.aspx 

Viki Shi:

ZigBee resides on IEEE 802.15.4 transceivers, which in the 2.4 GHz space communicate at 250 kilobits per second (kbps), but by the time retries, encryption/decryption, and the fully acknowledged mesh protocol is applied, the actual through-put is closer to 25 kbps.

赞(0)
未经允许不得转载:TI中文支持网 » CC2530周期性发送数据定时时间问题
分享到: 更多 (0)