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>BOSS - sample_nsalist Demo</h1>
12
13<h2>Description</h2>
14
15<div class="section">
16    <p>This is a demo of the NSA list feature.</p>
17    <p>It gets the NSA list for a task and then uses an NADL task to download a specified NSA file from the list. The process of downloading data through an NADL task is the same as in <CODE>sample_nadl_simple</CODE>.</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>Applications often process file data immediately when it is downloaded from an NSA list. If there are already multiple instances of NS data in BOSS storage, however, an application has no way of determining which instance it has downloaded. Before getting a file with the demo, process the NS data in the BOSS storage and then empty the BOSS storage.
36</p>
37
38    <p>See <a href="sample_nadl_simple.html"><CODE>sample_nadl_simple</CODE></a>, which has the same note as this demo other than the above.</p>
39</div>
40
41<h2>Execution Procedure</h2>
42
43<div class="section">
44    <p>When the demo is executed, the following log is displayed in debug output. <BR> The log represents content after executing two or more times.</p>
45    <pre class="code">Initializing network.
46BOSS Sample (NSA List Simple) Start
47WaitFinish : TaskId=FGONLYT, State=2
48WaitFinish Signaled.
49WaitFinish : TaskId=FGONLYT, State=6
50----- NSA List 1 -----
51 FileName        : file1
52 FileSize        : 11
53 UpdateEpochTime : 1318437365
54 Attribute1      : item
55 Attribute2      : normal
56 Attribute2      : weapon
57 Caption         :
58----------------------
59----- NSA List 2 -----
60 FileName        : file2
61 FileSize        : 12
62 UpdateEpochTime : 1318437365
63 Attribute1      : item
64 Attribute2      : normal
65 Attribute2      : shield
66 Caption         :
67----------------------
68----- NSA List 3 -----
69 FileName        : file3
70 FileSize        : 13
71 UpdateEpochTime : 1318437366
72 Attribute1      : item
73 Attribute2      : rare
74 Attribute2      : weapon
75 Caption         :
76----------------------
77[BOSS Sample]Regist NADL Task.
78[BOSS Sample]Wait NSA data arrive....
79[BOSS Sample]Recognize NSA data arrive
80[BOSS Sample](Before Read Data, NewArrivalFlag is 0.)
81[BOSS Sample]Dump NSD data.
82
83===NSD (SerialID = 2)===
84TitleID = 400000ff3ff00
85Content SerialID = 2
86Payload Length = 11
87Content version = 1
88Content Flags = 0
89Content DataType = 65537
90---Dump Data---
91(Read 1)
92---NSD Body Dump(Payload-Length=11)---
9364 65 6d 6f 20 66 69 6c 65 20 31 (Read 2)
94---NSD Body Dump(Payload-Length=0)---
95[BOSS Sample]AdditionalInfo = 256(Set Info = 256)
96[BOSS Sample]NSD Read Flag = 0
97[BOSS Sample](After Read Data, NewArrivalFlag is 0.)
98[BOSS Sample](After NSD read flag on, New NSD number is = 0)
99BOSS Sample (NSA List Simple) END
100Finalizing network.
101END</pre>
102</div>
103
104<h2>Revision History</h2>
105
106<div class="section">
107    <dl class="history">
108        <dt>2011/10/13</dt>
109        <dd>Noted that BOSS storage must be emptied so that there is no NS data before the sample demo is run.</dd>
110        <dd>Removed a note about DNS settings because they are no longer required to run the sample demo.</dd>
111        <dt>2011/09/28</dt>
112        <dd>Initial version.</dd>
113    </dl>
114</div>
115
116
117<hr><p>CONFIDENTIAL</p></body>
118</html>