nico@210: nico@210: nico@210: nico@210: nico@210: nico@210: A single node with PcanLight and Peak CAN-USB adapter nico@210: nico@210: nico@210: nico@210: nico@210: nico@210: nico@210: nico@210: nico@210: nico@210: nico@210: nico@210: nico@210: nico@210: nico@210: nico@210: nico@210: nico@210: nico@210: nico@210: nico@210: nico@210:

nico@210: A single node with PcanLight and Peak CAN-USB adapter nico@210:

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

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

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

nico@210: unzip usb.zip nico@210: nico@210:

nico@210: Configure CanFestival3 providing path to the desired PcanLight nico@210: implementation: nico@210: nico@210:

nico@210: cd CanFestival-3 nico@210: nico@210:

nico@210: export PCAN_INCLUDE=~/Disk/PCAN-Light/Api/ nico@210: nico@210:

nico@210: export PCAN_HEADER=Pcan_usb.h nico@210: nico@210:

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

nico@210: ./configure --can=peak_win32 nico@210: nico@210:

nico@210: make nico@210: nico@210:

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

nico@210: cp ~/Disk/PCAN-Light/Pcan_usb.dll . nico@210: nico@210:

nico@210: ./examples/TestMasterSlave/TestMasterSlave \ nico@210: nico@210:

nico@210: -l drivers/can_peak_win32/cygcan_peak_win32.dll nico@210: \ nico@210: nico@210:

nico@210: -S 500K -M none nico@210: nico@210:

nico@210: Then, on the other node : nico@210: nico@210:

nico@210: ./TestMasterSlave -l my_driver.so -S none -M 500K nico@210: nico@210:

nico@210: Now messages are beeing exchanged between master and slave node. nico@210: nico@210:

nico@210:


nico@210:
nico@210: epimerde nico@210: 2007-06-05 nico@210:
nico@210: nico@210: