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

Can receive packets but can't send #50

Open AriesBreath opened 2 weeks ago

AriesBreath commented 2 weeks ago

Hello. I followed your tutorials on YouTube, I'm working with an Arduino Nano + MCP2515 8MHz. I built your GUI, used Sandeep Mistry library with your modification on the MCP2515.cpp and .h files and open your canSniffer.ino and I'm correctly reading at 500Kbps both in the Arduino IDE serial monitor and in the GUI, the packets comes with no problem.

Annotazione 2024-11-07 202210

I already mapped some packets in my electric motorcycle Ovaobike MCR-S. The problem comes when I try to send a frame because nothing happens. I tried almost all the decoded packets to no avail. If I try to keep sending them continuously sometimes something changes on my bike screen and then it returns as before, but nothing more. On the terminal I see "wrong packet!" and sometimes it happened something like "no permission to write".

In this example you can see I'm trying to send 3 packets (I even tried with 2 or 1 only).

Annotazione 2024-11-07 202316

Here the message screen ready to push the packets. The ID 606 at D1 changes autonomously sometime so is marked as new packet.

Annotazione 2024-11-07 202601

Here I pushed the packets. Only 217 at D2 changes, then returns to normal, then changes again some seconds later, despite the 100ms send delta.

Annotazione 2024-11-07 202655

While the terminal returns errors

Annotazione 2024-11-07 202810

I have no idea how to solve this, can you help me?

AriesBreath commented 1 week ago

I should add that I think that the system is not working due to the constant resending of the legit frames that override my frames. I still haven't found a solution.