doc/manual/en/html/node53.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>TestMasterSlave</TITLE>
       
    11 <META NAME="description" CONTENT="TestMasterSlave">
       
    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="node54.html">
       
    22 <LINK REL="previous" HREF="node52.html">
       
    23 <LINK REL="up" HREF="node52.html">
       
    24 <LINK REL="next" HREF="node54.html">
       
    25 </HEAD>
       
    26 
       
    27 <BODY >
       
    28 
       
    29 <DIV CLASS="navigation"><!--Navigation Panel-->
       
    30 <A NAME="tex2html830"
       
    31   HREF="node54.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="tex2html826"
       
    35   HREF="node52.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="tex2html820"
       
    39   HREF="node52.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="tex2html828"
       
    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="tex2html831"
       
    48   HREF="node54.html">gene_SYNC_HCS12 :</A>
       
    49 <B> Up:</B> <A NAME="tex2html827"
       
    50   HREF="node52.html">Example and test program:</A>
       
    51 <B> Previous:</B> <A NAME="tex2html821"
       
    52   HREF="node52.html">Example and test program:</A>
       
    53  &nbsp; <B>  <A NAME="tex2html829"
       
    54   HREF="node1.html">Contents</A></B> 
       
    55 <BR>
       
    56 <BR></DIV>
       
    57 <!--End of Navigation Panel-->
       
    58 
       
    59 <H2><A NAME="SECTION00091000000000000000">
       
    60 TestMasterSlave</A>
       
    61 </H2>
       
    62 <TT>**************************************************************</TT>
       
    63 
       
    64 <P>
       
    65 <TT>* 
       
    66 
       
    67 <BR>
       
    68 <BR>
       
    69 <BR>
       
    70 <BR>
       
    71 <BR>
       
    72 <BR>
       
    73 <BR>
       
    74 <BR>
       
    75 <BR>
       
    76 <BR>
       
    77 <BR>
       
    78 <BR>
       
    79 <BR>
       
    80 <BR>
       
    81 <BR>
       
    82 <BR>
       
    83 <BR>
       
    84 <BR>
       
    85 <BR>
       
    86 <BR>
       
    87 <BR>*</TT>
       
    88 
       
    89 <P>
       
    90 <TT>*
       
    91 
       
    92 <BR>
       
    93 <BR>
       
    94 <BR>
       
    95 <BR>
       
    96 <BR>
       
    97 <BR>
       
    98 <BR>
       
    99 <BR>
       
   100 <BR>
       
   101 <BR>
       
   102 <BR>
       
   103 <BR>
       
   104 <BR>
       
   105 <BR>
       
   106 <BR>
       
   107 <BR>
       
   108 <BR>
       
   109 <BR>
       
   110 <BR>
       
   111 <BR>
       
   112 <BR>
       
   113 <BR>
       
   114 <BR>
       
   115 <BR>
       
   116 <BR>
       
   117 <BR>
       
   118 <BR>
       
   119 <BR>
       
   120 <BR>&sstarf#star;</TT>
       
   121 
       
   122 <P>
       
   123 <TT>* simple example for PC. It does implement 2 CanOpen 
       
   124 <BR>
       
   125 <BR>&sstarf#star;</TT>
       
   126 
       
   127 <P>
       
   128 <TT>* in the same process. A master and a slave. Both 
       
   129 <BR>
       
   130 <BR>*</TT>
       
   131 
       
   132 <P>
       
   133 <TT>* together, exchanging periodically NMT, SYNC, &sstarf#star;</TT>
       
   134 
       
   135 <P>
       
   136 <TT>* and PDO. Master configure heartbeat producer time 
       
   137 <BR>
       
   138 <BR>*</TT>
       
   139 
       
   140 <P>
       
   141 <TT>* @1000 ms for slave node-id 0x02 by concise DCF.
       
   142 
       
   143 <BR>
       
   144 <BR>
       
   145 <BR>
       
   146 <BR>*</TT>
       
   147 
       
   148 <P>
       
   149 <TT>*
       
   150 
       
   151 <BR>
       
   152 <BR>
       
   153 <BR>
       
   154 <BR>
       
   155 <BR>
       
   156 <BR>
       
   157 <BR>
       
   158 <BR>
       
   159 <BR>
       
   160 <BR>
       
   161 <BR>
       
   162 <BR>
       
   163 <BR>
       
   164 <BR>
       
   165 <BR>
       
   166 <BR>
       
   167 <BR>
       
   168 <BR>
       
   169 <BR>
       
   170 <BR>
       
   171 <BR>
       
   172 <BR>
       
   173 <BR>
       
   174 <BR>
       
   175 <BR>
       
   176 <BR>
       
   177 <BR>
       
   178 <BR>
       
   179 <BR>&sstarf#star;</TT>
       
   180 
       
   181 <P>
       
   182 <TT>* 
       
   183 <BR>
       
   184 Usage:
       
   185 
       
   186 <BR>
       
   187 <BR>
       
   188 <BR>
       
   189 <BR>
       
   190 <BR>
       
   191 <BR>
       
   192 <BR>
       
   193 <BR>
       
   194 <BR>
       
   195 <BR>
       
   196 <BR>
       
   197 <BR>
       
   198 <BR>
       
   199 <BR>
       
   200 <BR>
       
   201 <BR>
       
   202 <BR>
       
   203 <BR>
       
   204 <BR>
       
   205 <BR>
       
   206 <BR>
       
   207 <BR>
       
   208 <BR>
       
   209 <BR>
       
   210 <BR>*</TT>
       
   211 
       
   212 <P>
       
   213 <TT>* 
       
   214 <BR>./TestMasterSlave OPTIONS]
       
   215 
       
   216 <BR>
       
   217 <BR>
       
   218 <BR>
       
   219 <BR>
       
   220 <BR>
       
   221 <BR>
       
   222 <BR>
       
   223 <BR>
       
   224 <BR>
       
   225 <BR>
       
   226 <BR>
       
   227 <BR>
       
   228 <BR>
       
   229 <BR>*</TT>
       
   230 
       
   231 <P>
       
   232 <TT>*
       
   233 
       
   234 <BR>
       
   235 <BR>
       
   236 <BR>
       
   237 <BR>
       
   238 <BR>
       
   239 <BR>
       
   240 <BR>
       
   241 <BR>
       
   242 <BR>
       
   243 <BR>
       
   244 <BR>
       
   245 <BR>
       
   246 <BR>
       
   247 <BR>
       
   248 <BR>
       
   249 <BR>
       
   250 <BR>
       
   251 <BR>
       
   252 <BR>
       
   253 <BR>
       
   254 <BR>
       
   255 <BR>
       
   256 <BR>
       
   257 <BR>
       
   258 <BR>
       
   259 <BR>
       
   260 <BR>
       
   261 <BR>
       
   262 <BR>&sstarf#star;</TT>
       
   263 
       
   264 <P>
       
   265 <TT>* 
       
   266 <BR>
       
   267 OPTIONS:
       
   268 
       
   269 <BR>
       
   270 <BR>
       
   271 <BR>
       
   272 <BR>
       
   273 <BR>
       
   274 <BR>
       
   275 <BR>
       
   276 <BR>
       
   277 <BR>
       
   278 <BR>
       
   279 <BR>
       
   280 <BR>
       
   281 <BR>
       
   282 <BR>
       
   283 <BR>
       
   284 <BR>
       
   285 <BR>
       
   286 <BR>
       
   287 <BR>
       
   288 <BR>
       
   289 <BR>
       
   290 <BR>
       
   291 <BR>
       
   292 <BR>*</TT>
       
   293 
       
   294 <P>
       
   295 <TT>* 
       
   296 <BR>
       
   297 <BR>-l : Can library
       
   298 [libcanfestival_can_virtual.so]
       
   299 
       
   300 <BR>
       
   301 <BR>*</TT>
       
   302 
       
   303 <P>
       
   304 <TT>*
       
   305 
       
   306 <BR>
       
   307 <BR>
       
   308 <BR>
       
   309 <BR>
       
   310 <BR>
       
   311 <BR>
       
   312 <BR>
       
   313 <BR>
       
   314 <BR>
       
   315 <BR>
       
   316 <BR>
       
   317 <BR>
       
   318 <BR>
       
   319 <BR>
       
   320 <BR>
       
   321 <BR>
       
   322 <BR>
       
   323 <BR>
       
   324 <BR>
       
   325 <BR>
       
   326 <BR>
       
   327 <BR>
       
   328 <BR>
       
   329 <BR>
       
   330 <BR>
       
   331 <BR>
       
   332 <BR>
       
   333 <BR>
       
   334 <BR>&sstarf#star;</TT>
       
   335 
       
   336 <P>
       
   337 <TT>* 
       
   338 <BR>:
       
   339 
       
   340 <BR>
       
   341 <BR>
       
   342 <BR>
       
   343 <BR>
       
   344 <BR>
       
   345 <BR>
       
   346 <BR>
       
   347 <BR>
       
   348 <BR>
       
   349 <BR>
       
   350 <BR>
       
   351 <BR>
       
   352 <BR>
       
   353 <BR>
       
   354 <BR>
       
   355 <BR>
       
   356 <BR>
       
   357 <BR>
       
   358 <BR>
       
   359 <BR>
       
   360 <BR>
       
   361 <BR>
       
   362 <BR>
       
   363 <BR>&sstarf#star;</TT>
       
   364 
       
   365 <P>
       
   366 <TT>* 
       
   367 <BR>
       
   368 <BR>-s : bus name [0]
       
   369 
       
   370 <BR>
       
   371 <BR>
       
   372 <BR>
       
   373 <BR>
       
   374 <BR>
       
   375 <BR>
       
   376 <BR>
       
   377 <BR>
       
   378 <BR>
       
   379 <BR>
       
   380 <BR>
       
   381 <BR>
       
   382 <BR>
       
   383 <BR>
       
   384 <BR>
       
   385 <BR>
       
   386 <BR>&sstarf#star;</TT>
       
   387 
       
   388 <P>
       
   389 <TT>* 
       
   390 <BR>
       
   391 <BR>-S : 1M,500K,250K,125K,100K,50K,20K,10K,none(disable) &sstarf#star;</TT>
       
   392 
       
   393 <P>
       
   394 <TT>*
       
   395 
       
   396 <BR>
       
   397 <BR>
       
   398 <BR>
       
   399 <BR>
       
   400 <BR>
       
   401 <BR>
       
   402 <BR>
       
   403 <BR>
       
   404 <BR>
       
   405 <BR>
       
   406 <BR>
       
   407 <BR>
       
   408 <BR>
       
   409 <BR>
       
   410 <BR>
       
   411 <BR>
       
   412 <BR>
       
   413 <BR>
       
   414 <BR>
       
   415 <BR>
       
   416 <BR>
       
   417 <BR>
       
   418 <BR>
       
   419 <BR>
       
   420 <BR>
       
   421 <BR>
       
   422 <BR>
       
   423 <BR>
       
   424 <BR>&sstarf#star;</TT>
       
   425 
       
   426 <P>
       
   427 <TT>* 
       
   428 <BR>:
       
   429 
       
   430 <BR>
       
   431 <BR>
       
   432 <BR>
       
   433 <BR>
       
   434 <BR>
       
   435 <BR>
       
   436 <BR>
       
   437 <BR>
       
   438 <BR>
       
   439 <BR>
       
   440 <BR>
       
   441 <BR>
       
   442 <BR>
       
   443 <BR>
       
   444 <BR>
       
   445 <BR>
       
   446 <BR>
       
   447 <BR>
       
   448 <BR>
       
   449 <BR>
       
   450 <BR>
       
   451 <BR>
       
   452 <BR>
       
   453 <BR>*</TT>
       
   454 
       
   455 <P>
       
   456 <TT>* 
       
   457 <BR>
       
   458 <BR>-m : bus name [1]
       
   459 
       
   460 <BR>
       
   461 <BR>
       
   462 <BR>
       
   463 <BR>
       
   464 <BR>
       
   465 <BR>
       
   466 <BR>
       
   467 <BR>
       
   468 <BR>
       
   469 <BR>
       
   470 <BR>
       
   471 <BR>
       
   472 <BR>
       
   473 <BR>
       
   474 <BR>
       
   475 <BR>
       
   476 <BR>&sstarf#star;</TT>
       
   477 
       
   478 <P>
       
   479 <TT>* 
       
   480 <BR>
       
   481 <BR>-M : 1M,500K,250K,125K,100K,50K,20K,10K,none(disable) &sstarf#star;</TT>
       
   482 
       
   483 <P>
       
   484 <TT>*
       
   485 
       
   486 <BR>
       
   487 <BR>
       
   488 <BR>
       
   489 <BR>
       
   490 <BR>
       
   491 <BR>
       
   492 <BR>
       
   493 <BR>
       
   494 <BR>
       
   495 <BR>
       
   496 <BR>
       
   497 <BR>
       
   498 <BR>
       
   499 <BR>
       
   500 <BR>
       
   501 <BR>
       
   502 <BR>
       
   503 <BR>
       
   504 <BR>
       
   505 <BR>
       
   506 <BR>
       
   507 <BR>
       
   508 <BR>
       
   509 <BR>
       
   510 <BR>
       
   511 <BR>
       
   512 <BR>
       
   513 <BR>
       
   514 <BR>&sstarf#star;</TT>
       
   515 
       
   516 <P>
       
   517 <TT>**************************************************************</TT>
       
   518 
       
   519 <P>
       
   520 
       
   521 <P><P>
       
   522 <BR>
       
   523 
       
   524 <P>
       
   525 <I CLASS="sans">Notes for Concise DCF :</I>
       
   526 
       
   527 <P>
       
   528 
       
   529 <P><P>
       
   530 <BR>
       
   531 
       
   532 <P>
       
   533 <I CLASS="sans"> In this example, Master configure producer time at 1000 ms
       
   534 for slave node-id 0x02 by concise DCF according DS-302 profile. </I>
       
   535 
       
   536 <P>
       
   537 
       
   538 
       
   539 <P>
       
   540 <I CLASS="sans"> Index 0x1F22 , sub-index 0x00 of the master OD, correspond to the
       
   541 number of entries. This equal to the maximum possible nodeId (127).
       
   542 Each sub-index points to the Node-ID of the device, to which the
       
   543 configuration belongs. </I>
       
   544 
       
   545 <P>
       
   546 
       
   547 <P><P>
       
   548 <BR>
       
   549 
       
   550 <P>
       
   551 <I CLASS="sans"> To add more parameters configurations to the slave, the value at
       
   552 sub-index 0x02 must be a binary stream (little-endian) following
       
   553 this structure :</I>
       
   554 
       
   555 <P>
       
   556 
       
   557 
       
   558 <P>
       
   559 <I CLASS="sans">[ nb of entries / index parameter 1 / sub-index parameter 1  size
       
   560 data parameter 1  data parameter 1 / index parameter n / ...]</I>
       
   561 
       
   562 <P>
       
   563 <I CLASS="sans">
       
   564 <BR>
       
   565 <BR>
       
   566 <BR>(UNS32) 
       
   567 <BR>
       
   568 <BR>
       
   569 <BR>
       
   570 <BR>
       
   571 <BR>
       
   572 <BR>(UNS16)  (UNS8)  
       
   573 
       
   574 <BR>
       
   575 <BR>
       
   576 <BR>
       
   577 <BR>
       
   578 <BR>
       
   579 UNS32)   
       
   580 <BR>
       
   581 DOMAIN)</I>
       
   582 
       
   583 <P>
       
   584 
       
   585 
       
   586 <P>
       
   587 <I CLASS="sans"> So the binary value stream to configure heartbeat producer time must be
       
   588 : </I>
       
   589 
       
   590 <P>
       
   591 
       
   592 <P><P>
       
   593 <BR>
       
   594 
       
   595 <P>
       
   596 <I CLASS="sans">    0100000017100002000000e803</I>
       
   597 
       
   598 <P>
       
   599 
       
   600 <P><P>
       
   601 <BR>
       
   602 
       
   603 <P>
       
   604 <I CLASS="sans">The slave node is configured just before the Master entering in
       
   605 Pre_operational state.</I>
       
   606 
       
   607 <P>
       
   608 
       
   609 <DIV CLASS="navigation"><HR>
       
   610 <!--Navigation Panel-->
       
   611 <A NAME="tex2html830"
       
   612   HREF="node54.html">
       
   613 <IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next"
       
   614  SRC="/usr/share/latex2html/icons/next.png"></A> 
       
   615 <A NAME="tex2html826"
       
   616   HREF="node52.html">
       
   617 <IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up"
       
   618  SRC="/usr/share/latex2html/icons/up.png"></A> 
       
   619 <A NAME="tex2html820"
       
   620   HREF="node52.html">
       
   621 <IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous"
       
   622  SRC="/usr/share/latex2html/icons/prev.png"></A> 
       
   623 <A NAME="tex2html828"
       
   624   HREF="node1.html">
       
   625 <IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents"
       
   626  SRC="/usr/share/latex2html/icons/contents.png"></A>  
       
   627 <BR>
       
   628 <B> Next:</B> <A NAME="tex2html831"
       
   629   HREF="node54.html">gene_SYNC_HCS12 :</A>
       
   630 <B> Up:</B> <A NAME="tex2html827"
       
   631   HREF="node52.html">Example and test program:</A>
       
   632 <B> Previous:</B> <A NAME="tex2html821"
       
   633   HREF="node52.html">Example and test program:</A>
       
   634  &nbsp; <B>  <A NAME="tex2html829"
       
   635   HREF="node1.html">Contents</A></B> </DIV>
       
   636 <!--End of Navigation Panel-->
       
   637 <ADDRESS>
       
   638 epimerde
       
   639 2007-06-05
       
   640 </ADDRESS>
       
   641 </BODY>
       
   642 </HTML>