def get_dev_id(self): "Device ID" return bin2uint(self.__bin[0:4])
def get_admin_data(self): "Admin data" return bin2uint(self.__bin[4:8])
def __cmp__(a, b): if None == b: return 1 return bin2uint(a.serial) - bin2uint(b.serial)