doc/manual/en/html/node36.html
author lbessard
Wed, 25 Jul 2007 18:01:14 +0200
changeset 245 d43ebbed895f
parent 215 f49e5a6b7804
permissions -rw-r--r--
Modifying gen_cfile.py for generating C file from a node as data rather than a manager
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

<!--Converted with LaTeX2HTML 2002-2-1 (1.71)
original version by:  Nikos Drakos, CBLU, University of Leeds
* revised and updated by:  Marcus Hennecke, Ross Moore, Herb Swan
* with significant contributions from:
  Jens Lippmann, Marek Rouchal, Martin Wilck and others -->
<HTML>
<HEAD>
<TITLE>A single node with PcanLight and Peak CAN-USB adapter</TITLE>
<META NAME="description" CONTENT="A single node with PcanLight and Peak CAN-USB adapter">
<META NAME="keywords" CONTENT="manual">
<META NAME="resource-type" CONTENT="document">
<META NAME="distribution" CONTENT="global">

<META NAME="Generator" CONTENT="LaTeX2HTML v2002-2-1">
<META HTTP-EQUIV="Content-Style-Type" CONTENT="text/css">

<LINK REL="STYLESHEET" HREF="manual.css">

<LINK REL="next" HREF="node37.html">
<LINK REL="previous" HREF="node35.html">
<LINK REL="up" HREF="node35.html">
<LINK REL="next" HREF="node37.html">
</HEAD>

<BODY >

<DIV CLASS="navigation"><!--Navigation Panel-->
<A NAME="tex2html616"
  HREF="node37.html">
<IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next"
 SRC="/usr/share/latex2html/icons/next.png"></A> 
<A NAME="tex2html612"
  HREF="node35.html">
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up"
 SRC="/usr/share/latex2html/icons/up.png"></A> 
<A NAME="tex2html606"
  HREF="node35.html">
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous"
 SRC="/usr/share/latex2html/icons/prev.png"></A> 
<A NAME="tex2html614"
  HREF="node1.html">
<IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents"
 SRC="/usr/share/latex2html/icons/contents.png"></A>  
<BR>
<B> Next:</B> <A NAME="tex2html617"
  HREF="node37.html">Two nodes with PcanLight</A>
<B> Up:</B> <A NAME="tex2html613"
  HREF="node35.html">Cygwin configuration and compilation</A>
<B> Previous:</B> <A NAME="tex2html607"
  HREF="node35.html">Cygwin configuration and compilation</A>
 &nbsp; <B>  <A NAME="tex2html615"
  HREF="node1.html">Contents</A></B> 
<BR>
<BR></DIV>
<!--End of Navigation Panel-->

<H4><A NAME="SECTION00072210000000000000">
A single node with PcanLight and Peak CAN-USB adapter</A>
</H4>
Download the PCAN-Light Zip file for your HW ( URL from download page
): 

<P>
<TT>wget http://www.peak-system.com/files/usb.zip</TT>

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

<P>
<TT>unzip usb.zip</TT>

<P>
Configure CanFestival3 providing path to the desired PcanLight
implementation:

<P>
<TT>cd CanFestival-3</TT>

<P>
<TT>export PCAN_INCLUDE=~/Disk/PCAN-Light/Api/</TT>

<P>
<TT>export PCAN_HEADER=Pcan_usb.h</TT>

<P>
<TT>export PCAN_LIB=~/Disk/PCAN-Light/Lib/Visual&#92;
C++/Pcan_usb.lib</TT>

<P>
<TT>./configure --can=peak_win32</TT>

<P>
<TT>make</TT>

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

<P>
<TT>cp ~/Disk/PCAN-Light/Pcan_usb.dll .</TT>

<P>
<TT>./examples/TestMasterSlave/TestMasterSlave &#92;</TT>

<P>
<TT>  -l drivers/can_peak_win32/cygcan_peak_win32.dll
&#92;</TT>

<P>
<TT>  -S 500K -M none</TT>

<P>
Then, on the other node :

<P>
<TT>./TestMasterSlave -l my_driver.so -S none -M 500K</TT>

<P>
Now messages are beeing exchanged between master and slave node.

<P>
<BR><HR>
<ADDRESS>
epimerde
2007-06-08
</ADDRESS>
</BODY>
</HTML>