I'm trying to read the can bus code. For diagnosing ms3 can bus issues with turbo.
I tried a few different can bus reader sketches with no luck.
what do you guys use?
Thanks
current ms3 alpha code
/* Typically the turbo wants 250k baud. (Ford application 500k?) */
if (ram5.can_bcast2 & CAN_BCAST2_HE351) {
unsigned int bv;
/* holset HE351VE VGT turbo and a wastegate
29bit CAN message 0x0cffc600
8 bytes
D0, D1 = 16 bit little endian value 0-1000 for position
D1 = 0x02
D2 = 0x01
D3 = 0xff
D4 = 0xff
D5 = 0xff
D6 = 0xff
D7 = 0xff
----------------------
*/
bv = outpc.boostduty * 10; /* convert 0-100 to 0-1000 */
data[0] = bv & 0xff;
data[1] = bv >> 8;
data[2] = 0x01;
data[3] = 0xff;
data[4] = 0xff;
data[5] = 0xff;
data[6] = 0xff;
data[7] = 0xff;
send_can29bit(0x0cffc600, data, 8);
}
if your interested.
I don't quite follow what you're trying to do here
do you have a second unit you can plug into the CAN bus to see whats actually being sent?
i didn't right the code but im trying to see whats actually being sent.
I have an extra Arduino and shield.
take a look at the arduino CAN library examples, I think there's something workable in there with a bit of modification IIRC
tried the 4 examples in can bus master library.
if i turn ms3 coolant broadcast i get some gibberish code.
but nothing from lil black box or ms3 he351 broadcast.
I just need a good sniffer and instructions for dummies lol.