Skip to content

Commit 6313015

Browse files
maciejbaczmanskirlubos
authored andcommitted
samples: openthread: update THCI files
provide THCI files for all Thread versions, based on GRL golden devices THCI and update to Python 3 Signed-off-by: Maciej Baczmanski <[email protected]>
1 parent 7da191e commit 6313015

File tree

3 files changed

+4898
-906
lines changed

3 files changed

+4898
-906
lines changed

doc/nrf/protocols/thread/certification.rst

Lines changed: 7 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -93,47 +93,17 @@ Complete the following steps to prepare for the certification tests:
9393

9494
#. Prepare Thread Test Harness.
9595

96-
a. Copy the provided :file:`ncs/modules/lib/openthread/tools/harness-thci/OpenThread.py` file into :file:`C:\\GRL\\Thread1.2\\Thread_Harness\\THCI\\nRF_Connect_SDK.py`.
96+
a. Copy all THCI files provided in the :file:`ncs/nrf/samples/openthread/cli/harness-thci/` directory into :file:`C:\\GRL\\Thread1.2\\Thread_Harness\\THCI\\`.
9797

98-
b. Copy the provided :file:`ncs/nrf/samples/openthread/cli/harness-thci-1-3/nRF_Connect_SDK_1_3.py` file into :file:`C:\\GRL\\Thread1.2\\Thread_Harness\\THCI\\nRF_Connect_SDK_1_3.py`.
99-
100-
c. Copy images of your choice to :file:`C:\\GRL\\Thread1.2\\Web\\images\\nRF_Connect_SDK.jpg` and :file:`C:\\GRL\\Thread1.2\\Web\\images\\nRF_Connect_SDK_1_3.jpg`.
98+
b. Copy images of your choice to :file:`C:\\GRL\\Thread1.2\\Web\\images\\nRF_Connect_SDK.jpg` and :file:`C:\\GRL\\Thread1.2\\Web\\images\\nRF_Connect_SDK_1_3.jpg`.
10199

102100
You can use the same image for both.
103101

104-
d. Edit :file:`C:\\GRL\\Thread1.2\\Thread_Harness\\THCI\\nRF_Connect_SDK.py` as follows:
105-
106-
.. code-block:: python
107-
108-
>> Thread Host Controller Interface
109-
>> Device : OpenThread THCI
110-
>> Class : OpenThread
111-
112-
to
113-
114-
.. code-block:: python
115-
116-
>> Thread Host Controller Interface
117-
>> Device : nRF_Connect_SDK THCI
118-
>> Class : nRF_Connect_SDK
119-
120-
and
121-
122-
.. code-block:: python
123-
124-
class OpenThread(OpenThreadTHCI, IThci):
125-
126-
to
127-
128-
.. code-block:: python
129-
130-
class nRF_Connect_SDK(OpenThreadTHCI, IThci):
131-
132-
e. Edit :file:`C:\\GRL\\Thread1.2\\Web\\data\\deviceInputFields.xml` and prepend the following code:
102+
c. Edit :file:`C:\\GRL\\Thread1.2\\Web\\data\\deviceInputFields.xml` and prepend the following code:
133103

134104
.. code-block::
135105
136-
<DEVICE name="nRF Connect SDK" thumbnail="nRF_Connect_SDK.jpg" description = "Nordic Semiconductor: NCS Baudrate:115200" THCI="nRF_Connect_SDK">
106+
<DEVICE name="nRF Connect SDK 1.1 1.2" thumbnail="nRF_Connect_SDK.jpg" description = "Nordic Semiconductor: NCS Baudrate:115200" THCI="nRF_Connect_SDK_11_12">
137107
<ITEM label="Serial Line"
138108
type="text"
139109
forParam="SerialPort"
@@ -147,7 +117,7 @@ Complete the following steps to prepare for the certification tests:
147117
hint="eg: 115200">115200
148118
</ITEM>
149119
</DEVICE>
150-
<DEVICE name="nRF Connect SDK 1.3" thumbnail="nRF_Connect_SDK_1_3.jpg" description = "Nordic Semiconductor: NCS Baudrate:115200" THCI="nRF_Connect_SDK_1_3">
120+
<DEVICE name="nRF Connect SDK 1.3 1.4" thumbnail="nRF_Connect_SDK_1_3.jpg" description = "Nordic Semiconductor: NCS Baudrate:115200" THCI="nRF_Connect_SDK_13_14">
151121
<ITEM label="Serial Line"
152122
type="text"
153123
forParam="SerialPort"
@@ -162,8 +132,8 @@ Complete the following steps to prepare for the certification tests:
162132
</ITEM>
163133
</DEVICE>
164134
165-
The device with name "nRF Connect SDK" is intended to be used for Thread 1.1 and Thread 1.2 Certification Programs tests.
166-
The device with name "nRF Connect SDK 1.3" is intended to be used for Thread 1.3 Certification Program tests.
135+
The device with name "nRF Connect SDK 1.1 1.2" is intended to be used for Thread 1.1 and Thread 1.2 Certification Programs tests.
136+
The device with name "nRF Connect SDK 1.3 1.4" is intended to be used for Thread 1.3 and Thread 1.4 Certification Programs tests.
167137

168138
See the following links for more information on OpenThread:
169139

0 commit comments

Comments
 (0)