Optical communication apparatus interface accessing method free of driver based on HID

2015 
The invention discloses an optical communication apparatus interface accessing method free of a driver based on an HID, which comprises that an optical communication apparatus is provided with a USB interface connected to a micro-controller; a USB standard descriptor and an HID report descriptor are defined aiming at the optical communication apparatus within the program code area of the micro-controller; the optical communication apparatus is connected to a host terminal end through the USB interface, waiting for being detected by the host terminal end; when the insert of the optical communication apparatus is detected, the host terminal end will send apparatus type query instructions to the micro-controller of the optical communication apparatus through the USB interface and the optical communication apparatus receives the instructions and send the USB standard descriptor and the HID report descriptor to the host terminal end; based on the USB standard descriptor and the HID report descriptor that are read, the optical communication apparatus will be identified as an HID human interface device by the host terminal end; and a data communication channel with the optical communication apparatus is established through the USB interface. According to the method provided by the invention, the installation of a drive program of the optical communication apparatus is not needed, thus the system compatibility is greatly improved.
    • Correction
    • Source
    • Cite
    • Save
    • Machine Reading By IdeaReader
    0
    References
    0
    Citations
    NaN
    KQI
    []