BOSS - sample_datastore Demo

Description

This sample demo uses BOSS DataStore tasks to upload and download files to and from the DataStore server.
In this sample, data is uploaded and then that same data is downloaded, unaltered.

To read about DataStore, see the CTR Communication Features Overview and related documents.

Required Environment

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.

How to Use

None.

Notes

The DataStore server that is used with this sample is a server that is shared by and accessible to all developers.
For this reason, be careful with the content that is uploaded and the destinations to where the data is sent.
If you send data to the DataStore server used by this sample demo with PUBLIC set for the receiving party, all developers will be able to download that data.

The data that is uploaded by this sample demo can be checked on the DMAS (Data Store Management Tool).
Log in to the server and then select Sample Demo from the title list.
Use the same login ID and password used on OMAS (Online Title Management System).
To read about OMAS and DMAS, see CTR Communication Features Overview and CTR-NEX NEX Programming Manual: Server Services.

In addition to the Notes above, see the Notes in sample_nadl_simple.

Execution Procedure

When the demo is executed, the following log displays in debugger output.

Create ExtSaveData(ID=11)
Initializing network.
BOSS Sample(DataStoreTask) Start
[BOSS Sample] Make Upload TempFile(test:/test.bin).
[BOSS Sample] Regist DataStore Upload Task.
[BOSS Sample] Start DataStore Upload Task.
[BOSS Sample] Polling DataStore Upload Task.
[BOSS Sample] Polling DataStore Upload Task.
[BOSS Sample] DataStore Upload Task Done.
Wait for 25 sec...
[BOSS Sample] Regist DataStore Download Task.
[BOSS Sample] Start DataStore Download Task.
[BOSS Sample] Wait NSA data arrive....
[BOSS Sample] Recognize NSA data arrive
[BOSS Sample] (Before Read Data, NewArrivalFlag is 1.)
[BOSS Sample]Dump NSD datas(1).(data number = 1)

===NSD No.0(SerialID = 771)===
TitleID = 400000ff3ff00
Content SerialID = 771
Payload Length = 5
Content version = 1
Content Flags = 1800038640
Content DataType = 536633
---Dump Data---
(Read 1)
---NSD Body Dump(Payload-Length=5)---
01 02 03 04 05 (Read 2)
---NSD Body Dump(Payload-Length=0)---
[BOSS Sample]AdditionalInfo = 256(Set Info = 256)
[BOSS Sample]NSD Read Flag = 0
[BOSS Sample](After Read Data, NewArrivalFlag is 0.)
[BOSS Sample](After NSD read flag on, New NSD number is = 0)
BOSS Sample(DataStoreTask) END
Finalizing network.
END

Revision History

2012/03/02
Initial version.