Re: Help with LE Create Connection

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

 



Hi Fulko,

> I'm doing my first Bluetooth app, and I have a specific question and a
> general question:
> 
> 1/ Where can I find documentation on the BlueZ API?
>   I've searched and haven't found anything yet.
> 
> 2/ I've captured a trace of an existing conversation off of my Android phone,
>   and I'm trying to re-create it via my own app using BlueZ.
>   I've gotten to the point of trying to do an LE Create Connection
> via hci_le_create_conn()
>   and my first stumbling block is the value of the 'peer address type'.
>   From my investigation, I need to use the 'public' address type
> which according to
>   the spec, and Wireshark is a value of 0x00, but bluetooth.h defines
> 'public' as 0x01
>   (as per the following extract).  Can anyone explain it to me?
> 
>   #define BDADDR_BREDR           0x00
>   #define BDADDR_LE_PUBLIC       0x01
>   #define BDADDR_LE_RANDOM       0x02

why not use the bluetoothd D-Bus GATT APIs for your application. It will create all needed connections. Manually doing HCI is the wrong approach since that is owned by the kernel.

Regards

Marcel

--
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