Today 12:26
Forum: Website / Forum Issues
Starter: rcurl
Views: 0
Replies: 11
+ Reply to Thread
Page 1 of 2 12 LastLast
Results 1 to 10 of 14

Thread: USB descriptor2879 days old

  1. #1
    Prolific Poster bill9399's Avatar
    Join Date
    Aug 2004
    Posts
    1,698
    Thumbs Up
    Received: 8
    Given: 0
    Total Downloaded
    969.44 MB

    0 Not allowed!

    Default USB descriptor

    For those working with USB, and seek to know how to work with USB HID descriptors, you could do worse than check out this web site.

    http://helmpcb.com/?p=93

    The site gives a full description of how to write/modify source for USB HID descriptor files, with links to other software, such as DT.EXE, which is/are extremely useful for working with HID descriptor files.

    As an added bonus, there is a more-or-less complete project given for converting old-style analog joysticks to USB joysticks, using a pic(r) 18F2550. Full pic development code is given for the project, but, unfortunately the source code is for MikroC, not basic. The downloadable archived project file for same also contains a compiled HEX file for direct loading to a pic. Schematics are included. as well as a veroboard layout for DIY.
    Last edited by bill9399; 2nd January 2011 at 18:37.
    [B][SIZE=1]A wise man may listen and say nothing. A fool may listen and have nothing to say. Which one are you???[/SIZE][/B]

  2. #2
    W4GNS
    Guest W4GNS's Avatar

    0 Not allowed!

    Default Re: USB descriptor

    Thanks for the link, Bill

  3. #3
    Prolific Poster bill9399's Avatar
    Join Date
    Aug 2004
    Posts
    1,698
    Thumbs Up
    Received: 8
    Given: 0
    Total Downloaded
    969.44 MB

    0 Not allowed!

    Default Re: USB descriptor

    You're welcome Gary.

    For the more technically minded, there is a more in-depth description of USB HID descriptor requirements here,

    http://www.usb.org/developers/hidpage#HID_Usage

    There is a wealth of information regarding USB usage on this site.


    For those looking for information on joystick descriptor, including force feedback, have a look here in the following section, link located about half way down the page.
    Usage Tables for Physical Interface Devices ( Amongst a plethora of other things, this includes joysticks)
    There you will find a breakdown of the individual requirements for a PID HID descriptor file construction.

    Direct link to complete USB HID descriptor for this joystick is shown below. Descriptor can be found in this document. (Requires cut-and-paste) Look about half way down the document.
    http://www.usb.org/developers/devclass_docs/pid1_01.pdf


    Regards
    Last edited by bill9399; 2nd January 2011 at 22:30.
    [B][SIZE=1]A wise man may listen and say nothing. A fool may listen and have nothing to say. Which one are you???[/SIZE][/B]

  4. #4
    Kapitan
    Guest Kapitan's Avatar

    0 Not allowed!

    Default Re: USB descriptor

    Quote Originally Posted by bill9399 View Post
    For those working with USB, and seek to know how to work with USB HID descriptors, you could do worse than check out this web site.

    http://helmpcb.com/?p=93

    The site gives a full description of how to write/modify source for USB HID descriptor files, with links to other software, such as DT.EXE, which is/are extremely useful for working with HID descriptor files.

    As an added bonus, there is a more-or-less complete project given for converting old-style analog joysticks to USB joysticks, using a pic(r) 18F2550. Full pic development code is given for the project, but, unfortunately the source code is for MikroC, not basic. The downloadable archived project file for same also contains a compiled HEX file for direct loading to a pic. Schematics are included. as well as a veroboard layout for DIY.
    Thanks Bill,
    I had already linked to that page, but prior to the new sub forums, so great to have it linked here too.
    That's how I hope these new forums will work, giving a central place for great links and ideas etc.

    This is also a very useful link for HID http://www.usb.org/developers/devclass_docs/Hut1_12.pdf

  5. #5
    Kapitan
    Guest Kapitan's Avatar

    0 Not allowed!

    Default Re: USB descriptor

    http://frank.circleofcurrent.com/cac...tutorial_1.htm

    this is also a great info site.

    Unfortunately, there is no 'complete' guide., but the info is out there, albeit in parts...
    One needs to mod the standard MOUSDESC.INI to start with, then add the report descriptor, Modding the mousdesc is covered in the main usb forums here. the use of the DT tool is superb. save the generated report as text, then edit it for compliance with PDS, (Convert all values generated to RETLW - ) note, this is only the report part, the main hid descriptor remains the same apart from removing the boot - mouse - parts, setting your END POINTS and sizes, vendor ID, etc etc. to work with PDS in HID, the mousdesc is the way to go... after changing the items above to suit your needs.
    The examples on Helm , and the link above, are direct ports from the Hut1_12 pdf, with mods, and certainly a great place to start.
    Les has done a super job already on a standard HID descriptor for mouse, it only needs changing in a few parts to allow ANY HID device to work with the appropriate report. and this is the only way to really go with PDS, and no reason why not to.
    SOME hid devices will be recognised by the system, in fact, ALL that comply will be 'recognised', however, only a few will have standard features, like mouse, keyboard, gamepad etc, allowing no drivers at all. others will need the appropriate links to your app via the API, even though they are recognised.



    Again, thanks for putting the info here.

  6. #6
    Prolific Poster bill9399's Avatar
    Join Date
    Aug 2004
    Posts
    1,698
    Thumbs Up
    Received: 8
    Given: 0
    Total Downloaded
    969.44 MB

    0 Not allowed!

    Default Re: USB descriptor

    Site listed below provides tools and information on creating or modifying INI files for various OS platforms, including Windows/Linux .

    http://www.codeproject.com/KB/files/SimpleIni.aspx

    A cross-platform library that provides a simple API to read and write INI-style configuration files. It supports data files in ASCII, MBCS and Unicode. It is designed explicitly to be portable to any platform and has been tested on Windows and Linux. It has been released as open-source and free using the MIT licence.
    A working knowlege of how to search the WWW, using Google, or other search engine of choice, with appropriate keywords, opens the door to a great deal of similar information. Probably the greatest problem with same is deciding what, among the mass of information available, is relevant to your personal requirements.
    Last edited by bill9399; 4th January 2011 at 12:16.
    [B][SIZE=1]A wise man may listen and say nothing. A fool may listen and have nothing to say. Which one are you???[/SIZE][/B]

  7. #7
    Kapitan
    Guest Kapitan's Avatar

    0 Not allowed!

    Default Re: USB descriptor

    Hello Bill, that looks very interesting.
    A question though if I may ?
    I am unsure though, how this fits in with the USB et al ? .
    Is it not the case that if one wanted an 'ini' for a device config, then the 'ini' would need to be created along the format described in the DDK etc ? .
    I dont know, as this is not an area I have explored in depth.
    It 'seems' to be an API for actually reading / writing 'ini' files. for use in an app that you have created.
    How would that actually assist, in, say, writing an 'ini' for a device driver, or for any aspect of USB , unless one has written the device driver oneself ? - which is a daunting task to say the least.

    Joe

  8. #8
    Prolific Poster bill9399's Avatar
    Join Date
    Aug 2004
    Posts
    1,698
    Thumbs Up
    Received: 8
    Given: 0
    Total Downloaded
    969.44 MB

    0 Not allowed!

    Default Re: USB descriptor

    Quote Originally Posted by captainslarty View Post
    Hello Bill, that looks very interesting.
    A question though if I may ?
    I am unsure though, how this fits in with the USB et al ? .
    Is it not the case that if one wanted an 'ini' for a device config, then the 'ini' would need to be created along the format described in the DDK etc ? .
    I dont know, as this is not an area I have explored in depth.
    It 'seems' to be an API for actually reading / writing 'ini' files. for use in an app that you have created.
    How would that actually assist, in, say, writing an 'ini' for a device driver, or for any aspect of USB , unless one has written the device driver oneself ? - which is a daunting task to say the least.

    Joe
    I only introduced this since your own previous post in this thread made mention of some devices requiring an INI file for installation, and since this may also be a requirement for some 'non-standard' USB devices.
    Do Proton programs not qualify as applications?
    Probably best that you download and test the software yourself. It may or may not meet with your personal requirements. Case of Suck-and-See.

    On another note, a good source of information for USB (amongst other things) with problems and solutions from users there, is from the Microchip(tm) forum.

    http://www.microchip.com/forums/Default.aspx?

    A lot of the sections on that forum mirror a number of the new sections here. Bear in mind that that forum is dedicated to Microchip(tm) in general, while this forum is intended to be specific to Proton+ and PDS, so expect a fair amount of 'C' or assembler code amongst any answers there.
    Last edited by bill9399; 4th January 2011 at 13:51.
    [B][SIZE=1]A wise man may listen and say nothing. A fool may listen and have nothing to say. Which one are you???[/SIZE][/B]

  9. #9
    Kapitan
    Guest Kapitan's Avatar

    0 Not allowed!

    Default Re: USB descriptor

    Thanks Bill,
    I have dl'd it, and it looks great, but not for INI file for devices unless one writes there own, but, that was a brief scan. Will look more into it later,
    When I suggested these new forums for perhipherals it was exactly what you describe that I had in mind. ie - specific to PDS etc.
    It's all good stuff !. we can all learn loads from other forums, it is often in converting code from one format to another that people struggle with.
    Lets hope it all helps PDS users in general,

    Thanks again
    Joe.

    edit, sorry missed this...
    Do Proton programs not qualify as applications?
    yes, they certainly can, but I think the link refers to HOST based apps, - an app on the host that would communicate with the PIC in a specific way, but good point. !
    Last edited by Kapitan; 4th January 2011 at 13:57.

  10. #10
    Prolific Poster bill9399's Avatar
    Join Date
    Aug 2004
    Posts
    1,698
    Thumbs Up
    Received: 8
    Given: 0
    Total Downloaded
    969.44 MB

    0 Not allowed!

    Default Re: USB descriptor

    Microsoft Tool for viewing decriptor files of USB devices attached to a PC, Windows version

    ftp://ftp.efo.ru/pub/ftdichip/Utilities/UVCView.x86.exe

    Can also be downloaded from Microsoft website as a freebie.

    More information here

    http://msdn.microsoft.com/en-us/libr...=vs.85%29.aspx
    Last edited by bill9399; 5th January 2011 at 13:10.
    [B][SIZE=1]A wise man may listen and say nothing. A fool may listen and have nothing to say. Which one are you???[/SIZE][/B]

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Similar Threads

  1. USB Descriptor errors
    By Dave-S in forum USB Module
    Replies: 10
    Last Post: 16th March 2013, 18:14
  2. usb.org's HID Descriptor Tool to PROTON
    By jncortes in forum Proton Plus Compiler v3
    Replies: 1
    Last Post: 31st August 2009, 10:30
  3. USB HID Keyboard Descriptor.
    By tripp in forum Proton Plus Compiler v3
    Replies: 1
    Last Post: 28th January 2009, 15:03

Members who have read this thread since 18th November 2018, 07:27 : 0

Actions :  (Set Date)  (Clear Date)

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

Tags for this Thread

Posting Permissions

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