WO2015074433A1 - 移动终端、外接设备驱动方式的选择方法和存储介质 - Google Patents

移动终端、外接设备驱动方式的选择方法和存储介质 Download PDF

Info

Publication number
WO2015074433A1
WO2015074433A1 PCT/CN2014/082810 CN2014082810W WO2015074433A1 WO 2015074433 A1 WO2015074433 A1 WO 2015074433A1 CN 2014082810 W CN2014082810 W CN 2014082810W WO 2015074433 A1 WO2015074433 A1 WO 2015074433A1
Authority
WO
WIPO (PCT)
Prior art keywords
mode
port
module
free
drive
Prior art date
Application number
PCT/CN2014/082810
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 WO2015074433A1 publication Critical patent/WO2015074433A1/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/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 communications, and in particular, to a mobile terminal, a method for selecting an external device driving method, and a storage medium. Background technique
  • the client terminal device CPE can be plugged into a non-disabled USB network card or a wireless wifi terminal.
  • dial-up networking can obtain the WAN IP of the external network WAN protocol, and then the router distributes the NAT through the inter-network address translation.
  • One or more personal computer PCs use the intranet LAN inter-network protocol LAN IP.
  • the drive-free network card does not need to be loaded on the PC, and can be directly connected to the network by directly using the driver that comes with the system.
  • the remote-drive device uses the remote network driver interface specification RNDIS interface, it can only be assigned to the CPE by using NAT to allocate the intranet IP (LAN IP) instead of obtaining a large
  • LAN IP intranet IP
  • WAN IP IP
  • the CPE is a router, it will be distributed to multiple PC LAN IPs through NAT. It will go through two layers of NAT process, which will not give users a bad feeling.
  • An embodiment of the present invention is to provide a mobile terminal, an external device driver selection method, and a storage medium, which automatically switch between a drive-free or non-disabled mode according to the type of the external device, so as to better adapt the external device and make the user feel Get promoted.
  • the first aspect of the embodiments of the present invention provides a mobile terminal, including a port, a driver-free module configured to operate in a drive-free mode, and a non-drive-free module operating in a non-disable mode;
  • the determining module is configured to determine whether the port receives the preset information sent by the host, and obtains a determination result
  • the first execution module is respectively connected to the free drive module and the determination module, and configured to control the operation of the drive-free module when the determination result is yes;
  • the second execution module is respectively connected to the free drive module, the non-free drive module, and the determination module, and configured to determine, when the determination result is negative, whether the instruction input by the user is a customer terminal device CPE The instruction is input, and if so, the non-disabled module is controlled to operate, otherwise, the free drive module is controlled to operate.
  • the preset information is an operating system string descriptor request.
  • the mobile terminal further includes:
  • the selector switch is configured to allow the user to select an input command for a different external device.
  • the free drive module includes:
  • a first port response module configured to convert the mode of the port to a remote network driver interface specification RNDIS port mode after responding to a process of an action AT command;
  • a software wireless access point SoftAP module connected to the first port response module, configured to: after the mode of the port is converted to the RNDIS port mode, use a network address translation NAT mode access URL and assign the Host.
  • the non-disabled module includes: a second port response module configured to switch to the port mode in advance when receiving the disc
  • the mode of the port is converted into a network driver interface specification NDIS port mode
  • a networking module configured to be connected to the second port response module, configured to: when the mode of the port is converted to an NDIS port mode, and the CPE loads the driver of the NDIS port, the network dialing is performed after the dialing is successful, The CPE allocates the obtained public network protocol IP address.
  • the switching instruction is a universal serial bus modem conversion usb-modem switch instruction.
  • a second aspect of the embodiments of the present invention provides a method for driving an external device to be driven or not, including:
  • the preset information is an operating system string descriptor request.
  • the steps to work in the drive-free mode include:
  • the network address translation NAT mode is used to allocate a network to the host.
  • the steps to work in non-disorder mode include:
  • the mode of the port is converted into the network driving interface specification NDIS port mode
  • the mode of the port is converted to an NDIS port mode, and the CPE is loaded After the NDIS port is driven, the network dials up and after the dialing is successful, the CPE is allocated the obtained public network protocol IP address.
  • a third aspect of the embodiments of the present invention provides a computer storage medium, where the computer storage medium stores computer executable instructions, where the computer executable instructions are used to execute at least one of the methods of the first aspect of the embodiments of the present invention. one.
  • the mobile terminal of the embodiment of the invention includes a port, a driver-free module configured to operate in a drive-free mode, and a non-drive-free module for operating in a non-disabled mode, and further includes a judging module, and a driverless module and determining a first execution module respectively connected to the module, and a second execution module respectively connected to the free drive module, the non-free drive module and the determination module, wherein the determining module is configured to determine whether the port receives the preset information sent by the host, and obtains a judgment result.
  • the first execution module is configured to control the operation of the driverless module when the determination result is yes
  • the second execution module is configured to determine whether the instruction input by the user is the client terminal device CPE when the determination result is negative, and if yes, Control the non-free drive module to work, otherwise, control the drive-free module to work. It can automatically switch between the drive-free or non-drive-free mode according to the type of external device, and better adapts the external device, so that the user experience is improved.
  • FIG. 1 is a schematic structural diagram of a mobile terminal according to an embodiment of the present invention.
  • FIG. 2 is a flowchart of a method for facilitating external or non-disabled external devices according to an embodiment of the present invention.
  • FIG. 3 is a flowchart of a method for facilitating external or non-disabled external devices according to an embodiment of the present invention.
  • the mobile terminal according to the embodiment of the present invention can automatically switch the mode operation of the drive-free or non-disabled drive according to the type of the external device, and better adapts the external device, so that the user experience is improved.
  • the mobile terminal of the embodiment of the present invention includes a port 101, a driverless module 105 configured to operate in a drive-free mode, and a non-drive-free module 106 operating in a non-disable mode; and the method further includes:
  • the determining module 102 is configured to determine whether the port receives the preset information sent by the host, and obtain a determination result
  • the first execution module 103 connected to the free drive module 105 and the determination module 102 is configured to control the operation of the drive-free module 105 when the determination result is YES;
  • the second execution module 104 connected to the free drive module 105, the non-free drive module 106, and the determination module 102 is configured to determine whether the instruction input by the user is a client when the determination result is negative.
  • the input command of the terminal device CPE if yes, controls the non-disabled module 106 to operate, otherwise, controls the free drive module 105 to operate.
  • the mobile terminal according to the embodiment of the present invention can automatically switch the mode of the drive-free or non-disabled mode according to the type of the external device, and better adapts the external device, so that the user experience is improved.
  • the mobile device When the mobile device interacts with the host, it generates interactive commands. By means of these interactive commands, it is possible to distinguish whether the operating system of the external host is a WINDOWS system or a LINUX system.
  • the preset information may be an operating system string descriptor request.
  • the port when the port receives the operating system string descriptor request sent by the host, it can determine that the operating system of the host is a WINDOWS system, and runs in a drive-free mode. Otherwise, it is determined that the operating system of the host is a LINUX system, and further It is judged whether or not the operation is performed in the non-free drive mode, and the problem that the internal network IP is obtained due to the operation of the device such as the route and the drive-free mode is avoided, so that the user feels bad. After judging that the operating system of the host is a LINUX system, it is necessary to further determine whether to operate in a non-disable mode. In this case, the type of the host can be used for judgment. If the host is a CPE, the operation is performed in a non-disable mode.
  • the host computer is Apple Computer MAC or PC PC running in the drive-free mode.
  • the selector switch is configured to allow the user to select an input command for a different external device.
  • the type of the external device can be directly judged by the selection switch, thereby judging whether or not the non-disable mode operation is used, thereby improving the user experience and increasing the practicability.
  • the selection switch is a LINUX de-switching switch LINUX debice NV in the flash FLASH, wherein an NV value of 1 indicates that the external device is a MAC or a PC, and an NV value of 0 indicates that the external device is a CPE.
  • the mobile terminal in the embodiment of the present invention may be a data card, and the port may be a USB port.
  • the free drive module includes:
  • a first port response module configured to convert the mode of the port to a remote network driver interface specification RNDIS port mode after responding to a process of an action AT command;
  • a software wireless access point SoftAP module connected to the first port response module, configured to: after the mode of the port is converted to the RNDIS port mode, use a network address translation NAT mode access URL and assign the Host.
  • the external device can be connected to the network only by connecting with the mobile terminal, thereby avoiding the cumbersome steps of loading the driver, making the user more convenient to use, improving the user experience, and increasing the practicality.
  • the non-disabled module includes:
  • the second port response module is configured to convert the mode of the port to a network driver interface specification NDIS after receiving a switching instruction sent by the CPE that switches the optical disk to the port mode in advance.
  • a networking module connected to the second port response module, configured to: when the mode of the port is converted to an NDIS port mode, and the CPE loads the driver of the NDIS port, the network dials and after the dialing succeeds, The CPE allocates the obtained public network protocol IP address.
  • the CPE obtains the public network IP address through the non-disable mode, and then distributes the network to multiple PCs through a layer of NAT process, which improves the user experience and increases the practicability of the device.
  • the command format is usually provided by the client in advance, and the mobile terminal parses and processes according to the command in the pre-made corresponding format.
  • the switching instruction is a universal serial bus modem conversion usb-modem switch instruction.
  • the embodiment of the present invention further provides another structure of the mobile terminal.
  • the device includes a processor 302, a storage medium 304, and at least one external communication interface 301.
  • the processor 302 and the storage medium 304 are provided.
  • the external communication interfaces 301 are all connected by a bus 303.
  • the processor 302 can be a processing component such as a microprocessor, a central processing unit, a digital signal processor, or a programmable logic array.
  • Computer-executable instructions are stored on the storage medium 304; the processor 302 executing the computer-executable instructions stored in the storage medium 304 can implement at least one of the methods described in the embodiments of the present invention.
  • the external device is a PC of the WINDOWS operating system.
  • the judgment module obtains the result of the determination, and the first execution module controls the operation of the driverless module. Specifically, After responding to the process of an AT command, the port response module converts the port mode to the RNDIS port mode, and then the SoftAP module accesses the URL in the NAT mode and assigns it to the PC host.
  • the external device is a CPE of the USB port
  • the selection switch is NV, where the NV value is 1.
  • the external device is a MAC or a PC.
  • the NV value is 0
  • the external device is a CPE.
  • the NV value entered by the user is 0, and the port does not receive the operating system string descriptor request sent by the host.
  • the second execution module determines that the instruction input by the user is an input instruction of the CPE, and controls the operation of the non-free drive module. Specifically, the second port response module receives the usb delivered by the CPE that switches the optical disc to the port mode in advance.
  • the mode of the port is converted to the NDIS port mode of the network driver interface specification. Then, the networking module dials the network after the CPE loads the driver of the NDIS port, and after the dialup is successful, assigns the obtained public IP address to the CPE. .
  • the mobile terminal according to the embodiment of the present invention can automatically switch the mode of the drive-free or non-disabled mode according to the type of the external device, and better adapts the external device, so that the user experience is improved.
  • an embodiment of the present invention further provides a method for driving an external device to be driven or non-disabled, including:
  • Step 11 determining whether the port receives the preset information sent by the host, and obtaining a judgment result; Step 12, when the judgment result is yes, operating in the drive-free mode;
  • Step 13 when the judgment result is no, it is judged whether the instruction input by the user is an input instruction of the client terminal device CPE, and if yes, the operation is performed in the non-disable mode, otherwise, the operation is performed in the drive-free mode.
  • the method for the self-adaptive external device to be driven or non-disabled can automatically switch the mode of the drive-free or non-disabled drive according to the type of the external device, and better adapts the external device, so that the user feels Improved.
  • the port is a USB port
  • the method includes the following steps: Step S101: Insert an external device USB interface;
  • Step S102 determining whether the operating system of the external device is a WINDOWS system or a LINUX system; at that time, WINDOWS proceeds to step S105. At the time of the LINUX system, the process proceeds to step S103:
  • the step S103 is: the LINUX system determines whether the instruction input by the user is CPE; if not, proceeds to step S106; if not, proceeds to step S104;
  • the step S104 is: operating in a non-free drive mode
  • the step S105 is: The WINDOWS system works in the drive-free mode.
  • the step S106 is: “Working in the drive-free mode
  • the preset information is an operating system string descriptor request.
  • the steps to work in the drive-free mode include:
  • Step 121 After responding to the process of an action AT command, converting the mode of the port to a remote network driver interface specification RNDIS port mode;
  • Step 122 After the mode of the port is converted to the RNDIS port mode, the network address translation NAT mode is used to allocate a network to the host.
  • the steps to work in non-disorder mode include:
  • Step 131 After receiving the handover instruction sent by the CPE that switches the optical disc to the port mode in advance, converting the mode of the port to the network driver interface specification NDIS port mode;
  • Step 132 When the mode of the port is converted to the NDIS port mode, and the CPE loads the driver of the NDIS port, the network dials and after the dialing is successful, the obtained public network protocol IP is allocated to the CPE. address.
  • the method for the non-disabled or non-disabled drive of the adaptive external device in the embodiment of the present invention is a method corresponding to the mobile terminal, and all the implementation manners in the mobile terminal are applicable to the embodiment of the method, and can also be achieved according to the following:
  • the type of external device automatically switches between drive-free or non-drive-free mode Run, better adapt to external devices, so that users feel better.
  • the embodiment of the present invention further describes a computer storage medium, where the computer storage medium stores a computer program, and the computer program is used to execute the plurality of the adaptive external devices in the embodiment of the present invention.
  • At least one of the methods specifically the method of reducing the SAR of the mobile terminal as shown in FIG.
  • the computer storage medium may be a storage medium such as a hard disk, a USB flash drive, a DVD, or an optical disk, and is preferably a non-transitory storage medium.

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)
  • Telephone Function (AREA)

Abstract

本发明公开了一种移动终端及自适应外接设备免驱或非免驱的方法,该移动终端包括端口、配置为采用免驱模式工作的免驱模块以及用于采用非免驱模式工作的非免驱模块;还包括:判断模块,配置为判断所述端口是否接收到主机发送的预设信息,得到判断结果;与所述免驱模块及所述判断模块分别相连的第一执行模块,配置为当所述判断结果为是时,控制所述免驱模块工作;与所述免驱模块、所述非免驱模块及所述判断模块分别相连的第二执行模块,配置为当所述判断结果为否时,判断用户预先输入的指令是否为客户终端设备CPE的输入指令,如果是,则控制所述非免驱模块工作,否则,控制所述免驱模块工作。本发明还同时公开了一种计算机存储介质。

Description

移动终端、 外接设备驱动方式的选择方法和存储介质 技术领域 本发明涉及通信领域, 特别涉及一种移动终端、 外接设备驱动方式的 选择方法和存储介质。 背景技术
通常在用上网卡的时候, 都要在电脑上安装驱动, 这样比较繁杂, 这 是传统的非免驱上网卡。 为了简化用户繁瑣的操作研发出了免驱数据卡, 简单讲就是用户只需将该数据卡插入电脑的 USB口就可以直接使用, 免驱 方式获得不少用户的青睐。 但目前也有些用户并不是使用电脑拿上网卡进 行使用, 而是在路由器 router上的通用串行总线 USB接口上插上上网卡进 行使用, 或者在安卓 android平板电脑或者智能网络多媒体盒子上使用上网 卡。
之前客户终端设备 CPE可以插入非免驱的 USB的上网卡或者无线 wifi 类终端通过安装驱动, 拨号联网就能够获取到外网广域网网间协议 WAN IP, 然后 router再通过网间地址转换 NAT分给一个或多个个人计算机 PC 使用内网局域网网间协议 LAN IP。
免驱上网卡在 PC上不需要装载驱动,直接使用系统自带的驱动就可以 直接联网使用。 但免驱数据卡插入 CPE这样的设备出现一些问题, 免驱设 备因为使用远程网络驱动接口规范 RNDIS接口, 所以只能用 NAT分配内 网 IP ( LAN IP )分给 CPE, 而不是获得的是大网 IP ( WAN IP ), CPE如果 是 router,要再经过 NAT再分给多个 PC LAN IP,会经过两层的 NAT过程, 这样会给用户的感受不好。 发明内容
本发明实施例期望提供一种移动终端、 外接设备驱动的选择方法和存 储介质, 根据外接设备的种类自动切换免驱或非免驱的模式运行, 能更好 地适配外接设备, 使用户感受得到提升。
有鉴于此, 本发明实施例第一方面提供一种移动终端, 包括端口、 配 置为釆用免驱模式工作的免驱模块以及釆用非免驱模式工作的非免驱模 块; 还包括:
判断模块, 配置为判断所述端口是否接收到主机发送的预设信息, 得 到判断结果;
第一执行模块, 与所述免驱模块及所述判断模块分别相连, 配置为当 所述判断结果为是时, 控制所述免驱模块工作;
第二执行模块, 与所述免驱模块、 所述非免驱模块及所述判断模块分 别相连, 配置为当所述判断结果为否时, 判断用户预先输入的指令是否为 客户终端设备 CPE的输入指令, 如果是, 则控制所述非免驱模块工作, 否 则, 控制所述免驱模块工作。
其中, 所述预设信息为操作系统字符串描述符请求。
其中, 上述移动终端还包括:
选择开关, 配置为供用户选择不同外接设备的输入指令。
其中, 所述免驱模块包括:
第一端口响应模块, 配置为在响应一动作 AT命令的进程后, 将所述端 口的模式转换为远程网络驱动接口规范 RNDIS端口模式;
软件无线接入点 SoftAP模块, 与所述第一端口响应模块相连, 配置为 当所述端口的模式转换为所述 RNDIS端口模式后,釆用网络地址转换 NAT 模式接入网址并分配给所述主机。
其中, 所述非免驱模块包括: 第二端口响应模块, 配置为当接收到预先将光盘切换到端口模式的
CPE下发的切换指令后,将所述端口的模式转换为网络驱动接口规范 NDIS 端口模式;
联网模块, 与所述第二端口响应模块相连, 配置为当所述端口的模式 转换为 NDIS端口模式, 且所述 CPE加载完所述 NDIS端口的驱动后, 联 网拨号并在拨号成功后, 给所述 CPE分配获取的公网网间协议 IP地址。
其中,所述切换指令为通用串行总线调制解调器转换 usb-modem switch 指令。
为解决上述技术问题, 本发明实施例第二方面提供一种自适应外接设 备免驱或非免驱的方法, 包括:
判断端口是否接收到主机发送的预设信息, 得到判断结果;
当所述判断结果为是时, 釆用免驱模式工作;
当所述判断结果为否时, 判断用户预先输入的指令是否为客户终端设 备 CPE的输入指令, 如果是, 则釆用非免驱模式工作, 否则, 釆用免驱模 式工作。
其中, 所述预设信息为操作系统字符串描述符请求。
其中, 釆用免驱模式工作的步骤包括:
在响应一动作 AT命令的进程后,将所述端口的模式转换为远程网络驱 动接口规范 RNDIS端口模式;
当所述端口的模式转换为所述 RNDIS端口模式后, 釆用网络地址转换 NAT模式给所述主机分配网络。
其中, 釆用非免驱模式工作的步骤包括:
当接收到预先将光盘切换到端口模式的 CPE下发的切换指令后, 将所 述端口的模式转换为网络驱动接口规范 NDIS端口模式;
当所述端口的模式转换为 NDIS 端口模式, 且所述 CPE加载完所述 NDIS端口的驱动后, 联网拨号并在拨号成功后, 给所述 CPE分配获取的 公网网间协议 IP地址。
本发明实施例第三方面提供一种计算机存储介质, 所述计算机存储介 质中存储有计算机可执行指令, 所述计算机可执行指令用于执行本发明实 施例第一方面所述的方法的至少其中之一。
本发明实施例的移动终端, 包括端口、 配置为釆用免驱模式工作的免 驱模块以及用于釆用非免驱模式工作的非免驱模块, 还包括判断模块, 与 免驱模块及判断模块分别相连的第一执行模块, 与免驱模块、 非免驱模块 及判断模块分别相连的第二执行模块, 其中判断模块配置为判断端口是否 接收到主机发送的预设信息, 得到判断结果, 第一执行模块配置为当判断 结果为是时, 控制免驱模块工作, 第二执行模块配置为当判断结果为否时, 判断用户预先输入的指令是否为客户端终端设备 CPE, 如果是, 则控制非 免驱模块工作, 否则, 控制免驱模块工作。 能根据外接设备的种类自动地 切换免驱或非免驱的模式运行, 更好地适配了外接设备, 使用户感受得到 了提升。 附图说明
图 1为本发明实施例所述的移动终端的结构示意图;
图 2 为本发明实施例自适应外接设备免驱或非免驱的方法的流程图之 图 3 为本发明实施例自适应外接设备免驱或非免驱的方法的流程图之 图 4为本发明实施例所述的另一种移动终端的结构示意图。 具体实施方式
以下结合附图对本发明的优选实施例进行详细说明, 应当理解, 以下 所说明的优选实施例仅用于说明和解释本发明, 并不用于限定本发明。 本发明实施例的移动终端, 能根据外接设备的种类自动地切换免驱或 非免驱的模式运行, 更好地适配了外接设备, 使用户感受得到了提升。
如图 1所示, 本发明实施例的移动终端, 包括端口 101、 配置为釆用免 驱模式工作的免驱模块 105以及釆用非免驱模式工作的非免驱模块 106;还 包括:
判断模块 102, 配置为判断所述端口是否接收到主机发送的预设信息, 得到判断结果;
与所述免驱模块 105 及所述判断模块 102 分别相连的第一执行模块 103, 配置为当所述判断结果为是时, 控制所述免驱模块 105工作;
与所述免驱模块 105、所述非免驱模块 106及所述判断模块 102分别相 连的第二执行模块 104, 配置为当所述判断结果为否时, 判断用户预先输入 的指令是否为客户终端设备 CPE的输入指令, 如果是, 则控制所述非免驱 模块 106工作, 否则, 控制所述免驱模块 105工作。
本发明实施例的移动终端能根据外接设备的种类自动地切换免驱或非 免驱的模式运行, 更好地适配了外接设备, 使用户感受得到了提升。
移动设备在跟主机进行交互的时候, 会产生交互指令, 通过这些交互 指令就可以区分外接主机的操作系统是 WINDOWS系统还是 LINUX系统。
本发明的具体实施例中, 所述预设信息可以为操作系统字符串描述符 请求。
此时, 当端口接收到主机发送的操作系统字符串描述符请求时, 则可 判定主机的操作系统为 WINDOWS系统, 釆用免驱模式运行, 否则, 判定 主机的操作系统为 LINUX系统, 需进一步判断是否釆用非免驱模式运行, 避免了因路由等设备釆用免驱模式运行而获得内网 IP, 使用户感受不好的 问题。 当判断主机的操作系统为 LINUX系统后,还需进一步判断是否釆用非 免驱模式运行, 此时, 可以通过主机的种类来进行判断, 如果主机为 CPE 则釆用非免驱模式运行, 如果主机为苹果电脑 MAC或个人计算机 PC则釆 用免驱模式运行。
其中, 本发明实施例的移动终端还可以包括:
选择开关, 配置为供用户选择不同外接设备的输入指令。
此时, 可通过选择开关直接判断外接设备的种类, 从而判断是否釆用 非免驱模式运行, 提升了用户感受, 增加了实用性。
一种具体实施例, 选择开关为闪存 FLASH 中的 LINUX 区分开关 LINUX debice NV, 其中, NV值为 1时表示外接设备为 MAC或 PC, NV 值为 0时表示外接设备为 CPE。
具体的, 本发明实施例的移动终端可以为数据卡, 端口可以为 USB端 口。
本发明的具体实施例中, 所述免驱模块包括:
第一端口响应模块, 配置为在响应一动作 AT命令的进程后, 将所述端 口的模式转换为远程网络驱动接口规范 RNDIS端口模式;
与所述第一端口响应模块相连的软件无线接入点 SoftAP模块, 配置为 当所述端口的模式转换为所述 RNDIS端口模式后,釆用网络地址转换 NAT 模式接入网址并分配给所述主机。
此时, 外接设备只需与移动终端连接起来就可以连接到网络, 避免了 加载驱动的繁瑣步骤, 使用户使用起来更加方便, 提升了用户感受, 且增 加了实用性。
其中, 所述非免驱模块包括:
第二端口响应模块, 配置为当接收到预先将光盘切换到端口模式的 CPE下发的切换指令后,将所述端口的模式转换为网络驱动接口规范 NDIS 端口模式;
与所述第二端口响应模块相连的联网模块, 配置为当所述端口的模式 转换为 NDIS端口模式, 且所述 CPE加载完所述 NDIS端口的驱动后, 联 网拨号并在拨号成功后, 给所述 CPE分配获取的公网网间协议 IP地址。
此时, CPE通过非免驱模式获得公网 IP地址, 再经过一层 NAT过程 给多个 PC分配网络, 提升了用户感受, 且增加了设备的实用性。
CPE和移动终端之间会有 NDIS指令的交互, 指令格式通常客户会预 先提供, 移动终端根据预制对应格式的命令解析处理。
具体的, 所述切换指令为通用串行总线调制解调器转换 usb-modem switch指令。
本发明实施例还提供了另一个所述移动终端的结构, 如图 4所示, 所述 装置包括处理器 302、 存储介质 304以及至少一个外部通信接口 301 ; 所述处 理器 302、 存储介质 304以及外部通信接口 301均通过总线 303连接。 所述处 理器 302可为微处理器、 中央处理器、 数字信号处理器或可编程逻辑阵列等 具有处理功能的电子元器件。
所述存储介质 304上存储有计算机可执行指令; 所述处理器 302执行所 述存储介质 304中存储的所述计算机可执行指令可实现本发明实施例所述 方法的至少其中之一。
下面对本发明的具体实施例举例说明如下。
假定外接设备为 WINDOWS操作系统的 PC,端口接收到 PC主机发送 的操作系统字符串描述符请求后, 判断模块得到的判断结果为是, 第一执 行模块会控制免驱模块工作, 具体的, 第一端口响应模块响应一 AT命令的 进程后, 将端口模式转换为 RNDIS端口模式, 然后 SoftAP模块釆用 NAT 模式接入网址并分配给 PC主机。
假定外接设备为 USB口的 CPE, 选择开关为 NV, 其中 NV值为 1时 表示外接设备为 MAC或 PC, NV值为 0时表示外接设备为 CPE, 此时, 用户输入的 NV值为 0,端口不会接收到主机发送的操作系统字符串描述符 请求, 判断模块得到的判断结果为否, 第二执行模块判断用户输入的指令 为 CPE的输入指令, 控制非免驱模块工作, 具体的, 第二端口响应模块接 收到预先将光盘切换到端口模式的 CPE下发的 usb-modem switch指令后, 将端口的模式转换为网络驱动接口规范 NDIS 端口模式, 然后联网模块在 CPE加载完 NDIS端口的驱动后联网拨号, 并在拨号成功后, 给 CPE分配 获取的公网 IP地址。
本发明实施例的移动终端, 能根据外接设备的种类自动地切换免驱或 非免驱的模式运行, 更好地适配了外接设备, 使用户感受得到了提升。
如图 2所示, 本发明的实施例还提供一种自适应外接设备免驱或非免 驱的方法, 包括:
步骤 11, 判断端口是否接收到主机发送的预设信息, 得到判断结果; 步骤 12, 当所述判断结果为是时, 釆用免驱模式工作;
步骤 13, 当所述判断结果为否时, 判断用户预先输入的指令是否为客 户终端设备 CPE的输入指令, 如果是, 则釆用非免驱模式工作, 否则, 釆 用免驱模式工作。
本发明实施例的自适应外接设备免驱或非免驱的方法, 能根据外接设 备的种类自动地切换免驱或非免驱的模式运行, 更好地适配了外接设备, 使用户感受得到了提升。
下面对本发明的具体实施例举例说明如下。
如图 3所示,假定端口为 USB口, 插入外接设备的 USB口后, 先判断 外接设备的操作系统是 WINDOWS系统还是 LINUX系统, 当外接设备是 WINDOWS系统时, 釆用免驱模式工作, 当外接设备时 LINUX系统时, 判 断用户预先输入的指令是否为 CPE, 如果是, 则釆用非免驱模式工作, 如 果不是, 则釆用免驱模式工作。 具体如图 3所示, 包括以下步骤: 步骤 S101 : 插入外接设备 USB接口;
步骤 S102: 判断外接设备的操作系统是 WINDOWS系统还是 LINUX 系统; 当时 WINDOWS是进入步骤 S 105, 当时 LINUX系统时, 进入步骤 S103:
所述步骤 S103为: LINUX系统判断用户预先输入的指令是否为 CPE; 当否时进入步骤 S106; 当否时, 进入步骤 S104;
所述步骤 S104为: 釆用非免驱动模式工作;
所述步骤 S105为: WINDOWS系统釆用免驱动模式工作。
所述步骤 S106为: 釆用免驱动模式工作;
其中, 所述预设信息为操作系统字符串描述符请求。
其中, 釆用免驱模式工作的步骤包括:
步骤 121, 在响应一动作 AT命令的进程后, 将所述端口的模式转换为 远程网络驱动接口规范 RNDIS端口模式;
步骤 122, 当所述端口的模式转换为所述 RNDIS端口模式后, 釆用网 络地址转换 NAT模式给所述主机分配网络。
其中, 釆用非免驱模式工作的步骤包括:
步骤 131, 当接收到预先将光盘切换到端口模式的 CPE下发的切换指 令后, 将所述端口的模式转换为网络驱动接口规范 NDIS端口模式;
步骤 132, 当所述端口的模式转换为 NDIS端口模式, 且所述 CPE加 载完所述 NDIS端口的驱动后, 联网拨号并在拨号成功后, 给所述 CPE分 配获取的公网网间协议 IP地址。
本发明实施例的自适应外接设备免驱或非免驱的方法是与上述移动终 端对应的方法, 上述移动终端中的所有实现方式均适用于该方法的实施例 中, 也同样能达到: 根据外接设备的种类自动地切换免驱或非免驱的模式 运行, 更好地适配外接设备, 使用户感受得到提升。
本发明实施例还记载一种计算机存储介质, 所述计算机存储介质中存 储有计算机程序, 所述计算机程序用于执行本发明实施例中多个所述自适 应外接设备免驱或非免驱的方法的至少其中之一, 具体如图 1 所示的降低 移动终端 SAR的方法。
所述计算机存储介质可为硬盘、 U盘、 DVD或光碟等存储介质, 优选 为非瞬间存储介质。
以上所述, 仅为本发明的较佳实施例而已, 并非用于限定本发明的保 护范围。 凡按照本发明原理所作的修改, 都应当理解为落入本发明的保护 范围。

Claims

权利要求书
1. 一种移动终端, 包括端口、 用于釆用免驱模式工作的免驱模块以及 釆用非免驱模式工作的非免驱模块; 还包括:
判断模块, 配置为判断所述端口是否接收到主机发送的预设信息, 得 到判断结果;
第一执行模块, 分别与所述免驱模块及所述判断模块相连, 配置为当 所述判断结果为是时, 控制所述免驱模块工作;
第二执行模块, 分别与所述免驱模块、 所述非免驱模块及所述判断模 块分别相连, 配置为当所述判断结果为否时, 判断用户预先输入的指令是 否为客户终端设备 CPE的输入指令,如果是, 则控制所述非免驱模块工作, 否则控制所述免驱模块工作。
2. 根据权利要求 1所述的移动终端, 其中, 所述预设信息为操作系统 字符串描述符请求。
3. 根据权利要求 1所述的移动终端, 其中, 还包括:
选择开关, 配置为供用户选择不同外接设备的输入指令。
4. 根据权利要求 1所述的移动终端, 其中, 所述免驱模块包括: 第一端口响应模块, 配置为在响应一动作 AT命令的进程后, 将所述端 口的模式转换为远程网络驱动接口规范 RNDIS端口模式;
软件无线接入点 SoftAP模块, 与所述第一端口响应模块相连, 配置为 当所述端口的模式转换为所述 RNDIS端口模式后,釆用网络地址转换 NAT 模式接入网址并分配给所述主机。
5. 根据权利要求 1所述的移动终端, 其中, 所述非免驱模块包括: 第二端口响应模块, 配置为当接收到预先将光盘切换到端口模式的 CPE下发的切换指令后,将所述端口的模式转换为网络驱动接口规范 NDIS 端口模式; 联网模块, 与所述第二端口响应模块相连, 配置为当所述端口的模式 转换为 NDIS端口模式, 且所述 CPE加载完所述 NDIS端口的驱动后, 联 网拨号并在拨号成功后, 给所述 CPE分配获取的公网网间协议 IP地址。
6. 根据权利要求 5所述的移动终端, 其中, 所述切换指令为通用串行 总线调制解调器转换 usb-modem switch指令。
7. 一种自适应外接设备免驱或非免驱的方法, 包括:
判断端口是否接收到主机发送的预设信息, 得到判断结果;
当所述判断结果为是时, 釆用免驱模式工作;
当所述判断结果为否时, 判断用户预先输入的指令是否为客户终端设 备 CPE的输入指令, 如果是, 则釆用非免驱模式工作, 否则, 釆用免驱模 式工作。
8. 根据权利要求 7所述的方法, 其中, 所述预设信息为操作系统字符 串描述符请求。
9. 根据权利要求 7所述的方法, 其中, 所述釆用免驱模式工作包括: 在响应一动作 AT命令的进程后,将所述端口的模式转换为远程网络驱 动接口规范 RNDIS端口模式;
当所述端口的模式转换为所述 RNDIS端口模式后, 釆用网络地址转换 NAT模式给所述主机分配网络。
10. 根据权利要求 7 所述的方法, 其中, 所述釆用非免驱模式工作包 括:
当接收到预先将光盘切换到端口模式的 CPE下发的切换指令后, 将所 述端口的模式转换为网络驱动接口规范 NDIS端口模式;
当所述端口的模式转换为 NDIS 端口模式, 且所述 CPE加载完所述 NDIS端口的驱动后, 联网拨号并在拨号成功后, 给所述 CPE分配获取的 公网网间协议 IP地址。 11、 一种计算机存储介质, 所述计算机存储介质中存储有计算机可执 行指令, 所述计算机可执行指令用于执行权利要求 7至 10所述的方法的至 少其中之一。
PCT/CN2014/082810 2013-11-20 2014-07-23 移动终端、外接设备驱动方式的选择方法和存储介质 WO2015074433A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201310589284.8 2013-11-20
CN201310589284.8A CN104660788B (zh) 2013-11-20 2013-11-20 一种移动终端及自适应外接设备免驱或非免驱的方法

Publications (1)

Publication Number Publication Date
WO2015074433A1 true WO2015074433A1 (zh) 2015-05-28

Family

ID=53178893

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/082810 WO2015074433A1 (zh) 2013-11-20 2014-07-23 移动终端、外接设备驱动方式的选择方法和存储介质

Country Status (2)

Country Link
CN (1) CN104660788B (zh)
WO (1) WO2015074433A1 (zh)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104853453A (zh) * 2014-02-17 2015-08-19 中兴通讯股份有限公司 一种数据卡和终端的适配方法、终端以及数据卡

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102375786A (zh) * 2011-10-18 2012-03-14 中兴通讯股份有限公司 Usb设备自动识别操作系统的方法及系统
WO2013003227A1 (en) * 2011-06-27 2013-01-03 American Power Conversion Corporation System and methods for driverless operation of usb device
CN103379006A (zh) * 2012-04-19 2013-10-30 中兴通讯股份有限公司 数据卡自适应方法及装置

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2013003227A1 (en) * 2011-06-27 2013-01-03 American Power Conversion Corporation System and methods for driverless operation of usb device
CN102375786A (zh) * 2011-10-18 2012-03-14 中兴通讯股份有限公司 Usb设备自动识别操作系统的方法及系统
CN103379006A (zh) * 2012-04-19 2013-10-30 中兴通讯股份有限公司 数据卡自适应方法及装置

Also Published As

Publication number Publication date
CN104660788A (zh) 2015-05-27
CN104660788B (zh) 2018-11-13

Similar Documents

Publication Publication Date Title
TWI358665B (zh)
JP4555926B2 (ja) スキャナ自動接続プログラム
TW200821857A (en) Dynamic power cycling
WO2014063463A1 (zh) 一种物理网卡管理方法、装置及物理主机
US20170139619A1 (en) Storage array automatic configuration method, apparatus and storage system
JP5129770B2 (ja) ネットワーク装置
US9645952B2 (en) USB device communication system and working mode switching method to prevent USB device from adopting power interruption when reconfiguring firmware programs
US20080250173A1 (en) Communication adapter and data transfer method of communication adapter
JP2014527659A (ja) データカードの起動方法及びデータカード
JP2007134782A (ja) 通信装置及び通信制御方法
WO2012100504A1 (zh) 一种无线通讯方法、系统及无线通讯终端
TW201218707A (en) Dual-mode wireless networked device interface and automatic configuration thereof
TW201316216A (zh) 觸控裝置之外部操作系統與方法
WO2010081319A1 (zh) 一种实现usb端点复用的方法和设备
WO2015074433A1 (zh) 移动终端、外接设备驱动方式的选择方法和存储介质
KR100764646B1 (ko) 휴대용 무선 단말기를 이용한 컴퓨터 원격 제어 시스템 및컴퓨터 원격 제어 방법
WO2024032474A1 (zh) 设备接入方法、数据交换方法及相关设备
US7849231B2 (en) Method of controlling information processing apparatus, information processing apparatus, and control program therefor
WO2016008250A1 (zh) 实现拨号上网的方法、装置及系统、计算机存储介质
KR20110018694A (ko) 호스트 장치 및 슬레이브 장치 제어 방법
JP5651778B2 (ja) モバイル機器ユーザのためのパソコンシステム及びそのパソコンシステムの運用方法
TWI556171B (zh) 主機板及開機的方法
WO2015067052A1 (zh) 测试命令发送方法、装置及系统
WO2017197894A1 (zh) 更新数据的方法、装置、系统以及外置设备
KR20120066399A (ko) 휴대 단말에서의 레거시 usb 장치 서비스 시스템 및 그 방법

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

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

Country of ref document: EP

Kind code of ref document: A1