Really in the infant stage, its been a while since ive messed with arduino.
Im basically trying to stop certain data coming from bosch ecu, to go to another module.
Ficticious Example, if vehicle goes over 100mph the wing angles down. The ecu feeds the data to the module, so if i could stop the info, or modify it to show lower value, it would be great.
0 danger in my application. Nothing critical controlled via can, only engine, which i already control and program. Not a vehicle used in public, and not driven. Only used in static, controlled environment.
Okey.
Check up what speed the CAN bus i using and look for CAN interfaces matching it.
The built in examples, in the IDE, might provide code material to start from.
That would complicate the project by a factor 4 and make it slower.
As already said, start by identifying the target message.
If it is the target, manipulate it and send it. It not the target message, send it.
I don’t think you can do it as the modules respond to data they consider theirs . You can’t “ block traffic “ on the Can Bus from reaching a particular module .
You need to create a gateway and catch the signals as they come from the source and discard the unwanted but pass on all of the rest. This module will have two can busses and pass all downstream to the upstream module. Be careful of some of the signals are time sensitive. If something is looking for this signal it may fault out on you.
I am not familiar with it but a quick check says it should work and do what you want. Be sure you have another CAN device on the bus while doing initial checkout.
The engine will get its info directly from sensors and will not be impacted by canbus data. The ecu will send out that data (example...like sending rpm value, or fuel level to cluster). Now if you alter something like throttle value...yes you could potentially hurt something...but in this case, not really. It will only be run on bench.