Network Update (NUP) API Usage

$Revision: 1.1 $
$Date: 2007/04/26 18:17:14 $

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. The NUP API supports either DS WiFi or NetCard USB as the underlying transport mechanism. 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.

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.