cancel
Showing results for 
Search instead for 
Did you mean: 

Enter DFU button on DFUse not enabled and list not updated with hid device

sivakumar431
Associate II
Posted on August 18, 2009 at 02:21

Enter DFU button on DFUse not enabled and list not updated with hid device

#dfu
6 REPLIES 6
sivakumar431
Associate II
Posted on May 17, 2011 at 13:20

Hi STOne-32,

I am stuck with this for a long time , please help on this....

I am New to this and need some info on Dfuse(i am using 3.0.0)

I am trying to run the joystick demo application, in order to switch from this HID mode to DFU mode i have added the following code in my report descriptor.But still it didn't work

0xa1, 0x00, // Collection(Physical)

0x06, 0x00, 0xFF, // Vendor defined usage page - 0xFF00

0x85, 0x80, // REPORT_ID (128)

0x09, 0x55, // USAGE (HID Detach)

0x15, 0x00, // LOGICAL_MINIMUM (0)

0x26, 0xFF, 0x00, // LOGICAL_MAXIMUM (255)

0x75, 0x08, // REPORT_SIZE (8 bits)

0x95, 0x01, // REPORT_COUNT (1)

0xB1, 0x82, // FEATURE (Data,Var,Abs,Vol)

0xC0, // END_COLLECTION (Vendor defined)

With this i am able see the HID joystick functionality but not able to see this in the devices list of the Dfuse utility on the Host PC and even the ''Enter DFU Mode/HID Detach'' button is not enabled.

In one of the mail thread i have seen changing the VID PID to that of Device Firmware Demo code i.e VID_0483 and PID_DF11, i tried this then i am able to see the device in the list but still the button is not enabled.

i have attached the report descriptor which i am using ...

Please look in to this

Thanks in Advance

Siva

sivakumar431
Associate II
Posted on May 17, 2011 at 13:20

Hi ,

Can somebody please look in to this and reply...as it is urgent

Thanks in Advance

Siva

sivakumar431
Associate II
Posted on May 17, 2011 at 13:20

Hi ,

Any body got a chance to look in to?

Thanks in Advance

Siva

16-32micros
Associate III
Posted on May 17, 2011 at 13:20

Hi Siva,

After checking your case, I found that the problem is coming from The standard native windows Driver for mouse which is used exclusively for the Desktop Windows and do not allow other applications to read or write to them like our DFU application.

Here is the FAQ from Microsoft :

http://msdn.microsoft.com/en-us/library/ms789884.aspx

Note : Vendor drivers are not required for USB keyboard, mouse, or joystick devices. The system opens keyboard and mouse devices for its exclusive use.

USB joysticks are shared devices. User-mode system components directly access joysticks by opening their PDOs and using the HID support routines.

User-mode vendor applications can also operate game port collections in the same manner.

To make the HID DFU Detach command the Usage Page should be changed from Mouse or Keyboard to any another Usage Page as described in the ''HID Usage Tables'' document from www.usb.org

For that I would recommend to have for example a any other Usage Page except Mouse and keyboard, For example 0x04 for Joystick.

Once done, the DFuSe application will see and enumerate the device, However in this case the mouse will be no more functional.

Cheers,

STOne-32.

sivakumar431
Associate II
Posted on May 17, 2011 at 13:20

Thank u very much STOne-32, it helped a lot

Lakshmi Lavanya
Associate II
Posted on December 20, 2016 at 08:13

Hi, can you please explain me how to get the 'Enter DFU mode' command.

Can you share any example code which explaining the HID with DFU functionality.