Skip to content

Add support for dynamically discovering ECUs #1

@ejvaughan

Description

@ejvaughan

Overview

Currently, opening a socket to an ECU requires knowing a priori that an ECU with the given (transfer ID, receive ID tuple exists on the bus. We should allow users to dynamically discover the available ECUs they can communicate with.

According to the OBD-II standard, ECUs that use 29-bit identifiers will respond to the broadcast address 0x18db33f1 with an address in the range 0x18daf1xx, and ECUs that use 11-bit identifiers will respond to the broadcast address 7df with an address in the range 0x7e8 - 0x7ef. This should allow us to dynamically discover the available ECUs by sending a mode 1, pid 0 request to the broadcast addresses using a raw CAN socket, and seeing which ECUs respond.

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions