#author("2022-11-22T14:42:55+08:00","default:Admin","Admin")
#author("2022-11-22T14:43:56+08:00","default:Admin","Admin")
[[+Zigbee30+EmberZnet]]

&color(red){※This article is based on EmberZnet SDK 6.7.5.0 and EFR32MG Series};

#contents

* 概要 [#m36acd20]

Command Line Interface (CLI)

官方文档:

 https://docs.silabs.com/gecko-platform/latest/service/cli/overview

在Zigbee项目中,您可以找到许多可用于调试的预构建CLI命令。对于每个工程师来说,开发产品都很方便。如果在控制台上键入“ help”,则可以找到以下CLI命令

#codeprettify{{
bsend
changekey
debugprint
echo
endpoint
events
help
info
interpan
keys
libs
network
option
plugin
print
raw
read
reset
security
send
send-using-multicast-binding
send_multicast
timesync
version
write
zcl
zdo
}}

**  emAfCliWriteCommand [#i6474ee1]

void emAfCliWriteCommand(void) and void emAfCliReadCommand(void) functions in zcl-framework-core/zcl-cli.c.

These functions are called upon using the "write <ep> <cluster> <attr> <data_type> <data>" and "read <ep> <cluster> <attr> <server?>" CLI commands.

I just tested the CLI way.


* 创建自定义CLI命令 [#iafbbf0a]

在{project}.isc的“Printing and CLI”选项卡中启用“Add Custom CLI Sub-menu”复选框。

&ref(ZigBee.png);

#hr();
Comment:
#comment_kcaptcha

トップ   編集 差分 バックアップ 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS