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: Zstack 2.5.1a AF_DataRequest发送数据,接收不完整的问题

Part Number: CC2530

在Zstack 2.5.1a中,Coordinator节点使用AF_DataRequest发送一组十六进制数据uint8 theMessageData[128] = {0x02, 0x03, 0x10, 0x00, 0x35, 0x00, 0xF2, 0x00}; 

使用EndDevice接收,但收到的数据只有{02 03 10},请问为什么会出现这样的问题?如何解决?

主要代码如下:

Fullscreen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
//
if ( events & X1_KEY_EVT )
{
GenericApp_SendTheMessage(); //Hello World
HalUARTWrite(0, "The Key is down\n", sizeof("The Key is down\n"));
HalLedSet(HAL_LED_1, HAL_LED_MODE_TOGGLE);
return (events ^ X1_KEY_EVT);
}
static void GenericApp_SendTheMessage( void )
{
// char theMessageData[] = "Hello World!\n";
uint8 theMessageData[128] = {0x02, 0x03, 0x10, 0x00, 0x35, 0x00, 0xF2, 0x00};
AF_DataRequest( &GenericApp_DstAddr, &GenericApp_epDesc,
GENERICAPP_CLUSTERID,
(byte)osal_strlen( theMessageData ) + 1,
(byte *)&theMessageData,
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

x 出现错误。请重试或与管理员联系。