HID USB Multimedia Keypad


Closed Thread
Results 1 to 32 of 32

Hybrid View

  1. #1
    Join Date
    Sep 2015
    Posts
    4

    Default Re: HID USB Multimedia Keypad

    yes i did... i compiled the whole original project and tested it in a 18f2550 and didn't work...

    after testing many different configs and even not too logical things i found the problem...

    i managed to use a different report descriptor and the rest from the circle in a mouse descriptor example.
    now the pc recognizes the device but when i put in the buffer anything it sends many keys at the same time, that's because i had the endopint buffer size set to 1 byte so it only sends the first byte of data and discard the rest...

    #define USB_POLLING
    #define HID_INTF_ID 0x00
    #define HID_EP 1
    #define HID_INT_OUT_EP_SIZE 3 ; 1
    #define HID_INT_IN_EP_SIZE 3 ; 1
    #define HID_NUM_OF_DSC 1

    now that i have changed the HID_INT_IN_EP_SIZE from 1 to 3 it let me to put on the buffer a variable array and send for example

    variable[0]=%00000000
    variable[1]=%00000001

    the usb raw data will llok like this

    00 01

    thanks for your help!!!

  2. #2
    Join Date
    Feb 2013
    Posts
    1,158

    Default Re: HID USB Multimedia Keypad

    So will this work in PBP3?
    I want to have such a keypad, and ashamed to have to use Arduino Pro Micro

  3. #3
    Join Date
    Apr 2014
    Location
    OK
    Posts
    557

    Default Re: HID USB Multimedia Keypad

    Give it a try and report your results. I use HIDMaker for USB stuff. The last time I had to create a USB project (this time using XC8), nothing compiled. I got numerous errors. I tried generating the code for PBP, XC8, even ASM... Dr. Bob worked with me, and it appears the newer MPLABX versions generated curious errors. I had to use an older MPLABX v1.45 to get it working (MPLABX is currently at version 5.45). You may find issues that require you to link PBP to an older version of MPLABX.
    Last edited by mpgmike; - 18th April 2021 at 17:01. Reason: Added clarification

  4. #4
    Join Date
    Feb 2013
    Posts
    1,158

    Default Re: HID USB Multimedia Keypad

    Thanks, will try all this this weekend....

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

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