Hi Ujjal, >> what you want is to use the HCI User Channel if you need direct access to the HCI layer of a controller. Look at tools/3dsp.c and tools/ibeacon.c for examples on how to use it. In src/shared/hci.c you find the internal details of the HCI User Channel. It is a lot cleaner way of using a controller's HCI interface exclusively. > > So, can you please help me to write an app? Is it possible to compile > an app without using the bluez? I mean without placing and compiling > the app inside bluez source code. > If I want to create an app then what library should I have to include > to compile successfully. Please suggest a way to build my own app to > use user channel. look at src/shared/hci.c and the bt_hci_new_user_channel(). That shows you on how to open the HCI User Channel. If you have it, you can send H:4 framed HCI commands, events, ACL and SCO data. It is one packet per read() / write() and thus pretty simple straight forward. You can easily do this outside of bluez.git. The advantage of src/shared/hci.c is that it gives you the basic HCI command + event handling. However you do not have to use it. 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