当前位置:网站首页>[cyw20189] VII. Detailed explanation of HCI command format
[cyw20189] VII. Detailed explanation of HCI command format
2022-06-22 01:18:00 【White embedded】
1. Preface
In this paper, MCU adopt HCI Command control CYW20189 Command format for . Reference resources HCI UART Control Protocol.
Sending HCI Special attention should be paid to the format of the command , When CYW20819 Received command ,BOOT The code will first check the received command , If it does not conform to the defined format , Will not go APP The program reports relevant events .
2. Header
The command contains a header format , as follows :
It can be seen that , One HCI command , There are at least 5 Bytes .
3. Groups
Group Field in the third byte , The values and meanings are as follows :

4. Command
Command Field in the second byte , Because there are too many types , Here and there LE Command Medium Scan give an example :
If we need to send Scan Enable How should I combine the formats with the commands of :
// 1 byte | 1 byte | 1 byte | 2bytes | N bytes
// Packet type | command | group | length | data
0x19 0x01 0x01 0x01 0x00 0x01
5. Event
Event The format of is and Command Allied , At least the field position is the same , The difference is Command finger MCU Send to CYW20819, and Event In the opposite direction .
When MCU send out Scan Enable when ,CYW20819 The results will be reported :
// 1 byte | 1 byte | 1 byte | 2bytes | N bytes
// Packet type | event | group | length | data
0x19 0x03 0x01 0x01 0x00 0x01
6. At the end
Special attention required , If the format is wrong ,CYW20819 Of BOOT It filters out the data , Will give you a kind of UART The illusion of abnormal communication .
边栏推荐
- Pytorch learning 04: creation of tensor
- ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
- 让人无法喜爱的STL
- mysql整理
- Shardingsphere-proxy-5.0.0 implementation of distributed hash modulo fragmentation (4)
- 4g/wifi energy consumption metering socket - monitoring voltage, current and power
- 编译原理-递归下降子程序法
- 3371. comfortable cow
- Judge whether the string type is empty and whether the list set is empty
- [environmental footprint] set up fastdfs on your own computer
猜你喜欢
随机推荐
==和equals的区别
Spark RDD案例:词频统计
均线策略专测
Pytorch learning 08: splicing and splitting
Conversion between three file handles
对知识图谱与深度学习的关系理解
[其他] 浅析ELF中的GOT与PLT
div设置滚动和监听滚动距离
Sum of four numbers [array sort + double pointer]
4G/wifi 能耗计量插座-监测电压电流功率
SQL语句——数据更新、修改、删除
【DailyFresh】课程记录
Pytorch learning 13: implement letnet and learning nn Module related basic operations
[dailyfresh] problems encountered in sending activation email
[glib][gstreamer] plug in writing ideas -- inheritance, override and virtual functions
Enterprises can improve database security in four ways
RNN的简单整理
.NET中获得hInstance的几个方法
Small protocol with great power, why can't digital transformation without nvme full flash memory?
Difference between integer and int





![四数之和[数组排序+双指针]](/img/9e/e1932120a9b69847898e89c45e2eb4.png)



