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 stand-alone Wii 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 Wii.</p> 20 <blockquote> 21<p>The data is sent when the PC's slider bar is moved. On Wii, the received RGB color is displayed on the screen.</p> 22 </blockquote> 23<p>Wii 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>The <CODE>dual</CODE> demo uses <CODE>Hio2If</CODE>.</p> 29 30<h2>File Structure</h2> 31<p> 32<table> 33<tr> 34<td>Wii</td> 35<td>:</td> 36<td><CODE>src/dual-main.c, include/dual.h, HioIf/*</CODE></td> 37</tr> 38<tr> 39<td>PC</td> 40<td>:</td> 41<td><CODE> vc++/dual/*, vc++/HioIf/*</CODE></td> 42</tr> 43</table> 44</p> 45<h2>Using the Demo</h2> 46<p> 47<table> 48<tr> 49<td>Wii</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 Wii.</td> 77</tr> 78<tr> 79<td align="right">-</td> 80<td>CONNECT button</td> 81<td>(Re)connecting to Wii.</td> 82</tr> 83<tr> 84<td align="right">-</td> 85<td>DISCONNECT button</td> 86<td>Disconnecting from Wii.</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 option buttons</td> 96<td>Change the data transmission method (synchronous/asynchronous).</td> 97</tr> 98</table> 99</p> 100 101<H2>NB</H2> 102<ul> 103<li>To communicate again after disconnecting from a PC or Wii, set connection specifications from the PC or Wii. 104<li>A connection specification from Wii is required when quitting the PC side during communications and then restarting and carrying out communications again. 105</ul> 106 107<H2>See Also</H2> 108<P class="reference"> 109<A href="../list.html">Host I/O(HIO2) API</A> 110</P> 111 112<H2>Revision History</H2> 113<P> 1142007/08/02 Corrected errors.<br>2006/03/01 Initial version.<br> 115</P> 116 117<hr><p>CONFIDENTIAL</p></body> 118</html>