3
\$\begingroup\$

I have an OBD-II cable, and an UART-to-OBD-II board which has the ELM327 IC in it. I want to communicate with my ECU by sending-receiving CAN messages. Is it possible to communicate through ELM 327?

I've been able to diagnose the ECU to fetch basic information through the UART board (ELM327) using HyperTerminal and Raspberry Pi.

\$\endgroup\$

1 Answer 1

4
\$\begingroup\$

Yes you can!

ELM 327 supports AT Commands (See this PDF ). You can set filters for required CAN IDs or J1939 PGNs and it will return you corrosponding CAN Data over UART.

Check list of commands. They are self-explanatory.

P.S. ELM 327 has special command for DM1. DM1 is a J1939 PGN which has information about all active faults. Do check that!

\$\endgroup\$
4
  • \$\begingroup\$ Thanks. I also want to know whether you have idea about Diagnostic Trouble Codes in a car? I want to fetch the DTCs(if available)and show them in terminal. \$\endgroup\$ Commented Dec 27, 2013 at 18:09
  • \$\begingroup\$ @user3098378 See the info in my answer to your other question that got migrated: mechanics.stackexchange.com/questions/8233/… \$\endgroup\$ Commented Dec 31, 2013 at 20:49
  • \$\begingroup\$ Thanks for the answer @swanand ! I know this is an old thread, but I'm trying to transmit raw CAN frames on the ELM327 for a custom protocol (okay actually just XCP plus some J1939 messages) and can't find an AT command to accomplish this. Any thoughts? \$\endgroup\$
    – darkpbj
    Commented Dec 6, 2016 at 22:12
  • 1
    \$\begingroup\$ @darkpbj You can set CAN address using ATSH (Set Header) and after that, send your custom PID, It will be formed in the message with preset header and transmitted on the bus. \$\endgroup\$
    – Swanand
    Commented Dec 7, 2016 at 3:19

Not the answer you're looking for? Browse other questions tagged or ask your own question.