BLE to HID 0x1812 Device (Keyboard)
Posted: Mon May 06, 2019 7:01 am
I have worked through all samples I could find, trying to get the ESP32 (as a client) to successfully exchange data with a BLE device that emulates a HID keyboard (0x1812 service).
Using the examples for the non-BLESecurity Client on the ESP32, I can connect and read data from all other services (0x1800,0x1801,0x180A,0x180F,etc.). I can specify the 0x1812 (HID) service but cannot read any of the characteristics (always NULL). The device shows a successful BLE connection, but when it attempts to send data, it displays an error indicating lost connection (although the ESP32 is still connected to it). It appears as if the device knows that the ESP32 has NOT connected to the 0x1812 service or is not acknowledging in some way.
The device connects quickly to all other systems (WIndows, Android, Linux, etc.) WITHOUT any sort of pairing requirements (passkeys, etc.). It then simply transmits data as if it is a keyboard.
My guess is that there is still something missing related to pairing, etc., but my attempts to use the examples for BLEClient with BLESecurity just hangs forever after " - Created client".
Using the examples for the non-BLESecurity Client on the ESP32, I can connect and read data from all other services (0x1800,0x1801,0x180A,0x180F,etc.). I can specify the 0x1812 (HID) service but cannot read any of the characteristics (always NULL). The device shows a successful BLE connection, but when it attempts to send data, it displays an error indicating lost connection (although the ESP32 is still connected to it). It appears as if the device knows that the ESP32 has NOT connected to the 0x1812 service or is not acknowledging in some way.
The device connects quickly to all other systems (WIndows, Android, Linux, etc.) WITHOUT any sort of pairing requirements (passkeys, etc.). It then simply transmits data as if it is a keyboard.
My guess is that there is still something missing related to pairing, etc., but my attempts to use the examples for BLEClient with BLESecurity just hangs forever after " - Created client".