Table of Contents |
---|
Project : UTS Scope Overview
Ui tabs | |||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Xml Script Format
title | 01 - <TestStep..></> |
---|
01 <TestStep name="Step ..."> ...</>
Test Step item, name = "Step ...", will be displayed in the left-bottom window (7) in the main test form.
02 <Command name = "Get Bluetooth...">...</>
02.1 Retrieving command "Get Bluetooth..."'s content from CommandList.xml
,content = Protocol Type + Command Part
02.1.1 <Timeout>...</> : timeout definition, between Send/Tx and Receive/Rx,
unit : milli-seconds.
02.1.2 <Response>... </> : Response Data handler
02.1.2.1 <HexStringRegex>...</> : using regular express rule to check the matched pattern found ~!.dddddd
Example:
<!--Ex: 0D 0A 36 2E 31 35 30 2E 34 2E 35 31 00 0D 0A 82 87 70 0A DE F7 -->
<HexStringRegex>^(0D0A)([0-9a-hA-H][0-9a-hA-H])*(0D0A)([0-9a-hA-H][0-9a-hA-H]){6}</HexStringRegex>
==> Check Response Data Pattern is same as
"0D 0A "+ASCII string , null end ("00") + "0D 0A" + 6 bytes BLE Address, hex chars string.
title | 02 - <CheckMethod...>SwitchInterface</> |
---|
Purpose : Switch from Current Interface (ex: USB-HID) to BLE Client, EVK Board , (USB-CDC, 921600,8,N,1)
01 <CheckMethod xmlFileRef="Interface.xml" usedInterface="DA145858_..."> SwitchInterface</>
01.1 UTS calls "CheckMethod" type service : SwitchInterface, keyword
switch current communication interface (ex:USB-HID).
UTS disconnects current Comm Interface .
01.2 to the new interface, defined in "Interface.xml" , "DA14585_..."
UTS connects new interface to the other device.<?xml version="1.0" encoding="utf-8"?>
<Interfaces usedInterface="VP3350_HID">
<Interface name = "VP3350_HID">
<Type>USBHID</Type>
<Parameters>
<VID>0ACD</VID>
<PID>4650</PID>
</Parameters>
<Protocol>IDG</Protocol>
<RespTimeout>3000</RespTimeout>
<Interval>5</Interval>
<RetryTimes>0</RetryTimes>
</Interface>
<Interface name = "VP3350_RS232">
<Type>RS232</Type>
<Parameters>
<PortName>COM1</PortName>
<BaudRate>115200</BaudRate>
<DataBits>8</DataBits>
<StopBits>1</StopBits>
<Parity>None</Parity>
</Parameters>
<Protocol>IDG</Protocol>
<OpenCMD>2900</OpenCMD>
<OpenPattern>VP3350</OpenPattern>
<RespTimeout>3000</RespTimeout>
<Interval>5</Interval>
<RetryTimes>0</RetryTimes>
</Interface>
<Interface name = "DA14585_ConnStart_RS232">
<Type>RS232</Type>
<Parameters>
<PortName>AUTO</PortName>
<BaudRate>921600</BaudRate>
<DataBits>8</DataBits>
<StopBits>1</StopBits>
<Parity>None</Parity>
<!-- Rx End Check Waiting Loop Interval = 10 ms, totoal = 5*IntfRs232_RxEndRetryTimes = 5*500 = 2500ms-->
<!--IntfRs232_RxEndRetryTimes>10</IntfRs232_RxEndRetryTimes-->
</Parameters>
<Protocol>ATCMD</Protocol>
<!-- AT+CMD=1 , Get EVK DA14580 Host FW Version -->
<OpenCMD>41 54 2B 43 4D 44 3D 31</OpenCMD>
<OpenPattern>BTH Version 1.0.1</OpenPattern>
<RespTimeout>3000</RespTimeout>
<Interval>5</Interval>
<RetryTimes>0</RetryTimes>
</Interface>
<Interface name = "DA14585_ConnEnd_RS232">
<Type>RS232</Type>
<Parameters>
<PortName>AUTO</PortName>
<BaudRate>921600</BaudRate>
<DataBits>8</DataBits>
<StopBits>1</StopBits>
<Parity>None</Parity>
<IntfRs232_RxEndRetryTimes>10</IntfRs232_RxEndRetryTimes>
</Parameters>
<Protocol>ATCMD</Protocol>
<!-- AT+CMD=1 , Get EVK DA14580 Host FW Version -->
<OpenCMD>41 54 2B 43 4D 44 3D 33</OpenCMD>
<OpenPattern>BLE Host Ready!</OpenPattern>
<RespTimeout>10000</RespTimeout>
<Interval>5</Interval>
<RetryTimes>0</RetryTimes>
</Interface>
</Interfaces>