A usb device and its method for identifying macos system
A device identification and device technology, applied in the direction of instruments, electrical digital data processing, etc., can solve problems such as the inability to accurately identify the MacOS system
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0038] This embodiment provides a method for a USB device to identify a MacOS system, including:
[0039] Step A1, power on the USB device;
[0040] Step A2, the USB device waits to receive a command issued by the host;
[0041] When receiving the acquire string descriptor command issued by the host, send the corresponding string descriptor to the host;
[0042] When receiving the configuration descriptor command issued by the host, send the corresponding configuration descriptor and interface descriptor to the host;
[0043] The method also includes before the USB device receives the APDU command:
[0044] If the USB device first receives the acquisition string descriptor command issued by the host, and then receives the acquisition configuration descriptor command issued by the host, then the type of the host operating system is identified as a MacOS system;
[0045] If the USB device first receives the acquire configuration descriptor command issued by the host, and then...
Embodiment 2
[0056] This embodiment provides a method for a USB device to identify a MacOS system, such as figure 1 shown, including:
[0057] Step 101, the USB device is powered on;
[0058] Step 102, the type of USB device identification host operating system is unknown;
[0059] Specifically, the USB device can identify the type of the host operating system by setting a preset identification bit. When the value of the preset identification bit is the first preset value, it means that the type of the host operating system is unknown; for example, the first preset The set value can be 0.
[0060] Step 103, the USB device receives the command issued by the host;
[0061] Step 104, the USB device judges the type of the command received, if it is to obtain a character string descriptor command, then perform step 105, if it is to obtain a configuration descriptor command, then perform step 108, otherwise perform step 111;
[0062] Specifically, the Get String Descriptor command and the Ge...
Embodiment 3
[0118] This embodiment provides a USB device, such as figure 2 shown, including:
[0119] The receiving module 301 is used for receiving the command issued by the host after the USB device is powered on;
[0120] The sending module 302 is configured to send a corresponding character string descriptor to the host when the receiving module 301 receives the acquire string descriptor command issued by the host, and when the receiving module 301 receives the acquire configuration descriptor command issued by the host , send the corresponding configuration descriptor and interface descriptor to the host;
[0121] The first identification module 303 is used to identify the operating system of the host when the receiving module 301 receives the command to obtain the character string descriptor issued by the host before receiving the APDU command, and then receives the command to obtain the configuration descriptor issued by the host. The type is MacOS system;
[0122] The second i...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


