Part Number:CC2530
使用版本2.5.1a,目前一个协调器一个终端,终端可以向协调器发送数据,运行正常;终端接收不到协调器发送的组播数据,在配置文件中:
//-DRFD_RCVC_ALWAYS_ON=TRUE
-DRFD_RCVC_ALWAYS_ON=FALSE
/* 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
如果 DRFD_RCVC_ALWAYS_ON更改为true则可以收到。按我的理解,以上配置可能会因为终端休眠不能实时接收到数据,在唤醒后会询问接收,从监测上,在入组后,协调器的确有数据向外发送,而终端也会每秒发送data request,但不会触发GenericApp_MessageMSGCB,会是怎么问题。
谢谢。
Susan Yang:
要收到组播消息的话,则终端要一直处于开启状态。您需要修改配置文件f8config.cfg中ALWAYS_ON=TRUE
,
YiKai Chen:
组播也是透過廣播實現,终端平常在休眠所以會收不到组播数据,一般資料要送給终端都建議用單播
,
Jx Wang:
谢谢。贴子发出后没有再查询到,以为操作有误,所以另外发贴:
https://www.ti2k.com/wp-content/uploads/2022/03/DeyiSupport_Zigbee_cc2530
现在问题已经解决,使用的单播。在终端联网后发送短地址等标识信息来实现。
再次感谢!
,
Susan Yang:
很高兴您能解决问题