Hi,
Slightly off top post since I’m using windows drivers already written and signed.
I have a USB composite device, CDC+HID working. I have seperate INF files for HID and CDC, both working.
The CDC needs the INF once before I can use it which is good because I’m forced to load my INF.
Issues:
- The HID automatically enumerates using sections in microsoft’s “msmouse.inf” as HID compatible device. I’d rather have this come up with unknown device forcing them to use my INF which then names it in device manager. From my INF it uses their work and driver as in:
Include=msmouse.inf
Needs=HID_Mouse_Inst.NT
- I’d like 1 INF file for the entire composite device (ideally). However as I’m forced to specify “Class” and “Classguid” in the version section, how can I install the two different devices which are under different classes in one INF?
i.e. CDC is:
Class=Ports
ClassGuid={4D36E978-E325-11CE-BFC1-08002BE10318}
HID is:
Class=Mouse
ClassGUID={4D36E96F-E325-11CE-BFC1-08002BE10318}
I figured I should be able to do this since they are on a composite device. Just little to no reference material around that I can find.
I have included them in 1 INF, I tried moving the class and classguid into the actual device installer sections for the OS but no good. I also tried changing the class and guid to USB
Class=USB
ClassGuid={36FC9E60-C465-11CF-8056-444553540000}
But then they get put under the wrong tab in control panel and they don’t install correctly, i.e. I have to select the HID device and update, select INF for that device.
I guess what I’m trying to get is 1 INF, see either device needing driver install, select my single INF and it updates both so they both look ok, not using mcrosofts default HID.
I’ve changed the HID reports, trying vendor defined usage page, and usage in order to try and stop the mouse being installed without my INF - no luck.
i.e. firmware report 1 as
USAGE_PAGE (Not defined) 05 FF00
USAGE (Undefined) 09 00
rather than:
USAGE_PAGE (Generic Desktop) 05 01
USAGE (Mouse) 09 02
Any suggestions or advice much appreciated - accept if it aint broke dont fix it
dc