Failure phenomenon:
Umdf HID MiniDriver Device unknown device appears in Device Manager under Windows 8 system, as shown in figure:
Reason Analysis:
Umdf is the User-mode Driver framework (user-mode driver architecture, referred to as UMDF), UMDF provides plug-in (PNP), Power Manager, asynchronous output input functions, Umdf HID MiniDriver Device The whole meaning is the driver of a Plug and play
1. When the host computer writes data to HID, the first byte transmitted by each packet is the write Data (out)of the report ID, and the upper and lower machine must be identical .
Host Computer Configuration location:
Next machine configuration location:
2. HID up-level machine when the data is returned, the first byte of each packet must also be read Data (in)the report ID, and in the lower machine,
ArticleDirectory
About
What does the API look like?
License
Download
Build instructions
Contact
About
Hidapi is a multi-platform library which allows an application to interface with USB and Bluetooth hid-class devices on Windows, Linux, and Mac OS X. while it can be used to communicate with standard hid devices like keyboards, mice, and joysticks, it is most useful when used
descriptor), that the USB HID device is reported to transmit data through reports, reports have input reports and output reports. The input report is a USB device sent to the host, such as a USB mouse to move the mouse and mouse clicks and other information returned to the computer, should be reported to describe char
1. Modification of descriptors:
1.1 Configuration Descriptor Modification:
Modifies the size of the HID report Descriptor's bytes in the HID descriptor under the configuration descriptor. Modify the value to the number of bytes written by the HID report descriptor.
1.2 Specifies the endpoint, type (input, output), and data length of the endpoint used in the end
Front-end time to tinker with a HID hardware, need and Android communication, online search a lap, harvest is not small.The better articles are:Android USB host with HID communicationAndroid service creates USB host communicationWhere the code is to be noted in some places, please note:/*** USB HOST connection HID *@authorIVAN **/ Public classMainactivityextendsA
Source: Hidkomponente Using read-write HID devices at a glanceHidkomponente is a third-party HID Control Library used in Delphi to detect and control HID devices connected to your computer. In general, more USB devices. The use of Hidkomponente is actually very simple, just because of the first use, encountered some problems. Its demo is very rich, very practical
Hexdump/dev/hidraw0 can see the bare stream that the Usbhid device is transmitting.such as: Press the input key003ae60 0000 0096 8000 006b 0000 0000 0000 0000*003aea0 0000 0086 8000 0000 0000 0000 0000 0000*The previous estimate is the bitstream Head (003AE60), and press (0096), release (8000) and other information, the identification key valid information is (006B)006B is actually the index value, the following table will look for key values sent to Android, such as: 6b corresponding to 186driv
device class definition for Human Interface Device (HID.
It is divided into two parts. 0x05 is a part, indicating the prefix and 0x01 is the data part.
0x05 is converted to binary, that is, 0000 01001. According to the definition of HID 5.3 generic item format, this byte is divided into three parts, bit0 ~ Bit1 indicates the length of the data following the prefix. Two values can represent up to 4 bytes of
Using LIBUSB can achieve universal USB communication, but the implementation is more complex, you can use HIDAPI to encapsulate a layer, through HIDAPI call Libusb.
The specific process is as follows:
1, compile Libusb
Download Address: https://sourceforge.net/projects/libusb/files/libusb-1.0/
When compiling, to add--disable-udev parameters, we do not use this Lib
For this machine use:
./configure--prefix=/opt/libusb1.0--disable-udev make make
install
If you cross-compile to arm Develop
Recently I am reading the spec of USB hid:
Http://www.usb.org/developers/devclass_docs/HID1_11.pdf
As you can see, when item isLocalWhen btag = 0000 correspondsUsage.
The meaning of this usage was not understood at first. I thought it was wrong. It should be written as a usage ID, and someone on the Internet also said that this usage is actually a usage ID.
After some research, I finally understood that the above understanding is wrong. This u
Stm32 comes with USB interface, it is very suitable for HID equipment, and it is also very convenient to avoid the drive development.After using STM32 with the correct report descriptor configuration, plug in the USB and the computer is correctly identified as follows (device and printer)Can be set by right-click, game controllerBy selecting PropertiesThen click PropertiesThis test test is a simple test, the command control position coordinates (absol
Above, configure the compile gadget HID module
Build G_hid.ko in Driver/usb/gadget directory after make modules
To execute the load command:
root@xxx:/mnt# insmod G_hid.ko
insmod:can ' t insert ' G_hid.ko ': No such deviceHint error.
In the TI Technology Forum to see the relevant technical reply:
The error message for you had before ' error inserting ' G_hid.ko ':-1 No such device. ' are due to incomplete hid
Source: USB That Thing 3-using port 2 as the transfer of custom HIDThe USB custom HID example uses port 1 as the communication, so now I use port 2 as the communication end, how to modify it? As shown below:First modify: USB_DESC.C in the const U8 CUSTOMHID_CONFIGDESCRIPTOR[CUSTOMHID_SIZ_CONFIG_DESC] This character array contents: The following red for the modified part, Not listed without modification:Usb_endpoint_descriptor_type,/*bDescriptorType:*/
Android4.0 hid insertion prompt
The specific principle is not mentioned here. I have not straightened out. Many articles on the Internet have clearly stated that I will directly focus on this.
Main File Modification
Frameworks/base/service/java/com/android/server/usb service. java
Frameworks/base/service/java/com/android/server/usb/UsbHostManager. java
Change the public USB Service (Context context) in USB service. java
public UsbService(Context
Kautilya prompts to select the appropriate menu, and then generate payload to Kautilya directory.
The generated payload needs to be compiled in the Arduino IED and then uploaded to Teensy.
Supported devices (Human Interface Devices)
In principal Kautilya should work with any HID capable of acting as a keyboard. Kautilya have been tested on teensy++2.0 and teensy 3.0 from pjrc.com. Updates about Kautilya can is found most of the Times at my blog http:
I have the following errors in DMESG in my two servers, what is the reason for consulting?
os :rhel4.4 服务器型号: hp dl380 g4 ,g5 shpchp: acpi_shpchprm:\_SB_.PCI0 evaluate _BBN fail=0x5 shpchp: acpi_shpchprm:get_device PCI ROOT HID fail=0x5 shpchp: acpi_shpchprm:\_SB_.PCI0 evaluate _BBN fail=0x5 shpchp: acpi_shpchprm:get_device PCI ROOT HID fail=0x5 shpchp: acpi_shpchprm:\_SB_.PCI0 evaluate _BBN fail=0x5 shpch
Test code for Linux usb hid Device: hiddevice
/****************************************************************** Author:DriverMonkey* Mail:bookworepeng@Hotmail.com* Phone:18575593141* QQ:196568501* Blog:http://blog.csdn.net/drivermonkey* Date:02/07/2015 *****************************************************************/#include
,//File attributesUINT hTemplateFile//handle to template file);Reading device files[DllImport ("Kernel32.dll", SetLastError = True)]private static extern bool ReadFile(INTPTR hfile,byte [] lpbuffer,UINT nNumberOfBytesToRead,Ref UINT Lpnumberofbytesread,IntPtr lpoverlapped);Release device[DllImport ("Hid.dll")]static public extern bool Hidd_freepreparseddata (ref INTPTR preparseddata);Turn off access to device handles, and when you end the process, add this to the insurance.[DllImport ("kernel32.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.