Controller Area Network (CAN)
Bring up CAN interface
The bitrate would be dependent on the hardware capabilities of the USB to CAN converter. The example below is setting up bitrate of 500Kbit/s
Bring down CAN interface
If you would like to bring down the interface
Check whether CAN interface is enabled
You would see similar things like below:
Send CAN frame
To send can frame of id 123 and data of AA, BB, CC, DD, EE, FF
Receive CAN frame
If you open another terminal and type the following you can see the dumping of can frame
From the previous sending command, you should be able to see something like below:
CAN filter mask
If you would like to filter certain CAN frame, you can do so by using filter mask.
Since the filter mask would be 29 bits in total, to filter exact CAN Id for example 0x123, it will be like following:
If you would like to filter CAN Id for 0x12x, it would be like following:
Last updated