当前位置:网站首页>[development tutorial 10] crazy shell · open source Bluetooth heart rate waterproof sports Bracelet - Bluetooth ble transceiver
[development tutorial 10] crazy shell · open source Bluetooth heart rate waterproof sports Bracelet - Bluetooth ble transceiver
2022-07-29 00:27:00 【efans_ Mike】
Open source Bluetooth heart rate waterproof SPORTS BRACELET
—— Crazy shell · Intelligent wearable development series
bluetooth BLE Send and receive
1 Related introduction
DA14580 RF module is integrated inside , At the same time, the official also provided a set SDK, It contains the Bluetooth protocol stack . Bluetooth transceiver in this section is provided by modifying the official SDK, Complete the Bluetooth transceiver function . Basic knowledge about Bluetooth , You can refer to the previous Bluetooth foundation .
2 Hardware design
DA14580 RF module is integrated inside , It's just from PF10p Pin connected to an antenna .
chart 1
3 software design
open SDK, From the path :
SDK5.0.4\DA1458x_SDK\5.0.4\project\target_apps\ble_examples\ble_app_profi le\Keil_5 Open in ble_app_profile Engineering documents .
The first change user_cust1_def.h file , This file declares the parameters of the service , We need to modify the service and eigenvalue UUID Equal parameter , And delete the redundant eigenvalues .
chart 2
Revise user_cust1_def.c file , This file defines the attributes of files and eigenvalues , Here, you need to modify the services and characteristic values to be used , And delete redundant eigenvalue definitions .
chart 3
Code 1
The last thing to be revised is cust1_task.c file , This document defines cust1 Some task functions of the service , It needs to be defined as 128 Bit is modified to 16 position . in addition , Because redundant eigenvalue services have been deleted , You also need to modify the acceptance function .
chart 4
Relevant code can see our experimental routine .
4 Experimental phenomena
Start by opening SmartSnippets.
chart 5
Set it up SmartSnippets after , Click on the image above Open.
chart 6
(1) Click on Connect, Connect our MCU .
(2) Click on Erase, erase Flash.
(3) Click on Browse, Find our project .hex file .
(4) Click on Burn, Complete the code download .
After downloading the code , Run code , Then turn on the Wolverine BLE.
(1) Click on Connect.
chart 7
(2) Choose our Bluetooth device DIALOG-PRFL.
chart 8
(3) Type... In the input box BLE, And then click Send.
chart 9
Complete the above 3 Step , The mobile phone can receive the characters we sent .
chart 10
More complete learning materials and corresponding open source Suites , Please visit the official website :“ Crazy shell ”
For customized development , Please use the official website “ Crazy shell ” At the bottom of the page “ Contact us ” Make contact
边栏推荐
- Sword finger offer 41. median in data flow
- Dynamic programming problem (6)
- Network traffic monitoring tool iftop
- Software designer - intermediate, exam summary
- 动态规划问题(一)
- Introduction and solution of common security vulnerabilities in Web System SQL injection
- Attack and defense world web master advanced area php2
- PTA (daily question) 7-71 character trapezoid
- Recursion / backtracking (Part 2)
- Dynamic programming problem (VIII)
猜你喜欢

Advanced area of attack and defense world web masters warmup

Router view cannot be rendered (a very low-level error)

PTA (daily question) 7-69 narcissus number

MySQL transaction (this is enough...)

Using recursion and chain header interpolation to realize the group turnover of linked lists -- leetcode25 K group turnover linked lists

Idea2021.2 installation and configuration (continuous update)

Dynamic programming (V)

What are the skills of API interface optimization?

【esn】 学习回声状态网络
![[small bug diary] Navicat failed to connect to MySQL | MySQL service disappeared | mysqld installation failed (this application cannot run on your computer)](/img/ac/f63e370df72ace484a618cf946d4b7.png)
[small bug diary] Navicat failed to connect to MySQL | MySQL service disappeared | mysqld installation failed (this application cannot run on your computer)
随机推荐
PTA (daily question) 7-75 how many people in a school
Three years after graduation, write to you and me who may be confused [turn]
Dynamic programming problem (VIII)
Geth installation
Dynamic programming problem (6)
Oracle实例无法启动的问题如何解决
1331. 数组序号转换 : 简单模拟题
Idea2021.2 installation and configuration (continuous update)
PTA (daily question) 7-69 narcissus number
Attack and defense world web master advanced area php2
Basic knowledge of PHP language (super detailed)
Where is sandbox's confidence in rejecting meta's acquisition of meta universe leader sand?
Do like and in indexes in MySQL go
Exchange 2013 SSL certificate installation document
[micro services ~nacos] Nacos service providers and service consumers
15.模型评估和选择问题
Laravel permission control
ACM SIGIR 2022 | interpretation of selected papers of meituan technical team
Simple use and understanding of laravel message queue
“Method Not Allowed“,405问题分析及解决