Questions about sample_bt_agent

99 views
Skip to first unread message

Ivan Tumanov

unread,
Mar 24, 2015, 9:20:50 AM3/24/15
to antido...@googlegroups.com
1. By default its simulate a pulse-oximeter, right? but what is the default values its sending and where I can modify them? (I`m recieved 187 and 7 values and not sure is it correct. received time stamps is correct)
2. How can I change agent from pulse-oximeter to another device?
Thank you in advance.

Lucas Batalha

unread,
Mar 24, 2015, 10:15:30 AM3/24/15
to antido...@googlegroups.com
1. I think you can only do it by editing source-code (sample_bt_agent.c in apps/ directory).

2. You can make it by different parameters:
Usage: sample_bt_agent [type] <bdaddr>
'type' is oxi, glu, bpm, weg, Default: oxi


Lucas Batalha

unread,
Mar 24, 2015, 10:19:49 AM3/24/15
to antido...@googlegroups.com
By the way, I didn't understang sample_bt_agent so well... I'll be glad if you can help me...
How do you use it? It connects to what? To your manager application? It runs on the same machine/device? What MAC address do you use to start sample_bt_agent? It runs forever? Thanks.

Ivan Tumanov

unread,
Mar 24, 2015, 10:39:00 AM3/24/15
to antido...@googlegroups.com
1. I know that I need edit source code, but what exactly?
2. I`ve Antidote version 2.0.0 and its doesn`t support [type] parameter(know from source code).

вторник, 24 марта 2015 г., 16:15:30 UTC+2 пользователь Lucas Batalha написал:

Ivan Tumanov

unread,
Mar 24, 2015, 10:41:54 AM3/24/15
to antido...@googlegroups.com
In my case its connects to Android phone with manager app. 
MAC of Manager device.  

вторник, 24 марта 2015 г., 16:19:49 UTC+2 пользователь Lucas Batalha написал:

Ivan Tumanov

unread,
Mar 24, 2015, 11:55:03 AM3/24/15
to antido...@googlegroups.com
I`m downloaded latest version from git and run it with various device parameters, for BPM its works perfect, but for oximeter values still strange. 
Someone, pls tell me, where in source code I can modify measured values for sample_bt_agent??

Lucas Batalha

unread,
Mar 24, 2015, 1:40:15 PM3/24/15
to antido...@googlegroups.com
Sorry for delay...
I think I found out how to modify these data in sample_agent_common.c file, look for it within the same directory as your sample_bt_agent.c.

Lucas Batalha

unread,
Mar 24, 2015, 1:44:11 PM3/24/15
to antido...@googlegroups.com
Thank you. But let me see if I understood, please...
You have an Android device running any Manager App and a computer running sample_bt_agent, and they're communicating by Bluetooth. Right?

Ivan Tumanov

unread,
Mar 26, 2015, 9:54:00 AM3/26/15
to antido...@googlegroups.com
right, thanks

вторник, 24 марта 2015 г., 19:40:15 UTC+2 пользователь Lucas Batalha написал:

Ivan Tumanov

unread,
Mar 26, 2015, 9:54:25 AM3/26/15
to antido...@googlegroups.com
right

вторник, 24 марта 2015 г., 19:44:11 UTC+2 пользователь Lucas Batalha написал:

Lucas Batalha

unread,
Sep 29, 2015, 3:28:39 PM9/29/15
to Antidote: open-source IEEE 11073 stack

Hi, Ivan, you said you had made sample_bt_agent send simulated data to Android Manager App. This app is the HealthServiceTest?
So, have you ever passed through this issue? See...

I'm trying to connect sample_bt_agent to HealthServiceTest App through Bluetooth USB Adapter
When I try "sample_bt_agent  F4:F1:E1:C7:A4:17" (the smartphone's mac address), I get:

IEEE 11073 sample agent
DEBUG   <agent_init in agent.c:133> Agent Initialization
DEBUG   <agent_start in agent.c:369> Agent starting...
DEBUG   <init in plugin_bluez.c:1287> Starting BlueZ link...
DEBUG   <connect_adapter in plugin_bluez.c:876> connecting adapter: /org/bluez/15070/hci0
DEBUG   <connect_adapter in plugin_bluez.c:916> Getting known devices list
DEBUG   <connect_device_signals in plugin_bluez.c:782> device to be connected: /org/bluez/15070/hci0/dev_F4_F1_E1_C7_A4_17
DEBUG   <get_device_addr in plugin_bluez.c:303>     Device address is F4:F1:E1:C7:A4:17
DEBUG   <create_health_application in plugin_bluez.c:1101> Created health application: /org/bluez/health_app_7
*** Device rediscovered
Main loop started
DEBUG   <plugin_bluez_connect_cb in plugin_bluez.c:1535> connection initiation error: Method "CreateChannel" with signature "os" on interface "org.bluez.HealthDevice" doesn't exist



I've tried repairing devices, changing BT dongle, changed values of "spec [ ]" (as they say in some forums answers) and same thing... Can you help me?

Ivan Tumanov

unread,
Sep 30, 2015, 8:53:23 AM9/30/15
to Antidote: open-source IEEE 11073 stack
it wasn`t HealthServiceTest. You need discover device after registering health service on it. Read here https://groups.google.com/forum/#!topic/antidote-lib/8nHMFm5SwVc

вторник, 29 сентября 2015 г., 22:28:39 UTC+3 пользователь Lucas Batalha написал:
Reply all
Reply to author
Forward
0 new messages