doc/manual/en/html/node37.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
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>Two nodes with PcanLight and Peak dual PCMCIA-CAN adapter</TITLE>
6b5a4c21e061 Manual and Documentation finish
nico
parents:
diff changeset
    11
<META NAME="description" CONTENT="Two nodes with PcanLight and Peak dual PCMCIA-CAN 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="previous" HREF="node36.html">
6b5a4c21e061 Manual and Documentation finish
nico
parents:
diff changeset
    22
<LINK REL="up" HREF="node35.html">
6b5a4c21e061 Manual and Documentation finish
nico
parents:
diff changeset
    23
<LINK REL="next" HREF="node38.html">
6b5a4c21e061 Manual and Documentation finish
nico
parents:
diff changeset
    24
</HEAD>
6b5a4c21e061 Manual and Documentation finish
nico
parents:
diff changeset
    25
6b5a4c21e061 Manual and Documentation finish
nico
parents:
diff changeset
    26
<BODY >
6b5a4c21e061 Manual and Documentation finish
nico
parents:
diff changeset
    27
6b5a4c21e061 Manual and Documentation finish
nico
parents:
diff changeset
    28
<DIV CLASS="navigation"><!--Navigation Panel-->
6b5a4c21e061 Manual and Documentation finish
nico
parents:
diff changeset
    29
<A NAME="tex2html626"
6b5a4c21e061 Manual and Documentation finish
nico
parents:
diff changeset
    30
  HREF="node38.html">
6b5a4c21e061 Manual and Documentation finish
nico
parents:
diff changeset
    31
<IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next"
6b5a4c21e061 Manual and Documentation finish
nico
parents:
diff changeset
    32
 SRC="/usr/share/latex2html/icons/next.png"></A> 
6b5a4c21e061 Manual and Documentation finish
nico
parents:
diff changeset
    33
<A NAME="tex2html622"
6b5a4c21e061 Manual and Documentation finish
nico
parents:
diff changeset
    34
  HREF="node35.html">
6b5a4c21e061 Manual and Documentation finish
nico
parents:
diff changeset
    35
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up"
6b5a4c21e061 Manual and Documentation finish
nico
parents:
diff changeset
    36
 SRC="/usr/share/latex2html/icons/up.png"></A> 
6b5a4c21e061 Manual and Documentation finish
nico
parents:
diff changeset
    37
<A NAME="tex2html618"
6b5a4c21e061 Manual and Documentation finish
nico
parents:
diff changeset
    38
  HREF="node36.html">
6b5a4c21e061 Manual and Documentation finish
nico
parents:
diff changeset
    39
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous"
6b5a4c21e061 Manual and Documentation finish
nico
parents:
diff changeset
    40
 SRC="/usr/share/latex2html/icons/prev.png"></A> 
6b5a4c21e061 Manual and Documentation finish
nico
parents:
diff changeset
    41
<A NAME="tex2html624"
6b5a4c21e061 Manual and Documentation finish
nico
parents:
diff changeset
    42
  HREF="node1.html">
6b5a4c21e061 Manual and Documentation finish
nico
parents:
diff changeset
    43
<IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents"
6b5a4c21e061 Manual and Documentation finish
nico
parents:
diff changeset
    44
 SRC="/usr/share/latex2html/icons/contents.png"></A>  
6b5a4c21e061 Manual and Documentation finish
nico
parents:
diff changeset
    45
<BR>
6b5a4c21e061 Manual and Documentation finish
nico
parents:
diff changeset
    46
<B> Next:</B> <A NAME="tex2html627"
6b5a4c21e061 Manual and Documentation finish
nico
parents:
diff changeset
    47
  HREF="node38.html">Visual Studio C++</A>
6b5a4c21e061 Manual and Documentation finish
nico
parents:
diff changeset
    48
<B> Up:</B> <A NAME="tex2html623"
6b5a4c21e061 Manual and Documentation finish
nico
parents:
diff changeset
    49
  HREF="node35.html">Cygwin configuration and compilation</A>
6b5a4c21e061 Manual and Documentation finish
nico
parents:
diff changeset
    50
<B> Previous:</B> <A NAME="tex2html619"
6b5a4c21e061 Manual and Documentation finish
nico
parents:
diff changeset
    51
  HREF="node36.html">A single node with</A>
6b5a4c21e061 Manual and Documentation finish
nico
parents:
diff changeset
    52
 &nbsp; <B>  <A NAME="tex2html625"
6b5a4c21e061 Manual and Documentation finish
nico
parents:
diff changeset
    53
  HREF="node1.html">Contents</A></B> 
6b5a4c21e061 Manual and Documentation finish
nico
parents:
diff changeset
    54
<BR>
6b5a4c21e061 Manual and Documentation finish
nico
parents:
diff changeset
    55
<BR></DIV>
6b5a4c21e061 Manual and Documentation finish
nico
parents:
diff changeset
    56
<!--End of Navigation Panel-->
6b5a4c21e061 Manual and Documentation finish
nico
parents:
diff changeset
    57
6b5a4c21e061 Manual and Documentation finish
nico
parents:
diff changeset
    58
<H4><A NAME="SECTION00072220000000000000">
6b5a4c21e061 Manual and Documentation finish
nico
parents:
diff changeset
    59
Two nodes with PcanLight and Peak dual PCMCIA-CAN adapter</A>
6b5a4c21e061 Manual and Documentation finish
nico
parents:
diff changeset
    60
</H4>
6b5a4c21e061 Manual and Documentation finish
nico
parents:
diff changeset
    61
Download the PCAN-Light Zip file for your HW ( URL from download page
6b5a4c21e061 Manual and Documentation finish
nico
parents:
diff changeset
    62
): 
6b5a4c21e061 Manual and Documentation finish
nico
parents:
diff changeset
    63
6b5a4c21e061 Manual and Documentation finish
nico
parents:
diff changeset
    64
<P>
6b5a4c21e061 Manual and Documentation finish
nico
parents:
diff changeset
    65
<TT>wget http://www.peak-system.com/files/pccard.zip</TT>
6b5a4c21e061 Manual and Documentation finish
nico
parents:
diff changeset
    66
6b5a4c21e061 Manual and Documentation finish
nico
parents:
diff changeset
    67
<P>
6b5a4c21e061 Manual and Documentation finish
nico
parents:
diff changeset
    68
Extract its content into your cygwin home (it will create a ``Disk''
6b5a4c21e061 Manual and Documentation finish
nico
parents:
diff changeset
    69
directory):
6b5a4c21e061 Manual and Documentation finish
nico
parents:
diff changeset
    70
6b5a4c21e061 Manual and Documentation finish
nico
parents:
diff changeset
    71
<P>
6b5a4c21e061 Manual and Documentation finish
nico
parents:
diff changeset
    72
<TT>unzip pccard.zip</TT>
6b5a4c21e061 Manual and Documentation finish
nico
parents:
diff changeset
    73
6b5a4c21e061 Manual and Documentation finish
nico
parents:
diff changeset
    74
<P>
6b5a4c21e061 Manual and Documentation finish
nico
parents:
diff changeset
    75
The configure CanFestival3 providing path to the desired PcanLight
6b5a4c21e061 Manual and Documentation finish
nico
parents:
diff changeset
    76
implementation:
6b5a4c21e061 Manual and Documentation finish
nico
parents:
diff changeset
    77
6b5a4c21e061 Manual and Documentation finish
nico
parents:
diff changeset
    78
<P>
6b5a4c21e061 Manual and Documentation finish
nico
parents:
diff changeset
    79
<TT>export PCAN_INCLUDE=~/Disk/PCAN-Light/Api/
6b5a4c21e061 Manual and Documentation finish
nico
parents:
diff changeset
    80
<BR>
6b5a4c21e061 Manual and Documentation finish
nico
parents:
diff changeset
    81
export PCAN_HEADER=Pcan_pcc.h
6b5a4c21e061 Manual and Documentation finish
nico
parents:
diff changeset
    82
<BR>
6b5a4c21e061 Manual and Documentation finish
nico
parents:
diff changeset
    83
export PCAN_LIB=~/Disk/PCAN-Light/Lib/Visual&#92;
6b5a4c21e061 Manual and Documentation finish
nico
parents:
diff changeset
    84
C++/Pcan_pcc.lib
6b5a4c21e061 Manual and Documentation finish
nico
parents:
diff changeset
    85
<BR>
6b5a4c21e061 Manual and Documentation finish
nico
parents:
diff changeset
    86
export PCAN2_HEADER=Pcan_2pcc.
6b5a4c21e061 Manual and Documentation finish
nico
parents:
diff changeset
    87
<BR>
6b5a4c21e061 Manual and Documentation finish
nico
parents:
diff changeset
    88
export PCAN2_LIB=~/Disk/PCAN-Light/Lib/Visual&#92;
6b5a4c21e061 Manual and Documentation finish
nico
parents:
diff changeset
    89
C++/Pcan_2pcc.lib</TT>
6b5a4c21e061 Manual and Documentation finish
nico
parents:
diff changeset
    90
6b5a4c21e061 Manual and Documentation finish
nico
parents:
diff changeset
    91
<P>
6b5a4c21e061 Manual and Documentation finish
nico
parents:
diff changeset
    92
In order to test, just connect together both CAN ports of the PCMCIA
6b5a4c21e061 Manual and Documentation finish
nico
parents:
diff changeset
    93
card. Dont forget 120ohms terminator.
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>cp ~/Disk/PCAN-Light/Pcan_pcc.dll .</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
<TT>cp ~/Disk/PCAN-Light/Pcan_2pcc.dll .</TT>
6b5a4c21e061 Manual and Documentation finish
nico
parents:
diff changeset
   100
6b5a4c21e061 Manual and Documentation finish
nico
parents:
diff changeset
   101
<P>
6b5a4c21e061 Manual and Documentation finish
nico
parents:
diff changeset
   102
<TT>./examples/TestMasterSlave/TestMasterSlave &#92;</TT>
6b5a4c21e061 Manual and Documentation finish
nico
parents:
diff changeset
   103
6b5a4c21e061 Manual and Documentation finish
nico
parents:
diff changeset
   104
<P>
6b5a4c21e061 Manual and Documentation finish
nico
parents:
diff changeset
   105
<TT>  -l drivers/can_peak_win32/cygcan_peak_win32.dll</TT>
6b5a4c21e061 Manual and Documentation finish
nico
parents:
diff changeset
   106
6b5a4c21e061 Manual and Documentation finish
nico
parents:
diff changeset
   107
<P>
6b5a4c21e061 Manual and Documentation finish
nico
parents:
diff changeset
   108
Messages are then exchanged between master and slave node, both inside
6b5a4c21e061 Manual and Documentation finish
nico
parents:
diff changeset
   109
TestMasterSlaves process.
6b5a4c21e061 Manual and Documentation finish
nico
parents:
diff changeset
   110
6b5a4c21e061 Manual and Documentation finish
nico
parents:
diff changeset
   111
<P>
6b5a4c21e061 Manual and Documentation finish
nico
parents:
diff changeset
   112
<BR><HR>
6b5a4c21e061 Manual and Documentation finish
nico
parents:
diff changeset
   113
<ADDRESS>
6b5a4c21e061 Manual and Documentation finish
nico
parents:
diff changeset
   114
epimerde
215
f49e5a6b7804 Manual and Documentation finish
nico
parents: 211
diff changeset
   115
2007-06-08
210
6b5a4c21e061 Manual and Documentation finish
nico
parents:
diff changeset
   116
</ADDRESS>
6b5a4c21e061 Manual and Documentation finish
nico
parents:
diff changeset
   117
</BODY>
6b5a4c21e061 Manual and Documentation finish
nico
parents:
diff changeset
   118
</HTML>