* Compiling BlueZ Thermometer Example @ 2011-10-27 7:45 Alişan YILMAZ 2011-10-27 9:30 ` Santiago Carot 0 siblings, 1 reply; 4+ messages in thread From: Alişan YILMAZ @ 2011-10-27 7:45 UTC (permalink / raw) To: linux-bluetooth Hello everybody, I am trying to compile thermometer example in BlueZ, but getting some errors. Firstly, I configured and installed the bluez as explained in readme file. I used some configuration parameters like --enable-health --enable-thermometer. It gave me .o files for thermometer example, but no executable file. When I tried to link these .o files myself, I got these errors: /usr/lib/i386-linux-gnu/gcc/i686-linux-gnu/4.5.2/../../../crt1.o: In function `_start': (.text+0x18): undefined reference to `main' manager.o: In function `thermometer_manager_init': manager.c:(.text+0x7c): undefined reference to `btd_register_device_driver' manager.c:(.text+0x8b): undefined reference to `dbus_connection_ref' manager.o: In function `thermometer_manager_exit': manager.c:(.text+0xbc): undefined reference to `btd_unregister_device_driver' manager.c:(.text+0xca): undefined reference to `dbus_connection_unref' collect2: ld returned 1 exit status Could you please help me to compile and run the thermometer example? Best regards, Alisan -- Alişan YILMAZ Software Engineer Software Research, Development and Consultation (SRDC) Ltd. ODTU Teknokent Silikon Blok Kat:1 No:14 Middle East Technical University Campus 06531 Ankara TURKEY Email: alisan@srdc.com.tr Phone: +90 (312) 210 1763 Fax: +90 (312) 210 1837 ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Compiling BlueZ Thermometer Example 2011-10-27 7:45 Compiling BlueZ Thermometer Example Alişan YILMAZ @ 2011-10-27 9:30 ` Santiago Carot 2011-10-27 11:27 ` Alişan YILMAZ 0 siblings, 1 reply; 4+ messages in thread From: Santiago Carot @ 2011-10-27 9:30 UTC (permalink / raw) To: Alişan YILMAZ; +Cc: linux-bluetooth Hello Alişan, 2011/10/27 Alişan YILMAZ <alisan@srdc.com.tr>: > Hello everybody, > I am trying to compile thermometer example in BlueZ, but getting some > errors. Firstly, I configured and installed the bluez as explained in readme > file. I used some configuration parameters like --enable-health > --enable-thermometer. It gave me .o files for thermometer example, but no > executable file. > When I tried to link these .o files myself, I got these errors: > > /usr/lib/i386-linux-gnu/gcc/i686-linux-gnu/4.5.2/../../../crt1.o: In > function `_start': > (.text+0x18): undefined reference to `main' > manager.o: In function `thermometer_manager_init': > manager.c:(.text+0x7c): undefined reference to `btd_register_device_driver' > manager.c:(.text+0x8b): undefined reference to `dbus_connection_ref' > manager.o: In function `thermometer_manager_exit': > manager.c:(.text+0xbc): undefined reference to > `btd_unregister_device_driver' > manager.c:(.text+0xca): undefined reference to `dbus_connection_unref' > collect2: ld returned 1 exit status > I'm not sure what are you trying to do. Health and thermometer are built in plugin, that means that the bluetooth daemon will load it at starting time and it will load/unload the proper drivers to manage such devices. By the way, health plugin it's only required if you want to enable Health Device Profile (HTP) and Multichannel Adaptation Protocol (MCAP). They are helpfull if you want to develop applications over 11073-20601 specification. You don't need enable this if you are only interested in thermometer capabilities. Anyway, HTP plugin is still under development, I've a lot of patches to upload yet so there is not much to do with it. If you are interested I could set my current git repository wich implements most of the thermeter functionality to any public site so that you can test it and help me in development by reporting errors, etc. Any feedback from your side will be very appreciated. Regards. Santi. ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Compiling BlueZ Thermometer Example 2011-10-27 9:30 ` Santiago Carot @ 2011-10-27 11:27 ` Alişan YILMAZ 2011-10-27 16:01 ` Santiago Carot 0 siblings, 1 reply; 4+ messages in thread From: Alişan YILMAZ @ 2011-10-27 11:27 UTC (permalink / raw) To: Santiago Carot; +Cc: linux-bluetooth Hello Santi, Thanks for your quick response. Actually, we want to develope a health device application that gets measurements from a Continua-Certified blood pressure device using HDP. I thought, it could be very helpful to look at that thermometer example, am I wrong? Also, if you share patches with us, we want to help you by testing and developing the measurement plugins. By the way, after executing bluetoothd, there were not any thermometer HDP service in the running bluetooth services list. Does the problem occur due to the codes or wrong installation? Best Regards Alisan 27.10.2011 12:30, Santiago Carot wrote: > Hello Alişan, > > 2011/10/27 Alişan YILMAZ<alisan@srdc.com.tr>: >> Hello everybody, >> I am trying to compile thermometer example in BlueZ, but getting some >> errors. Firstly, I configured and installed the bluez as explained in readme >> file. I used some configuration parameters like --enable-health >> --enable-thermometer. It gave me .o files for thermometer example, but no >> executable file. >> When I tried to link these .o files myself, I got these errors: >> >> /usr/lib/i386-linux-gnu/gcc/i686-linux-gnu/4.5.2/../../../crt1.o: In >> function `_start': >> (.text+0x18): undefined reference to `main' >> manager.o: In function `thermometer_manager_init': >> manager.c:(.text+0x7c): undefined reference to `btd_register_device_driver' >> manager.c:(.text+0x8b): undefined reference to `dbus_connection_ref' >> manager.o: In function `thermometer_manager_exit': >> manager.c:(.text+0xbc): undefined reference to >> `btd_unregister_device_driver' >> manager.c:(.text+0xca): undefined reference to `dbus_connection_unref' >> collect2: ld returned 1 exit status >> > I'm not sure what are you trying to do. Health and thermometer are > built in plugin, that means that the bluetooth daemon will load it at > starting time and it will load/unload the proper drivers to manage > such devices. > > By the way, health plugin it's only required if you want to enable > Health Device Profile (HTP) and Multichannel Adaptation Protocol > (MCAP). They are helpfull if you want to develop applications over > 11073-20601 specification. You don't need enable this if you are only > interested in thermometer capabilities. > > Anyway, HTP plugin is still under development, I've a lot of patches > to upload yet so there is not much to do with it. If you are > interested I could set my current git repository wich implements most > of the thermeter functionality to any public site so that you can test > it and help me in development by reporting errors, etc. Any feedback > from your side will be very appreciated. > > Regards. > Santi. > > -- Alişan YILMAZ Software Engineer Software Research, Development and Consultation (SRDC) Ltd. ODTU Teknokent Silikon Blok Kat:1 No:14 Middle East Technical University Campus 06531 Ankara TURKEY Email: alisan@srdc.com.tr Phone: +90 (312) 210 1763 Fax: +90 (312) 210 1837 ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Compiling BlueZ Thermometer Example 2011-10-27 11:27 ` Alişan YILMAZ @ 2011-10-27 16:01 ` Santiago Carot 0 siblings, 0 replies; 4+ messages in thread From: Santiago Carot @ 2011-10-27 16:01 UTC (permalink / raw) To: Alişan YILMAZ; +Cc: linux-bluetooth Hello Alisan, 2011/10/27 Alişan YILMAZ <alisan@srdc.com.tr>: > Hello Santi, > Thanks for your quick response. Actually, we want to develope a health > device application that gets measurements from a Continua-Certified blood > pressure device using HDP. > I thought, it could be very helpful to look at that thermometer example, am > I wrong? > That code is just a plugin to manage thermometers. Health Thermometer Profiles is placed on top of GATT so you will need neither HDP nor MCAP. Onn the contrary, if your device is only using HDP this plugin is unusefull for you. > Also, if you share patches with us, we want to help you by testing and > developing the measurement plugins. > Of course, I don't have any problem to share my repo. I'll move it to a public repo in next days if you are still interested. > By the way, after executing bluetoothd, there were not any thermometer HDP > service in the running bluetooth services list. Does the problem occur due > to the codes or wrong installation? > I insist again, HTP profile is not related with HDP :-) When you pair your HDP device, the bluetooth daemon will load a proper driver to manage that device using the HDP D-Bus interface, you can see more info about HDP interface under doc folder. This interface enables you to create/destroy health channels and send 11073-20601 APDUs. Regards. ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2011-10-27 16:01 UTC | newest] Thread overview: 4+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2011-10-27 7:45 Compiling BlueZ Thermometer Example Alişan YILMAZ 2011-10-27 9:30 ` Santiago Carot 2011-10-27 11:27 ` Alişan YILMAZ 2011-10-27 16:01 ` Santiago Carot
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.