Skip to content
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

The CAN driver sends wrongs data on the vanbus. #48

Open
IMAY2009 opened this issue Sep 6, 2024 · 3 comments
Open

The CAN driver sends wrongs data on the vanbus. #48

IMAY2009 opened this issue Sep 6, 2024 · 3 comments

Comments

@IMAY2009
Copy link

IMAY2009 commented Sep 6, 2024

I am using two identical boards. The only difference is the mcp2515 driver on the Arduino.
The sniffer tool receives the data from any source (CAR or the second board), after saving the session or playing back the very same session outputs wrong data via CAN BUS. All data fields are empty except D1 with wrong data.

Although the terminal shows the correct data in the buffer, the actual canbus frames are missing or wrong!

If the session is saved with this version and send out with previous version, the output data is still wrong!

@adamtheone
Copy link
Owner

Not sure if I got the last parts, but try to narrow down the problem by printing out some intermediate variables, or emulating a serial terminal, etc.

@IMAY2009
Copy link
Author

That is exactly what I tested. Scanning 2019 VOLVO S60 CAN BUS at 500kbps. It's the comfort CAN BUS. door, seat climate control ECUS and CEM.
I have identical second board. The second board is loaded with "https://github.com/autowp/arduino-canhacker" using canhacker software. Serial working in 115200 rate
I connected both board to the same CAN network and started to capture at the same time.
The sniffer is missing (do not appear) many message IDs and the messages while they are captured with other board (CanHacker).

@IMAY2009
Copy link
Author

I did further testing today. My goal is catching the message sent by CEM to CCM to turn on and off the rear seat cooling vents.
I captured all messages while turning on the rear seat vents left and then right.
Then I played back all the messages. It triggered unrelated things like child lock, front massage seat menu, front left seat memory position 1 and middle seat release which I do not have. At this point it is certain that something is wrong with the capturing can messages, the values or the message ID or both.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants