Hi all,
i am looking for HID host, i need HID in LE, i was implementing hid_hos_demo but as it turns out it on classic. i am using ESP32 hardware with btstack
The device i am pairing is having following spec:
Bluetooth庐4.0 2.4GHz, HID virtual keyboard, nRF8001 渭Blue Bluetooth Low Energy Platform.
i can see HID over GATT (HOG) as per comment in topic keyboard and mouse demo are up in example, but i cant see HOST DEMO.
would like yo know what need to be done for HOST application, is there ready to use example/sample code.
Thanks
Sushant
Hi @Sushantnaik21
to implement HID host you need to register for notification for one specific characteristic. The problem is you will have few characteristics with the same UUID. Each characteristic will differ by descriptor value. This is descriptor and values you need to test (you are looking for input value):
https://www.bluetooth.com/specifications/gatt/viewer?attributeXmlFile=org.bluetooth.descriptor.report_reference.xml
Now you have to understand the value that will be send in this characteristic. You will get 8 bytes each time:
hi @chegewara , thanks for reply,
sorry for late reply.
how different is hid host from HOG host? actually i need flow or algo to follow something, this is actually new thing for me.
any suggestion will be helpful
HID is acronym used for USB devices, HOG is equivalent used for BLE devices which means HID over GATT.
Standard USB HID is wide topic and its good to read and understand it before you even start to think about writing host driver. I can try to explain you flow but you need to very good undertand bluetooth LE mechanism, how to connect, services, characteristics and descriptors dicovering and handling GAP and GATT events.
Yes you are right, there is no easy way for this, i was trying to get easy solution even from another driver to copy it, but thats not way.
i did understand that HID is protocol that needed to be implemented over GATT server/client or sdp server/client in case of EDR and i need to implement client. this will be good topic to explore
Thanks for you time and words
No problem, ive spent a lot time to read and understand HID and HOG to write BLE HOG peripheral library. If you have question feel free to ask and good luck.
@sandeepmistry we will add HID device demo in IDF v3.1,but HID host demo is not yet in the plan
@Weijian-Espressif @FayeY Can a HID host demo be put on the plan please?
@WayneKeenan, Sorry, HID host demo is not yet in the plan.
Hi, I really required HID host in my esp32 chipset.
Is there any update in HID host demo.
@Weijian-Espressif Do you have any update on HID host demo
Hi. Check out the hog_boot_host_demo on btstack's develop branch:
https://github.com/bluekitchen/btstack/blob/develop/example/hog_boot_host_demo.c
Most helpful comment
@Weijian-Espressif Do you have any update on HID host demo