uds - com_demo1 Demo

Description

This sample displays the throughput and error rate for UDS communication on the screen.
You can also confirm various operations such as UDS communication connects and disconnects.

At least two CTR systems (one master and one client/spectator) are required to run this demo.
By default, this sample demo performs communication among up to 12 CTR systems, including one master and eleven clients.

The master and clients can send and receive, but spectators can only receive.
Spectators are not included in the system count.

Required Environment

None.

How to Use

Input Operation
+Control Pad Left/Right Selects the operation to execute. The following operations can be selected.

- SCAN
Scans for a network created by a master.

- CREATE NETWORK
Creates a network as master.

- CONNECT AS CLIENT
Connects to the selected network as a client.

- CONNECT AS SPECTATOR
Connects to the selected network as a spectator.

- EJECT ALL CLIENTS
(Master only) Disconnects all clients connected to the network.

- DESTROY NETWORK
(Master only) Destroys the network.

- DISCONNECT NETWORK
(Client/Spectator only) Disconnects and leaves the network currently connected to.

- DISALLOW TO CONNECT
(Master only) Disallows client connections to the network. This does not affect clients currently connected.

- ALLOW TO CONNECT
(Master only) Allows client connections to the network.

- EJECT SPECTATOR
(Master only) Disconnects all spectators connected to the network.

- ALLOW TO SPECTATOR
(Master only) Allows spectator connections to the network.

+Control Pad Up/Down Selects the network to connect to when scan has found more than one network.
A Button. Executes the selected operation.

Notes

Execution Procedure

When the demo is executed, the following log is displayed in debug output.

l.602:nnMain > 
l.629:nnMain > dlpServSTART
X + Y + L + R : End Demo

The following display is made in the lower screen.

Press the A Button to initialize. The display will change to the screen shown below.

On the Master

Use Left/Right on the +Control Pad to select "CREATE NETWORK" and then press the A Button to execute. Assuming no problems, the local system will create a network with itself as the master.

Communications start when a client or spectator connects.
Communication throughput and error rate information will be displayed on the upper screen.

If "EJECT ALL CLIENTS" is executed at this point, the master will disconnect all clients and spectators connected to the network.
In addition, if the master executes "DESTROY NETWORK," it will destroy the network.

On Clients/Spectators

Use Left/Right on the +Control Pad to select "SCAN" and then press the A Button to execute.
A list of networks created by other CTR systems using "CREATE NETWORK" will be displayed on the lower screen. By default, information for up to five networks returned by "SCAN" are displayed.

Use Up/Down on the +Control Pad to select the network to connect to.
Finally, to connect as a client, use Left/Right on the +Control pad to select "CONNECT AS CLIENT," and then press the A Button to execute. To connect as a spectator, select "CONNECT AS SPECTATOR." Assuming no problems, communication starts when a client or spectator connects to the network.

If a client or spectator executes "DISCONNECT NETWORK," it disconnects from and leaves the network it belongs to.

Revision History

2011/02/02
Initial version.

CONFIDENTIAL