Hello folk, I have a issue for my car i can not read can data using mcp2515 interfacing with arduino
this my code-
include
include
include
include
include
void setup() {
Serial.begin(9600); // For debug use
Serial.println("CAN Read - Testing receival of CAN Bus message");
delay(1000);
if(Canbus.init(CANSPEED_500)) //Initialise MCP2515 CAN controller at the specified speed
Serial.println("CAN Init ok");
else
Serial.println("Can't init CAN");
delay(1000);
}
void loop(){
tCAN message;
if (mcp2515_check_message())
{
if (mcp2515_get_message(&message))
{
if(message.id == 0x620 and message.data[2] == 0xFF) //uncomment when you want to filter
{
}
if anyone have best solution please tell me another way to solve this problem suggest me. i want to raed can data and uploading my server. but first thing is read can data in serial monitor
Hello folk, I have a issue for my car i can not read can data using mcp2515 interfacing with arduino this my code-
include
include
include
include
include
void setup() { Serial.begin(9600); // For debug use Serial.println("CAN Read - Testing receival of CAN Bus message");
delay(1000);
if(Canbus.init(CANSPEED_500)) //Initialise MCP2515 CAN controller at the specified speed Serial.println("CAN Init ok"); else Serial.println("Can't init CAN");
delay(1000); }
void loop(){
tCAN message; if (mcp2515_check_message()) { if (mcp2515_get_message(&message)) { if(message.id == 0x620 and message.data[2] == 0xFF) //uncomment when you want to filter {
} if anyone have best solution please tell me another way to solve this problem suggest me. i want to raed can data and uploading my server. but first thing is read can data in serial monitor