Continuous Glucose Monitoring Profile Project
Table of Contents
Introduction
The Continuous Glucose Monitoring
(CGM) project is based on the Basic BLE example and implements a simple Bluetooth low-energy peripheral device with GATT services.
Once the CGM example, based on version 1.0.2 of BT SIG, connects to a Central device, it generates dummy glucose measurement values. You may also use SimpleLink Connect or another BLE application app to interact with the CGMS module.
This project can be a framework for developing many different peripheral-role applications.
Hardware Prerequisites
The default Data Stream board configuration uses the device's LaunchPad development kit.
Software Prerequisites
For information on what versions of Code Composer Studio and IAR Embedded Workbench to use, see the Release Notes file provided in the SDK. In addition, please refer to the User's Guide for information on importing this project into your IDE workspace and build/run.
CGM_Service
This project contains a CGM service.
Service Table
Description | UUID | Format | Properties |
---|---|---|---|
CGM Service | 181F | Service declaration | Read |
CGM Measurement | 2AA7 | 1 byte uint8_t | Read/Write/Notify (Authentication required) |
CGM Feature | 2AA8 | 4 bytes uint8_t | Read (Authentication required) |
CGM Status | 2AA9 | 3 bytes uint8_t | Read (Authentication required) |
CGM Session Start Time | 2AAA | 9 bytes uint8_t | Read/Write (Authentication required) |
CGM Session Run Time | 2AAB | 2 bytes uint8_t | Read (Authentication required) |
Record Access Control Point | 2A52 | 2-20 bytes uint8_t | Read/Write/Indicate (Authentication required) |
CGM Specific Ops Control Point | 2AAC | 1-18 bytes uint8_t | Read/Write/Indicate (Authentication required) |
Usage
To interact with the application over Bluetooth, you may use any device that can act as a BLE Central device, such as
iOS with the apps SimpleLink Connect or other BLE application
Android with the apps SimpleLink Connect or other BLE application
A CC26xx/CC13xx/CC23xx LaunchPad running the sample app HostTest from a compatible SDK with the PC tool BTool from the same SDK.
UART
This application uses the UART peripheral to provide an interface for the application. The UART is only used for display messages.
We recommend using a terminal program that can parse ANSI/VT100 color codes, such as Tera Term, PuTTY, Code Composer Studio Terminal, etc., to monitor the LaunchPad UART output.
The following default parameters are used for the UART peripheral for display:
UART Param | Default Values |
---|---|
Baud Rate | 115200 |
Data length | 8 bits |
Parity | None |
Stop bits | 1 bit |
Flow Control | None |
Booting
Once the CGM sample application starts, the output to the terminal will report its address and the fact that it is advertising, as shown below:
Connecting
When a device connects, the address of the device will be shown in the console. After a while, you will see the automatic parameter update request sent from the device being applied.