[thci] add configurable device connection type for OpenThread_WpanCtl (#4364)

This commit is contained in:
Jing Ma
2019-12-16 21:00:12 -08:00
committed by Jonathan Hui
parent b4f245b025
commit e79bb5557e
3 changed files with 286 additions and 688 deletions
File diff suppressed because it is too large Load Diff
+8 -1
View File
@@ -71,7 +71,14 @@ in the Configure Test Bed Page of Test Harness. The configuration is as fo
4. Copy "OpenThread_WpanCtl.png" to `C:\GRL\Thread1.1\Web\images`.
5. Copy "deviceInputFields.xml" to `C:\GRL\Thread1.1\Web\data`.
5. Modify the Device section "forParam" values referring to the following indication then
Copy "deviceInputFields.xml" to `C:\GRL\Thread1.1\Web\data`.
TelnetIP : device's IP address
Param5 : 'ip' for SSH login
Param6 : SSH username
Param7 : SSH password
Param8 : comma separated CLI prompt, Wpan command prefix, Wpan interface
Param9 : comma separated device's setting commands before test
6. Copy "OpenThread_WpanCtl.py" to `C:\GRL\Thread1.1\Thread_Harness\THCI`.
+22 -1
View File
@@ -89,6 +89,10 @@
validation="baud-rate"
hint="eg: 115200">115200
</ITEM>
<ITEM type="hidden"
label = ""
forParam="Param9">stty cols 256
</ITEM>
</DEVICE>
<DEVICE name="OpenThread_WpanCtl_SSH" thumbnail="OpenThread_WpanCtl.png" description = "OpenThread_WpanCtl: Wpantund + NCP (SSH)" THCI="OpenThread_WpanCtl">
<ITEM label="IP addr"
@@ -103,8 +107,25 @@
validation="port"
hint="eg: 4901">22
</ITEM>
<ITEM type="hidden" label = ""
<ITEM type="hidden"
label = ""
forParam="Param5">ip
</ITEM>
<ITEM type="hidden"
label = ""
forParam="Param6">pi
</ITEM>
<ITEM type="hidden"
label = ""
forParam="Param7">raspberry
</ITEM>
<ITEM type="hidden"
label = ""
forParam="Param8">pi@raspberrypi, sudo wpanctl -I wpan0, wpan0
</ITEM>
<ITEM type="hidden"
label = ""
forParam="Param9">stty cols 256
</ITEM>
</DEVICE>
</DEVICE_FIELDS>