USB data card self-starting method and system
A data card and self-starting technology, which is applied in the field of mobile communication, can solve the problems that the configuration cannot be dynamically switched, and the user lacks a way to switch back to the CDROM state, etc., to achieve the effect of improving bandwidth utilization, flexible use, and improving performance
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0051] figure 2 It is the flow chart of self-starting and self-installation when the data card of the present invention is inserted into the PC for the first time, and the specific steps are as follows:
[0052] Step 210, the data card is inserted into the PC for the first time, the PC detects the insertion of the data card, and enters the USB device enumeration process.
[0053] Step 220, during the enumeration process, the data card reports a device descriptor, wherein the device descriptor includes the VID and PID number of the data card.
[0054] Step 230, the PC searches the registry for the driver according to the VID and PID number. Since the driver and software for the data card have not been installed on the PC, the system cannot find the driver corresponding to the PID and VID number in the registry. In this case, the PC will send the configuration command of configuration 1 (set config 1) to the data card.
[0055] Step 240, after receiving the set config 1 confi...
Embodiment 2
[0064] Such as image 3 As shown, when the PC has installed the driver and related software, when the data card is inserted again, it will not be started in the form of CDROM, but will be configured directly in the configuration mode saved in the registry. The specific steps are as follows:
[0065] In step 310, the data card is inserted into the PC and powered on to enter the enumeration process.
[0066] Step 320, during the enumeration process, the data card reports the device descriptor, which contains the VID and PID numbers of the data card.
[0067] Step 330, the PC searches for the driver in the registry according to the VID and PID number, taking the data card with vid 19d2 and pid 00 as an example, find the DWORD variable UsbConfigNum in the vid_19d2&pid_00xx subkey, and pass its value through set config The command is sent to the data card. If the value of UsbConfigNum is 2, the PC sends the set config 2 configuration command to the data card.
[0068] Step 340, a...
Embodiment 3
[0072] Such as Figure 4 As shown, the user can dynamically switch the configuration of the data card during use. Taking switching from configuration 2 to configuration 1 as an example, the specific steps are as follows:
[0073] Step 410, the user opens the configuration switching interface in the terminal.
[0074] Step 420, assuming that the current data card is working in configuration 2, and the user needs to switch to configuration 1, at this time, the button "Switch to CDROM" in the configuration switching interface can be clicked.
[0075] Step 430, in the event response of the button, the PC sends a setconfig 0 command to the data card through the USB interface.
[0076] Step 440, after the data card receives the set config 0 command, according to the configuration in Table 1, uninstall all the interface devices in the existing configuration 2, and change the status of the USB device to the ADDRESSED (address setting) status, and the data card will re-enter enumera...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 