CN102904911B - The method of accesses network and device - Google Patents

The method of accesses network and device Download PDF

Info

Publication number
CN102904911B
CN102904911B CN201110210459.0A CN201110210459A CN102904911B CN 102904911 B CN102904911 B CN 102904911B CN 201110210459 A CN201110210459 A CN 201110210459A CN 102904911 B CN102904911 B CN 102904911B
Authority
CN
China
Prior art keywords
network
applied business
link variable
connect
current
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
Application number
CN201110210459.0A
Other languages
Chinese (zh)
Other versions
CN102904911A (en
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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201110210459.0A priority Critical patent/CN102904911B/en
Publication of CN102904911A publication Critical patent/CN102904911A/en
Application granted granted Critical
Publication of CN102904911B publication Critical patent/CN102904911B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses a kind of method and device of accesses network, the method comprises: determine that current application Operational Visit network is complete, keeps current network to connect and the network link variable of storaging mark current network connection; Receive first network access request, close current network and connect; Receive second network access request, set up and be connected with the new of network.Application the present invention, can reduce customer flow consumption, promote the applied business experience of user.

Description

The method of accesses network and device
Technical field
The present invention relates to mobile communication technology, particularly a kind of method of accesses network and device.
Background technology
Along with the development of mobile communication technology, the application being carried out mobile service by mobile terminal is also more and more general, such as, by KJava (a kind of software development language) platform on mobile terminal, user can access internet, carries out the search of information, issue, download song, logs in JICQ and online game etc.
Fig. 1 is the existing method flow schematic diagram based on the KJava platform access network on mobile terminal.See Fig. 1, this flow process comprises:
Step 101, starts application program;
In this step, the applied business that user uses as required, starts the application program corresponding with this applied business of installing.Such as, when user needs to use Fetion transmitting-receiving note, then start the Fetion application program be arranged on mobile phone, if user needs to carry out installation kit download, then can start to fly to flow down and carry application program.
Step 102, triggers and exports whether grant access network of network accesses information;
In this step, based on KJava platform access network of network mechanism when operating, in order to prevent the misoperation of user, reduce the loss that user misoperation causes, when starting application program accesses network, also not carrying out dial-up operation if detected, then showing access to netwoks information at browser interface to user, to point out user whether to carry out access to netwoks, access to netwoks information can to such as: whether allow application program accesses network, whether receive/send out data etc. and point out.
Step 103, receives the order of the grant access network of user's input, distributes Dial-up Network resource, performs dialing process, sets up the connection with network;
In this step, after the order of grant access network receiving user's input, be dialing allocation of network resources, carry out the process such as dialing, set up the connection with network, thus obtain the applied business data of actual needs.
Step 104, applied business data are downloaded complete, disconnect network and connect.
In this step, in order to effectively reduce the cost of customer access network, saving limited bandwidth resources, connecting at mobile terminal and network and after applied business data are downloaded, disconnecting network and connect, and discharge Dial-up Network resource.
Connect at disconnection network, after release Dial-up Network resource, if applied business needs again accesses network or with new applied business accesses network, because Dial-up Network resource discharges, therefore need again to dial, and again trigger to export whether grant access network of network accesses information when applied business dials.
From above-mentioned, the existing method based on the KJava platform access network on mobile terminal is when applied business needs accesses network, correspondence is all needed to carry out one-stage dialing operation, and point out user whether grant access network, after user confirms, carry out the process such as dialing, could set up and network connection and obtain the data of actual needs, the trivial operations therefore performed, longer with the network required time consumption that connects, Consumer's Experience is quite unfriendly.
Summary of the invention
In view of this, main purpose of the present invention is a kind of method proposing accesses network, to reduce customer flow consumption, to promote the applied business experience of user.
Another object of the present invention is to propose a kind of network access device, to improve the speed that network connects.
For achieving the above object, the invention provides a kind of method of accesses network, the method comprises:
For current application traffic assignments Dial-up Network resource, set up network and connect;
Determine that current application Operational Visit network is complete, keep current network to connect and the network link variable connected in the memory location storaging mark current network pre-set;
After receiving the first network access request of user, the network link variable of marked network connection whether is stored in the described memory location inquiry pre-set, if store the network link variable that described marked network connects, then show that described Dial-up Network resource is not released, close current network and connect;
Send second network access request to described network, set up and be connected with the new of network.
Describedly determine that current application Operational Visit network is complete and comprise:
Applied business request bag is sent, request applied business to network;
The applied business request respond packet that com-parison and analysis network sends and applied business packet, if the applied business that the applied business data package size received and applied business request respond packet comprise is in the same size, determine that this applied business accesses network is complete.
Describedly determine that current application Operational Visit network is complete and comprise:
The applied business final data bag identification information that analytical applications service request respond packet comprises, if the applied business packet identification information received is final data bag identification information, determines that this applied business accesses network is complete.
Send second network access request to described network, set up after being connected with network new, comprise further:
Receive network and connect open command, disconnect network and connect and empty the network link variable of storage, start a timer and carry out timing, with the releasing network resources when timing completes.
Described accesses network is the access mode of carrying out based on the KJava platform of mobile terminal.
A kind of network access device, this device comprises:
Applied business processing module, for being current application traffic assignments Dial-up Network resource, setting up network and connecting; And keep current network to connect after current application Operational Visit network, and send the network link variable of mark current network connection;
Network link variable memory module, for receive and store described applied business processing module send network link variable;
Network access request processing module, for when network connects receive user first network access request, respond this first network access request, the network link variable whether storing marked network and connect is inquired about in described network link variable memory module, if store the network link variable that described marked network connects, then show that described Dial-up Network resource is not released, closedown current network connects, and send second network access request when current network connects and is closed to described network, set up and be connected with the new of network.
Comprise further:
User instruction monitoring modular, connects open command for receiving network, responds this network connection open command and control to disconnect network to connect, and then empties the network link variable of network link variable memory module storage and export time-of-the-day order to timer;
Timer, for receiving time-of-the-day order, starts timing, with the releasing network resources when timing completes.
Described network access request processing module is based on the KJava platform access network of mobile terminal.
As seen from the above technical solutions, the method for accesses network provided by the invention and device, can determine that current application Operational Visit network is complete, keeps current network to connect and the network link variable of storaging mark current network connection; Receive first network access request, close current network and connect; Receive second network access request, set up and be connected with the new of network.After applied business accesses network, do not disconnect network and connect, do not need clocked flip to send network request and receiving network data bag, decrease user network traffic consumes; And, user again accesses network time, because applied business saves connection, can directly disconnect current network connect and newly-built connection, make the delay of customer access network little, improve the experience of user to applied business.
Accompanying drawing explanation
Fig. 1 is the schematic flow sheet of the existing method based on the KJava platform access network on mobile terminal.
The schematic flow sheet of the method for the accesses network that Fig. 2 provides for the embodiment of the present invention.
The idiographic flow schematic diagram of the method for the accesses network that Fig. 3 provides for the embodiment of the present invention.
The structural representation of the network access device that Fig. 4 provides for the embodiment of the present invention.
Embodiment
For making the object, technical solutions and advantages of the present invention clearly, the present invention is described in further detail below in conjunction with the accompanying drawings and the specific embodiments.
The method of the accesses network that the embodiment of the present invention provides and device are when applied business accesses network is complete, arrange and do not disconnect network connection, and adopt network link variable to store the connection of this network, when again receiving network request, if store network link variable, then show that mobile terminal is still in network connection state, direct closedown current network connects, the newly-built connection for applied business accesses network, thus solution user uses Kjava platform application business, after long-time not accesses network again accesses network time, when not adding users flow, applied business can accesses network at any time, and do not eject access to netwoks prompting, promote Consumer's Experience.
Fig. 2 is the method flow schematic diagram of embodiment of the present invention accesses network.See Fig. 2, this flow process comprises:
Step 201, determines that current application Operational Visit network is complete, keeps current network to connect and the network link variable of storaging mark current network connection;
In this step, the flow process of applied business accesses network execution first, such as, starts application program, shows information, carries out dial-up connection, sets up network connection, down load application business etc., same as the prior art, does not repeat them here.
Determine that current application Operational Visit network is complete, comprising:
Mobile terminal sends applied business request bag to network, request applied business;
The applied business request respond packet that com-parison and analysis network sends and applied business packet, if the applied business that the applied business data package size received and applied business request respond packet comprise is in the same size, determine that this applied business accesses network is complete.
Certainly, determining that current application Operational Visit network is complete also can be by other means, such as, the final data bag identification information that the applied business request respond packet analyzing network transmission comprises, if the applied business packet identification information received is final data bag identification information, determine that this applied business accesses network is complete.
Network link variable, in order to identify current network connection state, represents that current network is in connection status.The occurrence of network link variable can be arranged according to actual needs, such as, represent that current mobile terminal is in network connection state when to arrange network link variable value be arbitrary value, and network link variable value is put emptyly represent that current mobile terminal is in network closed condition.Certainly, in practical application, also can arrange network link variable value be 1,0 respectively represent current mobile terminal be in network connection state and network closed condition, or, network link variable is stored in the memory location pre-set, represent current mobile terminal be in network connection state, and if do not store network link variable in the memory location pre-set, then represent current mobile terminal be in network closed condition.
In the embodiment of the present invention, after applied business accesses network, do not disconnect network to connect, like this, do not need clocked flip to send network request, decrease user network traffic consumes, and connect owing to not disconnecting network, mobile terminal can not discharge Dial-up Network resource, when accesses network again, avoid and show information to user; Meanwhile, network link variable is set and connects in order to marked network, be convenient to follow-up in, when request access network again, mobile terminal can know currently whether there is network and connect, and adopts corresponding network access policies according to the different conditions that network connects.
Step 202, receives first network access request, closes current network and connects;
In this step, due to the KJava platform based on mobile terminal, when accesses network, the network connection of once setting up can only use once, thus, when accesses network again, need first current network to be connected to disconnect, again New-deployed Network connects, and carries out the download etc. of respective application business on newly-built network connects.
In the embodiment of the present invention, after receiving network access request, by whether storing the network link variable that marked network connects in the memory location inquiry pre-set, if store the network link variable that marked network connects, show that current network is in connection status, Dial-up Network resource is not released, thus, only by current network connection closed, then need be connected by the newly-built network of this Dial-up Network resource.If do not store marked network connect network link variable, then conventionally in carry out first access to netwoks flow performing start dial-up program, do not repeat them here.
Step 203, receives second network access request, sets up and is connected with the new of network.
In this step, determining the network link variable storing marked network connection, after closing current network connection, network access request is being sent to network, set up by the Dial-up Network resource maintained and be connected with the new of network.
After the new connection of foundation, carry out applied business download, same as the prior art, do not repeat them here.After determining this applied business accesses network, network is still kept to connect, can without the need to upgrading the network link variable of the marked network connection stored in advance.
Certainly, in practical application, the network that can be inputted by user connects open command, forces to disconnect network and connects.
Comprise further:
Step 204, receives network and connects open command, disconnects network and connects and empty the network link variable of storage, start a timer and carry out timing, to discharge Dial-up Network resource when timing completes.
In this step, when user determines that applied business transfer of data is complete, needing to exit network, being off by arranging network connection attribute, trigger input network and connect open command.Determine that applied business accesses network is complete with above-mentioned, keep network connect unlike, above-mentioned determine applied business accesses network after, user does not arrange network connection attribute and is off.Determine not receive network access request in the given time, the Kjava platform release Dial-up Network resource of notice mobile terminal.
After startup timer, if receive network access request in the given time, then owing to now also not discharging Dial-up Network resource, then can return and perform step 203, with step 203 unlike, after determining this applied business accesses network, still keep network to connect, need again the network link variable that storaging mark network connects.
Fig. 3 is the method idiographic flow schematic diagram of embodiment of the present invention accesses network.See Fig. 3, this flow process comprises:
Step 301, starts application program;
Step 302, triggers and exports whether grant access network of network accesses information;
Step 303, receives the grant access network information of user's input, performs dialing process, sets up the connection with network;
In the embodiment of the present invention, step 301 ~ step 303 is identical with step 101 ~ step 103 respectively, does not repeat them here.
Step 304, determines that applied business accesses network is complete, keeps network to connect, determines not store network link variable, the network link variable that storaging mark network connects;
In this step, whether store network link variable in the memory location inquiry pre-set, if do not stored, be indicated as access to netwoks first, at the network link variable that the memory location storaging mark network pre-set connects.
Step 305, receives the network access request of user, and whether inquiry has the network of not closing to connect, if had, performs step 306, otherwise, start dial-up program, return and perform step 302;
In this step, after receiving the network request of user, at the network link variable that the memory location inquiry pre-set stores, if this network link variable identifies this mobile terminal and connects with network, then show that current network connects not close, if this network link variable stored identifies this mobile terminal and disconnects with network, then show that related resource is released, need again to connect with network.
Step 306, closes current network and connects;
Step 307, applied business initiates network access request;
In this step, because applied business saves connection, thus, the connection disconnection information that notice can reclaim Internet resources can not be sent to KJava platform, KJava platform does not receive and connects disconnection information, would not reclaim Internet resources yet, and user can accesses network at any time, user can not be reresented and whether want accesses network, also can not go again to perform the operations such as dialing.
Step 308, network is replied, and carries out applied business transfer of data;
This step is identical with existing applied business transfer of data, specifically see relate art literature, can not repeat them here.After execution of step 308, can return and perform step 304, so constantly circulation, connect until user forces to disconnect current network, perform step 309.
Step 309, the network receiving user's input connects open command, disconnects network and connects, upgrade the network link variable stored;
In this step, when user determines that applied business transfer of data is complete, needing to exit network, being off by arranging network connection attribute, trigger input network and connect open command.Determine that applied business accesses network is complete with above-mentioned, keep network connect unlike, above-mentioned determine applied business accesses network after, user does not arrange network connection attribute and is off.
Step 310, starts timer, determines not receive network access request in the given time, release Dial-up Network resource.
In this step, determine not receive network access request in the given time, the Kjava platform release Dial-up Network resource of notice mobile terminal.
After startup timer, if receive network access request in the given time, then owing to now also not discharging Dial-up Network resource, then can return and perform step 306.
From above-mentioned, the method for the accesses network of the embodiment of the present invention, determines that current application Operational Visit network is complete, keeps current network to connect and the network link variable of storaging mark current network connection; Receive first network access request, close current network and connect; Receive second network access request, set up and be connected with the new of network.Like this, by after applied business accesses network, arrange and do not disconnect network connection, like this, do not need clocked flip to send network request and receiving network data bag, decrease user network traffic consumes; Meanwhile, do not need the channel and the bandwidth that take operator yet, be conducive to limited bandwidth resources and utilize; And, user again accesses network time, because applied business saves connection, directly can disconnect current network to connect and newly-built connection, do not show access to netwoks information, do not need to perform the operations such as dialing yet, more do not need the response waiting for applied business process address access request or network terminal, make the delay of customer access network little, improve the experience of user to applied business.
Fig. 4 is embodiment of the present invention network access device structural representation.See Fig. 4, this device comprises: applied business processing module, network access request processing module and network link variable memory module, wherein,
Applied business processing module, for keeping current network to connect after current application Operational Visit network, and sends the network link variable of mark current network connection;
Network link variable memory module, for receive and store described applied business processing module send network link variable;
Network access request processing module, connect for receiving first network access request when network connects, responding this first network access request and closing current network, and receive second network access request when current network connects and is closed, set up and be connected with the new of network.
Comprise further: user instruction monitoring modular and timer, wherein,
User instruction monitoring modular, connects open command for receiving network, responds this network connection open command and control to disconnect network to connect, and then empties the network link variable of network link variable memory module storage and export time-of-the-day order to timer;
Timer, for receiving time-of-the-day order and starting timing, and then controls network access request processing module releasing network resources when timing completes.
The foregoing is only preferred embodiment of the present invention, be not intended to limit protection scope of the present invention.Within the spirit and principles in the present invention all, any amendment done, equivalent replacement and improvement etc., all should be included within protection scope of the present invention.

Claims (8)

1. a method for accesses network, is characterized in that, the method comprises:
For current application traffic assignments Dial-up Network resource, set up network and connect;
Determine that current application Operational Visit network is complete, keep current network to connect and the network link variable connected in the memory location storaging mark current network pre-set;
After receiving the first network access request of user, the network link variable of marked network connection whether is stored in the described memory location inquiry pre-set, if store the network link variable that described marked network connects, then show that described Dial-up Network resource is not released, close current network and connect; And
Send second network access request to described network, adopt described Dial-up Network resource to set up and be connected with the new of network.
2. the method for claim 1, is characterized in that, describedly determines that current application Operational Visit network is complete and comprises:
Applied business request bag is sent, request applied business to network;
The applied business request respond packet that com-parison and analysis network sends and applied business packet, if the applied business that the applied business data package size received and applied business request respond packet comprise is in the same size, determine that this applied business accesses network is complete.
3. the method for claim 1, is characterized in that, describedly determines that current application Operational Visit network is complete and comprises:
The applied business final data bag identification information that the applied business request respond packet analyzing network transmission comprises, if the applied business packet identification information received is final data bag identification information, determines that this applied business accesses network is complete.
4. the method as described in claims 1 to 3 any one, is characterized in that, sends second network access request to network, sets up after being connected with network new, comprises further:
Receive network and connect open command, disconnect network and connect and empty the network link variable of storage, start a timer and carry out timing, with the releasing network resources when timing completes.
5. the method for claim 1, is characterized in that, described accesses network is the access mode of carrying out based on the KJava platform of mobile terminal.
6. a network access device, is characterized in that, this device comprises:
Applied business processing module, for being current application traffic assignments Dial-up Network resource, setting up network and connecting; And keep current network to connect after current application Operational Visit network, and send the network link variable of mark current network connection;
Network link variable memory module, for receive and store described applied business processing module send network link variable; And
Network access request processing module, for receiving the first network access request of user when network connects, respond this first network access request, the network link variable whether storing marked network and connect is inquired about in described network link variable memory module, if store the network link variable that described marked network connects, then show that described Dial-up Network resource is not released, closedown current network connects, and send second network access request when current network connects and is closed to described network, adopt described Dial-up Network resource to set up to be connected with the new of network.
7. device as claimed in claim 6, is characterized in that, comprise further:
User instruction monitoring modular, connects open command for receiving network, responds this network connection open command and control to disconnect network to connect, and then empties the network link variable of network link variable memory module storage and export time-of-the-day order to timer;
Timer, for receiving described time-of-the-day order and starting timing, and then controls network access request processing module releasing network resources when timing completes.
8. device as claimed in claim 6, it is characterized in that, described network access request processing module is based on the KJava platform access network of mobile terminal.
CN201110210459.0A 2011-07-26 2011-07-26 The method of accesses network and device Active CN102904911B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110210459.0A CN102904911B (en) 2011-07-26 2011-07-26 The method of accesses network and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110210459.0A CN102904911B (en) 2011-07-26 2011-07-26 The method of accesses network and device

Publications (2)

Publication Number Publication Date
CN102904911A CN102904911A (en) 2013-01-30
CN102904911B true CN102904911B (en) 2015-10-28

Family

ID=47576947

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110210459.0A Active CN102904911B (en) 2011-07-26 2011-07-26 The method of accesses network and device

Country Status (1)

Country Link
CN (1) CN102904911B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106534601B (en) * 2016-11-11 2019-07-02 天脉聚源(北京)传媒科技有限公司 A kind of method and device accessing network

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101459889A (en) * 2007-12-14 2009-06-17 日电(中国)有限公司 Method and terminal equipment for controlling network connection
CN101668322A (en) * 2009-09-17 2010-03-10 深圳华为通信技术有限公司 Network switching method of terminal and terminal equipment
CN101860586A (en) * 2009-04-10 2010-10-13 北京闻言科技有限公司 Method for conveniently selecting network connection mode at mobile phone client

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101459889A (en) * 2007-12-14 2009-06-17 日电(中国)有限公司 Method and terminal equipment for controlling network connection
CN101860586A (en) * 2009-04-10 2010-10-13 北京闻言科技有限公司 Method for conveniently selecting network connection mode at mobile phone client
CN101668322A (en) * 2009-09-17 2010-03-10 深圳华为通信技术有限公司 Network switching method of terminal and terminal equipment

Also Published As

Publication number Publication date
CN102904911A (en) 2013-01-30

Similar Documents

Publication Publication Date Title
CN103561414B (en) terminal and multi-channel data transmission method
CN101577901B (en) Wireless access platform and equipment upgrading management system and method thereof
CN101207924B (en) Method for processing multi-user connections in high speed grouped data terminal
CN110162314A (en) A kind of method, server, terminal, device and the storage medium of software upgrading management
CN103581966A (en) Real-time monitoring optimizing configuration method for smart phone
CN103369056A (en) Cooperating system and method of on-board system and portable terminal
CN103139253A (en) Method of achieving function of network adapter unloading, network adapter, host system and network device
CN105741106A (en) Selection method and device of NFC (Near Field Communication) payment way
CN105975347A (en) Application freezing method and system
CN105263181B (en) A kind of document down loading method and system of the mobile terminal based on WIFI
CN103257700A (en) Energy saving method and energy saving device for Android system
CN104540122A (en) Mobile communication method based on SIM (Subscriber Identity Module) card and equipment for running method
CN104793998B (en) Terminal system resource management method and device
CN102904911B (en) The method of accesses network and device
CN101742701A (en) Device, method and system for treating AT command
CN105138107A (en) Mobile terminal downloading method and device and mobile terminal
CN104462905A (en) Data processing method and device of operating systems and terminal
CN102420732B (en) Data service method in a home network, equipment and system
CN104469733B (en) The equipment of method of mobile communication and operation the method
CN103530159A (en) Upgrading method and system of wireless communication module
CN103856936A (en) Method and apparatus for updating time of mobile terminal
CN110650546A (en) File transmission method, device, storage medium and terminal
CN102158432A (en) Telecom operator network middleware device prior to being embedded to terminal operating system
CN106550021A (en) The method for pushing and device of PUSH message
CN104363574A (en) Mobile communication method based on dual-card and dual-standby terminal and equipment for operating mobile communication method

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