Welcome Guest,Register Now
Log In

ANT Forum

Welcome guest, please Login or Register

   

Not able to receive measurement data from Blood Pressure Monitor any more

Rank

Total Posts: 7

Joined 2015-11-19

PM

I have used ANT+ Android libraries as shown in https://github.com/ant-wireless/ANT-Android-SDKs.
It worked for about 2 months. Then I could not receive any measurement data from the blood pressure monitor any more. I am using smartLAB profi+.

More specifically, the device is detected when searching for devices, it authenticates and sends data after the measurement. Everything seems normal. However, the following callback from ANT+ Android API is not called:

new IMeasurementDownloadedReceiver() {
 
@Override
 
public void onMeasurementDownloaded(final BloodPressureMeasurement measurement{
  runOnUiThread
(new Runnable() {
   
@Override
   
public void run() {
    Log
.i(TAG"onMeasurementDownloaded: " JsonUtil.toJson(bloodPressure));
   
}
  }
);
 
}


Hence, I don't receive any blood pressure measurement data. I tested the blood pressure monitor with the PluginSampler demo app, it is working fine. Then I changed the package name of my app, it starts to receive measurement data again. But it stops working after I change to my original package name. This is so frustrating. Can you help with what is going on here? Thanks!      
RankRankRankRank

Total Posts: 313

Joined 2011-09-12

PM

I am not sure why the package name would affect the operation of your device from what you described. Can you enable the serial and debug logging and see if it shows any errors? https://www.thisisant.com/forum/viewthread/6283
     

Signature

Dynastream Developer

Rank

Total Posts: 7

Joined 2015-11-19

PM

Hi Shane,

I enabled logging using the app you mentioned and captured some log messages. There are two log files attached here.

What I noticed after I enabled the serial logging are these messages:
06-23 16:23:41.408 24923-28106/? W/AntFsHostDownloadChannelSubTaskBBC30600No responseClient seems stuck in busy statePing.
06-23 16:23:41.418 24958-24966/? I/ANTSerialbuilt-in:Built-in:Tx data    [09][4F][00][44][05][00][00][00][00][00][00]
06
-23 16:23:41.418 24923-28159/? E/AntFsHostDownloadChannelSubTaskBBC30600Timed out waiting for transport beacon
06
-23 16:23:41.428 24958-24968/? I/ANTSerialbuilt-in:Built-in:Tx command [02][4D][00][52]
06
-23 16:23:41.438 24958-24975/? I/ANTSerialbuilt-in:Built-in:Rx         [02][52][00][03]
06
-23 16:23:41.438 24923-28159/? D/AntFsHostDownloadChannelSubTaskBBC30600Wait for transport beacon
06
-23 16:23:41.528 24958-24975/? I/ANTSerialbuilt-in:Built-in:Rx         [0D][4E][00][43][2B][03][02][42][60][C1][B1][40][20][FE][80]
06
-23 16:23:41.538 24958-24975/? I/ANTSerialbuilt-in:Built-in:Rx         [03][40][00][01][05]
06
-23 16:23:41.548 24923-28159/? E/AntFsHostDownloadChannelSubTaskBBC30600Timed out waiting for transport beacon
...
06-23 16:23:44.288 24923-28159/? E/AntFsHostDisconnectChannelSubTaskBBC30600FailedConnection lost
...
06-23 16:23:44.308 24923-28159/? V/AntFsHostSessionBBC30600ANT-FS host disconnectedresultFAIL_DEVICE_TRANSMISSION_LOST 


On the blood pressure device, I get "OK" state for data transmission. What do you think?      

File Attachments

Rank

Total Posts: 7

Joined 2015-11-19

PM

I think I found the issue. When parameter downloadNewOnly was set to true in 'requestDownloadMeasurements', sometimes the new measurement is not sent any more. When this happens, it is not possible to get new measurements after that point. In the documentation it says:
downloadNewOnly - True to limit the returned measurements to only those which are newer than your last measurement received through this function. False to download all measurements regardless of the time they were created.

But it does not send the data even after new measurements. I never changed the time and date on the device. Now that I changed the parameter downloadNewOnly to true, I am able to receive the measurements (even though many of them), it is working so far.