Teensyduino USB Joystick no-data driver problem/workaround

just add this line:

Code:
	// add extra zero to work around OS-X CDC-ACM driver bug
       [COLOR=#ff0000] num -= 10000;[/COLOR]
	if (num < 10000000) num = num * 10;
 
Fantastic!

I was able to reproduce the problem by loading my old registry and fix it with your simple solution.

I guess I will just load my in-house serial number in the red value each time I program. Definitely something I can live with.

Thanks guys for all your help.
 
Fantastic!

I was able to reproduce the problem by loading my old registry and fix it with your simple solution.

I guess I will just load my in-house serial number in the red value each time I program. Definitely something I can live with.

Thanks guys for all your help.

What?! Progress? That's awesome! Kudos to Frank B for jumping in and knowing the right stuff!

Annoyingly, it still doesn't identify the root cause though, unfortunately.

@edemers
Would you mind having a look at the USB entries for example with Nirsoft's USBDeview, and see if it lists separate records for each different serial number? That would add some useful insight, at least for me.

Graham
 
Port_#0003.Hub_#0001 USB Input Device HID (Human Interface Device) No Yes No No 000B6F62 05-02-2021 7:10:21 PM 05-02-2021 7:10:20 PM 16c0 0478 1.03 03 00 00 MSI 6&883e5e2&0 HidUsb @input.inf,%HID.SvcDesc%;Microsoft HID Class Driver hidusb.sys (Standard system devices) USB Input Device 10.0.18362.175 HID_Inst.NT input.inf USB\VID_16C0&PID_0478\000B6F62 Removable, UniqueID, SurpriseRemovalOK
Port_#0003.Hub_#0001 USB Input Device HID (Human Interface Device) No Yes No No 000B6F63 05-02-2021 7:10:21 PM 05-02-2021 7:10:20 PM 16c0 0478 1.03 03 00 00 MSI 6&1b3d9687&0 HidUsb @input.inf,%HID.SvcDesc%;Microsoft HID Class Driver hidusb.sys (Standard system devices) USB Input Device 10.0.18362.175 HID_Inst.NT input.inf USB\VID_16C0&PID_0478\000B6F63 Removable, UniqueID, SurpriseRemovalOK
Port_#0005.Hub_#0001 USB Input Device HID (Human Interface Device) No Yes No No 000B8451 05-02-2021 8:15:54 PM 05-02-2021 7:10:20 PM 16c0 0478 1.03 03 00 00 MSI 6&24e9fbc3&0 HidUsb @input.inf,%HID.SvcDesc%;Microsoft HID Class Driver hidusb.sys (Standard system devices) 1.10 USB Input Device 10.0.18362.175 HID_Inst.NT input.inf USB\VID_16C0&PID_0478\000B8451 Removable, UniqueID, SurpriseRemovalOK
Port_#0003.Hub_#0001 USB Input Device HID (Human Interface Device) No Yes No No 000B8453 05-02-2021 7:10:21 PM 05-02-2021 7:10:20 PM 16c0 0478 1.03 03 00 00 MSI 6&ec29306&0 HidUsb @input.inf,%HID.SvcDesc%;Microsoft HID Class Driver hidusb.sys (Standard system devices) USB Input Device 10.0.18362.175 HID_Inst.NT input.inf USB\VID_16C0&PID_0478\000B8453 Removable, UniqueID, SurpriseRemovalOK
Port_#0003.Hub_#0001 USB Input Device HID (Human Interface Device) No Yes No No 000BF065 05-02-2021 7:10:21 PM 05-02-2021 7:10:20 PM 16c0 0478 1.03 03 00 00 MSI 6&32547ae3&0 HidUsb @input.inf,%HID.SvcDesc%;Microsoft HID Class Driver hidusb.sys (Standard system devices) USB Input Device 10.0.18362.175 HID_Inst.NT input.inf USB\VID_16C0&PID_0478\000BF065 Removable, UniqueID, SurpriseRemovalOK
0000.0014.0000.004.000.000.000.000.000 USB Input Device HID (Human Interface Device) No Yes No No 05-02-2021 7:10:21 PM 05-02-2021 7:10:21 PM 16c0 0486 2.76 03 00 00 MSI 7&f1827d6&0 HidUsb @input.inf,%HID.SvcDesc%;Microsoft HID Class Driver hidusb.sys (Standard system devices) USB Input Device 10.0.18362.175 HID_Inst.NT input.inf USB\VID_16C0&PID_0486&MI_00\6&34a96bc&0&0000 SurpriseRemovalOK
0000.0014.0000.005.000.000.000.000.000 USB Input Device HID (Human Interface Device) No Yes No No 05-02-2021 7:10:21 PM 05-02-2021 7:10:21 PM 16c0 0486 2.76 03 00 00 MSI 7&10bcdec7&0 HidUsb @input.inf,%HID.SvcDesc%;Microsoft HID Class Driver hidusb.sys (Standard system devices) USB Input Device 10.0.18362.175 HID_Inst.NT input.inf USB\VID_16C0&PID_0486&MI_00\6&8305b30&0&0000 SurpriseRemovalOK
0000.0014.0000.003.000.000.000.000.000 USB Input Device HID (Human Interface Device) No Yes No No 05-02-2021 7:10:21 PM 05-02-2021 7:10:21 PM 16c0 0486 2.76 03 00 00 MSI 7&dbe2d36&0 HidUsb @input.inf,%HID.SvcDesc%;Microsoft HID Class Driver hidusb.sys (Standard system devices) USB Input Device 10.0.18362.175 HID_Inst.NT input.inf USB\VID_16C0&PID_0486&MI_00\6&c441764&0&0000 SurpriseRemovalOK
0000.0014.0000.004.000.000.000.000.000 USB Input Device HID (Human Interface Device) No Yes No No 05-02-2021 7:10:21 PM 05-02-2021 7:10:21 PM 16c0 0486 2.76 03 00 00 MSI 7&22484414&0 HidUsb @input.inf,%HID.SvcDesc%;Microsoft HID Class Driver hidusb.sys (Standard system devices) USB Input Device 10.0.18362.175 HID_Inst.NT input.inf USB\VID_16C0&PID_0486&MI_01\6&34a96bc&0&0001 SurpriseRemovalOK
0000.0014.0000.005.000.000.000.000.000 USB Input Device HID (Human Interface Device) No Yes No No 05-02-2021 7:10:21 PM 05-02-2021 7:10:21 PM 16c0 0486 2.76 03 00 00 MSI 7&23ecfb05&0 HidUsb @input.inf,%HID.SvcDesc%;Microsoft HID Class Driver hidusb.sys (Standard system devices) USB Input Device 10.0.18362.175 HID_Inst.NT input.inf USB\VID_16C0&PID_0486&MI_01\6&8305b30&0&0001 SurpriseRemovalOK
0000.0014.0000.003.000.000.000.000.000 USB Input Device HID (Human Interface Device) No Yes No No 05-02-2021 7:10:21 PM 05-02-2021 7:10:21 PM 16c0 0486 2.76 03 00 00 MSI 7&20ee4974&0 HidUsb @input.inf,%HID.SvcDesc%;Microsoft HID Class Driver hidusb.sys (Standard system devices) USB Input Device 10.0.18362.175 HID_Inst.NT input.inf USB\VID_16C0&PID_0486&MI_01\6&c441764&0&0001 SurpriseRemovalOK
Port_#0003.Hub_#0001 USB Composite Device Unknown No Yes No No 7494100 05-02-2021 7:10:21 PM 05-02-2021 7:10:20 PM 16c0 0486 2.76 00 00 00 MSI 6&c441764&0 usbccgp @usb.inf,%GenericParent.SvcDesc%;Microsoft USB Generic Parent Driver usbccgp.sys (Standard USB Host Controller) USB Composite Device 10.0.18362.1110 Composite.Dev.NT usb.inf USB\VID_16C0&PID_0486\7494100 Removable, UniqueID, SurpriseRemovalOK
Port_#0004.Hub_#0001 USB Composite Device Unknown No Yes No No 7494110 05-02-2021 7:10:21 PM 05-02-2021 7:10:20 PM 16c0 0486 2.76 00 00 00 MSI 6&34a96bc&0 usbccgp @usb.inf,%GenericParent.SvcDesc%;Microsoft USB Generic Parent Driver usbccgp.sys (Standard USB Host Controller) USB Composite Device 10.0.18362.1110 Composite.Dev.NT usb.inf USB\VID_16C0&PID_0486\7494110 Removable, UniqueID, SurpriseRemovalOK
Port_#0005.Hub_#0001 USB Composite Device Unknown No Yes No No 7547690 05-02-2021 7:10:21 PM 05-02-2021 7:10:20 PM 16c0 0486 2.76 00 00 00 MSI 6&8305b30&0 usbccgp @usb.inf,%GenericParent.SvcDesc%;Microsoft USB Generic Parent Driver usbccgp.sys (Standard USB Host Controller) USB Composite Device 10.0.18362.1110 Composite.Dev.NT usb.inf USB\VID_16C0&PID_0486\7547690 Removable, UniqueID, SurpriseRemovalOK
0000.0014.0000.003.000.000.000.000.000 USB Serial Device Communication No Yes No No COM5 05-02-2021 7:10:21 PM 05-02-2021 7:10:20 PM 16c0 0487 2.76 02 02 01 MSI usbser @usbser.inf,%UsbSerial.DriverDesc%;Microsoft USB Serial Driver usbser.sys Microsoft USB Serial Device (COM5) USB Serial Device 10.0.18362.1 UsbSerial_Install usbser.inf USB\VID_16C0&PID_0487&MI_00\6&19701c96&0&0000 SurpriseRemovalOK
0000.0014.0000.003.000.000.000.000.000 USB Serial Device Communication No Yes No No COM3 05-02-2021 7:12:26 PM 05-02-2021 7:10:20 PM 16c0 0487 2.76 02 02 01 MSI usbser @usbser.inf,%UsbSerial.DriverDesc%;Microsoft USB Serial Driver usbser.sys Microsoft USB Serial Device (COM3) USB Serial Device 10.0.18362.1 UsbSerial_Install usbser.inf USB\VID_16C0&PID_0487&MI_00\6&2ea7b5ce&0&0000 SurpriseRemovalOK
0000.0014.0000.003.000.000.000.000.000 USB Serial Device Communication No Yes No No COM4 05-02-2021 12:13:27 PM 05-02-2021 12:13:27 PM 16c0 0487 2.76 02 02 01 MSI usbser @usbser.inf,%UsbSerial.DriverDesc%;Microsoft USB Serial Driver usbser.sys Microsoft USB Serial Device (COM4) USB Serial Device 10.0.18362.1 UsbSerial_Install usbser.inf USB\VID_16C0&PID_0487&MI_00\6&2ea7b5ce&1&0000 SurpriseRemovalOK
0000.0014.0000.003.000.000.000.000.000 USB Serial Device Communication No Yes No No COM10 05-02-2021 7:10:21 PM 05-02-2021 7:10:20 PM 16c0 0487 2.76 02 02 01 MSI usbser @usbser.inf,%UsbSerial.DriverDesc%;Microsoft USB Serial Driver usbser.sys Microsoft USB Serial Device (COM10) USB Serial Device 10.0.18362.1 UsbSerial_Install usbser.inf USB\VID_16C0&PID_0487&MI_00\6&338d7a42&0&0000 SurpriseRemovalOK
0000.0014.0000.003.000.000.000.000.000 USB Serial Device Communication No Yes No No COM21 05-02-2021 7:10:21 PM 05-02-2021 7:10:20 PM 16c0 0487 2.76 02 02 01 MSI usbser @usbser.inf,%UsbSerial.DriverDesc%;Microsoft USB Serial Driver usbser.sys Microsoft USB Serial Device (COM21) USB Serial Device 10.0.18362.1 UsbSerial_Install usbser.inf USB\VID_16C0&PID_0487&MI_00\6&35d603e3&0&0000 SurpriseRemovalOK
0000.0014.0000.003.000.000.000.000.000 USB Serial Device Communication No Yes No No COM4 05-02-2021 7:42:58 PM 05-02-2021 7:42:49 PM 16c0 0487 2.76 02 02 01 MSI usbser @usbser.inf,%UsbSerial.DriverDesc%;Microsoft USB Serial Driver usbser.sys Microsoft USB Serial Device (COM4) USB Serial Device 10.0.18362.1 UsbSerial_Install usbser.inf USB\VID_16C0&PID_0487&MI_00\6&36853c80&0&0000 SurpriseRemovalOK
0000.0014.0000.005.000.000.000.000.000 USB Serial Device Communication Yes Yes No No COM11 05-02-2021 8:17:10 PM 05-02-2021 7:44:35 PM 16c0 0487 2.76 02 02 01 MSI usbser @usbser.inf,%UsbSerial.DriverDesc%;Microsoft USB Serial Driver usbser.sys Microsoft USB Serial Device (COM11) USB Serial Device 10.0.18362.1 UsbSerial_Install usbser.inf USB\VID_16C0&PID_0487&MI_00\6&3b113cb3&0&0000 SurpriseRemovalOK
0000.0014.0000.003.000.000.000.000.000 USB Serial Device Communication No Yes No No COM9 05-02-2021 7:10:21 PM 05-02-2021 7:10:20 PM 16c0 0487 2.76 02 02 01 MSI usbser @usbser.inf,%UsbSerial.DriverDesc%;Microsoft USB Serial Driver usbser.sys Microsoft USB Serial Device (COM9) USB Serial Device 10.0.18362.1 UsbSerial_Install usbser.inf USB\VID_16C0&PID_0487&MI_00\6&a137989&0&0000 SurpriseRemovalOK
0000.0014.0000.003.000.000.000.000.000 USB Input Device HID (Human Interface Device) No Yes No No 05-02-2021 7:10:21 PM 05-02-2021 7:10:21 PM 16c0 0487 2.76 03 01 01 MSI 7&23e5e1e&0 HidUsb @input.inf,%HID.SvcDesc%;Microsoft HID Class Driver hidusb.sys (Standard system devices) USB Input Device 10.0.18362.175 HID_Inst.NT input.inf USB\VID_16C0&PID_0487&MI_02\6&19701c96&0&0002 SurpriseRemovalOK
0000.0014.0000.003.000.000.000.000.000 USB Input Device HID (Human Interface Device) No Yes No No 05-02-2021 7:12:26 PM 05-02-2021 7:12:26 PM 16c0 0487 2.76 03 01 01 MSI 7&18031e90&0 HidUsb @input.inf,%HID.SvcDesc%;Microsoft HID Class Driver hidusb.sys (Standard system devices) USB Input Device 10.0.18362.175 HID_Inst.NT input.inf USB\VID_16C0&PID_0487&MI_02\6&2ea7b5ce&0&0002 SurpriseRemovalOK
0000.0014.0000.003.000.000.000.000.000 USB Input Device HID (Human Interface Device) No Yes No No 05-02-2021 12:13:26 PM 05-02-2021 12:13:26 PM 16c0 0487 2.76 03 01 01 MSI 7&32075c20&0 HidUsb @input.inf,%HID.SvcDesc%;Microsoft HID Class Driver hidusb.sys (Standard system devices) USB Input Device 10.0.18362.175 HID_Inst.NT input.inf USB\VID_16C0&PID_0487&MI_02\6&2ea7b5ce&1&0002 SurpriseRemovalOK
0000.0014.0000.003.000.000.000.000.000 USB Input Device HID (Human Interface Device) No Yes No No 05-02-2021 7:10:21 PM 05-02-2021 7:10:21 PM 16c0 0487 2.76 03 01 01 MSI 7&1bedf16a&0 HidUsb @input.inf,%HID.SvcDesc%;Microsoft HID Class Driver hidusb.sys (Standard system devices) USB Input Device 10.0.18362.175 HID_Inst.NT input.inf USB\VID_16C0&PID_0487&MI_02\6&338d7a42&0&0002 SurpriseRemovalOK
0000.0014.0000.003.000.000.000.000.000 USB Input Device HID (Human Interface Device) No Yes No No 05-02-2021 7:10:21 PM 05-02-2021 7:10:21 PM 16c0 0487 2.76 03 01 01 MSI 7&3517ca30&0 HidUsb @input.inf,%HID.SvcDesc%;Microsoft HID Class Driver hidusb.sys (Standard system devices) USB Input Device 10.0.18362.175 HID_Inst.NT input.inf USB\VID_16C0&PID_0487&MI_02\6&35d603e3&0&0002 SurpriseRemovalOK
0000.0014.0000.003.000.000.000.000.000 USB Input Device HID (Human Interface Device) No Yes No No 05-02-2021 7:42:58 PM 05-02-2021 7:42:58 PM 16c0 0487 2.76 03 01 01 MSI 7&28b73403&0 HidUsb @input.inf,%HID.SvcDesc%;Microsoft HID Class Driver hidusb.sys (Standard system devices) USB Input Device 10.0.18362.175 HID_Inst.NT input.inf USB\VID_16C0&PID_0487&MI_02\6&36853c80&0&0002 SurpriseRemovalOK
0000.0014.0000.005.000.000.000.000.000 USB Input Device HID (Human Interface Device) Yes Yes No No 05-02-2021 8:17:10 PM 05-02-2021 8:17:10 PM 16c0 0487 2.76 03 01 01 MSI 7&14c0f2f9&0 HidUsb @input.inf,%HID.SvcDesc%;Microsoft HID Class Driver hidusb.sys (Standard system devices) USB Input Device 10.0.18362.175 HID_Inst.NT input.inf USB\VID_16C0&PID_0487&MI_02\6&3b113cb3&0&0002 SurpriseRemovalOK
0000.0014.0000.003.000.000.000.000.000 USB Input Device HID (Human Interface Device) No Yes No No 05-02-2021 7:10:21 PM 05-02-2021 7:10:21 PM 16c0 0487 2.76 03 01 01 MSI 7&24da3fd9&0 HidUsb @input.inf,%HID.SvcDesc%;Microsoft HID Class Driver hidusb.sys (Standard system devices) USB Input Device 10.0.18362.175 HID_Inst.NT input.inf USB\VID_16C0&PID_0487&MI_02\6&a137989&0&0002 SurpriseRemovalOK
0000.0014.0000.003.000.000.000.000.000 USB Input Device HID (Human Interface Device) No Yes No No 05-02-2021 7:10:21 PM 05-02-2021 7:10:21 PM 16c0 0487 2.76 03 00 00 MSI 7&26159be0&0 HidUsb @input.inf,%HID.SvcDesc%;Microsoft HID Class Driver hidusb.sys (Standard system devices) USB Input Device 10.0.18362.175 HID_Inst.NT input.inf USB\VID_16C0&PID_0487&MI_03\6&19701c96&0&0003 SurpriseRemovalOK
0000.0014.0000.003.000.000.000.000.000 USB Input Device HID (Human Interface Device) No Yes No No 05-02-2021 7:12:26 PM 05-02-2021 7:12:26 PM 16c0 0487 2.76 03 00 00 MSI 7&3f924b&0 HidUsb @input.inf,%HID.SvcDesc%;Microsoft HID Class Driver hidusb.sys (Standard system devices) USB Input Device 10.0.18362.175 HID_Inst.NT input.inf USB\VID_16C0&PID_0487&MI_03\6&2ea7b5ce&0&0003 SurpriseRemovalOK
0000.0014.0000.003.000.000.000.000.000 USB Input Device HID (Human Interface Device) No Yes No No 05-02-2021 12:13:26 PM 05-02-2021 12:13:26 PM 16c0 0487 2.76 03 00 00 MSI 7&e301e5e&0 HidUsb @input.inf,%HID.SvcDesc%;Microsoft HID Class Driver hidusb.sys (Standard system devices) USB Input Device 10.0.18362.175 HID_Inst.NT input.inf USB\VID_16C0&PID_0487&MI_03\6&2ea7b5ce&1&0003 SurpriseRemovalOK
0000.0014.0000.003.000.000.000.000.000 USB Input Device HID (Human Interface Device) No Yes No No 05-02-2021 7:10:21 PM 05-02-2021 7:10:21 PM 16c0 0487 2.76 03 00 00 MSI 7&42a6525&0 HidUsb @input.inf,%HID.SvcDesc%;Microsoft HID Class Driver hidusb.sys (Standard system devices) USB Input Device 10.0.18362.175 HID_Inst.NT input.inf USB\VID_16C0&PID_0487&MI_03\6&338d7a42&0&0003 SurpriseRemovalOK
0000.0014.0000.003.000.000.000.000.000 USB Input Device HID (Human Interface Device) No Yes No No 05-02-2021 7:10:21 PM 05-02-2021 7:10:21 PM 16c0 0487 2.76 03 00 00 MSI 7&2fdb6400&0 HidUsb @input.inf,%HID.SvcDesc%;Microsoft HID Class Driver hidusb.sys (Standard system devices) USB Input Device 10.0.18362.175 HID_Inst.NT input.inf USB\VID_16C0&PID_0487&MI_03\6&35d603e3&0&0003 SurpriseRemovalOK
0000.0014.0000.003.000.000.000.000.000 USB Input Device HID (Human Interface Device) No Yes No No 05-02-2021 7:42:58 PM 05-02-2021 7:42:58 PM 16c0 0487 2.76 03 00 00 MSI 7&4dff641&0 HidUsb @input.inf,%HID.SvcDesc%;Microsoft HID Class Driver hidusb.sys (Standard system devices) USB Input Device 10.0.18362.175 HID_Inst.NT input.inf USB\VID_16C0&PID_0487&MI_03\6&36853c80&0&0003 SurpriseRemovalOK
0000.0014.0000.005.000.000.000.000.000 USB Input Device HID (Human Interface Device) Yes Yes No No 05-02-2021 8:17:10 PM 05-02-2021 8:17:10 PM 16c0 0487 2.76 03 00 00 MSI 7&2c847f3e&0 HidUsb @input.inf,%HID.SvcDesc%;Microsoft HID Class Driver hidusb.sys (Standard system devices) USB Input Device 10.0.18362.175 HID_Inst.NT input.inf USB\VID_16C0&PID_0487&MI_03\6&3b113cb3&0&0003 SurpriseRemovalOK
0000.0014.0000.003.000.000.000.000.000 USB Input Device HID (Human Interface Device) No Yes No No 05-02-2021 7:10:21 PM 05-02-2021 7:10:21 PM 16c0 0487 2.76 03 00 00 MSI 7&380a5c17&0 HidUsb @input.inf,%HID.SvcDesc%;Microsoft HID Class Driver hidusb.sys (Standard system devices) USB Input Device 10.0.18362.175 HID_Inst.NT input.inf USB\VID_16C0&PID_0487&MI_03\6&a137989&0&0003 SurpriseRemovalOK
0000.0014.0000.003.000.000.000.000.000 USB Input Device HID (Human Interface Device) No Yes No No 05-02-2021 7:10:21 PM 05-02-2021 7:10:21 PM 16c0 0487 2.76 03 00 00 MSI 7&e520f9b&0 HidUsb @input.inf,%HID.SvcDesc%;Microsoft HID Class Driver hidusb.sys (Standard system devices) USB Input Device 10.0.18362.175 HID_Inst.NT input.inf USB\VID_16C0&PID_0487&MI_04\6&19701c96&0&0004 SurpriseRemovalOK
0000.0014.0000.003.000.000.000.000.000 USB Input Device HID (Human Interface Device) No Yes No No 05-02-2021 7:12:26 PM 05-02-2021 7:12:26 PM 16c0 0487 2.76 03 00 00 MSI 7&2416d00d&0 HidUsb @input.inf,%HID.SvcDesc%;Microsoft HID Class Driver hidusb.sys (Standard system devices) USB Input Device 10.0.18362.175 HID_Inst.NT input.inf USB\VID_16C0&PID_0487&MI_04\6&2ea7b5ce&0&0004 SurpriseRemovalOK
0000.0014.0000.003.000.000.000.000.000 USB Input Device HID (Human Interface Device) No Yes No No 05-02-2021 12:13:26 PM 05-02-2021 12:13:26 PM 16c0 0487 2.76 03 00 00 MSI 7&25f3aaa3&0 HidUsb @input.inf,%HID.SvcDesc%;Microsoft HID Class Driver hidusb.sys (Standard system devices) USB Input Device 10.0.18362.175 HID_Inst.NT input.inf USB\VID_16C0&PID_0487&MI_04\6&2ea7b5ce&1&0004 SurpriseRemovalOK
0000.0014.0000.003.000.000.000.000.000 USB Input Device HID (Human Interface Device) No Yes No No 05-02-2021 7:10:21 PM 05-02-2021 7:10:21 PM 16c0 0487 2.76 03 00 00 MSI 7&2801a2e7&0 HidUsb @input.inf,%HID.SvcDesc%;Microsoft HID Class Driver hidusb.sys (Standard system devices) USB Input Device 10.0.18362.175 HID_Inst.NT input.inf USB\VID_16C0&PID_0487&MI_04\6&338d7a42&0&0004 SurpriseRemovalOK
0000.0014.0000.003.000.000.000.000.000 USB Input Device HID (Human Interface Device) No Yes No No 05-02-2021 7:10:21 PM 05-02-2021 7:10:21 PM 16c0 0487 2.76 03 00 00 MSI 7&c04263e&0 HidUsb @input.inf,%HID.SvcDesc%;Microsoft HID Class Driver hidusb.sys (Standard system devices) USB Input Device 10.0.18362.175 HID_Inst.NT input.inf USB\VID_16C0&PID_0487&MI_04\6&35d603e3&0&0004 SurpriseRemovalOK
0000.0014.0000.003.000.000.000.000.000 USB Input Device HID (Human Interface Device) No Yes No No 05-02-2021 7:42:58 PM 05-02-2021 7:42:58 PM 16c0 0487 2.76 03 00 00 MSI 7&1ca38286&0 HidUsb @input.inf,%HID.SvcDesc%;Microsoft HID Class Driver hidusb.sys (Standard system devices) USB Input Device 10.0.18362.175 HID_Inst.NT input.inf USB\VID_16C0&PID_0487&MI_04\6&36853c80&0&0004 SurpriseRemovalOK
0000.0014.0000.005.000.000.000.000.000 USB Input Device HID (Human Interface Device) Yes Yes No No 05-02-2021 8:17:10 PM 05-02-2021 8:17:10 PM 16c0 0487 2.76 03 00 00 MSI 7&8ad417c&0 HidUsb @input.inf,%HID.SvcDesc%;Microsoft HID Class Driver hidusb.sys (Standard system devices) USB Input Device 10.0.18362.175 HID_Inst.NT input.inf USB\VID_16C0&PID_0487&MI_04\6&3b113cb3&0&0004 SurpriseRemovalOK
0000.0014.0000.003.000.000.000.000.000 USB Input Device HID (Human Interface Device) No Yes No No 05-02-2021 7:10:21 PM 05-02-2021 7:10:21 PM 16c0 0487 2.76 03 00 00 MSI 7&1f52996&0 HidUsb @input.inf,%HID.SvcDesc%;Microsoft HID Class Driver hidusb.sys (Standard system devices) USB Input Device 10.0.18362.175 HID_Inst.NT input.inf USB\VID_16C0&PID_0487&MI_04\6&a137989&0&0004 SurpriseRemovalOK
0000.0014.0000.003.000.000.000.000.000 USB Input Device HID (Human Interface Device) No Yes No No 05-02-2021 7:10:21 PM 05-02-2021 7:10:21 PM 16c0 0487 2.76 03 00 00 MSI 7&32294d5d&0 HidUsb @input.inf,%HID.SvcDesc%;Microsoft HID Class Driver hidusb.sys (Standard system devices) USB Input Device 10.0.18362.175 HID_Inst.NT input.inf USB\VID_16C0&PID_0487&MI_05\6&19701c96&0&0005 SurpriseRemovalOK
0000.0014.0000.003.000.000.000.000.000 USB Input Device HID (Human Interface Device) No Yes No No 05-02-2021 7:12:26 PM 05-02-2021 7:12:26 PM 16c0 0487 2.76 03 00 00 MSI 7&541941c&0 HidUsb @input.inf,%HID.SvcDesc%;Microsoft HID Class Driver hidusb.sys (Standard system devices) USB Input Device 10.0.18362.175 HID_Inst.NT input.inf USB\VID_16C0&PID_0487&MI_05\6&2ea7b5ce&0&0005 SurpriseRemovalOK
0000.0014.0000.003.000.000.000.000.000 USB Input Device HID (Human Interface Device) No Yes No No 05-02-2021 12:13:26 PM 05-02-2021 12:13:26 PM 16c0 0487 2.76 03 00 00 MSI 7&21c6ce1&0 HidUsb @input.inf,%HID.SvcDesc%;Microsoft HID Class Driver hidusb.sys (Standard system devices) USB Input Device 10.0.18362.175 HID_Inst.NT input.inf USB\VID_16C0&PID_0487&MI_05\6&2ea7b5ce&1&0005 SurpriseRemovalOK
0000.0014.0000.003.000.000.000.000.000 USB Input Device HID (Human Interface Device) No Yes No No 05-02-2021 7:10:21 PM 05-02-2021 7:10:21 PM 16c0 0487 2.76 03 00 00 MSI 7&156c142&0 HidUsb @input.inf,%HID.SvcDesc%;Microsoft HID Class Driver hidusb.sys (Standard system devices) USB Input Device 10.0.18362.175 HID_Inst.NT input.inf USB\VID_16C0&PID_0487&MI_05\6&338d7a42&0&0005 SurpriseRemovalOK
0000.0014.0000.003.000.000.000.000.000 USB Input Device HID (Human Interface Device) No Yes No No 05-02-2021 7:10:21 PM 05-02-2021 7:10:21 PM 16c0 0487 2.76 03 00 00 MSI 7&23c7b283&0 HidUsb @input.inf,%HID.SvcDesc%;Microsoft HID Class Driver hidusb.sys (Standard system devices) USB Input Device 10.0.18362.175 HID_Inst.NT input.inf USB\VID_16C0&PID_0487&MI_05\6&35d603e3&0&0005 SurpriseRemovalOK
0000.0014.0000.003.000.000.000.000.000 USB Input Device HID (Human Interface Device) No Yes No No 05-02-2021 7:42:58 PM 05-02-2021 7:42:58 PM 16c0 0487 2.76 03 00 00 MSI 7&733bb3c&0 HidUsb @input.inf,%HID.SvcDesc%;Microsoft HID Class Driver hidusb.sys (Standard system devices) USB Input Device 10.0.18362.175 HID_Inst.NT input.inf USB\VID_16C0&PID_0487&MI_05\6&36853c80&0&0005 SurpriseRemovalOK
0000.0014.0000.005.000.000.000.000.000 USB Input Device HID (Human Interface Device) Yes Yes No No 05-02-2021 8:17:10 PM 05-02-2021 8:17:10 PM 16c0 0487 2.76 03 00 00 MSI 7&1b29fc46&0 HidUsb @input.inf,%HID.SvcDesc%;Microsoft HID Class Driver hidusb.sys (Standard system devices) USB Input Device 10.0.18362.175 HID_Inst.NT input.inf USB\VID_16C0&PID_0487&MI_05\6&3b113cb3&0&0005 SurpriseRemovalOK
0000.0014.0000.003.000.000.000.000.000 USB Input Device HID (Human Interface Device) No Yes No No 05-02-2021 7:10:21 PM 05-02-2021 7:10:21 PM 16c0 0487 2.76 03 00 00 MSI 7&2a5fd75f&0 HidUsb @input.inf,%HID.SvcDesc%;Microsoft HID Class Driver hidusb.sys (Standard system devices) USB Input Device 10.0.18362.175 HID_Inst.NT input.inf USB\VID_16C0&PID_0487&MI_05\6&a137989&0&0005 SurpriseRemovalOK
Delta ROV HCU USB Composite Device Unknown Yes Yes No No 7447680 05-02-2021 8:17:10 PM 05-02-2021 7:44:35 PM 16c0 0487 2.76 00 00 00 MSI 6&3b113cb3&0 usbccgp @usb.inf,%GenericParent.SvcDesc%;Microsoft USB Generic Parent Driver usbccgp.sys (Standard USB Host Controller) 100 mA 1.10 USB Composite Device 10.0.18362.1110 Composite.Dev.NT usb.inf USB\VID_16C0&PID_0487\7447680 Removable, UniqueID, SurpriseRemovalOK
Port_#0003.Hub_#0001 USB Composite Device Unknown No Yes No No 7494100 05-02-2021 7:10:21 PM 05-02-2021 7:10:20 PM 16c0 0487 2.76 00 00 00 MSI 6&a137989&0 usbccgp @usb.inf,%GenericParent.SvcDesc%;Microsoft USB Generic Parent Driver usbccgp.sys (Standard USB Host Controller) USB Composite Device 10.0.18362.1110 Composite.Dev.NT usb.inf USB\VID_16C0&PID_0487\7494100 Removable, UniqueID, SurpriseRemovalOK
Port_#0003.Hub_#0001 USB Composite Device Unknown No Yes No No 7494110 05-02-2021 7:10:21 PM 05-02-2021 7:10:20 PM 16c0 0487 2.76 00 00 00 MSI 6&338d7a42&0 usbccgp @usb.inf,%GenericParent.SvcDesc%;Microsoft USB Generic Parent Driver usbccgp.sys (Standard USB Host Controller) USB Composite Device 10.0.18362.1110 Composite.Dev.NT usb.inf USB\VID_16C0&PID_0487\7494110 Removable, UniqueID, SurpriseRemovalOK
Port_#0003.Hub_#0001 USB Composite Device Unknown No Yes No No 7537690 05-02-2021 7:42:58 PM 05-02-2021 7:42:49 PM 16c0 0487 2.76 00 00 00 MSI 6&36853c80&0 usbccgp @usb.inf,%GenericParent.SvcDesc%;Microsoft USB Generic Parent Driver usbccgp.sys (Standard USB Host Controller) USB Composite Device 10.0.18362.1110 Composite.Dev.NT usb.inf USB\VID_16C0&PID_0487\7537690 Removable, UniqueID, SurpriseRemovalOK
Port_#0003.Hub_#0001 USB Composite Device Unknown No Yes No No 7547690 05-02-2021 7:12:26 PM 05-02-2021 7:10:20 PM 16c0 0487 2.76 00 00 00 MSI 6&2ea7b5ce&0 usbccgp @usb.inf,%GenericParent.SvcDesc%;Microsoft USB Generic Parent Driver usbccgp.sys (Standard USB Host Controller) USB Composite Device 10.0.18362.1110 Composite.Dev.NT usb.inf USB\VID_16C0&PID_0487\7547690 Removable, UniqueID, SurpriseRemovalOK
Port_#0003.Hub_#0001 USB Composite Device Unknown No Yes No No 7547710 05-02-2021 7:10:21 PM 05-02-2021 7:10:20 PM 16c0 0487 2.76 00 00 00 MSI 6&19701c96&0 usbccgp @usb.inf,%GenericParent.SvcDesc%;Microsoft USB Generic Parent Driver usbccgp.sys (Standard USB Host Controller) USB Composite Device 10.0.18362.1110 Composite.Dev.NT usb.inf USB\VID_16C0&PID_0487\7547710 Removable, UniqueID, SurpriseRemovalOK
Port_#0003.Hub_#0001 USB Composite Device Unknown No Yes No No 7824370 05-02-2021 7:10:21 PM 05-02-2021 7:10:20 PM 16c0 0487 2.76 00 00 00 MSI 6&35d603e3&0 usbccgp @usb.inf,%GenericParent.SvcDesc%;Microsoft USB Generic Parent Driver usbccgp.sys (Standard USB Host Controller) USB Composite Device 10.0.18362.1110 Composite.Dev.NT usb.inf USB\VID_16C0&PID_0487\7824370 Removable, UniqueID, SurpriseRemovalOK
 
the above are all the VID_16C0 instance.

This one is the joystick that has the new serial number: 7447680

Delta ROV HCU USB Composite Device Unknown Yes Yes No No 7447680 05-02-2021 8:17:10 PM 05-02-2021 7:44:35 PM 16c0 0487 2.76 00 00 00 MSI 6&3b113cb3&0 usbccgp @usb.inf,%GenericParent.SvcDesc%;Microsoft USB Generic Parent Driver usbccgp.sys (Standard USB Host Controller) 100 mA 1.10 USB Composite Device 10.0.18362.1110 Composite.Dev.NT usb.inf USB\VID_16C0&PID_0487\7447680 Removable, UniqueID, SurpriseRemovalOK
 
Deleted Frank's code to go back to dead joy.cpl

The serial number is now 7547690

AND there is another inactive instance of the same serial number so I think this pretty much confirms it...

Port_#0005.Hub_#0001 USB Composite Device Unknown No Yes No No 7547690 05-02-2021 7:10:21 PM 05-02-2021 7:10:20 PM 16c0 0486 2.76 00 00 00 MSI 6&8305b30&0 usbccgp @usb.inf,%GenericParent.SvcDesc%;Microsoft USB Generic Parent Driver usbccgp.sys (Standard USB Host Controller) USB Composite Device 10.0.18362.1110 Composite.Dev.NT usb.inf USB\VID_16C0&PID_0486\7547690 Removable, UniqueID, SurpriseRemovalOK
Delta ROV HCU USB Composite Device Unknown Yes Yes No No 7547690 05-02-2021 8:21:34 PM 05-02-2021 7:10:20 PM 16c0 0487 2.76 00 00 00 MSI 6&2ea7b5ce&0 usbccgp @usb.inf,%GenericParent.SvcDesc%;Microsoft USB Generic Parent Driver usbccgp.sys (Standard USB Host Controller) 100 mA 1.10 USB Composite Device 10.0.18362.1110 Composite.Dev.NT usb.inf USB\VID_16C0&PID_0487\7547690 Removable, UniqueID, SurpriseRemovalOK
 
Hi edemers,

The objective was to correlate a working or non working state of affairs with which blahblah.sys Windows picked for that joystick.

It's a bit hard to tell from the info you posted, because I can't tell in which case the joystick was working.

At any rate, previously I had come to the conclusion that "working" corresponds to Windows picking hidusb.sys for that particular Teensy joystick, and picking mouhid.sys for non-working. But that was back on Windows 7.

In your data, I see that hidusb.sys appears for some records, and usbccgp.sys for others, but it's not clear to me whether the former corresponds to working, and the latter to not working.
 
Hi Graham,

ok I will have a look for this tomorrow. Its getting pretty late out here :)

Cheers,
Etienne
 
Hello Graham,

Both working and none-working joystick setup use the drive filename usbccgp.sys

I opened each items in Regedit which may provide more information.

This one is the active joystick that is not working because it has the same SN as another inactive instance
bad active instance.jpg

This one is the other instance sharing the same serial number which is not active
bad same serial number inactive.jpg

This one is the active joystick with a different serial number which is working well
good unique serial number.jpg

Let me know if you need anything else.

Now that I can reproduce the problem at will its easy to provide you with info.

Cheers,
Etienne
 
Hi Frank,

I ended up getting rid of all the code and inputting my own 8 digit serial number.

Thanks again for your help.
E.
 
@Etienne

> Now that I can reproduce the problem at will its easy to provide you with info.

What are the steps that reliably reproduce the problem?

> Both working and none-working joystick setup use the drive filename usbccgp.sys

I think that may just be the generic driver that comes into play for composite USB devices, which then loads other driver(s) for the individual features.

As you noted, in the registry, the entries corresponding to the misbehaving serial number 7547690 appear under both VID_16C0&PID_0486, and also VID_16C0&PID_0487. Whereas the successful serial number is 18590831, and appears only under VID_16C0&PID_0487.

Looking at
C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3\usb_desc.h where these items are defined:
PRODUCT_ID (PID) 0x0486 is for RAWHID
PRODUCT_ID 0x0487 is for Serial/Keyboard/Mouse/Joystick

So this raises the questions:

-- Did 18590831 succeed because it has only the one entry?
-- Or did 7547690 fail because it reported to Windows that it had product Id 0486? And does it always report PID_0486?
-- Or did it do that just once, and then on later plug-ins, Windows for some reason uses the 0486 entry regardless of whether the Teensy reports 0487 or 0486?

A possible test:

When you next encounter a joystick that doesn't work:
1. Unplug the joystick
2. Look in the registry to see if it also has these two entries
3. Delete that serial number's key under VID_16C0&PID_0486. So that leaves it with only the key under VID_16C0&PID_0487.
4. Plug in the joystick and see if it now works.
5. Inspect the registry again to see where that serial number has entries.

I am hoping this tells us at least something. But we don't actually know that it's this area of the saved settings that's causing the trouble. The multiple entries might be unrelated to the issue.
 
Hi All,
So I have exactly the same issue. I started playing with the Teensy Joystick Basic code with my joystick and at first the joystick was recognised under the Game Controller setup application in Windows. All good. Then later after playing with the code suddenly the joystick and the buttons were not recognised apart from in the first screen it decides that the Keyboard/Mouse/Joystick is OK but when you check the settings you do not see any inputs from the joystick or buttons and cannot access Calibration.
So at this point I'm thinking I have to follow the work around and delete the VID_16C0. However someone mentioned that Google Earth can work with a joystick so I thought lets just see if the joysticks recognised by google. Fire up Google Earth in a browser and guess what, Joysticks working fine.
So now my question is how is Google Earth in a browser recognising the joystick but Windows 10 is not??
Really hoping we can get to the bottom of all this soon.
 
The solution is above. It's a windows driver/registry problem. I've provided a patch for teensyduino that provides a new serial number.
 
Hi all, sorry to reanimate this thread, but I've experienced a similar issue building two joystick devices on T3.2

Build was mostly on Mac (FWIW), can see the inputs on web testers on the Mac, but on 4+ Win10 machines I'm getting a device detected but no inputs (joy.cpl, web testers not seeing anything)

I've tried modifying the VID, which successfully starts to identify them as new devices, but then the same thing happens.

Not totally sure how to edit the serial number but I imagine I'd get the same result.

I've also tried deleting the reg keys (everything with VID_16C0), but it doesn't seem to make any difference.

The devices are running edited core libraries, joystick size defined at 36

Currently wondering if the issue is because I've developed and uploaded from a Mac, because it's a non-standard joystick config or if it's something else entirely.
 
Not totally sure how to edit the serial number but I imagine I'd get the same result.

That is the problem. You need a different serial number for each joystick. At least that is what I do to solve my problem.

No need to delete registry keys or anything.

Just the serial number.

You do this when you program your teensy.

For me, this is in the file: usb_desc.c

In the function usb_init_serialnumber


Code:
void usb_init_serialnumber(void)
{
	char buf[11];
	uint32_t i, num;

	__disable_irq();
#if defined(HAS_KINETIS_FLASH_FTFA) || defined(HAS_KINETIS_FLASH_FTFL)
	FTFL_FSTAT = FTFL_FSTAT_RDCOLERR | FTFL_FSTAT_ACCERR | FTFL_FSTAT_FPVIOL;
	FTFL_FCCOB0 = 0x41;
	FTFL_FCCOB1 = 15;
	FTFL_FSTAT = FTFL_FSTAT_CCIF;
	while (!(FTFL_FSTAT & FTFL_FSTAT_CCIF)) ; // wait
	num = *(uint32_t *)&FTFL_FCCOB7;
#elif defined(HAS_KINETIS_FLASH_FTFE)
	kinetis_hsrun_disable();
	FTFL_FSTAT = FTFL_FSTAT_RDCOLERR | FTFL_FSTAT_ACCERR | FTFL_FSTAT_FPVIOL;
	*(uint32_t *)&FTFL_FCCOB3 = 0x41070000;
	FTFL_FSTAT = FTFL_FSTAT_CCIF;
	while (!(FTFL_FSTAT & FTFL_FSTAT_CCIF)) ; // wait
	num = *(uint32_t *)&FTFL_FCCOBB;
	kinetis_hsrun_enable();
#endif
	__enable_irq();
	// add extra zero to work around OS-X CDC-ACM driver bug
  [B]num = 18590853;[/B]
	if (num < 10000000) num = num * 10;
	ultoa(num, buf, 10);
	for (i=0; i<10; i++) {
		char c = buf[i];
		if (!c) break;
		usb_string_serial_number_default.wString[i] = c;
	}
	usb_string_serial_number_default.bLength = i * 2 + 2;
}

I simply increment the "num" value. in my case this matches my serial number sticker.

Hope this helps.

Cheers,
E.
 
So - emotional rollercoaster, edited the ser# as directed, thanks Edemers. 'Setting up device' dialog appeared and the system popped up in the joy.cpl tester with expected inputs. Awesome!

Dis- and reconnected the USB, back to the same issue unless I change it again, but some further testing has shown that if I reupload the Arduino sketch to the board, it functions with the expected inputs. I removed the serial number edit and reuploaded, functions fine again.

The common thread here seems to be that it functions nicely if programmed and left plugged in - this is a semi-acceptable workaround, but I can't think what the board/Windows is forgetting when it's unplugged...

Thanks,

S
 
Short version of fix
--------------------
Delete from the registry all keys containing VID_16c0.

-- Graham

Thanks a lot Graham and all the people who fixed this problem in Windows! After years, this thread is still useful! I have 4 Teensy 4.0 configured as "Serial / Keyboard / Mouse / Joystick" (joysticks used for a professionnal helicopter flight simulator) and I experienced the same issue. Impossible to recognize the classic 32 buttons... After changing the Product ID in order to have different GUIDs I finally deleted the registry keys in Windows (HKEY_CURRENT_USER -> System -> CurrentControlSet -> Control -> MediaProperties -> PrivateProperties / Joystick -> OEM & DirectInput) and that worked!

Cheers,
Jean-Marc
 
Back
Top