Using USB
To use the USB transport use the following command:
testdriver run -p armv5 -b urel -s myroot.mytest -t usb1
Connect one end of the USB cable to your PC and the other end to the
Symbian device.
The following sections provide details of the settings required on your
PC and the device to set up an USB connection.
Settings required on your PC
-
Install the software driver to recognise the device connected
through USB and expose virtual serial port to it.
-
Install Symbian MCCI drivers, for detecting a target device (for
example, Lubbock board) as a plug-and-play USB device identified as SGH-D700
and allocating a virtual serial port to it.
NOTE: Attach the target device only after it is powered on
and ready for use.
If the PC detects the device as an anonymous plug-and-play device, then
remove it from the list of devices using Device Manager or
right-click the system tray icon and select "Stop" (this depends on the
operating system).
Settings required on the device
The device component STAT cannot access the USB port from Flash or RAM
drives. In order to access the USB port, the STAT tool must be run from ROM.
-
On the target device, ensure the USB Manager icon is on, by using
the Control Panel.
-
Physically attach the USB cable between the PC and target device
port J30. The Symbian OS device is displayed as a port under Device Manager.
-
Make a note of the virtual serial port created.
-
Provide the STAT.ini
file in the
\system\data
directory of any drive on the device (typically copy
it in the MMC card) before starting STAT.
-
Modify the STAT.ini
file to include -usb
as the transport option. For example:
[SectionOne]
comport= 3
[SectionTwo]
transport= usb
[SectionThree]
logging= 1
-
Start the STAT tool on the device.
-
Build the ROM image using the following command:
buildrom -D_EABI=ARMV5 -DRVCT -D_STARTUPMODE2 h4hrp techview_statapi platsec
When you start STAT on the device, it must show the current version
(for example, v1.1.1000) and the transport option as 'usb'.
-
Restart the device.
You are now ready to use the TestDriver over a USB connection.
Example
An example to run a test over a USB connection:
> TestDriver run -p arm4 -b urel -t usbX -s testA.testB
where X
is the mapped port number.