CN103974458A - Control method and device and mobile terminal - Google Patents

Control method and device and mobile terminal Download PDF

Info

Publication number
CN103974458A
CN103974458A CN201310028657.4A CN201310028657A CN103974458A CN 103974458 A CN103974458 A CN 103974458A CN 201310028657 A CN201310028657 A CN 201310028657A CN 103974458 A CN103974458 A CN 103974458A
Authority
CN
China
Prior art keywords
order
wireless network
user terminal
module
network
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.)
Pending
Application number
CN201310028657.4A
Other languages
Chinese (zh)
Inventor
曾恺
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN201310028657.4A priority Critical patent/CN103974458A/en
Priority to PCT/CN2013/079717 priority patent/WO2013174312A2/en
Publication of CN103974458A publication Critical patent/CN103974458A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The embodiment of the invention provides a control method and device and a mobile terminal. The method is used for the mobile terminal. The mobile terminal makes AT command interaction with a user terminal through an AT command transmission channel built between the mobile terminal and the user terminal. The method comprises the steps of receiving a first AT command sent by the user terminal, judging whether the first AT command indicates connection with a wireless network or not, obtaining a first judgment result, and generating a first wireless network connection instruction when the first judgment result is yes. According to the control method and device and the mobile terminal, the high-robustness control over the behavior that the mobile terminal is controlled to be connected with the wireless network can be achieved.

Description

A kind of control method, device and mobile terminal
Technical field
The embodiment of the present invention relates to the communications field, relates in particular to a kind of control method, device and mobile terminal.
Background technology
At present, the user terminal such as computer can visit using mobile terminals such as data cards as wireless modem cellular network (as EDGE/3G network).Wherein, user terminal need to be mobile terminal configuration APN parameter by standard AT command AT+CGDCONT, then adopts the mode of PPP dialing to control the behavior of mobile terminal control connection cellular network.But PPP dialing need to be used the dial-up program that computer operating system provides, with operating system strong correlation.Once the service that dial-up program is required and relevant setting, changed by user or other application, can cause the lasting execution failure of dial-up program, even cannot recover again.That is to say, the robustness of this control mode is not high.
Summary of the invention
In view of this, the object of the embodiment of the present invention is to provide a kind of control method, device and mobile terminal, to realize the high robust control of the behavior to mobile terminal control connection wireless network.
For solving the problems of the technologies described above, the embodiment of the present invention provides scheme as follows:
The embodiment of the present invention provides a kind of control method, and for a mobile terminal, mobile terminal, by a built AT command transfer passage standing between mobile terminal and user terminal, carries out the mutual of AT order with user terminal, and described method comprises:
Receive the AT order that user terminal sends;
Judge that whether a described AT order indicates connecting wireless network, obtains one first judged result;
When described the first judged result is when being, generate the first wireless network link order.
Preferably, described wireless network is WIFI network, and described generation the first wireless network link order specifically comprises:
From a described AT order, parse WIFI focus identification parameter;
Generation is used to indicate described the first wireless network link order that connects WIFI focus; Wherein, described WIFI focus is corresponding with described WIFI focus identification parameter.
Preferably, before the AT order that described reception user terminal sends, described method also comprises:
Obtain the scanning result of a current WIFI network;
Send the 2nd AT order that carries described scanning result to user terminal, make user terminal from described the 2nd AT order, to parse described scanning result, generate and send a described AT order to mobile terminal according to described scanning result.
Preferably, mobile terminal is provided with the first module for connecting the wireless network with first network type and the second module for being connected the wireless network with second network type, and described generation the first wireless network link order specifically comprises:
From a described AT order, parse network type parameter;
In the time that described network type parameter is first network type, generate described the first wireless network link order that connects the wireless network with first network type for controlling described the first module;
In the time that described network type parameter is second network type, generate described the first wireless network link order that connects the wireless network with second network type for controlling described the second module.
Preferably, before the AT order that described reception user terminal sends, described method also comprises:
Under the control of user terminal, control described the first module and set up and there is first between the wireless network of first network type and be connected;
In the time that described the first connection is set up, send and carry wireless network the 3rd AT order of connection status to user terminal, make user terminal to generate and to send to mobile terminal the 4th AT order that instruction disconnects according to described the 3rd AT order;
Receive described the 4th AT order;
Control described the first module according to described the 4th AT order and disconnect described the first connection;
In the time that described first connects disconnection, send the 5th AT order that carries wireless network not-connected status to user terminal, make user terminal to generate and send a described AT order to mobile terminal according to described the 5th AT order.
Preferably, described under the control of user terminal, control described the first module and set up and there is first between the wireless network of first network type and be connected specifically and comprise:
Receive the 6th AT order that user terminal sends;
Judge that whether described the 6th AT order indicates connecting wireless network, obtains one second judged result;
When described the second judged result is when being, generate second wireless network link order.
Preferably,
Described first network type is in WIFI and honeycomb, and described second network type is except described first network type in WIFI and honeycomb.
The embodiment of the present invention provides a kind of control device, and for a mobile terminal, described device comprises:
The first receiver module, the AT order sending for receiving user terminal;
Judge module, for judging that whether a described AT order indicates connecting wireless network, obtains one first judged result;
Generation module, for when described the first judged result is when being, generates the first wireless network link order.
Preferably, described wireless network is WIFI network, and described generation module specifically comprises:
The first resolution unit for when described the first judged result is when being, parses WIFI focus identification parameter from a described AT order;
The first generation unit, is used to indicate for generating described the first wireless network link order that connects WIFI focus; Wherein, described WIFI focus is corresponding with described WIFI focus identification parameter.
Preferably, mobile terminal is provided with the first module for connecting the wireless network with first network type and the second module for being connected the wireless network with second network type, and described generation module specifically comprises:
The second resolution unit for when described the first judged result is when being, parses network type parameter from a described AT order;
The second generation unit, in the time that described network type parameter is first network type, generates described the first wireless network link order that connects the wireless network with first network type for controlling described the first module;
The 3rd generation unit, in the time that described network type parameter is second network type, generates described the first wireless network link order that connects the wireless network with second network type for controlling described the second module.
Preferably, described device also comprises:
The first control module, before receiving the AT order that user terminal sends, under the control of user terminal, controls described the first module foundation and has first between the wireless network of first network type and be connected for described receiver module;
The second sending module, receive an AT order of user terminal transmission for described receiver module before, in the time that described the first connection is set up, send and carry wireless network the 3rd AT order of connection status to user terminal, make user terminal to generate and to send to mobile terminal the 4th AT order that instruction disconnects according to described the 3rd AT order;
The second receiver module, before receiving an AT order of user terminal transmission, receives described the 4th AT order for described receiver module;
The second control module, before receiving an AT order of user terminal transmission, controls described the first module according to described the 4th AT order and disconnects described the first connection for described receiver module;
The 3rd sending module, receive an AT order of user terminal transmission for described receiver module before, in the time that described first connects disconnection, send the 5th AT order that carries wireless network not-connected status to user terminal, make user terminal to generate and to send a described AT order to mobile terminal according to described the 5th AT order.
Preferably, described the first control module specifically comprises:
Control unit, before receiving an AT order of user terminal transmission, receives the 6th AT order that user terminal sends for described receiver module;
Judging unit, before receiving an AT order of user terminal transmission, judges that whether described the 6th AT order indicates connecting wireless network, obtains one second judged result for described receiver module;
The 4th generation unit, before receiving for described receiver module the AT order that user terminal sends, when described the second judged result is when being, generation second wireless network link order.
The embodiment of the present invention provides a kind of mobile terminal that comprises above-described control device.
Can find out from the above, the embodiment of the present invention at least has following beneficial effect:
Mobile terminal carries out the mutual of AT order by built AT command transfer passage and the user terminal standing between mobile terminal and user terminal, the AT order sending by receiving user terminal, in the time of an AT order instruction connecting wireless network, generate the first wireless network link order, thereby realized the high robust control of the behavior to mobile terminal control connection wireless network.
Brief description of the drawings
The flow chart of steps of a kind of control method that Fig. 1 provides for the embodiment of the present invention;
Fig. 2 is the data card software structured flowchart based on hardware WIFI;
Fig. 3 is initialization AT order flow chart;
Fig. 4 is for connecting AT order flow chart;
Fig. 5 connects AT order flow chart for cancelling;
Fig. 6 is for disconnecting AT order flow chart;
Fig. 7 is WIFI hot spot scanning AT order flow chart.
Embodiment
For making object, technical scheme and the advantage of the embodiment of the present invention clearer, below in conjunction with the accompanying drawings and the specific embodiments the embodiment of the present invention is described in detail.
The flow chart of steps of a kind of control method that Fig. 1 provides for the embodiment of the present invention, with reference to Fig. 1, the embodiment of the present invention provides a kind of control method, and described method comprises the steps:
Step 101, receives the AT order that user terminal sends;
Step 102, judges that whether a described AT order indicates connecting wireless network, obtains one first judged result;
Step 103, when described the first judged result is when being, generates the first wireless network link order.
Described method is for a mobile terminal, and mobile terminal, by a built AT command transfer passage standing between mobile terminal and user terminal, carries out the mutual of AT order with user terminal.
Visible, mobile terminal carries out the mutual of AT order by built AT command transfer passage and the user terminal standing between mobile terminal and user terminal, the AT order sending by receiving user terminal, in the time of an AT order instruction connecting wireless network, generate the first wireless network link order, thereby realized the high robust control of the behavior to mobile terminal control connection wireless network.
This mode can be carried out the information interaction between user terminal and mobile terminal by the AT command transfer passage of having set up again, no longer need to set up PPPOE transmission channel, reduced because of set up certain hour resource that PPPOE transmission channel brings expend and to transfer resource certain between mobile terminal and user terminal and process taking of resource, thereby also just realized to a certain extent the efficient control of the behavior to mobile terminal control connection wireless network.
Wherein, described mobile terminal for example: data card, mobile phone, panel computer etc.
Describedly judge that whether a described AT order indicates connecting wireless network, for example obtains one first judged result:
From a described AT order, parse character " AT " designator below in a described AT order, if represent "+" of standard AT command, described the first judged result is no; If self-defining specific character (as " ^ "), described the first judged result is yes.
Again for example:
From a described AT order, parse character " AT " designator below in a described AT order, if self-defining specific character, from a described AT order, parse the command name after this specific character, represent the title (as " TCONN ") that wireless network connects if self-defining, described the first judged result is yes; Otherwise described the first judged result is no.
Again for example:
From a described AT order, parse character " AT " designator and command name below in a described AT order, if this designator is to represent that "+" of standard AT command and this command name are certain standard AT command titles of presetting, from a described AT order, parse certain self-defining parameter, if this Parametric Representation connects (as <mode>, 1 represents to connect), described the first judged result is yes; Otherwise described the first judged result is no.
Described wireless network is for example: WIFI network, the cellular networks such as 2G/3G etc.
Can built-in wireless chip on mobile terminal, for example WIFI chip or EDGE/3G dual-mode chip; Or, also can external radio module, for example WIFI module or EDGE/3G bimodulus module.Correspondingly, described the first wireless network link order should be instruction that this wireless chip or wireless module can identify and this wireless chip or wireless module can be under the control of described the first wireless network link order connecting wireless network.
Because those skilled in the art can adopt variety of way to design and generate described the first wireless network link order, do not repeat them here.
In the step 102 and step 103 of the embodiment of the present invention, be WIFI network condition for described wireless network, for example, if a described AT order instruction connecting wireless network can have various situations:
Situation one, can not indicate in a described AT order and connect which WIFI focus, correspondingly, in the first wireless network link order that mobile terminal generates, can carry default WIFI focus condition of contact, and for example signal strength signal intensity is greater than certain thresholding.Or,
Situation two, can carry WIFI focus condition of contact in a described AT order, and for example signal strength signal intensity is greater than certain thresholding, correspondingly, in the first wireless network link order that mobile terminal generates, also can carry this condition.Or,
Situation three, can carry WIFI focus identification parameter (for example SSID and bSSID) in a described AT order, so which WIFI focus instruction connects, correspondingly, Ke Yiyou:
Described generation the first wireless network link order specifically comprises:
From a described AT order, parse WIFI focus identification parameter;
Generation is used to indicate described the first wireless network link order that connects WIFI focus; Wherein, described WIFI focus is corresponding with described WIFI focus identification parameter.
Thus, just can realize the control of the behavior to the specific WIFI focus of mobile terminal control connection.Consider that mobile terminal control is arranged at the situation of the WIFI chip connection WIFI network of self, this has also strengthened the control ability of user terminal to mobile terminal connection WIFI network behavior.
Corresponding with said circumstances, described the first wireless network link order should be instruction that the built-in wireless chip of mobile terminal or external wireless module can identify and this wireless chip or wireless module can carry out corresponding operation (be for example connected to the WIFI focus that meets this conditional information, be connected to the WIFI focus that instruction connects) under the control of described the first wireless network link order.Because those skilled in the art can adopt variety of way to design and generate described the first wireless network link order, do not repeat them here.
Further, consider that user terminal, before instruction connects WIFI network, may need to know the scanning situation of WIFI network, in view of this, before the AT order that described reception user terminal sends, described method can also comprise:
Obtain the scanning result of a current WIFI network;
Send the 2nd AT order that carries described scanning result to user terminal, make user terminal from described the 2nd AT order, to parse described scanning result, generate and send a described AT order to mobile terminal according to described scanning result.
Wherein, described scanning result can be mobile terminal active obtaining, also can be for obtaining under the instruction of user terminal.Described scanning result can comprise the WIFI focus identification list scanning, and alternatively, can also comprise the information such as the signal strength signal intensity of each WIFI focus in list.
In addition, consider that mobile terminal itself has the ability that can connect two class wireless networks, if a class is cellular radio, one class is WIFI wireless network, can retain the control mode of PPP dialing to cellular radio, WIFI wireless network is adopted to the control mode based on AT order in the embodiment of the present invention, but, from the angle of the user terminals such as computer, (two kinds of distinct methods do same thing, the mobile terminals such as usage data card visit network as wireless modem), increase the complexity of system, expend certain transfer resource and processed resource, just reduce to a certain extent the efficiency of controlling.And AT Command design is simple, extensibility is strong, therefore can be further used for the control of the behavior of user terminal to the dissimilar wireless network of mobile terminal control connection.The control efficiency of this mode is higher, and has realized only by the object that uses PPP dial mode to realize.In view of this, in the time that mobile terminal possesses the ability that is operatively connected to polytype wireless network, still can control by the mode based on AT order, for example, represent that with different AT command names instruction is connected to dissimilar wireless network; Or, represent that by different parameters instruction is connected to dissimilar wireless network.Corresponding to the latter, particularly, can there is following example:
Mobile terminal is provided with the first module for connecting the wireless network with first network type and the second module for being connected the wireless network with second network type, and described generation the first wireless network link order specifically comprises:
From a described AT order, parse network type parameter;
In the time that described network type parameter is first network type, generate described the first wireless network link order that connects the wireless network with first network type for controlling described the first module;
In the time that described network type parameter is second network type, generate described the first wireless network link order that connects the wireless network with second network type for controlling described the second module.
In this example, user terminal just can be controlled the behavior of the dissimilar wireless network of mobile terminal control connection simply, easily by an AT order.
Further, consider that user terminal may not need mobile terminal to be connected to dissimilar wireless network simultaneously, in view of this, Ke Yiyou:
Before the AT order that described reception user terminal sends, described method also comprises:
Under the control of user terminal, control described the first module and set up and there is first between the wireless network of first network type and be connected;
In the time that described the first connection is set up, send and carry wireless network the 3rd AT order of connection status to user terminal, make user terminal to generate and to send to mobile terminal the 4th AT order that instruction disconnects according to described the 3rd AT order;
Receive described the 4th AT order;
Control described the first module according to described the 4th AT order and disconnect described the first connection;
In the time that described first connects disconnection, send the 5th AT order that carries wireless network not-connected status to user terminal, make user terminal to generate and send a described AT order to mobile terminal according to described the 5th AT order.
Thus, user terminal just can be indicated and be connected particular type wireless network in the time confirming that certain connects disconnection, thereby also just realize user terminal simple control for the control behavior of wireless network connection and disconnection to mobile terminal, simplified control flow, convenient, reliable, efficient.
Wherein, described under the control of user terminal, control described the first module and set up and there is first between the wireless network of first network type and be connected specifically and can comprise:
Receive the 6th AT order that user terminal sends;
Judge that whether described the 6th AT order indicates connecting wireless network, obtains one second judged result;
When described the second judged result is when being, generate second wireless network link order.
Thus, user terminal is controlled the behavior of mobile terminal control connection particular type wireless network by the 2nd AT order, in the time that the first connection is set up, disconnecting first by the 4th AT order indicating mobile terminal connects, in the time that disconnecting, the first connection by an AT order, the behavior of mobile terminal control connection particular type wireless network is controlled again, like this, for these two kinds of situations that particular type is same type, user terminal just can be set up easily and disconnect the behavior of particular type wireless network connection and control to mobile terminal control; Be dissimilar situation for these two kinds of particular types, user terminal just can be controlled mobile terminal easily, mobile terminal can be controlled eat dishes without rice or wine to locate any switching between radio path corresponding to radio path corresponding to the first module and the second module.
In embodiments of the present invention, described first network type can be in WIFI and honeycomb, and described second network type can be except described first network type in WIFI and honeycomb.
In embodiments of the present invention, be that data card and described wireless network are the situation of WIFI network specific to described mobile terminal, there is again another benefit, specifically describe as follows:
Along with the development of WIFI technology, the progressively increase of the deployment of AP focus, increasing terminal series products all starts to support WIFI function.Traditional data card also starts to develop to T+W class data card.T is TD-SCDMA, and W is WLAN, means with respect to traditional data card, by the operation at UI interface, not only can connect 2G/3G network, can also be in the place that has WIFI environment, and be switched to arbitrarily and on WIFI, carry out data service.WIFI network, with respect to 2G/3G network, has speed fast, without features such as flow restriction.Can enrich the use scenes of data card.
But the T+W class data card of mentioning here, still there is certain use restriction, because data card itself does not have WIFI chip, so need to use the wireless network card on connected user terminal (as computer) while connecting WIFI network, the built-in wireless network card carrying as notebook computer, if user terminal does not have wireless network card, just cannot connect WIFI network, can only work as traditional data card and use.
For this awkward place, can on data card, add WIFI chip, connect WIFI network by data card control from the WIFI chip arranging with it, still, user terminal cannot be controlled the behavior of data card control connection WIFI network at present.
Thus, the situation that is data card specific to described mobile terminal, another benefit of the embodiment of the present invention is to provide the control mode that data card control is connected to the behavior of WIFI network.
Again, data card is in the time inserting user terminal, can enumerate NDIS network card equipment, this equipment acquiescence is notconnect state, and after WIFI successful connection, this equipment can be set to connection status, so this equipment just becomes the passage of transfer of data, data card is served and is brought in as user terminal distributing IP by DHCP again, and user terminal just can carry out data service by data card like this.So also just solve the restive problem of user terminal side software with hardware WIFI chip T+W class data card.Like this, user terminal is not having wireless network card or wireless network card with maybe wouldn't enable in the situation that, still can access WIFI network by data card, thereby to have expanded the application scenarios of data card.
For the embodiment of the present invention is further set forth clear, taking user terminal as personal computer, (PC), mobile terminal, as the situation that data card, the first module and the second module are built in data card is example, provide the preferred embodiments of the embodiment of the present invention below.
This preferred embodiments provides a kind of control method based on AT order, meets band hardware WIFI data card attended operation requirement.
In order to address the above problem, the present invention proposes a kind of control method based on AT order, and its core comprises one group of AT Command Set.PC side software can carry out operating data card by relevant newly-increased AT order, the parameter that data card is accepted to provide by order after AT order is carried out, execution result is returned to PC side software, if data card is being carried out the change that has state after AT order simultaneously, the corresponding AT order of active reporting is to PC side software, and PC side software determines that according to reported result next step what AT order controls again.
Described newly-increased AT order comprises current connection state reporting AT order, and WIFI hot spot scanning AT order is connected AT order with network.
First,, when data card inserts computer, can enumerate three COM port kind equipments and a NDIS network interface card kind equipment.Wherein, COM port kind equipment is the passage of AT command transfer.NDIS network interface card kind equipment acquiescence is notconnect state, when after wireless connections success, can be set to connection status, is the passage of transfer of data between data card and computer.
About current connection state reporting AT order:
After COM port kind equipment can be used, PC side software issues state reporting to data card and enables AT order, and data card can start active reporting current state after receiving this order immediately.Wherein, first the indication network type reporting, is 2G/3G network or WIFI network, and second represents the state under current network type.
The first step, if data card is inserting initialization success after computer, 2G/3G network or WIFI network have been ready to and without abnormal, have reported initialization success.Otherwise report initialization failure, can not interconnection network.
Second step, data card can automatic report network not-connected status, and instruction PC side software can start interconnection network.
That is to say, data card is receiving that the state reporting that PC side software issues enables after AT order, under normal circumstances, initialization success, network not-connected status for 2G/3G network connection type can be successively reported, and initialization success, network not-connected status for WIFI network connection type can be successively reported.
In addition, other state reporting functions that data card has comprise: while connection, report network connects, after successful connection, report network connects, while disconnecting, report and disconnect, if cancel entering again while connection and cancelling connection status, after connection disconnection, report network does not connect again, now can initiate to connect again.
In the time that data card just enters the state at scan A P focus, just can report at scan A P state, object is to inform PC side software, now connects AT order or disconnect AT order possibly cannot respond, and needs to postpone to carry out.When after the end of scan, again report the state before scanning.
About WIFI hot spot scanning AT order:
Enabled to arrange by AT order after data card reports the success of WIFI netinit by PC side software.
If comprise time parameter in the AT order while setting and parameter value is non-vanishing, according to the timer on parameter value enable data card, when after timer expiry, data card carries out the scanning of WIFI focus automatically, with TAINF active reporting AT order.
SSID and the bSSID of the first two of report AT command Parametric Representation WIFI focus, for distinguishing unique WIFI focus, the 3rd the current signal strength signal intensity of this WIFI focus of Parametric Representation.
If the time parameter comprising in AT order while setting is 1 o'clock, carry out immediately the scanning of a WIFI focus, and active reporting scanning result, report form to report with timing scan.This kind of pattern used in the time that PC side software need to obtain current periphery WIFI hot information immediately.
If while also comprising SSID and bSSID parameter in AT order while setting, designation data card is according to the value of SSID and bSSID, and data card obtains immediately specifies the current demand signal intensity of WIFI focus and offers PC side software.
Connect class AT order about network:
Network connects class AT order and comprises that network connects AT order, cancels network connection AT order and is connected AT order with disconnection network.
When after data card active reporting network not-connected status, PC side software can carry out network and connect issuing of AT order.
First parameter of order is interconnection network type, represents that current attended operation is to connect 2G/3G network or WIFI network.
If because just consider in connection procedure, have and cancel the scene connecting.The implication of second parameter represents that current action is interconnection network or cancels interconnection network, for distinguishing.
When the network type connecting while being WIFI network the 3rd and the 4th parameter just effectively, be used to specify unique WIFI focus to be connected.
When network connection class AT order also comprises parameter acquiring AT order and is connected, parameter arranges AT order.
Parameter acquiring AT order is with the SSID and the bSSID parameter that indicate unique WIFI focus key message, data card is carried out after this order, can return to the hot information getting to PC side software, information comprises authentication mode, cryptographic algorithm, network type and signal strength signal intensity, PC side software is these information displays, and can revise.
Issuing before connection WIFI focus AT order, need to AT order be set by parameter, by authentication mode, cryptographic algorithm, authentication mode and key are set in data card again, during for connection.
Parameter arranges AT order and is connected SSID and the bSSID parameter that WIFI focus AT order all carries by two orders and carries out correspondence.
When after data card active reporting network connection status, PC side software can disconnect network and connect issuing of AT order.The type that the parameter of order only need to specify network current to be disconnected to connect, or be set to any type.
Be connected to synchronization and only have one to come into force, keep connection status.No matter after the successful connection of 2G/3G network, or after WIFI successful connection, then NDIS network interface card is set to connection status, and serve and bring in distributing IP by DHCP, computer just can carry out data service by data card like this.In the time no longer carrying out data service, can carry out opening operation, at this moment NDIS network interface card can be set to not-connected status, data card enters idle condition, also can not have influence on the use that on computer, other network connects simultaneously.
Adopt this preferred embodiments, solved the restive problem of PC side software with hardware WIFI chip T+W class data card, use unified a set of AT Command Set, can conveniently between 2G/3G network and WIFI network, connect and switch, simply effective.
The preferred embodiment > of this preferred embodiments of <
Fig. 2 is the data card software structured flowchart based on hardware WIFI of the preferred embodiment of this preferred embodiments, with reference to Fig. 2, controls WIFI chip and connect WIFI focus under the cooperation that wherein WLAN protocol stack is used for driving at SDIO; 2G/3G protocol stack is supported PDP mobilizing function, connects cellular network for controlling 2G/3G chip; NDIS protocol stack drives and can after data card inserts computer, enumerate network card equipment based on USB, is used for doing the bridge of data interaction between computer and data card.Described AT Command Set, by above three being planned as a whole to control, both can in 2G/3G network environment, use to reach data card, can use at WIFI net environment again, and can switch easily use, strengthen the applicability of the product of data card-used.
Here, comprise 2G/3G protocol stack and 2G/3G chip for connecting the module of the wireless network with cellular-type, comprise that for connecting the module of the wireless network with WIFI type WLAN protocol stack, SDIO drive and WIFI chip;
Wireless network link order is generated under the control of expansion AT command module by data transmit-receive and control module thereof, this expansion AT command module is from AT engine receives newly-increased AT order, based on api interface, this data transmit-receive and control module thereof are controlled, and for the situation that receives the newly-increased AT order of indicating connecting wireless network, this this data transmit-receive of expansion AT command module controls and control module thereof generate wireless network link order.
The application process of the AT order newly increasing below in conjunction with Fig. 3 ~ 7 pair in this preferred embodiments is described in detail:
Fig. 3 is initialization AT order flow chart, and with reference to Fig. 3, power-up initializing process and timing scan report process to comprise the following steps:
After start AT port can be used, PC side software sends following AT order to data card:
AT^TMODE=<n>
The value of <n>: 0 cancellation ^TMODE reports 1 to enable reporting of ^TMODE
In Fig. 3, the value of <n> is 1, enables state reporting.
After enabling successfully, (being that data card sends ^TMODE:1OK to PC side software) starts the active reporting of ^TMODE state, and meaning is as follows:
^TMODE:<linkstatus>,<netstatus>
<linkstatus>: connection type mark: 1WIFI2
TD/EDGE
<netstatus>: network type mark:
0 initialization success
1 initialization failure, can not connect
2 networks do not connect
3 networks connect
4 networks connect
5 are cancelling connection
6 are disconnecting
11 are scanning WIFI focus, in the time of <linkstatus>=1
Come into force
When WIFI network is initialization success status ^TMODE:1,0 report after, PC side software can send following AT order to data card, controls the frequency that reports and report of ^TAINF:
AT^TAINF=<n>,[<time>,<ssid>,<bssid>]
<n>:0 cancellation ^TAINF reports 1 to enable reporting of ^TAINF
<time>: report the time interval, unit second, size 0 ~ 65535
If 0 represents to report immediately once.In the time of <n>=1, come into force
<ssid>:WIFI network SSID
<bssid>:WIFI network bSSID
After command execution success, can report immediately WIFI hot information once, but report as a response.After this according to the time interval timing active reporting WIFI hot information arranging.
WIFI hot information reports form to be:
^TAINF:<ssid>,<bssid>,<rssi>
<ssid>:WIFI network SSID
<bssid>:WIFI network bSSID
<rssi>:WIFI network signal intensity, the dbm of unit
When data card arrange timing overtime after, can enter WIFI hot spot scanning state, report ^TMODE:1,11, with reference to Fig. 7, after been scanned, can report current available WIFI hot information according to above form, after scanning and reporting, can report again the state entering before scanning mode, as be WIFI network not-connected status before entering,, report ^TMODE:1,2; As before entering for WIFI network connection status, report ^TMODE:1,4 after.
Network connection procedure, cancel network connection procedure and disconnect network connection procedure comprising the following steps:
Fig. 4 is for connecting AT order flow chart, with reference to Fig. 4, after state reporting network does not connect, comprise that 2G/3G network does not connect ^TMODE:2,2 are not connected ^TMODE:1 with WIFI network, 2 two kinds of situations, and PC side software can send as issue orders to data card and connect instruction:
AT^TCONN=<type>,<mode>[,<ssid>,<bssid>]
<type>: the type of network to be connected: 1WIFI2TD/EDGE
<mode>: explanation is interconnection network or cancels network connection:
1 connects 0 cancels network connection
<ssid>:WLAN network SSID, when <type>=1 comes into force
<bssid>:WLAN network bSSID, when <type>=1 comes into force
No matter connect 2G/3G network or WIFI network, need first to connect the setting of parameter before connection.In the time connecting 2G/3G network, APN need to be set, use standard AT command AT+CGDCONT to arrange.When connecting WIFI network, authentication mode need to be set, cryptographic algorithm, authentication mode and key information, can use following AT order to arrange:
AT^TTAPCFGS=<ssid>,<bssid>,<auth>,<encr>,<autype>
[,<wepkey0>,<wepkey1>,<wepkey2>,<wepkey3>,<wepkeyindex>]
<ssid>:WLAN network SSID
<bssid>:WLAN network bSSID
<auth>: authentication mode
Comprise: 0 NONE 1 IEEE8021X 2WPA_PSK3WPA_EAP4WPA2_PSK
5WPA2_EAP
<encr>: cryptographic algorithm
Comprise: 0 NONE 1 TKIP 2 CCMP 3 WEP_OPEN4WEP_SHARE
5WEP1046YES
<autype> authentication mode
Comprise: 0 NONE1 (U) SIM certification 2WEB certification
<wepkey0>:WEP encryption key 1 or WPA/WPA2 KI
In the time of <encr>=TKIP or <encr>=CCMP, come into force
<wepkey1>:WEP encryption key 2
<wepkey2>:WEP encryption key 3
<wepkey3>:WEP encryption key 4
<wepkeyindex>:WEP encryption key indices
In the time of <encr>=WEP_OPEN or <encr>=WEP_SHARE, come into force
Because the action executing time that network connects is longer, if with synchronous AT order, PC side software has obstruction, causes other AT command process not in time.Therefore network connection AT command execution results reports with asynchronous system, and order issues in the response of returning immediately after data card, has unique key assignments and indicates, as follows:
<CR><LF>^TCONN:
<CR><LF>ACK:<id><CR><LF>
<CR><LF>OK<CR><LF>
Wherein <id>: asynchronous AT command process numbering, for indicating active reporting response results, from 0 ~ 127 circulation.
Then actual connection result can be notified PC side software by the active reporting of ^TACK, wherein also has unique key assignments to indicate, and is the result of that request thereby PC side software can be judged, prevents result entanglement.^TACK reports form as follows:
^TACK:<id>,<result>[,<err>]
<id>: asynchronous AT command process numbering, for indicating active reporting response results: from 0 ~ 127 circulation ,-11 represent WIFI hot spot scanning result
<result>: asynchronous command result: 0OK1ERROR
<err>: error code reports in the time of result unequal to 0
Fig. 5 connects AT order flow chart for cancelling, with reference to Fig. 5, if just in connection procedure, can cancel connection, the AT order that AT order is used time connected to the network is identical, just has a parameter to need to change, <mode> parameter.
Fig. 6 is for disconnecting AT order flow chart, with reference to Fig. 6, after state reporting network has connected, comprise that 2G/3G network has connected ^TMODE:2,4 have been connected ^TMODE:1 with WIFI network, 4 two kinds of situations, and PC side software can issue and disconnect operation as issued orders to data card:
AT^TDISCONN=<type>
<type>: the type of network to be disconnected: 0ALL1WIFI2TD/EDGE
This order is also asynchronous execution order.The state that in implementation, meeting report network is disconnecting.If ^TACK instruction ON-and OFF-command runs succeeded, report network not-connected status.Otherwise disconnect unsuccessfully, remain network connection status.
The embodiment of the present invention also provides a kind of control device, and for a mobile terminal, described device comprises:
The first receiver module, the AT order sending for receiving user terminal;
Judge module, for judging that whether a described AT order indicates connecting wireless network, obtains one first judged result;
Generation module, for when described the first judged result is when being, generates the first wireless network link order.
Visible, mobile terminal carries out the mutual of AT order by built AT command transfer passage and the user terminal standing between mobile terminal and user terminal, the AT order sending by receiving user terminal, in the time of an AT order instruction connecting wireless network, generate the first wireless network link order, thereby realized the high robust control of the behavior to mobile terminal control connection wireless network;
This mode can be carried out the information interaction between user terminal and mobile terminal by the AT command transfer passage of having set up again, no longer need to set up PPPOE transmission channel, reduced because of set up certain hour resource that PPPOE transmission channel brings expend and to transfer resource certain between mobile terminal and user terminal and process taking of resource, thereby also just realized to a certain extent the efficient control of the behavior to mobile terminal control connection wireless network.
Wherein, described wireless network can be WIFI network, and described generation module specifically can comprise:
The first resolution unit for when described the first judged result is when being, parses WIFI focus identification parameter from a described AT order;
The first generation unit, is used to indicate for generating described the first wireless network link order that connects WIFI focus; Wherein, described WIFI focus is corresponding with described WIFI focus identification parameter.
In addition, mobile terminal can be provided with the first module for connecting the wireless network with first network type and the second module for being connected the wireless network with second network type, and described generation module specifically can comprise:
The second resolution unit for when described the first judged result is when being, parses network type parameter from a described AT order;
The second generation unit, in the time that described network type parameter is first network type, generates described the first wireless network link order that connects the wireless network with first network type for controlling described the first module;
The 3rd generation unit, in the time that described network type parameter is second network type, generates described the first wireless network link order that connects the wireless network with second network type for controlling described the second module.
Further, described device can also comprise:
The first control module, before receiving the AT order that user terminal sends, under the control of user terminal, controls described the first module foundation and has first between the wireless network of first network type and be connected for described receiver module;
The second sending module, receive an AT order of user terminal transmission for described receiver module before, in the time that described the first connection is set up, send and carry wireless network the 3rd AT order of connection status to user terminal, make user terminal to generate and to send to mobile terminal the 4th AT order that instruction disconnects according to described the 3rd AT order;
The second receiver module, before receiving an AT order of user terminal transmission, receives described the 4th AT order for described receiver module;
The second control module, before receiving an AT order of user terminal transmission, controls described the first module according to described the 4th AT order and disconnects described the first connection for described receiver module;
The 3rd sending module, receive an AT order of user terminal transmission for described receiver module before, in the time that described first connects disconnection, send the 5th AT order that carries wireless network not-connected status to user terminal, make user terminal to generate and to send a described AT order to mobile terminal according to described the 5th AT order.
Further, described the first control module specifically can comprise:
Control unit, before receiving an AT order of user terminal transmission, receives the 6th AT order that user terminal sends for described receiver module;
Judging unit, before receiving an AT order of user terminal transmission, judges that whether described the 6th AT order indicates connecting wireless network, obtains one second judged result for described receiver module;
The 4th generation unit, before receiving for described receiver module the AT order that user terminal sends, when described the second judged result is when being, generation second wireless network link order.
The embodiment of the present invention also provides a kind of mobile terminal, and described mobile terminal comprises above-described control device.
The above is only the execution mode of the embodiment of the present invention; should be understood that; for those skilled in the art; do not departing under the prerequisite of embodiment of the present invention principle; can also make some improvements and modifications, these improvements and modifications also should be considered as the protection range of the embodiment of the present invention.

Claims (13)

1. a control method, for a mobile terminal, is characterized in that, mobile terminal, by a built AT command transfer passage standing between mobile terminal and user terminal, carries out the mutual of AT order with user terminal, and described method comprises:
Receive the AT order that user terminal sends;
Judge that whether a described AT order indicates connecting wireless network, obtains one first judged result;
When described the first judged result is when being, generate the first wireless network link order.
2. method according to claim 1, is characterized in that, described wireless network is WIFI network, and described generation the first wireless network link order specifically comprises:
From a described AT order, parse WIFI focus identification parameter;
Generation is used to indicate described the first wireless network link order that connects WIFI focus; Wherein, described WIFI focus is corresponding with described WIFI focus identification parameter.
3. method according to claim 2, is characterized in that, before the AT order that described reception user terminal sends, described method also comprises:
Obtain the scanning result of a current WIFI network;
Send the 2nd AT order that carries described scanning result to user terminal, make user terminal from described the 2nd AT order, to parse described scanning result, generate and send a described AT order to mobile terminal according to described scanning result.
4. method according to claim 1, it is characterized in that, mobile terminal is provided with the first module for connecting the wireless network with first network type and the second module for being connected the wireless network with second network type, and described generation the first wireless network link order specifically comprises:
From a described AT order, parse network type parameter;
In the time that described network type parameter is first network type, generate described the first wireless network link order that connects the wireless network with first network type for controlling described the first module;
In the time that described network type parameter is second network type, generate described the first wireless network link order that connects the wireless network with second network type for controlling described the second module.
5. method according to claim 4, is characterized in that, before the AT order that described reception user terminal sends, described method also comprises:
Under the control of user terminal, control described the first module and set up and there is first between the wireless network of first network type and be connected;
In the time that described the first connection is set up, send and carry wireless network the 3rd AT order of connection status to user terminal, make user terminal to generate and to send to mobile terminal the 4th AT order that instruction disconnects according to described the 3rd AT order;
Receive described the 4th AT order;
Control described the first module according to described the 4th AT order and disconnect described the first connection;
In the time that described first connects disconnection, send the 5th AT order that carries wireless network not-connected status to user terminal, make user terminal to generate and send a described AT order to mobile terminal according to described the 5th AT order.
6. method according to claim 5, is characterized in that, described under the control of user terminal, controls described the first module and sets up and have first between the wireless network of first network type and be connected specifically and comprise:
Receive the 6th AT order that user terminal sends;
Judge that whether described the 6th AT order indicates connecting wireless network, obtains one second judged result;
When described the second judged result is when being, generate second wireless network link order.
7. according to the method described in any one in claim 4 to 6, it is characterized in that,
Described first network type is in WIFI and honeycomb, and described second network type is except described first network type in WIFI and honeycomb.
8. a control device, for a mobile terminal, is characterized in that, described device comprises:
The first receiver module, the AT order sending for receiving user terminal;
Judge module, for judging that whether a described AT order indicates connecting wireless network, obtains one first judged result;
Generation module, for when described the first judged result is when being, generates the first wireless network link order.
9. device according to claim 8, is characterized in that, described wireless network is WIFI network, and described generation module specifically comprises:
The first resolution unit for when described the first judged result is when being, parses WIFI focus identification parameter from a described AT order;
The first generation unit, is used to indicate for generating described the first wireless network link order that connects WIFI focus; Wherein, described WIFI focus is corresponding with described WIFI focus identification parameter.
10. device according to claim 8, it is characterized in that, mobile terminal is provided with the first module for connecting the wireless network with first network type and the second module for being connected the wireless network with second network type, and described generation module specifically comprises:
The second resolution unit for when described the first judged result is when being, parses network type parameter from a described AT order;
The second generation unit, in the time that described network type parameter is first network type, generates described the first wireless network link order that connects the wireless network with first network type for controlling described the first module;
The 3rd generation unit, in the time that described network type parameter is second network type, generates described the first wireless network link order that connects the wireless network with second network type for controlling described the second module.
11. devices according to claim 10, is characterized in that, described device also comprises:
The first control module, before receiving the AT order that user terminal sends, under the control of user terminal, controls described the first module foundation and has first between the wireless network of first network type and be connected for described receiver module;
The second sending module, receive an AT order of user terminal transmission for described receiver module before, in the time that described the first connection is set up, send and carry wireless network the 3rd AT order of connection status to user terminal, make user terminal to generate and to send to mobile terminal the 4th AT order that instruction disconnects according to described the 3rd AT order;
The second receiver module, before receiving an AT order of user terminal transmission, receives described the 4th AT order for described receiver module;
The second control module, before receiving an AT order of user terminal transmission, controls described the first module according to described the 4th AT order and disconnects described the first connection for described receiver module;
The 3rd sending module, receive an AT order of user terminal transmission for described receiver module before, in the time that described first connects disconnection, send the 5th AT order that carries wireless network not-connected status to user terminal, make user terminal to generate and to send a described AT order to mobile terminal according to described the 5th AT order.
12. devices according to claim 11, is characterized in that, described the first control module specifically comprises:
Control unit, before receiving an AT order of user terminal transmission, receives the 6th AT order that user terminal sends for described receiver module;
Judging unit, before receiving an AT order of user terminal transmission, judges that whether described the 6th AT order indicates connecting wireless network, obtains one second judged result for described receiver module;
The 4th generation unit, before receiving for described receiver module the AT order that user terminal sends, when described the second judged result is when being, generation second wireless network link order.
13. 1 kinds of mobile terminals, is characterized in that, comprise the control device as described in any one in claim 8 to 12.
CN201310028657.4A 2013-01-25 2013-01-25 Control method and device and mobile terminal Pending CN103974458A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201310028657.4A CN103974458A (en) 2013-01-25 2013-01-25 Control method and device and mobile terminal
PCT/CN2013/079717 WO2013174312A2 (en) 2013-01-25 2013-07-19 Control method and device, and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310028657.4A CN103974458A (en) 2013-01-25 2013-01-25 Control method and device and mobile terminal

Publications (1)

Publication Number Publication Date
CN103974458A true CN103974458A (en) 2014-08-06

Family

ID=49624409

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310028657.4A Pending CN103974458A (en) 2013-01-25 2013-01-25 Control method and device and mobile terminal

Country Status (2)

Country Link
CN (1) CN103974458A (en)
WO (1) WO2013174312A2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI589169B (en) * 2015-09-18 2017-06-21 Wireless network communication system and communication method thereof
CN111034253A (en) * 2018-04-09 2020-04-17 联发科技股份有限公司 AT commands for 5G session management

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104602362B (en) * 2014-12-08 2018-04-10 深圳市广和通无线股份有限公司 PPP dial-up networking methods and system based on WIFI
CN109661020B (en) * 2018-11-07 2021-12-21 深圳市有方科技股份有限公司 Adjusting method and adjusting device for power saving mode of Internet of things and computer-readable storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070036138A1 (en) * 2005-08-03 2007-02-15 Chia-Ching Lin VoIP communication module
CN101150471A (en) * 2007-10-29 2008-03-26 中兴通讯股份有限公司 Broadband radio access system and method
CN101321194A (en) * 2008-07-04 2008-12-10 嘉兴闻泰通讯科技有限公司 Dual-module network card apparatus
CN101350832A (en) * 2008-08-29 2009-01-21 深圳华为通信技术有限公司 Data communication method, communication appliance, terminal and communication system

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101409932A (en) * 2008-11-25 2009-04-15 中国网络通信集团公司 Voice call method for pluggable mobile terminal
CN101902827B (en) * 2010-07-03 2015-04-01 中兴通讯股份有限公司 Method for establishing grouped data connection and wireless communication terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070036138A1 (en) * 2005-08-03 2007-02-15 Chia-Ching Lin VoIP communication module
CN101150471A (en) * 2007-10-29 2008-03-26 中兴通讯股份有限公司 Broadband radio access system and method
CN101321194A (en) * 2008-07-04 2008-12-10 嘉兴闻泰通讯科技有限公司 Dual-module network card apparatus
CN101350832A (en) * 2008-08-29 2009-01-21 深圳华为通信技术有限公司 Data communication method, communication appliance, terminal and communication system

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI589169B (en) * 2015-09-18 2017-06-21 Wireless network communication system and communication method thereof
CN111034253A (en) * 2018-04-09 2020-04-17 联发科技股份有限公司 AT commands for 5G session management
CN111034253B (en) * 2018-04-09 2023-10-13 联发科技股份有限公司 Wireless communication method in 5G network and user equipment

Also Published As

Publication number Publication date
WO2013174312A2 (en) 2013-11-28
WO2013174312A3 (en) 2014-01-16

Similar Documents

Publication Publication Date Title
CN113841339B (en) Service connection establishing method, bluetooth main device, chip and Bluetooth system
CN103327644B (en) A kind of method and apparatus of wireless connections
US9351158B2 (en) Method for wireless easy connect
CN102204391B (en) Repeater wps connection method and device
CN103379477B (en) The method of network configuration, device, wireless device and terminal are carried out to wireless device
CN104159321B (en) Wi-Fi configuration method and system
CA2852373A1 (en) Method of connecting an appliance to a wifi network
CN101860935A (en) Wireless communication system and wireless communications method
CN102685692B (en) Multi mode terminal payment terminal, method of payment and system
CN109005532B (en) Bluetooth connection method, Bluetooth master device and Bluetooth slave device
KR101257564B1 (en) Wireless usb device and wireless usb communication system
CN104936266A (en) Network access method and network access device
CN105357052A (en) Network communication functional abnormity processing method, application processor and mobile terminal
CN105472699A (en) Access method and system of smart home device
KR20170043503A (en) Terminal-based communication method and terminal
CN103974458A (en) Control method and device and mobile terminal
CN105553808A (en) Wireless network bridging method, smart home device and router
CN105847048B (en) The configuration method and device of smart machine
CN100495960C (en) Setting method for wireless communication device, computer peripheral equipment, and information processor
CN104754495A (en) Smart household device connecting method and smart terminal
CN106792994A (en) A kind of dual system termi-nal WIFI shared method and apparatus
CN109769275A (en) WIFI frequency band switching method, device, equipment and computer storage medium
CN101656730A (en) Communication device, communication system, communication method and program
EP2733992B1 (en) Method and apparatus for connecting to an access point in portable terminal
CN104754580A (en) Smart household device connecting method and smart terminal

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20140806

RJ01 Rejection of invention patent application after publication