Antidote ICS received Only Oxymeter Data

442 views
Skip to first unread message

nicolas

unread,
Sep 28, 2012, 2:50:17 AM9/28/12
to antido...@googlegroups.com
Hallo,

I use for some weeks Antidote for Android (ICS 4.0.3, kernel 3.0.8 - Samsung galaxy Tab 2)

The demo application work fine with Oxymeter, but It Doesn't work with other sensors : A&D Weight Scale ( UC-321PBTC) and A&D Blood Pressure (UA-767PBT-C)

I edit this line in client activity :
int [] specs = {0x1004, 0x100, 0x1029, 0x100f, 0x1011};

and this line in HealthService :
private static final int [] HEALTH_PROFILE_SOURCE_DATA_TYPES = {0x1004, 0x1007, 0x1029, 0x100f};

to adding the recognition of other sensors (I got theses values from the python test healthd in the src), and I added the good parser for other data sent by others sensors
(I choose the good parser from the first "sensor metric-id" given in the measurement XML data.)

But any reaction of antidote when I used the two other sensors. no connection, no association ... ...


Do you have an idea to correct this and recognize the sensors ?
Does i forgot something ?

Elvis Pfutzenreuter

unread,
Oct 1, 2012, 10:08:09 AM10/1/12
to antido...@googlegroups.com
AFAIK it is the SSP problem in Linux kernel. The solution is 
to disable SSP with hciconfig, or trying some kernel patch or
a newer kernel version. 

Santiago Hors

unread,
Oct 1, 2012, 3:27:27 PM10/1/12
to antido...@googlegroups.com
I have the same problem here. Please let me know if you manage to connect the blood pressure device. If I achieve it first, I'll tell here how I did it...

Cheers.
Santiago

nicolas

unread,
Oct 2, 2012, 2:58:13 AM10/2/12
to antido...@googlegroups.com
There isn't hciconfig on android ICS.

Do you have more information about disabling SSP ?

nicolas

unread,
Oct 2, 2012, 5:21:25 AM10/2/12
to antido...@googlegroups.com
Its ok,

I've find an hciconfig file.

I've try the command in the document of the site signove.. page 25

sudo hciconfig hci0 sspmode 0



AntidoteProgramGuide(2).pdf
hciconfig.zip

Santiago Hors

unread,
Oct 2, 2012, 5:39:29 AM10/2/12
to antido...@googlegroups.com
Did that work for you?

nicolas

unread,
Oct 2, 2012, 7:49:32 AM10/2/12
to antido...@googlegroups.com
Yes.

But You must write this line after each reboot of the android device ...

I'me searching a solution to execute this line at each reboot. On my device (android 4 ICS, I haven't /etc/init.d ; I've edit some files named "init..." but theses files a overriden and "resetted" at each reboot, so I don't find to execute this line ..

I'm searching to use a BroadcastReceiver and JNI to execute SU then hciconfig, But this solution is poor ...

Santiago Hors

unread,
Oct 2, 2012, 8:39:59 AM10/2/12
to antido...@googlegroups.com
Thank you Nicolas

I would truly appreciate that you describe the steps you did. I don't know where I have to write that line. I don't know where to place the hciconfig file either! 

About the line instruction that you have to write every time you reboot the device: may be it is possible to call a service that executes that line from your activity before attempting to connect to the medical device? 

Santiago

Santiago Hors

unread,
Oct 4, 2012, 7:57:13 AM10/4/12
to antido...@googlegroups.com
Well, I managed to place the file under system/xbin 

When I try to connect the device, I am asked for the PIN/Password. The manual says it is 123456, but it gives me an error and it doesn't link to the tablet. Have you used that password too?

May be I have a bad configuration of hciconfig. Would you mind printing the output of "hciconfig -a"?

Cheers!
Santiago

On Tuesday, 2 October 2012 13:49:32 UTC+2, nicolas wrote:

nicolas

unread,
Oct 10, 2012, 8:51:32 AM10/10/12
to antido...@googlegroups.com
Hi,

the SSP Mode permit to don't ask pin code for BT devices which supports ssp mode (A&D devices supports this mode)
when disabling the ssp mode, the connecting will ask you (once) the device pin code (123456 for A&D devices)


the hciconfig file must be put in the path (I put it in /system/bin (xbin work also) (this step requires to be root ...)

next the line hciconfig hci0 etc etc must be written in a terminal (I choose to write a shell with :

su --command "hciconfig hci0 sspmode 0"

it disabling ssp mode


this shell is launched by an application at bootcomplete of the android device (I use the dalvik because I don't succeed to write this line in a config file)


maybe you have to re-paired the bt devices ?

you can check ssp mode config by writing this :

hciconfig hci0 sspmode

the last line indicate if the ssp mode is enabled or disabled.

Santiago Hors

unread,
Oct 11, 2012, 4:06:18 AM10/11/12
to antido...@googlegroups.com
Thank you Nicolas

I have phoned A&D and they've gave a new PIN: 39121440. And it works fine now. The Blood Pressure device is linked to my tablet now without the SSP mode.

What I can't do now is getting data from the Blood Pressure device. Using the HealthServiceTest example, I have changed the specs value from 

int [] specs = {0x1004};

to 

int [] specs = {0x1007}; 

However, the last thing it does is calling the function api.ConfigurePassive(agent, specs);

After that, it is supposed to wait for a handle_packet_connected callback, but it doesn't. 

The bluetooth icon doesn't light (there is no data exchange)... so, have you had this problem too? 


Thank you very much for your support.

Santiago

Prashant Kumar

unread,
Feb 20, 2013, 12:44:23 AM2/20/13
to antido...@googlegroups.com
Post reply
More message actions
11:05 (less than a minute ago)
I paired nonin oximeter to an android ICS mobile.Iam getting only one reading and then immediately connection is getting lost.any solution for this.

Elvis Pfutzenreuter

unread,
Feb 20, 2013, 7:40:58 AM2/20/13
to antido...@googlegroups.com
As far as I know, nonin oximeter only sends one measurement per connection,
unless there were measurements stored (that could not be sent before).

On Feb 20, 2013, at 2:44 AM, Prashant Kumar wrote:

> Post reply
>
>
> 11:05 (less than a minute ago)
>
> I paired nonin oximeter to an android ICS mobile.Iam getting only one reading and then immediately connection is getting lost.any solution for this.
>
> --
> You received this message because you are subscribed to the Google Groups "Antidote: open-source IEEE 11073 stack" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to antidote-lib...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>

Prashant Kumar

unread,
Feb 21, 2013, 2:30:58 AM2/21/13
to antido...@googlegroups.com
Thanks Elvis for the reply

1. Actually iam getting only 1 reading but somtimes iam getting 2,3,6 readings.But when i tried with MyFitnessCompanion android app from Googleplay (ICS) iam getting continuous readings realtime.But these continuous readings are not coming with my app where we use antidote stack.Is there problem with my app or Nonin or ICS version or B.T version i want to know ?

2.I heard HDP profile is being used for data transmission.ICS has B.T 2.1 +EDR but Nonin 9560 has 2.0+EDR .Is Nonin using HDP profile or SSP profile ? Any idea


Elvis Pfutzenreuter

unread,
Feb 21, 2013, 7:39:28 AM2/21/13
to antido...@googlegroups.com
Antidote uses HDP. It may be that the other application is using the
proprietary oximeter protocol over SSP.

Prashant Kumar

unread,
Feb 22, 2013, 11:05:03 AM2/22/13
to antido...@googlegroups.com
Hii,
How can we confirm whether the other application is using HDP or SSP. Are there any tools or commands to find that ?.
And if we can confirm that the other application is using SSP ,can we make antidote to use SSP.If so,how ?


 

Elvis Pfutzenreuter

unread,
Feb 22, 2013, 11:17:23 AM2/22/13
to antido...@googlegroups.com
One way is by sniffing Bluetooth traffic, the easiest way if you don't have
a BT scanner is in the phone itself, by running hcidump. (Normal Android
does not have the hcitool CLI tool, but it is possible to compile from
Android source.)

Perhaps analyzing the logcat reveals something, it would be my first try.

Using SPP in Antidote is possible by writing a transcoding plug-in. The SPP
channel would be manager in Java level and data needs to be somehow "bridged"
to C plug-in, similar to how HDP is handled in Android.

Prashant Kumar

unread,
Mar 4, 2013, 2:46:05 AM3/4/13
to antido...@googlegroups.com


Thanks elvis
I have gone through logcat .I have disabled ssp in mobile and checked but still iam getiing only 1 reading.
Tell me one thing....Did you use Nonin with a mobile running ICS .
How you used the antidote stack and manager application.
Can you elaborate steps .
how many readings you got.

Elvis Pfutzenreuter

unread,
Mar 4, 2013, 7:39:21 AM3/4/13
to antido...@googlegroups.com
Note that Nonin pulse ox uses the standard configuration 0x191, which
accordingly to 10404 document implements spot-check (Supplemental-
Types with MDC_MODALITY_SPOT), which is exactly this: one good
measurement. A pulse ox with standard config = 0x190 would be
expected to send measurements continuously.

Prashant Kumar

unread,
Mar 5, 2013, 4:04:20 AM3/5/13
to antido...@googlegroups.com


Is there any other companys' oximeter which uses 0x190...
Did you use any other health device like BP monitor ,Weighing scale,Glucometer ?.How many readings you got .
Where can you find that 10404 document ,in which it was written as only spot check is possible.


How you used the antidote stack and manager application.
Can you elaborate steps if possible

Prashant Kumar

unread,
Mar 6, 2013, 4:07:04 AM3/6/13
to antido...@googlegroups.com
We are registering oximeter configuration 0x190 and 0x191 in the antidote.So my doubt is can we change anything in the antidote such that multiple readings come from Nonin.

Elvis Pfutzenreuter

unread,
Mar 6, 2013, 8:54:06 AM3/6/13
to antido...@googlegroups.com
No, these are the standard configs that manager should implement,
but the agent uses the configuration it wants; the manager may
reject a configuration upon association but cannot say to the
manager "use that one".

On Mar 6, 2013, at 6:07 AM, Prashant Kumar wrote:

> We are registering oximeter configuration 0x190 and 0x191 in the antidote.So my doubt is can we change anything in the antidote such that multiple readings come from Nonin.
>

achary...@gmail.com

unread,
Mar 10, 2013, 12:14:27 PM3/10/13
to antido...@googlegroups.com

Hello,
I am using antidote and able compile n run in linux (ubuntu 12.04) as well as in android .
Can any body help me to compile antidote in windows .net framework.
Thanks

Prashant Kumar

unread,
Mar 21, 2013, 6:21:52 AM3/21/13
to antido...@googlegroups.com
Hii,
         I flashed the Health Service and Health Service test Activity in my android ICS 4.04 mobile, kernel version 3.0.8.
  I compiled antidote in ubuntu 12.04 machine.
I paired the mobile with ubuntu machine.
When i ran the agent , data came on the measurement screen once but from next time iam not able to get the data .I found in the D-feet that Helath API is not there in the Bluez.
I tried repairing,restarting,power off the mobile,machine and all.
It is like once in 50 times the Health API is coming
Is there any way to make that Health API up always?
Should we change any ICS version or Bluez version or kernel ?
Is there any proper procedure to follow ?

Prashant Kumar

unread,
Apr 9, 2013, 5:32:34 AM4/9/13
to antido...@googlegroups.com
hii Elvis,
            I told that iam getting one reading from Nonin 9560 oximeter.But now iam not getting that one reading also.

I downloaded Health service and Health service test activity again and created new shared library but still iam not getting any data.

I tried with ubuntu 12.04, 11.04 (natty) systems and samsung ICS phones(kernel 3.0.8)  but iam getting data from AND BP machie and Weighing scale when i disable the SSP mode in the phone and system.

So Is my Oximeter having problem but it is communicating with My fitness companion and working fine there.
Can u help.
 Logcat is showing the following:

W/HST     ( 4993): Activity created
W/HST     ( 4993): Service connection established
W/HST     ( 4993): Configuring...
W/HSS     ( 4948): ConfigurePassive
W/HSS     ( 4948): Configured agent com.signove.health.service.test.HealthAgentAPI$Stub$Proxy@40d22610
I/ActivityManager(  193): Displayed com.signove.health.servicetest/.HealthServiceTestActivity: +238ms
D/OpenGLRenderer(  363): Flushing caches (mode 1)
D/OpenGLRenderer(  363): Flushing caches (mode 0)
W/InputManagerService(  193): Starting input on non-focused client com.android.internal.view.IInputMethodClient$Stub$Proxy@40f498a8 (uid=10005 pid=363)
D/AudioHardware(  137): AudioHardware pcm playback is going to standby.
V/AudioHardware(  137): closeMixer_l() mMixerOpenCnt: 1
D/AudioHardware(  137): closePcmOut_l() mPcmOpenCnt: 1
D/AlarmManagerService(  193): Kernel timezone updated to -330 minutes west of GMT
D/SystemClock(  347): Setting time of day to sec=1365428706
V/AlarmClock( 5253): AlarmInitReceiver finished
D/ConnectivityService(  193): ConnectivityChange for mobile: CONNECTED/CONNECTED
W/NetworkStats(  193): dropping UID delta from unknown iface: iface=pdp0 uid=0 set=DEFAULT tag=0x0 rxBytes=0 rxPackets=0 txBytes=58 txPackets=1 operations=0
D/Tethering(  193): MasterInitialState.processMessage what=3
D/CMStats (  382): Prompting user for opt-in.
Reply all
Reply to author
Forward
0 new messages