当前位置:网站首页>Ch582 ble 5.0 uses Le coded broadcast and connection
Ch582 ble 5.0 uses Le coded broadcast and connection
2022-07-25 17:59:00 【Cocoa core Italy】
One 、 Get information
- obtain SDKhttps://www.wch.cn/search?t=all&q=CH582
- Revision reference https://www.cnblogs.com/debugdabiaoge/p/16205973.html
Two 、 step
Examples of use :
EVT\EXAM\BLE\Peripheralstay
Peripheral\APP\peripheral.cOfPeripheral_InitAdd... To the functionuint8 initial_adv_event_type = GAP_ADTYPE_EXT_CONN_UNDIRECT; GAPRole_SetParameter(GAPROLE_ADV_EVENT_TYPE, sizeof(uint8), &initial_adv_event_type); GAP_SetParamValue(TGAP_ADV_SECONDARY_PHY, GAP_PHY_VAL_LE_CODED); GAP_SetParamValue(TGAP_ADV_PRIMARY_PHY, GAP_PHY_VAL_LE_CODED); GAP_SetParamValue(TGAP_ADV_SECONDARY_MAX_SKIP, 0); GAP_SetParamValue(TGAP_ADV_ADVERTISING_SID, 8);What we use here is 125K Rate
The changes here , You can refer to the example :EVT\EXAM\BLE\SYNC_ADVIf you need After connection , Slave machine PHY Negotiation of , Can be in
peripheralStateNotificationCBOfcase GAPROLE_CONNECTEDAdd negotiation taskscase GAPROLE_CONNECTED: if(pEvent->gap.opcode == GAP_LINK_ESTABLISHED_EVENT) { Peripheral_LinkEstablished(pEvent); PRINT("Connected..\n"); tmos_start_task(Peripheral_TaskID, SBP_PHY_UPDATE_EVT, SBP_READ_RSSI_EVT_PERIOD); // Start negotiation PHY there SBP_READ_RSSI_EVT_PERIOD Just random , Use it } break;If you need to increase power , You can modify
config.hOf#define BLE_TX_POWER LL_TX_POWEER_6_DBM
3、 ... and 、 result
You can see PrimaryPHY and SecondaryPHY All are LE Coded
Notice that you can't see the name here , It is necessary to modify the broadcast package , Here you can refer to EVT\EXAM\BLE\SYNC_ADV Modify the broadcast package , I haven't done the next research for the time being 
边栏推荐
- New and malloc
- itextpdf实现多PDF文件合并为一个PDF文档
- 交友活动记录
- 自动化测试 PO设计模型
- Stm32 paj7620u2 gesture recognition module (IIC communication) program source code explanation
- Go language context control function execution timeout return
- PageHelper还能结合Lambda表达式实现简洁的分页封装
- H5测试点(思维导图)
- Interviewer: talk about log The difference between fatal and panic
- RestTemplate通过泛型实现POST、PUT、DELETE、GET、集合请求以及文件上传(可批量文件、可带参数)的统一封装(可打印日志)
猜你喜欢

How to read a Book

Good news! Ruiyun technology was awarded the member unit of 5g integrated application special committee of "sailing on the sea"

SLA 、SLO & SLI

Wu Enda's machine learning programming operation cannot be suspended pause problem solved

Redis源码与设计剖析 -- 17.Redis事件处理

Hcip first day experiment
![[solution] the Microsoft edge browser has the problem of](/img/47/7e20a4f1e04577153e7cf0a6c61f26.png)
[solution] the Microsoft edge browser has the problem of "unable to access this page"

Nineteen year old summary
P2P 之 UDP穿透NAT的原理与实现

An article about ultrasonic humidifier
随机推荐
Unity 贝塞尔曲线的创建
Idea integrates common functions of SVN code management
Cet
WPF implements user avatar selector
UFT(QTP)-总结点与自动化测试框架
“Deprecated Gradle features were used in this build, making it incompatible with Gradle 6.0”问题解决
Idea essential plug-ins
Redis source code and design analysis -- 15. RDB persistence mechanism
Go channel simple notes
C LINQ de Duplication & de duplication sum
What is the relationship between cloud fluidization and cloud desktop
Auditing相关注解
PageHelper can also be combined with lambda expressions to achieve concise paging encapsulation
Highlights
An article about ultrasonic humidifier
直击考点:PMP考试中常见敏捷知识点汇总
虚拟偶像代言产品出问题谁负责?
精彩记录
PageHelper还能结合Lambda表达式实现简洁的分页封装
Stm32 paj7620u2 gesture recognition module (IIC communication) program source code explanation