Making The Apps Factory Beacon Buzz

First, we will need to understand how BLE works and this explains the composition:
BLE is based on a specification called “General ATTribute profile” (GATT), which defines how to transfer and receive short pieces of data known as “attributes” between a server and a client.

It mentions concepts, such as “profiles”, “services”, “characteristics” and “descriptors”.

A profile is a collection of (1 or multiple) services.
Each service (which can be thought of a behavior) can contain one or multiple characteristics that encapsulate data.


Now that we know how BLE operates, we can now proceed the with the main topic which is how to make the beacons buzz from an app.

The picture below shows how:


To explain further, first, we have to set the device to enable the buzzer while starting or when tapped from an application in nRF Connect App(Android) or LightBlue App(IOS). We have to set characteristic 0x2A70 under service 0xFF60 to 0x01.

Next from our app, if we want to activate the buzzing sound, we have to set characteristic 0x2A06  under 0x1802 to 0x05 and if we want to stop the buzzing, we have to set it to 0x00

No comments:

Post a Comment