...
Understanding the Device's Broadcasting Behavior
The CVS Health Advance Blood Glucose Meter has a very specific broadcasting pattern:
It broadcasts for
...
~2 seconds when
...
initially turned on
...
It
...
broadcasts for
...
~2 seconds
...
immediately after taking a
...
reading (when you hear the
...
The SDK can encounter a timeout if the CVS meter isn’t broadcasting while the SDK is scanning. There doesn’t appear a way to change that meter’s timeout. To sync a reading with this peripheral the user just needs to make sure the SDK call starts reading when the user makes the CVS glucose meter broadcast.
What do I do with that knowledge?
The following instructions will guide the user to syncing a reading from the CVS Health Advance Blood Glucose Meter with the Validic SDK. The below steps are specific to our Validic SDK Sample App.
...
In the sample app, click the + icon (This opens the options of devices to take a reading on)
...
Select the CVS glucose meter to start the Reading process (SDK starts scanning for a reading)
...
confirmation beep)
Outside these brief windows, the device will not be detectable by the SDK
Common Issue
If the SDK's scanning window doesn't align with the meter's brief broadcasting windows, the connection attempt will time out and fail to sync.
Optimal Implementation Flow
Have the SDK ready to scan when user begins their glucose reading
Signal the SDK to begin looking for the meter immediately after the confirmation beep
Let the SDK manage the discovery and connection process
Allow the SDK to collect and process any available readings
Handle success or failure states based on SDK callbacks
Return the SDK to ready state for the next reading
Best Practices for End Users
Method 1: Syncing a New Reading
Open your app and prepare to initiate the reading process
Take the blood glucose reading on your meter
As soon as you hear the confirmation beep, immediately initiate the sync in your app
The meter is now in its 2-second broadcasting window
The SDK should detect and connect to the meter during this time
Method 2: Syncing Previous Readings
Open your app and prepare to initiate the reading process
Turn on the glucose meter
Immediately initiate the sync in your app while the meter is in its initial 2-second broadcasting window
Troubleshooting
If the sync fails:
Try again, paying careful attention to the timing
Ensure you initiate the sync immediately after the meter beeps or turns on
Remember you have only a 2-second window to establish the connection