Network Update (NUP) API Usage

$Revision: 1.2 $
$Date: 2007/07/03 21:41:32 $

Purpose

The NUP library contains the code needed to contact the infrastructure and download and install new versions of system software for the NetCard platform. This library will be called by the viewer ("system app") in order to keep the system up to date. In the full production release, the NUP API will support either DS WiFi or NetCard USB as the underlying transport mechanism. A major architectural change is made in NC SDK release 1.16 to move the NUP library to run on the NetCard. As such, the WiFi transport is not provided until the next release, but the USB transport is functional. The invoking application must specify the type of networking that should be used as a parameter on the NUP_Init call.

Sample Code

The header file defining the NUP API can be found here:
	$NITRODWC_ROOT/include/netcard/nup.h
For the NetCard environment, the RVL_SDK preprocessor variable will not be defined, but _NITRO will be defined.

There is a sample program that demonstrates the use of the NUP API here:

	$NITRODWC_ROOT/build/demos/nup/src/nup_test.c
Note that the hostname and port number of the server to contact is specified as a parameter on the NUP_Start call. This value will probably be different in the iQue environment. Please also note that the above sample is written for DS. In order to use the APIs on GBA, it needs to be modified to follow the usual GBA buffer alignment restrictions.

Configuring the WiFi Library

When using WiFi Networking, it is necessary to configure the WiFi library in order to connect to the appropriate Wireless Access Point. This should be done before building the NUP demo program. One method is to modify the following file:
	$NITROWIFI_ROOT/build/demos/SiteDefs/sitedefs.c
The parameters that will need to be changed are: Once the changes have been made, run make in that directory in order to create the new sitedefs library. Refer to the documentation for the NitroWiFi SDK for more details.