This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

HID descriptor for 12-keys keyboard

Hi..

I have try to lookup in devzone q&a, but seems not yet found the similar question or answer. Have try SR3 SDK and able to implement keyboard+consumer control for remote control product. But currently , i need to add remote control keypad 0-9 ,*,# feature as keyboard input (such the old methods for typing sms using phone keypad). * Key will function language select and # as backspace/delete. 

For example : keypad_1 will available as input key for "1","A","B","C" and so on..keypad_* will switch charset for selected language.

My question : 

1.can i implement hid descriptor as keyboard  and manage key press event for sending each respective keycode?

2. Is there any other method or hid usage specially for keyboard that can implement to make this process simpler. As i know, android os capable to handle numeric keyboard type. 

Ohh almost forget, our plan is this device will work with android through BLE..

Thank you and appreciate for any help.

Kangbudz

Parents
  • 1. I guess you could always use a timer to check how many times a button is pressed before sending the actual letter the combination is equal to.

    2. If this is supported by the phones you are targeting (Android) you could probably do that. But looking a the HUT I could not find a usage page for that. Maybe the telephony device, but unfortunately, I have no experience with this device.

  • thank you run for your reply.

    as your suggestion in no #1, i have also think in similar way to implement. But in no #2 of your idea, because our target is android o/s device , i know android already support for numeric type keyboard input instead of full type keyboard.

    the informaion below is from android web about key char map file :

    The following keyboard types are recognized:

    • NUMERIC: A numeric (12-key) keyboard.

      A numeric keyboard supports text entry using a multi-tap approach. It may be necessary to tap a key multiple times to generate the desired letter or symbol.

      This type of keyboard is generally designed for thumb typing.

      Corresponds to KeyCharacterMap.NUMERIC.

      android keychar map

    but for describing this type of keyboard in HID descriptor, i'm not too clear how to implement it.

    thanks,

Reply
  • thank you run for your reply.

    as your suggestion in no #1, i have also think in similar way to implement. But in no #2 of your idea, because our target is android o/s device , i know android already support for numeric type keyboard input instead of full type keyboard.

    the informaion below is from android web about key char map file :

    The following keyboard types are recognized:

    • NUMERIC: A numeric (12-key) keyboard.

      A numeric keyboard supports text entry using a multi-tap approach. It may be necessary to tap a key multiple times to generate the desired letter or symbol.

      This type of keyboard is generally designed for thumb typing.

      Corresponds to KeyCharacterMap.NUMERIC.

      android keychar map

    but for describing this type of keyboard in HID descriptor, i'm not too clear how to implement it.

    thanks,

Children
Related