Hi Everyone,
i want to start my post off by saying im a mechanic in orlando and after a day on this forum i can honestly say im over my head and really need help. My uncle's car has electronic power steering an i am trying to bypass the engine computer. i have found some sites that give me the information i am looking for . my problem is i dont know how to put this into the program to make it happen. i have started with a CANBUS template that i download and is in the library but i am truly lost. Any help at all would be greatly appreciated .
201 38 A8 FF FF 3A 2B C8 81 // 0,1 bytes RPM; 4 - Speed (26=0;3F=65; 4F=106; 5F=147; 6F=189)
420 6B 23 C7 00 00 00 61 81 // 0 byte Temp (non linear) (5B-0%; 60-10%; 68-25%; 98=50%;
215 02 2D 02 2D 02 2A 06 81 // Some ECU status
231 0F 00 FF FF 02 2D 06 81 // Some ECU status
240 04 00 28 00 02 37 06 81 // Some ECU status
250 00 00 CF 87 7F 83 00 00 // Some ECU status
200 00 00 FF FF 00 32 06 81 // EPS doesn't work without this
202 89 89 89 19 34 1F C8 FF // EPS doesn't work without this
This is what i have so far but i am not sure how to send the message to the module.
// demo: CAN-BUS Shield, send data
#include <mcp_can.h>
#include <SPI.h>
MCP_CAN CAN0(10); // Set CS to pin 10
void setup()
{
Serial.begin(115200);
// init can bus, baudrate: 500k
if(CAN0.begin(CAN_500KBPS) == CAN_OK) Serial.print("can init ok!!\r\n");
else Serial.print("Can init fail!!\r\n");
}
unsigned char stmp[8] = {0, 1, 2, 3, 4, 5, 6, 7};
void loop()
{
// send data: id = 0x00, standrad flame, data len = 8, stmp: data buf
CAN0.sendMsgBuf(0x201, 0, 8, stmp);
CAN0.sendMsgBuf(0x420, 0, 8, stmp);
CAN0.sendMsgBuf(0x215, 0, 8, stmp);
CAN0.sendMsgBuf(0x231, 0, 8, stmp);
CAN0.sendMsgBuf(0x240, 0, 8, stmp);
CAN0.sendMsgBuf(0x250, 00, 8, stmp);
CAN0.sendMsgBuf(0x200, 00, 8, stmp);
CAN0.sendMsgBuf(0x202, 89, 8, stmp);
delay(100); // send data per 100ms
}
/*********************************************************************************************************
END FILE
*********************************************************************************************************/