2018-04-17 09:50 AM
Hi all
i want to build new Software hardware lock with STMF103C8T6 micro controller, it run on HID USB device. in fact i have one host application that can conversation with HID micro controller with encryption messages. at the moment i have one question about different between Human Interface Device and Custom Human Interface Device.they are different function commands name and type. please tell me about the different.
Best Regards
Ehsan Farahani Asil
#usb #stm32f103c8t6 #custom-usb-hid #usb-hid2018-04-17 01:36 PM
'Custom' means that something is specially made to a specific requirement - as opposed to just plain standard.
2018-04-18 11:45 AM
In the STM32Cube and STM32_USB_Device_Library context, the HID class device provides a fixed mouse application, where the HID report is predefined. The Custom HID option allows you to have an application-defined report descriptor, and to use both IN and OUT endpoints. Both are limited by their fixed max endpoint size and period.
2018-04-18 03:48 PM
thanks very much for your reply. could you please describe about max endpoint and period limitation condition?
2018-04-20 06:24 AM
The USB configuration descriptors are defined as constant byte arrays in each class's source file. If you observe the USBD_CustomHID_CfgDesc (or something similarly named), you can see in the endpoint descriptor what the max packet size and the endpoint period is set to.