WXC Demos

# Chance Encounter Communications Library (WXC) Sample Demos

## Location

`$TwlSDK/build/demos/wxc`

## Compilation

Move to the `$TwlSDK/build/demos/wxc` directory and enter the following.

> `% make`

The compilation begins, and the SRL executable file and the NEF or TEF files with binary information are generated in the following directory.

> `$TwlSDK/build/demos/wxc/(sample_name)/bin/(platform)/(target)/`

For example:

> `$TwlSDK/build/demos/wxc/simple-1/bin/ARM9-TS/Release/main.srl`

The above path shows the executable file for the `simple-1` demo.

## Execution

### For NITRO ROMs

If using IS-NITRO-DEBUGGER:

- Load and execute an NLF file with IS-NITRO-DEBUGGER
- Execute an SRL file with IS-NITRO-DEBUGGER
- Execute an SRL file with IS-NITRO-DEBUGGER using the `loadrun.exe` tool from the command line

If using IS-TWL-DEBUGGER:

- Load and execute an NLF file with IS-TWL-DEBUGGER
- Execute an SRL file with IS-TWL-DEBUGGER
- Execute an SRL file with IS-TWL-DEBUGGER using the `loadrun.TWL.exe` tool from the command line

### For TWL/NITRO HYBRID ROMs

If using IS-NITRO-DEBUGGER:

- Execute an SRL file with IS-NITRO-DEBUGGER
- Execute an SRL file with IS-NITRO-DEBUGGER using the `loadrun.exe` tool from the command line

If using IS-TWL-DEBUGGER:

- Load and execute a TLF file with IS-TWL-DEBUGGER
- Execute an SRL file with IS-TWL-DEBUGGER
- Execute an SRL file with IS-TWL-DEBUGGER using the `loadrun.TWL.exe` tool from the command line

### For TWL LIMITED ROMs

If using IS-TWL-DEBUGGER:

- Load and execute a TLF file with IS-TWL-DEBUGGER
- Execute an SRL file with IS-TWL-DEBUGGER
- Execute an SRL file with IS-TWL-DEBUGGER using the `loadrun.TWL.exe` tool from the command line

## Description

Name | Directory | Operation
--- | --- | ---
`simple-1` | `demos` | This simple sample demonstrates WXC functionality. It searches for associated `simple-1` samples, exchanges data once automatically and then stops.
`simple-2` | `demos` | Similar to the `simple-1` sample, but allows multiple data sets to be selected and registered.
`wxc-pm` | `demos` | Similar to the `simple-1` sample, but enters into sleep mode or transitions to LCD OFF after the exchange of data.
`unregister-1` | `demos` | Similar to the `simple-1` sample, but re-registers the received data and exchanges data again.
`wxc-dataShare` | `demos` | After exchanging data with associated `wxc-dataShare` samples, this reconnects and performs data sharing.
`relayStation-1` | `demos` | This sample operates as a relay station for the `simple-2` or `wxc-pm` sample demos.
`relayStation-2` | `demos` | This sample acts as a relay station for `simple-1` sample demos. This is similar to `relayStation-1`, except that it can dynamically set the handling of registration data.

## Operation

``The WXC library demos do not work with ensata.

## See Also

`WXC Function List`

## Revision History

2009/04/23 Initial version.

CONFIDENTIAL