MyLab-odyssey / ED_BMSdiag

Retrieve battery diagnostic data from your smart electric drive EV.
MIT License
51 stars 19 forks source link

Hint if MCP2515 does not connect #29

Closed escapetaste closed 4 years ago

escapetaste commented 4 years ago

My I2C module with the MCP2515 has a 8Mhz crystal mounted instead of 16Mhz. This makes the whole thing work except of connecting to the CANbus. When the same issue occurs at your home, simply change line 86 in canDiag.cpp that reads: if (myCAN0->begin(MCP_STD, CAN_500KBPS, MCP_16MHZ) == CAN_OK) { to: if (myCAN0->begin(MCP_STD, CAN_500KBPS, MCP_8MHZ) == CAN_OK) { before compiling.