Transport-independent interface for SAE J1979 requests. More...
Public Member Functions | |
| bool | is_connected (self) |
| Return whether the diagnostic transport is connected. | |
| None | connect (self) |
| Connect and initialize the diagnostic transport. | |
| None | disconnect (self) |
| Disconnect from the diagnostic transport. | |
| tuple[Obd2Response,...] | request (self, Obd2Request request) |
| Send a diagnostic request and return all ECU responses. | |
Transport-independent interface for SAE J1979 requests.
A functional request may be answered by more than one ECU. Therefore request returns every normalized response. No response is represented by an empty tuple rather than None.
| bool obd2.obd2_adapter_if.Obd2AdapterIf.is_connected | ( | self | ) |
Return whether the diagnostic transport is connected.
| True | The transport is connected and ready. |
| False | The transport is disconnected. |
| tuple[Obd2Response, ...] obd2.obd2_adapter_if.Obd2AdapterIf.request | ( | self, | |
| Obd2Request | request ) |
Send a diagnostic request and return all ECU responses.
| request | Normalized SAE J1979 request. |