TroubleshootingArduino

CAN-Bus shield example initializing without shield connected

userHead JarradB 2022-07-09 06:44:54 308 Views1 Replies

Hi, trying to troubleshoot why I'm not receiving any CAN data from my CAN-Bus Shield v2.0.

 

I have installed the library from https://github.com/DFRobot/DFRobot_MCP2515

 

I uploaded the example receiveCheck program from the library, however it compiles and prints the message "DFROBOT's CAN BUS Shield init ok!" without the CAN-Bus Shield v2.0 even connected to the Arduino.

 

Is this correct behaviour?

 

Also the link to the library in the wiki page returns 404 not found https://wiki.dfrobot.com/CAN-BUS_Shield_V2__SKU__DFR0370_

 

Thanks

2022-08-30 11:13:46

Sorry to reply you for so long. 

 

We have found the reason for your problem. After the Arduino ide version is updated, the write function is no longer supported to write data in the serial port. 

 

The following modifications are required:

After modification, you can normally receive the data sent by CAN in the serial port. And we will update the Wiki in time.

Thank you for your support to our company.

userHeadPic Zane