关于XBee3和早期版本XBee(S2B,S2C)之间通信兼容的问题,最新1009版本固件增加了兼容命令C8

http://www.bitconn.com/form_1/注册后,购买XBee模块,送USB评估底板及相关中文资料,或者免费申请借用评估套件)

根据Digi原厂最新的固件公告,为了更好的兼容早期XBee模块,在最新固件版本1009,增加了一个兼容参数C8,以便实现混合组网的所有XBee ZB模块间的通信兼容问题。

下面看下C8参数的含义:

C8 (Compatibility Options)  (兼容性选项)

A bitfield that contains options for compatibility with legacy XBee Zigbee devices.

一个位域,其中包含与旧版XBee Zigbee设备兼容的选项。

Devices prior to the XBee3 use a different scale to represent LQI. C8 bit 4 (C8 | 0x10) enables an LQI compatibility mode. Networks that contain a mix of XBee3 Zigbee and legacy XBee devices should enable this feature. Otherwise operating a mixed network without this bit set will prioritize legacy devices when determining route cost.

XBee3之前的设备使用不同的尺度来表示LQI (link quality indicator 链路质量指示)。 C8位4(C8 | 0x10)使能LQI兼容模式。包含XBee3 Zigbee和旧版XBee设备的网络应启用此功能。否则,在未设置此位的情况下运行混合网络将在确定路由成本时优先考虑旧设备。

If operating in Command mode, changing C8 bit 4 is made active only when Command mode exits via timeout or CN (Exit Command mode). Changing this bit causes all current parameters to be written to persistent storage and the device restarts; this is equivalent to issuing WR and FR commands. When the device restarts, no modem status is generated. CTS will also de-assert during this period, so flow control is advised. If hardware flow control is not being used, a 1-second delay after exiting Command mode (or applying changes if using API) may be necessary to avoid data loss.

如果在命令模式下运行,则仅当命令模式通过超时或CN(退出命令模式)退出时,才可以更改C8位4​​。更改该位将导致将所有当前参数写入持久性存储中,并且设备将重启。这等效于发出WR和FR命令。设备重新启动时,不会生成任何调制解调器状态。在此期间,CTS也会重置,因此建议进行流量控制。如果未使用硬件流控制,则可能需要在退出命令模式(或使用API​​进行更改)后延迟1秒,以避免数据丢失。

Parameter range:0x00, 0x10;default:0x00;

Bit field:

所以在混合组网的场合下(有XBee3、S2C一起使用的场合),客户的解决方案为:

(1)升级固件到1009版本

(2)C8参数设置成0x10,作兼容模式。

简单说就是:需要使用1009及以后的固件,因为里面多了一个C8的参数用来保持和S2C行为兼容。

发布了48 篇原创文章 · 获赞 6 · 访问量 3万+

猜你喜欢

转载自blog.csdn.net/zigbeecomm/article/details/105191140