Re: Valgrind issue on sdp

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Arthur,

On Wed, Jan 7, 2015 at 12:39 PM, Arthur Lambert
<lambertarthur22@xxxxxxxxx> wrote:
> Hi,
>
> I am currently trying to implement a bluetooth server on linux to
> communicate with an android mobile device. I am using rfcomm socket.
>
> To be able to work with android I need to register a service using the
> sdp feature (Android cannot use rc channel dirrectly or only in a
> dirty way, need dynamic uuid though sdp).
>
> I am currently able to communicate correctly between my linux and my
> android. I was checking my code with valgrind and I get some memory
> leak in sdp library. I have done some search about this subject but I
> was not able to find a right answer.
>
> Current implementation of my sdp (which come from :
> http://people.csail.mit.edu/albert/bluez-intro/x604.html#bzi-sdp-register)

There is a much easier way to do that using bluetoothd and
org.bluez.ProfileManager you can register a SPP record and receive the
socket file descriptor via org.bluez.Profile (see
https://git.kernel.org/cgit/bluetooth/bluez.git/tree/doc/profile-api.txt),
there is also a test script in python if you want to look at some
example: https://git.kernel.org/cgit/bluetooth/bluez.git/tree/test/test-profile

-- 
Luiz Augusto von Dentz
--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux