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="ja" lang="ja" xmlns="http://www.w3.org/1999/xhtml">
4<head>
5    <meta http-equiv="Content-Type" content="text/html; charset=Unicode" />
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>BOSS - sample_datastore Demo</h1>
12
13<h2>Description</h2>
14
15<div class="section">
16    <p>This sample demo uses BOSS <CODE>DataStore</CODE> tasks to upload and download files to and from the <CODE>DataStore</CODE> server.<br /> In this sample, data is uploaded and then that same data is downloaded, unaltered.</p>
17    <p>To read about <CODE>DataStore</CODE>, see the <I>CTR Communication Features Overview</I> and related documents.</p>
18</div>
19
20<h2>Required Environment</h2>
21
22<div class="section">
23    <p>You need a wireless access point to connect to. Prepare a wireless access point that can connect to the Internet. You must also insert an SD Card into the PARTNER-CTR Debugger in advance. </p>
24</div>
25
26<h2>How to Use</h2>
27
28<div class="section">
29    <p>None.</p>
30</div>
31
32<h2>Notes</h2>
33
34<div class="section">
35    <p>The <CODE>DataStore</CODE> server that is used with this sample is a server that is shared by and accessible to all developers.<br /> For this reason, be careful with the content that is uploaded and the destinations to where the data is sent.<br /> If you send data to the <CODE>DataStore</CODE> server used by this sample demo with PUBLIC set for the receiving party, all developers will be able to download that data.</p>
36
37    <p>The data that is uploaded by this sample demo can be checked on the DMAS (Data Store Management Tool).<br /> Log in to the server and then select <B>Sample Demo</B> from the title list.<br /> Use the same login ID and password used on OMAS (Online Title Management System).<br /> To read about OMAS and DMAS, see <I>CTR Communication Features Overview</I> and <I>CTR-NEX NEX Programming Manual: Server Services</I>.</p>
38
39    <p>In addition to the <B>Notes</B> above, see the <B>Notes</B> in <a href="sample_nadl_simple.html"><CODE>sample_nadl_simple</CODE></a>.</p>
40</div>
41
42<h2>Execution Procedure</h2>
43
44<div class="section">
45    <p>When the demo is executed, the following log displays in debugger output.</p>
46    <pre class="code"><span class="spacer">Create ExtSaveData(ID=11)
47Initializing network.
48BOSS Sample(DataStoreTask) Start
49[BOSS Sample] Make Upload TempFile(test:/test.bin).
50[BOSS Sample] Regist DataStore Upload Task.
51[BOSS Sample] Start DataStore Upload Task.
52[BOSS Sample] Polling DataStore Upload Task.
53[BOSS Sample] Polling DataStore Upload Task.
54[BOSS Sample] DataStore Upload Task Done.
55Wait for 25 sec...
56[BOSS Sample] Regist DataStore Download Task.
57[BOSS Sample] Start DataStore Download Task.
58[BOSS Sample] Wait NSA data arrive....
59[BOSS Sample] Recognize NSA data arrive
60[BOSS Sample] (Before Read Data, NewArrivalFlag is 1.)
61[BOSS Sample]Dump NSD datas(1).(data number = 1)
62
63===NSD No.0(SerialID = 771)===
64TitleID = 400000ff3ff00
65Content SerialID = 771
66Payload Length = 5
67Content version = 1
68Content Flags = 1800038640
69Content DataType = 536633
70---Dump Data---
71(Read 1)
72---NSD Body Dump(Payload-Length=5)---
7301 02 03 04 05 (Read 2)
74---NSD Body Dump(Payload-Length=0)---
75[BOSS Sample]AdditionalInfo = 256(Set Info = 256)
76[BOSS Sample]NSD Read Flag = 0
77[BOSS Sample](After Read Data, NewArrivalFlag is 0.)
78[BOSS Sample](After NSD read flag on, New NSD number is = 0)
79BOSS Sample(DataStoreTask) END
80Finalizing network.
81END</span></pre>
82</div>
83
84<h2>Revision History</h2>
85
86<div class="section">
87    <dl class="history">
88        <dt>2012/03/02</dt>
89        <dd>Initial version.</dd>
90    </dl>
91</div>
92
93
94</body>
95</html>