Ecommerce Library for NetCard with DS Support

$Revision: 1.3 $
$Date: 2007/07/13 01:00:02 $

Purpose

The Ecommerce library provides the API needed to contact the infrastructure and purchase and download new games or other content for the NetCard platform with DS. This library will be called by the viewer ("system app") in order to provide the user with the online shopping features. In the full production release, the Ecommerce 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 Ecommerce 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 EC_Init call.

Sample Code

The header file defining the Ecommerce API can be found here:
	$NITRODWC_ROOT/build/libraries/ec/include/ec.h
For the NetCard environment, the BROADWAY_REV preprocessor variable will not be defined, but NITRO will be defined.

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

	$NITRODWC_ROOT/build/demos/ectest/src/ectest.c
Note that the URLs for the various services required will need to be modified for the iQue environment. Please look for the following preprocessor defines: and modify as appropriate. 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 Ecommerce library 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.