scapy.contrib.bluetooth_vsc_barrot

class scapy.contrib.bluetooth_vsc_barrot.HCI_Cmd_Complete_VSC_Barrot_Bd_Param(_pkt, /, *, bd_addr=None)[source]

Bases: Packet

BD 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'>]
fields_desc: ClassVar[List[Field[Any, Any] | _FieldContainer]] = [<LEMACField (HCI_Cmd_Complete_VSC_Barrot_Bd_Param).bd_addr>]
class scapy.contrib.bluetooth_vsc_barrot.HCI_Cmd_Complete_VSC_Barrot_Bus_Read(_pkt, /, *, data=b'')[source]

Bases: Packet

Bus Read (cmd 0x0F) command complete: the length bytes read from the memory bus.

aliastypes = [<class 'scapy.contrib.bluetooth_vsc_barrot.HCI_Cmd_Complete_VSC_Barrot_Bus_Read'>, <class 'scapy.packet.Packet'>]
fields_desc: ClassVar[List[Field[Any, Any] | _FieldContainer]] = [<XStrLenField (HCI_Cmd_Complete_VSC_Barrot_Bus_Read).data>]
class scapy.contrib.bluetooth_vsc_barrot.HCI_Cmd_Complete_VSC_Barrot_Flash_Read(_pkt, /, *, data=b'')[source]

Bases: Packet

Flash Read (cmd 0x12) command complete: the length bytes read.

aliastypes = [<class 'scapy.contrib.bluetooth_vsc_barrot.HCI_Cmd_Complete_VSC_Barrot_Flash_Read'>, <class 'scapy.packet.Packet'>]
fields_desc: ClassVar[List[Field[Any, Any] | _FieldContainer]] = [<XStrLenField (HCI_Cmd_Complete_VSC_Barrot_Flash_Read).data>]
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: Packet

Read Chip Version (cmd 0x01) command complete.

version packs 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: Packet

Read 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'>]
fields_desc: ClassVar[List[Field[Any, Any] | _FieldContainer]] = [<XStrFixedLenField (HCI_Cmd_Complete_VSC_Barrot_Read_Signature).signature>]
class scapy.contrib.bluetooth_vsc_barrot.HCI_Cmd_VSC_Barrot(_pkt, /, *, cmd=0)[source]

Bases: Packet

Barrot 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: Packet

Barrot BD Param (cmd 0x05).

Sets the device bluetooth address to the 6 bytes bd_addr field. When bd_addr is 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'>]
fields_desc: ClassVar[List[Field[Any, Any] | _FieldContainer]] = [<scapy.fields.ConditionalField object>]
class scapy.contrib.bluetooth_vsc_barrot.HCI_Cmd_VSC_Barrot_Bus_Read(_pkt, /, *, address=0, length=0)[source]

Bases: Packet

Barrot Bus Read (cmd 0x0F)

Reads length bytes from memory bus address.

aliastypes = [<class 'scapy.contrib.bluetooth_vsc_barrot.HCI_Cmd_VSC_Barrot_Bus_Read'>, <class 'scapy.packet.Packet'>]
fields_desc: ClassVar[List[Field[Any, Any] | _FieldContainer]] = [<XLEIntField (HCI_Cmd_VSC_Barrot_Bus_Read).address>, <ByteField (HCI_Cmd_VSC_Barrot_Bus_Read).length>]
class scapy.contrib.bluetooth_vsc_barrot.HCI_Cmd_VSC_Barrot_Bus_Write(_pkt, /, *, address=0, data=b'')[source]

Bases: Packet

Barrot Bus Write (cmd 0x0E).

Writes data to arbitrary memory bus address

aliastypes = [<class 'scapy.contrib.bluetooth_vsc_barrot.HCI_Cmd_VSC_Barrot_Bus_Write'>, <class 'scapy.packet.Packet'>]
fields_desc: ClassVar[List[Field[Any, Any] | _FieldContainer]] = [<XLEIntField (HCI_Cmd_VSC_Barrot_Bus_Write).address>, <XStrField (HCI_Cmd_VSC_Barrot_Bus_Write).data>]
class scapy.contrib.bluetooth_vsc_barrot.HCI_Cmd_VSC_Barrot_Flash_Read(_pkt, /, *, address=0, length=0)[source]

Bases: Packet

Barrot Flash Read (cmd 0x12).

Reads length bytes (1..0xF0) from the flash offset address. Only reads the SPI flash storage memory.

aliastypes = [<class 'scapy.contrib.bluetooth_vsc_barrot.HCI_Cmd_VSC_Barrot_Flash_Read'>, <class 'scapy.packet.Packet'>]
fields_desc: ClassVar[List[Field[Any, Any] | _FieldContainer]] = [<XLEIntField (HCI_Cmd_VSC_Barrot_Flash_Read).address>, <ByteField (HCI_Cmd_VSC_Barrot_Flash_Read).length>]
class scapy.contrib.bluetooth_vsc_barrot.HCI_Cmd_VSC_Barrot_Flash_Write(_pkt, /, *, address=0, data=b'')[source]

Bases: Packet

Barrot Flash Write (cmd 0x11).

Writes data to the flash offset address. 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'>]
fields_desc: ClassVar[List[Field[Any, Any] | _FieldContainer]] = [<XLEIntField (HCI_Cmd_VSC_Barrot_Flash_Write).address>, <XStrField (HCI_Cmd_VSC_Barrot_Flash_Write).data>]
class scapy.contrib.bluetooth_vsc_barrot.HCI_Cmd_VSC_Barrot_Read_Chip_Version(_pkt, /)[source]

Bases: Packet

Barrot 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: Packet

Barrot 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: Packet

Barrot 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'>)]