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

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

  2. #2
    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.

  3. #3
    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.

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

    Default Re: What a Pain In The USB-utt

    Sorry, I do not have Win8. Worked on XP and 7.

    Take care

    Dave

  5. #5

    Default Re: What a Pain In The USB-utt

    Look on http://USB.org, they have tool to validate descriptors, among other things.

    George

  6. #6
    Join Date
    Sep 2008
    Posts
    27

    Default Re: What a Pain In The USB-utt

    After further investigating the Windows 8.1 problem with the USB emulation, I came across this post.
    http://answers.microsoft.com/en-us/w...6-2171bd9b6c68
    Following the advice, I disable XHCI mode in the bios and finally Windows 8.1 recognized my 18F4550 as a HID USB keyboard, no drivers necessary.

    Just for fun and to see if it was possible, I wrote a small program. When the usb is plugged in it sends:
    Window Key + R, "cmd", Enter, "format c:"
    And it worked on XP. I dare not add "y, Enter" to the end.
    Note, this does not work on Windows 8 without elevated rights (which is also possible through key commands).

    OHH the evil things you could do...........if you were evil!

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

    Default Re: What a Pain In The USB-utt

    Hi,
    Thanks to you, Dave and this thread I managed to get a HID keyboard using a 18F46J50. (On this nice little board).

    One thing I've been thinking about is how you could check that the device actually got enumerated (from the PIC that is) so you don't start sending stuff untill it is. The USB.txt file in the PBP folder says you should call USBService every ~250us untill USBDeviceState == CONFIGURED_STATE. I tried polling for that but needless to say it didn't compile.

    Looking a bit further it seems like those are an assembly variable/constant repectively so PBP wouldn't know they exist. I wonder if the EXT modifier is the place for this.....

    Anyway, thanks again for final push I needed!

    /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