当前位置:网站首页>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 
边栏推荐
- Postman get started quickly
- 云VR:虚拟现实专业化的下一步
- CH582 BLE 5.0 使用 LE Coded 广播和连接
- 如何判断静态代码质量分析工具的性能?这五大因素必须考虑
- WPF 实现用户头像选择器
- Step by step introduction of sqlsugar based development framework (13) -- package the upload component based on elementplus, which is convenient for the project
- 如何选择数字孪生可视化平台
- What is the relationship between cloud fluidization and cloud desktop
- RestTemplate通过泛型实现POST、PUT、DELETE、GET、集合请求以及文件上传(可批量文件、可带参数)的统一封装(可打印日志)
- OSPF --- open shortest priority path protocol
猜你喜欢
随机推荐
Stm32 paj7620u2 gesture recognition module (IIC communication) program source code explanation
[solution] the Microsoft edge browser has the problem of "unable to access this page"
Methods of de duplication and connection query in MySQL database
虚拟偶像代言产品出问题谁负责?
Idea 必备插件
RedisTemplate解决高并发下秒杀系统库存超卖方案 — Redis事务+乐观锁机制
Cet
十九岁的总结
实时云渲染有哪些优势
Unity 贝塞尔曲线的创建
[Hardware Engineer] Why do DC-DC isolated switching power modules use transformers?
关于云XR介绍,以及5G时代云化XR的发展机遇
11. Camera and lens
大话DevOps监控,团队如何选择监控工具?
食品安全 | 八问八答带你重新认识小龙虾!这样吃才对!
Automated test Po design model
云流化和云桌面有什么关系
I2C communication - sequence diagram
有没有什么不起眼却挣钱的副业?
TME2022校园招聘后台开发/运营开发/业务运维/应用开发笔试(I)编程题的一点自我分析









