Reputation: 402
I want to make an OBD II Reader using my stm32f4 discovery board. I googled for the some documentations on what kind of CAN frame needs to be sent to the OBD port and what is been received from it. Please help me in this context, I don't want to use an OBD-UART converter like ELM3xx. Suggest me some library or example on STM32F4 platform.
Thanks
Upvotes: 2
Views: 10731
Reputation: 80
you can find elm327 src code for stm32 at
this source support ISO 9141-2(serial) and ISO 15765(can) and use hc-05 as bluetooth module
Upvotes: 1
Reputation: 137322
While STM32f4 supports CAN in hardware, it still needs a CAN transceiver IC, and there are many available on the market (such as MCP2551).
You can find an example of how to use the CAN bus on your board here.
After handling the low-level CAN operations in your code, you might want to integrate it with an OBD library, like ArduinoOBD, although you will need to implement some modifications in order to get it working.
Also, a very extensive guide for using CAN bus with the discovery board may be found here.
Upvotes: 6