WO2012100515A1 - 一种无线通讯终端的启用方法及装置 - Google Patents

一种无线通讯终端的启用方法及装置 Download PDF

Info

Publication number
WO2012100515A1
WO2012100515A1 PCT/CN2011/077584 CN2011077584W WO2012100515A1 WO 2012100515 A1 WO2012100515 A1 WO 2012100515A1 CN 2011077584 W CN2011077584 W CN 2011077584W WO 2012100515 A1 WO2012100515 A1 WO 2012100515A1
Authority
WO
WIPO (PCT)
Prior art keywords
communication terminal
wireless communication
operating system
ecm
sub
Prior art date
Application number
PCT/CN2011/077584
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 中兴通讯股份有限公司
Publication of WO2012100515A1 publication Critical patent/WO2012100515A1/zh

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/38Information transfer, e.g. on bus
    • G06F13/382Information transfer, e.g. on bus using universal interface adapter
    • G06F13/387Information transfer, e.g. on bus using universal interface adapter for adaptation of different data processing systems to different peripheral devices, e.g. protocol converters for incompatible systems, open system
    • 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

Definitions

  • the present invention relates to the field of communication technologies, and in particular to a method and apparatus for enabling a wireless communication terminal. Background technique
  • the wireless data card When a user uses a wireless communication terminal based on a Universal Serial Bus (USB) interface, such as a wireless data card, the wireless data card is enabled by two switching modes, specifically, the first time accessing the computer. After the operating system, the wireless data card enumerates a virtual optical drive, which stores the driver, management program, and help files of the network communication port. The user runs the virtual optical drive to manage the program and driver, and the wireless data card is completed.
  • USB Universal Serial Bus
  • the wireless data card enumerates a type of device such as a human interface device (HID, Human) that drives the optical drive and the operating system. Interface Device ), or a combination of cameras, etc., where the optical drive is responsible for installing the management program, and the operating system has its own type of device as the operating system.
  • HID human interface device
  • Interface Device a combination of cameras, etc.
  • the medium for data exchange with the wireless data card network that is, the network data is exchanged by encapsulating the network data packet into the HID request, or the camera command request, etc., thereby implementing the wireless data card to drive the Internet, but the method needs
  • the network packet is encapsulated into a HID request, or a camera command request, etc.
  • the specific encapsulation is difficult to implement in practical applications. Therefore, the method has the disadvantages of being technically difficult and difficult to implement.
  • Ethernet Control Model is USB communication.
  • CDC Device Category
  • RNDIS Network Driver Interface Specification
  • the RNDIS-compliant wireless data card is available in Windows. When the operating system is enabled, the RNDIS driver of the operating system is automatically installed.
  • the main object of the present invention is to provide a method and an apparatus for enabling a wireless communication terminal, which can realize the drive-free activation of the wireless communication terminal.
  • the invention provides a method for enabling a wireless communication terminal, the method comprising:
  • the wireless communication terminal After the wireless communication terminal is plugged into the host computer and powered on, the wireless communication terminal is enumerated as an ECM device to the operating system of the host, and then it is determined whether the operating system supports the ECM device. After the operating system supports the ECM device, the automatic installation of the wireless communication terminal is implemented by the driver of the operating system; after the operating system does not support the ECM device, the wireless communication terminal is enumerated as the RNDIS device to the operating system. The automatic installation of the wireless communication terminal is implemented by the driver of the operating system.
  • the following includes: configuring the device, the interface, the descriptor information of the endpoint, and the driving of the data flow and the control flow according to the ECM;
  • the method includes: configuring the device, the interface, the descriptor information of the endpoint, and the driving of the data flow and the control flow according to the RNDIS.
  • the enumerating the wireless communication terminal to the operating system of the host is an ECM device, which is:
  • the device, the interface, and the descriptor information of the endpoint corresponding to the ECM sub-device are reported to the operating system.
  • the determining whether the operating system supports the ECM device is: whether the ECM request sent by the operating system is received within a specified duration.
  • the enumerating the wireless communication terminal to the operating system is an RNDIS device, which is:
  • the device, the interface, and the descriptor information of the endpoint corresponding to the RNDIS sub-device are reported to the operating system.
  • the method further includes:
  • the wireless communication terminal After the automatic installation of the wireless communication terminal is implemented by the driver of the operating system, the wireless communication terminal interacts with the operating system to perform an ECM request and an instruction, so that the wireless communication terminal enters a working state.
  • the method further includes:
  • the present invention also provides an apparatus for enabling a wireless communication terminal, the apparatus comprising: a configuration unit, an enumeration unit, a determination unit, and an operating system;
  • a configuration unit configured to configure an ECM sub-device and an RNDIS sub-device in the wireless communication terminal
  • an enumeration unit configured to insert the wireless communication terminal into the computer host and, after power-on, enumerate the wireless communication terminal as an ECM device to the operating system of the host And then triggering the judging unit; and after receiving the notification from the judging unit, enumerating the wireless communication terminal to the operating system as an RNDIS device;
  • the determining unit is configured to: after receiving the trigger information of the enumeration unit, determine whether the operating system supports the ECM device, and notify the enumeration unit operating system that the ECM device is not supported after determining that the operating system does not support the ECM device;
  • the operating system is configured to receive the enumeration unit after the wireless communication terminal enumerated by the enumeration unit is an ECM device, and after determining that the ECM device is supported by the ECM device, the wireless communication terminal is automatically installed by using the driver. After the enumerated wireless communication terminal is an RNDIS device, the wireless communication terminal is automatically installed by its own driver.
  • the device further includes: an ECM sub-device, configured to perform an ECM request and an instruction interaction with the operating system, so that the wireless communication terminal enters a working state;
  • the operating system is further configured to perform an ECM request and an instruction interaction with the ECM sub-device after the automatic installation of the wireless communication terminal, so that the wireless communication terminal enters a working state.
  • the device further includes: an RNDIS sub-device, configured to perform information exchange with the operating system after the automatic installation of the wireless communication terminal, so that the wireless communication terminal enters a working state;
  • the operating system is also used to implement automatic installation of the wireless communication terminal, and the RNDIS sub-device performs information interaction, so that the wireless communication terminal enters a working state.
  • the method and device for enabling a wireless communication terminal configured an ECM sub-device and an RNDIS sub-device in a wireless communication terminal, and the wireless communication terminal is inserted into the host computer and, after power-on, enumerates the wireless communication terminal to the operating system of the host computer.
  • the ECM device judges the operation of the host Whether the system supports the ECM device, determines that the host's operating system supports the ECM device, and implements the automatic installation of the wireless communication terminal through the driver of the host operating system; determines that the operating system of the host does not support the ECM device, and then the operating system of the host
  • the wireless communication terminal is an RNDIS device, and the automatic installation of the wireless communication terminal is realized by the driver of the operating system of the host, so that the driverless automatic activation of the wireless communication terminal can be realized, thereby simplifying the user's use process and saving user time. This enhances the user experience; and, it can be applied to different operating systems.
  • the activation scheme of the wireless communication terminal provided by the present invention does not need to store the driver in advance in the Flash of the wireless communication terminal, thereby reducing the space occupied by the Flash of the wireless communication terminal, thereby reducing the product cost.
  • FIG. 1 is a schematic flowchart of a method for enabling a wireless communication terminal according to the present invention
  • FIG. 2 is a schematic flowchart of a method for enabling a wireless data card according to an embodiment
  • FIG. 3 is a schematic structural diagram of an apparatus for enabling a wireless communication terminal according to the present invention. detailed description
  • the method for enabling the wireless communication terminal of the present invention includes the following steps:
  • Step 100 Configure an ECM sub-device and an RNDIS sub-device in the wireless data card.
  • the ECM sub-device is configured to enable the wireless data card to support the Linux operating system and the MAC operating system.
  • the RNDIS sub-device is configured to enable the wireless data card.
  • the ECM sub-device and the RNDIS sub-device are two independent sub-devices, that is, when the wireless data card is in use, the ECM sub-device does not perform any information interaction with the RNDIS sub-device;
  • ECM sub-devices and RNDIS sub-devices can be configured in the wireless data card, so that the wireless data card can be applied to different operating systems;
  • the ECM sub-device When the ECM sub-device is configured, the following includes: Decoding the device, the interface, the descriptor information of the endpoint, and the data flow and the control flow according to the ECM; wherein the descriptor information of the device, the interface, and the endpoint is configured to enable the wireless data card When in use, it becomes a wireless data card that supports ECM, that is, a wireless data card that supports the Linux operating system and the MAC operating system; the data stream and the control stream are driven so that the wireless data card can be used when it is in use. The flow and control flow are controlled; the hardware configuration of the ECM sub-device is the same as the hardware configuration of the existing wireless data card;
  • the RNDIS sub-device When the RNDIS sub-device is configured, the following includes: configuring the device, the interface, the descriptor information of the endpoint, and the data flow and the control flow according to the RNDIS; wherein the descriptor information of the device, the interface, and the endpoint is configured to enable the wireless data card In use, it becomes a wireless data card supporting RNDIS, namely: Supports the Windows operating system; Configures the data stream and the control stream driver to control the data stream and the control stream when the wireless data card is in use; RNDIS
  • the hardware configuration of the device is the same as the hardware configuration of the existing wireless data card.
  • Step 101 After the wireless data card is inserted into the host computer and is powered on, the wireless data card is enumerated to the operating system of the host as an ECM device, and then it is determined whether the operating system of the host supports the ECM device, and after determining that the operating system of the host supports the ECM device, The automatic installation of the wireless data card is implemented by the driver of the operating system of the host; after determining that the operating system of the host does not support the ECM device, the wireless data card is enumerated to the operating system of the host as the RNDIS device, and the driver of the operating system of the host is implemented. Automatic installation of wireless data cards;
  • the timing of enumerating the wireless data card to the ECM device to the operating system of the host is: the wireless data card receives the USB descriptor request sent by the operating system of the host; specifically, after the wireless data card is powered on, the host The operating system detects the wireless data card and sends a USB descriptor request to the wireless data card after detecting the wireless data card; the operating system of the host detects the wireless
  • the specific processing procedure of the data card is exactly the same as the processing flow of the prior art, and is not described here again; the wireless data card is enumerated to the operating system of the host as an ECM device, specifically:
  • Wireless data card is a device that supports ECM
  • the determining whether the operating system of the host supports the ECM device is specifically:
  • the operating system of the host determines whether the ECM request sent by the operating system of the host is received within the specified time period; if the ECM request sent by the operating system of the host is received within the specified time period, the operating system of the host is considered to support the ECM device, if within the specified time period, If the ECM request sent by the operating system of the host is not received, the operating system of the host does not support the ECM device.
  • the wireless data card can report the device, the interface, and the descriptor information of the endpoint corresponding to the ECM sub-device to the operating system of the host, and start the timer; after the timer expires, if the host receives the If the ECM request is sent by the operating system, the operating system of the host supports the ECM device. If the ECM request from the operating system of the host is not received, the operating system of the host does not support the ECM device.
  • the length of the timer is set according to the reported descriptor information, and the length of the timer is correctly loaded after the driver is found, and the length of the normal host operating system searches for the driver and loads correctly. For a few seconds, therefore, you can set the duration of the timer to a few seconds, such as: 3 seconds, 4 seconds, etc.;
  • the operating system of the host After receiving the device, interface, and endpoint descriptor information reported by the wireless data card, the operating system of the host searches for the driver corresponding to the descriptor information according to the descriptor information, and if the driver corresponding to the descriptor is found, the descriptor is correctly loaded.
  • the corresponding driver issues an ECM request to the wireless data card; if not found, no processing is performed; therefore, the wireless data card can determine whether the operating system of the host supports the ECM device according to the determination;
  • the ECM request may be specifically: Set Ethernet Packet Filter, etc.; the method may further include:
  • the wireless data card After the automatic installation of the wireless data card is implemented by the driver of the operating system of the host, the wireless data card interacts with the operating system of the host to perform ECM requests and instructions, so that the wireless data card can enter the working state;
  • the operating system enumerates the wireless data card to the RNDIS device, and specifically: the device, the interface, and the descriptor information of the endpoint corresponding to the RNDIS sub-device are reported to the operating system of the host; wherein, the reporting corresponds to the RNDIS sub-device
  • the wireless data card is currently in the RNDIS configuration state, that is: the wireless data card is a device supporting RNDIS;
  • the host operating system After receiving the device, interface, and endpoint descriptor information reported by the wireless data card, the host operating system searches for the driver corresponding to the descriptor information according to the descriptor information, and then performs the RNDIS request and the instruction with the wireless data card. Interaction, so that the wireless data card can enter the working state; wherein, the host operating system and the wireless data card perform RNDIS request, and here, because the existing operating system will support one of the ECM device and the RNDIS device Or two, therefore, the host operating system does not find the corresponding driver according to the device, interface, and endpoint descriptor information corresponding to the RNDIS sub-device.
  • a wireless data card is taken as an example, and the method for enabling the wireless data card in this embodiment is as shown in FIG. 2 . As shown, the following steps are included:
  • Step 200 Configure an ECM sub-device and an RNDIS sub-device in the wireless data card, and then perform step 201;
  • the following includes: configuring the device, the interface, the descriptor information of the endpoint, and the driving of the data flow and the control flow according to the ECM;
  • the method includes: configuring the device, the interface, the descriptor information of the endpoint, and the driving of the data flow and the control flow according to the RNDIS.
  • Step 201 The wireless data card is inserted into the host computer, and after the power is turned on, the operating system of the host detects the wireless data card, and then sends a USB descriptor request to the wireless data card.
  • Step 202 After receiving the USB descriptor request, the wireless data card reports the device, the interface, and the descriptor information of the endpoint corresponding to the ECM sub-device to the operating system of the host, and starts a timer.
  • the wireless data card is currently in the ECM configuration state, that is, the wireless data card is a device supporting the ECM.
  • Step 203 After the timer expires, it is determined whether the ECM request sent by the operating system of the host is received, and if yes, step 204 is performed; otherwise, step 205 is performed;
  • the operating system of the host After receiving the descriptor information, the operating system of the host searches for the corresponding driver according to the descriptor information, and if the corresponding driver is searched and loaded correctly, the ECM request is sent to the wireless data card, otherwise, the operation is not performed. Any processing.
  • Step 204 Perform an ECM request and an instruction interaction with the operating system of the host to bring the wireless data card into a working state.
  • Step 205 The bus of the wireless data card is restarted, and then the device, the interface, and the descriptor information of the endpoint corresponding to the RNDIS sub-device are reported to the operating system of the host;
  • the wireless data card can be placed in the RNDIS. status
  • Step 206 After receiving the device, the interface, and the descriptor information of the endpoint reported by the wireless data card, the operating system of the host searches for the driver corresponding to the descriptor information according to the descriptor information, and then performs the RNDIS request with the wireless data card. And the interaction of instructions so that the wireless data card can work in the RNDIS state.
  • the present invention further provides an apparatus for enabling a wireless communication terminal.
  • the apparatus includes: a configuration unit 31, an enumeration unit 32, a determination unit 33, and an operation system 34;
  • the configuration unit 31 is configured to configure the ECM sub-device and the RNDIS sub-device in the wireless communication terminal;
  • the enumeration unit 32 is configured to insert the wireless communication terminal into the computer host and, after power-on, enumerate the wireless communication terminal to the operating system 34 as an ECM device, and then trigger the determining unit 33; and after receiving the notification from the determining unit 33, The operating system 34 enumerates the wireless communication terminal as an RNDIS device.
  • the determining unit 33 is configured to: after receiving the trigger information of the enumeration unit 32, determine whether the operating system 34 supports the ECM device, and after determining that the operating system 34 does not support the ECM device, The notification enumeration unit 32 operating system 34 does not support the ECM device;
  • the operating system 34 is configured to receive the wireless communication terminal enumerated by the enumeration unit 32 as an ECM device, and after determining that the ECM device is supported by the enumeration unit 32, implement automatic installation of the wireless communication terminal by using its own driver; or, receive the piece After the wireless communication terminal enumerated by the unit 32 is the RNDIS device, the automatic installation of the wireless communication terminal is realized by its own driver program.
  • the operating system 34 is an operating system of a computer host into which the wireless communication terminal is inserted.
  • the device may further include: an ECM sub-device 35, configured to perform an ECM request and an instruction interaction with the operating system 34 to enable the wireless communication terminal to enter a working state;
  • the operating system 34 is further configured to implement automatic installation of the wireless communication terminal, and the ECM sub
  • the device 35 performs an ECM request and an instruction interaction to bring the wireless communication terminal into an active state.
  • the device may further include: an RNDIS sub-device 36, configured to perform information interaction with the operating system 34 to bring the wireless communication terminal into an active state;
  • the operating system 34 is further configured to perform an RNDIS request and an instruction interaction with the RNDIS sub-device 36 after the automatic installation of the wireless communication terminal, so that the wireless communication terminal enters an active state.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Mobile Radio Communication Systems (AREA)

Description

一种无线通讯终端的启用方法及装置 技术领域
本发明涉及通讯技术领域, 特别是指一种无线通讯终端的启用方法及 装置。 背景技术
用户在使用基于通用串行总线 ( USB , Universal Serial Bus )接口的无 线通讯终端, 比如无线数据卡时, 主要是通过两次切换的方式实现无线数 据卡的启用, 具体地, 在首次接入计算机操作系统后, 无线数据卡枚举出 一个虚拟光驱, 该光驱内存储了网络通信端口的驱动、 管理程序、 以及帮 助文件等, 用户运行虚拟光驱进行管理程序和驱动的安装, 完成后无线数 据卡才被切换到工作状态, 即: 带有虚拟调制解调器(Modem )、 网络驱动 接口规范( NDIS, Network Driver Interface Specification )等端口的状态, 当用户再次将无线数据卡接入到已安装过驱动、 及管理程序的操作系统后, 操作系统中已安装的过滤驱动或其它方案比如后台服务等会自动将无线数 据卡切换到工作状态。 但是, 该方法只有用户在完成管理程序和驱动的安 装后, 无线数据卡才会被启用, 而安装步驟较为繁瑣, 如此, 会占用用户 的时间, 进而用户降低用户体验, 而且, 由于计算机的操作系统较为复杂, 容易引起驱动异常; 并且, 还需要在无线数据卡的闪存(Flash ) 中存储管 理程序及驱动, 如此, 使得无线数据卡的成本较高。
另外, 目前, 还有基于中间层设备的免驱动方式实现无线数据卡的启 用, 具体地, 无线数据卡枚举出光驱和操作系统自带驱动的一类设备比如 人机接口设备 ( HID , Human Interface Device )、 或摄像头等的一种组合, 其中, 光驱负责安装管理程序, 操作系统自带驱动的一类设备作为操作系 统与无线数据卡网络数据交换的媒介, 即: 通过将网络数据包封装到 HID 请求、 或摄像头命令请求等中实现网络数据的交互, 进而实现无线数据卡 的免驱上网, 但是, 该方法需要将网络数据包封装到 HID请求、 或摄像头 命令请求等中, 然而具体的封装在实际应用时难于实现, 因此, 该方法存 在技术难度大、 实现难度大等缺点。
除此以外, 为了实现无线数据卡的免驱动启用, 开发人员针对不同的 操作系统, 也提出了相应的解决方案, 举个例子来说, 以太网控制规范 ( ECM, Ethernet Control Model )是 USB 通信设备类( CDC, Communication Devices Class )规范规定的基于 USB的网络接口规范,符合 ECM的无线数 据卡在 Linux操作系统、 及 MAC操作系统上启用时, 会自动安装操作系统 自带的驱动, 不需要安装厂商提供的驱动, 就可以直接进行网络连接和上 网; 同样的, 网络驱动接口规范(RNDIS, Remote Network Driver Interface Specification )是微软提出的基于 USB的网络接口规范, 符合 RNDIS的无 线数据卡在 Windows操作系统上启用时,会自动安装操作系统的 RNDIS驱 动, 不需要安装厂商提供的驱动, 就可以直接进行网络连接和上网。 但是, 这种方法只适用于操作系统所支持的无线数据卡, 而对于操作系统不支持 的无线数据卡, 则仍需安装厂商提供的驱动。 发明内容
有鉴于此, 本发明的主要目的在于提供一种无线通讯终端的启用方法 及装置, 能实现无线通讯终端的免驱动启用。
为达到上述目的, 本发明的技术方案是这样实现的:
本发明提供了一种无线通讯终端的启用方法, 该方法包括:
在无线通讯终端中配置 ECM子设备及 RNDIS子设备;
无线通讯终端插入计算机主机并在上电后, 向主机的操作系统枚举无 线通讯终端为 ECM设备, 之后判断所述操作系统是否支持 ECM设备, 确 定所述操作系统支持 ECM设备后,通过所述操作系统的驱动程序实现无线 通讯终端的自动安装; 确定所述操作系统不支持 ECM设备后, 向所述操作 系统枚举无线通讯终端为 RNDIS设备, 通过所述操作系统的驱动程序实现 无线通讯终端的自动安装。
上述方案中, 在配置 ECM子设备时, 具体包括: 依据 ECM配置设备、 接口、 端点的描述符信息、 以及数据流、 控制流的驱动;
在配置 RNDIS子设备时, 具体包括: 依据 RNDIS配置设备、 接口、 端点的描述符信息、 以及数据流、 控制流的驱动。
上述方案中, 所述向主机的操作系统枚举无线通讯终端为 ECM设备, 为:
向所述操作系统上报与 ECM子设备对应的设备、接口、 以及端点的描 述符信息。
上述方案中, 所述判断所述操作系统是否支持 ECM设备, 为: 在规定时长内是否收到所述操作系统下发的 ECM请求。
上述方案中, 所述向所述操作系统枚举无线通讯终端为 RNDIS设备, 为:
向所述操作系统上报与 RNDIS子设备对应的设备、 接口、 以及端点的 描述符信息。
上述方案中, 该方法进一步包括:
通过所述操作系统的驱动程序实现无线通讯终端的自动安装后, 无线 通讯终端与所述操作系统进行 ECM请求及指令的交互,使无线通讯终端进 入工作状态。
上述方案中, 该方法进一步包括:
通过所述操作系统的驱动程序实现无线通讯终端的自动安装后, 无线 通讯终端与所述操作系统进行信息交互, 使无线通讯终端进入工作状态。 本发明还提供了一种无线通讯终端的启用装置, 该装置包括: 配置单 元、 枚举单元、 判断单元、 以及操作系统; 其中,
配置单元,用于在无线通讯终端中配置 ECM子设备及 RNDIS子设备; 枚举单元, 用于无线通讯终端插入计算机主机并在上电后, 向主机的 操作系统枚举无线通讯终端为 ECM设备, 之后触发判断单元; 并在收到判 断单元的通知后, 向操作系统枚举无线通讯终端为 RNDIS设备;
判断单元, 用于收到枚举单元的触发信息后 , 判断操作系统是否支持 ECM设备, 并在确定操作系统不支持 ECM设备后, 通知枚举单元操作系 统不支持 ECM设备;
操作系统, 用于收到枚举单元枚举的无线通讯终端为 ECM设备后, 并 在确定自身支持 ECM设备后,通过自身的驱动程序实现无线通讯终端的自 动安装; 或者, 收到枚举单元枚举的无线通讯终端为 RNDIS设备后, 通过 自身的驱动程序实现无线通讯终端的自动安装。
上述方案中, 该装置进一步包括: ECM子设备, 用于与操作系统进行 ECM请求、 及指令的交互, 使无线通讯终端进入工作状态;
所述操作系统, 还用于实现无线通讯终端的自动安装后, 与 ECM子设 备进行 ECM请求、 及指令的交互, 使无线通讯终端进入工作状态。
上述方案中, 该装置进一步包括: RNDIS子设备, 用于实现无线通讯 终端的自动安装后, 与操作系统进行信息交互, 使无线通讯终端进入工作 状态;
所述操作系统, 还用于实现无线通讯终端的自动安装后, RNDIS子设 备进行信息交互, 使无线通讯终端进入工作状态。
本发明提供的无线通讯终端的启用方法及装置, 在无线通讯终端中配 置 ECM子设备及 RNDIS子设备, 无线通讯终端插入计算机主机并在上电 后, 向主机的操作系统枚举无线通讯终端为 ECM设备, 之后判断主机的操 作系统是否支持 ECM设备, 确定主机的操作系统支持 ECM设备后, 通过 主机的操作系统的驱动程序实现无线通讯终端的自动安装; 确定主机的操 作系统不支持 ECM设备后,向主机的操作系统枚举无线通讯终端为 RNDIS 设备, 通过主机的操作系统的驱动程序实现无线通讯终端的自动安装, 如 此, 能实现无线通讯终端的免驱动自动启用, 进而能简化用户的使用过程, 并节约用户时间, 从而提升用户体验; 并且, 还能适用于不同的操作系统。
另外, 本发明提供的无线通讯终端的启用方案, 不需要在无线通讯终 端的 Flash中事先存储驱动程序, 如此, 能减少无线通讯终端的 Flash的空 间占用, 进而能降低产品成本。 附图说明
图 1为本发明无线通讯终端的启用方法流程示意图;
图 2为实施例无线数据卡的启用方法流程示意图;
图 3为本发明无线通讯终端的启用装置结构示意图。 具体实施方式
下面结合附图及具体实施例对本发明再作进一步详细的说明。
以无线数据卡为例, 本发明无线通讯终端的启用方法, 如图 1 所示, 包括以下步驟:
步驟 100: 在无线数据卡中配置 ECM子设备及 RNDIS子设备; 这里,配置 ECM子设备是为了使无线数据卡可以支持 Linux操作系统、 及 MAC 操作系统; 配置 RNDIS 子设备是为了使无线数据卡可以支持 Windows操作系统; 其中, ECM子设备与 RNDIS子设备为两个独立的子 设备, 即: 无线数据卡在使用时, ECM子设备与 RNDIS子设备不进行任 何信息的交互;
由于目前的操作系统主要包括: Linux操作系统、 MAC操作系统、 及 Windows操作系统, 因此,可以在无线数据卡中配置 ECM子设备及 RNDIS 子设备, 以使无线数据卡能适用于不同的操作系统;
在配置 ECM子设备时, 具体包括: 依据 ECM配置设备、 接口、 端点 的描述符信息、 以及数据流、 控制流的驱动; 其中, 配置设备、 接口、 端 点的描述符信息是为了使无线数据卡在使用时,成为支持 ECM的无线数据 卡, 即: 支持 Linux操作系统、 及 MAC操作系统的无线数据卡; 配置数据 流、 控制流的驱动, 是为了使无线数据卡在使用时, 可以对数据流及控制 流进行控制; ECM子设备的硬件的配置与现有的无线数据卡的硬件配置相 同;
在配置 RNDIS子设备时, 具体包括: 依据 RNDIS配置设备、 接口、 端点的描述符信息、 以及数据流、 控制流的驱动; 其中, 配置设备、 接口、 端点的描述符信息是为了使无线数据卡在使用时, 成为支持 RNDIS的无线 数据卡, 即: 支持 Windows操作系统; 配置数据流、 控制流的驱动, 是为 了使无线数据卡在使用时, 可以对数据流及控制流进行控制; RNDIS子设 备的硬件的配置与现有的无线数据卡的硬件配置相同。
步驟 101 : 无线数据卡插入计算机主机并在上电后, 向主机的操作系统 枚举无线数据卡为 ECM设备, 之后判断主机的操作系统是否支持 ECM设 备, 确定主机的操作系统支持 ECM设备后, 通过主机的操作系统的驱动程 序实现无线数据卡的自动安装; 确定主机的操作系统不支持 ECM设备后, 向主机的操作系统枚举无线数据卡为 RNDIS设备, 通过主机的操作系统的 驱动程序实现无线数据卡的自动安装;
这里, 所述向主机的操作系统枚举无线数据卡为 ECM设备的时机为: 无线数据卡收到主机的操作系统下发的 USB描述符请求; 具体地, 在无线 数据卡上电后, 主机的操作系统会检测到无线数据卡, 并在检测到无线数 据卡后, 向无线数据卡下发 USB描述符请求; 主机的操作系统检测到无线 数据卡的具体处理流程与现有技术的处理流程完全相同, 这里不再赘述; 向主机的操作系统枚举无线数据卡为 ECM设备, 具体为:
向主机的操作系统上报与 ECM子设备对应的设备、接口、 以及端点的 描述符信息; 其中, 上报与 ECM子设备对应的设备、 接口、 以及端点的描 述符信息后, 表明无线数据卡目前处于 ECM配置状态, 即: 无线数据卡为 支持 ECM的设备;
所述判断主机的操作系统是否支持 ECM设备, 具体为:
在规定时长内是否收到主机的操作系统下发的 ECM请求;如果在规定 时长内收到主机的操作系统下发的 ECM请求,则认为主机的操作系统支持 ECM设备, 如果在规定时长内, 未收到主机的操作系统下发的 ECM请求, 则认为主机的操作系统不支持 ECM设备;
在实际应用过程中, 可以在无线数据卡向主机的操作系统上报与 ECM 子设备对应的设备、 接口、 以及端点的描述符信息的同时, 启动定时器; 定时器超时后, 如果收到了主机的操作系统下发的 ECM请求, 则认为主机 的操作系统支持 ECM设备,如果未收到主机的操作系统下发的 ECM请求, 则认为主机的操作系统不支持 ECM设备;
其中, 可以依据主机的操作系统在根据上报的描述符信息搜索相应的 驱动程序、 以及在找到驱动程序后正确加载的时长设置定时器的时长, 一 般主机的操作系统搜索驱动程序并正确加载的时长为几秒钟, 因此, 可以 设置定时器的时长为几秒, 比如: 3秒、 4秒等等;
主机的操作系统收到无线数据卡上报的设备、 接口、 以及端点的描述 符信息后, 依据描述符信息搜索描述符信息对应的驱动程序, 如果找到描 述符对应的驱动程序, 则正确加载描述符对应的驱动程序, 并在正确加载 后, 会向无线数据卡下发 ECM请求; 如果没有找到, 则不进行任何处理; 因此, 无线数据卡可以据此确定主机的操作系统是否支持 ECM设备; 所述 ECM请求具体可以是: Set Ethernet Packet Filter等; 该方法还可以进一步包括:
通过主机的操作系统的驱动程序实现无线数据卡的自动安装后, 无线 数据卡与主机的操作系统进行 ECM请求、 及指令的交互, 以便无线数据卡 可以进入工作状态;
无线数据卡与主机的操作系统进行 ECM请求、及指令的交互的具体处 理过程与现有的处理过程完全相同, 这里不再赘述;
确认主机的操作系统不支持 ECM设备后, 由于此时无线数据卡处于 ECM配置状态, 因此, 需要重新启动无线数据卡的总线, 之后才能使无线 数据卡处于 RNDIS配置状态;
所述向主机的操作系统枚举无线数据卡为 RNDIS设备, 具体为: 向主机的操作系统上报与 RNDIS子设备对应的设备、 接口、 以及端点 的描述符信息; 其中, 上报与 RNDIS子设备对应的设备、 接口、 以及端点 的描述符信息后, 表明无线数据卡目前处于 RNDIS配置状态, 即: 无线数 据卡为支持 RNDIS的设备;
主机的操作系统收到无线数据卡上报的设备、 接口、 以及端点的描述 符信息后, 依据描述符信息找到描述符信息对应的驱动程序后正确加载, 之后与无线数据卡进行 RNDIS请求、 及指令的交互, 以便无线数据卡能进 入工作状态; 其中, 主机的操作系统与无线数据卡进行 RNDIS请求、 及指 这里, 由于现有的操作系统会支持 ECM设备和 RNDIS设备两种设备 中的一种或两种, 因此, 不会出现主机的操作系统依据 RNDIS子设备对应 的设备、 接口、 以及端点的描述符信息未能找到对应的驱动程序的情况。
下面结合实施例对本发明再作进一步详细的描述。
本实施例以无线数据卡为例, 本实施例无线数据卡的启用方法, 如图 2 所示, 包括以下步驟:
步驟 200: 在无线数据卡中配置 ECM子设备及 RNDIS子设备, 之后 执行步驟 201 ;
这里, 在配置 ECM子设备时, 具体包括: 依据 ECM配置设备、 接口、 端点的描述符信息、 以及数据流、 控制流的驱动;
在配置 RNDIS子设备时, 具体包括: 依据 RNDIS配置设备、 接口、 端点的描述符信息、 以及数据流、 控制流的驱动。
步驟 201 : 无线数据卡插入计算机主机, 并在上电后, 主机的操作系统 检测到无线数据卡, 之后向无线数据卡下发 USB描述符请求。
步驟 202: 无线数据卡收到 USB描述符请求后, 向主机的操作系统上 报与 ECM子设备对应的设备、 接口、 以及端点的描述符信息, 同时, 启动 定时器;
这里, 上报与 ECM子设备对应的设备、 接口、 以及端点的描述符信息 后,表明无线数据卡目前处于 ECM配置状态, 即: 无线数据卡为支持 ECM 的设备。
步驟 203: 定时器超时后, 判断是否收到主机的操作系统下发的 ECM 请求, 如果是, 则执行步驟 204, 否则, 执行步驟 205;
这里, 主机的操作系统收到描述符信息后, 依据描述符信息搜索对应 的驱动程序, 如果搜索到对应的驱动程序并在正确加载后, 则向无线数据 卡下发 ECM请求, 否则, 不进行任何处理。
步驟 204: 与主机的操作系统进行 ECM请求、 及指令的交互, 使无线 数据卡进入工作状态。
步驟 205: 无线数据卡的总线重新启动,之后向主机的操作系统上报与 RNDIS子设备对应的设备、 接口、 以及端点的描述符信息;
这里, 无线数据卡的总线重新启动后, 才能使无线数据卡处于 RNDIS 状态;
步驟 206: 主机的操作系统收到无线数据卡上报的设备、接口、 以及端 点的描述符信息后, 依据描述符信息找到描述符信息对应的驱动程序后正 确加载, 之后与无线数据卡进行 RNDIS请求、 及指令的交互, 以便无线数 据卡能在 RNDIS状态下工作。
为实现上述方法, 本发明还提供了一种无线通讯终端的启用装置, 如 图 3所示, 该装置包括: 配置单元 31、 枚举单元 32、 判断单元 33、 以及操 作系统 34; 其中,
配置单元 31 , 用于在无线通讯终端中配置 ECM子设备及 RNDIS子设 备;
枚举单元 32, 用于无线通讯终端插入计算机主机并在上电后, 向操作 系统 34枚举无线通讯终端为 ECM设备, 之后触发判断单元 33; 并在收到 判断单元 33的通知后, 向操作系统 34枚举无线通讯终端为 RNDIS设备; 判断单元 33 , 用于收到枚举单元 32的触发信息后, 判断操作系统 34 是否支持 ECM设备,并在确定操作系统 34不支持 ECM设备后,通知枚举 单元 32操作系统 34不支持 ECM设备;
操作系统 34, 用于收到枚举单元 32枚举的无线通讯终端为 ECM设备 后, 并在确定自身支持 ECM设备后, 通过自身的驱动程序实现无线通讯终 端的自动安装; 或者, 收到枚举单元 32枚举的无线通讯终端为 RNDIS设 备后, 通过自身的驱动程序实现无线通讯终端的自动安装。
这里, 需要说明的是: 操作系统 34为无线通讯终端插入的计算机主机 的操作系统。
其中, 该装置还可以进一步包括: ECM 子设备 35 , 用于与操作系统 34进行 ECM请求、 及指令的交互, 使无线通讯终端进入工作状态;
所述操作系统 34,还用于实现无线通讯终端的自动安装后,与 ECM子 设备 35进行 ECM请求、 及指令的交互, 使无线通讯终端进入工作状态。 该装置还可以进一步包括: RNDIS子设备 36, 用于与操作系统 34进 行信息交互, 使无线通讯终端进入工作状态;
所述操作系统 34, 还用于实现无线通讯终端的自动安装后, 与 RNDIS 子设备 36进行 RNDIS请求、 及指令的交互, 使无线通讯终端进入工作状 态。
这里, 本发明的所述装置中的枚举单元、 判断单元的具体处理过程已 在上文中评述, 不再赘述。
以上所述, 仅为本发明的较佳实施例而已, 并非用于限定本发明的保 护范围。

Claims

权利要求书
1、 一种无线通讯终端的启用方法, 其特征在于, 该方法包括: 在无线通讯终端中配置以太网控制规范 (ECM ) 子设备及网络驱动接 口规范 (RNDIS )子设备;
无线通讯终端插入计算机主机并在上电后, 向主机的操作系统枚举无 线通讯终端为 ECM设备, 之后判断所述操作系统是否支持 ECM设备, 确 定所述操作系统支持 ECM设备后,通过所述操作系统的驱动程序实现无线 通讯终端的自动安装; 确定所述操作系统不支持 ECM设备后, 向所述操作 系统枚举无线通讯终端为 RNDIS设备, 通过所述操作系统的驱动程序实现 无线通讯终端的自动安装。
2、 根据权利要求 1所述的方法, 其特征在于,
在配置 ECM子设备时, 具体包括: 依据 ECM配置设备、 接口、 端点 的描述符信息、 以及数据流、 控制流的驱动;
在配置 RNDIS子设备时, 具体包括: 依据 RNDIS配置设备、 接口、 端点的描述符信息、 以及数据流、 控制流的驱动。
3、 根据权利要求 2所述的方法, 其特征在于, 所述向主机的操作系统 枚举无线通讯终端为 ECM设备, 为:
向所述操作系统上报与 ECM子设备对应的设备、接口、 以及端点的描 述符信息。
4、 根据权利要求 1、 2或 3所述的方法, 其特征在于, 所述判断所述 操作系统是否支持 ECM设备, 为:
在规定时长内是否收到所述操作系统下发的 ECM请求。
5、 根据权利要求 2所述的方法, 其特征在于, 所述向所述操作系统枚 举无线通讯终端为 RNDIS设备, 为:
向所述操作系统上报与 RNDIS子设备对应的设备、 接口、 以及端点的 描述符信息。
6、 根据权利要求 1、 2或 3的方法, 其特征在于, 该方法进一步包括: 通过所述操作系统的驱动程序实现无线通讯终端的自动安装后, 无线 通讯终端与所述操作系统进行 ECM请求及指令的交互,使无线通讯终端进 入工作状态。
7、 根据权利要求 1、 2、 3或 5的方法, 其特征在于, 该方法进一步包 括:
通过所述操作系统的驱动程序实现无线通讯终端的自动安装后, 无线 通讯终端与所述操作系统进行信息交互, 使无线通讯终端进入工作状态。
8、 一种无线通讯终端的启用装置, 其特征在于, 该装置包括: 配置单 元、 枚举单元、 判断单元、 以及操作系统; 其中,
配置单元,用于在无线通讯终端中配置 ECM子设备及 RNDIS子设备; 枚举单元, 用于无线通讯终端插入计算机主机并在上电后, 向主机的 操作系统枚举无线通讯终端为 ECM设备, 之后触发判断单元; 并在收到判 断单元的通知后, 向操作系统枚举无线通讯终端为 RNDIS设备;
判断单元, 用于收到枚举单元的触发信息后, 判断操作系统是否支持 ECM设备, 并在确定操作系统不支持 ECM设备后, 通知枚举单元操作系 统不支持 ECM设备;
操作系统, 用于收到枚举单元枚举的无线通讯终端为 ECM设备后, 并 在确定自身支持 ECM设备后,通过自身的驱动程序实现无线通讯终端的自 动安装; 或者, 收到枚举单元枚举的无线通讯终端为 RNDIS设备后, 通过 自身的驱动程序实现无线通讯终端的自动安装。
9、 根据权利要求 8所述的装置, 其特征在于,
该装置进一步包括: ECM子设备, 用于与操作系统进行 ECM请求、 及指令的交互, 使无线通讯终端进入工作状态; 所述操作系统, 还用于实现无线通讯终端的自动安装后, 与 ECM子设 备进行 ECM请求、 及指令的交互, 使无线通讯终端进入工作状态。
10、 根据权利要求 8或 9所述的装置, 其特征在于, 该装置进一步包 括: RNDIS子设备, 用于实现无线通讯终端的自动安装后, 与操作系统进 行信息交互, 使无线通讯终端进入工作状态;
所述操作系统, 还用于实现无线通讯终端的自动安装后, RNDIS子设 备进行信息交互, 使无线通讯终端进入工作状态。
PCT/CN2011/077584 2011-01-30 2011-07-25 一种无线通讯终端的启用方法及装置 WO2012100515A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201110033296.3 2011-01-30
CN2011100332963A CN102096646A (zh) 2011-01-30 2011-01-30 一种无线通讯终端的启用方法及装置

Publications (1)

Publication Number Publication Date
WO2012100515A1 true WO2012100515A1 (zh) 2012-08-02

Family

ID=44129747

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2011/077584 WO2012100515A1 (zh) 2011-01-30 2011-07-25 一种无线通讯终端的启用方法及装置

Country Status (2)

Country Link
CN (1) CN102096646A (zh)
WO (1) WO2012100515A1 (zh)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102156648A (zh) * 2011-01-30 2011-08-17 中兴通讯股份有限公司 一种无线通讯终端的启用方法及装置
CN102096646A (zh) * 2011-01-30 2011-06-15 中兴通讯股份有限公司 一种无线通讯终端的启用方法及装置
CN102176704A (zh) * 2011-02-18 2011-09-07 中兴通讯股份有限公司 通过usb虚拟网卡接入无线网络的方法、系统及装置
CN103312569B (zh) * 2012-03-09 2017-03-08 华为终端有限公司 网络连接的方法及装置
CN104216728A (zh) * 2013-06-03 2014-12-17 中兴通讯股份有限公司 一种接入usb网卡的方法、usb网卡及pc
CN104239241B (zh) * 2013-06-20 2018-09-11 华为终端有限公司 数据卡、数据卡切换方法及装置
CN109298890A (zh) * 2017-07-25 2019-02-01 西安中兴新软件有限责任公司 一种配置ndis设备的方法及装置

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101169724A (zh) * 2006-10-23 2008-04-30 合智电子股份有限公司 跨平台免驱动程序的外围装置驱动方法
CN101655823A (zh) * 2009-06-12 2010-02-24 中兴通讯股份有限公司 免安装数据卡驱动的实现方法、操作方法及系统
CN101662838A (zh) * 2009-09-18 2010-03-03 中兴通讯股份有限公司 一种实现免驱上网的装置、方法及usb数据卡
CN102096646A (zh) * 2011-01-30 2011-06-15 中兴通讯股份有限公司 一种无线通讯终端的启用方法及装置

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040203296A1 (en) * 2002-11-15 2004-10-14 Globespan Virata Inc. Method and system for attaching a USB network adapter supporting both RNDIS and non-RNDIS capable operating systems
CN1456976A (zh) * 2003-06-04 2003-11-19 无敌科技(西安)有限公司 Usb接口设备的驱动程序安装方法
US8532136B1 (en) * 2005-10-19 2013-09-10 American Megatrends, Inc. Communication with a handset via a private network
US7447196B2 (en) * 2005-10-25 2008-11-04 Kinghood Technology Co., Ltd. Wireless networking communication system and communicating method for VOIP
CN101478597B (zh) * 2009-01-13 2011-01-26 深圳市同洲电子股份有限公司 一种连接切换的方法、系统及移动终端
CN101868050B (zh) * 2010-06-22 2014-12-10 中兴通讯股份有限公司 一种数据卡及其上网方法

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101169724A (zh) * 2006-10-23 2008-04-30 合智电子股份有限公司 跨平台免驱动程序的外围装置驱动方法
CN101655823A (zh) * 2009-06-12 2010-02-24 中兴通讯股份有限公司 免安装数据卡驱动的实现方法、操作方法及系统
CN101662838A (zh) * 2009-09-18 2010-03-03 中兴通讯股份有限公司 一种实现免驱上网的装置、方法及usb数据卡
CN102096646A (zh) * 2011-01-30 2011-06-15 中兴通讯股份有限公司 一种无线通讯终端的启用方法及装置

Also Published As

Publication number Publication date
CN102096646A (zh) 2011-06-15

Similar Documents

Publication Publication Date Title
WO2012100515A1 (zh) 一种无线通讯终端的启用方法及装置
WO2012100518A1 (zh) 一种无线通讯终端的启用方法及装置
TW201409238A (zh) 電子裝置的模式切換方法與相關的電子裝置
WO2012109886A1 (zh) 通过usb虚拟网卡接入无线网络的方法、系统及装置
WO2015074232A1 (zh) 一种内存数据的迁移方法、计算机和装置
CN102880527B (zh) 一种基板管理控制器的数据恢复方法
JP6387581B2 (ja) データスイッチにて学習するサーバデータポート
TWI512449B (zh) 用於減少嵌入式系統中耗電量之方法與裝置
TW201042460A (en) System, apparatus, and method for fast startup of USB devices
US9170618B2 (en) Power management circuit, server, and power management method thereof
WO2014026547A1 (zh) 一种有源usb设备及其工作模式的切换方法
WO2010006529A1 (zh) 数据卡的操作模式切换及其控制方法、装置及数据卡
WO2012100498A1 (zh) 一种usb设备的端口切换方法和系统
WO2012100504A1 (zh) 一种无线通讯方法、系统及无线通讯终端
CN102693142A (zh) 网络适配方法及装置
CN103984616A (zh) 一种服务器监控方法及服务器
WO2013189388A2 (zh) 一种接入usb网卡的方法、usb网卡及pc
TWI582577B (zh) 至少部分接收及/或至少部分發布至少一封包以請求功率消耗狀態之改變的技術
JP2013513874A (ja) データカードのアップグレーディング方法およびデバイス
WO2014183358A1 (zh) 一种识别操作系统类型的方法及usb设备
WO2011147113A1 (zh) 多媒体广播芯片断电方法、装置及数据卡
CN110879539A (zh) 家电的控制电路、控制方法、装置以及家电设备
CN103631476B (zh) 电子装置的模式切换方法与相关的电子装置
CN112925730B (zh) 一种PCIe设备链路训练控制方法及系统
US10104619B2 (en) Retrieval of a command from a management server

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: 11857116

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 11857116

Country of ref document: EP

Kind code of ref document: A1