A single node with PcanLight and Peak CAN-USB adapter

Download the PCAN-Light Zip file for your HW ( URL from download page ):

wget http://www.peak-system.com/files/usb.zip

Extract its content into your cygwin home (it will create a ``Disk'' directory):

unzip usb.zip

Configure CanFestival3 providing path to the desired PcanLight implementation:

cd CanFestival-3

export PCAN_INCLUDE=~/Disk/PCAN-Light/Api/

export PCAN_HEADER=Pcan_usb.h

export PCAN_LIB=~/Disk/PCAN-Light/Lib/Visual\ C++/Pcan_usb.lib

./configure --can=peak_win32

make

In order to test, you have to use another CanFestival node, connect with a CAN cable.

cp ~/Disk/PCAN-Light/Pcan_usb.dll .

./examples/TestMasterSlave/TestMasterSlave \

-l drivers/can_peak_win32/cygcan_peak_win32.dll \

-S 500K -M none

Then, on the other node :

./TestMasterSlave -l my_driver.so -S none -M 500K

Now messages are beeing exchanged between master and slave node.



epimerde 2007-06-05