CN104660788B - A kind of method of mobile terminal and adaptive external equipment free drive or non-free drive - Google Patents
A kind of method of mobile terminal and adaptive external equipment free drive or non-free drive Download PDFInfo
- Publication number
- CN104660788B CN104660788B CN201310589284.8A CN201310589284A CN104660788B CN 104660788 B CN104660788 B CN 104660788B CN 201310589284 A CN201310589284 A CN 201310589284A CN 104660788 B CN104660788 B CN 104660788B
- Authority
- CN
- China
- Prior art keywords
- free drive
- port
- module
- pattern
- cpe
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F13/00—Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F13/10—Program control for peripheral devices
- G06F13/102—Program control for peripheral devices where the programme performs an interfacing function, e.g. device driver
Abstract
The present invention provides a kind of method of mobile terminal and adaptive external equipment free drive or non-free drive, which includes port, for the free drive module using the work of free drive pattern and the non-free drive module for being worked using non-free drive pattern;Further include:Judgment module obtains judging result for judging whether the port receives the presupposed information of host transmission;The first execution module being respectively connected with the free drive module and the judgment module, for when the judging result is to be, controlling the free drive module work;The second execution module being respectively connected with the free drive module, the non-free drive module and the judgment module, for when the judging result is no, the input the instruction whether instruction that user pre-enters is customer terminal equipment CPE judged, if it is, then control the non-free drive module work, otherwise, the free drive module work is controlled.The solution of the present invention can preferably be adapted to external equipment, and user is made to experience promotion.
Description
Technical field
The present invention relates to the communications field, more particularly to a kind of mobile terminal and adaptive external equipment free drive or non-free drive
Method.
Background technology
Usually when with card of surfing Internet, driving will be installed on computers, more complicated in this way, this is traditional non-exempts from
Drive card of surfing Internet.Free drive data card is had developed in order to simplify the cumbersome operation of user, is exactly briefly that user only need to be by the data
The USB port that card insertion enters computer can be used directly, and free drive mode obtains the favor of many users.But current also some users are simultaneously
Network interface card is not taken using computer to be used, plugged on the general-purpose serial bus USB interface on router router
Card of surfing Internet is used, and card of surfing Internet is either used on Android android tablet computers or intelligent network multimedia box.
The card of surfing Internet of the USB of non-free drive can be inserted in customer terminal equipment CPE before or wireless wifi Terminal Types pass through
Installation driving, dialup networking can get outer net wide area network IP(Internet Protocol) WAN IP, and then router is again by between net
Location conversion NAT gives one or more personal computer PCs and uses Intranet LAN IP(Internet Protocol) LAN IP.
Internet surfing without drive, which is stuck on PC, need not load driving, and the driving directly carried using system can directly be networked and be made
With.But free drive data card is inserted into equipment as CPE and some problems occurs, and free drive equipment is because use remote network driver interface
Specification RNDIS interfaces, so Intranet IP can only be distributed with NAT(LAN IP)CPE is given, rather than that obtain is big net IP(WAN
IP), CPE will give multiple PC LAN IP again if it is router using NAT, can pass through two layers of NAT processes, in this way meeting
Impression to user is bad.
Invention content
The technical problem to be solved in the present invention is to provide a kind of mobile terminal and adaptive external equipment free drives or non-free drive
Method, automatically switch the mode operation of free drive or non-free drive according to the type of external equipment, can preferably be adapted to external equipment,
User is set to experience promotion.
In order to solve the above technical problems, the embodiment of the present invention provides a kind of mobile terminal, including port, for using exempting from
The free drive module of drive pattern work and the non-free drive module for being worked using non-free drive pattern;Further include:
Judgment module obtains judging result for judging whether the port receives the presupposed information of host transmission;
The first execution module being respectively connected with the free drive module and the judgment module, for working as the judging result
When to be, the free drive module work is controlled;
The second execution module being respectively connected with the free drive module, the non-free drive module and the judgment module is used
In when the judging result is no, judge that input that whether instruction that user pre-enters is customer terminal equipment CPE instructs,
If it is, otherwise the control non-free drive module work controls the free drive module work.
Wherein, the presupposed information is asked for operating system character string descriptor.
Wherein, above-mentioned mobile terminal further includes:
Selecting switch, for selecting the input of different external connection equipment to instruct for user.
Wherein, the free drive module includes:
First port respond module, for after the process of one action AT orders of response, the pattern of the port to be converted
For remote network driver interface specification RNDIS port modes;
The software wireless access point SoftAP modules being connected with the first port respond module, for when the port
After pattern is converted to the RNDIS port modes, network address is accessed using network address translation NAT mode and distributes to the master
Machine.
Wherein, the non-free drive module includes:
Second port respond module receives the switching that CD is switched to the CPE of port mode in advance and is issued for working as
After instruction, the pattern of the port is converted into Network Driver Interface specification NDIS port modes;
The networking module being connected with the second port respond module, for being converted to the ends NDIS when the pattern of the port
Mouth mold formula, and after the CPE has loaded the drivings of the ports NDIS, networking dialing and after dial-up success, to the CPE points
Public network IP(Internet Protocol) IP address with acquisition.
Wherein, the switching command is that universal serial bus modulator-demodulator converts usb-modem switch instructions.
In order to solve the above technical problems, the embodiment of the present invention also provides a kind of adaptive external equipment free drive or non-free drive
Method, including:
Judge whether port receives the presupposed information of host transmission, obtains judging result;
When the judging result is to be, worked using free drive pattern;
When the judging result is no, judge whether the instruction that user pre-enters is the defeated of customer terminal equipment CPE
Enter instruction, if it is, being worked using non-free drive pattern, otherwise, is worked using free drive pattern.
Wherein, the presupposed information is asked for operating system character string descriptor.
Wherein, the step of being worked using free drive pattern include:
After the process of one action AT orders of response, the pattern of the port is converted into remote network driver interface specification
RNDIS port modes;
After the pattern of the port is converted to the RNDIS port modes, using network address translation NAT mode to institute
State host assignment network.
Wherein, the step of being worked using non-free drive pattern include:
After receiving the switching command that the CPE that CD is switched to port mode in advance is issued, by the mould of the port
Formula is converted to Network Driver Interface specification NDIS port modes;
When the pattern of the port is converted to NDIS port modes, and the CPE has loaded the driving of the ports NDIS
Afterwards, networking dials and after dial-up success, the public network IP(Internet Protocol) IP address obtained to CPE distribution.
The above-mentioned technical proposal of the present invention has the beneficial effect that:
The mobile terminal of the embodiment of the present invention, including port, free drive module and use for being worked using free drive pattern
In the non-free drive module using the work of non-free drive pattern, further includes judgment module, be respectively connected with free drive module and judgment module
The first execution module, the second execution module being respectively connected with free drive module, non-free drive module and judgment module, wherein judging
Module obtains judging result, the first execution module is for working as judging whether port receives the presupposed information of host transmission
Judging result is control free drive module work when being, the second execution module is used to, when judging result is no, judge that user is advance
Whether the instruction of input is client terminal device CPE, if it is, otherwise controlling non-free drive module work controls free drive mould
Block works.The mode operation that free drive or non-free drive can automatically be switched according to the type of external equipment, has preferably been adapted to external
Equipment makes user experience promotion.
Description of the drawings
Fig. 1 is the structural schematic diagram of mobile terminal of the present invention;
Fig. 2 is the flow chart of the method for the adaptive external equipment free drive of the present invention or non-free drive;
Fig. 3 is the flow chart of one specific embodiment of method of the adaptive external equipment free drive of the present invention or non-free drive.
Specific implementation mode
To keep the technical problem to be solved in the present invention, technical solution and advantage clearer, below in conjunction with attached drawing and tool
Body embodiment is described in detail.
The mobile terminal of the embodiment of the present invention can automatically switch the mould of free drive or non-free drive according to the type of external equipment
Formula is run, and has preferably been adapted to external equipment, user is made to have experienced promotion.
As shown in Figure 1, the mobile terminal of the embodiment of the present invention, including port, the free drive for being worked using free drive pattern
Module and the non-free drive module to work for the non-free drive pattern of use;Further include:
Judgment module obtains judging result for judging whether the port receives the presupposed information of host transmission;
The first execution module being respectively connected with the free drive module and the judgment module, for working as the judging result
When to be, the free drive module work is controlled;
The second execution module being respectively connected with the free drive module, the non-free drive module and the judgment module is used
In when the judging result is no, judge that input that whether instruction that user pre-enters is customer terminal equipment CPE instructs,
If it is, otherwise the control non-free drive module work controls the free drive module work.
The mobile terminal of the embodiment of the present invention can automatically switch the mould of free drive or non-free drive according to the type of external equipment
Formula is run, and has preferably been adapted to external equipment, user is made to have experienced promotion.
Mobile device will produce interactive instruction when being interacted with host, pass through these interactive instructions
The operating system for distinguishing external host is WINDOWS systems or LINUX system.
In specific embodiments of the present invention, the presupposed information can be that operating system character string descriptor is asked.
At this point, when port receives the operating system character string descriptor request of host transmission, then host is can determine that
Operating system is WINDOWS systems, using free drive mode operation, otherwise, it is determined that the operating system of host is LINUX system, is needed
It further determines whether to use non-free drive mode operation, avoids and obtain Intranet because the equipment such as routing are using free drive mode operation
IP makes user experience bad problem.
After the operating system for judging host is LINUX system, also need to further determine whether to transport using non-free drive pattern
Row uses non-free drive mode operation at this point it is possible to be judged by the type of host if host is CPE, if main
Machine is that Apple Computers MAC or personal computer PC then use free drive mode operation.
Wherein, the mobile terminal of the embodiment of the present invention can also include:
Selecting switch, for selecting the input of different external connection equipment to instruct for user.
At this point, the type of external equipment can be directly judged by selecting switch, to judge whether to use non-free drive pattern
Operation improves user's impression, increases practicability.
A kind of specific embodiment, selecting switch are that the LINUX in flash memory FLASH distinguishes switch LINUX debice NV,
In, it indicates that external equipment is MAC or PC when NV values are 1, indicates that external equipment is CPE when NV values are 0.
Specifically, the mobile terminal of the embodiment of the present invention can be data card, port can be USB port.
In specific embodiments of the present invention, the free drive module includes:
First port respond module, for after the process of one action AT orders of response, the pattern of the port to be converted
For remote network driver interface specification RNDIS port modes;
The software wireless access point SoftAP modules being connected with the first port respond module, for when the port
After pattern is converted to the RNDIS port modes, network address is accessed using network address translation NAT mode and distributes to the master
Machine.
At this point, external equipment need to only be connected with mobile terminal is connected to network, load driver is avoided
Tedious steps make the user to use more convenient, improve user's impression, and increase practicability.
Wherein, the non-free drive module includes:
Second port respond module receives the switching that CD is switched to the CPE of port mode in advance and is issued for working as
After instruction, the pattern of the port is converted into Network Driver Interface specification NDIS port modes;
The networking module being connected with the second port respond module, for being converted to the ends NDIS when the pattern of the port
Mouth mold formula, and after the CPE has loaded the drivings of the ports NDIS, networking dialing and after dial-up success, to the CPE points
Public network IP(Internet Protocol) IP address with acquisition.
At this point, CPE obtains public network IP address by non-free drive pattern, net is distributed to multiple PC using one layer of NAT process
Network improves user's impression, and increases the practicability of equipment.
The interaction of NDIS instructions is had between CPE and mobile terminal, the usual client of instruction format can be provided previously, mobile whole
End is handled according to the command analysis of prefabricated corresponding format.
Usb-modem switch instructions are converted specifically, the switching command is universal serial bus modulator-demodulator.
Specific embodiments of the present invention are illustrated below below.
It is assumed that external equipment is the PC of WINDOWS operating systems, port receives the operating system character of PC hosts transmission
After string descriptor request, the judging result that judgment module obtains is yes, and the first execution module can control the work of free drive module, specifically
, after first port respond module responds the process of an AT orders, port mode is converted into RNDIS port modes, then
SoftAP modules are using NAT mode access network address and distribute to PC hosts.
It is assumed that external equipment is CPE, the selecting switch NV of USB port, indicate that external equipment is MAC when wherein NV values are 1
Or PC, NV value indicate that external equipment is CPE when being 0, at this point, NV values input by user are 0, port will not receive host transmission
Operating system character string descriptor request, the judging result that judgment module obtains is no, and the second execution module judges that user is defeated
The input that the instruction entered is CPE instructs, and non-free drive module work is controlled, specifically, second port respond module receives in advance
After CD to be switched to the usb-modem switch instructions that the CPE of port mode is issued, the pattern of port is converted into network
Driving interface specification NDIS port modes, then networking module network after the driving that CPE has loaded the ports NDIS dialing, and
After dial-up success, to the public network IP address of CPE distribution acquisitions.
The mobile terminal of the embodiment of the present invention can automatically switch the mould of free drive or non-free drive according to the type of external equipment
Formula is run, and has preferably been adapted to external equipment, user is made to have experienced promotion.
As shown in Fig. 2, a kind of method that the embodiment of the present invention also provides adaptive external equipment free drive or non-free drive, packet
It includes:
Step 11, judge whether port receives the presupposed information of host transmission, obtain judging result;
Step 12, it when the judging result is to be, is worked using free drive pattern;
Step 13, when the judging result is no, judge whether the instruction that user pre-enters is customer terminal equipment
The input of CPE instructs, if it is, being worked using non-free drive pattern, otherwise, is worked using free drive pattern.
The method of the adaptive external equipment free drive or non-free drive of the embodiment of the present invention, can according to the type of external equipment from
The mode operation for switching free drive or non-free drive dynamicly, has preferably been adapted to external equipment, and user is made to have experienced promotion.
Specific embodiments of the present invention are illustrated below below.
As shown in Figure 3, it is assumed that port is USB port, after being inserted into the USB port of external equipment, first judges the operation of external equipment
System is WINDOWS systems or LINUX system, when external equipment is WINDOWS systems, is worked using free drive pattern, when
When external equipment when LINUX system, judge whether the instruction that user pre-enters is CPE, if it is, using non-free drive pattern
Work, if it is not, then being worked using free drive pattern.
Wherein, the presupposed information is asked for operating system character string descriptor.
Wherein, the step of being worked using free drive pattern include:
Step 121, after the process of one action AT orders of response, the pattern of the port is converted into telecommunication network driving
Interface specification RNDIS port modes;
Step 122, after the pattern of the port is converted to the RNDIS port modes, using network address translation NAT
Pattern gives the host assignment network.
Wherein, the step of being worked using non-free drive pattern include:
It step 131, will be described after receiving the switching command that the CPE that CD is switched to port mode in advance is issued
The pattern of port is converted to Network Driver Interface specification NDIS port modes;
Step 132, when the pattern of the port is converted to NDIS port modes, and the CPE has loaded the ends NDIS
After the driving of mouth, networking dials and after dial-up success, to the public network IP(Internet Protocol) IP address of CPE distribution acquisitions.
The adaptive external equipment free drive of the embodiment of the present invention or the method for non-free drive are corresponding with above-mentioned mobile terminal
Method, all realization methods in above-mentioned mobile terminal can similarly reach suitable for the embodiment of this method:According to outer
The type for connecing equipment automatically switches the mode operation of free drive or non-free drive, is preferably adapted to external equipment, user is made to experience
To promotion.
The above is the preferred embodiment of the present invention, it is noted that for those skilled in the art
For, without departing from the principles of the present invention, it can also make several improvements and retouch, these improvements and modifications
It should be regarded as protection scope of the present invention.
Claims (10)
1. a kind of mobile terminal, including port, for using the work of free drive pattern free drive module and for using non-free drive
The non-free drive module of pattern work;It is characterized in that, further including:
Judgment module obtains judging result for judging whether the port receives the presupposed information of external equipment transmission;
The first execution module being respectively connected with the free drive module and the judgment module is yes for working as the judging result
When, control the free drive module work;
The second execution module being respectively connected with the free drive module, the non-free drive module and the judgment module, for working as
When the judging result is no, the input the instruction whether instruction that user pre-enters is customer terminal equipment CPE judged, if
It is then to control the non-free drive module work, otherwise, controls the free drive module work.
2. mobile terminal according to claim 1, which is characterized in that the presupposed information is operating system character string descriptor
Symbol request.
3. mobile terminal according to claim 1, which is characterized in that further include:
Selecting switch, for selecting the input of the different external equipments to instruct for user.
4. mobile terminal according to claim 1, which is characterized in that the free drive module includes:
First port respond module, for after the process of one action AT orders of response, the pattern of the port to be converted to far
Journey Network Driver Interface specification RNDIS port modes;
The software wireless access point SoftAP modules being connected with the first port respond module, for the pattern when the port
After being converted to the RNDIS port modes, network address is accessed using network address translation NAT mode and distributes to described external set
It is standby.
5. mobile terminal according to claim 1, which is characterized in that the non-free drive module includes:
Second port respond module receives the switching that optical disk mode is switched to the CPE of port mode in advance and is issued for working as
After instruction, the pattern of the port is converted into Network Driver Interface specification NDIS port modes;Wherein, the optical disk mode is
When the mobile terminal connects the external equipment, the initial pattern of the port;
The networking module being connected with the second port respond module, for being converted to the ports NDIS mould when the pattern of the port
Formula, and after the CPE has loaded the drivings of the ports NDIS, networking dialing and after dial-up success are obtained to CPE distribution
The public network IP(Internet Protocol) IP address taken.
6. mobile terminal according to claim 5, which is characterized in that the switching command is universal serial bus modulatedemodulate
Adjust device conversion usb-modem switch instructions.
7. a kind of method of adaptive external equipment free drive or non-free drive, which is characterized in that including:
Judge whether port receives the presupposed information that the external equipment is sent, obtains judging result;
When the judging result is to be, worked using free drive pattern;
When the judging result is no, judge whether the input for being customer terminal equipment CPE refers to for instruction that user pre-enters
It enables, if it is, being worked using non-free drive pattern, otherwise, is worked using free drive pattern.
8. being asked the method according to the description of claim 7 is characterized in that the presupposed information is operating system character string descriptor
It asks.
9. the method according to the description of claim 7 is characterized in that the step of being worked using free drive pattern includes:
After the process of one action AT orders of response, the pattern of the port is converted into remote network driver interface specification
RNDIS port modes;
After the pattern of the port is converted to the RNDIS port modes, using network address translation NAT mode to described outer
Connect equipment distribution network.
10. the method according to the description of claim 7 is characterized in that the step of being worked using non-free drive pattern includes:
After receiving the switching command that the CPE that optical disk mode is switched to port mode in advance is issued, by the mould of the port
Formula is converted to Network Driver Interface specification NDIS port modes;Wherein, the optical disk mode is described in mobile terminal connection
When external equipment, the initial pattern of the port;
When the pattern of the port is converted to NDIS port modes, and after the CPE has loaded the drivings of the ports NDIS, connection
Net dials and after dial-up success, the public network IP(Internet Protocol) IP address obtained to CPE distribution.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310589284.8A CN104660788B (en) | 2013-11-20 | 2013-11-20 | A kind of method of mobile terminal and adaptive external equipment free drive or non-free drive |
PCT/CN2014/082810 WO2015074433A1 (en) | 2013-11-20 | 2014-07-23 | Selecting method for driving mode of mobile terminal and external equipment, and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310589284.8A CN104660788B (en) | 2013-11-20 | 2013-11-20 | A kind of method of mobile terminal and adaptive external equipment free drive or non-free drive |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104660788A CN104660788A (en) | 2015-05-27 |
CN104660788B true CN104660788B (en) | 2018-11-13 |
Family
ID=53178893
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310589284.8A Active CN104660788B (en) | 2013-11-20 | 2013-11-20 | A kind of method of mobile terminal and adaptive external equipment free drive or non-free drive |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN104660788B (en) |
WO (1) | WO2015074433A1 (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104853453A (en) * | 2014-02-17 | 2015-08-19 | 中兴通讯股份有限公司 | Adaption method for data card and terminal, terminal, and data card |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102375786A (en) * | 2011-10-18 | 2012-03-14 | 中兴通讯股份有限公司 | Automatic operating system identifying method and system for USB (Universal Serial Bus) equipment |
WO2013003227A1 (en) * | 2011-06-27 | 2013-01-03 | American Power Conversion Corporation | System and methods for driverless operation of usb device |
CN103379006A (en) * | 2012-04-19 | 2013-10-30 | 中兴通讯股份有限公司 | Data card self-adaptive method and apparatus |
-
2013
- 2013-11-20 CN CN201310589284.8A patent/CN104660788B/en active Active
-
2014
- 2014-07-23 WO PCT/CN2014/082810 patent/WO2015074433A1/en active Application Filing
Patent Citations (3)
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 (en) * | 2011-10-18 | 2012-03-14 | 中兴通讯股份有限公司 | Automatic operating system identifying method and system for USB (Universal Serial Bus) equipment |
CN103379006A (en) * | 2012-04-19 | 2013-10-30 | 中兴通讯股份有限公司 | Data card self-adaptive method and apparatus |
Also Published As
Publication number | Publication date |
---|---|
CN104660788A (en) | 2015-05-27 |
WO2015074433A1 (en) | 2015-05-28 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10901470B2 (en) | Power distribution unit self-identification | |
WO2019196462A1 (en) | Air conditioning unit, operating method and device for air conditioning unit | |
EP2936329B1 (en) | Systems and methods for exchanging usb information with selected remote devices | |
CN103534984A (en) | Port setting method, apparatus and computer program product for routing | |
JP5923168B2 (en) | Data card activation method and data card | |
WO1999059072A3 (en) | Media manager for controlling autonomous media devices within a network environment | |
EP2701456A1 (en) | Wireless broadband data card supporting accessing network in 3g and wi-fi manners | |
CN101796485A (en) | Electrical device configuration system and method | |
CN101488941A (en) | Method and system for implementing USB equipment shared using | |
CN102273179A (en) | Method and device for terminal batch upgrading | |
CN103379121A (en) | Protocol conversion device and protocol conversion method | |
EP2432192B1 (en) | Control method, apparatus and system | |
CN101505300B (en) | System for data synchronization between server and terminal on the basis of Linux and synchronization method thereof | |
WO2007054447A1 (en) | Method for controlling mobile data connection through usb ethernet management | |
CN104660788B (en) | A kind of method of mobile terminal and adaptive external equipment free drive or non-free drive | |
CN102710672B (en) | The access method of data card form web page control inerface and system | |
WO2015058413A1 (en) | Data configuration method and network management server | |
CN106997179A (en) | The method and intelligence control system of intelligent control platform management equipment | |
Cisco | Configuring Modem Support and Asynchronous Devices | |
Cisco | Configuring Modem Support and Asynchronous Devices | |
WO2012139450A1 (en) | Networking method and system | |
CN108476245A (en) | Establish the method and port chip of port connection | |
EP2770672A2 (en) | System of wireless communication, and method of management | |
CN102739695A (en) | Remote control method for power distributor unit | |
CN209869504U (en) | Remote maintenance system of hydraulic machine |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |