adamtheone / canDrive

Tools for hacking your car
https://www.youtube.com/playlist?list=PLNiFaO8hU1z0o_6DSxk-jcVAM3UCUR-pY
MIT License
544 stars 147 forks source link

No data after successful connection #33

Open cgavaller2 opened 1 year ago

cgavaller2 commented 1 year ago

I'm seeming to have a similar issue to others:

When connected to my 2012 Ford fusion, all CAN library examples work well, and on start of the CanSniffer.ino code, the "rx tx started" message appears with no errors, but within the GUI application there are no packets visible. No packets through the serial monitor either. The CanReciever example built-in to the library works fine on the same 500Kbps speed, so it isn't that. Any ideas?

adamtheone commented 1 year ago

Let's concentrate on the arduino code only until you see some packets on the serial monitor. You could try adding some delay in the main loop or somewhere else. Maybe there are too many messages coming in and the arduino just crashes. Let me know.

Stefano19-Bongiovanni commented 1 year ago

Did you solved it? I have the same problem with my Mercedes Benz a170, when I connect it I receive "CAN RX TX Started " but no other message. Just minding if I need something extra to do like sending a first message to start receiving, like "hey I'm here, start sending!"

cpocol commented 1 year ago

Try printing debug messages via serial. Don't use the GUI app but watch what happens in serial monitor. Try to conclude whether the arduino crashes.

Stefano19-Bongiovanni commented 1 year ago

I tried, the message "CAN RX TX Started" is from the Arduino IDE's serial monitor.

cpocol commented 1 year ago

Print more :)

adamtheone commented 1 year ago

As mentioned the obvious above: check your connections, check your oscillator frequency, and check the CAN library examples.