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!
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!