CAN Adapter

02 Feb 2012

I want to use the mBed to make a CAN adapter of sorts. All I need it to do is receive a CAN message and spit it out on one of the Serial ports as RS-232 and visa-versa, i.e. receive a serial massage and spit it out on the CAN.

Example, it might receive a CAN message like this :X18FEEF00NFFFFFF00FFFFFFFF; and I want the serial to look identical. Similarly, I want to be able to send it a serial string like this, :X18FEEF00NFFFFFF00FFFFFFFF; and have it sent out the CAN bus.

This might be a very simple thing, but could someone help me get started with the code? I'm not real familiar with the C compiler and definitions.

Thanks!

02 Feb 2012

Take a look at this student project http://mbed.org/cookbook/OBDII-Can-Bus. It has some code and links to the CAN bus breakout boards.

02 Feb 2012

Thanks, I'll have a look