scapy.contrib.bluetooth_vsc_barrot
- class scapy.contrib.bluetooth_vsc_barrot.HCI_Cmd_Complete_VSC_Barrot_Bd_Param(_pkt, /, *, bd_addr=None)[source]
Bases:
PacketBD Param (cmd 0x05) command complete: the 6 bytes bluetooth address of the device in
bd_addr.When answering an address change, the address reported is the new one, if it was set correctly.
- aliastypes = [<class 'scapy.contrib.bluetooth_vsc_barrot.HCI_Cmd_Complete_VSC_Barrot_Bd_Param'>, <class 'scapy.packet.Packet'>]
- class scapy.contrib.bluetooth_vsc_barrot.HCI_Cmd_Complete_VSC_Barrot_Bus_Read(_pkt, /, *, data=b'')[source]
Bases:
PacketBus Read (cmd 0x0F) command complete: the
lengthbytes read from the memory bus.- aliastypes = [<class 'scapy.contrib.bluetooth_vsc_barrot.HCI_Cmd_Complete_VSC_Barrot_Bus_Read'>, <class 'scapy.packet.Packet'>]
- class scapy.contrib.bluetooth_vsc_barrot.HCI_Cmd_Complete_VSC_Barrot_Flash_Read(_pkt, /, *, data=b'')[source]
Bases:
PacketFlash Read (cmd 0x12) command complete: the
lengthbytes read.- aliastypes = [<class 'scapy.contrib.bluetooth_vsc_barrot.HCI_Cmd_Complete_VSC_Barrot_Flash_Read'>, <class 'scapy.packet.Packet'>]
- class scapy.contrib.bluetooth_vsc_barrot.HCI_Cmd_Complete_VSC_Barrot_Read_Chip_Version(_pkt, /, *, magic=b'BRT', config_type=0, version=0, fw_date=0, esm_type=0, run_mode=0, features=0, flash_id=0)[source]
Bases:
PacketRead Chip Version (cmd 0x01) command complete.
versionpacks the chip model in hex digits (0x08051A02 -> “BR8051A02”).- aliastypes = [<class 'scapy.contrib.bluetooth_vsc_barrot.HCI_Cmd_Complete_VSC_Barrot_Read_Chip_Version'>, <class 'scapy.packet.Packet'>]
- fields_desc: ClassVar[List[Field[Any, Any] | _FieldContainer]] = [<StrFixedLenField (HCI_Cmd_Complete_VSC_Barrot_Read_Chip_Version).magic>, <ByteField (HCI_Cmd_Complete_VSC_Barrot_Read_Chip_Version).config_type>, <XLEIntField (HCI_Cmd_Complete_VSC_Barrot_Read_Chip_Version).version>, <XLEIntField (HCI_Cmd_Complete_VSC_Barrot_Read_Chip_Version).fw_date>, <XLEIntField (HCI_Cmd_Complete_VSC_Barrot_Read_Chip_Version).esm_type>, <XLEIntField (HCI_Cmd_Complete_VSC_Barrot_Read_Chip_Version).run_mode>, <XLEIntField (HCI_Cmd_Complete_VSC_Barrot_Read_Chip_Version).features>, <XLEShortField (HCI_Cmd_Complete_VSC_Barrot_Read_Chip_Version).flash_id>]
- class scapy.contrib.bluetooth_vsc_barrot.HCI_Cmd_Complete_VSC_Barrot_Read_Signature(_pkt, /, *, signature=b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00')[source]
Bases:
PacketRead Signature (cmd 0x03) command complete: the 32-byte signature.
- aliastypes = [<class 'scapy.contrib.bluetooth_vsc_barrot.HCI_Cmd_Complete_VSC_Barrot_Read_Signature'>, <class 'scapy.packet.Packet'>]
- class scapy.contrib.bluetooth_vsc_barrot.HCI_Cmd_VSC_Barrot(_pkt, /, *, cmd=0)[source]
Bases:
PacketBarrot vendor-specific command wrapper (opcode 0xFC80).
- aliastypes = [<class 'scapy.contrib.bluetooth_vsc_barrot.HCI_Cmd_VSC_Barrot'>, <class 'scapy.packet.Packet'>]
- fields_desc: ClassVar[List[Field[Any, Any] | _FieldContainer]] = [<XLEShortField (HCI_Cmd_VSC_Barrot).cmd>]
- payload_guess: List[Tuple[Dict[str, Any], Type[Packet]]] = [({'cmd': 1}, <class 'scapy.contrib.bluetooth_vsc_barrot.HCI_Cmd_VSC_Barrot_Read_Chip_Version'>), ({'cmd': 3}, <class 'scapy.contrib.bluetooth_vsc_barrot.HCI_Cmd_VSC_Barrot_Read_Signature'>), ({'cmd': 5}, <class 'scapy.contrib.bluetooth_vsc_barrot.HCI_Cmd_VSC_Barrot_Bd_Param'>), ({'cmd': 14}, <class 'scapy.contrib.bluetooth_vsc_barrot.HCI_Cmd_VSC_Barrot_Bus_Write'>), ({'cmd': 15}, <class 'scapy.contrib.bluetooth_vsc_barrot.HCI_Cmd_VSC_Barrot_Bus_Read'>), ({'cmd': 17}, <class 'scapy.contrib.bluetooth_vsc_barrot.HCI_Cmd_VSC_Barrot_Flash_Write'>), ({'cmd': 18}, <class 'scapy.contrib.bluetooth_vsc_barrot.HCI_Cmd_VSC_Barrot_Flash_Read'>)]
- class scapy.contrib.bluetooth_vsc_barrot.HCI_Cmd_VSC_Barrot_Bd_Param(_pkt, /, *, bd_addr=None)[source]
Bases:
PacketBarrot BD Param (cmd 0x05).
Sets the device bluetooth address to the 6 bytes
bd_addrfield. Whenbd_addris left unset, nothing is set. Either way the device responds with its bluetooth address.- aliastypes = [<class 'scapy.contrib.bluetooth_vsc_barrot.HCI_Cmd_VSC_Barrot_Bd_Param'>, <class 'scapy.packet.Packet'>]
- class scapy.contrib.bluetooth_vsc_barrot.HCI_Cmd_VSC_Barrot_Bus_Read(_pkt, /, *, address=0, length=0)[source]
Bases:
PacketBarrot Bus Read (cmd 0x0F)
Reads
lengthbytes from memory busaddress.- aliastypes = [<class 'scapy.contrib.bluetooth_vsc_barrot.HCI_Cmd_VSC_Barrot_Bus_Read'>, <class 'scapy.packet.Packet'>]
- class scapy.contrib.bluetooth_vsc_barrot.HCI_Cmd_VSC_Barrot_Bus_Write(_pkt, /, *, address=0, data=b'')[source]
Bases:
PacketBarrot Bus Write (cmd 0x0E).
Writes
datato arbitrary memory busaddress- aliastypes = [<class 'scapy.contrib.bluetooth_vsc_barrot.HCI_Cmd_VSC_Barrot_Bus_Write'>, <class 'scapy.packet.Packet'>]
- class scapy.contrib.bluetooth_vsc_barrot.HCI_Cmd_VSC_Barrot_Flash_Read(_pkt, /, *, address=0, length=0)[source]
Bases:
PacketBarrot Flash Read (cmd 0x12).
Reads
lengthbytes (1..0xF0) from the flash offsetaddress. Only reads the SPI flash storage memory.- aliastypes = [<class 'scapy.contrib.bluetooth_vsc_barrot.HCI_Cmd_VSC_Barrot_Flash_Read'>, <class 'scapy.packet.Packet'>]
- class scapy.contrib.bluetooth_vsc_barrot.HCI_Cmd_VSC_Barrot_Flash_Write(_pkt, /, *, address=0, data=b'')[source]
Bases:
PacketBarrot Flash Write (cmd 0x11).
Writes
datato the flash offsetaddress. On a write-protected device the firmware reports success (status 0x00) but does not change the flash.- aliastypes = [<class 'scapy.contrib.bluetooth_vsc_barrot.HCI_Cmd_VSC_Barrot_Flash_Write'>, <class 'scapy.packet.Packet'>]
- class scapy.contrib.bluetooth_vsc_barrot.HCI_Cmd_VSC_Barrot_Read_Chip_Version(_pkt, /)[source]
Bases:
PacketBarrot Read Chip Version (cmd 0x01).
Returns the chip model, firmware date, flash id and feature flags.
- aliastypes = [<class 'scapy.contrib.bluetooth_vsc_barrot.HCI_Cmd_VSC_Barrot_Read_Chip_Version'>, <class 'scapy.packet.Packet'>]
- class scapy.contrib.bluetooth_vsc_barrot.HCI_Cmd_VSC_Barrot_Read_Signature(_pkt, /)[source]
Bases:
PacketBarrot Read Signature (cmd 0x03).
Returns a 32-byte chip signature.
- aliastypes = [<class 'scapy.contrib.bluetooth_vsc_barrot.HCI_Cmd_VSC_Barrot_Read_Signature'>, <class 'scapy.packet.Packet'>]
- class scapy.contrib.bluetooth_vsc_barrot.HCI_Evt_VSC_Barrot_Command_Complete(_pkt, /, *, cmd=0)[source]
Bases:
PacketBarrot vendor-specific Command Complete body (opcode 0xFC80).
- aliastypes = [<class 'scapy.contrib.bluetooth_vsc_barrot.HCI_Evt_VSC_Barrot_Command_Complete'>, <class 'scapy.packet.Packet'>]
- fields_desc: ClassVar[List[Field[Any, Any] | _FieldContainer]] = [<XLEShortField (HCI_Evt_VSC_Barrot_Command_Complete).cmd>]
- payload_guess: List[Tuple[Dict[str, Any], Type[Packet]]] = [({'cmd': 1}, <class 'scapy.contrib.bluetooth_vsc_barrot.HCI_Cmd_Complete_VSC_Barrot_Read_Chip_Version'>), ({'cmd': 3}, <class 'scapy.contrib.bluetooth_vsc_barrot.HCI_Cmd_Complete_VSC_Barrot_Read_Signature'>), ({'cmd': 5}, <class 'scapy.contrib.bluetooth_vsc_barrot.HCI_Cmd_Complete_VSC_Barrot_Bd_Param'>), ({'cmd': 15}, <class 'scapy.contrib.bluetooth_vsc_barrot.HCI_Cmd_Complete_VSC_Barrot_Bus_Read'>), ({'cmd': 18}, <class 'scapy.contrib.bluetooth_vsc_barrot.HCI_Cmd_Complete_VSC_Barrot_Flash_Read'>)]