need an sample HDP source app

458 views
Skip to first unread message

Praveen Kumar 2011

unread,
Feb 23, 2012, 5:02:37 AM2/23/12
to Antidote: free IEEE 11073 library stack
Is there a pulse oximeter emulator source code available free
supporting BT HDP ?

Elvis Pfutzenreuter

unread,
Feb 23, 2012, 7:41:56 AM2/23/12
to antido...@googlegroups.com
The sample_bt_agent in Antidote could be an option. It does
exactly that.

Praveen Kumar 2011

unread,
Feb 24, 2012, 1:26:03 AM2/24/12
to Antidote: free IEEE 11073 library stack
Hi Elvis

I turned on BT on ICS and to check weather HDP is working or not on
ICS I need to have a 'source simulator' which can transfer data to
already installed sink application.
Is there any other method by which i can check HDP
or can i get any .apk or source code of any simulator

Elvis Pfutzenreuter

unread,
Feb 24, 2012, 2:16:45 PM2/24/12
to antido...@googlegroups.com
The sample_bt_agent is for standard Linux. Something alike can
be done for Android, but there is no ready-to-use sample.
Message has been deleted
Message has been deleted
Message has been deleted

Praveen Kumar 2011

unread,
Feb 29, 2012, 5:15:29 AM2/29/12
to antido...@googlegroups.com

Hi
I downloaded IEEE_11073Stack in which i got openhealth,  signove_antidote_hdpsample
when i open signove_antidote_hdpsample in eclipse some error in healthservice.java is comming regarding HealthAgentAPI  and HealthServiceAPI how can i avoid it
and what does openhealth folder contain !!

Prashant Kumar

unread,
Apr 1, 2013, 5:58:34 AM4/1/13
to antido...@googlegroups.com
I paired the android ICS mobile with ubuntu machine.
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 in the phone  ?
Is there any command to make HDP up and working in ICS mobile ?

Elvis Pfutzenreuter

unread,
Apr 1, 2013, 2:03:48 PM4/1/13
to antido...@googlegroups.com
If Ubuntu machine is a simulated Agent and the phone is the Manager,
you need some HDP application running on the phone, because BlueZ caches
the information of which services are supplied by a given
device, and it won't expose the Health API for a device if it thinks that
it does not support HDP.

Normally it is not necessary to have the Agent running at the pairing
moment, because even though BlueZ in phone caches the same information,
the Agent takes the initiative of connection, and BlueZ HDP does not reject
the connection just because it was 'unexpected'. It is only a problem when
the Manager should take the connection initiative, but it is seldom the
case.
> --
> 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,
Apr 2, 2013, 1:36:25 PM4/2/13
to antido...@googlegroups.com
thanks for the reply
 
but whenever i get that HEALTH API in bluez in dfeet then only the manager phone can receive the data from the ubuntu laptop.
Whenever the health API is not the manager cannot receive the data.
 
It is only once in 10 times health API wll appear..so it is a luck basis..Is there anyway to get that health API everytime??
can you elaborate ?
 
 

Elvis Pfutzenreuter

unread,
Apr 2, 2013, 3:33:54 PM4/2/13
to antido...@googlegroups.com
This is quite strange, the problem I used to have is solved by having the
HDP services running at pairing time. If things are right in pairing, Health
API is always available for the device. if not, Health API is never there
unless you manage to force a rediscovery.

Try this script at Ubuntu site to force a rediscover on the device you want
the Health API to work with. Make sure some HDP service is active in the
device. This will update the services cache even if they were not active
at pairing time.

rediscover.py

Prashant Kumar

unread,
Apr 4, 2013, 9:51:06 AM4/4/13
to antido...@googlegroups.com
Thanks elvis for the reply,
 
how to have the HDP services running at pairing time ?Can you elaborate please?
That python script i have to run in the phone's shell is it?
Iam a new bee to python.Can you elaborate the steps please ??


Elvis Pfutzenreuter

unread,
Apr 4, 2013, 9:52:26 AM4/4/13
to antido...@googlegroups.com
At cell phone, you should have some app running that uses the
Android HDP API. I am not aware of applications in Python that
do that for Android.

Prashant Kumar

unread,
Apr 9, 2013, 5:36:32 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