none
Two Keypads connected to the target RRS feed

  • Question

  • Hi,

    We have a L138 based HW board.

    We are providing option to connect two keyboards.

    The first one is standard keyboard through USB Host Port (OHCI).

    Second one is through a I2C based (4 X 3 Matrix) keypad controller.

    Now, my requirement is that applications shall be able to detect the key being presses on the 4 X 3 matrix keypad.

    Here I have two options for posting keypad events to applications

    1. Implement the keypad driver as per GWES framework and use API supported by the GWES to detect the the key press.

    2. Implement the keypad driver as stream interface driver and post them in messages to the applications.

    Consider a case where USB Keyboard is connected and 4 X 3 matrix keypad is also connected.

    When we use standard GWES API for getting the keys then I guess we receive key detections from Matrix Keyboard and USB Keyboard right?

    Is there any API's which support to read from a specified keypads only ?

    Regards,

    GSR

    Friday, May 13, 2011 12:05 PM

Answers

  • Typically applications don't care where the input came from, but of course on an embedded device that can be different.  So the all keys that go through GWES just appear as keys, nothing special.

    If you need to identify the matrix then you will need to develop your own methods for sending the keypad data.


    Bruce Eitman (eMVP)
    Senior Engineer
    Bruce.Eitman AT Eurotech DOT com
    My BLOG http://geekswithblogs.net/bruceeitman

    Eurotech Inc.
    www.Eurotech.com
    • Marked as answer by GSRid Wednesday, May 18, 2011 12:07 PM
    Friday, May 13, 2011 12:31 PM
    Moderator

All replies

  • Typically applications don't care where the input came from, but of course on an embedded device that can be different.  So the all keys that go through GWES just appear as keys, nothing special.

    If you need to identify the matrix then you will need to develop your own methods for sending the keypad data.


    Bruce Eitman (eMVP)
    Senior Engineer
    Bruce.Eitman AT Eurotech DOT com
    My BLOG http://geekswithblogs.net/bruceeitman

    Eurotech Inc.
    www.Eurotech.com
    • Marked as answer by GSRid Wednesday, May 18, 2011 12:07 PM
    Friday, May 13, 2011 12:31 PM
    Moderator
  • Hi Bruce Eitman,

    Thank You for the reply.

    Regards,

    GSR

    Wednesday, May 18, 2011 12:06 PM