class scapy.contrib.automotive.xcp.scanner.XCPOnCANScanner(can_socket: NativeCANSocket, id_range: Iterator[int] | None = None, sniff_time: float | None = 0.1, add_padding: bool | None = False, verbose: bool | None = False)[source]

Bases: object

Scans for XCP Slave on CAN

scan_with_connect() List[XCPScannerResult][source]
scan_with_get_slave_id() List[XCPScannerResult][source]

Starts the scan for XCP devices on CAN with the transport specific GetSlaveId Message

class scapy.contrib.automotive.xcp.scanner.XCPScannerResult(request_id, response_id)[source]

Bases: tuple


Alias for field number 0


Alias for field number 1