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.

怎么通过ieee地址转换成网络地址?

希望协调器通过设备的ieee,得到网络中的所有设备的短地址?怎么做到

extern uint8 APSME_LookupNwkAddr( uint8* extAddr, uint16* nwkAddr );

这个函数只能读取子节点的网络地址,还是所有节点的地址?

  • 我的意思的是知道节点的IEEE地址,协调器串口输入IEEE地址时候,协议中有没有自动把IEEE转换成短地址的,然后用短地址传送数据?

    问题1:用IEEE是不是不能路由?还有什么弊端?

    问题2:ZDP_NwkAddrReq()这个函数可以得到短地址,但是这个函数是广播,而且节点不能做低功耗了,

    设置-DRFD_RCVC_ALWAYS_ON=TRUE,有没有跟更好的方法,得到短地址?

    问题3:我想做的事情是,知道IEEE地址,网络中短地址随机分配,不关心短地址是多少,希望用短地址传送数据。在只知道IEEE地址的情况下,还有更好的传送数据的方式吗?

    这个文档好像是得到网络拓扑的,跟IEEE转换成短地址没啥关系?

  • 可以使用

    afStatus_t ZDP_NwkAddrReq( byte *IEEEAddress, byte ReqType,   byte StartIndex, byte SecurityEnable )
    通过IEEE地址获取短地址