Skip to content

Commit

Permalink
Fixed chip-tool guide around Group commands configurations (project-c…
Browse files Browse the repository at this point in the history
…hip#23873)

* Fixed chip-tool guide around Group commands configurations

* Restyled by prettier-markdown

Co-authored-by: Restyled.io <[email protected]>
  • Loading branch information
dvdm-qorvo and restyled-commits authored Dec 6, 2022
1 parent 1930c38 commit f71e778
Showing 1 changed file with 13 additions and 11 deletions.
24 changes: 13 additions & 11 deletions examples/chip-tool/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -156,14 +156,7 @@ The client will send a single command packet and then exit.

1. Commission and pair device with nodeId 1234

2. Add Group to device

```
chip-tool groups add-group GroupId GroupName node-id endpoint-id
chip-tool groups add-group 0x4141 Light 1234 1
```

3. Add group Keyset to device
2. Add group Keyset to device

```
chip-tool groupkeymanagement key-set-write GroupKeySet node-id endpoint-id
Expand All @@ -174,13 +167,20 @@ chip-tool groupkeymanagement key-set-write '{"groupKeySetID": 42, \
"d2d1d2d3d4d5d6d7d8d9dadbdcdddedf", "epochStartTime2": 2220002 }' 1234 0
```

4. Bind Key to group
3. Bind Key to group

```
chip-tool groupkeymanagement write group-key-map attr-value node-id endpoint-id
chip-tool groupkeymanagement write group-key-map '[{"groupId": 16705, "groupKeySetID": 42}]' 1234 0
```

4. Add Group to device

```
chip-tool groups add-group GroupId GroupName node-id endpoint-id
chip-tool groups add-group 0x4141 Light 1234 1
```

## Configuring the client for Group Commands

Prior to sending a Group command, both the end device and the Client (Chip-tool)
Expand Down Expand Up @@ -222,8 +222,10 @@ chip-tool groupsettings bind-keyset 0x4141 0xAAAA

To use the Client to send Matter commands, run the built executable and pass it
the target cluster name, the target command name, the Group Id in Node Id form
(`0xffffffffffffXXXX`) and an unused endpoint Id. Take note that Only commands
and attributes write can be send with Group Id.
(`0xffffffffffffXXXX`) and an used endpoint Id. Take note that Only commands and
attributes write can be send with Group Id. Also note that a group ACL needs to
be installed before a command sent to the group will be accepted. See
[the access control guide](../../docs/guides/access-control-guide.md#installing-a-group-acl)

E.G. sending to group Id 0x4141

Expand Down

0 comments on commit f71e778

Please sign in to comment.