Skip to content

Commit

Permalink
[Silabs] Adds new Silabs guides (#31261)
Browse files Browse the repository at this point in the history
* Creation of new Silabs documentation

* restyle

* FIx misspells

* fix TOC

* restyle table

* fix typo

* Restyled by prettier-markdown

---------

Co-authored-by: Restyled.io <[email protected]>
  • Loading branch information
2 people authored and pull[bot] committed Feb 14, 2024
1 parent c34ce8c commit 1089875
Show file tree
Hide file tree
Showing 9 changed files with 661 additions and 40 deletions.
19 changes: 14 additions & 5 deletions .github/.wordlist.txt
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ BarrierControl
BasicCHIPRegression
BasicInformation
baudrate
BCM
BD
BDX
BDXDownloader
Expand Down Expand Up @@ -248,6 +249,7 @@ CKIT
CLA
clapre
CLI
CLIs
cloudbuild
CLRF
clusterAttrs
Expand All @@ -264,6 +266,7 @@ CMS
CMSIS
CMVH
cn
COAP
codeaurora
codebase
codegen
Expand Down Expand Up @@ -298,8 +301,8 @@ connstring
conntype
const
ContentApp
ContentAppPlatform
ContentApp's
ContentAppPlatform
ContentLaunch
ContentLauncher
continuousHinting
Expand Down Expand Up @@ -655,13 +658,13 @@ iaszone
ibb
ICA
ICD
ICDs
iCloud
ICMP
IDF
IDL
IDLs
idt
IDT
idx
ifconfig
ifdef
Expand Down Expand Up @@ -793,7 +796,6 @@ LightingColor
LightingState
LinkSoftwareAndDocumentationPack
lladdr
LLADDR
LocalConfigDisabled
localedef
localhost
Expand Down Expand Up @@ -914,6 +916,7 @@ namespacing
nano
natively
navpad
NCP
ncs
nding
NDK
Expand Down Expand Up @@ -1021,6 +1024,7 @@ PairDevice
PAIs
PAKE
palletsprojects
PANID
pankore
param
params
Expand Down Expand Up @@ -1157,8 +1161,8 @@ REPL
repo
req
Requestor
RequestorCanConsent
Requestor's
RequestorCanConsent
Requestors
responder
RestrictedEvent
Expand Down Expand Up @@ -1213,8 +1217,8 @@ SDB
SDC
SDHC
SDK
sdkconfig
SDK's
sdkconfig
SDKs
SDKTARGETSYSROOT
sdl
Expand All @@ -1227,6 +1231,7 @@ SendNewInputEvent
sendto
seqdiag
SERIALDEVICE
serialno
SerialNumber
ServiceId
SetDns
Expand Down Expand Up @@ -1336,12 +1341,14 @@ systime
sysv
TargetNavigator
TBD
tbody
tcl
TCP
teardown
Telink
TemperatureMeasurement
templating
Tera
testability
TestArray
TestCluster
Expand Down Expand Up @@ -1470,6 +1477,7 @@ utils
UUID
ux
validator
vcom
VCP
Vectorcall
VendorID
Expand Down Expand Up @@ -1497,6 +1505,7 @@ WantedBy
watchdogTimeout
watchOS
webpage
wf
wg
wget
whde
Expand Down
5 changes: 3 additions & 2 deletions docs/guides/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,10 @@
- [nRF Connect - Software Update](./nrfconnect_examples_software_update.md)
- [NXP - Android Commissioning](./nxp_k32w_android_commissioning.md)
- [NXP - Linux Examples](./nxp_imx8m_linux_examples.md)
- [Silicon Labs - Documentation](https://github.com/SiliconLabs/matter#readme)
- [Silicon Labs - Building](./silabs_efr32_building.md)
- [Silicon Labs - Documentation](https://siliconlabs.github.io/matter/latest/index.html)
- [Silicon Labs - Getting Started](./silabs_getting_started.md)
- [Silicon Labs - Software Update](./silabs_efr32_software_update.md)
- [Silicon Labs - CLI Guide](./silabs_cli_guide.md)
- [STMicroelectronics (STM32)](./stm32_getting_started_guide.md)
- [TI - Platform Overview](./ti/ti_platform_overview.md)
- [Open IoT SDK - Platform Overview](./openiotsdk_platform_overview.md)
Expand Down
2 changes: 1 addition & 1 deletion docs/guides/darwin.md
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ Example:
- [Infineon CYW30739 Lighting](/examples/lighting-app/infineon/cyw30739/README.md)
- [Infineon PSoC6](/examples/all-clusters-app/infineon/psoc6/README.md)
- [Qorvo](/examples/lighting-app/qpg/README.md)
- [SiliconLabs](./silabs_efr32_building.md)
- [Silicon Labs](./silabs_getting_started.md)
- [Simulated Linux](./simulated_device_linux.md)
- [Telink](/examples/lighting-app/telink/README.md)
- [TI Platform](./ti/ti_platform_overview.md)
Expand Down
Binary file added docs/guides/images/silabs_logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 3 additions & 2 deletions docs/guides/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,10 @@ ti/ti_platform_overview
- [NXP - Android Commissioning](./nxp_k32w_android_commissioning.md)
- [NXP - Linux Examples](./nxp_imx8m_linux_examples.md)
- [NXP - Manufacturing Data](./nxp_manufacturing_flow.md)
- [Silicon Labs - Documentation](https://github.com/SiliconLabs/matter#readme)
- [Silicon Labs - Building](./silabs_efr32_building.md)
- [Silicon Labs - Documentation](https://siliconlabs.github.io/matter/latest/index.html)
- [Silicon Labs - Getting Started](./silabs_getting_started.md)
- [Silicon Labs - Software Update](./silabs_efr32_software_update.md)
- [Silicon Labs - CLI Guide](./silabs_cli_guide.md)
- [TI - Platform Overview](./ti/ti_platform_overview.md)

## Tool Guides
Expand Down
232 changes: 232 additions & 0 deletions docs/guides/silabs_cli_guide.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,232 @@
# Silabs CLI Guide

## Introduction

The guide discusses the different CLIs that can be enabled with the Silabs
sample apps. The CLIs expose configuration and management APIs via a command
line interface (CLI). For OpenThread devices, the OpenThread CLI can be used
with or without the Matter CLI. For Wi-Fi devices, only the Matter CLI is
available.

- [Introduction](#introduction)
- [Enable the CLI interfaces](#enable-the-cli-interfaces)
- [Matter CLI](#matter-cli)
- [OpenThread CLI](#openthread-cli)
- [Connecting to the device](#connecting-to-the-device)
- [Screen Utility](#screen-utility)
- [Tera Term](#tera-term)
- [Command List](#command-list)
- [Application Specific Commands](#application-specific-commands)

## Enable the CLI Interfaces

### Matter CLI

To enable the Matter CLI, the `chip_build_libshell=true` argument can be added.
This build argument can be added to OpenThread and Wi-Fi build commands. Here is
an example of the build command with the Matter CLI enabled.

```sh
./scripts/examples/gn_silabs_example.sh ./examples/lighting-app/silabs/ ./out/lighting-app BRD4187C chip_build_libshell=true
```

### OpenThread CLI

The OpenThread CLI is enabled by default on all OpenThread builds. To disable
the OpenThread CLI, the `enable_openthread_cli=false` argument can be added.
Here is an example of the build command to disable the OpenThread CLI.

```sh
./scripts/examples/gn_silabs_example.sh ./examples/lighting-app/silabs/ ./out/lighting-app BRD4187C enable_openthread_cli=false
```

## Connecting to the Device

The different CLIs are provided through the UART interface. The following table
exposes the UART configurations to connect to the different CLIs.

| Configuration | Value |
| :--------------: | :----- |
| Baudrate (speed) | 115200 |
| Data | 8 bit |
| Parity | None |
| Stop Bit | 1 bit |
| Flow Control | None |

Any serial terminal emulator will permit to connect to the device. For MacOS and
Linux, the screen utility can be used. For Windows, Tera Term can be used.

### Screen Utility

To use the Screen utility, we first need to find the vcom port. For MacOS, it
will be formatted as `/dev/cu.usbmodem...` and for Linux it will be formatted as
`/dev/ttyACM...`.<br/> Here is an example command connecting to the device with
the screen utility.

```sh
screen /dev/cu.usbmodem0004403048491 115200 8-N-1
```

### Tera Term

See the
[Tera Term guide](https://siliconlabs.github.io/matter/latest/wifi/MATTER_SHELL.html)
on how to connect to the device on Windows.

## Command List

When the prompt `matterCli>` is printed, the device is ready for a command.

> **Note**: When the OpenThread CLI is used without the Matter CLI, the prompt
> is `>`.
- [help](#help)
- [base64](#base64)
- [exit](#exit)
- [version](#version)
- [ble](#ble)
- [config](#config)
- [device](#device)
- [onboardingcodes](#onboardingcodes)
- [dns](#dns)
- [dns](#dns)
- [ota](#ota)
- [stat](#stat)
- [echo](#echo)
- [log](#log)
- [rand](#rand)
- [otcli](#otcli)

### help

Prints the list of commands and their description.

```bash
matterCli> help
base64 Base64 encode / decode utilities
exit Exit the shell application
help List out all top level commands
version Output the software version
ble BLE transport commands
config Manage device configuration. Usage to dump value: config [param_name] and to set some values (discriminator): config [param_name] [param_value].
device Device management commands
onboardingcodes Dump device onboarding codes. Usage: onboardingcodes none|softap|ble|onnetwork [qrcode|qrcodeurl|manualpairingcode]
dns Dns client commands
ota OTA commands
stat Statistics commands
echo Echo back provided inputs
log Logging utilities
rand Random number utilities
otcli Dispatch OpenThread CLI command
```

### base64

Base64 encode / decode utilities

```bash
matterCli>base64 help
help Usage: base64 <subcommand>
encode Encode a hex sting as base64. Usage: base64 encode <hex_string>
decode Decode a base64 sting as hex. Usage: base64 decode <base64_string>
```

### exit

Exit the application

> **Note**: Application will not respond until reset.
### version

Output the software version

### ble

BLE transport commands

```bash
matterCli> ble help
help Usage: ble <subcommand>
adv Enable or disable advertisement. Usage: ble adv <start|stop|state>
```

### config

Manage device configuration. Usage to dump value: config [param_name] and to set
some values (discriminator): config [param_name][param_value].

```bash
matterCli> config help
help Usage: config <subcommand>
vendorid Get VendorId. Usage: config vendorid
productid Get ProductId. Usage: config productid
hardwarever Get HardwareVersion. Usage: config hardwarever
pincode Get commissioning pincode. Usage: config pincode
discriminator Get/Set commissioning discriminator. Usage: config discriminator [value]
```

### device

Device management commands

```bash
matterCli> device
factoryreset Performs device factory reset
```

### onboardingcodes

Dump device onboarding codes. Usage: onboardingcodes none|softap|ble|onnetwork
[qrcode|qrcodeurl|manualpairingcode]

### dns

Dns client commands

```bash
matterCli> dns
resolve Resolve the DNS service. Usage: dns resolve <fabric-id> <node-id> (e.g. dns resolve 5544332211 1)
browse Browse DNS services published by Matter nodes. Usage: dns browse <commissionable|commissioner>
```

### ota

OTA commands

```bash
matterCli> ota
query Query for a new image. Usage: ota query
apply Apply the current update. Usage: ota apply
notify Notify the new image has been applied. Usage: ota notify <version>
state Gets state of a current image update process. Usage: ota state
progress Gets progress of a current image update process. Usage: ota progress
```

### stat

Statistics commands

### echo

Echo back provided inputs

### log

Logging utilities

### rand

Random number utilities

### otcli

See the official OpenThread CLI
[documentation](https://github.com/openthread/openthread/blob/main/src/cli/README.md)
for the list of commands.

## Application Specific Commands

Samples apps may adds example specific commands to enhance the testable feature
set of the sample. See the sample app documentation for more information on
application specific commands.
Loading

0 comments on commit 1089875

Please sign in to comment.