nRF51 SDK
|
Modules | |
main.c | |
Glucose Meter service Sample Application. | |
The Blood Glucose Application is a firmware example that implements the Blood Glucose profile using the hardware delivered in the nRF51822 Development Kit.
The source code and project file can be found in the <InstallFolder>\Nordic\nrf51822\Board\nrf6310\ble\ble_app_gls
folder.
The application includes the two services in the Blood Glucose profile:
In addition, use of the Battery Service is also demonstrated.
When the application starts, a timer for generating battery measurements is started.
The actual measurements are hard coded values and gets added when connected and bonded to a master, at each press of the button 0. The timestamps are simulated and it uses the Record Access Control point and implements the filtering on sequence number. It supports only glucose measurement characteristic, not glucose context.
Instructions on how to set up the nRFgo Motherboard: nRFgo Motherboard Setup (nRF6310).
LED assignments:
Buttons assignments:
The Blood Glucose Meter Profile uses the Record Access Control Point characteric to access all measurements. This means that the sensor does not automatically send new measurements, the collector has to fetch them writing request to the control point (see http://developer.bluetooth.org/Pages/default.aspx for more detail on the RACP characteristic).
The Blood Glucose Application is able to use the nRF6350 Display to secure the bonding using Man-in-the-Middle protection (MITM). If the nRF6350 Display is available and connected according to the setup found in nRFgo Motherboard Setup (nRF6310) , then the Blood Glucose Application will present a passkey during bonding.
The passkey must be entered at the master to complete the bonding and ensure MITM protection.
The Glucose Meter Application can be tested using the nRFUtility app for iOS and Android. The app will be listed as "nRFready Utility" on Apple Store and as "nRF Utility" on Google Play.
It can also be tested using the Master Control Panel as follows: