TestDriver allows you to use a TCP connection over a serial port. To do this you need to install and configure the NTRAS. For instructions on installing NTRAS, see Setting up NTRAS.
The diagram below shows how to connect a null modem cable when using TCP/IP as the transport mode.
Use Comm:0, the default port where NTRAS is installed on the device.
The PC serial port that is used can be modified, however, should always match the port to which NTRAS has been configured.
Remote Access Service (NT RAS) is available on the Windows NT and Windows 2000 operating systems. This setup requires the PC to have two COM ports that are connected through a null-modem cable. The Symbian OS emulator talks to one of the COM ports and the NT RAS service talks to the other.
Using NTRAS involves the following steps:
Complete the following steps to install a null modem:
Open the Control Panel.
Open Phone and Modem Options.
Complete the following modem settings:
Select Modems tab.
Select Add.
Check 'Don't detect my modem; I will select it from a list' box.
Click Next.
Select (Standard Modem Types) - Communications cable between two computers.
Select the appropriate com port.
Click Finish.
Set the following properties to the modem you have installed.
Open the Properties of the Modem you have just installed.
Set the maximum port speed to 115200 and Flow control to None on the General tab.
Go to the Advanced tab.
Select Change Default Preferences.
Set the Data bits to 8, Parity to None and Stop bits to 1.
Click OK to confirm the settings.
Complete the following steps to configure the NTRAS:
Open the Control Panel.
Open Networking and Dial-up Connections.
Open Make New Connection.
Click Next.
Select Accept incomming connections and click Next.
Check the modem you have just installed and click Next.
Select Do not allow virtual private connections and click Next.
Complete the following steps to add a new user:
Click Add.
Enter the valid username and password.
Click OK. Make sure that the new user is checked.
Click Next.
Continue with these steps to configure the NTRAS:
Setup the Networking Components.
Click Next.
Enter a name for the connection.
Click Finish.
Open the Properties of the connection you have just set.
Go to Users tab. Make sure that "Always allow directly......... a password" check box is unchecked.
Click OK.
Complete the following steps to start the Remote Access Services (RAS):
Open the Control Panel.
Open Administrative Tools.
Open Services.
Ensure that the following services are started and the startup type is set to automatic.
Remote Access Connection Manager.
Remote Access Auto Connection Manager.
Close the services window.
Modify the \epoc32\data\Z\System\data\stat.ini
file as
shown in the example below. Note that NTRAS should be left on comm:0 on the
device.
[SectionOne]
comport= 0
[SectionTwo]
transport= tcpip
[SectionThree]
logging= 0
debugport=3
Currently the com port setting in SectionOne is ignored, and commdb is used.
Install NTRAS on COM2 of the PC.
Start the Remote Access Service.
Get the IP address that is assigned to the device from the static address pool that is set in the Control Panel. The address to be used is the next value that is specified in the "Begin" field.
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 to remove all modems, except the null modem on comm:0. This change should enable the communication.
The command line option for running a test over a TCP/IP connection is:
> Testdriver run -p arm4 -b urel -s root.syncmlclient.rtest -t tcp --ip 10.1.0.2
NOTE: If the -t
option is not specified, the
transport defaults to serial2 i.e. com port 2.