|
outman你好,我想问下,就是我的程序点对点通信时,终端发数据给协调器,协调器能接收到,协调器给终端发数据,终端接收不到是怎么回事. PS:终端的地址是对的。
Point_To_Point_DstAddr1.addrMode = (afAddrMode_t)Addr16Bit; //点播
Point_To_Point_DstAddr1.endPoint = SAMPLEAPP_ENDPOINT;;
Point_To_Point_DstAddr1.addr.shortAddr = shortaddr1; //端点的短地址
if ( AF_DataRequest( &Point_To_Point_DstAddr1,
&SampleApp_epDesc,
SAMPLEAPP_POINT_TO_POINT_CLUSTERID,
6,
CMD_string,
&SampleApp_TransID,
AF_DISCV_ROUTE,
AF_DEFAULT_RADIUS ) == afStatus_SUCCESS )
{
HalUARTWrite(0,"BBBB",4);
}
else
{
// Error occurred in request to send.
}
这是协调器发送给终端的部分程序 |
|