Quick Start¶
A runnable five-step walkthrough.
Step 1 — Import and initialize¶
Expected output:
Explanation: this creates a UDS client instance with your API key pulled from ANTHROPIC_API_KEY and prepares an ECU context for future requests.
Step 2 — Ask a plain English question¶
Expected output:
Explanation: pyudskit sends the question to Claude with an ECU context header, and returns a concise explanation.
Step 3 — Encode a request¶
Expected output:
Explanation: pyudskit translates your intent into a UDS request PDU (service 0x22 and DID 0xF190).
Step 4 — Decode a response¶
Expected output:
Explanation: the response is parsed as a positive UDS response (0x62) and decoded into plain English.
Step 5 — Explain a DTC¶
Expected output:
Explanation: pyudskit uses DTC conventions (SAE J2012) and UDS service knowledge to explain the code and how to act on it.
Related References¶
- API Reference → AI Client
- API Reference → Services
- API Reference → Transport
- API Reference → Async
- API Reference → CLI
- API Reference → OEM Profiles