Skip to main content
By the end of this section, you will have learned how to create a virtual CAN interface on the Gemstone development board.
In the Gemstone operating system, a virtual CAN interface can be created, allowing data communication without the need for any additional hardware.

CanBUS Connection

  • 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 as cansend and candump for sending and receiving CAN packets.
  1. Open two terminals.
  2. Start listening to the CAN interface from the first terminal.
  1. Run the can-test.sh script from the second terminal.

Communication over virtual CAN interface