def __init__(self,sequenceNumber=1,destAddr=0xFFFF,destPanID=0xFFFF,srcAddr=0x0,srcPanID=0x1234,data=b""): super().__init__(sequenceNumber=sequenceNumber) self.name = "Zigbee - Application Data Packet" self.srcAddr=helpers.convertAddress(srcAddr) self.destAddr=helpers.convertAddress(destAddr) self.destPanID=destPanID self.data = data
def __init__(self, sequenceNumber=1, destAddr=0xFFFF, destPanID=0xFFFF, srcAddr=0x0, frameCounter=0, keyType=None, securityLevel=None, source=None, keySequenceNumber=None, data=b"", mic=b""): super().__init__(sequenceNumber=sequenceNumber) self.name = "Zigbee - Application Encrypted Data Packet" self.srcAddr = helpers.convertAddress(srcAddr) self.destAddr = helpers.convertAddress(destAddr) self.destPanID = destPanID self.frameCounter = frameCounter self.keyType = ZigbeeApplicationEncryptedData.keyTypes.index( keyType ) if keyType in ZigbeeApplicationEncryptedData.keyTypes else keyType self.securityLevel = ZigbeeApplicationEncryptedData.securityLevels.index( securityLevel ) if securityLevel in ZigbeeApplicationEncryptedData.securityLevels else securityLevel self.source = helpers.convertAddress(source) self.keySequenceNumber = keySequenceNumber self.data = data self.mic = mic
def __init__(self,sequenceNumber=1,destAddr=0xFFFF,srcAddr=0x0,destPanID=0x1234,srcPanID=0x0): super().__init__(sequenceNumber=sequenceNumber) self.name = "Zigbee - Data Request Packet" self.srcAddr=helpers.convertAddress(srcAddr) self.destAddr=helpers.convertAddress(destAddr) self.destPanID=destPanID self.srcPanID=srcPanID
def __init__(self,sequenceNumber=1,destAddr=0xFFFF,destPanID=0xFFFF,srcAddr=0x0,srcPanID=0x1234,assignedAddr=0xFFFF,status=None): super().__init__(sequenceNumber=sequenceNumber) self.name = "Zigbee - Association Response Packet" self.srcAddr=helpers.convertAddress(srcAddr) self.destAddr=helpers.convertAddress(destAddr) self.destPanID=destPanID self.assignedAddr=assignedAddr self.status=status
def __init__(self,sequenceNumber=1,destAddr=0xFFFF,destPanID=0xFFFF,srcAddr=0x0,srcPanID=0x1234,assignedAddr=0xFFFF,reason=None): super().__init__(sequenceNumber=sequenceNumber) self.name = "Zigbee - Disassociation Notification Packet" self.srcAddr=helpers.convertAddress(srcAddr) self.destAddr=helpers.convertAddress(destAddr) self.srcPanID=srcPanID self.destPanID=destPanID self.reason=reason
def __init__(self,sequenceNumber=1,destAddr=0xFFFF,destPanID=0xFFFF,srcAddr=0x0,srcPanID=0x1234,counter=0,unknown=0,data=b""): super().__init__(sequenceNumber=sequenceNumber) self.name = "Zigbee - XBee Data Packet" self.srcAddr=helpers.convertAddress(srcAddr) self.destAddr=helpers.convertAddress(destAddr) self.destPanID=destPanID self.counter = counter self.unknown = unknown self.data = data
def __init__(self,sequenceNumber=1,destAddr=0xFFFF,destPanID=0xFFFF,srcAddr=0x0,srcPanID=0xFFFF,allocateAddress=False,securityCapability=False,receiverOnWhenIdle=False,powerSource=False,deviceType=False,alternatePanCoordinator=False): super().__init__(sequenceNumber=sequenceNumber) self.name = "Zigbee - Association Request Packet" self.srcAddr=helpers.convertAddress(srcAddr) self.destAddr=helpers.convertAddress(destAddr) self.destPanID=destPanID self.srcPanID=srcPanID self.allocateAddress = allocateAddress self.securityCapability = securityCapability self.receiverOnWhenIdle = receiverOnWhenIdle self.powerSource = powerSource self.deviceType = deviceType self.alternatePanCoordinator = alternatePanCoordinator
def __init__(self,sequenceNumber = 1, srcAddr=0x0,srcPanID=0xFFFF,assocPermit=False,coordinator=False,payload=False,routerCapacity=None,endDeviceCapacity=None,extendedPanID=None): super().__init__(sequenceNumber=sequenceNumber) self.name = "Zigbee - Beacon Packet" self.srcAddr=helpers.convertAddress(srcAddr) self.srcPanID = srcPanID self.assocPermit = assocPermit self.coordinator = coordinator self.payload = payload self.routerCapacity = routerCapacity self.endDeviceCapacity = endDeviceCapacity self.extendedPanID = extendedPanID
def __init__(self, sequenceNumber=1, destAddr=0xFFFF, destPanID=0xFFFF): super().__init__(sequenceNumber=sequenceNumber) self.name = "Zigbee - Beacon Request Packet" self.destAddr = helpers.convertAddress(destAddr) self.destPanID = destPanID