This is a demo of the NSA list feature.
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 sample_nadl_simple
.
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.
None.
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.
See sample_nadl_simple
, which has the same note as this demo other than the above.
When the demo is executed, the following log is displayed in debug output.
The log represents content after executing two or more times.
Initializing network. BOSS Sample (NSA List Simple) Start WaitFinish : TaskId=FGONLYT, State=2 WaitFinish Signaled. WaitFinish : TaskId=FGONLYT, State=6 ----- NSA List 1 ----- FileName : file1 FileSize : 11 UpdateEpochTime : 1318437365 Attribute1 : item Attribute2 : normal Attribute2 : weapon Caption : ---------------------- ----- NSA List 2 ----- FileName : file2 FileSize : 12 UpdateEpochTime : 1318437365 Attribute1 : item Attribute2 : normal Attribute2 : shield Caption : ---------------------- ----- NSA List 3 ----- FileName : file3 FileSize : 13 UpdateEpochTime : 1318437366 Attribute1 : item Attribute2 : rare Attribute2 : weapon Caption : ---------------------- [BOSS Sample]Regist NADL Task. [BOSS Sample]Wait NSA data arrive.... [BOSS Sample]Recognize NSA data arrive [BOSS Sample](Before Read Data, NewArrivalFlag is 0.) [BOSS Sample]Dump NSD data. ===NSD (SerialID = 2)=== TitleID = 400000ff3ff00 Content SerialID = 2 Payload Length = 11 Content version = 1 Content Flags = 0 Content DataType = 65537 ---Dump Data--- (Read 1) ---NSD Body Dump(Payload-Length=11)--- 64 65 6d 6f 20 66 69 6c 65 20 31 (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 (NSA List Simple) END Finalizing network. END
CONFIDENTIAL