This section provides the instructions to modify the configuration to use the Bluetooth
services (gyrometer and accelerometer) using the GAP-Peripheral device.
The following table provides the list of supported Bluetooth services and characteristics
available in the ASF Demo examples.
Table 1. Bluetooth Services and
Characteristics
Name |
UUID |
Properties |
Size (Bytes) |
Device Orientation Service (Custom) |
0xF05ABAC1393611E587A60002A5D5C51B |
— |
— |
Accelerometer Position Characteristic |
0x1BC5D5A50200A687E5113639D7BA5AF0 |
Notify, Read |
6 |
Gyroscope Position Characteristic |
0x1BC5D5A50200A687E5113639D4BA5AF0 |
Notify, Read |
6 |
The following are the instructions to set up and configure the module to use
Bluetooth services using the GAP-Peripheral device.
- 1.Configure the private service and
characteristics inside the Generic Attribute (GATT ) service table tab inside
the configuration file using the UI tool.
- 2.Create a user-defined service and
characteristics by dragging the ‘Others’ option into the ‘Add-On Service Table’
field as illustrated in the following figure.
Figure 1. Generic Attribute (GATT ) Service Table Tab
- 3.The following dialog box appears
to create the private service. Enter the service UUID available in the Table 1.
Figure 2. Service Edit
Page Dialogue Box
- 4.Click Next. In the
Characteristic Edit Page, enter the private characteristic under the service.
Figure 3. Characteristic Edit Page
- 5.In the newly created private
service in the ‘Add-On service’ field, right click on the private service to
‘Add Characteristic’ for the second private characteristic. Enter the details of
the second private characteristic as illustrated in the following figure.
Figure 4. Characteristic Edit Page
- 6.In the Descriptor Edit Page,
right click on the first Characteristic.
Click
Add Descriptor, and
enter the UUID as
2902 and the Descriptor Value as
00. Click
OK as shown in the following figure.
Figure 5. Descriptor Edit Page
- 7.Similarly, add the Descriptor for
the second characteristic as well with the same UUID value 2902 and
Descriptor Value 00. The final ‘Add-on-service Table’ must look like the
following figure.
- 8.
Click
Finish. All the parameters required are now set and ready to
flash to the device.
Figure 6. Add-On-Service Table