CANhack.de CAN-Interface RKS+CAN
CAN Hardware, CAN Software, CAN Protocols - CAN Bus Forum for Your CAN Bus Project.

Reading data from a car using Arduino and MCP2515

 
Go to page: 1, 2  Next
New Topic Reply 🔗 🖨 CANhack.de - Index » Microcontrollers and Electronics, Programming
Author Message
Ak2113



Joined: 06/02/2018
Posts: 9
Karma: +0 / -0   Thank you, like it!


Free account, no CAN development support

Post02-06-2018, 17:42    Subject: Reading data from a car using Arduino and MCP2515 Quote

Hello, I have a question. I want to read all the CAN values from my car using my Arduino. I bought an MCP2515 module for this, and the connection to the module is working, but I'm not getting any CAN values. Maybe someone can help me icon_smile.gif.


Translated on 23-07-2026, 0:20.
Back to top Profile PM
Ulli13



Joined: 10/08/2012
Posts: 27
Karma: +19 / -0   Thank you, like it!
Location: Senden
2018 Audi A4 Avant
CAN Support

CAN-Diagnose likes this.
Post04-06-2018, 14:56    Subject: Reading data from a car using Arduino and MCP2515 Quote

Hey Ak2113,
Where did you go to get the CAN bus system?
You won't find a standard CAN bus at the OBD port; you need to use diagnostic requests instead.
I went directly to the CAN buses, which are located on the front of the connector panels. However, you'll need wiring diagrams for the vehicle.
Once you receive those IDs, you won't be able to do much with them either, as they only contain raw data. It took me 4 years to get about 50% of the data that was actually useful.

Best regards, Ulli.
Audi A4 B9 Bj 2018


Translated on 23-07-2026, 0:21.
Back to top Profile PM Email Garage
Ak2113



Joined: 06/02/2018
Posts: 9
Karma: +0 / -0   Thank you, like it!


Free account, no CAN development support

Post05-06-2018, 7:36    Subject: Reading data from a car using Arduino and MCP2515 Quote

Okay icon_smile.gif Thank you in advance icon_smile.gif and how do I request the diagnostic CAN data icon_smile.gif?


Translated on 23-07-2026, 0:23.
Back to top Profile PM
CAN-Diagnose
Administrator
Administrator
Avatar-CAN-Diagnose

Joined: 06/07/2011
Posts: 573
Karma: +29 / -0   Thank you, like it!
Location: Ländle



Post05-06-2018, 8:55    Subject: Re: Reading values from a car using Arduino and MCP2515 Quote

Ak2113 wrote:
...to read data from my car...

Which one? As the previous poster already wrote, depending on the model, absolutely nothing happens on the diagnostic CAN bus by itself. icon_cool.gif

Best regards, Rainer.
Dipl.-Ing. (FH) Rainer Kaufmann - Embedded Software Freelancer
System RKS+CAN: CANHack.de CAN-Bus Interface


Translated on 23-07-2026, 0:24.
Back to top Profile PM WWW
Ak2113



Joined: 06/02/2018
Posts: 9
Karma: +0 / -0   Thank you, like it!


Free account, no CAN development support

Post05-06-2018, 10:31    Subject: Reading data from a car using Arduino and MCP2515 Quote

I once owned a Golf 4 R32 and once a Passat B7 icon_smile.gif.
So, does that mean I can't access the CAN bus through the OBD port?


Translated on 23-07-2026, 0:25.
Back to top Profile PM
CAN-Diagnose
Administrator
Administrator
Avatar-CAN-Diagnose

Joined: 06/07/2011
Posts: 573
Karma: +29 / -0   Thank you, like it!
Location: Ländle



obelix likes this.
Post05-06-2018, 10:48    Subject: Reading data from a car using Arduino and MCP2515 Quote

Hi,

The Golf 4 does not have CAN on the OBD connector at all. icon_cool.gif
"Similarly, with the Passat, nothing happens here except for vehicle diagnostics. That means you should locate the gateway control unit in these vehicles and tap into the corresponding CAN buses there."

Best regards, Rainer.
Dipl.-Ing. (FH) Rainer Kaufmann - Embedded Software Freelancer
System RKS+CAN: CANHack.de CAN-Bus Interface


Translated on 23-07-2026, 0:26.
Back to top Profile PM WWW
Ak2113



Joined: 06/02/2018
Posts: 9
Karma: +0 / -0   Thank you, like it!


Free account, no CAN development support

Post05-06-2018, 11:23    Subject: Reading data from a car using Arduino and MCP2515 Quote

Okay, but as far as I know, the Golf 4 also has CAN, so I need to find the gateway there too icon_smile.gif.
What is the difference between CAN and diagnostic CAN?


Translated on 23-07-2026, 0:27.
Back to top Profile PM
CAN-Diagnose
Administrator
Administrator
Avatar-CAN-Diagnose

Joined: 06/07/2011
Posts: 573
Karma: +29 / -0   Thank you, like it!
Location: Ländle



Post05-06-2018, 12:05    Subject: Reading data from a car using Arduino and MCP2515 Quote

Ak2113 wrote:
What is the difference between CAN and diagnostic CAN?

The connected control units and their messages, including the respective CAN bus speed (500 kbit/s or 100 kbit/s):
https://www.canhack.de/en/viewtopic.php?t=13

Best regards, Rainer.
Dipl.-Ing. (FH) Rainer Kaufmann - Embedded Software Freelancer
System RKS+CAN: CANHack.de CAN-Bus Interface


Translated on 23-07-2026, 0:28.
Back to top Profile PM WWW
Ak2113



Joined: 06/02/2018
Posts: 9
Karma: +0 / -0   Thank you, like it!


Free account, no CAN development support

Post05-06-2018, 12:33    Subject: Reading data from a car using Arduino and MCP2515 Quote

So that's why I haven't received anything there icon_smile.gif.
Yes, but how do I get a value from the diagnostic CAN bus?
Do I need to send anything along with this?


Translated on 23-07-2026, 0:29.
Back to top Profile PM
GerdJ
CAN-Profi
CAN-Profi


Joined: 09/08/2014
Posts: 45
Karma: +14 / -0   Thank you, like it!


Premium Support

CAN-Diagnose likes this.
Post06-06-2018, 12:45    Subject: Reading data from a car using Arduino and MCP2515 Quote

In a nutshell, the following happens:

The engine control unit (ECU) is connected to the vehicle's CAN bus. This ECU constantly sends CAN messages onto the bus, which can be read and analyzed. However, to do this, you need to know the CAN ID used for specific data, such as the engine speed, along with the byte position and format in which it is transmitted. This information varies for each vehicle/model. That's why forums like this one are constantly filled with questions asking about CAN IDs for a particular vehicle (e.g., "Vehicle XYZ: Where can I find the CAN ID for measurement ABC?"). icon_smile.gif

Initially, no data is transmitted on the diagnostic CAN bus; only when a diagnostic session is started (e.g., by VCDS) does any activity occur there.
Through this session, it is possible to specifically access the control units and, for example, read out measurement values or error codes.


Translated on 23-07-2026, 0:31.
Back to top Profile PM
Ak2113



Joined: 06/02/2018
Posts: 9
Karma: +0 / -0   Thank you, like it!


Free account, no CAN development support

Post06-06-2018, 18:09    Subject: Reading data from a car using Arduino and MCP2515 Quote

Okay, thank you in advance icon_smile.gif.
But you don't know what I need to do to get an answer icon_smile.gif).


Translated on 23-07-2026, 0:33.
Back to top Profile PM
GerdJ
CAN-Profi
CAN-Profi


Joined: 09/08/2014
Posts: 45
Karma: +14 / -0   Thank you, like it!


Premium Support

Post06-06-2018, 18:15    Subject: Reading data from a car using Arduino and MCP2515 Quote

Was that a question or a statement?

Ask Google about 'TP 2.0' icon_smile.gif.


Translated on 23-07-2026, 0:33.
Back to top Profile PM
Ak2113



Joined: 06/02/2018
Posts: 9
Karma: +0 / -0   Thank you, like it!


Free account, no CAN development support

Post06-06-2018, 18:25    Subject: Reading data from a car using Arduino and MCP2515 Quote

Maybe it's still a little too difficult for me as a beginner icon_sad.gif.
I'm going to search for that on Google icon_smile.gif.
I've read so much, but I'm still not getting anywhere icon_sad.gif.


Translated on 23-07-2026, 0:34.
Back to top Profile PM
GerdJ
CAN-Profi
CAN-Profi


Joined: 09/08/2014
Posts: 45
Karma: +14 / -0   Thank you, like it!


Premium Support

Post06-06-2018, 18:31    Subject: Reading data from a car using Arduino and MCP2515 Quote

Don't be offended, but if you've read so much, I wonder why you don't know the difference between CAN and diagnostic CAN icon_smile.gif.


Translated on 23-07-2026, 0:35.
Back to top Profile PM
Ak2113



Joined: 06/02/2018
Posts: 9
Karma: +0 / -0   Thank you, like it!


Free account, no CAN development support

Post06-06-2018, 18:36    Subject: Reading data from a car using Arduino and MCP2515 Quote

I always thought it was the same icon_smile.gif.
One spoke about the CAN bus, and the other about the diagnostic CAN icon_smile.gif.


Translated on 23-07-2026, 0:35.
Back to top Profile PM
GerdJ
CAN-Profi
CAN-Profi


Joined: 09/08/2014
Posts: 45
Karma: +14 / -0   Thank you, like it!


Premium Support

Post06-06-2018, 18:40    Subject: Reading data from a car using Arduino and MCP2515 Quote

You should first buy a textbook; "Bus systems in vehicle technology: Protocols, standards, and software architecture" is highly recommended.


Translated on 23-07-2026, 0:36.
Back to top Profile PM
New Topic Reply 🔗 🖨 CANhack.de - Index » Microcontrollers and Electronics, Programming
Go to page: 1, 2  Next
Similar articles and topics
Topic Forum
No new posts Read CAN data and output values as control signals CAN Bus General
No new posts Arduino BlackBox mit MCP2515 Microcontrollers and Electronics, Programming
No new posts Arduino with MCP2515 as a controller Microcontrollers and Electronics, Programming
No new posts Reading CAN data with Canshield and Arduino CAN Software Tools and Software
Jump to:  
You cannot post new topics in this forum.