Recently, because of the key thing, the study of the official self-ble_app_proximity program, in fact, is related to the anti-lost program.
At the same time also found some of the doorway to see the Nordic program, mainly to see the protocol stack inside some service, first from the macro understanding, and then a closer look, such as today we want to do a project with the anti-lost, it can refer to proximity this program, why reference it, Well, first look at their service.
Host computer software Nordic Toolbox
Hardware: AK II, program:ble_app_proximity
1,TX Power Service-Transmit power services
The service can adjust the transmission power of Bluetooth, which can affect the device and mobile phone Bluetooth direct detection and communication distance, personal understanding.
2,immediate Alert Service-Instant alarm Services
The service can use the key to trigger the alarm service, press the button, in the key processing program set the level of alarm, send via Bluetooth to the phone App,app according to the alarm level to do different actions,ble_app_proximity program, key control phone ringing and stop ringing.
3,link Loss Service-Connection Loss Services
When the connection is lost (either the battery is out of power or it is too far away from the app), the connection is lost, and is then sent to the mobile app as a notification when it is lost, and the phone responds to the event. ble_app_proximity is displayed using notifications in the program.
4,battery Service-Battery services
Sample battery voltage via AD, send to mobile app
5,immediate Alert Service Client-locator Role of the The Find Me Profile Locator Service
The service can be found on the device via the mobile app. After the Bluetooth connection is established, there is a Find Me button in the phone app, press find me, the Hardware Development Board AK II will light up, this time the Find Me button becomes the Silent me button, and then press the Silent me button, the corresponding lantern will go off. The Immediate Alert service, introduced in comparison to 2, is an opposite way of looking.
This program has a lot of reference value, there is time to the inside of the program to study well. Beijing Chaoyang Book