Symbian
Symbian OS Library

SYMBIAN OS V9.3

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



Using serial connection

The figure below shows how to connect to the device using a null modem cable.

Connection using null modem cable.

Connection using null modem cable.

Any com port on the PC can be used. Where as only Comm:2 port is used to connect on the device to avoid interference on Comm:0.


Setting up serial connection

The following procedure needs to be followed to set up the serial connection.


Device side

Modify the stat.ini file as shown in the example below.

[SectionOne]
comport= 2 
[SectionTwo]
transport= serial
[SectionThree]
logging= 0
debugport=1

Set the com port to 2 for serial connection. This is because COMM:0 is usually unavailable and access is denied when trying to connect. (Logging should be left at 0, as it is only used for TestDriver debugging). The stat.ini file can then be included in the rom on the sys\data directory or in the CF card on the sys\data directory.


PC side

Connect a null modem cable between a com port on the PC and comm:2 on the device.

[Top]


Example

The command line option for running a test over a serial connection is:

> testdriver run -s root -p arm4 -b urel -s test1.test3 -t serialX

where, serialX specifies that serial transport will be through com port X on the PC.

NOTE: If -t option is not specified, the transport defaults to serial2 that is com port 2.

[Top]


See also