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