Re: gatt server and reset of hci device

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

 



Le Thursday 12 May 2016 à 11:39:44 (+0300), Luiz Augusto von Dentz a écrit :

> Is that something preventing you to use bluetoothd and just create a
> plugin or use the GATT API for your server? Manually using hciconfig
> is not recommended since it may interfere with other users, for manual
> testing it is actually recommended to use btmgmt or bluetoothd +
> bluetoothctl.

I need to have the ble server in my stand alone binary. That's why I am not using
bluetoothd plugin. About GATT API, you are probably talking about dbus api to
create custom service instead of using private c API. I am not very familiar
with dbus, I was not able to find a working example of dbus example with bluez5.
I have some delay issue to release my code, that's why I am using c api to gain
some precious time.

> Also note that having btgatt-server along side with
> bluetoothctl. Also note that having btgatt-server along side with
> bluetoothd will not work because both listen on the same channel and
> the kernel can only redirect the packets to one process.

I know that bluetoothd cannot run with my custom gatt server. Problem is that
I am not able to set hci friendly name with hciconfig without bluetoothd. So
I have a very dirty way to do it : run bluetoothd few seconds, kill it and then
run my code. Thanks to that I am able to update the hci friendly name (I guess
that some init which are missing in my code are running in bluetoothd)

So your advise is to use btmgmt instead of hciconfig to play with hci device ?

Thanks,
Arthur.
--
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