CN102158532B - Communication connection method and data card - Google Patents
Communication connection method and data card Download PDFInfo
- Publication number
- CN102158532B CN102158532B CN 201110035209 CN201110035209A CN102158532B CN 102158532 B CN102158532 B CN 102158532B CN 201110035209 CN201110035209 CN 201110035209 CN 201110035209 A CN201110035209 A CN 201110035209A CN 102158532 B CN102158532 B CN 102158532B
- Authority
- CN
- China
- Prior art keywords
- data card
- communication network
- client
- connect
- data
- 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
Images
Landscapes
- Mobile Radio Communication Systems (AREA)
Abstract
The embodiment of the invention provides a communication connection method and a data card. The communication connection method provided by the invention comprises the following steps that the data card obtains data flow from a client; if the communication connection is not established between the data card and a communication network, the communication connection is established between the data card and the communication network; the data card sends the data flow to the communication network through the communication connection and starts the statistics on standby time; if the data card doesnot receive the data flow from the client in a preset standby time threshold value, the communication connection between the data card and the communication network is cut off; and if the data card receives the data flow from the client in the preset standby time threshold value, the data card makes statistics on the standby time again. By the embodiment of the invention, the communication connection between the data card and the communication network can be automatically established and cut off by the data card according to the data flow from the client, thereby enhancing the flexibility andefficiency of the data card.
Description
Technical field
The embodiment of the invention relates to the communication technology, relates in particular to a kind of communication connecting method and data card.
Background technology
Data card can be connected with terminal by wired mode or wireless mode, establishes a communications link between terminal and communication network, for terminal provides data service.
But in the prior art, data card can only be set up communicating to connect between this data card and the communication network according to the user by the client of terminal or the bind command that page triggering is set of this data card; And data card can only disconnect communicating to connect between this data card and the communication network, thereby reduce flexibility and the efficient of data card according to the user by the client of terminal or the ON-and OFF-command that page triggering is set of this data card.
Summary of the invention
The embodiment of the invention provides a kind of communication connecting method and data card, in order to flexibility and the efficient that improves data card.
The embodiment of the invention provides a kind of communication connecting method, comprising:
Data card obtains the data traffic from client;
If described data card and communication network do not communicate to connect, then described data card set up and described communication network between communicating to connect;
Described data card is sent to described communication network with described data traffic by described communicating to connect, and begins to add up stand-by time;
If in default stand-by time threshold value, described data card does not receive data traffic from described client again, then described data card disconnect and communication network between communicating to connect;
If in default stand-by time threshold value, described data card receives data traffic from described client, then described data card is added up described stand-by time again.
The embodiment of the invention also provides a kind of data card, comprising:
Acquisition module is used for obtaining the data traffic from client;
Set up module, if do not communicate to connect for described data card and communication network, set up communicating to connect between described data card and the described communication network;
Processing module, be used for described data traffic is sent to described communication network by described communicating to connect, and begin to add up stand-by time, if in default stand-by time threshold value, described acquisition module does not receive data traffic from described client again, then communicating to connect between disconnection and the communication network; If in default stand-by time threshold value, described acquisition module receives data traffic from described client, then adds up described stand-by time again.
As shown from the above technical solution, the embodiment of the invention is obtained data traffic from client by data card, if above-mentioned data card and communication network do not communicate to connect, then data card can set up and above-mentioned communication network between communicate to connect, then, above-mentioned data card is sent to above-mentioned communication network with above-mentioned data traffic by above-mentioned communicating to connect, and begin to add up stand-by time, if in default stand-by time threshold value, above-mentioned data card does not receive data traffic from above-mentioned client again, then above-mentioned data card disconnect and communication network between communicating to connect, if in default stand-by time threshold value, above-mentioned data card receives data traffic from above-mentioned client, then above-mentioned data card is added up above-mentioned stand-by time again, thereby make data card to have improved flexibility and the efficient of data card according to from communicating to connect between the automatic foundation of the data traffic of client and disconnection and the communication network.
Description of drawings
In order to be illustrated more clearly in the embodiment of the invention or technical scheme of the prior art, to do one to the accompanying drawing of required use in embodiment or the description of the Prior Art below introduces simply, apparently, accompanying drawing in describing below is some embodiments of the present invention, for those of ordinary skills, under the prerequisite of not paying creative work, can also obtain other accompanying drawing according to these accompanying drawings.
The schematic flow sheet of the communication connecting method that Fig. 1 provides for the embodiment of the invention one;
The structural representation of the data card that Fig. 2 provides for the embodiment of the invention two;
Embodiment
For the purpose, technical scheme and the advantage that make the embodiment of the invention clearer, below in conjunction with the accompanying drawing in the embodiment of the invention, technical scheme in the embodiment of the invention is clearly and completely described, obviously, described embodiment is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills belong to the scope of protection of the invention not making the every other embodiment that obtains under the creative work prerequisite.
Need to prove: related terminal includes but not limited to mobile phone, personal digital assistant (Personal Digital Assistant is called for short PDA), radio hand-held equipment, wireless Internet access basis, PC, portable computer, MP3 player, MP4 player etc. in the embodiment of the invention.
The schematic flow sheet of the communication connecting method that Fig. 1 provides for the embodiment of the invention one, as shown in Figure 1, the communication connecting method of present embodiment can may further comprise the steps:
Particularly, data card can obtain the data traffic from client by wired mode, for example: USB connected mode etc.; Perhaps data card can also pass through wireless mode, obtains the data traffic from client, for example: bluetooth, Wireless Fidelity (Wireless Fidelity is called for short WIFI) etc.
Wherein, above-mentioned data traffic from client can include but not limited to the access request corresponding data flow amount from client, for example: HTML (Hypertext Markup Language) (HyperText Transfer ProtoCol is called for short HTTP) access request etc.
If the above-mentioned data card of step 102 and communication network do not communicate to connect, communicating to connect between above-mentioned data card foundation and the above-mentioned communication network;
Particularly, above-mentioned data card can pass through dial mode, communicating to connect between foundation and the above-mentioned communication network.
Wherein, data card statistics stand-by time can include but not limited to data card by software timer carry out timing, data card is counted according to certain fixed frequency by some counting module or program, present embodiment does not limit this.
If step 104 is in default stand-by time threshold value, above-mentioned data card does not receive data traffic from above-mentioned client again, then communicating to connect between above-mentioned data card disconnection and the communication network;
If step 105 is in default stand-by time threshold value, above-mentioned data card receives data traffic from above-mentioned client, and then above-mentioned data card is added up above-mentioned stand-by time again.
In the present embodiment, obtain data traffic from client by data card, if above-mentioned data card and communication network do not communicate to connect, then data card can set up and above-mentioned communication network between communicate to connect, then, above-mentioned data card is sent to above-mentioned communication network with above-mentioned data traffic by above-mentioned communicating to connect, and begin to add up stand-by time, if in default stand-by time threshold value, above-mentioned data card does not receive data traffic from above-mentioned client again, then above-mentioned data card disconnect and communication network between communicating to connect, if in default stand-by time threshold value, above-mentioned data card receives data traffic from above-mentioned client, then above-mentioned data card is added up above-mentioned stand-by time again, realized that data card can be according to from communicating to connect between the automatic foundation of the data traffic of client and disconnection and the communication network, thereby improved flexibility and the efficient of data card.
Need to prove: the communication network that relates in the present embodiment can include but not limited to UMTS Terrestrial radio access network (UMTS Territorial Radio Access Network, be called for short UTRAN) and evolved universal mobile communication system (Universal Mobile Telecommunication System, be called for short UMTS) land radio access web (Evolved Universal Mobile TelecommunicationSystem Territorial Radio Access Network is called for short E-UTRAN).
Need to prove: for aforesaid each method embodiment, for simple description, so it all is expressed as a series of combination of actions, but those skilled in the art should know, the present invention is not subjected to the restriction of described sequence of movement, because according to the present invention, some step can adopt other orders or carry out simultaneously.Secondly, those skilled in the art also should know, the embodiment described in the specification all belongs to preferred embodiment, and related action and module might not be that the present invention is necessary.
In the above-described embodiments, the description of each embodiment is all emphasized particularly on different fields, do not have the part that describes in detail among certain embodiment, can be referring to the associated description of other embodiment.
The structural representation of the data card that Fig. 2 provides for the embodiment of the invention two, as shown in Figure 3, the data card of present embodiment can comprise acquisition module 21, set up module 22 and processing module 23.Wherein, acquisition module 21 is used for obtaining the data traffic from client; Module 22 is used for above-mentioned data card and communication network does not communicate to connect if set up, and sets up communicating to connect between above-mentioned data card and the above-mentioned communication network; Processing module 23 is used for above-mentioned data traffic is sent to above-mentioned communication network by above-mentioned communicating to connect, and begin to add up stand-by time, if in default stand-by time threshold value, above-mentioned acquisition module 21 does not receive data traffic from above-mentioned client again, then communicating to connect between disconnection and the communication network; If in default stand-by time threshold value, above-mentioned acquisition module 21 receives data traffic from above-mentioned client, then adds up above-mentioned stand-by time again.
The function of data card can be realized by the data card that the embodiment of the invention provides among the invention described above embodiment one.
Particularly, the acquisition module 21 in the present embodiment specifically can be used for by wired mode or wireless mode, obtains the data traffic from client.Wherein, above-mentioned data traffic from client can include but not limited to the access request corresponding data flow amount from client.
Particularly, if the module 22 of setting up in the present embodiment specifically can not communicate to connect for described data card and communication network, by dial mode, set up communicating to connect between above-mentioned data card and the above-mentioned communication network.
In the present embodiment, data card obtains data traffic from client by acquisition module, if above-mentioned data card and communication network do not communicate to connect, set up that module then can be set up and above-mentioned communication network between communicate to connect, then, processing module is sent to above-mentioned communication network with above-mentioned data traffic by above-mentioned communicating to connect, and begin to add up stand-by time, if in default stand-by time threshold value, acquisition module does not receive data traffic from above-mentioned client again, then disconnect and communication network between communicating to connect, if in default stand-by time threshold value, acquisition module receives data traffic from above-mentioned client, then add up above-mentioned stand-by time again, realized that data card can be according to from communicating to connect between the automatic foundation of the data traffic of client and disconnection and the communication network, thereby improved flexibility and the efficient of data card.
One of ordinary skill in the art will appreciate that: all or part of step that realizes said method embodiment can be finished by the relevant hardware of program command, aforesaid program can be stored in the computer read/write memory medium, this program is carried out the step that comprises said method embodiment when carrying out; And aforesaid storage medium comprises: various media that can be program code stored such as ROM, RAM, magnetic disc or CD.
It should be noted that at last: above embodiment only in order to technical scheme of the present invention to be described, is not intended to limit; Although with reference to previous embodiment the present invention is had been described in detail, those of ordinary skill in the art is to be understood that: it still can be made amendment to the technical scheme that aforementioned each embodiment puts down in writing, and perhaps part technical characterictic wherein is equal to replacement; And these modifications or replacement do not make the essence of appropriate technical solution break away from the spirit and scope of various embodiments of the present invention technical scheme.
Claims (8)
1. a communication connecting method is characterized in that, comprising:
Data card obtains the data traffic from client;
If described data card and communication network do not communicate to connect, communicating to connect between described data card foundation and the described communication network;
Described data card is sent to described communication network with described data traffic by described communicating to connect, and begins to add up stand-by time;
If in default stand-by time threshold value, described data card does not receive data traffic from described client again, then described data card disconnect and communication network between communicating to connect;
If in default stand-by time threshold value, described data card receives data traffic from described client, then described data card is added up described stand-by time again.
2. method according to claim 1 is characterized in that, the step that described data card obtains from the data traffic of client comprises:
Data card obtains the data traffic from client by wired mode or wireless mode.
3. method according to claim 1 is characterized in that, described data traffic from client comprises the access request corresponding data flow amount from client.
4. according to the described method of the arbitrary claim of claim 1 to 3, it is characterized in that the step that communicates to connect between described data card foundation and the described communication network comprises:
Described data card passes through dial mode, communicating to connect between foundation and the described communication network.
5. a data card is characterized in that, comprising:
Acquisition module is used for obtaining the data traffic from client;
Set up module, if do not communicate to connect for described data card and communication network, set up communicating to connect between described data card and the described communication network;
Processing module, be used for described data traffic is sent to described communication network by described communicating to connect, and begin to add up stand-by time, if in default stand-by time threshold value, described acquisition module does not receive data traffic from described client again, then communicating to connect between disconnection and the communication network; If in default stand-by time threshold value, described acquisition module receives data traffic from described client, then adds up described stand-by time again.
6. data card according to claim 5 is characterized in that, described acquisition module specifically is used for
By wired mode or wireless mode, obtain the data traffic from client.
7. data card according to claim 5 is characterized in that, described data traffic from client comprises the access request corresponding data flow amount from client.
8. according to the described data card of the arbitrary claim of claim 5 to 7, it is characterized in that the described module of setting up specifically is used for
If described data card and communication network do not communicate to connect, by dial mode, set up communicating to connect between described data card and the described communication network.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 201110035209 CN102158532B (en) | 2011-02-09 | 2011-02-09 | Communication connection method and data card |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 201110035209 CN102158532B (en) | 2011-02-09 | 2011-02-09 | Communication connection method and data card |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102158532A CN102158532A (en) | 2011-08-17 |
CN102158532B true CN102158532B (en) | 2013-09-11 |
Family
ID=44439709
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN 201110035209 Active CN102158532B (en) | 2011-02-09 | 2011-02-09 | Communication connection method and data card |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102158532B (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103051793B (en) * | 2012-12-18 | 2015-06-03 | 广东欧珀移动通信有限公司 | Method and device for controlling data transmission mode of mobile terminal |
WO2016144422A1 (en) * | 2015-03-06 | 2016-09-15 | Apple Inc. | Determining when to establish connection between mobile client and proxy devices |
CN105072672A (en) * | 2015-07-08 | 2015-11-18 | 福州瑞芯微电子股份有限公司 | Wireless function control method and system, and wireless device |
CN105338550B (en) * | 2015-09-22 | 2019-02-26 | 网易传媒科技(北京)有限公司 | A kind of management method and device of the connection for wireless network |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1507204A (en) * | 2002-12-09 | 2004-06-23 | 华为技术有限公司 | Control method for on-line network users |
CN101617519A (en) * | 2007-02-21 | 2009-12-30 | 高通股份有限公司 | Dynamically adjust the inactivity timer threshold that is used for call control transactions |
KR20100075230A (en) * | 2008-12-24 | 2010-07-02 | 전자부품연구원 | Method and device for reducing of waiting power of home network gateway |
CN101778484A (en) * | 2009-12-30 | 2010-07-14 | 中兴通讯股份有限公司 | Data connection establishing/releasing method, data transmission method and wireless data card |
-
2011
- 2011-02-09 CN CN 201110035209 patent/CN102158532B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1507204A (en) * | 2002-12-09 | 2004-06-23 | 华为技术有限公司 | Control method for on-line network users |
CN101617519A (en) * | 2007-02-21 | 2009-12-30 | 高通股份有限公司 | Dynamically adjust the inactivity timer threshold that is used for call control transactions |
KR20100075230A (en) * | 2008-12-24 | 2010-07-02 | 전자부품연구원 | Method and device for reducing of waiting power of home network gateway |
CN101778484A (en) * | 2009-12-30 | 2010-07-14 | 中兴通讯股份有限公司 | Data connection establishing/releasing method, data transmission method and wireless data card |
Also Published As
Publication number | Publication date |
---|---|
CN102158532A (en) | 2011-08-17 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106712975B (en) | Mobile phone internet traffic counting and displaying method and device and mobile phone | |
CN102571820B (en) | For transmitting the method for data, compression service device and terminal | |
CN103248683A (en) | IOT cloud music speaker and audio data play method thereof | |
CN102571863A (en) | Method and device for realizing content sharing between mobile terminals | |
CN102158532B (en) | Communication connection method and data card | |
CN104183250A (en) | Method and system for synchronizing function of music player of intelligent device and Bluetooth headset | |
CN102118831A (en) | Wireless access method and device | |
CN102143534A (en) | Method, equipment and system for processing bandwidth control | |
CN103731497A (en) | Method for supporting wireless access to storage device and mobile route hot point device | |
CN106973431B (en) | Transmission power adjusting method and terminal | |
CN102387125A (en) | Method and system for accessing microblog, and picture sending method and system of microblog website | |
CN100454924C (en) | Portable cellular telephone and communication system thereof | |
CN103368999A (en) | Internet access system and method | |
CN104683124A (en) | Terminal type identification method and device | |
CN102118719A (en) | Mobile intelligent information service system, adaptation converting device and method | |
WO2003077163A8 (en) | Method of managing data stored on a chip card that can be read by mobile telephone | |
CN105554859A (en) | Message notification processing method of terminal, and terminal | |
CN101754421A (en) | File transmission method based on Bluetooth transmission protocol, system and mobile terminal | |
CN104135518A (en) | A method for sharing data | |
CN103457624A (en) | External electronic device and method for wirelessly accessing storage device | |
CN103297458B (en) | A kind of file sharing method and terminal | |
CN102298559B (en) | Handheld terminal and with computer method for information interaction between and system | |
CN107786956B (en) | Method and device for determining real-time priority of package | |
CN204667454U (en) | A kind of school net service platform based on APP controlling functions | |
CN104918314B (en) | A kind of AP power consumption method of adjustment and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant |