代码大致入下;
1、先注册ZDO_RegisterForZDOMsg(App_TaskID, IEEE_addr_rsp);
2、发送IEEE地址请求,ZDP_IEEEAddrReq(0, ZDP_ADDR_REQTYPE_EXTENDED, 0, 0);
3、在process event函数的ZDO_CB_MSG消息增加对IEEE_addr_rsp的处理代码。
测试发现如果不将-DRFD_RCVC_ALWAYS_ON=FALSE设置成TRUE,终端设备无法收到IEEE_addr_rsp消息。我在编译选项里面已经加入了NWK_AUTO_POLL选项,为什么还必须将-DRFD_RCVC_ALWAYS_ON=FALSE设置为TRUE呢?
哪位大神知道这是什么原因,是不是哪里的设置有问题呢?
VV:
你的POLL RATE设置成了多少?
bx da:
回复 VV:
您好,f8wConfig.cfg的配置入下:
/* The number of milliseconds to wait between data request polls to the coordinator. */-DPOLL_RATE=1000/* This is used after receiving a data indication to poll immediately * for queued messages…in milliseconds. */-DQUEUED_POLL_RATE=100/* This is used after receiving a data confirmation to poll immediately * for response messages…in milliseconds */-DRESPONSE_POLL_RATE=100/* This is used as an alternate response poll rate only for rejoin request. * This rate is determined by the response time of the parent that the device * is trying to join. */-DREJOIN_POLL_RATE=440
麻烦你帮我分析下是什么原因?我自己实在是不知道哪里没有设置对,谢谢。