CN101520756A - Equipment driving method, equipment driving device and communication system - Google Patents

Equipment driving method, equipment driving device and communication system Download PDF

Info

Publication number
CN101520756A
CN101520756A CN 200910081902 CN200910081902A CN101520756A CN 101520756 A CN101520756 A CN 101520756A CN 200910081902 CN200910081902 CN 200910081902 CN 200910081902 A CN200910081902 A CN 200910081902A CN 101520756 A CN101520756 A CN 101520756A
Authority
CN
China
Prior art keywords
device
standard
custom
type
data packet
Prior art date
Application number
CN 200910081902
Other languages
Chinese (zh)
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 CN 200910081902 priority Critical patent/CN101520756A/en
Publication of CN101520756A publication Critical patent/CN101520756A/en

Links

Abstract

The invention relates to an equipment driving method, an equipment driving device and a communication system. The equipment driving method comprises the steps as follows: equipment description information of user-defined equipment with a standard communication interface is received, wherein the equipment description information comprises compatibility information of types of the user-defined equipment and standard equipment; the user-defined equipment is recognized as standard equipment which corresponds to the compatibility information, conversion treatment is carried out for user-defined equipment accessing protocol and standard equipment accessing protocol for a data packet; and a data packet after the conversion treatment is exchanged through the standard communication interface and the user-defined equipment. In the embodiment of the invention, the user-defined equipment can be accessed without loading a special driver of the user-defined equipment, thereby the convenience of the user-defined equipment driving and the user experience are improved.

Description

设备驱动方法、装置及通信系统技术领域本发明实施例涉及通信技术,特别是涉及一种设备驱动方法、装置及通信系统。 Device driving method, and a communication apparatus embodiment TECHNICAL FIELD The present invention relates to communication technology, particularly to a device driving method, apparatus and a communication system. 背景技术通用串行总线(Universal Serial Bus,简称USB)等标准通信接口已广泛应用于各种类型的设备中。 BACKGROUND The Universal Serial Bus (Universal Serial Bus, abbreviated USB) standard communication interface and the like have been widely used in various types of devices. 标准组织陆续将具有标准通信接口的部分设备类型的定义为操作系统(Operation System,简称OS)可识別的标准设备类型。 Standards organizations continue to define part of the device type having a standard communication interface for the operating system (Operation System, referred to as OS) may identify the type of standard equipment. 操作系统通常配置有标准设备的驱动文件。 Operating systems typically configured with a standard device drivers. 当标准设备类型相应的或与标准设备类型兼容的设备,即标准设备插入安装有操作系统的主机时,操作系统会自动、快速识别这些设备,为这些设备加栽通用驱动文件,并在注册表中记录这些i殳备的信息。 When the corresponding standard device type or the device with standard type-compatible device, i.e., the insertion device is attached to the standard host operating system, the operating system automatically, quickly identify those devices, these devices add plant generic driver files and registry these recording information i Shu prepared. 具有标准通信接口的自定义设备的设备类型与标准设备类型不同且不兼容,其驱动文件安装与上述方法不同,通常包括二个数据处理过程:预安装过程和设备识别过程。 Different device types not compatible with a standard type of custom equipment apparatus having a standard communication interface, which is different drivers mounted above process, generally includes two data processing: Pre-installation process and the device recognition process. 预安装过程即为把与设备描述信息对应的设备驱动所需的信息,即驱动文件,如硬件标识相应的INF文件以及与INF文件对应的sys文件,将这些信息复制到操作系统默认的路径下。 The installation process is known as pre-information of the device corresponding to the device description information necessary for driving, i.e. drivers, such as the corresponding hardware identification sys INF file and the INF file corresponding to file, copy the information into the operating system default path . 设备识别过程即为当设备插入带有操作系统的主机时,操作系统根据硬件标识或兼容硬件标识为设备找到匹配的驱动文件并加载该驱动文件,同时把这些信息记录在操作系统的注册表中,以便该设备与主机再次连接时可直接使用这些信息驱动设备。 When the device recognition process that is inserted into the device with the host operating system, the operating system or the hardware identifier identifies a match is found for the compatible hardware device driver file and loads the drivers, while the information recorded in the registry of the operating system , so that the device can be used directly with the host driver information device is connected again. 可见,操作系统需要预先在操作系统中安装自定义设备专用驱动文件, 否则无法与自定义设备进行正常的数据交互,因此,自定义设备的驱动受限于专用驱动文件的开发和加载,自定义设备驱动的方便性较差。 Visible, the operating system needs to be pre-installed operating system-specific custom device driver file, otherwise it can not be normal data exchange with custom equipment, therefore, the development of self-loading drive and define a device is limited by the specific driver files, custom poor device driver convenience. 本发明实施例提供一种设备驱动方法、装置及通信系统,用以提高自定义设备驱动的方便性。 Embodiments of the present invention provides an apparatus driving method, apparatus and a communication system, a custom device driver to improve convenience. 本发明实施例提供了一种设备驱动方法,包括:接收具有标准通信接口的自定义设备的设备描述信息,所述设备描述信息包括自定义设备类型与标准设备类型的兼容信息;识别所述自定义设备为与所述兼容信息相应的标准设备类型; 对数据包进行自定义设备访问协议和标准设备类型访问协议的转换处理,并通过所述标准通信接口与所述自定义设备交换所述转换处理后的数据包。 Example embodiments provide an apparatus driving method according to the present invention comprises: receiving device description information custom device having a standard communication interface, the device description information includes custom device type device type standard compatibility information; identifying the self It is defined as a device compatible with the device type information corresponding to the standard; conversion processing data packets custom device standard access protocol and the protocol type of access device, and exchanging the custom device through said converter with the standard communication interface packet processed. 本发明实施例还提供了一种驱动装置,包括:接收模块,用于接收具有标准通信接口的自定义设备的设备描述信息, 所述设备描述信息包括自定义设备类型与标准设备类型的兼容信息;识别^^莫块,用于识别所述自定义设备为与所述兼容信息相应的标准设备类型;通信模块,用于对数据包进行自定义设备访问协议和标准设备类型访问协议的转换处理,并通过所述标准通信接口与所述自定义设备交换所述转换处理后的数据包。 Embodiments of the present invention further provides a driving apparatus, comprising: a receiving module configured to receive information from the device description defines the device having a standard communication interface, the device description information includes custom device type device type standard compatibility information ; ^^ Mo identifying block for identifying the custom device is compatible with said information corresponding to the type of standard device; a communication module configured to convert the packet processing devices to access the custom protocols and standard equipment of the type of access protocol and customize the devices to exchange data packets converted by said processed with the standard communication interface. 本发明实施例还提供了一种包括上述驱动装置的智能终端。 Embodiments of the present invention further provides an intelligent terminal including the drive unit. 本发明实施例还提供了一种自定义设备,包括:生成单元,用于生成设备描述信息,所述设备描述信息包括自定义设备类型与标准设备类型的兼容信息;发送单元,用于将所述设备描述信息向驱动装置发送,以供所述驱动装置将所述自定义设备识别为与所述兼容信息相应的标准设备类型;通信单元,用于对数据包进行自定义设备访问协议和标准设备类型访问协议的转换处理,并通过标准通信接口与所述驱动装置交换所述转换处理后6的凝:据包。 Embodiments of the present invention further provides a custom device comprising: generating means for generating a device description information, the device description information includes custom device type device type standard compatibility information; transmitting means for the said device description information to the drive means, the drive means for the custom device to identify the device type with the standard information of the corresponding compatible; communication unit for data packets custom device standard access protocol and conversion processing device of the type of access protocol and standard communication interface with the drive means exchanging the conversion of coagulation after treatment 6: packet.

本发明实施例还提供了一种通信系统,包括: Embodiments of the present invention further provides a communication system, comprising:

自定义设备,用于生成并发送设备描述信息,所述设备描述信息包括自定义设备类型与标准设备类型的兼容信息; Custom device, for generating and transmitting the device description information, the device description information includes custom device type device type standard compatibility information;

驱动装置,用于识别所述自定义设备为与所述兼容信息相应的标准设备类型;对数据包进行自定义设备访问协议和标准设备类型访问协议的转换处理,并通过所述标准通信接口与所述自定义设备交换所述转换处理后的数据包。 Driving means for identifying the custom device is compatible with said standard information corresponding to the device type; conversion processing data packets custom device standard access protocol and the protocol type of access device, through said communication interface standard the custom converter apparatus exchanging the data packets processed.

本发明实施例将自定义设备伪装成其设备类型与标准设备类型兼容的设备,以便操作系统可将自定义设备识别为某种标准设备类型,从而与自定义设备建立起基于标准通信接口的数据流通道,之后,将需要与自定义设备交换的数据包,进行标准设备类型访问协议与自定义设备访问协议的转换处理, 以使用标准设备类型的驱动文件建立数据流通道进行数据交互,从而克服了现有技术自定义设备必须加载专用驱动文件方可使用的限制,提高了自定义设备驱动的方便性,有利于改善用户体验,此外,可免除自定义设备的自定义专用驱动程序的开发和维护成本。 The embodiment of the present invention that the custom device masquerading as device type and device type standard compatible device, in order to customize the operating system may identify the device as a certain type of standard equipment, so that the custom device to establish a data communication interface based on a standard flow path, then, would need to custom devices to exchange data packets, the standard apparatus type access protocol with a custom device access protocol conversion process using a standard type of device drivers establish a data flow path for data exchange, to overcome the prior art custom device driver must be loaded restrict special file before use, improved custom device drivers of convenience, will help to improve the user experience, in addition, be exempt develop custom-specific drivers and custom equipment maintenance costs.

附图说明 BRIEF DESCRIPTION

为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲, 在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。 In order to more clearly illustrate the technical solutions in the embodiments or the prior art embodiment of the present invention, the accompanying drawings briefly described embodiments or the prior art needed to be used in describing the embodiments. Apparently, the drawings in the following description only some embodiments, those of ordinary skill in the art is concerned, without any creative effort, and may still derive other drawings from the accompanying drawings of the present invention. 图1为本发明第一实施例提供的设备驱动方法的流程图; 图2为本发明第二实施例提供的设备驱动方法的信令交互图; 图3为本发明第三实施例提供的设备驱动方法应用场景示意图; 图4为本发明第四实施例提供的驱动装置结构示意图;图5为本发明第五实施例提供的自定义设备结构示奮面; 图6为本发明第六实施例提供的通信系统结构示意图。 Signaling interaction driving method of the second embodiment of the apparatus provided by the present invention in FIG. 2;; provide apparatus of the third embodiment of the present invention, FIG. 3 FIG. 1 is a flowchart apparatus driving method according to a first embodiment of the present invention. the method of driving a schematic application scenario; FIG. 4 is a schematic view of a fourth embodiment of the drive apparatus provided by the invention; custom device structure shown Fen surface provided in the fifth embodiment of the present invention, FIG. 5; FIG. 6 a sixth embodiment of the present invention a schematic view of a communication system architecture provided.

具体实施方式 Detailed ways

下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。 Below in conjunction with the accompanying drawings of the present invention in embodiments, the technical solutions in the embodiments of the present invention are clearly and completely described, obviously, the described embodiments are merely part of embodiments of the present invention rather than all embodiments. 基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。 Based on the embodiments of the present invention, all other embodiments of ordinary skill in the art without any creative effort shall fall within the scope of the present invention.

为便于详细说明本发明实施例的技术方案,以下将具有标准通信接口的设备分为二种类型:标准设备和自定义设备。 Device for the facilitation of the detailed description of the technical solution of embodiments of the present invention, having a standard communication interface will be divided into two types: standard equipment and custom device. 其中,标准设备即为标准组织定义的、操作系统可识别的标准设备类型相应的或兼容的设备;自定义设备即为与标准设备类型不同且不兼容的设备。 Wherein the device is the standard defined by standards organizations, the operating system can recognize the device type of the corresponding standard or compatible equipment; defined devices from different device types that is not compatible with the standard device. 举例说明,标准设备类型可包括: 人体学接口(Human Interface Device,简称HID)设备;标准通信接口可包括USB接口;标准设备可包括:具有USB接口的标准USB设备,如具有USB 接口的光驱、U盘、移动硬盘、键盘、鼠标等;自定义设备可包括:具有USB 接口的自定义USB设备,如具有USB接口的温度计、空气检测器等。 Way of example, a standard device types may include: a human interface (Human Interface Device, referred to as HID) device; standard communication interfaces may be the USB interface; standard apparatus may comprise: a standard USB device having a USB interface, such as a USB interface of the drive, U disk, mobile hard disk, keyboard, mouse and the like; custom device may comprise: custom USB device having a USB interface, such as a thermometer, an air detector USB interface and the like.

图1为本发明第一实施例提供的设备驱动方法的流程图。 FIG 1 is a flowchart of a method driving apparatus according to a first embodiment of the present invention. 本实施例从安装有操作系统的主机侧,对本发明设备驱动方法技术方案进行说明。 The present embodiment is mounted from the side of the host operating system, a driving method of the device of the present invention will be described. 如图1 所示,本实施例设备驱动方法包括: Device driving method, the present embodiment shown in Figure 1 comprising:

步骤ll、接收具有标准通信接口的自定义设备的设备描述信息,该设备描述信息包括自定义设备类型与标准设备类型的兼容信息。 Step ll, the receiving device description information to customize the device with standard communication interface, the device description information includes custom device type standard compatible device type information.

本步骤用于在自定义设备初始化过程中,将自定义设备伪装成操作系统可识别的标准设备,以使操作系统在无法找到自定义设备的专用驱动文件时, 加载与其兼容设备类型相应的标准设备的驱动文件。 This step is used in the custom device initialization process, the self-defined device disguised as standard equipment may identify the operating system so that the operating system can not be found in a dedicated custom device driver file to load the device compatible with the corresponding type of standard the device driver files. 如此处理后,操作系统 After such treatment, the operating system

不会因无法为自定义设备找到匹配的驱动文件而认为自身无法识别该自定义设备,进而弹出"找到新硬件"的对话框,提示用户手动为该自定义设备选择驱动文件的安装路径。 Not due to inability to find a match for a custom device drivers and considers itself does not recognize the custom device, and then pop up "Found new hardware" dialog box that prompts the user to manually define the path for self-installing device drivers selected file. 实际上,这种伪装可认为是用于"欺骗"操作系统, 使操作系统认为当前接入的自定义设备为某种标准设备。 Indeed, this may be considered a masquerading "spoofing" operating system, the operating system so that the current access device is a certain standard custom devices. 至于当前接入的自定义设备实际上是否与标准设备兼容并不重要,即当前接入的自定义设备实际上可与标准设备兼容或不兼容。 As for the custom device is currently connected whether in fact compatible with standard equipment is not important, that is currently accessed by the custom device is actually compatible or incompatible with standard equipment.

步骤12、识别该自定义设备为与该兼容信息相应的标准设备类型。 Step 12, identifying the custom device that is compatible with the device type information corresponding standard.

在获取兼容信息后,操作系统可将该自定义设备识别为与该兼容信息相应的标准设备类型,即可在自身已配置的、与标准设备类型对应的或兼容的标准设备的通用驱动文件中,找到与兼容设备类型匹配的驱动文件并加载该驱动文件。 After obtaining compatibility information from the operating system may identify the device as defined is compatible with the standard information corresponding to the device type, to the general drivers configured itself, and is compatible with standard equipment or standard equipment corresponding to the type of to find compatible device driver files that match the type of drive and load the file. 在操作系统识别完成之后,操作系统与自定义设备之间通过标准通信接口建立的数据流通道已经建立;但自定义设备与操作系统之间基于该数据流通道传输的数据包是否能被正确的解析,取决于自定义设备与标准设备实际上是否兼容。 After the completion of the operating system recognizes, and the operating system from the data flow passage defined between the communication devices via a standard interface setup has been established; defined between the devices but from the operating system based on the data transmitted over the data flow whether the packet can be correctly resolution, depending on custom device is compatible with standard equipment actually.

如果自定义设备的设备类型实际上与标准设备类型不兼容,自定义设备访问协议与标准设备类型访问协议不同。 If you do not actually compatible with the standard device type from the device type definition equipment, custom device access protocol and standard access protocol different device types. 虽然操作系统与自定义设备之间通过标准通信接口建立的数据流通道已经建立,但由于自定义设备访问协议与标准设备访问协议不同,操作系统与自定义设备之间交换的数据包还是不能被正确解析,即操作系统与自定义设备之间不能进行正常的数据交换。 While the interface between the operating system from a standard defined by the communication apparatus to establish a data flow path has been established, but the custom device standard access protocol and device access different protocols, operating systems and data packets exchanged between custom devices or can not be correctly resolve, i.e. from the operating system and can not be defined between the normal data exchange devices.

步骤13、对数据包进行自定义设备访问协议和标准设备类型访问协议的转换处理,并通过所述标准通信接口与所述自定义设备交换所述转换处理后的数据包。 Step 13, the data packet conversion processing custom device standard access protocol and the protocol type of access device, through a standard communication interface and the custom conversion apparatus exchanging the data packets processed.

本步骤用于将遵循自定义设备访问协议的数据包封装成具有标准设备访问协议的数据包,使得具有标准设备访问协议的数据包可基于标准通信接口, 在操作系统与自定义设备之间已建立的数据流通道上传输。 This step will follow for data packet from the access protocol defined device packaged into packets having a standard access protocol of the device, such that packets having a standard access protocol apparatus may be based on a standard communication interface between the operating system and the device is custom established track data flow transmission.

本实施例可根据实际需要,为自定义设备编写专用应用程序,通过运行该专用应用程序对确定的需要与自定义设备交换的数据包,进行自定义设备访问协议和标准设备类型访问协议的转换处理。 The present embodiment may be based on actual needs, custom devices writing a special application, for determining the need to custom devices to exchange data packets, converting custom device access protocol and standard equipment type of access protocol by executing the dedicated application deal with. 该专用应用程序可视为自定义设备在操作系统上运行的一个"客户端",通过该"客户端"并基于标准通信接口可与自定义设备进行数据交换。 The dedicated application may be regarded as a "client" custom device running on the operating system, by the "client" and the device may be custom interface to exchange data based on the communication standard.

例如:当主机侧需要向自定义设备发送数据时,首先根据需要发送的数据生成遵循所述自定义设备访问协议的第一发送数据包;之后将第一发送数据包封装为遵循所述标准设备类型访问协议的第二发送数据包;最后将第二发送数据包通过标准通信接口发送给自定义设备。 For example: When the host side need to custom apparatus for transmitting data, first data to be transmitted is generated according to the following the custom device transmits a first access protocol data packet; transmitting a first data packet after the encapsulation device to follow the standard the second type of transmission data packet access protocol; Finally, the data packet to a second transmission device via a custom standard communication interface. 自定义设备侧需要向主机侧发送数据时,对需要发送的数据的封装方式相似。 Custom device side needs to send data to the host side, similar to the encapsulation of the data needs to be sent.

当主机侧通过标准通信接口接收到来自自定义设备发送的数据包时,根据标准设备类型访问协议解析经该数据包,得到第一接收数据包;之后,根据自定义设备访问协议解析所述第一接收数据包,得到第二接收数据包。 Then, parse the access protocol according to the definition of the self apparatus; host side when receiving the data packet from the sending device via a custom standard communication interface, according to the type of access protocol standard device by parsing the data packet to obtain first received data packet receiving a data packet, to obtain a second received data packet. 自定义设备侧接收到主机侧发送数据时,对接收数据包的解析方式相似。 When custom device side to the host side receives the transmission data, similar to the analytical methods the received packet.

自定义设备的专用应用程序可存放在光盘中、或存放在操作系统可识别且具有自动运行功能的设备中。 Since the definition of a dedicated application can be stored in the optical disc device, the operating system may be stored in, or identify the function and operation of the automatic apparatus. 当需要访问自定义设备时,可将存放有该专用应用程序的光盘放入光驱或将操作系统可识别且具有自动运行功能的设备与主机连接,通过操作系统自动运行该专用应用程序,通过运行该专用应用程序对数据包进行自定义设备访问协议和标准设备类型访问协议的转换处理。 When access is required to customize the device, and can store the optical disc into the CD drive of a dedicated application or the operating system recognizes a device connected to a host and automatic operation function, the dedicated application is automatically run by the operating system, by running the dedicated application packet conversion processing custom device standard access protocol and device type access protocol.

本实施例将自定义设备伪装成其设备类型与标准设备类型兼容的设备, 以便操作系统可将自定义设备识别为某种标准设备类型,从而与自定义设备建立起基于标准通信接口的数据流通道,之后,将需要与自定义设备交换的数据包,进行自定义设备访问协议与标准设备类型访问协议的转换处理,以使用标准设备类型的驱动文件建立数据流通道进行数据交互,从而克服了现有技术自定义设备必须加载专用驱动文件方可使用的限制,可免除自定义设 This embodiment will masquerade as custom devices its device type and device type standard compatible device, in order to customize the operating system may identify the device as a certain type of standard equipment, so that the custom device to establish a data communication interface based on a standard flow Road, then, would need to custom devices to exchange data packets, the conversion process custom device access protocol standard device type of access protocol to establish a data flow path using a standard type of device drivers to exchange data, thereby overcoming the custom prior art device drivers specific limits must be loaded before use, may dispense customizations

备的自定义专用驱动程序的开发和维护成本,本实施例易于实现,有利于改善用户体验。 Preparation of custom development and maintenance costs of the dedicated driver, easy to implement embodiment of the present embodiment, will help to improve the user experience.

图2为本发明第二实施例提供的设备驱动方法的信令交互图。 The second signaling interaction device driving method according to an embodiment of the present invention, FIG. 假设本实施例自定义设备为具有USB接口的自定义USB设备。 The present embodiment is assumed to customize a custom device is a USB device having a USB interface. 操作系统可自动识别USB标准组织已定义的标准设备类型相应的或兼容的标准USB设备,但不可自动识别自定义USB设备。 Operating system automatically recognizes the type of standard or compatible equipment standard USB device to the USB standard defined tissue, but not automatically recognize the custom USB device. 如图2所示,本实施例设备驱动方法包括: Device driving method shown in FIG. 2 of the present embodiment comprises:

步骤21、接收具有标准USB接口的自定义USB设备的设备描述信息,该设备描述信息包括自定义USB设备类型与标准USB设备类型的兼容信息。 Step 21, device description information received from the USB device has defined a standard USB interface, the device description information includes custom types of USB devices and USB standard compatible device type information.

当自定义USB设备与安装有操作系统的主机连接时,操作系统接收自定义USB设备发送的设备描述信息,该设备描述信息包括自定义USB设备类型与标准USB设备类型的兼容信息。 When the USB device to customize the operating system is installed in a host connector, a custom operating system receives the device information of the USB device description transmitted from the device description information includes custom types of USB devices and USB standard compatible device type information. 自定义USB设备可包括具有USB接口的调制解调器、温度计、空气检测器等设备;标准USB设备类型可包括具有标准USB接口的光驱等;主机上安装的操作系统可包括:Windows 2000、 Windows XP等,操作系统上已配置标准USB设备类型相应的或兼容的标准USB设备的通用驱动文件。 Custom USB devices may include a modem, a thermometer, an air detector and other devices having a USB interface; standard USB device types may include optical drives like a standard USB interface; installed on the host operating system may include: Windows 2000, Windows XP, etc. configured corresponding standard USB device drivers or compatible type universal standard USB device on the operating system.

自定义USB设备类型与标准USB设备类型的兼容信息可携带在设备描述消息格式中的"Class" 、 "Subclass"或"Protocol"字段中。 Custom devices USB standard USB type device type compatibility information may be carried in the device description message format "Class", "Subclass" or "Protocol" field. 例如:将"Class"、 "Subclass"和"Protocol"字段分别设置为"0x08" 、 "0x06" , "0x50", 用于表示当前自定义USB设备的设备类型与光驱设备类型兼容。 For example: The "Class", "Subclass" and "Protocol" field are set to "0x08", "0x06", "0x50", it is used to represent the current custom USB device type drive device compatible with the device type.

举例说明:当具有USB接口的调制解调器插入到主机时,该调制解调器主机操作系统发送的设备描述信息如:本设备的设备类型与具有USB接口的光驱设备兼容。 For example: when the modem is a USB interface is inserted into a host, the device description information sent by modem host operating system, such as: This type of apparatus with a drive device having a USB device compatible interface. 由于操作系统上已配置有具有USB接口的光驱类设备的通用驱动文件,因此,在操作系统获取该调制解调器的设备描述信息之后,操作系统可将该调制解调器作为一个操作系统可识别的、与具有USB接口的光驱类设备兼容的设备,因而不会弹出"找到新硬件"的对话框,有利于改善用户体验。 Since the operating system is configured with the generic class drivers drive device having a USB interface, and therefore, after the operating system acquire the device description information of the modem, the modem may be operating system as an operating system can be recognized, and having a USB CD-ROM device class interface-compatible devices, and thus will not pop up the "found new hardware" dialog box will help to improve the user experience.

步骤22、操作系统获取该设备描述信息后,可根据设备描述信息获取兼容信息,将自定义USB设备识别为与兼容信息相应的标准USB设备,加载标准USB设备的通用驱动文件,并基于标准USB接口建立遵循USB接口协议的数据流传输通道。 Step 22, after the operating system obtains the device description information, can be obtained according to the device description information compatibility information custom USB identification device is compatible with the information corresponding to a standard USB device, load the common drivers standard USB device, and based on the standard USB Interface USB interface protocol to follow the establishment of data streaming channel. 步骤23、在操作系统上运行自定义USB设备的专用应用程序即"客户端", 以实现与自定义USB设备进行数据交换。 Step 23, the operating system running on a custom application specific USB device, i.e., the "client", to realize a custom USB device to exchange data.

下面以主机侧与自定义USB设备之间的一次数据交换为例,说明通过运行专用应用程序即"客户端"访问自定义USB设备的原理,步骤23可包括步骤231-步骤237。 Below to the host side from the exchange of data between a USB device is defined as an example, illustrated by the dedicated application i.e. running "client" Access from the principles defined USB device, step 23 may include the step of step 237 231-.

步骤231、在操作系统中运行自定义USB设备的专用应用程序,即"客户端"。 Step 231, the operating system running a custom application specific USB device, i.e., "client."

步骤232、通过"客户端"采集需要与自定义USB设备交互的原始数据, 生成遵循自定义USB设备访问协议的数据包,并再次封装使其遵循标准USB 设备类型访问协议。 Step 232, the "client" needs to collect custom USB device interaction raw data, generating a custom follow USB device access protocol data packet, and encapsulate it follows standard USB device type access protocol again.

步骤233、通过标准USB接口将步骤232得到的数据包发送给自定义USB 设备。 Step 233, the standard USB interface obtained in step 232 to a custom data packet USB device.

步骤234、自定义USB设备根据标准设备类型访问协议解析通过标准USB 接口接收的数据包,并根据自定义设备访问协议对其进行再次解析,得到"客户端"采集到的需要与自定义USB设备交换的原始数据。 Step 234, according to a standard USB device to customize the type of device access protocol analyzed by the standard USB packets received, and based on custom device access protocol parse again to obtain a "client" collected USB device needs to customize exchange of raw data.

步骤232-步骤234即可完成主机侧向自定义USB设备发送原始数据的通信过程。 Step 232- Step 234 to complete the custom host side transmits USB device communication process raw data.

步骤235、自定义USB设备根据需要与自定义USB设备交互的原始数据, 生成遵循自定义USB设备访问协议的数据包,并再次封装使其遵循标准USB 设备类型访问协议。 Step 235, the USB device needed to customize the interaction from the original data defined in the USB device, the USB device generates a follow custom access protocol data packet, and encapsulate it follows standard USB device type access protocol again.

步骤236、通过标准USB接口将步骤235得到的数据包发送给主机侧。 Step 236, the standard USB interface 235 obtained in step data packet to the host side.

步骤237、主机侧运行的"客户端"根据标准设备类型访问协议解析通过标准USB接口接收数据包,并根据自定义设备访问协议对其进行再次解析, 得到自定义USB设备需要与主机侧交换的原始数据。 Step 237, the host-side running "client" according to standard analytical device type access protocol via standard USB interface receives the packet, and according to custom device access protocol parse again to give custom USB device needs to be exchanged with the host-side Raw data.

步骤235-步骤237即可完成自定义USB设备向主机侧发送原始数据的通信过程。 Step 235- Step 237 to complete the communication process to customize a USB device transmits the raw data to the host side. 本实施例将自定义USB设备伪装成标准USB设备,以便操作系统可将自定义USB设备识别为标准USB设备,通过标准USB设备的驱动文件与自定义USB设备建立起基于标准USB接口协议的数据流传输通道,并在该数据流传输通道上传输已经过自定义USB设备访问协议与标准USB设备访问协议转换处理后的数据包,〗吏得主机侧可正常访问自定义USB设备,与自定义USB设备进行数据交换。 This embodiment will be custom USB device disguised as a standard USB device, so the operating system can recognize the USB device is a custom standard USB device via USB standard device drivers with a custom build USB device based on USB standard interface protocol data streaming channel, and the transmission has been a custom USB device access protocol standard USB device access protocol conversion processing data packets in the data stream transmission channel,〗 officials have the host side can normally access the custom USB device, and custom USB devices for data exchange. 本实施例不需要加载自定义USB也可访问自定义USB设备, 提高了自定义USB设备驱动的方便性;此外,本实施例可免除自定义USB设备的开发和维护自定义专用驱动程序的成本,具有易于实现的优点,有利于改善用户体-险。 The present embodiment does not require custom USB loading can also be accessed to customize the USB device, and usability is improved custom USB device driver; In addition, the present embodiment can avoid the development of custom and maintenance costs USB device drivers dedicated custom , has the advantage of easy to implement, will help to improve the user body - insurance.

上述技术方案^ ,自定义USB设备可包括一个或多个自定义处理模块, 每个自定义处理模块映射为一种自定义设备类型,例如: 一个自定义处理模块映射为具有USB接口的空气检测器,另一自定义处理模块映射为具有USB 接口的温度计等。 ^ Above technical solutions, custom USB device may include one or more custom processing modules, each processing module custom maps as a custom device type, for example: a custom air detector having a USB interface for the mapping processing module , and the other processing modules mapped to a custom thermometer having a USB interface. 此外,该自定义USB设备还可包括一个或多个标准处理模块,每个标准处理模块映射为一种标准USB设备类型,如:将标准处理模块映射为具有USB接口的大存储容量设备(Mass Storage Device)。 In addition, the apparatus may further customize the USB standard include one or more processing modules, each processing module is a standard USB device mapped to a standard type, such as: the processing module is mapped to a standard large-capacity storage device having a USB interface (Mass Storage Device).

图3为本发明第三实施例提供的设备驱动方法应用场景示意图。 Figure 3 device driver method of the third embodiment provides a schematic diagram of an application scenario of the present invention. 如图3 所示,本实施例自定义USB设备包括:标准处理模块、第一自定义处理模块和第二自定义处理模块。 As shown in FIG. 3, a custom USB device according to the present embodiment comprises: a standard processing module, a first processing module and a second custom custom processing module.

标准处理模块已被模拟成操作系统可识别的、具有自动运行功能的大存4渚容量i殳备4妾口(Mass Storage Device Interface)功能的i殳备类型,即标准处理模块可视为与光驱设备类型兼容;主机的操作系统可遵循光驱访问协议对标准处理模块进行数据交换,如:可自动运行存储在标准处理模块中的应用程序。 Standard processing module has been modeled as the operating system recognizes, Shu 4 Preparation of type i For large capacity storage apparatus 4 i Shu concubine port (Mass Storage Device Interface) functions with automatic operation function, i.e., the processing module can be regarded as the standard CD-ROM device type compatibility; host operating system may follow a standard CD-ROM drive access protocol processing module for data exchange, such as: the application can be run automatically stored in a standard processing module.

第一自定义处理模块映射为具有一种自定义接口(Function Interface 1)功能的自定义设备类型,如具有USB接口的温度计等;第二自定义处理模块映射为具有一种自定义接口(Function Interface 2)功能的自定义设备 A first mapping processing module is custom to have a custom interface (Function Interface 1) custom device function type, such as a thermometer having a USB interface; a second mapping processing module is custom to have a custom interface (Function Interface 2) custom device function

13类型,如具有USB接口的空气检测器等。 13 type, such as an air detector having a USB interface and the like.

本实施例可采用与本发明第一实施例和第二实施例记载的相同方法,将第一自定义模块识别为某种标准设备,将第二自定义模块识别为某种标准设备。 Examples and Examples employed the same method described in the second embodiment of the present invention, a first embodiment of the present embodiment, the first module is identified as a certain custom standard equipment, the module is identified as a second custom certain standard equipment. 同时,可将第一自定义处理模块的专用应用程序和第二自定义处理模块的专用应用程序存储在标准处理模块中。 Meanwhile, a dedicated application may be an application-specific custom a first processing module and a second custom processing module stored in the standard processing module. 当自定义设备与主机基于标准处理模块通信时,主机的操作系统可遵循光驱访问协议自动运行自定义设备上与标准处理模块上存储的专用应用程序。 When custom standards-based communication with a host device processing module, the host operating system can run automatically follow the drive access protocol on a custom application-specific device and stored on a standard processing module. 通过运行专用应用程序访问第一自定 The first visit by running a custom application-specific

义模块或第二自定义模块。 Custom-defined module or the second module.

本实施例将自定义USB设备包括的映射为自定义设备类型的自定义处理模块的专用应用程序,存储在该自定义设备已映射为具有自动运行功能的标准USB设备类型的标准处理模块中,通过操作系统自动运行存储在标准处理模块的专用应用程序,实现与自定义设备中映射为自定义USB设备类型的自定义处理模块的数据交换,整个自定义USB设备驱动过程无需加载自定义USB 设备的专有驱动文件,提高了驱动自定义USB设备的方便性,有利于改善用户体验。 This embodiment will be custom USB device includes a mapping of the self-specific application-defined device types custom processing modules, stored in the custom device is mapped to a standard USB device type having Autorun standard processing module, the operating system automatically runs stored in a dedicated application standard processing modules, implemented with a custom device is mapped to a custom USB device type of custom processing module data exchange, the entire custom USB device driver process without loading custom USB device the proprietary driver files, improved custom USB device driver convenience, will help to improve the user experience.

图4为本发明第四实施例提供的驱动装置结构示意图。 FIG 4 is a schematic structural diagram of a driving device of the fourth embodiment of the present invention. 如图4所示,本实施例驱动装置包括:接收模块41、识别模块42和通信模块43。 A receiving module 41, identification module 42 and the communication module 43: 4, the embodiment of the present embodiment comprises a driving device.

接收模块41用于接收具有标准通信接口的自定义设备的设备描述信息, 该设备描述信息包括自定义设备类型与标准设备类型的兼容信息。 The receiving module 41 receives the device description information for a custom device having a standard communication interface, the device description information includes custom device type standard compatible device type information.

识别模块42用于识别自定义设备为与上述兼容信息相应的标准设备类型。 Identification module 42 is compatible with the above-described respective standard device type information for identifying the custom device.

通信模块43用于对数据包进行自定义设备访问协议和标准设备类型访问协议的转换处理,并通过标准通信接口与自定义设备交换转换处理后的数据包。 The communication module 43 is used to convert the packet processing devices to access the custom protocols and standard equipment of the type of access protocol and standard communication interface devices to exchange custom conversion processing packets.

在上述技术方案的基础上,通信模块43可进一步包括:获取单元431、 运行单元432和标准接口单元433。 Based on the above technical solution, the communication module 43 may further include: an obtaining unit 431, operation unit 432 and the interface unit 433 standard. 获取单元4 31用于获取自定义设备的专用应用程序。 Acquiring unit 431 for acquiring the apparatus-specific custom applications.

运行单元432用于运行获取单元431获取的专用应用程序,用以对确定的需要与自定义设备交换的数据包,进行自定义设备访问协议和标准设备类型访问协议的转换处理。 Operation unit 432 for operating acquiring unit 431 acquires a dedicated application for the determination of the need for custom devices to exchange data packets, the custom conversion processing device standard access protocol and device type access protocol.

标准接口单元433用于通过标准通信接口与自定义设备交换转换处理后的数据包。 Standard interface unit 433 via the standard communication interface for custom conversion processing devices to exchange data packets.

在上述技术方案的基础上,运行单元432还可进一步包括:封装单元4321 和解析单元4322。 Based on the above technical solution, execution unit 432 may further comprises: an encapsulating unit 4321 and analyzing unit 4322.

封装单元4321用于生成遵循自定义设备访问协议的第一发送数据包;将第一发送数据包封装为遵循标准设备类型访问协议的第二发送数据包。 Encapsulating unit 4321 for generating a custom device access protocol follows the first transmission data packet; transmitting a first data packet encapsulating the device to follow a standard protocol of a second type of access packet transmission.

解析单元4322用于根据标准设备类型访问协议解析经标准通信接口接收的数据包,得到第一接收数据包;根据自定义设备访问协议解析第一接收数据包,得到第二接收数据包。 The parsing unit 4322 for parsing the standard device type access protocol via the standard communication interface for receiving a data packet to obtain first received data packet; custom device according to a first access protocol parsing the received data packet, to obtain a second received data packet.

本实施例在具有标准通信接口的自定义设备初始化过程中,不需要加载 In the present embodiment, custom device having a standard communication interface initialization process, the need to load

备驱动的方便性,有利于改善用户体验。 Device driver convenience, will help to improve the user experience. 在具体实现上,本发明实施例驱动装置可为安装有操作系统的主机,如计算机、手机等智能终端,其驱动自定义设备以及与自定义设备进行通信的原理详见图1-图3对应实施例的记载, 不再赘述。 In the specific implementation, embodiments of the present invention, the driving device may correspond to embodiments of a host operating system is installed, such as computers, mobile phones and other intelligent terminal, and a custom device driver to customize the communication device principle see Figures 1 to 3 described embodiment, is omitted.

图5为本发明第五实施例提供的自定义设备结构示意图。 Since FIG. 5 schematic structural diagram of a device defined in the fifth embodiment of the present invention. 如图5所示, 本实施例自定义设备包括:生成单元51、发送单元52和通信单元53。 5, the embodiment of the present embodiment custom device comprising: a generation unit 51, transmitting unit 52 and the communication unit 53.

生成单元51用于生成设备描述信息,该设备描述信息包括自定义设备类型与标准设备类型的兼容信息。 Generating means for generating a device description information 51, the device description information includes custom device type standard compatible device type information.

发送单元52用于将生成单元51生成的设备描述信息向驱动装置发送, 以供驱动装置将自定义设备识别为与兼容信息相应的标准设备类型。 The sending unit 52 for generating unit 51 generates a device description information to the drive means, the drive means for the custom device compatible with the identification information corresponding to the type of standard equipment.

通信单元5 3用于对数据包进行自定义设备访问协议和标准设备类型访问协议的转换处理,并通过标准通信接口与驱动装置交换转换处理后的数据包。 The communication unit 53 converts a packet processing apparatus to customize the standard access protocol and the protocol type of access device, and the packet processed through a standard communication interface means for exchanging with the drive conversion.

在上述技术方案的基础上,通信单元53可包括:封装单元531、解析单元532和标准4矣口单元533。 Based on the above technical solution, the communication unit 53 may include: an encapsulating unit 531, parsing unit 532 and the standard port unit 533 carry 4.

封装单元531用于生成遵循自定义设备访问协议的第一发送数据包;将第一发送数据包封装为遵循标准设备类型访问协议的第二发送数据包。 Encapsulation unit 531 for generating a custom device access protocol follows a first transmission data packet; transmitting a first data packet encapsulating the device to follow a standard protocol of a second type of access packet transmission.

解析单元532用于根据标准设备类型访问协议解析经标准通信接口接收的数据包,得到第一接收数据包;根据自定义设备访问协议解析第一接收数据包,得到第二接收数据包。 Parsing unit 532 via the standard communication interface for parsing the received device type according to a standard access protocol data packet to obtain first received data packet; custom device according to a first access protocol parsing the received data packet, to obtain a second received data packet.

标准接口单元533用于通过标准通信接口与驱动装置交换转换处理后的数据包。 Standard interface unit 533 for data packets processed by the standard communication interface means for exchanging with the drive conversion.

在上述技术方案的基础上,本发明实施例自定义设备还可包括:至少一个自定义处理模块,每个自定义处理模块映射为一种自定义设备类型。 Based on the above technical solution, embodiments of the present invention may further customize the apparatus comprising: at least one custom processing modules, each processing module custom mapping device as a custom type. 在每个自定义处理模块中都可包括生成单元51、发送单元52和通信单元53。 In each custom processing module may include a generating unit 51, sending unit 52 and the communication unit 53. 进一步的,本发明实施例自定义设备还可包括:映射为具有自动运行功能的标准设备类型的标准处理模块,该标准处理模块存储有自定义处理模块对应的自定义设备的专用应用程序。 Further, the embodiment of the present invention may further customize the apparatus comprising: a mapping type standard as a standard device processing module has the function of automatic operation, the standard processing module stores a custom application specific processing module corresponding to the custom device. 该情形下,自定义设备的结构示意图可参见图3的记载,驱动装置可访问该标准处理模块,自动运行其上保存的专用应用程序,以实现与各自定义^t块进行协议转换处理后的数据包的交换。 In this case, since the structure definition apparatus schematic diagram according to 3 Referring to FIG drive can access the standard processing module automatically runs stored thereon dedicated application, in order to achieve define respective ^ t block protocol conversion process packet switching.

本实施例自定义设备在与驱动装置的初始化过程中,可将自身伪装成与某种标准设备类型兼容的设备,以便驱动装置将其识别为某种标准设备类型, 从而与自定义设备建立起基于标准通信接口的数据流通道,之后,将需要与自定义设备交换的数据包,进行自定义设备访问协议与标准设备类型访问协议的转换处理,以使用标准设备类型的驱动文件建立数据流通道进行数据交互,从而克服了现有技术自定义设备必须加载专用驱动文件方可使用的限制, This custom device in the embodiment of the drive device initialization process, may be disguised itself is compatible to a standard device types, in order to drive means which is identified as a certain type of standard equipment, and thereby establish a custom device data flow channel based on the standard communication interface, and thereafter, the need to custom devices to exchange data packets, the conversion process custom device access protocol standard device type of access protocol, using a standard type of device drivers establish a data flow path to exchange data, thereby overcoming the limitations of the prior art dedicated custom device driver files must be loaded before use,

实现,有利于改善用户体验。 Implementation, will help to improve the user experience. 自定义设备驱动原理和具体表现形式详见图1-图3对应实施例的记载,不再赘述。 Custom equipment driving principle detailed and specific forms described in Figures 1 to 3 corresponds to the embodiment, it is omitted.

图6为本发明第六实施例提供的通信系统结构示意图。 A schematic view of a communication system structure of the sixth embodiment provided in FIG. 6 of the present invention. 如图6所示,本实施例通信系统包括:自定义设备61和驱动装置62。 6, the embodiment of the communication system of the present embodiment comprises: custom device 61 and the drive means 62.

自定义设备61用于生成并发送设备描述信息,该设备描述信息包括自定义设备类型与标准设备类型的兼容信息。 Custom device 61 for generating and transmitting information describing the device, the device description information includes custom device type standard compatible device type information.

驱动装置62用于识别所述自定义设备为与兼容信息相应的标准设备类型;对数据包进行自定义设备访问协议和标准设备类型访问协议的转换处理, 并通过标准通信接口与自定义设备交换转换处理后的数据包。 Drive means 62 for identifying the custom device compatible with the device type information corresponding to the standard; conversion processing data packets custom device standard access protocol and device type of access protocol and standard communication interface devices to exchange custom converting the processed data packet.

本实施例不需要加载自定义设备的专用驱动程序也可实现对自定义设备的访问,提高了自定义设备驱动的方便性,有利于改善用户体验。 The present embodiment does not require a dedicated load custom device driver can also implement a custom device access to, and usability is improved custom device driver, help to improve the user experience.

本领域普通技术人员可以理解:附图只是一个实施例的示意图,附图中的模块或流程并不一定是实施本发明所必须的。 Those of ordinary skill in the art will be understood: the drawings is only a schematic example of embodiment, the modules or processes in the accompanying drawings are not necessarily embodiments of the present invention it is necessary.

本领域普通技术人员可以理解:实施例中的装置中的模块可以按照实施例描述分布于实施例的装置中,也可以进行相应变化位于不同于本实施例的一个或多个装置中。 Those of ordinary skill in the art can be appreciated: Examples of modules in the apparatus described apparatus embodiments may be distributed in the embodiment, it may be performed according to the present embodiment which are different from one case or more apparatuses according to the embodiment. 上述实施例的模块可以合并为一个模块,也可以进一步拆分成多个子模块。 Modules of the embodiments may be combined into one module, or split into multiple submodules. 上述本发明实施例序号仅仅为了描述,不代表实施例的优劣。 Example No. embodiment of the present invention are merely for description, and do not represent embodiments of the merits.

本领域普通技术人员可以理解:实现上述方法实施例的全部或部分步骤可以通过程序指令相关的硬件来完成,前述的程序可以存储于一计算机可读取存储介质中,该程序在执行时,执行包括上述方法实施例的步骤;而前述的存储介质包括:R0M、 RAM、磁碟或者光盘等各种可以存储程序代码的介质。 Those of ordinary skill in the art will be understood: the hardware implementing the above method to complete all or part of the steps associated with embodiments may be implemented by program instructions, the program may be stored in a computer readable storage medium, the program, when executed, performs comprising the steps of the method embodiments described above; and the storage medium comprising: a variety of medium R0M, RAM, magnetic disk, or an optical disc capable of storing program code.

最后应说明的是:以上实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述实施例所记载的技术方案进行修改,或者 Finally, it should be noted that: the above embodiments are intended to illustrate the present invention, rather than limiting;. Although the embodiments of the present invention has been described in detail, those of ordinary skill in the art should be understood: that they may still to modify the technical solutions described in the foregoing embodiments, or

对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明实施例技术方案的精神和范围。 Some technical features equivalents; as such modifications or replacements do not cause the essence of corresponding technical solutions to depart from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims (13)

1、一种设备驱动方法,其特征在于,包括:接收具有标准通信接口的自定义设备的设备描述信息,所述设备描述信息包括自定义设备类型与标准设备类型的兼容信息;识别所述自定义设备为与所述兼容信息相应的标准设备类型;对数据包进行自定义设备访问协议和标准设备类型访问协议的转换处理,并通过所述标准通信接口与所述自定义设备交换所述转换处理后的数据包。 1, an apparatus driving method comprising: receiving information from the device description defines the device having a standard communication interface, the device description information includes custom device type device type standard compatibility information; identifying the self It is defined as a device compatible with the device type information corresponding to the standard; conversion processing data packets custom device standard access protocol and the protocol type of access device, and exchanging the custom device through said converter with the standard communication interface packet processed.
2、 根据权利要求1所述的设备驱动方法,其特征在于,所述对数据包进行自定义设备访问协议和标准设备类型访问协议的转换处理,包括:获取所述自定义设备的专用应用程序;运行所述专用应用程序,用以对确定的需要与所述自定义设备交换的数据包,进行自定义设备访问协议和标准设备类型访问协议的转换处理。 2. The apparatus driving method according to claim 1, wherein said conversion processing of the data packet access protocol and custom device type of access protocol standard device, comprising: obtaining a custom application specific devices ; running the dedicated application, the need to customize the devices to exchange data packets determined conversion processing custom device standard access protocol and device type access protocol.
3、 根据权利要求2所述的设备驱动方法,其特征在于,所述对确定的需要与所述自定义设备交换的数据包,进行自定义设备访问协议和标准设备类型访问协议的转换处理,包括:生成遵循所述自定义设备访问协议的第一发送数据包;将所述第一发送数据包封装为遵循所述标准设备类型访问协议的第二发送数据包;和/或根据所述标准设备类型访问协议解析经所述标准通信接口接收的数据包,得到第一接收数据包;根据所述自定义设备访问协议解析所述第一接收数据包,得到第二接收数据包。 3. The apparatus driving method according to claim 2, characterized in that, the need to customize the devices to exchange data packets determined conversion processing custom device standard access protocol and device type of access protocol, comprising: generating a custom device to follow the first access protocol transmitted data packet; transmitting said first data packet encapsulating device to follow the standard of the second type of access protocol to transmit data packets; and / or according to the standard device type access protocol via the standard communication interface for parsing the received data packet to obtain first received data packet; custom device in accordance with the access protocol to parse the received first data packet to obtain a second received data packet.
4、 根据权利要求2所述的设备驱动方法,其特征在于,在所述自定义设备存储有所述专用应用程序时,获取所述专用应用程序包括:向所述自定义设备获取所述专用应用程序。 4. The apparatus driving method according to claim 2, characterized in that the custom device stores the dedicated application, acquires the dedicated application program comprising: obtaining custom device dedicated to the application.
5、 一种驱动装置,其特征在于,包括:接收模块,用于接收具有标准通信接口的自定义设备的设备描述信息,所述设备描述信息包括自定义设备类型与标准设备类型的兼容信息;识别模块,用于识别所述自定义设备为与所述兼容信息相应的标准设备类型;通信模块,用于对数据包进行自定义设备访问协议和标准设备类型访问协议的转换处理,并通过所述标准通信接口与所述自定义设备交换所述转换处理后的数据包。 5. A driving device comprising: receiving means for receiving information from the device description has defined a standard communication interface apparatus, and the device description information includes custom device type device type standard compatibility information; identification means for identifying the custom device is compatible with said information corresponding to the type of standard device; a communication module configured to convert the packet processing devices to access the custom protocols and standard equipment of the type of access protocol, by the said standard communication interface and the custom conversion apparatus exchanging the data packets processed.
6、 根据权利要求5所述的驱动装置,其特征在于,所述通信模块包括:获取单元,用于获取所述自定义设备的专用应用程序;运行单元,用于运行所述专用应用程序,用以对确定的需要与所述自定义设备交换的数据包,进行自定义设备访问协议和标准设备类型访问协议的转换处理;标准接口单元,用于通过所述标准通信接口与所述自定义设备交换所述转换处理后的数据包。 6. The driving apparatus according to claim 5, wherein said communication module includes: an obtaining unit, configured to obtain the device-specific custom applications; running unit for running the dedicated application, for the determination of the need to customize the devices to exchange data packets, the custom conversion processing device standard access protocol and the protocol type of access device; standard interface unit, via the standard communication interface for the custom converting apparatus exchanging the data packets processed.
7、 根据权利要求6所述的驱动装置,其特征在于,所述运行单元包括:封装单元,用于生成遵循所述自定义设备访问协议的第一发送数据包;将所述第一发送数据包封装为遵循所述标准设备类型访问协议的第二发送数据包;解析单元,用于根据所述标准设备类型访问协议解析经所述标准通信接口接收的数据包,得到第一接收数据包;根据所述自定义设备访问协议解析所述第一接收数据包,得到第二接收数据包。 7. The driving apparatus as claimed in claim 6, characterized in that the operating unit comprises: a packaging unit for generating a custom device to follow the first access protocol transmitted data packet; transmitting said first data packet encapsulation type device to follow the standard access protocol transmits a second data packet; parsing unit configured to parse received via the standard communication interface apparatus in accordance with the standard type of access protocol data packet to obtain first received data packet; the access to the custom parse the first protocol apparatus receives the packet, to obtain a second received data packet.
8、 一种智能终端,其特征在于,所述智能终端包括权利要求5所述的驱动装置。 8, an intelligent terminal, wherein said drive means includes a intelligent terminal according to claim 5.
9、 一种自定义设备,其特征在于,包括:生成单元,用于生成设备描述信息,所述设备描述信息包括自定义设备类型与标准设备类型的兼容信息;发送单元,用于将所述设备描述信息向驱动装置发送,以供所述驱动装置将所述自定义设备识别为与所述兼容信息相应的标准设备类型;通信单元,用于对数据包进行自定义设备访问协议和标准设备类型访问协议的转换处理,并通过标准通信接口与所述驱动装置交换所述转换处理后的数据包。 9. A custom device, characterized by comprising: generating means for generating a device description information, the device description information includes custom device type device type standard compatibility information; transmitting means for the the device description information to the drive means, the drive means for the custom device identification information as corresponding to said standard compatible device type; a communication unit for data packets custom device access protocol and standard equipment type of access protocol conversion processing, and the standard communication interface exchanging the drive means converting the processed data packet.
10、 根据权利要求9所述的自定义设备,其特征在于,所述通信单元包括:封装单元,用于生成遵循所述自定义设备访问协议的第一发送数据包; 将所述第一发送数据包封装为遵循所述标准设备类型访问协议的第二发送数据包;解析单元,用于根据所述标准设备类型访问协议解析经所述标准通信接口接收的数据包,得到第一接收数据包;根据所述自定义设备访问协议解析所述第一接收数据包,得到第二接收数据包;标准接口单元,用于通过所述标准通信接口与所述驱动装置交换所述转换处理后的数据包。 10, the custom device according to claim 9, wherein the communication unit comprises: an encapsulating unit configured to generate custom device to follow the first access protocol transmitted data packet; transmitting said first encapsulating the data packet to follow a standard protocol of a second type of access device transmits data packet; parsing unit according to the type of access protocol standard device via the standard communication interface for parsing a received data packet, to obtain a first received data packet ; Customizing the access parse the first protocol apparatus receives the packet, to obtain a second received data packet in accordance with; standard interface unit to said data conversion by said standard communications interface means for exchanging with said drive processing package.
11、 根据权利要求9所述的自定义设备,其特征在于,还包括:至少一个自定义处理模块,每个自定义处理模块映射为一种自定义设备类型。 11, the custom device according to claim 9, characterized in that, further comprising: at least one custom processing modules, each processing module custom mapping device as a custom type.
12、 根据权利要求ll所述的自定义设备,其特征在于,还包括: 映射为具有自动运行功能的标准设备类型的标准处理模块,所述标准处理模块存储有所述自定义处理模块对应的自定义设备的专用应用程序。 12, custom device according to claim ll, characterized in that, further comprising: a mapping device as a standard type having a standard processing module automatic operation function, the standard processing module stores the corresponding custom processing module since the dedicated application-defined devices.
13、 一种通信系统,其特征在于,包括:自定义设备,用于生成并发送设备描述信息,所述设备描述信息包括自定义设备类型与标准设备类型的兼容信息;驱动装置,用于识别所述自定义设备为与所述兼容信息相应的标准设备理,并通过所述标准通信接口与所述自定义设备交换所述转换处理后的数据包。 13. A communication system comprising: custom device, for generating and transmitting the device description information, the device description information includes custom device type device type standard compatibility information; driving means for identifying the device is a self-defined data packet of the process compatible with standard equipment corresponding to the information processing, and through the standard interface and the custom communication apparatus exchanging the conversion.
CN 200910081902 2009-04-07 2009-04-07 Equipment driving method, equipment driving device and communication system CN101520756A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 200910081902 CN101520756A (en) 2009-04-07 2009-04-07 Equipment driving method, equipment driving device and communication system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 200910081902 CN101520756A (en) 2009-04-07 2009-04-07 Equipment driving method, equipment driving device and communication system

Publications (1)

Publication Number Publication Date
CN101520756A true CN101520756A (en) 2009-09-02

Family

ID=41081357

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 200910081902 CN101520756A (en) 2009-04-07 2009-04-07 Equipment driving method, equipment driving device and communication system

Country Status (1)

Country Link
CN (1) CN101520756A (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102262600A (en) * 2010-05-25 2011-11-30 安凯(广州)微电子技术有限公司 Usb device recognition method and system
CN102591812A (en) * 2011-01-13 2012-07-18 旺玖科技股份有限公司 Operation method for a computer system
CN103488513A (en) * 2013-09-30 2014-01-01 北京水木元生科技有限责任公司 Universal driving method for plug and play of device
CN103544122A (en) * 2013-10-29 2014-01-29 华东师范大学 Port adaptive matching synergetic system and synergetic method thereof
CN104424153A (en) * 2013-09-10 2015-03-18 广州稳捷信息科技有限公司 System and method thereof for collecting data of audio and video equipment with USB (universal serial bus) interface
CN104468526A (en) * 2014-11-14 2015-03-25 广东欧珀移动通信有限公司 Content sharing method and access method of digital media server and related devices
CN104778135A (en) * 2015-04-15 2015-07-15 上海与德通讯技术有限公司 Device compatible method and system
CN105573809A (en) * 2012-11-15 2016-05-11 青岛海信宽带多媒体技术有限公司 Method and device for establishing equipment nodes
CN106383796A (en) * 2016-10-18 2017-02-08 广州视睿电子科技有限公司 Host operation system type identification method and system
WO2019075620A1 (en) * 2017-10-16 2019-04-25 华为技术有限公司 Data processing system

Cited By (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102262600B (en) 2010-05-25 2013-12-25 安凯(广州)微电子技术有限公司 Method and system for recognizing USB (Universal Serial Bus) equipment
CN102262600A (en) * 2010-05-25 2011-11-30 安凯(广州)微电子技术有限公司 Usb device recognition method and system
CN102591812A (en) * 2011-01-13 2012-07-18 旺玖科技股份有限公司 Operation method for a computer system
CN102591812B (en) * 2011-01-13 2015-04-08 旺玖科技股份有限公司 Operation method for a computer system
CN105573809A (en) * 2012-11-15 2016-05-11 青岛海信宽带多媒体技术有限公司 Method and device for establishing equipment nodes
CN104424153B (en) * 2013-09-10 2017-10-20 广州稳捷信息科技有限公司 A kind of audio & video equipment data collecting system and its method to USB interface
CN104424153A (en) * 2013-09-10 2015-03-18 广州稳捷信息科技有限公司 System and method thereof for collecting data of audio and video equipment with USB (universal serial bus) interface
CN103488513A (en) * 2013-09-30 2014-01-01 北京水木元生科技有限责任公司 Universal driving method for plug and play of device
CN103488513B (en) * 2013-09-30 2016-04-13 北京水木元生科技有限责任公司 Equipment plug and play general drive method
CN103544122A (en) * 2013-10-29 2014-01-29 华东师范大学 Port adaptive matching synergetic system and synergetic method thereof
CN104468526A (en) * 2014-11-14 2015-03-25 广东欧珀移动通信有限公司 Content sharing method and access method of digital media server and related devices
CN104468526B (en) * 2014-11-14 2018-01-19 广东欧珀移动通信有限公司 A kind of content sharing method of digital media server, access method and relevant apparatus
CN104778135A (en) * 2015-04-15 2015-07-15 上海与德通讯技术有限公司 Device compatible method and system
CN104778135B (en) * 2015-04-15 2018-04-27 上海与德通讯技术有限公司 A kind of device compatibility method and system
CN106383796A (en) * 2016-10-18 2017-02-08 广州视睿电子科技有限公司 Host operation system type identification method and system
CN106383796B (en) * 2016-10-18 2019-06-14 广州视睿电子科技有限公司 A kind of recognition methods and system of host operating system type
WO2019075620A1 (en) * 2017-10-16 2019-04-25 华为技术有限公司 Data processing system

Similar Documents

Publication Publication Date Title
KR101292936B1 (en) Plug and play device redirection for remote systems
US20120324067A1 (en) Method and apparatus for remote delivery of managed usb services via a mobile computing device
CN1260642C (en) Method for transmitting command and data to portable storage device
KR20140111010A (en) Bi-directional tunneling via user input back channel for wireless displays
US9176649B2 (en) Method and apparatus of remote management of computer system using voice and gesture based input
US20110087726A1 (en) Cloud server, client terminal, device, and method of operating cloud server and client terminal
US7124234B2 (en) Managing transmissions between devices
US9456229B2 (en) Parsing single source content for multi-channel publishing
KR101130474B1 (en) Generic usb drivers
JP2007172586A (en) Method, apparatus and computer program for sharing computer data among computers
US20070005867A1 (en) Virtual peripheral device interface and protocol for use in peripheral device redirection communication
US7458075B2 (en) Virtual USB port system and method
US9430412B2 (en) NVM express controller for remote access of memory and I/O over Ethernet-type networks
JP2008512734A (en) Multimedia content management system
US8214525B2 (en) Addresses assignment for adaptor interfaces
EP1624645A1 (en) System and method for generating selectable extension to media transport protocol
EP1750401B1 (en) USB 1.1 over a high speed link
CN1237455C (en) Data transmission controlling system, electronic apparatus, and data transmission controlling method
JP4160510B2 (en) Emulator enabled network connection to the device
US8055802B2 (en) Open service gateway initiative-based home gateway apparatus and device registration method thereof
WO1998028693A1 (en) Method and apparatus for implementing a wireless universal serial bus host controller
US7213096B2 (en) Operating a remote USB host controller
US20080276012A1 (en) Driver Loading via a PnP Device
US20090013103A1 (en) Data sharing and transfer systems and methods
US7738397B2 (en) Generating topology information identifying devices in a network topology

Legal Events

Date Code Title Description
C06 Publication
C10 Request of examination as to substance
C12 Rejection of an application for a patent