Physical Address
304 North Cardinal St.
Dorchester Center, MA 02124
Physical Address
304 North Cardinal St.
Dorchester Center, MA 02124
The SAE J2534-2-2-2022 standard defines extended features for pass-thru devices to support the GM UART protocol for vehicle diagnostics. It is part of the SAE J2534 series and updates previous versions to align with SAE J2534-1_0500 (API version 05.00). The rationale behind this update is to publish each feature as a separate document, simplifying maintenance and extensibility while incorporating feedback from field implementations. 🛠️
The standard specifies a comprehensive Win32 API for communicating with pass-thru hardware. Key functions include establishing connections, queuing messages, and configuring device parameters. Additionally, a discovery mechanism allows software to query device capabilities and protocol-specific details.
| Function | Description |
|---|---|
PassThruConnect |
Opens a connection to a pass-thru device with the specified protocol and baud rate. |
PassThruQueueMsgs |
Queues messages for transmission or reception with proper buffering. |
PassThruIoctl |
Performs I/O control operations like configuration and queue management. |
GET_DEVICE_INFO |
Retrieves device capabilities and supported features. |
GET_PROTOCOL_INFO |
Returns protocol-specific parameters, such as supported baud rates and message formats. |
GET_RESOURCE_INFO |
Provides information about resource availability for the selected protocol. |
These functions, combined with the discovery mechanism, enable software to dynamically adapt to different pass-thru devices and protocols.
Robust error handling is critical for reliable diagnostics. The standard defines several error conditions, including device disconnection, receive buffer overflow, message termination, and network errors. ⚠️ Each error condition has specific return codes and recommended actions.
Adhering to the buffering requirements ensures that no data is lost during high-speed communication. The minimum buffer sizes are specified to accommodate typical message lengths and prevent overflow.
Q1: What is the GM ALDL connector pinout for UART communication?
A1: The standard provides a detailed table of pin assignments for the GM ALDL connector. Typically, pins for UART RX and TX, ground, and battery power are defined. Always consult the specific pin table in the standard for accurate connections.
Q2: How is receive buffer overflow handled?
A2: When the receive buffer overflows, the device shall discard any new incoming data and set an error flag (e.g., RxStatus bit). The software should monitor this status and clear the buffer as needed.
Q3: What are the key API functions for sending and receiving messages?
A3: The main functions are PassThruConnect to establish a connection, PassThruQueueMsgs to queue messages, and PassThruIoctl to configure settings. Additionally, discovery functions like GET_DEVICE_INFO help in initial setup.
Q4: What common mistakes should be avoided during implementation?
A4: Common pitfalls include using incorrect pin mappings, insufficient buffer sizes, ignoring API return codes, and not properly configuring the device with IOCTL commands before communication. Following the standard's guidelines closely can help avoid these issues.