[go: up one dir, main page]

CN111104170A - Driving method and device for wireless internet access and computer readable medium - Google Patents

Driving method and device for wireless internet access and computer readable medium Download PDF

Info

Publication number
CN111104170A
CN111104170A CN201811254922.XA CN201811254922A CN111104170A CN 111104170 A CN111104170 A CN 111104170A CN 201811254922 A CN201811254922 A CN 201811254922A CN 111104170 A CN111104170 A CN 111104170A
Authority
CN
China
Prior art keywords
driver
host
internet access
wireless internet
host controller
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Withdrawn
Application number
CN201811254922.XA
Other languages
Chinese (zh)
Inventor
白洁
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
ZTE Corp
Original Assignee
ZTE Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by ZTE Corp filed Critical ZTE Corp
Priority to CN201811254922.XA priority Critical patent/CN111104170A/en
Publication of CN111104170A publication Critical patent/CN111104170A/en
Withdrawn legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4411Configuring for operating with peripheral devices; Loading of device drivers
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4416Network booting; Remote initial program loading [RIPL]

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The embodiment of the invention discloses a driving method, a device, equipment and a computer readable medium for wireless internet access, which relate to the field of communication, and the method comprises the following steps: installing a filter driver in a host; determining whether the wireless internet access terminal inserted into the host is mounted under a host controller which is not supported by Microsoft drive by utilizing the filter driver; and if the wireless internet access terminal is determined to be mounted under the host controller which is not supported by the Microsoft drive, generating a switching instruction packet for switching the wireless internet access terminal into a network port, and sending the switching instruction packet to the wireless internet access terminal.

Description

一种用于无线上网的驱动方法、装置及计算机可读介质A driving method, device and computer-readable medium for wireless Internet access

技术领域technical field

本发明实施例涉及通讯领域,特别涉及一种用于无线上网的驱动方法、装置及计算机可读介质。Embodiments of the present invention relate to the field of communications, and in particular, to a driving method, an apparatus, and a computer-readable medium for wireless Internet access.

背景技术Background technique

无线上网终端在主机上使用时,需要有一些应用软件对终端进行管理,这些应用软件从无线上网终端的大容量光盘中运行,所以无线上网终端在主机上首先要枚举为大容量光盘,然后再从光盘切换枚举到网络端口完成上网功能。When the wireless Internet terminal is used on the host, some application software is required to manage the terminal. These application software run from the large-capacity CD of the wireless Internet terminal, so the wireless Internet terminal must first be enumerated as a large-capacity CD on the host, and then Then switch the enumeration from the CD to the network port to complete the Internet access function.

无线上网终端在windows操作系统(或windows系统)和非windows操作系统(或非windows系统)上切换枚举出的网络端口不同。具体地说,现有的从光盘切换枚举到不同网络端口的技术,基于windows系统自带主机控制器驱动会下发系统描述符请求,而非windows系统不会下发系统描述符请求。当终端工作在windows系统上时,若终端收到系统描述符请求,则切换成windows系统可以识别的设备;当终端工作在非windows系统上时,终端不会收到系统描述符请求,此时切换成非windows系统可以识别的设备。The network ports enumerated by switching of the wireless Internet access terminal on the Windows operating system (or the Windows system) and the non-windows operating system (or the non-windows system) are different. Specifically, the existing technology of switching enumeration from optical discs to different network ports is based on the fact that the host controller driver of the Windows system will issue the system descriptor request, while the non-windows system will not issue the system descriptor request. When the terminal works on the windows system, if the terminal receives a system descriptor request, it will switch to a device that can be recognized by the windows system; when the terminal works on a non-windows system, the terminal will not receive the system descriptor request. Switch to a device that is not recognized by the Windows system.

windows系统的系统描述符请求是由微软系统自带驱动下发的,而有些windows系统的主机控制器驱动(Host Controller Driver,HCD)不是微软系统自带的,这些驱动不下发系统描述符,导致终端在windows系统上没有收到系统描述符请求,错误认为工作环境不是windows系统,从而在该系统上切换为非windows系统才能识别的设备,无法在window系统上使用。The system descriptor request of the Windows system is issued by the driver that comes with the Microsoft system, and the Host Controller Driver (HCD) of some Windows systems is not native to the Microsoft system. These drivers do not issue system descriptors, resulting in The terminal does not receive the system descriptor request on the Windows system, and mistakenly believes that the working environment is not the Windows system, so it is switched to a device that can only be recognized by the non-windows system on the system, and cannot be used on the Windows system.

发明内容SUMMARY OF THE INVENTION

本发明实施例提供一种用于无线上网的驱动方法、装置及计算机可读介质,针对无线上网终端挂载在非微软驱动支持的主机控制器下的情况,本发明实施例能够解决无线上网终端无法切换枚举为主机可识别设备的问题。Embodiments of the present invention provide a driving method, a device, and a computer-readable medium for wireless Internet access. In the case where a wireless Internet access terminal is mounted on a host controller that is not supported by a Microsoft driver, the embodiments of the present invention can solve the problem of the wireless Internet access terminal. Unable to toggle enumeration as host-recognized device issue.

本发明实施例提供一种用于无线上网的驱动方法,包括:An embodiment of the present invention provides a driving method for wireless Internet access, including:

在主机中安装过滤驱动程序;Install the filter driver in the host;

利用所述过滤驱动程序,确定已插入所述主机的无线上网终端是否挂载在非微软驱动支持的主机控制器下;Using the filter driver, determine whether the wireless Internet access terminal that has been inserted into the host is mounted under a host controller not supported by a Microsoft driver;

若确定所述无线上网终端挂载在非微软驱动支持的主机控制器下,则生成用来将所述无线上网终端切换为网络端口的切换指令包,并发送至所述无线上网终端。If it is determined that the wireless surfing terminal is mounted under a host controller not supported by a Microsoft driver, a switching instruction packet for switching the wireless surfing terminal to a network port is generated and sent to the wireless surfing terminal.

本发明实施例提供一种用于无线上网的驱动装置,包括:An embodiment of the present invention provides a driving device for wireless Internet access, including:

安装模块,用于在主机中安装过滤驱动程序;Install module for installing the filter driver in the host;

确定模块,用于利用所述过滤驱动程序,确定已插入所述主机的无线上网终端是否挂载在非微软驱动支持的主机控制器下;a determining module, configured to use the filter driver to determine whether the wireless Internet access terminal that has been inserted into the host is mounted under a host controller supported by a non-Microsoft driver;

发送模块,用于若确定所述无线上网终端挂载在非微软驱动支持的主机控制器下,则生成用来将所述无线上网终端切换为网络端口的切换指令包,并发送至所述无线上网终端。The sending module is configured to generate a switching instruction packet for switching the wireless Internet access terminal to a network port if it is determined that the wireless Internet access terminal is mounted under a host controller supported by a non-Microsoft driver, and send it to the wireless Internet access terminal. Internet terminal.

本发明实施例提供一种用于无线上网的驱动设备,所述设备包括:处理器及存储器,所述存储器上存储有可在所述处理器上运行的用于无线上网的驱动程序,所述用于无线上网的驱动程序被所述处理器执行时实现所述的用于无线上网的驱动方法的步骤。An embodiment of the present invention provides a driving device for wireless Internet access, the device includes: a processor and a memory, the memory stores a driver program for wireless Internet access that can run on the processor, and the memory When the driver for wireless Internet access is executed by the processor, the steps of the driving method for wireless Internet access are implemented.

本发明实施例提供一种计算机可读介质,其上存储有用于无线上网的驱动程序,所述用于无线上网的驱动程序被处理器执行时实现所述的用于无线上网的驱动方法的步骤。An embodiment of the present invention provides a computer-readable medium on which a driver for wireless Internet access is stored, and when the driver for wireless Internet access is executed by a processor, the steps of the driving method for wireless Internet access are implemented .

本发明实施例利用过滤驱动程序,在确定无线上网终端挂载在非微软驱动支持的主机控制器下时,下发携带无线上网终端已经支持的系统描述符请求的切换指令包,保证无线上网终端完成正常切换。In the embodiment of the present invention, a filter driver is used, and when it is determined that the wireless Internet access terminal is mounted under a host controller not supported by a Microsoft driver, a switching instruction packet carrying a request for a system descriptor already supported by the wireless Internet access terminal is delivered, so as to ensure that the wireless Internet access terminal is Complete the normal switch.

附图说明Description of drawings

图1是本发明实施例提供的一种用于无线上网的驱动方法流程示意图;1 is a schematic flowchart of a driving method for wireless Internet access provided by an embodiment of the present invention;

图2是本发明实施例提供的驱动系统结构示意图;2 is a schematic structural diagram of a drive system provided by an embodiment of the present invention;

图3是图2的主机环境检测模块21的流程示意图;FIG. 3 is a schematic flowchart of the host environment detection module 21 of FIG. 2;

图4是图2的驱动安装模块22的流程示意图;FIG. 4 is a schematic flowchart of the driver installation module 22 of FIG. 2;

图5是图2的指令包处理模块24的流程示意图;5 is a schematic flowchart of the instruction packet processing module 24 of FIG. 2;

图6是本发明实施例提供的安装过滤驱动程序的流程示意图;6 is a schematic flowchart of installing a filter driver provided by an embodiment of the present invention;

图7是本发明实施例提供的终端从插入主机到完成切换的流程示意图;7 is a schematic flowchart of a terminal provided by an embodiment of the present invention from being inserted into a host to completing switching;

图8是本发明实施例提供的一种用于无线上网的驱动装置的示意性结构框图;8 is a schematic structural block diagram of a driving device for wireless Internet access provided by an embodiment of the present invention;

图9是本发明实施例提供的一种用于无线上网的驱动设备的示意性结构框图。FIG. 9 is a schematic structural block diagram of a driving device for wireless Internet access provided by an embodiment of the present invention.

具体实施方式Detailed ways

以下结合附图对本发明实施例进行详细说明,应当理解,以下所说明的实施例仅用于说明和解释本发明,并不用于限定本发明。本发明实施例所使用的“包含”、“包括”、“具有”、“含有”等等,均为开放性的用语,即意指包括但不限于。The embodiments of the present invention will be described in detail below with reference to the accompanying drawings. It should be understood that the embodiments described below are only used to illustrate and explain the present invention, but not to limit the present invention. The terms "comprising", "including", "having", "containing" and the like used in the embodiments of the present invention are all open-ended terms, meaning including but not limited to.

本发明实施例不需要对终端固件进行任何更改,只在主机侧提供一个驱动系统即可,该驱动系统会自动检测终端工作的电脑环境,如果终端工作主机的主机控制器驱动都是微软的,则驱动系统中的驱动(或过滤驱动或过滤驱动程序)不进行任何工作,终端仍然靠主机的操作系统自带驱动下发的系统描述符请求完成切换;如果终端即将工作的主机环境中有非系统自带驱动支持(或非微软驱动支持、微软驱动不支持、非系统驱动支持、windows操作系统自带驱动不支持、系统自带驱动不支持、系统驱动不支持)的主机控制器,则驱动系统要在该主机中预安装一个大容量设备的过滤驱动,该过滤驱动可以检测设备(或终端)插入主机时,是否挂载在非系统驱动支持的主机控制器下,如果挂载在这样的主机控制器下,过滤驱动会给终端发送系统描述符USB请求(或系统描述符请求),保证终端切换。This embodiment of the present invention does not require any modification to the terminal firmware, and only needs to provide a drive system on the host side. The drive system will automatically detect the computer environment in which the terminal works. If the host controller driver of the terminal working host is from Microsoft, Then the driver (or filter driver or filter driver) in the drive system does not do any work, and the terminal still relies on the system descriptor request issued by the driver of the operating system of the host to complete the switch; If the host controller supports the system's built-in driver (or non-Microsoft driver support, Microsoft driver does not support, non-system driver support, Windows operating system built-in driver does not support, system built-in driver does not support, system driver does not support), the driver The system should pre-install a filter driver for large-capacity devices in the host. The filter driver can detect whether the device (or terminal) is mounted on the host controller that is not supported by the system driver when it is inserted into the host. Under the host controller, the filter driver will send a system descriptor USB request (or a system descriptor request) to the terminal to ensure terminal switching.

图1是本发明实施例提供的一种用于无线上网的驱动方法流程示意图,如图1所示,所述方法可以包括:FIG. 1 is a schematic flowchart of a driving method for wireless Internet access provided by an embodiment of the present invention. As shown in FIG. 1 , the method may include:

步骤S101:在主机中安装过滤驱动程序。Step S101: Install a filter driver in the host.

在一个实施方式中,步骤S101包括:将所述过滤驱动程序预先安装在具有非微软驱动支持的主机控制器的所述主机中,然后在所述主机的注册表中查找大容量设备实例,并修改所述大容量设备实例的配置标识,其中,所述配置标识用于指示所述主机在检测到已插入(或已接入)的无线上网终端后为所述无线上网终端重新安装所述过滤驱动程序。In one embodiment, step S101 includes: pre-installing the filter driver in the host with a host controller supported by a non-Microsoft driver, then searching for a mass device instance in the registry of the host, and Modifying the configuration identifier of the large-capacity device instance, wherein the configuration identifier is used to instruct the host to reinstall the filter for the wireless Internet access terminal after detecting the inserted (or connected) wireless Internet access terminal driver.

在本实施方式中,所述过滤驱动程序只在非微软驱动支持的主机控制器的主机内核中运行驱动,保证在无线上网终端挂载在非微软驱动支持的主机控制器下的情况下,无线上网终端可以切换枚举为主机可识别设备。In this embodiment, the filter driver only runs the driver in the host kernel of the host controller not supported by the Microsoft driver, to ensure that the wireless Internet access terminal is mounted on the host controller not supported by the Microsoft driver. The Internet terminal can be switched to enumerate as a host-identifiable device.

在另一实施方式中,在步骤S101前,还包括环境检测步骤,所述环境检测步骤包括:获取所述主机中的每个主机控制器的友好名和驱动提供者,根据所述主机中的每个主机控制器的友好名和驱动提供者,确定所述主机中是否需要安装所述过滤驱动程序。In another embodiment, before step S101, an environment detection step is further included, and the environment detection step includes: acquiring the friendly name and driver provider of each host controller in the host, and according to each host controller in the host A friendly name of a host controller and a driver provider to determine whether the filter driver needs to be installed in the host.

在本实施方式中,若所述主机中的主机控制器的友好名中包含USB3.0,且驱动提供者不是微软,则说明所述主机中存在非微软驱动支持的主机控制器,此时确定所述主机中需要安装所述过滤驱动程序。In this implementation manner, if the friendly name of the host controller in the host includes USB3.0, and the driver provider is not Microsoft, it means that there is a host controller supported by a non-Microsoft driver in the host, and it is determined at this time The filter driver needs to be installed in the host.

在本实施方式中,若所述主机中的主机控制器的友好名中不包含USB3.0,或者所述主机中的主机控制器的友好名中包含USB3.0且驱动提供者是微软,则说明所述主机中存在的主机控制器均为微软驱动支持的主机控制器,此时确定所述主机中不需要安装所述过滤驱动程序。In this embodiment, if the friendly name of the host controller in the host does not include USB3.0, or the friendly name of the host controller in the host includes USB3.0 and the driver provider is Microsoft, then It means that the host controllers existing in the host are all host controllers supported by Microsoft drivers. In this case, it is determined that the filter driver does not need to be installed in the host.

步骤S102:利用所述过滤驱动程序,确定已插入所述主机的无线上网终端是否挂载在非微软驱动支持的主机控制器下。Step S102: Using the filter driver, it is determined whether the wireless Internet access terminal that has been inserted into the host is mounted under a host controller that is not supported by a Microsoft driver.

在一个实施方式中,步骤S102包括:利用所述过滤驱动程序,查询挂载关系,得到所述无线上网终端对应的所述主机控制器,若所述主机控制器的友好名中包含USB3.0,且驱动提供者不是微软,则确定所述无线上网终端挂载在非微软驱动支持的主机控制器下。In one embodiment, step S102 includes: using the filter driver to query the mount relationship to obtain the host controller corresponding to the wireless Internet access terminal, if the friendly name of the host controller includes USB3.0 , and the driver provider is not Microsoft, it is determined that the wireless Internet access terminal is mounted under a host controller supported by a non-Microsoft driver.

步骤S103:若确定所述无线上网终端挂载在非微软驱动支持的主机控制器下,则生成用来将所述无线上网终端切换为网络端口的切换指令包,并发送至所述无线上网终端。Step S103: If it is determined that the wireless Internet access terminal is mounted under a host controller not supported by a Microsoft driver, a switching instruction packet for switching the wireless Internet access terminal to a network port is generated, and sent to the wireless Internet access terminal .

在一个实施方式中,步骤S103包括:利用所述过滤驱动程序,创建USB请求块,将用来将所述无线上网终端切换为网络端口的系统描述符请求填充至所述USB请求块中,然后创建切换指令包(或指令包、I/O控制请求包、I/O请求包),并将已填充所述系统描述符请求的所述USB请求块填充至所述切换指令包中,并发送至所述无线上网终端。In one embodiment, step S103 includes: using the filter driver to create a USB request block, filling the USB request block with a system descriptor request for switching the wireless Internet access terminal to a network port, and then Create a switching instruction packet (or instruction packet, I/O control request packet, I/O request packet), and fill the USB request block filled with the system descriptor request into the switching instruction packet, and send to the wireless Internet access terminal.

在另一实施方式中,所述方法还包括:若确定所述无线上网终端挂载在微软驱动支持的主机控制器下,则不再利用所述过滤驱动程序向所述无线上网终端下发所述切换指令包,即所述过滤驱动程序不进行任何工作。In another embodiment, the method further includes: if it is determined that the wireless Internet access terminal is mounted under a host controller supported by a Microsoft driver, no longer use the filter driver to deliver the wireless Internet access terminal to the wireless Internet access terminal. The switching instruction packet, that is, the filter driver does not perform any work.

图2是本发明实施例提供的驱动系统结构示意图,如图2所示,所述驱动系统可以包括:主机环境检测模块21、驱动安装模块22、终端挂载关系检测模块23、指令包处理模块24。FIG. 2 is a schematic structural diagram of a drive system provided by an embodiment of the present invention. As shown in FIG. 2 , the drive system may include: a host environment detection module 21 , a driver installation module 22 , a terminal mount relationship detection module 23 , and an instruction packet processing module twenty four.

所述主机环境检测模块21,用于检测终端即将工作的主机上是否有非系统自带驱动支持(或非系统驱动支持、windows操作系统自带驱动不支持、系统自带驱动不支持、系统驱动不支持)的主机控制器。The host environment detection module 21 is used to detect whether there is a non-system built-in driver support (or non-system built-in driver support, Windows operating system built-in driver does not support, system built-in driver does not support, system built-in driver does not support, system built-in driver does not support not supported) host controller.

所述驱动安装模块22,用于在有非系统自带驱动支持的主机控制器的主机环境下,将驱动(或过滤驱动、过滤驱动程序)预安装在主机系统中,指示操作系统每次发现终端,重新遍历驱动池,为所述终端安装驱动。The driver installation module 22 is used to pre-install the driver (or filter driver, filter driver) in the host system under the host environment of the host controller supported by the non-system built-in driver, instructing the operating system to find each time terminal, traverse the driver pool again, and install a driver for the terminal.

所述终端挂载关系检测模块23,用于检测终端插入到主机后具体挂载在哪个主机控制器下,如果挂载在非系统驱动支持的主机控制器下,指示过滤驱动进行指令包发送,如果终端挂载在系统驱动支持(或系统自带驱动支持、windows操作系统自带驱动支持)的主机控制器下,过滤驱动不进行指令包发送。The terminal mounting relationship detection module 23 is used to detect which host controller the terminal is specifically mounted on after being inserted into the host. If the terminal is mounted on a host controller supported by the system driver (or supported by the system's built-in driver and the Windows operating system's built-in driver), the filter driver will not send command packets.

所述指令包处理模块24,用于接收终端挂载关系检测模块23的的指示,如果需要发送指令包,则进行指令包组包及发送,保证终端的正常切换。The instruction packet processing module 24 is used to receive an instruction from the terminal mounting relationship detection module 23, and if an instruction packet needs to be sent, the instruction packet is grouped and sent to ensure normal switching of the terminal.

图3是图2的主机环境检测模块21的流程示意图,如图3所示,所述主机环境检测模块21的工作流程可以包括以下步骤:FIG. 3 is a schematic flowchart of the host environment detection module 21 of FIG. 2 . As shown in FIG. 3 , the workflow of the host environment detection module 21 may include the following steps:

步骤S301至步骤S303:主机环境检测模块21打开主机上的主机控制器,得到该主机控制器的设备句柄,通过设备句柄得到主机控制器键名称(或主机控制器驱动键名称),通过主机控制器键名称得到主机控制器的友好名和驱动提供者。Steps S301 to S303: the host environment detection module 21 opens the host controller on the host, obtains the device handle of the host controller, obtains the host controller key name (or host controller drive key name) through the device handle, and controls the host through the host controller. The device key name gets the friendly name of the host controller and driver provider.

步骤S304至步骤S306:如果主机上所有的主机控制器友好名都没有USB3.0字样,则认为该主机环境中不需要安装下发系统描述符请求的过滤驱动,如果主机上有带USB3.0字样的主机控制器友好名,则进一步获得该主机控制器驱动的提供者,判断提供者是不是微软,只要该主机上有一个非微软驱动支持(即微软驱动不支持)的主机控制器,则记录该环境需要安装过滤驱动。Steps S304 to S306: If all the host controller friendly names on the host do not have the word USB3.0, it is considered that the host environment does not need to install the filter driver for issuing the system descriptor request. If there is a friendly name of the host controller in the words, it will further obtain the provider of the host controller driver, and determine whether the provider is Microsoft. Recording this environment requires installing a filter driver.

图4是图2的驱动安装模块22的流程示意图,如图4所示,所述驱动安装模块22的工作流程可以包括以下步骤:FIG. 4 is a schematic flowchart of the driver installation module 22 of FIG. 2 . As shown in FIG. 4 , the workflow of the driver installation module 22 may include the following steps:

步骤S401:将驱动(或过滤驱动、过滤驱动程序)预安装在主机系统中。Step S401: Pre-install the driver (or filter driver, filter driver) in the host system.

步骤S402至步骤S404:若驱动预安装成功,则在注册表中进行终端大容量存储器设备实例的寻找,在该实例下修改ConfigFlags的值,目的是使主机系统每次重新发现终端的大容量设备时,都到驱动池中为该大容量设备重新寻找并安装驱动。Steps S402 to S404: if the driver is pre-installed successfully, search for the terminal mass storage device instance in the registry, and modify the value of ConfigFlags under this instance, the purpose is to make the host system rediscover the terminal mass device every time. At the same time, go to the driver pool to find and install the driver for the large-capacity device again.

图5是图2的指令包处理模块24的流程示意图,如图5所示,所述指令包处理模块24的工作流程可以包括以下步骤:FIG. 5 is a schematic flowchart of the instruction packet processing module 24 of FIG. 2 . As shown in FIG. 5 , the workflow of the instruction packet processing module 24 may include the following steps:

步骤S501至步骤S502:在启动设备请求的处理后,首先判断终端挂载关系模块23的结果,如果终端挂载在系统驱动支持的主机控制器下,则过滤驱动不进行指令包发送操作,如果终端挂载在非系统驱动支持的主机控制器下,则进行下面的指令包发送处理。Steps S501 to S502: after starting the processing of the device request, first determine the result of the terminal mounting relationship module 23, if the terminal is mounted under the host controller supported by the system driver, the filter driver does not perform the command packet sending operation, if If the terminal is mounted under the host controller not supported by the system driver, the following command packet sending processing is performed.

步骤S503:为USB请求块(USB Request Block,URB)分配内存,然后构建一个自定义命令URB控制传输,把URB结构中的各个域填入请求要求的内容,其中系统描述符请求填充到传输buffer中。Step S503: Allocate memory for the USB Request Block (URB), then construct a custom command URB to control the transmission, fill each field in the URB structure with the content required by the request, and fill the system descriptor request to the transmission buffer middle.

步骤S504:创建一个内部I/O控制请求。Step S504: Create an internal I/O control request.

步骤S505:携带系统描述符请求的URB的地址填入I/O控制请求的IO栈的Parameters.Others的Argument1域。Step S505: The address of the URB carrying the system descriptor request is filled in the Argument1 field of Parameters.Others of the IO stack of the I/O control request.

步骤S506:发送URB请求到下一层驱动程序,USB驱动程序(USBD)将该指令包发到终端。至此,终端接收到切换指令,完成光盘到网络端口的切换。Step S506: Send the URB request to the next-layer driver, and the USB driver (USBD) sends the instruction packet to the terminal. So far, the terminal receives the switching instruction and completes the switching from the optical disc to the network port.

图6是本发明实施例提供的安装过滤驱动程序的流程示意图,如图6所示,所述安装过滤驱动程序的流程可以包括以下步骤:FIG. 6 is a schematic flowchart of installing a filter driver provided by an embodiment of the present invention. As shown in FIG. 6 , the process of installing a filter driver may include the following steps:

步骤S601:通过HCDx打开主机上所有的主机控制器,其中x是从0到9的序列号,如果打开成功,则可以得到该主机控制器的设备句柄。Step S601: Open all host controllers on the host through HCDx, where x is a serial number from 0 to 9. If the opening is successful, the device handle of the host controller can be obtained.

步骤S602:通过设备句柄得到主机控制器键名称(或主机控制器驱动键名称)。Step S602: Obtain the host controller key name (or host controller drive key name) through the device handle.

步骤S603:通过控制器键名称(或主机控制器驱动键名称)得到主机控制器的友好名。Step S603: Obtain the friendly name of the host controller through the controller key name (or the host controller drive key name).

步骤S604:判断主机控制器友好名有没有USB3.0字样,如果没有USB3.0字样,则不必继续关注该主机控制器的信息,执行步骤S609,即查看下一个主机控制器的信息,如果所有主机控制器都没有USB3.0字样,则执行步骤S610,即不进行过滤驱动安装;如果遇到有USB3.0字样的主机控制器,则进行下一步S605的操作。Step S604: Determine whether the friendly name of the host controller has the word USB3.0, if there is no word USB3.0, you do not need to continue to pay attention to the information of the host controller, and perform step S609, that is, check the information of the next host controller, if all If the host controller does not have the word USB3.0, step S610 is performed, that is, the filter driver installation is not performed; if a host controller with the word USB3.0 is encountered, the next step S605 is performed.

步骤S605:获得上述主机控制器驱动的提供者。Step S605: Obtain the provider of the host controller driver.

步骤S606:判断驱动提供者是不是微软,如果是微软,则需要执行步骤S609,即查看下一个主机控制器信息,如果剩下的3.0的主机控制器的驱动也都是微软的,则执行步骤S610,即不进行过滤驱动安装,否则进行下一步S607的操作。Step S606: Determine whether the driver provider is Microsoft. If it is Microsoft, then step S609 needs to be performed, that is, the next host controller information is checked. If the drivers of the remaining 3.0 host controllers are also Microsoft, then step S609 is performed. S610, that is, no filter driver installation is performed, otherwise, the next step S607 is performed.

步骤S607:在该主机上预安装终端的大容量设备的过滤驱动。Step S607: Pre-install the filter driver of the terminal's large-capacity device on the host.

步骤S608:指示操作系统每次发现终端的大容量设备时,都重新为大容量设备寻找并安装驱动。Step S608: Instruct the operating system to search for and install a driver for the large-capacity device again every time the operating system discovers the large-capacity device of the terminal.

至此,就在有非系统驱动支持的USB3.0主机控制器的主机中,预安装了终端的过滤驱动,等待终端插入主机中继续工作就可以了。So far, the filter driver of the terminal is pre-installed in the host with a USB3.0 host controller that is not supported by the system driver, and it is enough to wait for the terminal to be inserted into the host to continue working.

图7是本发明实施例提供的终端从插入主机到完成切换的流程示意图,如图7所示,终端从插入主机到完成切换的流程可以包括以下步骤:7 is a schematic flowchart of a terminal from being inserted into a host to completing a handover provided by an embodiment of the present invention. As shown in FIG. 7 , the process of a terminal from being inserted into a host to completing the handover may include the following steps:

步骤S701:终端插入有非系统驱动支持的控制器的主机中。Step S701: The terminal is inserted into a host computer with a controller not supported by a system driver.

步骤S702:系统发现终端上报的大容量设备,为大容量设备重新寻找并安装驱动,过滤驱动加载成功。Step S702: The system finds the large-capacity device reported by the terminal, re-searches for and installs the driver for the large-capacity device, and the filter driver is loaded successfully.

步骤S703:过滤驱动的终端挂载关系模块检测终端挂载在哪个主机控制器。Step S703: The filter-driven terminal mounting relationship module detects which host controller the terminal is mounted on.

步骤S704:如果挂载在系统驱动支持的主机控制器下,指示过滤驱动不发送切换指令包;如果终端挂载在非系统驱动支持的主机控制器下,指示过滤驱动进行切换指令包发送。Step S704: If the terminal is mounted on the host controller supported by the system driver, instruct the filter driver not to send the switching instruction packet; if the terminal is mounted on the host controller not supported by the system driver, instruct the filter driver to send the switching instruction packet.

步骤S705:过滤驱动接收到设备启动请求。Step S705: The filter driver receives the device startup request.

步骤S706:过滤驱动在设备启动请求中,创建URB,为URB分配内存,然后填充URB结构中的各个域,其中系统描述符请求填充到传输buffer中。Step S706: The filter driver creates a URB in the device startup request, allocates memory for the URB, and then fills each field in the URB structure, wherein the system descriptor request is filled into the transmission buffer.

步骤S707:创建一个内部I/O控制请求(或I/O请求包)。Step S707: Create an internal I/O control request (or I/O request package).

步骤S708:将携带系统描述符请求的URB的地址填入I/O控制请求的IO栈的Parameters.Others的Argument1域。Step S708: Fill the address of the URB carrying the system descriptor request into the Argument1 field of Parameters.Others of the IO stack of the I/O control request.

步骤S709:发送URB请求到下一层驱动程序,USBD将该指令包发到终端,终端接收到切换指令,完成光盘到网络端口的切换。Step S709: Send the URB request to the next-layer driver, the USBD sends the instruction packet to the terminal, and the terminal receives the switching instruction to complete the switching from the optical disc to the network port.

针对无线上网终端挂载在非微软驱动支持的主机控制器下的情况,无法保证无线上网终端枚举切换为主机可识别设备的问题,目前采用的方案为,驻留在系统中的服务检测到终端枚举的光盘后,给终端发送与终端协商好的小型计算机系统接口(SmallComputer System Interface,SCSI)指令,终端接收到让自己从光盘切换到网络设备的指令时,终端完成切换。在这种方案中,由于服务需要等系统上的光盘就绪后才能发送切换指令,切换时间比较长,而且系统休眠情况下有时会出现服务启动异常问题,导致终端一直停留在光盘,需要用户手动弹出光盘。终端才能枚举出网络端口,用户体验不好。从上述实施例可以看出,本发明实施例的驱动系统可以发送终端已经支持的系统描述符请求,而不是发送与终端协商的自定义请求,保证了终端固件在不进行任何修改的情况下完成终端的正常切换;其中,驱动下发的系统描述符请求是USB请求,因此不必等待终端在主机上的光盘功能就绪才能下发,较SCSI指令的下发时机可以提前,终端切换更快;并且驱动系统进行了环境检测和挂载终端的主机控制器检测,保证了只在有非操作系统驱动支持的主机控制器的主机内核中运行驱动,避免了所有系统安装使用驱动而出现的驱动稳定性和兼容性带来的不良体验的发生。In view of the situation that the wireless Internet access terminal is mounted on a host controller not supported by Microsoft drivers, it cannot be guaranteed that the enumeration of the wireless Internet access terminal can be switched to a host-identifiable device. The current solution is that the service residing in the system detects After the terminal enumerates the optical disc, it sends a Small Computer System Interface (SCSI) command negotiated with the terminal to the terminal. When the terminal receives the command to switch itself from the optical disc to the network device, the terminal completes the switch. In this solution, because the service needs to wait for the CD on the system to be ready before sending the switching command, the switching time is relatively long, and sometimes the service startup is abnormal when the system is in hibernation, resulting in the terminal staying on the CD all the time, requiring the user to manually eject CD. Only the terminal can enumerate the network ports, and the user experience is not good. It can be seen from the above embodiments that the drive system of the embodiment of the present invention can send a request for a system descriptor already supported by the terminal, instead of sending a custom request negotiated with the terminal, which ensures that the terminal firmware can be completed without any modification. The normal switching of the terminal; among them, the system descriptor request issued by the driver is a USB request, so it is not necessary to wait for the CD-ROM function of the terminal on the host to be ready before it can be issued. Compared with the issuing timing of the SCSI command, the terminal switching is faster; and The driver system has carried out the environment detection and the host controller detection of the mounted terminal, which ensures that the driver can only be run in the host kernel of the host controller supported by the non-operating system driver, and avoids the driver stability caused by the installation and use of the driver in all systems. And the occurrence of bad experience caused by compatibility.

图8是本发明实施例提供的一种用于无线上网的驱动装置的示意性结构框图,如图8所示,所述装置可以包括:安装模块81、确定模块82和发送模块83。FIG. 8 is a schematic structural block diagram of a driving device for wireless Internet access provided by an embodiment of the present invention. As shown in FIG. 8 , the device may include an installation module 81 , a determination module 82 and a transmission module 83 .

所述安装模块81,用于在主机中安装过滤驱动程序。The installation module 81 is used to install the filter driver in the host.

在一个实施方式中,所述安装模块81将所述过滤驱动程序预先安装在具有非微软驱动支持的主机控制器的所述主机中,然后在所述主机的注册表中查找大容量设备实例,并修改所述大容量设备实例的配置标识,其中,所述配置标识用于指示所述主机在检测到已插入(或已接入)的无线上网终端后为所述无线上网终端重新安装所述过滤驱动程序。In one embodiment, the installation module 81 pre-installs the filter driver in the host with a non-Microsoft driver-supported host controller, and then searches the registry of the host for a mass device instance, And modify the configuration identifier of the large-capacity device instance, wherein the configuration identifier is used to instruct the host to reinstall the wireless Internet access terminal for the wireless Internet access terminal after detecting the inserted (or connected) wireless Internet access terminal. Filter driver.

在本实施方式中,所述过滤驱动程序只在非微软驱动支持的主机控制器的主机内核中运行驱动,保证在无线上网终端挂载在非微软驱动支持的主机控制器下的情况下,无线上网终端可以切换枚举为主机可识别设备。In this embodiment, the filter driver only runs the driver in the host kernel of the host controller not supported by the Microsoft driver, to ensure that the wireless Internet access terminal is mounted on the host controller not supported by the Microsoft driver. The Internet terminal can be switched to enumerate as a host-identifiable device.

在另一实施方式中,所述安装模块81还用于在主机中安装过滤驱动程序之前,进行环境检测步骤,即获取所述主机中的每个主机控制器的友好名和驱动提供者,根据所述主机中的每个主机控制器的友好名和驱动提供者,确定所述主机中是否需要安装所述过滤驱动程序。In another embodiment, the installation module 81 is further configured to perform an environment detection step before installing the filter driver in the host, that is, to obtain the friendly name and driver provider of each host controller in the host, according to the The friendly name and driver provider of each host controller in the host are used to determine whether the filter driver needs to be installed in the host.

在本实施方式中,若所述主机中的主机控制器的友好名中包含USB3.0,且驱动提供者不是微软,则说明所述主机中存在非微软驱动支持的主机控制器,此时所述安装模块81确定所述主机中需要安装所述过滤驱动程序。In this embodiment, if the friendly name of the host controller in the host includes USB3.0, and the driver provider is not Microsoft, it means that there is a host controller supported by non-Microsoft drivers in the host. The installation module 81 determines that the filter driver needs to be installed in the host.

在本实施方式中,若所述主机中的主机控制器的友好名中不包含USB3.0,或者所述主机中的主机控制器的友好名中包含USB3.0且驱动提供者是微软,则说明所述主机中存在的主机控制器均为微软驱动支持的主机控制器,此时所述安装模块81确定所述主机中不需要安装所述过滤驱动程序。In this embodiment, if the friendly name of the host controller in the host does not include USB3.0, or the friendly name of the host controller in the host includes USB3.0 and the driver provider is Microsoft, then It means that the host controllers existing in the host are all host controllers supported by Microsoft drivers. At this time, the installation module 81 determines that the filter driver does not need to be installed in the host.

所述确定模块82,用于利用所述过滤驱动程序,确定已插入所述主机的无线上网终端是否挂载在非微软驱动支持的主机控制器下。The determining module 82 is configured to use the filter driver to determine whether the wireless Internet access terminal that has been inserted into the host is mounted under a host controller supported by a non-Microsoft driver.

在一个实施方式中,所述确定模块82利用所述过滤驱动程序,查询挂载关系,得到所述无线上网终端对应的所述主机控制器,若所述主机控制器的友好名中包含USB3.0,且驱动提供者不是微软,则确定所述无线上网终端挂载在非微软驱动支持的主机控制器下。In one embodiment, the determination module 82 uses the filter driver to query the mount relationship to obtain the host controller corresponding to the wireless Internet access terminal, if the friendly name of the host controller includes USB3. 0, and the driver provider is not Microsoft, it is determined that the wireless Internet access terminal is mounted under a host controller supported by a non-Microsoft driver.

所述发送模块83,用于若确定所述无线上网终端挂载在非微软驱动支持的主机控制器下,则生成用来将所述无线上网终端切换为网络端口的切换指令包,并发送至所述无线上网终端。The sending module 83 is configured to generate a switching instruction packet for switching the wireless Internet access terminal to a network port if it is determined that the wireless Internet access terminal is mounted under a host controller not supported by a Microsoft driver, and send it to the wireless Internet access terminal.

在一个实施方式中,所述发送模块83利用所述过滤驱动程序,创建USB请求块,将用来将所述无线上网终端切换为网络端口的系统描述符请求填充至所述USB请求块中,然后创建切换指令包,并将已填充所述系统描述符请求的所述USB请求块填充至所述切换指令包中,并发送至所述无线上网终端。In one embodiment, the sending module 83 uses the filter driver to create a USB request block, and fills the USB request block with a system descriptor request for switching the wireless Internet access terminal to a network port, Then, a switching instruction packet is created, and the USB request block filled with the system descriptor request is filled into the switching instruction packet, and sent to the wireless Internet access terminal.

在另一实施方式中,所述发送模块83还用于若确定所述无线上网终端挂载在微软驱动支持的主机控制器下,则不再利用所述过滤驱动程序向所述无线上网终端下发所述切换指令包。In another embodiment, the sending module 83 is further configured to, if it is determined that the wireless Internet access terminal is mounted under the host controller supported by the Microsoft driver, no longer use the filter driver to download to the wireless Internet access terminal Send the switching instruction packet.

图9是本发明实施例提供的一种用于无线上网的驱动设备的示意性结构框图,如图9所示,所述设备可以包括:处理器91及存储器92,所述存储器92上存储有可在所述处理器91上运行的用于无线上网的驱动程序,所述用于无线上网的驱动程序被所述处理器91执行时所述的用于无线上网的驱动方法的步骤。FIG. 9 is a schematic structural block diagram of a driving device for wireless Internet access provided by an embodiment of the present invention. As shown in FIG. 9 , the device may include: a processor 91 and a memory 92, where the memory 92 stores The driver program for wireless Internet access that can be run on the processor 91, and the steps of the driving method for wireless Internet access described when the driver program for wireless Internet access is executed by the processor 91.

本发明实施例还提供一种计算机可读介质,其上存储有用于无线上网的驱动程序,所述用于无线上网的驱动程序被处理器执行时实现所述的用于无线上网的驱动方法的步骤。Embodiments of the present invention further provide a computer-readable medium on which a driver for wireless Internet access is stored, and when the driver for wireless Internet access is executed by a processor, the driving method for wireless Internet access is implemented. step.

本领域普通技术人员可以理解,上文中所公开方法中的全部或某些步骤、系统、装置中的功能模块/单元可以被实施为软件、固件、硬件及其适当的组合。在硬件实施方式中,在以上描述中提及的功能模块/单元之间的划分不一定对应于物理组件的划分;例如,一个物理组件可以具有多个功能,或者一个功能或步骤可以由若干物理组件合作执行。某些物理组件或所有物理组件可以被实施为由处理器,如中央处理器、数字信号处理器或微处理器执行的软件,或者被实施为硬件,或者被实施为集成电路,如专用集成电路。这样的软件可以分布在计算机可读介质上,计算机可读介质可以包括计算机存储介质(或非暂时性介质)和通信介质(或暂时性介质)。如本领域普通技术人员公知的,术语计算机存储介质包括在用于存储信息(诸如计算机可读指令、数据结构、程序模块或其他数据)的任何方法或技术中实施的易失性和非易失性、可移除和不可移除介质。计算机存储介质包括但不限于RAM、ROM、EEPROM、闪存或其他存储器技术、CD-ROM、数字多功能盘(DVD)或其他光盘存储、磁盒、磁带、磁盘存储或其他磁存储装置、或者可以用于存储期望的信息并且可以被计算机访问的任何其他的介质。此外,本领域普通技术人员公知的是,通信介质通常包含计算机可读指令、数据结构、程序模块或者诸如载波或其他传输机制之类的调制数据信号中的其他数据,并且可包括任何信息递送介质。Those of ordinary skill in the art can understand that all or some of the steps in the methods disclosed above, functional modules/units in the systems, and devices can be implemented as software, firmware, hardware, and appropriate combinations thereof. In a hardware implementation, the division between functional modules/units mentioned in the above description does not necessarily correspond to the division of physical components; for example, one physical component may have multiple functions, or one function or step may be composed of several physical components Components execute cooperatively. Some or all physical components may be implemented as software executed by a processor, such as a central processing unit, digital signal processor or microprocessor, or as hardware, or as an integrated circuit, such as an application specific integrated circuit . Such software may be distributed on computer-readable media, which may include computer storage media (or non-transitory media) and communication media (or transitory media). As known to those of ordinary skill in the art, the term computer storage media includes both volatile and nonvolatile implemented in any method or technology for storage of information, such as computer readable instructions, data structures, program modules or other data flexible, removable and non-removable media. Computer storage media include, but are not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disk (DVD) or other optical disk storage, magnetic cartridges, magnetic tape, magnetic disk storage or other magnetic storage devices, or may Any other medium used to store desired information and which can be accessed by a computer. In addition, communication media typically embodies computer readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transport mechanism, and can include any information delivery media, as is well known to those of ordinary skill in the art .

本发明实施例的驱动系统依靠终端大容量设备的过滤驱动下发终端已经支持的系统描述符请求,而不是发送与终端协商的自定义请求,保证了终端固件在不进行任何修改的情况下完成终端的正常切换;该驱动系统进行了环境检测和挂载终端的主机控制器检测,保证了只在有问题的主机内核中运行驱动(即在非微软驱动支持的主机控制器中运行过滤驱动),避免了所有系统安装使用驱动,出现驱动稳定性和兼容性带来的不良体验的发生;驱动下发的系统描述符请求是USB请求,不必等到终端在主机上的光盘功能就绪才能下发,较下发SCSI指令的时机可以提前,使得终端更快的完成切换。The drive system of the embodiment of the present invention relies on the filter driver of the terminal's large-capacity device to issue the system descriptor request already supported by the terminal, instead of sending a custom request negotiated with the terminal, which ensures that the terminal firmware can be completed without any modification. The normal switching of the terminal; the driver system performs the environment detection and the host controller detection of the mounted terminal to ensure that the driver is only run in the host kernel in question (that is, the filter driver is run in the host controller that is not supported by the Microsoft driver) , to avoid the occurrence of bad experience caused by driver stability and compatibility when all systems install and use the driver; the system descriptor request issued by the driver is a USB request, and it is not necessary to wait for the CD-ROM function of the terminal on the host to be ready. The timing of issuing the SCSI command can be earlier, so that the terminal can complete the handover more quickly.

尽管上文对本发明实施例进行了详细说明,但是本发明实施例不限于此,本技术领域技术人员可以根据本发明实施例的原理进行各种修改。因此,凡按照本发明实施例原理所作的修改,都应当理解为落入本发明的保护范围。Although the embodiments of the present invention are described in detail above, the embodiments of the present invention are not limited thereto, and various modifications can be made by those skilled in the art according to the principles of the embodiments of the present invention. Therefore, all modifications made according to the principles of the embodiments of the present invention should be understood as falling within the protection scope of the present invention.

Claims (10)

1.一种用于无线上网的驱动方法,其特征在于,所述方法包括:1. a driving method for wireless Internet access, characterized in that the method comprises: 在主机中安装过滤驱动程序;Install the filter driver in the host; 利用所述过滤驱动程序,确定已插入所述主机的无线上网终端是否挂载在非微软驱动支持的主机控制器下;Using the filter driver, determine whether the wireless Internet access terminal that has been inserted into the host is mounted under a host controller not supported by a Microsoft driver; 若确定所述无线上网终端挂载在非微软驱动支持的主机控制器下,则生成用来将所述无线上网终端切换为网络端口的切换指令包,并发送至所述无线上网终端。If it is determined that the wireless surfing terminal is mounted under a host controller not supported by a Microsoft driver, a switching instruction packet for switching the wireless surfing terminal to a network port is generated and sent to the wireless surfing terminal. 2.根据权利要求1所述的方法,其特征在于,所述在主机中安装并加载过滤驱动程序之前,还包括:2. The method according to claim 1, wherein before installing and loading the filter driver in the host, the method further comprises: 获取所述主机中的每个主机控制器的友好名和驱动提供者;Obtain the friendly name and driver provider of each host controller in the host; 根据所述主机中的每个主机控制器的友好名和驱动提供者,确定所述主机中是否需要安装所述过滤驱动程序。Whether the filter driver needs to be installed in the host is determined according to the friendly name and driver provider of each host controller in the host. 3.根据权利要求2所述的方法,其特征在于,所述根据所述主机中的每个主机控制器的友好名和驱动提供者,确定所述主机中是否需要安装所述过滤驱动程序包括:3. The method according to claim 2, wherein the determining whether the filter driver needs to be installed in the host according to the friendly name and driver provider of each host controller in the host comprises: 若所述主机中的主机控制器的友好名中包含USB3.0,且驱动提供者不是微软,则确定所述主机中需要安装所述过滤驱动程序。If the friendly name of the host controller in the host includes USB3.0, and the driver provider is not Microsoft, it is determined that the filter driver needs to be installed in the host. 4.根据权利要求1-3任意一项所述的方法,其特征在于,所述在主机中安装过滤驱动程序包括:4. The method according to any one of claims 1-3, wherein the installing the filter driver in the host comprises: 将所述过滤驱动程序预先安装在具有非微软驱动支持的主机控制器的所述主机中;pre-installing the filter driver in the host having a non-Microsoft driver-supported host controller; 在所述主机的注册表中查找大容量设备实例,并修改所述大容量设备实例的配置标识,其中,所述配置标识用于指示所述主机在检测到已插入的无线上网终端后为所述无线上网终端重新安装所述过滤驱动程序。Look up a large-capacity device instance in the registry of the host, and modify the configuration identifier of the high-capacity device instance, where the configuration identifier is used to indicate that the host is the The wireless Internet access terminal reinstalls the filter driver. 5.根据权利要求1所述的方法,其特征在于,所述利用所述过滤驱动程序,确定已插入所述主机的无线上网终端是否挂载在非微软驱动支持的主机控制器下包括:5. The method according to claim 1, characterized in that, determining whether the wireless Internet access terminal that has been inserted into the host is mounted under a host controller supported by a non-Microsoft driver by using the filter driver program comprises: 利用所述过滤驱动程序,查询挂载关系,得到所述无线上网终端对应的所述主机控制器;Using the filter driver, query the mount relationship to obtain the host controller corresponding to the wireless Internet access terminal; 若所述主机控制器的友好名中包含USB3.0,且驱动提供者不是微软,则确定所述无线上网终端挂载在非微软驱动支持的主机控制器下。If the friendly name of the host controller includes USB3.0, and the driver provider is not Microsoft, it is determined that the wireless Internet access terminal is mounted under a host controller supported by a non-Microsoft driver. 6.根据权利要求1所述的方法,其特征在于,所述若确定所述无线上网终端挂载在非微软驱动支持的主机控制器下,则生成用来将所述无线上网终端切换为网络端口的切换指令包,并发送至所述无线上网终端包括:6. The method according to claim 1, characterized in that, if it is determined that the wireless Internet access terminal is mounted under a host controller supported by a non-Microsoft driver, then the generation is used to switch the wireless Internet access terminal to a network The port switching instruction packet sent to the wireless Internet access terminal includes: 利用所述过滤驱动程序,将用来将所述无线上网终端切换为网络端口的系统描述符请求填充至USB请求块中;Using the filter driver, filling the USB request block with a system descriptor request for switching the wireless Internet access terminal to a network port; 将已填充所述系统描述符请求的所述USB请求块填充至切换指令包中,并发送至所述无线上网终端。Filling the USB request block filled with the system descriptor request into a switching instruction packet, and sending it to the wireless Internet access terminal. 7.根据权利要求6所述的方法,其特征在于,所述方法还包括:7. The method according to claim 6, wherein the method further comprises: 若确定所述无线上网终端挂载在微软驱动支持的主机控制器下,则不再利用所述过滤驱动程序向所述无线上网终端下发所述切换指令包。If it is determined that the wireless Internet access terminal is mounted under the host controller supported by the Microsoft driver, the filter driver is no longer used to deliver the switching instruction packet to the wireless Internet access terminal. 8.一种用于无线上网的驱动装置,其特征在于,所述装置包括:8. A driving device for wireless Internet access, wherein the device comprises: 安装模块,用于在主机中安装过滤驱动程序;Install module for installing the filter driver in the host; 确定模块,用于利用所述过滤驱动程序,确定已插入所述主机的无线上网终端是否挂载在非微软驱动支持的主机控制器下;a determining module, configured to use the filter driver to determine whether the wireless Internet access terminal that has been inserted into the host is mounted under a host controller supported by a non-Microsoft driver; 发送模块,用于若确定所述无线上网终端挂载在非微软驱动支持的主机控制器下,则生成用来将所述无线上网终端切换为网络端口的切换指令包,并发送至所述无线上网终端。The sending module is configured to generate a switching instruction packet for switching the wireless Internet access terminal to a network port if it is determined that the wireless Internet access terminal is mounted under a host controller supported by a non-Microsoft driver, and send it to the wireless Internet access terminal. Internet terminal. 9.一种用于无线上网的驱动设备,所述设备包括:处理器及存储器,其特征在于,所述存储器上存储有可在所述处理器上运行的用于无线上网的驱动程序,所述用于无线上网的驱动程序被所述处理器执行时实现如权利要求1至7中任一项所述的用于无线上网的驱动方法的步骤。9. A drive device for wireless Internet access, the device comprising: a processor and a memory, wherein the memory stores a driver for wireless Internet access that can be run on the processor, so When the driver for wireless Internet access is executed by the processor, the steps of the driving method for wireless Internet access according to any one of claims 1 to 7 are implemented. 10.一种计算机可读介质,其特征在于,其上存储有用于无线上网的驱动程序,所述用于无线上网的驱动程序被处理器执行时实现如权利要求1至7中任一项所述的用于无线上网的驱动方法的步骤。10. A computer-readable medium, characterized in that a driver for wireless Internet access is stored thereon, and the driver for wireless Internet access is implemented as described in any one of claims 1 to 7 when the processor is executed. The steps of the described driving method for wireless Internet access.
CN201811254922.XA 2018-10-26 2018-10-26 Driving method and device for wireless internet access and computer readable medium Withdrawn CN111104170A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811254922.XA CN111104170A (en) 2018-10-26 2018-10-26 Driving method and device for wireless internet access and computer readable medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811254922.XA CN111104170A (en) 2018-10-26 2018-10-26 Driving method and device for wireless internet access and computer readable medium

Publications (1)

Publication Number Publication Date
CN111104170A true CN111104170A (en) 2020-05-05

Family

ID=70418897

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811254922.XA Withdrawn CN111104170A (en) 2018-10-26 2018-10-26 Driving method and device for wireless internet access and computer readable medium

Country Status (1)

Country Link
CN (1) CN111104170A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101609408A (en) * 2009-06-19 2009-12-23 中兴通讯股份有限公司 A method and system for realizing self-starting of terminal equipment
CN102088797A (en) * 2011-01-30 2011-06-08 中兴通讯股份有限公司 Wireless communication method and system as well as wireless communication terminal
CN104216728A (en) * 2013-06-03 2014-12-17 中兴通讯股份有限公司 Method for connecting USB network card, USB network card and PC

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101609408A (en) * 2009-06-19 2009-12-23 中兴通讯股份有限公司 A method and system for realizing self-starting of terminal equipment
CN102088797A (en) * 2011-01-30 2011-06-08 中兴通讯股份有限公司 Wireless communication method and system as well as wireless communication terminal
CN104216728A (en) * 2013-06-03 2014-12-17 中兴通讯股份有限公司 Method for connecting USB network card, USB network card and PC

Similar Documents

Publication Publication Date Title
US10445258B1 (en) Method for creation of device drivers and device objects for peripheral devices
US6874060B2 (en) Distributed computer system including a virtual disk subsystem and method for providing a virtual local drive
US9442876B2 (en) System and method for providing network access for a processing node
US7970974B2 (en) Method and system for adding or removing a logical unit of a USB mass storage device
US11861349B2 (en) Modular firmware updates in an information handling system
US20180307498A1 (en) Driver Loading Method and Server
EP3783481B1 (en) Method and apparatus for upgrading virtualized emulator
JP5129770B2 (en) Network equipment
CN102272723A (en) System, apparatus, and method for fast startup of USB devices
CN107526653B (en) A virtual machine management method and server
US12159133B2 (en) Information handling system with a dynamic basic input/output system configuration map
WO2018113571A1 (en) Virtualized network element management method and device, and computer storage medium
US20160246596A1 (en) Systems and methods for selectively enabling and disabling hardware features
KR20100008363A (en) Physical network interface selection
CN113722147A (en) Method for keeping service connection and related equipment
KR20130003852A (en) System for providing remote device driver and mehtod for providing remote device driver
WO2020113478A1 (en) Address information processing method and apparatus, electronic device, and storage medium
EP2372565A1 (en) Method for managing USB devices
CN115221092B (en) Methods, apparatus, devices, and storage media for determining the assignable bus of a PCI-E card.
WO2013189388A2 (en) Usb network card access method, usb network card and pc
CN111104170A (en) Driving method and device for wireless internet access and computer readable medium
US9128873B2 (en) Memory bus attached input/output (‘I/O’) subsystem management in a computing system
US9619245B1 (en) Method and apparatus for configuring and booting with more than one protocol using single option ROMBIOS code on multi function converged network adapter
US8850174B1 (en) Method for dedicated netboot
CN118467042A (en) Data processor startup control method, system, device, equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
WW01 Invention patent application withdrawn after publication

Application publication date: 20200505

WW01 Invention patent application withdrawn after publication