What a Pain In The USB-utt


Closed Thread
Results 1 to 20 of 20

Hybrid View

  1. #1
    Join Date
    Sep 2008
    Posts
    27

    Default Re: What a Pain In The USB-utt

    Ioannis,
    I have downloaded the code and examined it. The problem is every descriptor file is different. Even ones that state they are for HID USB Keyboards are different. Finding one the compiles without errors and works as a keyboard is the problem. The benefit of emulating a true HID USB Keyboard is there is no need for special drivers on the PC side, or the Linux side for that matter.

    George,
    I will definitely post a solution when I find it. More than one person on this forum has expressed their aggravation with trying to get this to work.
    http://www.picbasic.co.uk/forum/showthread.php?t=19333
    Last edited by Cobra_Phil; - 18th January 2015 at 02:49.

  2. #2
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,132

    Default Re: What a Pain In The USB-utt

    I had tested the code as is (mister-e's code I mean) and worked first time with no problem.

    Maybe your troubles are in the PC side? Can you test on another PC?

    Ioannis

  3. #3
    Join Date
    Sep 2008
    Posts
    27

    Default Re: What a Pain In The USB-utt

    Ioannis,
    I am specifically looking for PBP code that emulates a USB Keyboard. Unless I am missing it, I don't see that example in the link you posted. The link you posted has a descriptor file in it, but it is for a vendor defined device.

    ReportDescriptor1
    ; vendor defined usage page
    retlw 0x06
    retlw 0x00
    retlw 0xFF

    retlw 0x09
    retlw 0x00 ; vendor defined usage

    A HID USB Keyboard will have 0x06 as the keyboard defined device. You would be able to plug this into anything that accepted a USB keyboard and it should work.
    retlw 0x09
    retlw 0x06 ;keyboard useage

  4. #4
    Join Date
    Mar 2008
    Location
    Gerogetown, Texas
    Posts
    94

    Default Re: What a Pain In The USB-utt


  5. #5
    Join Date
    Sep 2008
    Posts
    27

    Default Re: What a Pain In The USB-utt

    DaveC3,
    Works like a charm. Thank you very much.

  6. #6
    Join Date
    Sep 2008
    Posts
    27

    Default Re: What a Pain In The USB-utt

    Spoke a bit too soon. Works great in WinXP. Windows 8 is more stringent on USB devices and the current descriptor does not work. But it should be very close.

  7. #7
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,612

    Default Re: What a Pain In The USB-utt

    Hi,
    This is something I've had on the backburner for years but, like many others, I've tried USB before and never been able to get it to work (apparently not been motivated enough) so I've been delaying it.
    Thanks Phil for starting this thread and thanks Dave for posting the code - much appreciated!
    If you get it working on W8, please us know what changes is needed.

    Thanks again!
    /Henrik.

Similar Threads

  1. USB to USB flash Drive File Copier
    By surya089 in forum USB
    Replies: 2
    Last Post: - 16th December 2012, 01:22
  2. USB to USB flash Drive File Copier
    By emildownloads in forum General
    Replies: 222
    Last Post: - 27th October 2011, 01:23
  3. Start with USB and USB comands
    By SKOLS1 in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 12th August 2011, 12:41
  4. usb to usb direct data transfer
    By sharath in forum USB
    Replies: 0
    Last Post: - 17th July 2011, 13:23
  5. USB PIC without USB Connection
    By Tissy in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 26th December 2005, 17:39

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