3

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.

Peter Mortensen
  • 1,676
  • 3
  • 17
  • 23
user3098378
  • 33
  • 1
  • 4

1 Answers1

4

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!

Swanand
  • 3,245
  • 5
  • 28
  • 45
  • 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. – user3098378 Dec 27 '13 at 18:09
  • @user3098378 See the info in my answer to your other question that got migrated: http://mechanics.stackexchange.com/questions/8233/accessing-diagnostic-trouble-codes-dtcs-in-car/8273#8273 – Mark Johnson Dec 31 '13 at 20:49
  • 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? – darkpbj Dec 06 '16 at 22:12
  • 1
    @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. – Swanand Dec 07 '16 at 03:19