Two nodes with PcanLight and Peak dual PCMCIA-CAN adapter

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

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

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

unzip pccard.zip

The configure CanFestival3 providing path to the desired PcanLight implementation:

export PCAN_INCLUDE=~/Disk/PCAN-Light/Api/
export PCAN_HEADER=Pcan_pcc.h
export PCAN_LIB=~/Disk/PCAN-Light/Lib/Visual\ C++/Pcan_pcc.lib
export PCAN2_HEADER=Pcan_2pcc.
export PCAN2_LIB=~/Disk/PCAN-Light/Lib/Visual\ C++/Pcan_2pcc.lib

In order to test, just connect together both CAN ports of the PCMCIA card. Dont forget 120ohms terminator.

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

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

./examples/TestMasterSlave/TestMasterSlave \

-l drivers/can_peak_win32/cygcan_peak_win32.dll

Messages are then exchanged between master and slave node, both inside TestMasterSlaves process.



epimerde 2007-06-06