PCAN USB installation
We use the USB to CAN dongle from grid connect.
On Linux:
Install dependencies:
sudo apt-get install libpopt-dev
Download their latest PCAN USB linux driver . On that page scroll down to Driver Download Version 6.11 (26.06.2009) and download the tar.gz file.
[UPDATE: Please use version 7.4 or newer if you are using Ubuntu 11.04 or newer!]
The current version at the time of this writing is Release Version 6.11. The installation will look for "version.h" in the /usr/src/linux folder. In Ubuntu this folder does not exist so go to the folder and create a symbolic link to redirect:
cd /usr/src
sudo ln -s linux-headers-2.6.xx-yy-generic linux
(replace xx and yy with your kernel version that you find in this folder). Then change directory where you downloaded the linux driver and follow the driver installation instructions:
cd ~/peak-linux-driver-x.y
make clean
make NET=NO PCC=NO
sudo make install
Note that setting NET=NO compiles the driver WITHOUT netdev configuration which is totally confusing in the installation instructions. Also make sure you have g++ installed on Ubuntu before the compilation.After compiling the sources and the following binary installation on your target computer it's enough to type in
sudo /sbin/modprobe pcan
To check that the module is installed:
sudo lsmod | grep can
should return a line with the word pcan in it.
On Windows:
• Install PCANUSB
○ Download from http://www.peak-system.com/Product-Details.49+M578cbdb898b.0.html?&L=1&tx_commerce_pi1[catUid]=6&tx_commerce_pi1[showUid]=16
§ Under Downloads, click PCAN-USB package
§ Unzip, navigate to Disk/, and double click PeakOemDrv.exe
○ If the usb adapter does not work at this point, you may have to navigate to PCAN-Light API/Win32/ in the zip and copy Pcan_usb.dll and paste it into C:/Windows/System32
§ (you can try the same on a x64 architecture using the Pcan_usb.dll from PCAN-Light API/x64
Next let's install the CKBot Software.
For those that prefer a GUI you can use the CKBotGUI. For those who are more comfortable with programming and prefer a command line or programmatic interface you can use CKBotIX.