Skip to content

Commit cdbfb8e

Browse files
committed
status: add missing status codes
Signed-off-by: Tatiana Leon <Tatiana.Leon@digi.com>
1 parent ab0ca35 commit cdbfb8e

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

digi/xbee/models/status.py

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,7 @@ class TransmitStatus(Enum):
163163
0x04, "Transceiver was unable to complete the transmission")
164164
INVALID_DESTINATION = (0x15, "Invalid destination endpoint")
165165
NO_BUFFERS = (0x18, "No buffers")
166+
CONNECTION_NOT_FOUND = (0x20, "Connection not found")
166167
NETWORK_ACK_FAILURE = (0x21, "Network ACK Failure")
167168
NOT_JOINED_NETWORK = (0x22, "Not joined to network")
168169
SELF_ADDRESSED = (0x23, "Self-addressed")
@@ -214,6 +215,9 @@ class TransmitStatus(Enum):
214215
"more certificates is invalid")
215216
SOCKET_NOT_CONNECTED = (0x87, "Socket not connected")
216217
SOCKET_NOT_BOUND = (0x88, "Socket not bound")
218+
SOCKET_INACTIVITY_TIMEOUT = (0x89, "Socket inactivity timeout")
219+
PDP_CONTEXT_DEACTIVATED = (0x8A, "PDP context deactivated by network")
220+
TLS_AUTHENTICATION_ERROR = (0x8B, "TLS Socket Authentication Error")
217221
KEY_NOT_AUTHORIZED = (0xBB, "Key not authorized")
218222
UNKNOWN = (0xFF, "Unknown")
219223

@@ -308,6 +312,9 @@ class ModemStatus(Enum):
308312
ROUTER_PAN_ID_CHANGED = (
309313
0x40, "Router PAN ID was changed by coordinator due to a conflict")
310314
NET_WATCHDOG_EXPIRED = (0x42, "Network watchdog timeout expired")
315+
OPEN_JOIN_WINDOW = (0x43, "Joining window open")
316+
CLOSE_JOIN_WINDOW = (0x44, "Joining window closed")
317+
NETWORK_KEY_CHANGE_INIT = (0x45, "Network security key change initiated")
311318
ERROR_STACK = (0x80, "Stack error")
312319
ERROR_AP_NOT_CONNECTED = (
313320
0x82, "Send/join command issued without connecting from AP")
@@ -481,6 +488,12 @@ class AssociationIndicationStatus(Enum):
481488
COORDINATOR_START_FAILED = (0x2A, "Coordinator Start attempt failed")
482489
CHECKING_FOR_COORDINATOR = (0x2B, "Checking for an existing coordinator")
483490
NETWORK_LEAVE_FAILED = (0x2C, "Attempt to leave the network failed")
491+
SEC_JOIN_ATTACHED_TO_NETWORK = (
492+
0x40, "Secure Join - Successfully attached to network, waiting for new link key")
493+
SEC_JOIN_SUCCESS_LINK_KEY = (
494+
0x41, "Secure Join - Successfully received new link key from the trust center")
495+
SEC_JOIN_FAILED_LINK_KEY = (
496+
0x44, "Secure Join - Failed to receive new link key from the trust center")
484497
DEVICE_DIDNT_RESPOND = (
485498
0xAB, "Attempted to join a device that did not respond")
486499
UNSECURED_KEY_RECEIVED = (
@@ -554,7 +567,11 @@ class CellularAssociationIndicationStatus(Enum):
554567
USB_DIRECT = (0x2B, "USB Direct mode is active")
555568
PSM_LOW_POWER = (
556569
0x2C, "The cellular component is in the PSM low-power state")
570+
MODEM_SHUT_DOWN = (0x2D, "Modem shut down")
571+
LOW_VOLTAGE_SHUT_DOWN = (0x2E, "Low voltage shut down")
557572
BYPASS_MODE = (0x2F, "Bypass mode active")
573+
UPGRADE_IN_PROCESS = (0x30, "An upgrade is in process")
574+
REGULATORY_TESTING_ENABLED = (0x31, "Regulatory testing has been enabled")
558575
INITIALIZING = (0xFF, "Initializing")
559576

560577
def __init__(self, code, description):
@@ -854,10 +871,12 @@ class ZigbeeRegisterStatus(Enum):
854871
"""
855872
SUCCESS = (0x00, "Success")
856873
KEY_TOO_LONG = (0x01, "Key too long")
874+
TRANSIENT_KEY_TABLE_FULL = (0x18, "Transient key table is full")
857875
ADDRESS_NOT_FOUND = (0xB1, "Address not found in the key table")
858876
INVALID_KEY = (0xB2, "Key is invalid (00 and FF are reserved)")
859877
INVALID_ADDRESS = (0xB3, "Invalid address")
860878
KEY_TABLE_FULL = (0xB4, "Key table is full")
879+
INVALID_SECURITY_DATA = (0xBD, "Security data is invalid (Install code CRC fails)")
861880
KEY_NOT_FOUND = (0xFF, "Key not found")
862881
UNKNOWN = (0xEE, "Unknown")
863882

@@ -979,6 +998,9 @@ class SocketStatus(Enum):
979998
INTERNAL_ERROR = (0x31, "Internal error")
980999
RESOURCE_ERROR = (0x32, "Resource error: retry the operation later")
9811000
INVALID_PROTOCOL = (0x7B, "Invalid protocol")
1001+
MODEM_UPDATE_IN_PROGRESS = (0x7E, "A modem update is in process. Try again after update completion")
1002+
UNKNOWN_ERROR_2 = (0x85, "Unknown error")
1003+
INVALID_TLS_CFG = (0x86, "Invalid TLS configuration")
9821004
UNKNOWN = (0xFF, "Unknown")
9831005

9841006
def __init__(self, code, description):
@@ -1043,6 +1065,9 @@ class SocketState(Enum):
10431065
UNKNOWN_SERVER = (0x09, "Unknown server")
10441066
RESOURCE_ERROR = (0x0A, "Resource error")
10451067
LISTENER_CLOSED = (0x0B, "Listener closed")
1068+
RST_CLOSE_BY_PEER = (0x0C, "RST Close by peer")
1069+
CLOSED_INACTIVITY_TIMEOUT = (0x0D, "Closed due to inactivity timeout")
1070+
PDP_CONTEXT_DEACTIVATED = (0x0E, "PDP context deactivated by network")
10461071
UNKNOWN = (0xFF, "Unknown")
10471072

10481073
def __init__(self, code, description):

0 commit comments

Comments
 (0)