WO2011066792A1 - 修改usb设备驱动匹配信息的方法及装置 - Google Patents

修改usb设备驱动匹配信息的方法及装置 Download PDF

Info

Publication number
WO2011066792A1
WO2011066792A1 PCT/CN2010/079326 CN2010079326W WO2011066792A1 WO 2011066792 A1 WO2011066792 A1 WO 2011066792A1 CN 2010079326 W CN2010079326 W CN 2010079326W WO 2011066792 A1 WO2011066792 A1 WO 2011066792A1
Authority
WO
WIPO (PCT)
Prior art keywords
information
driver
query
request
list
Prior art date
Application number
PCT/CN2010/079326
Other languages
English (en)
French (fr)
Inventor
蒋文春
薛贵荧
Original Assignee
华为终端有限公司
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 华为终端有限公司 filed Critical 华为终端有限公司
Priority to ES10834225T priority Critical patent/ES2404166T3/es
Priority to JP2012541309A priority patent/JP5360630B2/ja
Priority to EP10834225A priority patent/EP2447850B1/en
Publication of WO2011066792A1 publication Critical patent/WO2011066792A1/zh
Priority to US13/408,113 priority patent/US8527670B2/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/10Program control for peripheral devices
    • G06F13/102Program control for peripheral devices where the programme performs an interfacing function, e.g. device driver
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2213/00Indexing scheme relating to interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F2213/0042Universal serial bus [USB]

Definitions

  • a device driver matching string of a USB device mainly has the following three formats: First, by vid (vendor identification, device manufacturer identification), PID (product identification) , product identification) and MI (Multiple-Interface, product port) number composition, expressed as the following open type, vid_xxxx&pid-yyyy&mi-zz; the second, by vid, subclass (device subtype) and protocol (device protocol type) The composition, expressed as follows, vid—xxxx&subclass—yy&prot—zz; in the third, consisting of class (device type), subclass, and protocol, expressed as follows, class— xx&subclass—yy&prot—zz.
  • the first type and the second type can identify different manufacturers by Vid, but since the windows system does not support the second format, the third format cannot identify each manufacturer, so each OEM (original equipment manufacturer)
  • the manufactured USB device driver matching string mostly uses the device driver matching string of the first format.
  • each manufacturer usually has a set of drivers for all similar products, and different products are distinguished by different PIDs.
  • a device driver matching string table corresponding to the device needs to be preset in the operating system.
  • the device needs to be driven, it only needs to obtain the device driver matching string of the device, and find the device driver corresponding to the device driver matching string in the device driver matching string table.
  • a device driver matching string of one format has the drawback that the device driver matching string is limited by the device's PID. As long as the PID is changed, the driver matching file must be modified, thereby increasing the cost of maintenance and authentication. Summary of the invention Embodiments of the present invention provide a method and apparatus for modifying USB device driver matching information, so that after the PID or port number of the device is changed, the driver corresponding to the device can be determined without modifying the driver matching file, thereby saving drive maintenance and Certification cost.
  • a method for modifying USB device driver matching information including:
  • the filter driver intercepts the query device information request, and sends the intercepted query device information request to the enumeration driver;
  • the filter driver receives the device information returned by the enumeration driver according to the query device information request, and comprises, according to the returned device information and the compatibility information of the device, a device manufacturer identifier, a device subtype, and a device protocol. a type of device driver matching string;
  • the device driver matching string of the composition is sent to the plug and play manager.
  • a device for modifying USB device driver matching information including:
  • An information request obtaining module configured to intercept the query device information request when the plug and play manager sends a query device information request to the physical device object;
  • An information request sending module configured to send the query device information request intercepted by the information request obtaining module to the enumeration driver;
  • the information receiving module is configured to receive the device information returned by the enumeration driver according to the query device information request.
  • a component module configured to form, according to the returned device information and the compatibility information of the device, a device driver matching string that includes a device vendor identifier, a device subtype, and a device protocol type;
  • a string sending module configured to send the device driver matching string composed of the component modules to the plug and play manager.
  • a filtering driver is added to the enumeration driver, and the plug and play manager sends a query device information request to the physical device object, and the query device information request is intercepted by the filtering driver, and the enumeration is performed in the enumeration
  • the device driver matching string including the device manufacturer identifier, the device subtype, and the device protocol type is formed according to the returned device information and the device compatibility information, and
  • the device matching string is sent to the plug and play manager, so that the operating system can implement the device driver according to the vendor identifier, the device subtype, and the device protocol type information in the device driver matching string. match.
  • the device driver matching string of the device driver needs to be written according to the device subtype and the device protocol type.
  • the device driver matching string of the same type of device does not need to be rewritten, regardless of the product identifier or the product port number of the similar device.
  • FIG. 1 is a flowchart of a method for modifying USB device driver matching information according to Embodiment 1 of the present invention
  • FIG. 2 is a flowchart of a method for modifying USB device driver matching information according to Embodiment 2 of the present invention
  • FIG. 3 is a block diagram of a device for modifying USB device driver matching information according to Embodiment 3 of the present invention
  • Embodiment 4 is a block diagram of a device for modifying USB device driver matching information according to Embodiment 4 of the present invention.
  • the technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. It is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of them. Example. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
  • An embodiment of the present invention provides a method for modifying USB device driver matching information. As shown in FIG. 1, the method includes:
  • the filter driver intercepts the query device information request, and sends the intercepted query device information request to the enumeration driver; the filter driver is A new layer of drivers on the enumeration driver.
  • the intercepting the query device information request is sent to the enumeration driver, so that the enumeration driver returns the device information according to the query request, and the device information returned by the enumeration driver is a string format.
  • the device information may include a device manufacturer identifier, a product identifier, and a product port number, and the device information may be expressed as follows: vid_xxxx&pid-yyyy&mi-zz. 102.
  • the filter driver receives the device information returned by the enumeration driver according to the query device information, and comprises, according to the returned device information and the device compatibility information, a device manufacturer identifier, a device subtype, and
  • the device driver type matching string of the device protocol type, the device driver matching string can be expressed as follows: vid—xxxx&subclass—yy&prot— zz.
  • the compatibility information of the device is a string format, and the compatibility information may include a device type, a device subtype, and a device protocol type, and the compatibility information may be expressed as follows: class—xx&subclass—yy&prot—zz; Before the filtering driver forms a device driver matching string including the device manufacturer identifier, the device subtype, and the device protocol type, the filtering driver may pass the physical device to the physical device according to the returned device information and the compatibility information of the device. The object sends a query device compatibility information request to obtain compatibility information of the device.
  • a filtering driver is added to the enumeration driver, and the plug and play manager sends a query device information request to the physical device object, and the query device information request is intercepted by the filtering driver, and the enumeration is performed in the enumeration
  • the device driver matching string including the device manufacturer identifier, the device subtype, and the device protocol type is formed according to the returned device information and the device compatibility information, and
  • the device matching string is sent to the plug and play manager, so that the operating system can implement the device driver according to the vendor identifier, the device subtype, and the device protocol type information in the device driver matching string. match.
  • the technical solution of the present invention for a device manufacturer, only the device driver matching string of the device driver needs to be written according to the device subtype and the device protocol type, so that the driver matching of the same device can be realized. After the product identification or product port number of the similar equipment changes, it is not necessary to rewrite the device driver matching string of the same type of equipment, so that the device driver matching string of the same type of similar products can be developed once, reused, and mass-produced. This can greatly reduce the cost of drive maintenance and certification.
  • An embodiment of the present invention provides a method for modifying USB device driver matching information. As shown in FIG. 2, the method includes:
  • the filter driver intercepts the query device list request, and sends the intercepted query device list request to the enumeration driver; Pie Give the driver a new layer of drivers.
  • the intercepted query device list request is sent to the enumeration driver, so that the enumeration driver enumerates all the devices according to the query device list request, and returns the enumerated device list of all devices to the plug-in Ready to use the manager. Further, in order to enable the filtering driver to learn, the enumeration driver requests to enumerate all the devices according to the query device list request, and may complete a callback for the query device list after intercepting the query device list request. function.
  • the filtering driver receives the device list returned by the enumeration driver according to the query device list request, according to the device list.
  • Each device in the device list creates a filter device object and adds the created filter device object to the corresponding child device stack.
  • the system may automatically invoke the completion callback function for registering the query device list request to perform the following operations: the filter driver according to the enumeration Driving the returned device list, creating a filtering device object for each device in the device list, and adding the created filtering device object to the corresponding sub-device stack.
  • the newly added filter driver can intercept the query device information request sent by the plug and play manager according to the filter device object in the sub-device stack, and can return the device returned by the enumeration driver. The information is modified.
  • the filtering driver intercepts the query device information request, and sends the intercepted query device information request to the enumeration driver.
  • the intercepting the query device information request is sent to the enumeration driver, so that the enumeration driver returns device information according to the query request, and the device information returned by the enumeration driver is a string format
  • the device information may include a device manufacturer identifier, a product identifier, and a product port number, and the device information may be expressed as follows: vid_xxxx&pid-yyyy&mi-zz.
  • the request for registering the query device information may be completed after the querying the device information request is intercepted. Callback.
  • the filtering driver receives the device information returned by the enumeration driver, and according to the returned device information and the device Compatible information, which constitutes a device driver matching string containing the device manufacturer ID, device subtype, and device protocol type.
  • the device driver match string can be expressed as follows: vid—xxxx&subclass—yy&prot— zz.
  • the system may automatically invoke the completion callback function for requesting registration of the query device information, so as to perform the following operations:
  • the device information and the compatibility information of the device constitute a device driver matching string including the device manufacturer identifier, the device subtype, and the device protocol type.
  • the compatibility information of the device is a string format, and the compatibility information may include a device type, a device subtype, and a device protocol type, and the compatibility information may be expressed as follows: class—xx&subclass—yy&prot—zz; Before the filtering driver forms a device driver matching string including the device manufacturer identifier, the device subtype, and the device protocol type, the filtering driver may pass the physical device to the physical device according to the returned device information and the compatibility information of the device. The object sends a query device compatibility information request to obtain compatibility information of the device.
  • a filter driver is added to the enumeration driver, and the corresponding filter device object is created for each device enumerated and driven by the added filter driver, and the created device object is added to the corresponding device.
  • the plug and play manager sends a query device information request to the physical device object, the query device information request is intercepted by the added filter driver, and After the enumeration driver returns the device information according to the query device information request, according to the returned device information and the device compatibility information, the device driver matching including the device manufacturer identifier, the device subtype, and the device protocol type is formed.
  • the embodiment of the present invention for a device manufacturer, only the device driver matching string of the device driver needs to be written according to the device subtype and the device protocol type, so that the driver matching of the same device can be realized. After the product identification or product port number of the similar equipment changes, it is not necessary to rewrite the device driver matching string of the same type of equipment, so that the device driver matching string of the same type of similar products can be developed once, reused, and mass-produced. This can greatly reduce the cost of drive maintenance and certification.
  • the embodiment of the invention provides a device for modifying the drive matching information of the USB device, as shown in FIG.
  • the information request obtaining module 31, the information request sending module 32, the information receiving module 33, the component module 34, and the character string sending module 35 are included.
  • the information request obtaining module 31 is configured to intercept the query device information request when the plug and play manager sends a query device information request to the physical device object.
  • the information request sending module 32 is configured to send the query device information request intercepted by the information request obtaining module 31 to the enumeration driver, so that the enumeration driver Returning the device information according to the query request.
  • the device information returned by the enumeration driver is in a string format, and the device information includes a device manufacturer identifier, a product identifier, and a product port number, and the device information may be expressed as follows: vid—xxxx&pid—yyyy&mi—zz.
  • the information receiving module 33 is configured to receive the device information returned by the enumeration driver when the device information is returned after the enumeration driver receives the query device information request.
  • the component module 34 is configured to form, according to the returned device information and the compatibility information of the device, a device driver matching string that includes a device manufacturer identifier, a device subtype, and a device protocol type, where the device driver matches the string. Expressed as follows: vid—xxxx&subclass—yy&prot— zz.
  • the string sending module 35 is configured to send a device driver matching string composed of the component modules 34 to the plug and play manager, so that the plug and play manager drives according to the device Matches the string to find the driver that matches the physical device.
  • the compatibility information of the device is a string format, and the compatibility information includes a device type, a device subtype, and a device protocol type, and the compatibility information may be expressed as follows: class_xx&subclass_yy&prot_zz ; in accordance with the returned device information and the The compatibility information of the device, before composing the device driver matching string including the device manufacturer identifier, the device subtype, and the device protocol type, obtains the compatibility information of the device by sending a query device compatibility information request to the physical device object.
  • the query device information request is intercepted, and after the enumeration driver requests to return the device information according to the query device information, Forming, according to the returned device information and the compatibility information of the device, a device driver matching string including a device manufacturer identifier, a device subtype, and a device protocol type, and sending the composed device matching string to the The plug-and-play manager, so that the operating system can match the device driver according to the vendor identifier, the device subtype, and the device protocol type information in the device driver matching string.
  • the embodiment of the present invention Compared with the prior art, in the embodiment of the present invention, for a device manufacturer, only the device driver matching string of the device driver needs to be written according to the device subtype and the device protocol type, so that the driver matching of the same device can be realized. , follow-up If the product identification or product port number of the class device changes, you do not need to rewrite the device driver matching string of the same device, so that the device driver matching string of the same type of similar products can be developed once and reused. Large savings drive maintenance and certification costs.
  • An embodiment of the present invention provides an apparatus for modifying USB device driver matching information.
  • the apparatus includes: a list request obtaining module 41, a list request sending module 42, a list receiving module 43, a creating module 44, and an adding module 45.
  • the list request obtaining module 41 is configured to intercept the query device list request when the query device list request sent by the plug and play manager is requested.
  • the list request sending module 42 is configured to send the query device list request intercepted by the list request obtaining module 41 to an enumeration driver, so that the enumeration driver enumerates all devices according to the query device list request. And return a list of all enumerated devices to the Plug and Play Manager.
  • the completion of the query device list request is generally performed after the intercepting the query device list request. .
  • the list receiving module 43 is configured to receive the device list returned by the enumeration driver according to the query device list request.
  • the creating module 44 is configured to create a filtering device object for each device in the device list according to the device list received by the list receiving module 43.
  • the adding module 45 is configured to add the filtering device object created by the creating module 44 to a corresponding sub-device stack; after adding the filtering device object to the corresponding sub-device stack, the enumerating driving
  • the returned device list is sent to the plug and play manager, so that the plug and play manager sends a query device information request to the physical device object in the list according to the device list.
  • the enumeration driver returns a device list according to the query device list request
  • the system automatically invokes the completion callback function for registering the query device list request, so that the returned device list is in the device list according to the returned device list.
  • Each device creates a filter device object and adds the created filter device object to the corresponding child device stack. In this way, it is ensured that the query device information request sent by the plug and play manager can be intercepted according to the filter device object in the sub-device stack, and the device information returned by the enumeration driver can be modified.
  • the information request obtaining module 46 is configured to intercept the query device information request when the plug and play manager sends a query device information request to the physical device object.
  • the information request sending module 47 is configured to send the query device information request intercepted by the information request obtaining module 46 to the enumeration driving, so that the enumeration driving is performed according to the
  • the query request returns the device information; wherein, the device information returned by the enumeration driver is a string format, and the device information includes a device manufacturer identifier, a product identifier, and a product port number, and the device information may be expressed as follows Form: vid— xxxx&pid— yyyy&mi— zz.
  • the information receiving module 48 is configured to receive the device information returned by the enumeration driver.
  • the component module 49 After receiving the device information, the component module 49 is configured to form, according to the returned device information and the compatibility information of the device, a device driver matching character including a device manufacturer identifier, a device subtype, and a device protocol type. String, the device driver match string can be expressed as follows: vid—xxxx&subclass—yy&prot— zz.
  • the string sending module 410 is configured to send a device driver matching string composed of the component modules 49 to the plug and play manager, so that the plug and play manager drives according to the component device. Matches the string to find the driver that matches the physical device.
  • the compatibility information of the device is a string format, and the compatibility information includes a device type, a device subtype, and a device protocol type, and the compatibility information may be expressed as follows: class—xx&siibclass—yy&p: rot—zz.
  • the device for modifying the USB device drive matching information may further include the compatibility information acquisition module 411 before the device information returned by the received enumeration driver and the compatibility information of the device constitute a new device driver matching string.
  • the compatibility information obtaining module 411 is configured to send a query device compatibility information request to the physical device object, and obtain compatibility information of the device.
  • the device for modifying the USB device to drive the matching information may further include: a registration module 412, in order to enable the filtering driver to learn that the operation of enumerating the device information according to the query device information is completed.
  • the registration module 412 is configured to request, after the information request obtaining module 46 sends the intercepted query device information request to the enumeration driver, to register a completion callback function for the query device information, so as to be in the
  • the driver returns the device information according to the query device information request
  • the system automatically invokes the registered completion callback function to form the device manufacturer identifier and the device subtype according to the returned device information and the compatibility information of the device.
  • the device driver match string for the device protocol type.
  • a filter device is created by the filter driver for each device enumerated and enumerated, and the created device object is added to the corresponding sub-device stack, so that the filter driver and the filter driver are Establishing a connection between device objects; when the Plug and Play manager sends a request for querying device information to the physical device object, The filtering driver intercepts the query device information request, and after the enumeration driver requests to return device information according to the query device information, according to the returned device information and the device compatibility information, the component includes the device vendor identifier.
  • a device driver type matching string of the device subtype and the device protocol type and sending the composed device matching string to the plug and play manager, so that the operating system can drive the matching string according to the device
  • the vendor ID, device subtype, and device protocol type information enable device driver matching.
  • the device driver matching string of the device driver needs to be written according to the device subtype and the device protocol type, so that the driver matching of the same device can be realized.
  • the product identification or product port number of the similar equipment changes, it is not necessary to rewrite the device driver matching string of the same type of equipment, so that the device driver matching string of the same type of similar products can be developed once, reused, and mass-produced.
  • the embodiment of the present invention only describes this special case of using the filter driver to modify the device driver matching character string, but by this scheme, all the information returned to the plug and play manager during the device enumeration driving can be modified, which belongs to the protection of the present invention. range.
  • the present invention can be implemented by means of software plus necessary general hardware, and of course, by hardware, but in many cases, the former is a better implementation. .
  • the technical solution of the present invention which is essential or contributes to the prior art, may be embodied in the form of a software product stored in a readable storage medium, such as a floppy disk of a computer.
  • a hard disk or optical disk or the like includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform the methods described in various embodiments of the present invention.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)
  • Information Transfer Systems (AREA)

Description

修改 USB设备驱动匹配信息的方法及装置 本申请要求于 2009年 12月 02日提交中国专利局、 申请号为 CN 200910249779. X、 发明名称为 "修改 USB设备驱动匹配信息的方法及装置"的中国专利申请的优先权, 其 全部内容通过引用结合在本申请中。 技术领域 本发明涉及 USB设备领域, 尤其涉及一种修改 USB设备驱动匹配信息的方法及装 置。 背景技术 根据 USB (Universal Serial Bus , 通用串行总线) 规范, USB设备的设备驱动匹 配字符串主要有以下三种格式: 第 1种, 由 vid ( vendor identification, 设备厂商标 识)、 PID (product identification, 产品标识) 以及 MI (Multiple-Interface, 产品 端口)编号组成,表示为如下开式, vid— xxxx&pid— yyyy&mi— zz ;第 2种,由 vid、 subclass (设备子类型) 以及 protocol (设备协议类型) 组成, 表示为如下形式, vid— xxxx&subclass— yy&prot— zz ;第 3禾中,由 class (设备类型)、 subclass以及 protocol 组成, 表示为如下形式, class— xx&subclass—yy&prot—zz。
其中, 第 1种和第 2种可以通过 Vid标识不同的厂商, 但是由于 windows系统不支 持第 2 种格式, 第 3 种格式不能标识各个厂商, 于是各 OEM ( original equipment manufacturer, 原始设备制造商)制造的 USB设备驱动匹配字符串大都采用第 1种格式 的设备驱动匹配字符串。 并且各厂商通常是一套驱动适用于所有同类产品, 而各同类产 品间采用不同的 PID加以区分。
为使设备驱动能够正确的与设备匹配, 需要在操作系统中预设对应于该种设备的设 备驱动匹配字符串表。当设备需要驱动时,仅需要获取所述设备的设备驱动匹配字符串, 并到所述设备驱动匹配字符串表中查找与该设备驱动匹配字符串对应的设备驱动即可。
在实现上述匹配设备驱动的过程中, 发明人发现现有技术中至少存在如下问题: 第
1种格式的设备驱动匹配字符串, 其缺陷在于设备驱动匹配字符串受限于设备的 PID, 只要 PID更改, 就必须修改驱动匹配文件, 从而增加维护和认证的成本。 发明内容 本发明的实施例提供一种修改 USB设备驱动匹配信息的方法及装置, 使在设备的 PID 或者端口编号改变后, 不用修改驱动匹配文件同样可以确定与所述设备对应的驱动, 节 约驱动维护和认证成本。
为达到上述目的, 本发明的实施例采用如下技术方案:
一种修改 USB设备驱动匹配信息的方法, 包括:
当即插即用管理器向物理设备对象发送查询设备信息请求时, 过滤驱动截获所述查 询设备信息请求, 并将截获的所述查询设备信息请求发送给所述枚举驱动;
所述过滤驱动接收所述枚举驱动根据所述查询设备信息请求返回的设备信息, 并根 据所述返回的设备信息和所述设备的兼容信息, 组成包含设备厂商标识、 设备子类型以 及设备协议类型的设备驱动匹配字符串;
将所述组成的设备驱动匹配字符串发送给所述即插即用管理器。
一种修改 USB设备驱动匹配信息的装置, 包括:
信息请求获取模块,用于当即插即用管理器向物理设备对象发送查询设备信息请求 时, 截获所述查询设备信息请求;
信息请求发送模块,用于将所述信息请求获取模块截获的所述查询设备信息请求发 送给所述枚举驱动;
信息接收模块, 用于接收所述枚举驱动根据所述查询设备信息请求返回的设备信 自 .
组成模块, 用于根据所述返回的设备信息和所述设备的兼容信息, 组成包含设备厂 商标识、 设备子类型以及设备协议类型的设备驱动匹配字符串;
字符串发送模块,用于将所述组成模块组成的设备驱动匹配字符串发送给所述即插 即用管理器。
本发明技术方案中, 在枚举驱动上增加一层过滤驱动, 当即插即用管理器向物理设 备对象发送查询设备信息请求, 通过过滤驱动截获所述查询设备信息请求, 并且在所述 枚举驱动根据所述查询设备信息请求返回设备信息后,根据所述返回的设备信息和所述 设备的兼容信息, 组成包含设备厂商标识、 设备子类型以及设备协议类型的设备驱动匹 配字符串, 并将所述组成的设备匹配字符串发送给所述即插即用管理器, 从而使操作系 统可以根据所述设备驱动匹配字符串中的厂商标识、设备子类型以及设备协议类型信息 实现设备驱动程序的匹配。与现有技术中相比,本发明技术方案中,针对一个设备厂商, 仅需要根据设备子类型和设备协议类型编写设备驱动程序的设备驱动匹配字符串,便可 以实现同类设备的驱动程序的匹配,后续无论同类设备的产品标识或者产品端口编号如 何改变, 都不用重新编写同类设备的设备驱动匹配字符串, 做到同类产品同类端口的设 备驱动匹配字符串一次开发, 重复使用, 在大规模生产时可以极大的节约驱动维护和认 证成本。 附图说明 为了更清楚地说明本发明实施例或现有技术中的技术方案, 下面将对实施例或现有 技术描述中所需要使用的附图作简单地介绍, 显而易见地, 下面描述中的附图仅仅是本 发明的一些实施例, 对于本领域普通技术人员来讲, 在不付出创造性劳动的前提下, 还 可以根据这些附图获得其他的附图。
图 1为本发明实施例 1修改 USB设备驱动匹配信息的方法流程图;
图 2为本发明实施例 2修改 USB设备驱动匹配信息的方法流程图;
图 3为本发明实施例 3修改 USB设备驱动匹配信息的装置组成框图;
图 4为本发明实施例 4修改 USB设备驱动匹配信息的装置组成框图。 具体实肺式 下面将结合本发明实施例中的附图, 对本发明实施例中的技术方案进行清楚、 完 整地描述, 显然, 所描述的实施例仅仅是本发明一部分实施例, 而不是全部的实施例。 基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所 有其他实施例, 都属于本发明保护的范围。
实施例 1
本发明实施例提供一种修改 USB设备驱动匹配信息的方法, 如图 1所示, 该方法 包括:
101、 当即插即用管理器向物理设备对象发送查询设备信息请求时, 过滤驱动截获 所述查询设备信息请求, 并将截获的所述查询设备信息请求发送给枚举驱动; 所述过滤 驱动为在所述枚举驱动上新增加的一层驱动程序。
其中, 将截获的所述查询设备信息请求发送给枚举驱动, 以便所述枚举驱动根据 所述查询请求将所述设备信息返回, 所述枚举驱动返回的设备信息为字符串格式, 所述 设备信息可以包括设备厂商标识、 产品标识和产品端口编号, 所述设备信息可以表示为 如下形式: vid— xxxx&pid— yyyy&mi— zz。 102、 所述过滤驱动接收所述枚举驱动根据所述查询设备信息请求返回的设备信 息, 并根据所述返回的设备信息和所述设备的兼容信息, 组成包含设备厂商标识、 设备 子类型以及设备协议类型的设备驱动匹配字符串, 该设备驱动匹配字符串可以表示为如 下形式: vid— xxxx&subclass— yy&prot— zz。
其中, 所述设备的兼容信息为字符串格式, 所述兼容信息可以包括设备类型、 设 备子类型以及设备协议类型, 所述兼容信息可以表示为如下形式: class— xx&subclass—yy&prot—zz ; 在所述过滤驱动根据所述返回的设备信息和所述设备 的兼容信息, 组成包含设备厂商标识、 设备子类型以及设备协议类型的设备驱动匹配字 符串之前, 所述过滤驱动可以通过向所述物理设备对象发送查询设备兼容信息请求, 获 取所述设备的兼容信息。
103、 将所述组成的设备驱动匹配字符串发送给所述即插即用管理器, 以便所述即 插即用管理器根据所述组成的设备驱动匹配字符串, 查找到与所述物理设备匹配的驱动 程序。
本发明实施例中, 在枚举驱动上增加一层过滤驱动, 当即插即用管理器向物理设 备对象发送查询设备信息请求, 通过过滤驱动截获所述查询设备信息请求, 并且在所述 枚举驱动根据所述查询设备信息请求返回设备信息后,根据所述返回的设备信息和所述 设备的兼容信息, 组成包含设备厂商标识、 设备子类型以及设备协议类型的设备驱动匹 配字符串, 并将所述组成的设备匹配字符串发送给所述即插即用管理器, 从而使操作系 统可以根据所述设备驱动匹配字符串中的厂商标识、设备子类型以及设备协议类型信息 实现设备驱动程序的匹配。与现有技术中相比,本发明技术方案中,针对一个设备厂商, 仅需要根据设备子类型和设备协议类型编写设备驱动程序的设备驱动匹配字符串,便可 以实现同类设备的驱动程序的匹配,后续无论同类设备的产品标识或者产品端口编号如 何改变, 都不用重新编写同类设备的设备驱动匹配字符串, 做到同类产品同类端口的设 备驱动匹配字符串一次开发, 重复使用, 在大规模生产时可以极大的节约驱动维护和认 证成本。
实施例 2
本发明实施例提供一种修改 USB设备驱动匹配信息的方法, 如图 2所示, 该方法 包括:
201、 当即插即用管理器下发查询设备列表请求时, 过滤驱动截获所述查询设备列 表请求, 并将截获的所述查询设备列表请求发送给枚举驱动; 所述过滤驱动为在所述枚 举驱动上新增加的一层驱动程序。
其中, 将截获的所述查询设备列表请求发送给枚举驱动, 以便所述枚举驱动根据 所述查询设备列表请求枚举所有的设备, 并将枚举的所有设备的设备列表返回给即插即 用管理器。 进一步, 为了使过滤驱动得知, 枚举驱动根据所述查询设备列表请求枚举所 有的设备的操作已完成, 可以在截获所述查询设备列表请求后, 为该查询设备列表请求 注册一个完成回调函数。
202、 当所述枚举驱动根据所述查询设备列表请求返回设备列表时, 所述过滤驱动 接收所述枚举驱动根据所述查询设备列表请求返回的设备列表,根据所述设备列表为所 述设备列表中的每一个设备创建一个过滤设备对象, 并将创建的所述过滤设备对象添加 到对应的子设备栈中。
进一步, 当所述枚举驱动根据所述查询设备列表请求返回设备列表时, 可以由系 统自动调用所述为查询设备列表请求注册的完成回调函数, 以便执行以下操作: 所述过 滤驱动根据枚举驱动返回的所述设备列表, 为所述设备列表中的每一个设备创建一个过 滤设备对象, 并将创建的所述过滤设备对象添加到对应的子设备栈中。 这样, 可以保证 所述新添加的过滤驱动能够根据子设备栈中的过滤设备对象,截获所述即插即用管理器 下发的查询设备信息请求, 并能够对所述枚举驱动返回的设备信息进行修改。
203、 将所述枚举驱动返回的所述设备列表发送给所述即插即用管理器, 以便所述 即插即用管理器根据所述设备列表, 向所述设备列表中的物理设备对象发送查询设备信 息请求。
204、 当即插即用管理器向物理设备对象发送查询设备信息请求时, 所述过滤驱动 截获所述查询设备信息请求, 并将截获的所述查询设备信息请求发送给所述枚举驱动。
其中, 将截获的所述查询设备信息请求发送给所述枚举驱动, 以便所述枚举驱动 根据所述查询请求返回设备信息, 所述枚举驱动返回的设备信息为字符串格式, 所述设 备信息可以包括设备厂商标识、 产品标识和产品端口编号, 所述设备信息可以表示为如 下形式: vid— xxxx&pid— yyyy&mi— zz。 进一步, 为了使过滤驱动得知, 枚举驱动根据所 述查询设备信息请求枚举所述设备信息的操作已完成, 可以在截获所述查询设备信息请 求后, 为该查询设备信息请求注册一个完成回调函数。
205、 当所述枚举驱动根据所述查询设备信息请求返回设备信息时, 所述过滤驱动 接收所述枚举驱动返回的所述设备信息, 并根据所述返回的设备信息和所述设备的兼容 信息, 组成包含设备厂商标识、 设备子类型以及设备协议类型的设备驱动匹配字符串, 该设备驱动匹配字符串可以表示为如下形式: vid— xxxx&subclass— yy&prot— zz。
进一步, 当所述枚举驱动根据所述查询设备信息请求返回设备信息时, 可以由系 统自动调用所述为查询设备信息请求注册的完成回调函数, 以便执行以下操作: 所述根 据所述返回的设备信息和所述设备的兼容信息, 组成包含设备厂商标识、 设备子类型以 及设备协议类型的设备驱动匹配字符串。
其中, 所述设备的兼容信息为字符串格式, 所述兼容信息可以包括设备类型、 设 备子类型以及设备协议类型, 所述兼容信息可以表示为如下形式: class— xx&subclass— yy&prot— zz ; 在所述过滤驱动根据所述返回的设备信息和所述设备 的兼容信息, 组成包含设备厂商标识、 设备子类型以及设备协议类型的设备驱动匹配字 符串之前, 所述过滤驱动可以通过向所述物理设备对象发送查询设备兼容信息请求, 获 取所述设备的兼容信息。
206、 将所述组成的设备驱动匹配字符串发送给所述即插即用管理器, 以便所述即 插即用管理器根据所述组成的设备驱动匹配字符串, 查找到与所述物理设备匹配的驱动 程序。
本发明实施例中, 在枚举驱动上增加一层过滤驱动, 由增加的过滤驱动为枚举驱 动枚举的每一个设备创建对应的过滤设备对象, 并将所述创建的设备对象添加到对应的 子设备栈中, 从而使所述过滤驱动与设备对象之间建立联系; 当即插即用管理器向物理 设备对象发送查询设备信息请求, 通过增加的过滤驱动截获所述查询设备信息请求, 并 且在所述枚举驱动根据所述查询设备信息请求返回设备信息后,根据所述返回的设备信 息和所述设备的兼容信息, 组成包含设备厂商标识、 设备子类型以及设备协议类型的设 备驱动匹配字符串, 并将所述组成的设备匹配字符串发送给所述即插即用管理器, 从而 使操作系统可以根据所述设备驱动匹配字符串中的厂商标识、设备子类型以及设备协议 类型信息实现设备驱动程序的匹配。 与现有技术中相比, 本发明实施例中, 针对一个设 备厂商,仅需要根据设备子类型和设备协议类型编写设备驱动程序的设备驱动匹配字符 串, 便可以实现同类设备的驱动程序的匹配, 后续无论同类设备的产品标识或者产品端 口编号如何改变, 都不用重新编写同类设备的设备驱动匹配字符串, 做到同类产品同类 端口的设备驱动匹配字符串一次开发, 重复使用, 在大规模生产时可以极大的节约驱动 维护和认证成本。
实施例 3
本发明实施例提供一种修改 USB设备驱动匹配信息的装置, 如图 3所示, 该装置 包括: 信息请求获取模块 31、 信息请求发送模块 32、 信息接收模块 33、 组成模块 34 和字符串发送模块 35。
所述信息请求获取模块 31, 用于当即插即用管理器向物理设备对象发送查询设备 信息请求时, 截获所述查询设备信息请求。
在截获所述查询设备信息请求后, 所述信息请求发送模块 32, 用于将所述信息请 求获取模块 31截获的所述查询设备信息请求发送给所述枚举驱动, 以便所述枚举驱动 根据所述查询请求将所述设备信息返回。 其中, 所述枚举驱动返回的设备信息为字符串 格式, 所述设备信息包括设备厂商标识、 产品标识和产品端口编号, 所述设备信息可以 表示为如下形式: vid— xxxx&pid— yyyy&mi— zz。
当枚举驱动接收到所述查询设备信息请求后, 将所述设备信息返回时, 所述信息 接收模块 33, 用于接收所述枚举驱动返回的所述设备信息。
所述组成模块 34, 用于根据所述返回的设备信息和所述设备的兼容信息, 组成包 含设备厂商标识、 设备子类型以及设备协议类型的设备驱动匹配字符串, 该设备驱动匹 配字符串可以表示为如下开式: vid— xxxx&subclass— yy&prot— zz。
所述字符串发送模块 35,用于将所述组成模块 34组成的设备驱动匹配字符串发送 给所述即插即用管理器, 以便所述即插即用管理器根据所述组成的设备驱动匹配字符 串, 查找到与所述物理设备匹配的驱动程序。
其中, 所述设备的兼容信息为字符串格式, 所述兼容信息包括设备类型、 设备子 类 型 以 及 设 备 协 议 类 型 , 兼 容 信 息 可 以 表 示 为 如 下 形 式 : class_xx&subclass_yy&prot_zz ; 在根据所述返回的设备信息和所述设备的兼容信息, 组成包含设备厂商标识、 设备子类型以及设备协议类型的设备驱动匹配字符串之前, 通 过向所述物理设备对象发送查询设备兼容信息请求, 获取所述设备的兼容信息。
本发明实施例中, 当即插即用管理器向物理设备对象发送查询设备信息请求时, 截获所述查询设备信息请求, 并且在所述枚举驱动根据所述查询设备信息请求返回设备 信息后, 根据所述返回的设备信息和所述设备的兼容信息, 组成包含设备厂商标识、 设 备子类型以及设备协议类型的设备驱动匹配字符串, 并将所述组成的设备匹配字符串发 送给所述即插即用管理器, 从而使操作系统可以根据所述设备驱动匹配字符串中的厂商 标识、设备子类型以及设备协议类型信息实现设备驱动程序的匹配。与现有技术中相比, 本发明实施例中, 针对一个设备厂商, 仅需要根据设备子类型和设备协议类型编写设备 驱动程序的设备驱动匹配字符串, 便可以实现同类设备的驱动程序的匹配, 后续无论同 类设备的产品标识或者产品端口编号如何改变, 都不用重新编写同类设备的设备驱动匹 配字符串, 做到同类产品同类端口的设备驱动匹配字符串一次开发, 重复使用, 在大规 模生产时可以极大的节约驱动维护和认证成本。
实施例 4
本发明实施例提供一种修改 USB设备驱动匹配信息的装置, 如图 4所示, 该装置 包括: 列表请求获取模块 41、 列表请求发送模块 42、 列表接收模块 43、 创建模块 44、 添加模块 45、 信息请求获取模块 46、 信息请求发送模块 47、 信息接收模块 48、 组成模 块 49、 字符串发送模块 410。
所述列表请求获取模块 41, 用于当即插即用管理器下发的查询设备列表请求时, 截获所述查询设备列表请求。
所述列表请求发送模块 42,用于将所述列表请求获取模块 41截获的所述查询设备 列表请求发送给枚举驱动, 以便所述枚举驱动根据所述查询设备列表请求枚举所有的设 备, 并将所述枚举的所有设备的列表返回给即插即用管理器。 其中, 为了使过滤驱动得 知枚举驱动根据所述查询设备列表请求枚举所有的设备的操作已完成,一般在截获所述 查询设备列表请求后, 为该查询设备列表请求注册一个完成回调函数。
当所述枚举驱动根据所述查询设备列表请求返回设备列表时, 所述列表接收模块 43, 用于接收所述枚举驱动根据所述查询设备列表请求返回的设备列表。
所述创建模块 44,用于根据所述列表接收模块 43接收到的设备列表, 为所述设备 列表中的每一个设备创建一个过滤设备对象。
所述添加模块 45,用于将所述创建模块 44创建的所述过滤设备对象添加到对应的 子设备栈中; 在将过滤设备对象添加到对应的子设备栈后, 将所述枚举驱动返回的所述 设备列表发送给所述即插即用管理器, 以便所述即插即用管理器根据所述设备列表, 向 所述列表中的物理设备对象发送查询设备信息请求。 其中, 当所述枚举驱动根据所述查 询设备列表请求返回设备列表时, 系统自动调用所述为查询设备列表请求注册的完成回 调函数, 以便根据所述返回的设备列表为所述设备列表中的每一个设备创建一个过滤设 备对象, 并将所述创建的所述过滤设备对象添加到对应的子设备栈中。 这样, 可以保证 能够根据子设备栈中的过滤设备对象,截获所述即插即用管理器下发的查询设备信息请 求, 并能够对所述枚举驱动返回的设备信息进行修改。
所述信息请求获取模块 46, 用于当即插即用管理器向物理设备对象发送查询设备 信息请求时, 截获所述查询设备信息请求。 在截获所述信息请求后, 所述信息请求发送模块 47, 用于将所述信息请求获取模 块 46截获的所述查询设备信息请求发送给所述枚举驱动, 以便所述枚举驱动根据所述 查询请求将所述设备信息返回; 其中, 所述枚举驱动返回的设备信息为字符串格式, 所 述设备信息包括设备厂商标识、 产品标识和产品端口编号, 所述设备信息可以表示为如 下形式: vid— xxxx&pid— yyyy&mi— zz。
当所述枚举驱动根据所述查询设备信息请求返回时, 所述信息接收模块 48, 用于 接收所述枚举驱动返回的所述设备信息。
在接收到所述设备信息后, 所述组成模块 49, 用于根据所述返回的设备信息和所 述设备的兼容信息, 组成包含设备厂商标识、 设备子类型以及设备协议类型的设备驱动 匹 配 字符 串 , 该 设备 驱动 匹 配字 符 串 可 以 表 示 为 如 下 形 式 : vid— xxxx&subclass— yy&prot— zz。
所述字符串发送模块 410, 用于将所述组成模块 49组成的设备驱动匹配字符串发 送给所述即插即用管理器, 以便所述即插即用管理器根据所述组成的设备驱动匹配字符 串,查找到与所述物理设备匹配的驱动程序。其中,所述设备的兼容信息为字符串格式, 所述兼容信息包括设备类型、 设备子类型以及设备协议类型, 所述兼容信息可以表示为 如下形式: class— xx&siibclass—yy&p:rot—zz。
在将接收到的枚举驱动返回的设备信息和所述设备的兼容信息组成新的设备驱动 匹配字符串之前, 该修改 USB设备驱动匹配信息的装置还可以进一步包括兼容信息获取 模块 411。 所述兼容信息获取模块 411, 用于向所述物理设备对象发送查询设备兼容信 息请求, 获取所述设备的兼容信息。
进一步, 为了使过滤驱动得知枚举驱动根据所述查询设备信息请求枚举所述设备 信息的操作已完成, 该修改 USB设备驱动匹配信息的装置还可以包括: 注册模块 412。 所述注册模块 412,用于在所述信息请求获取模块 46将截获的所述查询设备信息请求发 送给枚举驱动之前, 为所述查询设备信息请求注册一个完成回调函数,以便在所述枚举 驱动根据所述查询设备信息请求返回设备信息时, 系统自动调用所述注册的完成回调 函, 来根据所述返回的设备信息和所述设备的兼容信息, 组成包含设备厂商标识、 设备 子类型以及设备协议类型的设备驱动匹配字符串。
本发明实施例中, 由过滤驱动为枚举驱动枚举的每一个设备创建对应的过滤设备 对象, 并将所述创建的设备对象添加到对应的子设备栈中, 从而使所述过滤驱动与设备 对象之间建立联系; 当即插即用管理器向物理设备对象发送查询设备信息请求, 通过所 述过滤驱动截获所述查询设备信息请求, 并且在所述枚举驱动根据所述查询设备信息请 求返回设备信息后, 根据所述返回的设备信息和所述设备的兼容信息, 组成包含设备厂 商标识、 设备子类型以及设备协议类型的设备驱动匹配字符串, 并将所述组成的设备匹 配字符串发送给所述即插即用管理器, 从而使操作系统可以根据所述设备驱动匹配字符 串中的厂商标识、 设备子类型以及设备协议类型信息实现设备驱动程序的匹配。 与现有 技术中相比, 本发明实施例中, 针对一个设备厂商, 仅需要根据设备子类型和设备协议 类型编写设备驱动程序的设备驱动匹配字符串, 便可以实现同类设备的驱动程序的匹 配, 后续无论同类设备的产品标识或者产品端口编号如何改变, 都不用重新编写同类设 备的设备驱动匹配字符串, 做到同类产品同类端口的设备驱动匹配字符串一次开发, 重 复使用, 在大规模生产时可以极大的节约驱动维护和认证成本。 本发明实施例仅描述使用过滤驱动来修改设备驱动匹配字符串的这个特例, 但是 通过这个方案可以修改所有在设备枚举驱动期间返回给即插即用管理器的信息, 都属于 本发明保护的范围。
通过以上的实施方式的描述, 所属领域的技术人员可以清楚地了解到本发明可借 助软件加必需的通用硬件的方式来实现, 当然也可以通过硬件, 但很多情况下前者是更 佳的实施方式。 基于这样的理解, 本发明的技术方案本质上或者说对现有技术做出贡献 的部分可以以软件产品的形式体现出来, 该计算机软件产品存储在可读取的存储介质 中, 如计算机的软盘, 硬盘或光盘等, 包括若干指令用以使得一台计算机设备 (可以是 个人计算机, 服务器, 或者网络设备等) 执行本发明各个实施例所述的方法。
以上所述, 仅为本发明的具体实施方式, 但本发明的保护范围并不局限于此, 任 何熟悉本技术领域的技术人员在本发明揭露的技术范围内, 可轻易想到变化或替换, 都 应涵盖在本发明的保护范围之内。 因此, 本发明的保护范围应以所述权利要求的保护范 围为准。

Claims

权利要求
1、 一种修改 USB设备驱动匹配信息的方法, 其特征在于, 包括:
当即插即用管理器向物理设备对象发送查询设备信息请求时, 过滤驱动截获所述查 询设备信息请求, 并将截获的所述查询设备信息请求发送给所述枚举驱动;
所述过滤驱动接收所述枚举驱动根据所述查询设备信息请求返回的设备信息, 并根 据所述返回的设备信息和所述设备的兼容信息, 组成包含设备厂商标识、 设备子类型以 及设备协议类型的设备驱动匹配字符串;
将所述组成的设备驱动匹配字符串发送给所述即插即用管理器。
2、 根据权利要求 1所述的方法, 其特征在于, 在所述过滤驱动根据所述返回的设 备信息和所述设备的兼容信息, 组成包含设备厂商标识、 设备子类型以及设备协议类型 的设备驱动匹配字符串之前, 该方法还包括:
所述过滤驱动向所述物理设备对象发送查询设备兼容信息请求,获取所述设备的兼 容信息, 所述设备兼容信息包括设备类型、 设备子类型以及设备协议类型。
3、 根据权利要求 1所述的方法, 其特征在于, 在将截获的所述查询设备信息请求 发送给所述枚举驱动之前, 该方法进一步包括:
为截获的所述查询设备信息请求注册一个完成回调函数, 以便在所述枚举驱动根据 所述查询设备信息请求返回设备信息时, 调用注册的完成回调函数, 执行根据所述设备 信息和所述兼容信息组成所述设备驱动匹配字符串的操作。
4、 根据权利要求 1所述的方法, 其特征在于, 在过滤驱动截获所述查询设备信息 请求之前, 该方法还包括:
当即插即用管理器下发查询设备列表请求时,所述过滤驱动截获所述查询设备列表 请求, 并将截获的所述查询设备列表请求发送给枚举驱动;
所述过滤驱动接收所述枚举驱动根据所述查询设备列表请求返回的设备列表,根据 所述设备列表为所述设备列表中的每一个设备创建一个过滤设备对象, 并将创建的所述 过滤设备对象添加到对应的子设备栈中, 以便所述过滤驱动根据子设备栈中的过滤设备 对象截获所述查询设备信息请求。
5、 根据权利要求 1至 4中任一项所述的方法, 其特征在于, 所述设备信息为字串 的形式, 所述设备信息包括设备厂商标识、 产品标识和产品端口编号。
6、 一种修改 USB设备驱动匹配信息的装置, 其特征在于, 包括:
信息请求获取模块,用于当即插即用管理器向物理设备对象发送查询设备信息请求 时, 截获所述查询设备信息请求; 信息请求发送模块, 用于将所述信息请求获取模块截获的所述查询设备信息请求发 送给所述枚举驱动;
信息接收模块, 用于接收所述枚举驱动根据所述查询设备信息请求返回的设备信 自 .
组成模块, 用于根据所述返回的设备信息和所述设备的兼容信息, 组成包含设备厂 商标识、 设备子类型以及设备协议类型的设备驱动匹配字符串;
字符串发送模块,用于将所述组成模块组成的设备驱动匹配字符串发送给所述即插 即用管理器。
7、 根据权利要求 6所述的装置, 其特征在于, 该装置还包括:
兼容信息获取模块, 用于在根据所述返回的设备信息和所述设备的兼容信息, 组成 包含设备厂商标识、 设备子类型以及设备协议类型的设备驱动匹配字符串之前, 向所述 物理设备对象发送查询设备兼容信息请求, 获取所述设备的兼容信息, 所述兼容信息包 括设备类型、 设备子类型以及设备协议类型。
8、 根据权利要求 6所述的装置, 其特征在于, 该装置还包括:
注册模块,用于在所述信息请求发送模块将截获的所述查询设备信息请求发送给枚 举驱动之前, 为所述查询设备信息请求注册一个完成回调函数, 以便在所述枚举驱动根 据所述查询设备信息请求返回设备信息时, 调用注册的完成回调函数, 执行根据所述设 备信息和所述兼容信息组成所述设备驱动匹配字符串的操作。
9、 根据权利要求 6所述的装置, 其特征在于, 该装置还包括:
列表请求获取模块, 用于在截获所述查询设备信息请求之前, 当即插即用管理器下 发查询设备列表请求时, 截获所述查询设备列表请求;
列表请求发送模块,用于将所述列表请求获取模块截获的所述查询设备列表请求发 送给枚举驱动;
列表接收模块, 用于接收所述枚举驱动根据所述查询设备列表请求返回的设备列 表;
创建模块, 用于根据所述列表接收模块接收到的设备列表, 为所述设备列表中的每 一个设备创建一个过滤设备对象;
添加模块, 用于将所述创建模块创建的所述过滤设备对象添加到对应的子设备栈 中, 以便根据子设备栈中的过滤设备对象截获所述查询设备信息请求。
10、 根据权利要求 6-9中任一项所述的装置, 其特征在于, 所述设备信息为字串的 形式, 所述设备信息包括设备厂商标识、 产品标识和产品端口编号。
PCT/CN2010/079326 2009-12-02 2010-12-01 修改usb设备驱动匹配信息的方法及装置 WO2011066792A1 (zh)

Priority Applications (4)

Application Number Priority Date Filing Date Title
ES10834225T ES2404166T3 (es) 2009-12-02 2010-12-01 Método y dispositivo para modificar la información de correspondencia del controlador de un dispositivo USB
JP2012541309A JP5360630B2 (ja) 2009-12-02 2010-12-01 Usb装置の駆動およびマッチング情報を修正する方法および装置
EP10834225A EP2447850B1 (en) 2009-12-02 2010-12-01 Method and device for modifying driving and matching information of usb device
US13/408,113 US8527670B2 (en) 2009-12-02 2012-02-29 Method and apparatus for modifying USB device driver matching information

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN200910249779.X 2009-12-02
CN200910249779XA CN101702143B (zh) 2009-12-02 2009-12-02 修改usb设备驱动匹配信息的方法及装置

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US13/408,113 Continuation US8527670B2 (en) 2009-12-02 2012-02-29 Method and apparatus for modifying USB device driver matching information

Publications (1)

Publication Number Publication Date
WO2011066792A1 true WO2011066792A1 (zh) 2011-06-09

Family

ID=42157059

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2010/079326 WO2011066792A1 (zh) 2009-12-02 2010-12-01 修改usb设备驱动匹配信息的方法及装置

Country Status (6)

Country Link
US (1) US8527670B2 (zh)
EP (1) EP2447850B1 (zh)
JP (1) JP5360630B2 (zh)
CN (1) CN101702143B (zh)
ES (1) ES2404166T3 (zh)
WO (1) WO2011066792A1 (zh)

Families Citing this family (22)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101702143B (zh) * 2009-12-02 2011-08-10 华为终端有限公司 修改usb设备驱动匹配信息的方法及装置
TWI414945B (zh) * 2010-01-12 2013-11-11 Process system and method for automatically connecting with remote USB device
US8554957B1 (en) * 2010-02-24 2013-10-08 Open Invention Network, Llc Method for creation of device drivers and device objects for peripheral devices
CN102681859A (zh) * 2011-03-10 2012-09-19 北京路模思科技有限公司 一种从USB大容量存储设备中启动Windows操作系统的方法
CN102253904A (zh) * 2011-06-08 2011-11-23 广州视睿电子科技有限公司 一种usb设备识别计算机操作系统的方法及装置
US20130139184A1 (en) * 2011-11-30 2013-05-30 Lsi Corporation Method for embedding a host driver within a device
US9069572B2 (en) 2012-07-27 2015-06-30 Prolific Technology Inc. Replacement of inbox driver with third party driver
JP2014203268A (ja) * 2013-04-04 2014-10-27 キヤノン株式会社 情報処理装置及び制御方法
CN104156328B (zh) * 2013-05-15 2019-02-05 中兴通讯股份有限公司 一种识别操作系统类型的方法及usb设备
CN104461950B (zh) * 2013-09-25 2018-07-06 联想(北京)有限公司 一种信息处理方法及装置
CN104731350A (zh) * 2013-12-19 2015-06-24 新巨企业股份有限公司 变更键盘装置的注册码的方法
CN103780938B (zh) * 2014-01-24 2017-01-04 青岛海信电器股份有限公司 一种触摸电视及其控制方法及控制装置
US10684906B2 (en) 2016-06-15 2020-06-16 Microsoft Technology Licensing, Llc Monitoring peripheral transactions
CN106126394B (zh) * 2016-08-22 2019-02-19 浪潮(北京)电子信息产业有限公司 带外监控管理获取pcie设备资产信息的方法及系统
CN107797947A (zh) * 2016-09-05 2018-03-13 中兴通讯股份有限公司 一种usb设备重定向方法和装置
US10078609B1 (en) * 2017-03-16 2018-09-18 Wyse Technology L.L.C. Virtualizing a non-USB device as a USB device
CN107423075B (zh) * 2017-08-28 2021-06-08 深圳传音控股股份有限公司 驱动的注册方法以及用户终端
US10831712B2 (en) * 2018-04-27 2020-11-10 Crowdstrike, Inc. Identifying and correlating physical devices across disconnected device stacks
CN112306545A (zh) * 2019-08-01 2021-02-02 中国电信股份有限公司 驱动管理方法、设备、系统和计算机可读存储介质
CN110825332B (zh) * 2019-11-15 2023-05-26 江苏江波信息科技股份有限公司 一种在windows操作系统中使打印机设备即插即用的方法
CN111857851A (zh) * 2020-07-27 2020-10-30 联想(北京)有限公司 一种配置方法、装置及电子设备
CN112506820B (zh) * 2020-12-03 2024-07-02 深圳微步信息股份有限公司 Usb端口硬件参数分析方法、装置、设备及存储介质

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1472656A (zh) * 2002-07-31 2004-02-04 光宝科技股份有限公司 以一转换器侦测并转换非通用串行总线装置的方法及系统
CN101582794A (zh) * 2009-06-26 2009-11-18 西安电子科技大学 网络设备统一配置系统及其配置方法
CN101588268A (zh) * 2009-06-29 2009-11-25 杭州华三通信技术有限公司 通用可扩展的管理设备配置文件的方法及设备
CN101702143A (zh) * 2009-12-02 2010-05-05 深圳华为通信技术有限公司 修改usb设备驱动匹配信息的方法及装置

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH1011385A (ja) * 1996-06-26 1998-01-16 Matsushita Graphic Commun Syst Inc 周辺装置作動システム
WO2002067483A2 (en) * 2000-10-27 2002-08-29 Softconnex Technologies Automatic embedded host configuration system and method
US6804727B1 (en) * 2001-02-23 2004-10-12 Lexmark International, Inc. Method for communication from a host computer to a peripheral device
JP2003099262A (ja) * 2001-09-20 2003-04-04 Matsushita Electric Ind Co Ltd ホスト装置及び互換デバイス登録方法
JP2004078823A (ja) * 2002-08-22 2004-03-11 Oki Data Corp 画像形成システム及び画像形成装置
KR100943742B1 (ko) * 2003-06-03 2010-02-23 삼성전자주식회사 Usb 트랜잭션을 무선 pan 상에서 전송하는 장치 및방법
US7725613B2 (en) * 2006-02-27 2010-05-25 Microsoft Corporation Device installation with host controller consideration
CN101521575B (zh) 2009-04-09 2011-01-05 华为终端有限公司 配置访问权限的方法、控制点、设备及通信系统
US8281058B1 (en) * 2009-10-19 2012-10-02 Symantec Corporation Systems and methods for using USB device descriptors to identify computing environments

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1472656A (zh) * 2002-07-31 2004-02-04 光宝科技股份有限公司 以一转换器侦测并转换非通用串行总线装置的方法及系统
CN101582794A (zh) * 2009-06-26 2009-11-18 西安电子科技大学 网络设备统一配置系统及其配置方法
CN101588268A (zh) * 2009-06-29 2009-11-25 杭州华三通信技术有限公司 通用可扩展的管理设备配置文件的方法及设备
CN101702143A (zh) * 2009-12-02 2010-05-05 深圳华为通信技术有限公司 修改usb设备驱动匹配信息的方法及装置

Also Published As

Publication number Publication date
CN101702143A (zh) 2010-05-05
JP5360630B2 (ja) 2013-12-04
ES2404166T3 (es) 2013-05-24
EP2447850A4 (en) 2012-06-27
CN101702143B (zh) 2011-08-10
EP2447850A1 (en) 2012-05-02
US20120159010A1 (en) 2012-06-21
EP2447850B1 (en) 2013-02-20
US8527670B2 (en) 2013-09-03
JP2013512516A (ja) 2013-04-11

Similar Documents

Publication Publication Date Title
WO2011066792A1 (zh) 修改usb设备驱动匹配信息的方法及装置
TW385408B (en) Configuration method for installing plug-and-play device
CN104199723A (zh) 基于虚拟设备的摄像头映射方法
WO2011116556A1 (zh) 基于物联网的无线通信终端及其应用方法
US20130332686A1 (en) Information processing apparatus, information processing method, and program
WO2012155573A1 (zh) Usb设备自动识别操作系统的方法及系统
WO2015055102A1 (zh) 一种用于调用网络功能的方法及装置
TW201335787A (zh) 虛擬機安全操作系統及方法
WO2014089868A1 (zh) 基于域名组实现的域名注册方法及系统
WO2012100504A1 (zh) 一种无线通讯方法、系统及无线通讯终端
WO2012151978A1 (zh) 数据卡端口属性的识别方法及装置
US20160077986A1 (en) Electronic apparatus providing real-time switching and sharing of usb electronic devices among hosts
WO2018218465A1 (zh) 电子签名系统、电子签名服务器及电子签名方法
TW201305912A (zh) 虛擬機管理系統及方法
WO2012129848A1 (zh) 一种模拟通用串行总线设备的方法及装置
CN110851091A (zh) 基于vdi的打印方法、装置、设备及存储介质
TW200849122A (en) User message management method and system
WO2013189388A2 (zh) 一种接入usb网卡的方法、usb网卡及pc
WO2014176956A1 (zh) 一种usb设备适配操作系统的方法及usb设备
WO2023155597A1 (zh) 一种端口管理方法、系统、设备及计算机可读存储介质
WO2011076064A1 (zh) 数据卡升级方法及装置
WO2014183358A1 (zh) 一种识别操作系统类型的方法及usb设备
US8225013B2 (en) Generation of a formatted unique device identifier from an AT attachment serial number
CN107562676B (zh) 一种基于VB.net的通过USB与发电机组控制器通讯的方法
CN111191265A (zh) 一种基于分布式NFS-Ganesha V4 ACL的权限控制方法及装置

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 10834225

Country of ref document: EP

Kind code of ref document: A1

WWE Wipo information: entry into national phase

Ref document number: 2010834225

Country of ref document: EP

WWE Wipo information: entry into national phase

Ref document number: 2012541309

Country of ref document: JP

NENP Non-entry into the national phase

Ref country code: DE