1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2<html>
3
4<head>
5<META http-equiv="Content-Type" content="text/html; charset=windows-1252">
6<META http-equiv="Content-Style-Type" content="text/css">
7<LINK rel="stylesheet" type="text/css" href="../../CSS/revolution.css">
8<title>HIO2 Demo dual.exe/dual.elf</title>
9</head>
10
11<body>
12
13<h1>dual.exe/dual.elf</h1>
14
15<h2>Overview</h2>
16<P>This demo performs communications between a standalone Revolution console USB (COM) port and a standalone PC. The USB (COM) ports are both used only for unidirectional communications.</P>
17
18<blockquote>
19<p>The PC sends data to the Revolution</p>
20  <blockquote>
21<p>	Data is sent when the slider bar on the PC is moved. With the Revolution, the received RGB color is displayed to the Revolution on the screen.</p>
22  </blockquote>
23<p>The Revolution sends data to the PC</p>
24  <blockquote>
25<p>Received data is sent when data is received from the PC. On the PC, received data is displayed as strings.</p>
26  </blockquote>
27</blockquote>
28<p><strong>Note:</strong> dual uses Hio2If.</p>
29
30<h2>File Structure</h2>
31<p>
32<table>
33<tr>
34<td>Revolution</td>
35<td>:</td>
36<td>src/dual-main.c, include/dual.h, HioIf/*</td>
37</tr>
38<tr>
39<td>PC</td>
40<td>:</td>
41<td> vc++/dual/*, vc++/HioIf/*</td>
42</tr>
43</table>
44</p>
45<h2>Using the Demo</h2>
46<p>
47<table>
48<tr>
49<td>Revolution</td>
50<td><br></td>
51<td><br></td>
52</tr>
53<tr>
54<td align="right">-</td>
55<td>A Button</td>
56<td>(Re)connecting to the PC</td>
57</tr>
58<tr>
59<td align="right">-</td>
60<td>B Button</td>
61<td>Disconnecting from the PC</td>
62</tr>
63<tr>
64<td align="right">-</td>
65<td>X Button</td>
66<td>Change the data transmission method (synchronous/asynchronous)</td>
67</tr>
68<tr>
69<td>PC</td>
70<td><br></td>
71<td><br></td>
72</tr>
73<tr>
74<td align="right">-</td>
75<td>Slider bar</td>
76<td>Send RGB color to the Revolution</td>
77</tr>
78<tr>
79<td align="right">-</td>
80<td>CONNECT button</td>
81<td>(Re)connecting to the Revolution</td>
82</tr>
83<tr>
84<td align="right">-</td>
85<td>DISCONNECT button</td>
86<td>Disconnecting from the Revolution</td>
87</tr>
88<tr>
89<td align="right">-</td>
90<td>EXIT button</td>
91<td>Exit application</td>
92</tr>
93<tr>
94<td align="right">-</td>
95<td>SYNC/ASYNC radio buttons</td>
96<td>Change the data transmission method (synchronous/asynchronous)</td>
97</tr>
98</table>
99</p>
100<H2>NB</H2>
101<ul>
102<li>After disconnecting from an NNGC or PC, you must make connection specifications from the NNGC/PC to communicate again.
103<li>A connection specification from NNGC is required when quitting the PC side during communications and then restarting and carrying out communications again.
104</ul>
105<H2>See Also</H2>
106<P><CODE><A href="../list.html">HIO2 API</A></CODE></P>
107<H2>Revision History</H2>
108<P>2007/08/02 Corrected errors.<br>2006/03/01 Initial version.</P>
109<hr>
110<P>CONFIDENTIAL</p>
111</BODY>
112</html>