USB Keyboard


+ Reply to Thread
Results 1 to 20 of 20

Thread: USB Keyboard

Hybrid View

  1. #1
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    3,233

    Default USB Keyboard

    This feels like deep water to me. I 'd like to develop a small keyboard that will send to the PC specific characters when buttons are pressed.

    In short it will be a stripped keyboard with much less keys (F1-F12, number 1-8 and another 8 capital letters).

    Can PBP support such a function? Found for mouse but not a working keyboard emulation.

    Prefer to use 4550 or 45K50 chips.

    Thanks,
    Ioannis

  2. #2
    Join Date
    Apr 2014
    Location
    Northeast
    Posts
    486

    Default Re: USB Keyboard

    I do believe there is a sub-category in the HID USB category specific to keyboards. Each key has its own command code. If you enumerate as a keyboard, it is just using what has already been developed.

  3. #3
    Join Date
    Nov 2005
    Location
    Bombay, India
    Posts
    904

    Default Re: USB Keyboard

    The easy part is to first verify the mouse code emulates correctly when connected to the PC. This ensures the skeleton is a working one.

    The not so easy thing to do is to get the Descriptor tables for the keyboard matched to what is expected by the PC. Once you have that, it's just a matter of reading/writing to the USB system every mS or so.

    Suggest you look for the 'Descriptor Tool' DT.EXE which will help you build the descriptor table. However, you will need to adjust the tables for PBP

    Good luck

  4. #4
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,413

    Default Re: USB Keyboard

    I have some code (based on something found on the forum I'm sure) that does USB keyboard emulation.
    Letters and numbers I know works but I don't think I implemented F1-F12 etc. I'll dig it out and post it if you're interested.

  5. #5

    Default Re: USB Keyboard


  6. #6
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    3,233

    Default Re: USB Keyboard

    Oh, you naughty aerostar! I guess alzheimer is knocking my door...

    Too much info on this USB mess... Lost the links I kept in case I needed them back.

    Thanks people for the info.

    Henrik, if you find your test code, please do post it. Will save me some time I am sure.

    Ioannis

Similar Threads

  1. PIC18F14K50 USB Keyboard firmware
    By ScumariTec in forum USB
    Replies: 0
    Last Post: - 27th January 2021, 10:29
  2. USB keyboard emulator
    By Toley00 in forum USB
    Replies: 12
    Last Post: - 23rd January 2012, 00:57
  3. One USB keyboard to Two USB Ports
    By picnaut in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 11th June 2009, 00:04
  4. Replies: 17
    Last Post: - 13th June 2008, 21:33
  5. Replies: 3
    Last Post: - 10th April 2008, 10:02

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts