-
Notifications
You must be signed in to change notification settings - Fork 148
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issues with Arduino and MCP2515 CAN Bus Module #9
Comments
Yesterday I set up an Arduino Nano clone, with the same MCP2515 module and everything worked for me. If you are only seeing "CAN RX TX Started" that means the module is initialized but isn't seeing any traffic on the CAN bus. The Diamex product that you linked to is an "OBD Simulator" and does not broadcast CAN traffic. It needs to be asked for a request and then will provide the data. For example sending 7E0 01 0C will return the engine speed. What happens when you connect it to a car? |
@FrankM54 Thanks for the response. So I tested the "OBD Simulator" with a logic analyzer where I only had connected CAN-High and CAN-Low and there I could decode the messages without any problem. That's why I think I should also work just fine when connecting the MCP2515 module. I will test to see if it behaves the same way when I plug it into my car. |
@FrankM54 Just tested it with my car. There I'm only receiving the following:
I haven't googled it yet. Can you make any sense of it off the top of your head? |
Here is a sample from my car (2015 370z)
First number is the "arbitration / Module ID" number It looks like your vehicle uses a 29 bit / extended CAN frame. Also, if you are only seeing one ID, your car might have a OBD gateway. |
@FrankM54 Thanks for explaining the structure. Ahh you're right. Totally forgot that fact. Can you explain what an OBD gateway exactly is? I find different things on the internet about "OBD gateways". |
From the Arduino output, it is functioning as it should as the data has the proper structure. I am not very familiar with VW, but it does look like your Mk7 Golf does have a "CAN gateway" VW calls it a "Data bus diagnostic interface -J533" As I see it, you next step is to locate a wiring diagram so you can understand what modules are on which CAN bus. The below pin out of your J533 module might be helpful. Good luck! |
@FrankM54 Thank you so much for the infos! |
I have the same problem i think |
You need to narrow down the problem and gather more information. The easiest would be to get an oscilloscope and do measurements: Measure the MCP2515's output to make sure that your Arduino setup works correctly, and measure the OBD's 6 and 14 pins to make sure that your car is communicating on those pins and on others. Making sure about your arduino setup can also be done with another exact setup (although this is a little overkill and cumbersome), so basically you are connecting: Arduino -> MCP2515 <-> MCP2515 <- Arduino. With this, you could make sure that whatever you send on one end, you can receive on the other. Just make sure the lines are terminated with 120Ohms: There is a jumper on the MCP2515 board that I showed in the video. Making sure about your car can also be done by searching online and making sure that your car supports the SAEJ1979 standard (High-Speed CAN on pins 6&14), or in turned off status, measure resistance on those pins, and/or in running status, measure the voltage on those pins. |
hello I have a golf 7 and I have the same problem I do not receive any data from the control unit, some solved? |
I'm not able to read out CAN Messages with the provided Code and the MCP2515.
I ordered those on amazon: https://www.amazon.de/gp/product/B01MXYYAEN/ref=ppx_yo_dt_b_asin_title_o00_s00?ie=UTF8&psc=1
I already made the adjustments to match the 8e6 clock frequency.
The code also compiles and get's flashed without any problems.
But I only get:
CAN RX TX Started
... on the serial output.
Im currently using a Diamex CAN-Simulator (https://www.diamex.de/dxshop/Diamex-OBD2-Simulator-alle-Protokolle).
There I'm able to select different CAN protocols/speeds. I tested also different speeds and also different MCP2515 modules.
But somehow I'm stuck. Do you have any idea/suggestions for me?
The text was updated successfully, but these errors were encountered: