Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


Info
titleLinuxcan PPA

A PPA (Personal Package Archive) is now available for Ubuntu 14.04+ to install Kvaser Linuxcan as a DKMS (Dynamic Kernel Module System) module. This saves you from having to rebuild/fix linuxcan after every new kernel upgrade. To install the PPA, do the following:

Code Block
languagebash
sudo apt-add-repository ppa:jwhitleyastuff/kvaser-linux
sudo apt-get update
sudo apt-get install kvaser-canlib-dev kvaser-drivers-dkms

After a reboot, linuxcan should work as before and automatically re-build on a new kernel install. New versions will become available on this PPA as they are released by Kvaser.


Used when configuring a driver launch file to work with a specific Kvaser interface.

  1. Verify that Kvaser Linuxcan SDK has been installed in /usr/src/ followed by a reboot to load the necessary modules.
  2. cd /usr/src/linuxcankvaser-drivers-dkms-<version>/canlib/examples
  3. ./listChannels
    1. The output should look similar to:
    2. Found 2 channels.

      Code Block
      languagebash
      themeMidnight
      channel 0 = Kvaser USBcan Pro 2xHS v2, 73-30130-00752-9, (0)10241, 2.6.0.462
      channel 1 = Kvaser USBcan Pro 2xHS v2, 73-30130-00752-9, (0)10241, 2.6.0.462


  4. The number following the (0) in each of these lines is the CAN Hardware ID (serial number).

  5. The CAN Circuit ID is the 0-based index of the channel that you're using on a specific piece of hardware. For example, the first channel listed here would be CAN Circuit ID 0 and the 2nd would be CAN Circuit ID 1. This ordering starts over for each piece of hardware. If there were two more channels here on another Kvaser USBcan Pro, they would also be CAN Circuit ID 0 and 1 respectively.
  6. Edit the launch file for the hardware you are attempting to interface with using the values you got above for the CAN Hardware ID and CAN Circuit ID.

...

titleLinuxcan PPA

A PPA (Personal Package Archive) is now available for Ubuntu 14.04+ to install Kvaser Linuxcan as a DKMS (Dynamic Kernel Module System) module. This saves you from having to rebuild/fix linuxcan after every new kernel upgrade. To install the PPA, do the following:

Code Block
languagebash
sudo apt-add-repository ppa:jwhitleyastuff/linuxcan-dkms
sudo apt-get update
sudo apt-get install linuxcan-dkms

...

  1. .

Filter by label (Content by label)
showLabelsfalse
max5
spacesRC
showSpacefalse
sortmodified
reversetrue
typepage
cqllabel in ( "ros" , "can" , "launch" ) and type = "page" and space = currentSpace ( )
labelsCAN ROS Launch

...