@@ -57,20 +57,20 @@ guide assumes that the environment is linux based, and recommends Ubuntu 20.04.
57
57
- Download and install [ SysConfig] [ sysconfig ] . This can be done simply with
58
58
the following commands.
59
59
60
- ```
61
- $ cd ~
62
- $ wget https://dr-download.ti.com/software-development/ide-configuration-compiler-or-debugger/MD-nsUM6f7Vvb/1.18.1.3343/sysconfig-1.18.1_3343-setup.run
63
- $ chmod +x sysconfig-1.18.1_3343-setup.run
64
- $ ./sysconfig-1.18.1_3343-setup.run
65
- ```
60
+ ` ```
61
+ $ cd ~
62
+ $ wget https://dr-download.ti.com/software-development/ide-configuration-compiler-or-debugger/MD-nsUM6f7Vvb/1.18.1.3343/sysconfig-1.18.1_3343-setup.run
63
+ $ chmod +x sysconfig-1.18.1_3343-setup.run
64
+ $ ./sysconfig-1.18.1_3343-setup.run
65
+ ```
66
66
67
67
- Run the bootstrap script to setup the build environment.
68
68
69
- ```
70
- $ cd ~/connectedhomeip
71
- $ source ./scripts/bootstrap.sh
69
+ ```
70
+ $ cd ~/connectedhomeip
71
+ $ source ./scripts/bootstrap.sh
72
72
73
- ```
73
+ ```
74
74
75
75
### Compilation
76
76
@@ -79,35 +79,35 @@ Ninja to build the executable.
79
79
80
80
- Activate the build environment with the repository activate script.
81
81
82
- ```
83
- $ cd ~/connectedhomeip
84
- $ source ./scripts/activate.sh
82
+ ```
83
+ $ cd ~/connectedhomeip
84
+ $ source ./scripts/activate.sh
85
85
86
- ```
86
+ ```
87
87
88
88
- Run the build to produce a default executable. By default on Linux both the
89
- TI SimpleLink SDK and Sysconfig are located in a `ti` folder in the user's
90
- home directory, and you must provide the absolute path to them. For example
91
- `/home/username/ti/sysconfig_1.18.1`. On Windows the default directory is
92
- `C:\ti`. Take note of this install path, as it will be used in the next
93
- step.
89
+ TI SimpleLink SDK and Sysconfig are located in a `ti` folder in the user's
90
+ home directory, and you must provide the absolute path to them. For example
91
+ `/home/username/ti/sysconfig_1.18.1`. On Windows the default directory is
92
+ `C:\ti`. Take note of this install path, as it will be used in the next
93
+ step.
94
94
95
- ```
96
- $ cd ~/connectedhomeip/examples/lock-app/cc13x2x7_26x2x7
97
- OR
98
- $ cd ~/connectedhomeip/examples/lock-app/cc13x4_26x4
99
- $ gn gen out/debug --args="ti_sysconfig_root=\"$HOME/ti/sysconfig_1.18.1\""
100
- $ ninja -C out/debug
95
+ ```
96
+ $ cd ~/connectedhomeip/examples/lock-app/cc13x2x7_26x2x7
97
+ OR
98
+ $ cd ~/connectedhomeip/examples/lock-app/cc13x4_26x4
99
+ $ gn gen out/debug --args="ti_sysconfig_root=\"$HOME/ti/sysconfig_1.18.1\""
100
+ $ ninja -C out/debug
101
101
102
- ```
102
+ ```
103
103
104
- If you would like to define arguments on the command line you may add them
105
- to the GN call.
104
+ If you would like to define arguments on the command line you may add them
105
+ to the GN call.
106
106
107
107
108
- ```
109
- gn gen out/debug --args="ti_sysconfig_root=\"$HOME/ti/sysconfig_1.18.1\" target_defines=[\"CC13X4_26X4_ATTESTATION_CREDENTIALS=1\"]"
110
- ```
108
+ ```
109
+ gn gen out/debug --args="ti_sysconfig_root=\"$HOME/ti/sysconfig_1.18.1\" target_defines=[\"CC13X4_26X4_ATTESTATION_CREDENTIALS=1\"]"
110
+ ```
111
111
112
112
## Programming
113
113
@@ -213,9 +213,10 @@ Getting Started Guide][matter-e2e-faq].
213
213
Commission the device onto the Matter network. Run the following command on the
214
214
CHIP tool:
215
215
216
- ```
216
+ ````
217
217
218
- ./chip-tool pairing ble-thread <nodeID - e.g. 1> hex:<complete dataset from starting the OTBR > 20202021 3840
218
+ ./chip-tool pairing ble-thread <nodeID - e.g. 1>
219
+ hex:<complete dataset from starting the OTBR > 20202021 3840
219
220
220
221
```
221
222
@@ -232,8 +233,9 @@ message on the CHIP tool output:
232
233
233
234
```
234
235
235
- [ 1677648218.370754] [ 39785:39790 ] CHIP:CTL: Received CommissioningComplete response, errorCode=0
236
- [ 1677648218.370821] [ 39785:39790 ] CHIP:CTL: Successfully finished commissioning step 'SendComplete'
236
+ [ 1677648218.370754] [ 39785:39790 ] CHIP:CTL: Received CommissioningComplete
237
+ response, errorCode=0 [ 1677648218.370821] [ 39785:39790 ] CHIP:CTL: Successfully
238
+ finished commissioning step 'SendComplete'
237
239
238
240
```
239
241
@@ -248,36 +250,54 @@ Commissioning complete, notify platform driver to persist network credentials.
248
250
**Step 2** The example Doorlock cluster operations have the following format:
249
251
250
252
```
251
- ./chip-tool doorlock <attribute-name > <attribute-values > <destination-id > <endpoint-id-ignored-for-group-commands >
252
- ./chip-tool doorlock set-user <OperationType > <UserIndex > <UserName > <UserUniqueId > <UserStatus > <UserType > <CredentialRule > <destination-id > <endpoint-id-ignored-for-group-commands >
253
- ./chip-tool <doorlock set-credential > <OperationType > <Credential > <CredentialData > <UserIndex > <UserStatus > <UserType > <destination-id > <endpoint-id-ignored-for-group-commands >
253
+
254
+ ./chip-tool doorlock <attribute-name > <attribute-values > <destination-id >
255
+ <endpoint-id-ignored-for-group-commands > ./chip-tool doorlock set-user
256
+ <OperationType > <UserIndex > <UserName > <UserUniqueId > <UserStatus > <UserType >
257
+ <CredentialRule > <destination-id > <endpoint-id-ignored-for-group-commands >
258
+ ./chip-tool <doorlock set-credential > <OperationType > <Credential >
259
+ <CredentialData > <UserIndex > <UserStatus > <UserType > <destination-id >
260
+ <endpoint-id-ignored-for-group-commands >
261
+
254
262
```
255
263
256
264
Send commands to the lock-app. Here are some example commands:
257
265
258
266
Set a new user "`TST`" with user index of 1 with a default pin of 123456
259
267
260
268
```
261
- ./chip-tool doorlock set-user 0 1 ` TST ` 6452 1 0 0 1 1 --timedInteractionTimeoutMs 1000
262
- ./chip-tool doorlock set-credential 0 '{ "credentialType" : 1 , "credentialIndex" : 1 }' 123456 1 null null 1 1 --timedInteractionTimeoutMs 1000
269
+
270
+ ./chip-tool doorlock set-user 0 1 ` TST ` 6452 1 0 0 1 1
271
+ --timedInteractionTimeoutMs 1000 ./chip-tool doorlock set-credential 0 '{
272
+ "credentialType" : 1 , "credentialIndex" : 1 }' 123456 1 null null 1 1
273
+ --timedInteractionTimeoutMs 1000
274
+
263
275
```
264
276
265
277
Require a pin mode for lock operations:
266
278
267
279
```
280
+
268
281
./chip-tool doorlock write require-pinfor-remote-operation 1 1 1
282
+
269
283
```
270
284
271
285
Lock the Door
272
286
273
287
```
274
- ./chip-tool doorlock lock-door 1 1 --timedInteractionTimeoutMs 1000 --PinCode 123456
288
+
289
+ ./chip-tool doorlock lock-door 1 1 --timedInteractionTimeoutMs 1000 --PinCode
290
+ 123456
291
+
275
292
```
276
293
277
294
Unlock the door
278
295
279
296
```
280
- ./chip-tool doorlock unlock-door 1 1 --timedInteractionTimeoutMs 1000 --PinCode 123456
297
+
298
+ ./chip-tool doorlock unlock-door 1 1 --timedInteractionTimeoutMs 1000 --PinCode
299
+ 123456
300
+
281
301
```
282
302
283
303
### Provisioning
@@ -324,3 +344,4 @@ Additionally, we welcome any feedback.
324
344
https://www.ti.com/wireless-connectivity/thread/design-development.html
325
345
[ot_border_router_setup]: https://openthread.io/guides/border-router/build
326
346
[uniflash]: https://www.ti.com/tool/download/UNIFLASH
347
+ ```
0 commit comments