First of all you'll need to find the pin assignment of the T4 dash, because you have to know which pins are used for the CAN BUS data transfer.
Then you'll need the syntax of sending the CAN Broadcast over the CAN Bus Shield/Adaptor (here's what I used):
unsigned char stmp[8] = {0, 1, 2, 3, 4, 5, 6, 7};
CAN.sendMsgBuf(0x00, 0, 8, stmp);
The rest is just trying to find the right register addresses. I managed it with Brutforce (a simple "for loop")
Something like:
for (int i = 0; i < 4096; i++) {
unsigned char stmp[8] = {128,128,128,128,128,128,128,128};
CAN.sendMsgBuf( i, 0, 8, stmp);
serial.println( i ); //Print out the actual register address
delay(100); //wait to check if there happened something on the dash
}
You should try to vary the values. Most of it worked with 128, 0, 64 or 255. The loop only has to go to 4095, because this is the maximum value for an 3 digit hexadecimal register address (register reaches from 0x000 to 0xFFF).
I hope this helps. Thanks for your interest!
Discussions
Become a Hackaday.io Member
Create an account to leave a comment. Already have an account? Log In.
Hello,
I have a problem, I tried this code and if I use variable "i" to sendMsgBuf my dashboard doesn´t change state, but if I replace variable "i" value 0x280 in HEX or 640 in DEC, all works OK.....where is the problem?
Are you sure? yes | no