doc/manual/en/html/node36.html
changeset 210 6b5a4c21e061
child 211 2a4c2ca03555
equal deleted inserted replaced
209:2cb34a4ac65a 210:6b5a4c21e061
       
     1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
       
     2 
       
     3 <!--Converted with LaTeX2HTML 2002-2-1 (1.71)
       
     4 original version by:  Nikos Drakos, CBLU, University of Leeds
       
     5 * revised and updated by:  Marcus Hennecke, Ross Moore, Herb Swan
       
     6 * with significant contributions from:
       
     7   Jens Lippmann, Marek Rouchal, Martin Wilck and others -->
       
     8 <HTML>
       
     9 <HEAD>
       
    10 <TITLE>A single node with PcanLight and Peak CAN-USB adapter</TITLE>
       
    11 <META NAME="description" CONTENT="A single node with PcanLight and Peak CAN-USB adapter">
       
    12 <META NAME="keywords" CONTENT="manual">
       
    13 <META NAME="resource-type" CONTENT="document">
       
    14 <META NAME="distribution" CONTENT="global">
       
    15 
       
    16 <META NAME="Generator" CONTENT="LaTeX2HTML v2002-2-1">
       
    17 <META HTTP-EQUIV="Content-Style-Type" CONTENT="text/css">
       
    18 
       
    19 <LINK REL="STYLESHEET" HREF="manual.css">
       
    20 
       
    21 <LINK REL="next" HREF="node37.html">
       
    22 <LINK REL="previous" HREF="node35.html">
       
    23 <LINK REL="up" HREF="node35.html">
       
    24 <LINK REL="next" HREF="node37.html">
       
    25 </HEAD>
       
    26 
       
    27 <BODY >
       
    28 
       
    29 <DIV CLASS="navigation"><!--Navigation Panel-->
       
    30 <A NAME="tex2html616"
       
    31   HREF="node37.html">
       
    32 <IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next"
       
    33  SRC="/usr/share/latex2html/icons/next.png"></A> 
       
    34 <A NAME="tex2html612"
       
    35   HREF="node35.html">
       
    36 <IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up"
       
    37  SRC="/usr/share/latex2html/icons/up.png"></A> 
       
    38 <A NAME="tex2html606"
       
    39   HREF="node35.html">
       
    40 <IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous"
       
    41  SRC="/usr/share/latex2html/icons/prev.png"></A> 
       
    42 <A NAME="tex2html614"
       
    43   HREF="node1.html">
       
    44 <IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents"
       
    45  SRC="/usr/share/latex2html/icons/contents.png"></A>  
       
    46 <BR>
       
    47 <B> Next:</B> <A NAME="tex2html617"
       
    48   HREF="node37.html">Two nodes with PcanLight</A>
       
    49 <B> Up:</B> <A NAME="tex2html613"
       
    50   HREF="node35.html">Cygwin configuration and compilation</A>
       
    51 <B> Previous:</B> <A NAME="tex2html607"
       
    52   HREF="node35.html">Cygwin configuration and compilation</A>
       
    53  &nbsp; <B>  <A NAME="tex2html615"
       
    54   HREF="node1.html">Contents</A></B> 
       
    55 <BR>
       
    56 <BR></DIV>
       
    57 <!--End of Navigation Panel-->
       
    58 
       
    59 <H4><A NAME="SECTION00072210000000000000">
       
    60 A single node with PcanLight and Peak CAN-USB adapter</A>
       
    61 </H4>
       
    62 Download the PCAN-Light Zip file for your HW ( URL from download page
       
    63 ): 
       
    64 
       
    65 <P>
       
    66 <TT>wget http://www.peak-system.com/files/usb.zip</TT>
       
    67 
       
    68 <P>
       
    69 Extract its content into your cygwin home (it will create a ``Disk''
       
    70 directory):
       
    71 
       
    72 <P>
       
    73 <TT>unzip usb.zip</TT>
       
    74 
       
    75 <P>
       
    76 Configure CanFestival3 providing path to the desired PcanLight
       
    77 implementation:
       
    78 
       
    79 <P>
       
    80 <TT>cd CanFestival-3</TT>
       
    81 
       
    82 <P>
       
    83 <TT>export PCAN_INCLUDE=~/Disk/PCAN-Light/Api/</TT>
       
    84 
       
    85 <P>
       
    86 <TT>export PCAN_HEADER=Pcan_usb.h</TT>
       
    87 
       
    88 <P>
       
    89 <TT>export PCAN_LIB=~/Disk/PCAN-Light/Lib/Visual&#92;
       
    90 C++/Pcan_usb.lib</TT>
       
    91 
       
    92 <P>
       
    93 <TT>./configure --can=peak_win32</TT>
       
    94 
       
    95 <P>
       
    96 <TT>make</TT>
       
    97 
       
    98 <P>
       
    99 In order to test, you have to use another CanFestival node, connect with
       
   100 a CAN cable.
       
   101 
       
   102 <P>
       
   103 <TT>cp ~/Disk/PCAN-Light/Pcan_usb.dll .</TT>
       
   104 
       
   105 <P>
       
   106 <TT>./examples/TestMasterSlave/TestMasterSlave &#92;</TT>
       
   107 
       
   108 <P>
       
   109 <TT>  -l drivers/can_peak_win32/cygcan_peak_win32.dll
       
   110 &#92;</TT>
       
   111 
       
   112 <P>
       
   113 <TT>  -S 500K -M none</TT>
       
   114 
       
   115 <P>
       
   116 Then, on the other node :
       
   117 
       
   118 <P>
       
   119 <TT>./TestMasterSlave -l my_driver.so -S none -M 500K</TT>
       
   120 
       
   121 <P>
       
   122 Now messages are beeing exchanged between master and slave node.
       
   123 
       
   124 <P>
       
   125 <BR><HR>
       
   126 <ADDRESS>
       
   127 epimerde
       
   128 2007-06-05
       
   129 </ADDRESS>
       
   130 </BODY>
       
   131 </HTML>