Recent

Author Topic: BlueTooth - BlueZ API  (Read 14059 times)

Regina

  • Newbie
  • Posts: 4
BlueTooth - BlueZ API
« on: October 15, 2010, 10:50:34 am »
Hello, my name is Regina, I'm in Brazil and my English is translated by Google Translate. I hope the translation is almost perfect.


I am looking for a routine in Pascal/Lazarus to access the library of Linux called BlueZ. I need to find a way to detect computer BlueTooth phones nearby, grab it and know the MAC signal level of approximation (near, far or out of area). An example would be the program in Python (BlueProximity), it detects, makes approachability and many other features that I have no interest. If anyone knows anything let me get the information. I thank you because I tried hard and found nothing.



typo

  • Hero Member
  • *****
  • Posts: 3051
Re: BlueTooth - BlueZ API
« Reply #1 on: October 15, 2010, 10:54:07 am »
Well, maybe you need to write a wrapper to this library, but you need the documentation for it.

I have found this page on the wiki ( http://wiki.lazarus.freepascal.org/Bluetooth ) about the subject. Maybe you can contribute to the project.
« Last Edit: October 15, 2010, 11:05:44 am by typo »

Regina

  • Newbie
  • Posts: 4
Re: BlueTooth - BlueZ API
« Reply #2 on: October 15, 2010, 11:29:49 am »
I had seen this wiki and have talked with the author. it does what I need, nor is it that we put in the bluetooth usb, is a remote control equipment, not for me, nor can you use for what I want. If anyone knows I'm waiting for more information.

Thanks

Leledumbo

  • Hero Member
  • *****
  • Posts: 8836
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: BlueTooth - BlueZ API
« Reply #3 on: October 16, 2010, 04:09:04 am »
The library surely have C interface, it could be translated to Pascal easily (if it's written cleanly). You can then look for C example and translate it as well.

Regina

  • Newbie
  • Posts: 4
Re: BlueTooth - BlueZ API
« Reply #4 on: October 16, 2010, 09:45:42 am »
I did it! A Nokia employee helped me.
However, I have to handle Python within my project in Lazarus.
I'm doing a Google search to see if I can find the union of two, has to Delphi, but only with Lazarus promise ...

------------------------------------

Lazarus 0.9.29 rUnknown FPC 2.5.1 i386-linux-gtk 2 (beta)


« Last Edit: October 16, 2010, 01:14:13 pm by Regina »

Regina

  • Newbie
  • Posts: 4
Re: BlueTooth - BlueZ API
« Reply #5 on: October 16, 2010, 01:14:24 pm »
Does anyone know how to open a library in the System Linux (library developed in C)?

typo

  • Hero Member
  • *****
  • Posts: 3051
Re: BlueTooth - BlueZ API
« Reply #6 on: October 16, 2010, 03:20:09 pm »
LibraryHandle := LoadLibrary(PChar(LibraryName));

 

TinyPortal © 2005-2018