Hi Arthur, On Wed, May 11, 2016 at 3:51 PM, Arthur LAMBERT <lambertarthur22@xxxxxxxxx> wrote: > Hi, > > I am working with bluez 5.39. I have a custom gatt server which used c api from > btgatt-server from bluez source. Eveything is working great exept when I reset > hci device. I need to disable bluetooth for few hours for specific use case. > > If I run hci down/up and try again to connect to gatt server, the client is able > to connect but services are not available. Moreover my server does not see the > client connexion. > > Do I need to make a specific stuff to be able to make it work this use case ? 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. 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. -- 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