Symbian
Symbian OS Library

SYMBIAN OS V9.3

[Index] [Spacer] [Previous] [Next]



Communicating with a device

When you are running tests on a device remotely from a PC, you need to make sure that the tool STATAPI is available, and at the right location on the device. You also need to make sure that you have set up the connection correctly.

There are currently four transport modes available for communicating with the device. These are serial, TCP/IP, Bluetooth and USB.


STATAPI tool

STATAPI is a tool that is used by TestDriver to communicate with a Symbian device, execute tests, and to collect the test results. It can be started manually from the device, or be built into a ROM, using the techview_statapi.oby file.

NOTE: When STATAPI is built into a ROM, it must be run in a full graphical environment, such as Techview.

Before communication can be established and test results collected, you need to copy five files onto the device.

These files are located under the epoc32 directory on your PC, as follows:


Setting up STATAPI tool

1. Copy the above files to the CF (Compact Flash) card at the following locations:

2. Insert the CF card into the CF slot and power up the device.

3. Once the device has loaded, browse to the drive mapped to the CF card and then browse to the location system\programs.

4. Start the STATAPI tool manually by double-clicking on it.

You can run STATAPI in the background by pressing "b" on the device. Alternatively, you can close the application by pressing "ESC".

[Top]


Setting up TCP/IP connection

TestDriver supports TCP/IP over NTRAS. This needs to be set up on both the device side and PC side as described below. Please see Connecting TestDriver, which explains the cable connections required.


Device side


PC side

You can get the IP address that will be assigned to the device from the static address pool set in the Control Panel. The address that must be used is the next value after that specified in the "Begin" field.

The command line option for running test over TCP/IP is -t tcp --ip 'address', as shown in the following example:

> Testdriver run -p arm4 -b urel -s root.syncmlclient.rtest -t tcp  --ip 10.1.0.2 

When a PPP connection is established it will show up in the windows tool remote access admin. If you are unable to make a connection, you may need to edit the Comms database so that all the modems except the null modem are removed on comm:0. This should enable communication.

[Top]


Setting up serial connection

TestDriver supports serial communication. You need to set this up both on the device side and PC side as described below.


Device side


PC side

[Top]


Setting up Bluetooth connection

The following procedure needs to be followed when using a BLUETOOTH connection.


Device side


PC side

You are now ready to use TestDriver over a BLUETOOTH connection.

Below is an example on how to run a test over a bluetooth connection:

> TestDriver run -p arm4 -b urel  -s suite1.suite2.testA  -t bt6

where 6 is the mapped comport number for the BLUETOOTH dongle.

[Top]


Setting up USB connection

The following needs to be set up when using a USB connection.


PC side

Intall the drivers on the PC.

NOTE: Attach the Lubbock board only after it has fully started up (so it is not detected as anonymous by the PC).

If the PC shows an anonymous plug-and-play device connected, then remove it from the list of devices by using "Device Manager" or right-clicking the system tray icon and selecting "Stop" (depending on operating system).


Device side

The device component STATAPI can not access the USB port from Flash or RAM drives. In order to access the USB port, STATAPI must be run from ROM.

You are now ready to use TestDriver over a USB connection.

Below is an example on how to run a test over a USB connection:

> TestDriver run -p arm4 -b urel -t usbX -s suiteA.suiteB

where X is the mapped port number.

[Top]


See also