I tried to insert the code but it did not allow me to send the message
If another code worked for me with another library that someone else gave me (but I can’t get anything else from that person, it sent me to make this work) … from which I got some messages that I would like to be able to send to the network. I already tried many things without success.
CAN_Read_Demo should show all traffic on your CAN Bus. If you’re just connected to a vehicle dashboard that’s not connected to a car, you might not see anything because the vehicle dashboard may not be sending any data.
The CAN_Write_Demo sketch sends data to a specific CAN address, but if your dashboard doesn’t have anything listening at that address, you won’t see anything happen.
Does your dashboard have bus terminating resistors installed? The shield doesn’t and if your end device doesn’t either, you will need to add a 120 ohm resistor across your CAN_H and CAN_L lines to see any activity.
I have realized that the speed options available in this library are 125,250,500 and the speed of this network is 50kbps, I should modify the library in order to achieve communication and I don’t have that knowledge yet … at least I could realize I think of the error. Is it possible that someone can show me what portion of code I should add in order to declare CANSPEED_50?
It should be possible to change the library to enable a lower speed, but unfortunately that’s beyond the scope of what we can assist with and I’m afraid I can’t help you with this.