uds - simple Demo

Description

This is a simple sample for UDS communication. This demo transmits data between UDS Master and UDS Client.

At least two CTR systems (one UDS Master and one UDS Client) are required to run this demo.
By default, this sample demo performs communication among up to five CTR systems, including one master and four 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
A Button The local system creates a network with itself as master.
B Button Connects as a client to the network created by the master.
Y Button Connects as a spectator to the network created by the master.

Notes

Execution Procedure

The following log is displayed when the demo is run.

START
MODE SELECT (A:Master B:Client, Y:Spectator)

On the Master

Information is displayed in the log as follows if the A Button is used to select Master.

-> Select: Master!
Signal!
State is Update!(Now=6, NodeId=1)
LinkLevel = 0

Communication starts once the master creates a network and clients connect.
A communication log such as the following is output to the log.

Signal!
State is Update!(Now=6, NodeId=1)
Connect New Node!:2
  Name:****
LinkLevel = 0
Recv From:02, counter=00000000, size=1476 Byte
Recv From:02, counter=00000001, size=1476 Byte
Recv From:02, counter=00000002, size=1476 Byte
Recv From:02, counter=00000003, size=1476 Byte
Recv From:02, counter=00000004, size=1476 Byte
....

There is no shutdown procedure. Stop execution in a timely manner.

On Clients

Information is displayed in the log as follows if the B Button is used to select Client.

-> Select: Client!

Clients repeatedly scan until they find the network created by the master.
Communication starts after the client finds and connects to an available network. A communication log such as the following is output to the log.

Signal!
State is Update!(Now=9, NodeId=2)
Connect New Node!:1
  Name:****
LinkLevel = 2
Recv From:01, counter=00000005, size=1476 Byte
Recv From:01, counter=00000006, size=1476 Byte
Recv From:01, counter=00000007, size=1476 Byte
Recv From:01, counter=00000008, size=1476 Byte
Recv From:01, counter=00000009, size=1476 Byte
....

There is no shutdown procedure. Stop execution in a timely manner.

On Spectators

Information is displayed in the log as follows if the Y Button is used to select Spectator.

-> Select: Spectator!

Spectators repeatedly scan until they find the network created by the master.
Communication starts once the spectator finds and connects to an available network.
A communication log such as the following is output to the log.

Recv From:01, counter=000008b9, size=1476 Byte
Recv From:01, counter=00000904, size=1476 Byte
Recv From:01, counter=00000905, size=1476 Byte

There is no shutdown procedure. Stop execution in a timely manner.

Revision History

2011/02/02
Initial version.

CONFIDENTIAL