News for hackers. Stuff that matters.
Re:STM32 Blue Pill as an Hid USB Keyboard by Findecanor on Wednesday August 30, 2023 @04:06PM (#37328220)
Windows will try to use the VendorID/ProductID pair on the device to look up which driver to load, but if there isn't any then a regular USB-HID device will default to using the generic HID driver.

You'd get assigned a VendorID if you have a USB license: That is a USB-IF thing, not a Microsoft thing. Then each licensee gets to assign its own ProductIDs.

There is no authentication in the core USB protocol: A device can declare any VendorID. Major microcontroller board manufacturers such as Sparkfun and PJRC provide specific VendorID/ProductIDs to be used by DIY projects using their boards ... but I've seen some of those being reused by other boards. I have also seen the VendorID 0xf055 used by free open source firmware.

Re:STM32 Blue Pill as an Hid USB Keyboard by veyh on Wednesday August 30, 2023 @05:35PM (#37329449)
If your project is open source, you can get a PID for free. [1]

I received one for a virtual usb keyboard [2] that I made to work alongside a desktop app. Having a dedicated VID/PID makes detecting the presence of the device easier.

[1] https://pid.codes/

[2] https://github.com/veyh/AutoPTT-sidekick/

Re:STM32 Blue Pill as an Hid USB Keyboard by brokenmachine on Thursday August 31, 2023 @11:53PM (#37346628)
Nice project!