1<?xml version="1.0" encoding="UTF-8"?>
2<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3<html xml:lang="en-US" lang="en-US" xmlns="http://www.w3.org/1999/xhtml">
4<head>
5    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6    <meta http-equiv="Content-Style-Type" content="text/css" />
7    <link rel="stylesheet" href="../../css/manpage.css" type="text/css" />
8</head>
9<body>
10
11<h1>uds - simple Demo</h1>
12
13<h2>Description</h2>
14
15<div class="section">
16<p>This is a simple sample for UDS communication. This demo transmits data between UDS Master and UDS Client.</p>
17<p>At least two CTR systems (one UDS Master and one UDS Client) are required to run this demo. <BR>By default, this sample demo performs communication among up to five CTR systems, including one master and four clients.</p>
18<p>The master and clients can send and receive, but spectators can only receive.<BR>Spectators are not included in the system count.</p>
19</div>
20
21<h2>Required Environment</h2>
22
23<div class="section">
24<p>None.</p>
25</div>
26
27<h2>How to Use</h2>
28
29<div class="section">
30    <table>
31        <thead>
32        <tr>
33            <th>Input</th>
34            <th>Operation</th>
35        </tr>
36        </thead>
37        <tr>
38<td>A Button</td>
39<td>The local system creates a network with itself as master.</td>
40        </tr>
41        <tr>
42<td>B Button</td>
43<td>Connects as a client to the network created by the master.</td>
44        </tr>
45        <tr>
46<td>Y Button</td>
47<td>Connects as a spectator to the network created by the master.</td>
48        </tr>
49    </table>
50</div>
51
52<h2>Notes</h2>
53
54<div class="section">
55    <ul>
56<li>This demo does not display anything on the screen. Logs are all displayed in debug output.<BR>A log is displayed in debug output even in the case of Release builds, because &quot;<CODE>DEBUG_PRINT = true</CODE> has been defined in <CODE>OMakefile</CODE> for this demo.</li>
57    </ul>
58</div>
59
60<h2>Execution Procedure</h2>
61
62<div class="section">
63<p>The following log is displayed when the demo is run.</p>
64<code>START<br /> MODE SELECT (A:Master  B:Client, Y:Spectator)</code>
65
66<h4>On the Master</h4>
67<p>Information is displayed in the log as follows if the A Button is used to select <B>Master</B>.</p>
68<code>-&gt; Select: Master!<br />Signal!<br />State is Update!(Now=6, NodeId=1)<br /> LinkLevel = 0</code>
69
70<p>Communication starts once the master creates a network and clients connect.<BR>A communication log such as the following is output to the log.</p>
71<code>Signal! <br /> State is Update!(Now=6, NodeId=1)<br /> Connect New Node!:2<br /> &nbsp; Name:****<br /> LinkLevel = 0<br /> Recv From:02, counter=00000000, size=1476 Byte<br /> Recv From:02, counter=00000001, size=1476 Byte<br /> Recv From:02, counter=00000002, size=1476 Byte<br /> Recv From:02, counter=00000003, size=1476 Byte<br /> Recv From:02, counter=00000004, size=1476 Byte<br /> ....</code>
72
73<p>There is no shutdown procedure. Stop execution in a timely manner.</p>
74
75<h4>On Clients</h4>
76<p>Information is displayed in the log as follows if the B Button is used to select Client.</p>
77<code>-&gt; Select: Client!</code>
78
79<p>Clients repeatedly scan until they find the network created by the master.<BR>Communication starts after the client finds and connects to an available network. A communication log such as the following is output to the log.</p>
80<code>Signal! <br /> State is Update!(Now=9, NodeId=2)<br /> Connect New Node!:1<br /> &nbsp; Name:**** <br /> LinkLevel = 2<br /> Recv From:01, counter=00000005, size=1476 Byte<br /> Recv From:01, counter=00000006, size=1476 Byte<br /> Recv From:01, counter=00000007, size=1476 Byte<br /> Recv From:01, counter=00000008, size=1476 Byte<br /> Recv From:01, counter=00000009, size=1476 Byte<br /> ....</code>
81
82<p>There is no shutdown procedure. Stop execution in a timely manner.</p>
83
84<h4>On Spectators</h4>
85<p>Information is displayed in the log as follows if the Y Button is used to select <B>Spectator</B>.</p>
86<code>-&gt; Select: Spectator!</code>
87
88<p>Spectators repeatedly scan until they find the network created by the master.<BR>Communication starts once the spectator finds and connects to an available network. <BR>A communication log such as the following is output to the log.</p>
89<code>Recv From:01, counter=000008b9, size=1476 Byte<br /> Recv From:01, counter=00000904, size=1476 Byte<br /> Recv From:01, counter=00000905, size=1476 Byte</code>
90
91<p>There is no shutdown procedure. Stop execution in a timely manner.</p>
92
93</div>
94
95<h2>Revision History</h2>
96
97<div class="section">
98    <dl class="history">
99        <dt>2011/02/02</dt>
100<dd>Initial version.</dd>
101    </dl>
102</div>
103
104
105<hr><p>CONFIDENTIAL</p></body>
106</html>