[National Technology N32WB031_STB development board review] + Starting from the example to see the functions of the official Bluetooth code BLE file
[Copy link]
This post was last edited by Xidian Zhong Lingyuxiu on 2023-5-21 17:29
The main function of the National Technology N32WB031_STB development board is Bluetooth. Today we will take a look at what functions the official Bluetooth has achieved.
Open the official reference code and find the Bluetooth reference example.
In these files, we can see two files related to Bluetooth. Let's look at the first ble folder.
We can see 7 reference codes, which implement 7 functions. Bluetooth is not unfamiliar, and can be seen everywhere in life, but this is also the first time I have come into contact with Bluetooth codes. As usual, we first understand
Their readme file to see what specific functions are implemented.
1.blood_pressure.
The literal meaning seems to be blood and pressure, and it means blood pressure. Tongguo translation tool, we extract the function.
It can be seen that this is a reference example of measuring blood pressure and providing a blood pressure report. It is speculated that the sensor measures blood pressure and uploads it to the server via Bluetooth.
2. dis.
What is the abbreviation of Dis? Can anyone who works with Bluetooth share some information?
Is DiS a professional term or something else? With doubts, I can only Baidu. I found the answer here: https://blog.csdn.net/qq_36347513/article/details/121436420 Interested friends can go and have a look.
Friends who want to do Bluetooth development can take a good look at it. You should use it.
3. heart_rate.
Together, it should mean heart rate. This is used a lot on electronic bracelets and watches.
This should be similar to the blood pressure example, except the sensor is different. The final function is to upload to the server via Bluetooth.
4. hid_mouse
It seems to realize the mouse function. Friends who like DIY can take a look. Make or modify a Bluetooth mouse by yourself.
This is more practical. You can make a Bluetooth mouse for fun.
5. rdtss
This should be a special term involving Bluetooth function.
After translation, it means to realize Bluetooth transparent transmission. This is quite common in the actual application of data transparent transmission. It is worth using as a reference in the future.
6.rdtss_3s
The function should be similar to 5.
From the function description, we can know that this is a function that can connect to 3 hosts at the same time. This reminds me of the Bluetooth mouse I bought that can connect to 2 computers. Maybe it is similar to this function.
7.rdtss_16bit
This... Let's look at the functional description.
UUID search and analysis indicates the identification code. From the first 12 digits of the UUID, it is speculated that it is the Bluetooth pairing password? If you want to know more, you can check it online.
Well, today's sharing ends here. Although we haven't looked at the code directly, the functional description of the code also gives us a certain understanding of Bluetooth.
It provides some ideas and directions for learning Bluetooth later.
|