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>hio - HioDemoPCCpp Demo</h1>
12
13<h2>Description</h2>
14
15<div class="section">
16    <p>This sample uses HostIO to communicate on the host side (on the PC) using the C++ library.<BR> Visual Studio and the <CODE>HioDemoCTR</CODE> sample for the CTR system are required to run this demo.</p>
17</div>
18<h2>Required Environment</h2>
19<div class="section">
20    <ul>
21        <li>PARTNER-CTR HIO-Daemon must be installed beforehand. <BR> For the installation method, see CTR Development Environment Startup Guidelines.</li>
22    </ul>
23    <ul>
24        <li>Visual Studio is required to build the demo (<CODE>HioDemoPC</CODE> or <CODE>HioDemoPCCpp</CODE>) on the PC.</li>
25    </ul>
26</div>
27<h2>How to Use</h2>
28<div class="section">
29    <p>None.</p>
30</div>
31<h2>Notes</h2>
32<div class="section">
33    <ul>
34        <li>hio is a development feature. Release builds of this demo do not run for this reason.</li>
35    </ul>
36    <ul>
37        <li>PARTNER-CTR HIO-Daemon must be started before running this demo.</li>
38    </ul>
39    <ul>
40        <li>Do not use HTEST.EXE or TestHostIO.exe installed along with the PARTNER-CTR HIO-Daemon. <br /> If used, <CODE>HioDemo</CODE> will not run normally and will stop in mid-execution.</li>
41    </ul>
42</div>
43<h2>Execution Procedure</h2>
44<div class="section">
45<p>A command prompt is launched when you execute <B>Start Debug</B> on Visual Studio, and the PC will wait for connection of the CTR system. <BR> Next, the following log is output to the command prompt when <CODE>HioDemoCTR</CODE> on the CTR system is executed using PARTNER-CTR Debugger.</p>
46<pre class="code">HostIO Library Version: 9
47START
48===== Serial IO Sample =====
49open
50write
51write size: 8
52flush
53read size: 8
54read data: 'Hello!!'
55disconnect.
56close.
57===== Shared Memory Sample =====
58shared memory size: 32699
59read data: 'Ping!!'
60read data: 'Pong!!'
61write data: 'Pong!!'
62read data: 'Ping!!'
63END</pre>
64</div>
65</div>
66
67
68<h2>Revision History</h2>
69
70<div class="section">
71    <dl class="history">
72        <dt>2011/02/02</dt>
73<dd>Initial version.</dd>
74    </dl>
75</div>
76
77
78<hr><p>CONFIDENTIAL</p></body>
79</html>
80