using CAN485 module with CANOpen

Hi all,

I’ve got the AST-CAN485 board and am trying to use it with the CANOpen protocol instead of standard CAN. I was hoping to adapt the example code ‘CAN_Receiver’ that comes with the board. Since I’m only using it as a slave node, I thought this might be a relatively straightforward task.

I’ve got some basic C-programming skills, enough to get a simple enough job done, but going through the code in the ‘AST_CAN_Arduino_Library-master’ (attached for reference) is proving to be way above my head.

I was wondering if anyone could point me in the right direction for where I might start to adapt the code for CANOpen? If I could even just get something set up where I can stream in received bytes at the given baud rate that’d be a great start.

thanks in advance

AST_CAN_Arduino_Library-master.zip (33.9 KB)

Update: I’m not sure what I was doing wrong at first but I’m actually now able to receive in the CANOpen format messages using the CAN_Receiver example code.

Hello sarv, and thanks for the forum post.

I don’t see any reason why you couldn’t use CANOpen on the AST-CAN485 board, but you’d need to write your own firmware to make that happen. Unfortunately SparkFun is not able to assist you in writing your own firmware but others might be able to help. The links below might also be helpful to you.

  • [CAN open Arduino Guide
  • - [[jgeisler0303/AGCON](https://github.com/jgeisler0303/AGCON)
  • - [[CANopenNode/CANopenNode](https://github.com/CANopenNode/CANopenNode)
  • [/list]

    Good luck wit your project, and if you do develop a CANOpen library, please share that with the forum. :-)](GitHub - CANopenNode/CANopenNode: CANopen protocol stack)](GitHub - jgeisler0303/AGCON: Arduino Generic CAN Open Node)](http://majewtech.com/index.php/home/electronics-projects/can-open-to-pwm-using-arduino-guide/)