This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

is there a bug about android 4.4.2 and project HIDEmuKbd?

Other Parts Discussed in Thread: CC2540

Hi

i discovered a strange phenomenon.the slave(using HIDEmuKbd project, BLE stack 1.4.0,cc2540 chip) continued sent out data(from PC via UART) by over the air to master(Tablet PC ,android 4.4.2 OS) in vaild range(around 10m) is OK.the text app in Tablet PC can show the recived data. when Tablet PC go beyong vaild range, the connection is drop,the Tablet PC  back to vaild range,the connection is reestablished.but the text app in Tablet PC can't show the recived data.i found that Tablet PC (android 4.4.2 OS)did't resume the HID keyboard,it still use the System default keyboard so that the text app in Tablet PC can't show the recived data. is there a bug about android 4.4.2 and project HIDEmuKbd?

i guess that when Tablet PC go beyong vaild resulting in connection was drop,Tablet PC switch to System default keyboard.then,the Tablet PC  back to vaild range,the connection is reestablished,Tablet PC should resume the HID keyboard.but in fact,it dind't. at this time,if i turn off bluetooth, then turn on bluetooth again.the Tablet PC will resume the HID keyboard. but it does't what i want. i want to the Tablet PC will resume the HID keyboard when it back to vaild range without other operation. what should i do to solve it?

i suggest that TI do a test about that.especially,the behave of Tablet PC(android 4.4.2 OS)go beyong vaild range and back to vaild range.

PS:

1.i modified HIDEmuKbd project to sent out character data,like "abcdefg.....".not sent out control data(RIGHT ARROW,LEFT ARROW).

2.Tablet PC(Win8.1 OS) is work well in the same situation.though will lost packet. Win8.1 OS allow to HID keyboard and System comes with the keyboard parallel work without switching operation.while android 4.4.2 OS only allow one keyboard be in active status.

  • Hello,

    Have you tried using BLE 1.4.1? There were improvements made that may help your use case.

    Best wishes
  • Hi JXS

    Thanks a lot. i will try that.are there some document describe upgrade comparing with the HIDEmuKbd project in BLE 1.4.0?one more things i want to ask for you,is there a solution let  HID keyboard and System comes with the keyboard in the android 4.4.2 OS parallel work without switching operation. like Win8.1 OS.thanks in advance.