完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
本帖最后由 一只耳朵怪 于 2018-5-24 11:22 编辑
ZLongAddr_t ZLA_t_2=[0x00,0x12,0x4b,0x00,0x05,0x3c,0xec,0x38];//节点64位真实地址 ZLongAddr_t ZLA_t_3=[0x00,0x12,0x4b,0x00,0x01,0x16,0xda,0x52];//节点64位真实地址 我的点播函数 void GenericApp_SendTheMessage_etx(ZLongAddr_t ZLA_t_x,uint8 clustor_x) [ uint8 i; afAddrType_t P2P_DstAddr; P2P_DstAddr.addrMode = (afAddrMode_t)Addr64Bit; P2P_DstAddr.endPoint = GENERICAPP_ENDPOINT; for(i=0;i<8;i++) [ P2P_DstAddr.addr.extAddr =ZLA_t_x; //向etx设备发送消息 ] //osal_memcpy(&P2P_DstAddr.addr.extAddr, &ZLA_t_x, 1); if ( AF_DataRequest( &P2P_DstAddr, &GenericApp_epDesc, clustor_x, 2, RxBuf, &GenericApp_TransID, AF_DISCV_ROUTE, AF_DEFAULT_RADIUS ) == afStatus_SUCCESS ) [ // Successfully requested to be sent. ] else [ // Error occurred in request to send. ] ] GenericApp_SendTheMessage_etx(ZLA_t_2,GENERICAPP_CLUSTERID); GenericApp_SendTheMessage_etx(ZLA_t_3,GENERICAPP_CLUSTERID); switch ( pkt->clusterId ) [ case GENERICAPP_CLUSTERID://1 LED1=1; 我这个方法没能实现点亮灯,请问具体如何实现 |
|
相关推荐
5个回答
|
|
byte *buf = NULL;
GenericApp_DstAddr.addrMode = (afAddrMode_t)Addr64Bit; GenericApp_DstAddr.endPoint = GENERICAPP_ENDPOINT; buf = GenericApp_DstAddr.addr.extAddr; // 00 12 4B 00 03 46 E3 41 buf[0] = 0x41; buf[1] = 0xe3; buf[2] = 0x46; buf[3] = 0x03; buf[4] = 0x00; buf[5] = 0x4b; buf[6] = 0x12; buf[7] = 0x00; AF_DataRequest( &GenericApp_DstAddr, &GenericApp_epDesc, TEST, 8, tmp, &GenericApp_TransID, AF_DISCV_ROUTE, AF_DEFAULT_RADIUS ); 可以使用IEEE地址单播,实测会出现严重丢包和收到重复的包,效果还不如使用0xffff广播 |
|
|
|
你的mac地址填反了,cc2530是小端,低地址对应低字节。
P2P_DstAddr.addr.extAddr[0] = 0x38; P2P_DstAddr.addr.extAddr[1] = 0xec; P2P_DstAddr.addr.extAddr[7] = 0x00; |
|
|
|
MarsShu 发表于 2018-5-22 07:23 you are DASHEN 级人物 |
|
|
|
MarsShu 发表于 2018-5-22 07:23 好厉害啊 |
|
|
|
MarsShu 发表于 2018-5-22 07:23 哥们,这种形式我做的怎么就父子节点有用,发其它节点发不出去。 |
|
|
|
只有小组成员才能发言,加入小组>>
820 浏览 1 评论
1070 浏览 0 评论
617 浏览 1 评论
466 浏览 1 评论
660 浏览 2 评论
AT32F407在USART2 DMA发送数据时,接包接到了要发送的数据,程序还是处于等待传输完成的标识判断中,为什么?
264浏览 29评论
1225浏览 23评论
请问下tpa3220实际测试引脚功能和官方资料不符,哪位大佬可以帮忙解答下
356浏览 20评论
请教下关于TAS5825PEVM评估模块原理图中不太明白的地方,寻求答疑
334浏览 14评论
两个TMP117传感器一个可以正常读取温度值,一个读取的值一直是0,为什么?
199浏览 13评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2025-3-5 10:53 , Processed in 0.482343 second(s), Total 48, Slave 43 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191