HID USB Multimedia Keypad


Closed Thread
Results 1 to 32 of 32

Hybrid View

  1. #1
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898

    Default Re: HID USB Multimedia Keypad

    I would say yes, but how to... hell I don't know.

    What I would suggest, is to develop a pure HID device, from there you develop a Driver. This driver (or standalone application) will take care of sending the keystrokes and perform other tasks.

    MIDI devices use 2 Generic Classes, MIDI Device and Audio Composite, but it is still considered as a single device...
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  2. #2
    Join Date
    Feb 2011
    Posts
    14

    Default Re: HID USB Multimedia Keypad

    Sounds good but I need this to be universal meaning must work with Mac and Linux as well as PC. Standalone app with custom driver would not work in this case.

  3. #3
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924

    Default Re: HID USB Multimedia Keypad

    Standalone app with custom driver would not work in this case.
    Depends on what you write it in...
    Dave
    Always wear safety glasses while programming.

  4. #4
    Join Date
    Feb 2011
    Posts
    14

    Default Re: HID USB Multimedia Keypad

    Would it be difficult to do the USB Service with an interrupt routine instead of in the main loop?

  5. #5
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924

    Default Re: HID USB Multimedia Keypad

    ISR is the way to go. Here is a project using DT's Instants.
    http://www.picbasic.co.uk/forum/cont...USB-SD-LOGGING
    Darrel gave us another USB service routine also, but it seems to work best as a stand alone ISR. That is why I like using the Instant approach.
    But you can take a look at the other here.
    http://www.picbasic.co.uk/forum/show...8306#post78306
    Dave
    Always wear safety glasses while programming.

  6. #6
    Join Date
    Feb 2011
    Posts
    14

    Default Re: HID USB Multimedia Keypad

    Thanks again for the help.

    I put the code you sugested in but I keep getting an error saying Syntax Error for

    UIE = $7F 'ENABLE USB INTERRUPTS

    I am using Picbasic Pro 2.47

  7. #7
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924

    Default Re: HID USB Multimedia Keypad

    Can you give a little more info.. Are you trying the instant solution or the other?
    Go ahead and post your code and config setup.
    Dave
    Always wear safety glasses while programming.

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