Skip to content

Commit 09ade1e

Browse files
committed
hardware: add support for new hardware variants
- 0x45 - XB8X - Fixed a bug in the protocol assignation algorithm with XBee3 variants. Signed-off-by: Diego Escalona <diego.escalona@digi.com>
1 parent 9fb07ad commit 09ade1e

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

digi/xbee/models/hw.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ class HardwareVersion(Enum):
8585
XBEE3_SMT = (0x42, "XBEE3 SMT")
8686
XBEE3_TH = (0x43, "XBEE3 TH")
8787
CELLULAR_3G = (0x44, "XBee Cellular 3G")
88+
XB8X = (0x45, "XB8X")
8889
CELLULAR_LTE_VERIZON = (0x46, "XBee Cellular LTE-M Verizon")
8990
CELLULAR_LTE_ATT = (0x47, "XBee Cellular LTE-M AT&T")
9091
CELLULAR_NBIOT_EUROPE = (0x48, "XBee Cellular NBIoT Europe")

digi/xbee/models/protocol.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -241,11 +241,14 @@ def determine_protocol(hardware_version, firmware_version):
241241
elif hardware_version == HardwareVersion.CELLULAR_NBIOT_EUROPE.code:
242242
return XBeeProtocol.CELLULAR_NBIOT
243243

244-
elif hardware_version in [HardwareVersion.XBEE3,
245-
HardwareVersion.XBEE3_SMT,
246-
HardwareVersion.XBEE3_TH]:
244+
elif hardware_version in [HardwareVersion.XBEE3.code,
245+
HardwareVersion.XBEE3_SMT.code,
246+
HardwareVersion.XBEE3_TH.code]:
247247
return XBeeProtocol.ZIGBEE
248248

249+
elif hardware_version == HardwareVersion.XB8X.code:
250+
return XBeeProtocol.DIGI_MESH
251+
249252
return XBeeProtocol.ZIGBEE
250253

251254
code = property(__get_code)

0 commit comments

Comments
 (0)