obdii
2.1.0.0
|
OBDII click offers a unique opportunity to tap into the car diagnostic systems. It features the STN1110 Multiprotocol OBD to UART Interface, developed by the ScanTool technologies. This click can be used for the communication with the Electronic Control Unit (ECU) of a vehicle, via several different OBD II diagnostic protocols such as CAN, K LINE, L LINE and J1850. The STN1110 IC is used to process requests sent by the MCU via the UART interface and return back the responses from the ECU network nodes.
We provide a library for the OBDII Click as well as a demo application (example), developed using MikroElektronika compilers. The demo can run on all the main MikroElektronika development boards.
Package can be downloaded/installed directly from NECTO Studio Package Manager(recommended way), downloaded from our LibStock™ or found on Mikroe github account.
This library contains API for OBDII Click driver.
obdii_cfg_setup
Config Object Initialization function. obdii_init
Initialization function. obdii_send_command
This function sends command string by using UART serial interface. obdii_generic_read
This function reads a desired number of data bytes by using UART serial interface. obdii_reset_device
This function resets the device by toggling the RST pin. This example demonstrates the use of OBDII click board by reading the engine RPM and vehicle speed and displaying results on the USB UART.
The demo application is composed of two sections :
Initializes the driver and performs the click default configuration.
Reads and processes the engine RPM and vehicle speed and displays the results on the USB UART once per second.
The full application code, and ready to use projects can be installed directly from NECTO Studio Package Manager(recommended way), downloaded from our LibStock™ or found on Mikroe github account.
Other Mikroe Libraries used in the example:
Additional notes and informations
Depending on the development board you are using, you may need USB UART click, USB UART 2 Click or RS232 Click to connect to your PC, for development systems with no UART to USB interface available on the board. UART terminal is available in all MikroElektronika compilers.