By the end of this section, you will have learned how to create a virtual CAN interface on the Gemstone development board.

Todo: The image of the board indicating the CanBUS pins
- After connecting to the Gemstone operating system, install the
kernel-module-vcan-6.1.83-ti
module to create a virtual CAN interface.
- Activate the installed module using the
modprobe
command.
- Follow the commands below to create the virtual CAN interface.
- Create a script file named
can-test.sh
and open it.
- Copy and paste the following code into the
can-test.sh
file. Save and close the file.
- Install the
can-utils
package to use commands such ascansend
andcandump
for sending and receiving CAN packets.
- Open two terminals.
- Start listening to the CAN interface from the first terminal.
- Run the
can-test.sh
script from the second terminal.
Communication over virtual CAN interface