CN109152094A - Wireless network connecting method for terminal - Google Patents

Wireless network connecting method for terminal Download PDF

Info

Publication number
CN109152094A
CN109152094A CN201811317985.5A CN201811317985A CN109152094A CN 109152094 A CN109152094 A CN 109152094A CN 201811317985 A CN201811317985 A CN 201811317985A CN 109152094 A CN109152094 A CN 109152094A
Authority
CN
China
Prior art keywords
network
terminal
wifi
data
information
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.)
Granted
Application number
CN201811317985.5A
Other languages
Chinese (zh)
Other versions
CN109152094B (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.)
Shanghai Shangxiang Network Technology Co.,Ltd.
Original Assignee
Shanghai Lianshang Network Technology 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 Shanghai Lianshang Network Technology Co Ltd filed Critical Shanghai Lianshang Network Technology Co Ltd
Priority to CN201811317985.5A priority Critical patent/CN109152094B/en
Publication of CN109152094A publication Critical patent/CN109152094A/en
Priority to PCT/CN2019/115885 priority patent/WO2020094035A1/en
Application granted granted Critical
Publication of CN109152094B publication Critical patent/CN109152094B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/08Testing, supervising or monitoring using real traffic
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • H04W28/02Traffic management, e.g. flow control or congestion control
    • H04W28/10Flow control between communication endpoints
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/18Selecting a network or a communication service

Landscapes

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

Abstract

The embodiment of the present application discloses the wireless network connecting method for terminal.One specific embodiment of this method includes: to be in connection status in response to the data network of terminal, is monitored to the consumption state of data traffic;In response to monitoring that the consumption of current data flow reaches default amount, the network information of the triggering network connection application to obtain the wifi network near terminal;According to the network information of acquisition, wifi network is therefrom chosen using as target radio network, and linking objective wireless network.The embodiment carries out real-time monitoring, the connection status of adjustable wireless network by the consumption state to data traffic.So as to realize the use control of data traffic.Advantageously reduce or avoid in this way the excess of data traffic to use.It, can be with the networking requirements of effective guarantee user meanwhile by flexibly, rapidly switching to wifi network from data network.

Description

Wireless network connecting method for terminal
Technical field
The invention relates to field of computer technology, and in particular to the wireless network connecting method for terminal.
Background technique
With the fast development of Internet technology and intelligent terminal, more and more people get used to terminal to obtain net Network resource.Under normal conditions, people need to buy data traffic to realize the function of surfing the Net of terminal.
At the same time, popularizing with wifi (wireless fidelity, WiMAX) technology, in WLAN Terminal in range can also be by connecting wireless network, to realize its function of surfing the Net, so as to reduce making for data traffic With.
Summary of the invention
The embodiment of the present application proposes the wireless network connecting method for terminal.
In a first aspect, the embodiment of the present application proposes a kind of wireless network connecting method for terminal, comprising: in response to The data network of terminal is in connection status, is monitored to the consumption state of data traffic;In response to monitoring current data The consumption of flow reaches default amount, the network information of the triggering network connection application to obtain the wifi network near terminal; According to the network information of acquisition, wifi network is therefrom chosen using as target radio network, and linking objective wireless network.
In some embodiments, the consumption state of data traffic is monitored, comprising: terminal is grabbed by packet catcher The data packet of real-time tranception, it is for statistical analysis to the data packet of crawl, obtain the total size of data message;According to data message Total size, determine the consumption of the data traffic of terminal.
In some embodiments, if being equipped with the application tool for managing flow in terminal, disappear to data traffic Consumption state is monitored, comprising: passes through the consumption of the data traffic of application tool real-time monitoring terminal.
In some embodiments, the consumption state of data traffic is monitored, comprising: terminal is counted based on communication protocol The real-time traffic consumption data of each third-party application of upper installation, determines the consumption of the data traffic of terminal.
In some embodiments, the consumption state of data traffic is monitored, comprising: send and flow to carrier service end Inquiry request is measured, and receives the feedback information at carrier service end, wherein feedback information is for describing the current flow of terminal Consumption state;According to feedback information, the consumption of the data traffic of terminal is determined.
In some embodiments, the network information includes the identification information of wifi network;And the network information according to acquisition, Wifi network is therefrom chosen using as target radio network, and linking objective wireless network, comprising: receive user to acquisition The selection operation of the identification information of wifi network, using wifi network indicated by selection operation as target radio network, and will The network information of target radio network is sent to server-side;And the connection key that server-side is sent is received, according to connection key Linking objective wireless network.
In some embodiments, the network information of target radio network is sent to server-side, comprising: determine Target Wireless Whether network is the wifi network connected;If target radio network is not the wifi network connected, by Target Wireless net The network information of network is sent to server-side.
In some embodiments, according to the network information of acquisition, wifi network is therefrom chosen using as target radio network, And linking objective wireless network, comprising: the network information that will acquire is sent to server-side, and receives the response message of server-side, Wherein, response message includes the identification information and connection key of available wifi network;By the identification information institute in response message The wifi network of instruction is as target radio network, and the connection key linking objective wireless network in information according to response.
In some embodiments, triggering network connection application with obtain the wifi network near terminal the network information it Before, this method further include: determine whether the wifi network switch of terminal is in the open state;If wifi network switch is in closing State then opens wifi network switch.
Second aspect, the embodiment of the present application propose a kind of wireless network connection device for terminal, comprising: monitoring is single Member, the data network for being configured in response to terminal are in connection status, are monitored to the consumption state of data traffic;It obtains Unit is configured in response to monitor that the consumption of current data flow reaches default amount, triggering network connection application with Obtain the network information of the wifi network near terminal;Connection unit is configured to the network information according to acquisition, therefrom chooses Wifi network is using as target radio network, and linking objective wireless network.
The third aspect, the embodiment of the present application propose a kind of electronic equipment, comprising: one or more processors;Storage dress It sets, is stored thereon with one or more programs;When one or more programs are executed by one or more processors so that one or Multiple processors realize the method as described in any embodiment in above-mentioned first aspect.
Fourth aspect, the embodiment of the present application propose a kind of computer-readable medium, are stored thereon with computer program, In, the method as described in any embodiment in above-mentioned first aspect is realized when which is executed by processor.
The wireless network connecting method for terminal that the embodiment of the present application proposes is in connection in the data network of terminal When state, real-time monitoring can be carried out to the consumption state of data traffic.And monitoring that the consumption of current data flow reaches In the case where default amount, network connection application thereon can be triggered.So as to obtain the wifi network near terminal The network information.And then wifi network can be therefrom chosen using as target radio network, and connect the target radio network.? That is carrying out real-time monitoring, the connection status of adjustable wireless network by the consumption state to data traffic.So as to To realize the use control of data traffic.Advantageously reduce or avoid in this way the excess of data traffic to use, to reduce user Economic expense.It, can be with effective guarantee user's meanwhile by flexibly, rapidly switching to wifi network from data network Networking requirements.
Detailed description of the invention
By reading a detailed description of non-restrictive embodiments in the light of the attached drawings below, the application's is other Feature, objects and advantages will become more apparent upon:
Fig. 1 is that one embodiment of the application can be applied to exemplary system architecture figure therein;
Fig. 2 is the flow chart according to one embodiment of the wireless network connecting method for terminal of the application;
Fig. 3 is the flow chart according to second embodiment of the wireless network connecting method for terminal of the application;
Fig. 4 is the flow chart according to the third embodiment of the wireless network connecting method for terminal of the application;
Fig. 5 is the flow chart according to the 4th embodiment of the wireless network connecting method for terminal of the application;
Fig. 6 is adapted for the structural schematic diagram for the computer system for realizing the electronic equipment of the embodiment of the present application.
Specific embodiment
The application is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched The specific embodiment stated is used only for explaining related invention, rather than the restriction to the invention.It also should be noted that in order to Convenient for description, part relevant to related invention is illustrated only in attached drawing.
It should be noted that in the absence of conflict, the features in the embodiments and the embodiments of the present application can phase Mutually combination.The application is described in detail below with reference to the accompanying drawings and in conjunction with the embodiments.
Fig. 1 is shown can be using the exemplary system of the wireless network connecting method for terminal of the embodiment of the present application Framework 100.
As shown in Figure 1, system architecture 100 may include terminal 101,102,103, network 104,105 and server-side 106. Network 104 can be to provide the medium of communication link between terminal 101,102,103.Network 105 can be in terminal 101, the medium of communication link is provided between 102,103 and server-side 106.Network 104,105 may include various connection types, Such as wired, wireless communication link or fiber optic cables etc..
Terminal 101,102,103 can be used between user to interact by network 104, to receive or send message Deng.Meanwhile user can be interacted by network 105 with server-side 106 with using terminal 101,102,103, to obtain letter Breath etc..Various client applications, such as the application of network connection class, traffic management class can be installed in terminal 101,102,103 Using the application of, video class, browser and immediate communication tool etc..
It is in connection status in the data network of terminal 101,102,103, and wifi network is in the feelings of not-connected status Under condition, user can use the various applications that data traffic is installed in using terminal.Meanwhile terminal 101,102,103 can be with Real-time monitoring is carried out to the consumption state of data traffic.If the consumption of current data flow reaches default amount, can touch The network connection application of hair thereon, to obtain the network information of the wifi network near it.And it can therefrom choose wifi network Using as target radio network, to connect the target radio network.
Here terminal 101,102,103 can be hardware, be also possible to software.When terminal 101,102,103 is hardware When, it can be the various electronic equipments with network connecting function, including but not limited to smart phone, tablet computer, wearable Equipment, E-book reader, MP3 player (Moving Picture Experts Group Audio Layer III, dynamic Image expert's compression standard audio level 3), pocket computer on knee and desktop computer etc..When terminal 101,102,103 When for software, it may be mounted in above-mentioned cited electronic equipment.Its may be implemented into multiple softwares or software module (such as For providing Distributed Services), single software or software module also may be implemented into.It is not specifically limited herein.
Server-side 106 can be to provide the server-side of various services, such as can be and install in terminal 101,102,103 Various applications provide support background server.The wifi network that background server can send terminal 101,102,103 Connection request is analyzed.And analysis result (the connection key of such as wifi network) can be sent to terminal.In this way, terminal can To realize the connection of wifi network using the connection key, to advantageously reduce the use of data traffic.
Here server-side 106 equally can be hardware, be also possible to software.When server-side 106 is hardware, Ke Yishi The Distributed Services end cluster of ready-made multiple server-side compositions, also may be implemented into single server-side.When server-side 106 is software When, multiple softwares or software module (such as providing Distributed Services) may be implemented into, single software also may be implemented into Or software module.It is not specifically limited herein.
It should be noted that generally can be by for the wireless network connecting method of terminal provided by the embodiment of the present application Terminal 101,102,103 executes.
It should be understood that the number of terminal, network and server-side in Fig. 1 is only schematical.It, can according to needs are realized With any number of terminal, network and server-side.
With continued reference to Fig. 2, it illustrates first realities according to the wireless network connecting method for terminal of the application Apply the process 200 of example.The wireless network connecting method may comprise steps of:
Step 201, it is in connection status in response to data network, the consumption state of data traffic is monitored.
In the present embodiment, connect if the data network of electronic equipment (such as terminal shown in FIG. 1 101,102,103) is in State is connect, then real-time monitoring can be carried out to the consumption state of data traffic.Wherein, data network typically refers to mobile network. It such as may include that (but being not limited to) is at least one below: 3G (No.3 generation mobile communication system) network, 4G (forth generation mobile communication System) network and 5G (the 5th generation mobile communcations system) network etc..
It should be noted that the wifi network of electronic equipment is in not-connected status at this time.That is, electronic equipment needs Data traffic is used to be communicated.Wherein, wifi (Wireless Fidelity) network typically refers to be different from data network Connec-tionless network.It such as may include the WLAN of (but being not limited to) based on IEEE 802.11b standard.
It is understood that in existing address card (such as phonecard, flow card), the set meal handled according to user is not Together, the data traffic for including in address card is also different.Such as can monthly there be the data traffic of 1GB in address card, or daily There can be the data traffic etc. of 100MB.
In the present embodiment, the consumption state of data traffic is commonly used for the Expenditure Levels of description data traffic.Such as It may include electronic equipment consumed data traffic in preset time period (such as a calendar month, one day or one hour) And/or remaining data traffic.Herein, electronic equipment can realize the consumption state of data traffic in several ways Monitoring.
In some optionally implementations of the present embodiment, electronic equipment can be by packet catcher, to grab in fact When the data packet received and dispatched.So as to for statistical analysis to the data packet of crawl, to obtain the total size of data message.In turn According to the total size of data message, the consumption of data flow can be determined.Wherein, packet catcher and grasp mode are at this It is not intended to limit in application.Such as tcpdump packet catcher is commonly used in android system.
It is understood that electronic equipment (such as mobile phone) is when accessing internet by the network of operator, operator one As can replace electronic equipment forwarding data packets.The total size (byte number) of data message is the data flow that electronic equipment uses Amount.Here data message may include the message of electronic equipment uplink and downlink (sending and receiving).Since data message uses IP (Internet Protocol) agreement transmission, so the data traffic that operator calculates is typically all the datagram for including IP Literary size.
Optionally, if being equipped with the application tool for managing flow on electronic equipment, electronic equipment can be by this Application tool carrys out the consumption of Real-time Monitoring Data flow.The use demand that can satisfy different user in this way helps to expand The scope of application of method.
Further, electronic equipment can also be based on communication protocol, to count the reality for each third-party application installed thereon Shi Liuliang consumption data, so that it is determined that the consumption of data flow.As an example, android system generally provides TCP The statistical function of (Transmission Control Protocol, transmission control protocol) transmitting-receiving length.And it is general application with Communication between background server is all based on Transmission Control Protocol.Therefore, it can use the statistical function to count the number of itself consumption According to flow.Can further enrich in this way and improve monitoring data flow consumption state mode.
It should be noted that the statistical function that android system provides often is counted according to application latitude, i.e., often A application consumed data traffic.After getting the real-time traffic consumption data of each application, electronic equipment can determine it The consumption of itself total data traffic.
In application scenes, electronic equipment can also be to carrier service end transmitted traffic inquiry request.And it can be with Receive the feedback information corresponding with flow inquiry request that carrier service end is sent.Wherein, feedback information can be used for describing The current flow consumption state of electronic equipment.Such as feedback information may include at least one of following: discharge pattern is (such as normal packet Month flow, video orientation exempt from flow or implement payment flow etc.), residual flow or flow purchaser record etc..In this way, electronic equipment It can be according to feedback information, to determine the consumption of its data traffic.
It should be noted that usually may include in above-mentioned flow inquiry request address card used in electronic equipment (such as SIM card (Subscriber Identity Module, client identification module)) corresponding phone number.
Step 202, in response to monitoring that the consumption of current data flow reaches default amount, triggering network connection application To obtain the network information of neighbouring wifi network.
It in the present embodiment, can be with if the consumption of electronic equipment monitoring to current data flow reaches default amount Triggering network connection application.So as to obtain the wifi network of (i.e. current location is located in wifi network coverage area) near it The network information of network.Wherein, default amount can be configured according to the actual situation.Such as default amount can (but being not limited to) It is following at least one: the upper limit amount of 90% or daily flow consumption etc. of total flow amount, total flow amount monthly.With The default amount can be arranged in family in the system of electronic equipment or in above-mentioned application tool.
In the present embodiment, network connection application can be the application for realizing wifi network connection.Such as it can be The third party that installs on electronic equipment is connected to the network application, and (such as wifi network is opened for the application for being also possible in electronic apparatus system It closes).Here the network information can be used for describing the relevant information of wifi network.Such as may include (but being not limited to) with down toward One item missing: whether the title of wifi network, signal strength are provided with connection key, connection key etc..
It is understood that the wifi network of electronic equipment is in the reason of not-connected status, it may be possible to electronic equipment Network connection application is in close state.It is not turned on the function of connection wifi network.It could also be possible that the net of electronic equipment Network connection application is in the open state, but without connection wifi network, or nearby without available wifi network etc..Therefore, Above-mentioned trigger action is not intended to limit in this application.Such as it can be electronic equipment and open the network connection application not yet run. The network connection application of running background is opened into front end operation in another example can be electronic equipment.
Step 203, according to the network information of acquisition, wifi network is therefrom chosen using as target radio network, and connect Target radio network.
In the present embodiment, electronic equipment can therefrom choose wifi network according to the network information obtained in step 202 Using as target radio network.And the connection key of the available target radio network of electronic equipment, to connect the target Wireless network.Electronic equipment can be reduced or avoided in this way and continue to use data traffic.To help that data are reduced or avoided The excess of flow uses, to reduce the expense of exceeding traffic amount generation.
Here selection operation can be electronic equipment execution, be also possible to what user or other equipment executed.In addition, Connection key can be that electronic equipment is locally pre-stored, be also possible to user's input, can also be electronic equipment from its It is obtained in his equipment.Under normal conditions, the network information for the wifi network that electronic equipment can will acquire is presented to the user. In this way, the wifi network that user connects needed for can consulting and/or choosing.
Wireless network connecting method provided in this embodiment for terminal is in connection status in the data network of terminal When, real-time monitoring can be carried out to the consumption state of data traffic.And monitoring that the consumption of current data flow reaches pre- If in the case where amount, network connection application thereon can be triggered.So as to obtain the net of the wifi network near terminal Network information.And then wifi network can be therefrom chosen using as target radio network, and connect the target radio network.Namely It says, real-time monitoring, the connection status of adjustable wireless network is carried out by the consumption state to data traffic.So as to reality The use control of existing data traffic.Advantageously reduce or avoid in this way the excess of data traffic to use, to reduce the warp of user Ji expense.It, can be with the networking of effective guarantee user meanwhile by flexibly, rapidly switching to wifi network from data network Demand.
With further reference to Fig. 3, it illustrates according to second of the wireless network connecting method for terminal of the application The process 300 of embodiment.The wireless network connecting method may comprise steps of:
Step 301, it is in connection status in response to data network, the consumption state of data traffic is monitored.
In the present embodiment, connect if the data network of electronic equipment (such as terminal shown in FIG. 1 101,102,103) is in State is connect, then real-time monitoring can be carried out to the consumption state of data traffic.It specifically may refer to the step 201 of Fig. 2 embodiment In associated description, details are not described herein again.
Step 302, in response to monitoring that the consumption of current data flow reaches default amount, triggering network connection application To obtain the network information of neighbouring wifi network.It may refer to the associated description in the step 202 of Fig. 2 embodiment, herein not It repeats again.
In the present embodiment, network connection application may include that third party is connected to the network application.That is, being set in electronics In the case where being above equipped with third party's network connection application, electronic equipment can trigger the third party and be connected to the network application.And And the network information of neighbouring wifi network can be obtained by it.Wherein, the network information may include the mark of wifi network Know information.Here identification information can be used for uniquely indicating wifi network.It may include the characters such as number, letter, symbol At least one of.Such as identification information can (but being not limited to) be SSID (Service Set Identifier, services set mark Know, i.e. the title of wireless network) or BSSID (Basic Service Set) etc..
It should be noted that in order to get the network information of wifi network, electronic equipment also needs to guarantee thereon Wifi network switch it is in the open state.That is, application is connected to the network in triggering third party, to obtain neighbouring wifi Before the network information of network, electronic equipment can determine whether the switch of wifi network thereon is in the open state.If wifi Network switching is in close state, then can open wifi network switch.
Step 303, reception user, will be indicated by selection operation to the selection operation of the identification information of the wifi network of acquisition Wifi network be sent to server-side as target radio network, and by the network information of target radio network.
In the present embodiment, the network information for the wifi network that electronic equipment can will acquire is presented to the user, with prompt The wifi network that user connects needed for choosing.The mark of the wifi network of acquisition is believed in this way, electronic equipment can receive user The selection operation of breath.And it can be using the wifi network indicated by selection operation as target radio network.And electronic equipment It can be connected to the network and be applied by third party, it is (such as shown in FIG. 1 that the network information of target radio network is sent to server-side Server-side 106).In this way, server-side can use the prior art or other modes, the connection to determine target radio network is close Key, and return to electronic equipment.Details are not described herein again.
It is understood that under normal conditions, electronic equipment can identification information to the wifi network connected and Connection key is stored.Therefore, in order to improve the joint efficiency of network, optionally, electronic equipment can determine target first Whether wireless network is the wifi network connected.It, can be according to depositing if target radio network is the wifi network connected The connection key of storage connects the target radio network.It, can be by mesh if target radio network is not the wifi network connected The network information of mark wireless network is sent to server-side.
In addition, presentation mode here is not intended to limit in this application.Such as application can be connected to the network in third party The network information is shown to user by application interface.In another example the network information can be shown in the page that wifi network switchs User.And/or the network information can be presented to the user by way of voice broadcast.
Step 304, the connection key that server-side is sent is received, according to connection key linking objective wireless network.
In the present embodiment, electronic equipment can pass through third party's net when receiving the connection key of server-side transmission Network connection application, according to the connection key linking objective wireless network, to reduce the consumption of data traffic.It is understood that It is that electronic equipment, can also identification information to target radio network and company in the case where being successfully connected target radio network Key is connect to be stored.
Wireless network connecting method provided in this embodiment for terminal, in the consumption for monitoring current data flow In the case where reaching default amount, application can be connected to the network by the third party installed in triggering terminal, it is attached to obtain its The network information of close wireless network.So as to realize the connection of wifi network selected by user, data are advantageously reduced The use of flow.The process that can enrich and improve wireless network connecting method in this way, the use that can satisfy different user need It asks, facilitates the use scope of expansion method.
In application scenes, the above-mentioned network information also may include the connection key of wifi network.At this point, electronics is set It is standby when receiving selection operation of the user to the identification information of the wifi network of acquisition, can will be indicated by selection operation Wifi network is as target radio network.And it can be come real according to the connection key in the network information of target radio network The connection of existing target radio network.The joint efficiency of network is helped to improve in this way.And even if electronic equipment and server-side it Between communication go wrong, the connection of wifi network will not be had an impact.
Optionally, electronic equipment also can replace the selection that user carries out wifi network.Such as electronic equipment can pass through Third party is connected to the network application, chooses to the identification information of the wifi network of acquisition.And it can will choose automatically Wifi network is as target radio network.And then the network information of target radio network is sent to server-side, to obtain its company Connect key.Or connection is realized according to the connection key in the network information.It can simplify or reduce in this way user's operation, the company of raising Connect efficiency.Meanwhile the above process can be in the operation of electronic equipment rear end.In this way the operation of front end will not be operated to generate and done Influence is disturbed, user experience is helped to improve.
It should be noted that above-mentioned selection mode is not intended to limit in this application.Such as electronic equipment can be using (but not It is limited to) at least one mode below: choose that signal strength is stronger, it is more stable to choose signal, chooses network faster, chooses The more or less wifi of equipment closer apart from electronic equipment, that the connected number of selection is more, selection is current connected Network.Herein, electronic equipment can obtain above-mentioned data from the network information.
Fig. 4 is referred to, it illustrates the thirds of the wireless network connecting method for terminal according to the application to implement The process 400 of example.The wireless network connecting method may comprise steps of:
Step 401, it is in connection status in response to data network, the consumption state of data traffic is monitored.It can be with Referring to the associated description in the step 301 of Fig. 3 embodiment, details are not described herein again.
Step 402, in response to monitoring that the consumption of current data flow reaches default amount, triggering network connection application To obtain the network information of neighbouring wifi network.Here the network information may include at least one of following: wifi network Identification information, signal strength, stability or network speed etc..It may refer to the associated description in the step 302 of Fig. 3 embodiment, herein It repeats no more.
Step 403, the network information that will acquire is sent to server-side, and receives the response message of server-side.
In the present embodiment, electronic equipment can also be connected to the network by third party and be applied, the network information hair that will acquire Give server-side (such as server-side 106 shown in FIG. 1).In this way, server-side can therefrom be chosen available according to the network information Wifi network.The wifi network or signal strength that such as can determine connection key are compared with the strong and preferable wifi network of stability. And server-side can determine the connection key of available wifi network.Electronic equipment is returned to generate response message.Its In, response message may include the identification information and connection key of available wifi network.In this way, electronic equipment can receive this Response message.
Step 404, using wifi network indicated by the identification information in response message as target radio network, and according to Connection key linking objective wireless network in response message.
In the present embodiment, electronic equipment can be by wifi indicated by the identification information of the wifi network in response message Network is as target radio network.And it can be connected to the network and be applied by third party, according to response the wifi network in information Connection key, to connect the target radio network.
The wireless network connecting method for terminal that the present embodiment proposes, in the consumption for monitoring current data flow In the case where reaching default amount, application can be connected to the network by the third party installed in triggering terminal, it is attached to obtain its The network information of close wifi network.And the network information can be sent to server-side, to choose available wifi network.To Realize the connection of available wifi network.The process of wireless network connecting method is not only further enriched in this way, expands method Use scope.It can also reduce or simplify the operation of user.It also contributes to that the wireless network of connection is made to be more in line with user's Demand.
With further reference to Fig. 5, it illustrates according to the 4th of the wireless network connecting method for terminal of the application The process 500 of embodiment.The wireless network connecting method may comprise steps of:
Step 501, it is in connection status in response to data network, the consumption state of data traffic is monitored.It can be with Associated description in the step 201 of embodiment referring to fig. 2, details are not described herein again.
Step 502, in response to monitoring that the consumption of current data flow reaches default amount, triggering network connection application To obtain the network information of neighbouring wifi network.It may refer to the associated description in the step 202 of Fig. 2 embodiment, herein not It repeats again.
Herein, network connection application may include the application in electronic apparatus system.The application can be used to implement The connection of wifi network, as wifi network switchs.In this way, electronic equipment can be switched by wifi network, to obtain near it Wifi network the network information.Wherein, the network information may include the identification information of wifi network.
Step 503, it whether determines in the identification information of the wifi network obtained comprising the mark of the wifi network connected Information.
In the present embodiment, in order to improve joint efficiency, electronic equipment can be by the wifi network of storage connected Identification information is matched in the identification information of the wifi network of acquisition.It whether may thereby determine that wherein comprising connecting Wifi network identification information.If the identification information comprising the wifi network connected, electronic equipment can continue to execute Step 504.
Step 504, using the wifi network connected as target radio network.
In the present embodiment, if the mark comprising the wifi network connected in the identification information of the wifi network obtained is believed It ceases, then included in the wifi network that electronic equipment can will acquire, and the wifi network connected is as Target Wireless net Network.
Optionally, the above-mentioned network information can also include at least one of the following: the signal strength of wifi network, stability or Network speed.At this point, if containing at least two the identification information of the wifi network connected in the identification information of the wifi network obtained, Then electronic equipment can determine target radio network by way of following at least one: the wifi such as connected at least two It, can be using the stronger wifi network of signal strength as target radio network in network;Or it can be better by stability Wifi network is as target radio network;It again or can be using the faster wifi network of network speed as target radio network.In this way It is more in line with practical situations, it helps target radio network is made more to meet the use demand of user.
Step 505, according to the connection key linking objective wireless network of storage.
In the present embodiment, electronic equipment can be searched corresponding with target radio network in the connection key of storage Connect key.To be switched by wifi network, carry out linking objective wireless network according to the connection key.
It is understood that above-mentioned connection procedure can be the running background in electronic equipment.In this way to user before End operation will not generate interference and influence, help to improve the usage experience of user.In application scenes, if obtain Do not include the identification information of the wifi network connected in the identification information of wifi network, the company of wifi network is such as set for the first time It connects, then the page that electronic equipment can be switched in wifi network, the network information for the wifi network that will acquire is presented to the user.This The wifi network that sample user connects needed for can therefrom choosing.Alternatively, in the case where being equipped with third party's network connection application, Electronic equipment can also open third party thereon and be connected to the network application, to realize the connection of wifi network.Can specifically it join See the associated description in Fig. 3 and Fig. 4 embodiment, details are not described herein again.
Wireless network connecting method provided in this embodiment for terminal, in the consumption for monitoring current data flow In the case where reaching default amount, it can be switched by the wifi network in triggering terminal, to obtain the wifi network near it The network information.To realize the connection of the wifi network connected, and then reduce the use of data traffic.It in this way can be more Process that is abundant and improving wireless network connecting method.
It is understood that in the various embodiments described above, the selection of the acquisition process, target radio network of the network information The connection procedure of process and target radio network can be by the third party's network connection and/or wifi network on electronic equipment Network switch is performed.It is not intended to limit in this application.Such as in some application systems, third party's network application is available The network information of neighbouring wifi network.And these network informations can be presented in the page of wifi network switch, and carry out target The selection of wireless network.Third party's network application later can carry out the connection of target radio network.
Referring to Fig. 6, it is (such as shown in FIG. 1 that it illustrates the electronic equipments for being suitable for being used to realize the embodiment of the present application Terminal 101,102,103) structural schematic diagram of computer system 600.Electronic equipment shown in Fig. 6 is only an example, Should not function to the embodiment of the present application and use scope bring any restrictions.
As shown in fig. 6, computer system 600 includes central processing unit (CPU) 601, it can be read-only according to being stored in Program in memory (ROM) 602 or be loaded into the program in random access storage device (RAM) 603 from storage section 608 and Execute various movements appropriate and processing.In RAM 603, also it is stored with system 600 and operates required various programs and data. CPU 601, ROM 602 and RAM 603 are connected with each other by bus 604.Input/output (I/O) interface 605 is also connected to always Line 604.
I/O interface 605 is connected to lower component: the importation including touch screen, key, microphone, camera etc. 606;Output par, c 607 including liquid crystal display (LCD) and/or loudspeaker etc.;Storage section including hard disk etc. 608;And the communications portion 609 of the network interface card including LAN card, modem etc..Communications portion 609 is via all As the network of internet executes communication process.Driver 610 is also connected to I/O interface 605 as needed.Detachable media 611, Such as disk, CD, magneto-optic disk, semiconductor memory etc. are mounted on as needed on driver 610, in order to from thereon The computer program of reading is mounted into storage section 608 as needed.
Particularly, in accordance with an embodiment of the present disclosure, it may be implemented as computer above with reference to the process of flow chart description Software program.For example, embodiment of the disclosure includes a kind of computer program product comprising be carried on computer-readable medium On computer program, which includes the program code for method shown in execution flow chart.In such reality It applies in example, which can be downloaded and installed from network by communications portion 609, and/or from detachable media 611 are mounted.When the computer program is executed by central processing unit (CPU) 601, limited in execution the present processes Above-mentioned function.It should be noted that the computer-readable medium of the application can be computer-readable signal media or calculating Machine readable storage medium storing program for executing either the two any combination.Computer readable storage medium for example can be --- but it is unlimited In system, device or the device of --- electricity, magnetic, optical, electromagnetic, infrared ray or semiconductor, or any above combination.It calculates The more specific example of machine readable storage medium storing program for executing can include but is not limited to: have the electrical connection, portable of one or more conducting wires Formula computer disk, hard disk, random access storage device (RAM), read-only memory (ROM), erasable programmable read only memory (EPROM or flash memory), optical fiber, portable compact disc read-only memory (CD-ROM), light storage device, magnetic memory device or The above-mentioned any appropriate combination of person.In this application, computer-readable medium, which can be, any includes or storage program has Shape medium, the program can be commanded execution system, device or device use or in connection.And in the application In, computer-readable signal media may include in a base band or as carrier wave a part propagate data-signal, wherein Carry computer-readable program code.The data-signal of this propagation can take various forms, including but not limited to electric Magnetic signal, optical signal or above-mentioned any appropriate combination.Computer-readable signal media can also be computer-readable and deposit Any computer-readable medium other than storage media, the computer-readable medium can send, propagate or transmit for by referring to Enable execution system, device or device use or program in connection.The program for including on computer-readable medium Code can transmit with any suitable medium, including but not limited to: wireless, electric wire, optical cable, RF etc. or above-mentioned times The suitable combination of meaning.
Flow chart and block diagram in attached drawing are illustrated according to the system of the various embodiments of the application, method and computer journey The architecture, function and operation in the cards of sequence product.In this regard, each box in flowchart or block diagram can generation A part of one module, program segment or code of table, a part of the module, program segment or code include one or more use The executable instruction of the logic function as defined in realizing.It should also be noted that in some implementations as replacements, being marked in box The function of note can also occur in a different order than that indicated in the drawings.For example, two boxes succeedingly indicated are actually It can be basically executed in parallel, they can also be executed in the opposite order sometimes, and this depends on the function involved.Also it to infuse Meaning, the combination of each box in block diagram and or flow chart and the box in block diagram and or flow chart can be with holding The dedicated hardware based system of functions or operations as defined in row is realized, or can use specialized hardware and computer instruction Combination realize.
Being described in unit involved in the embodiment of the present application can be realized by way of software, can also be by hard The mode of part is realized.Described unit also can be set in the processor, for example, can be described as: a kind of processor packet Include monitoring unit, acquiring unit and connection unit.Wherein, the title of these units is not constituted under certain conditions to the unit The restriction of itself, such as monitoring unit are also described as " unit being monitored to the consumption state of data traffic ".
As on the other hand, present invention also provides a kind of computer-readable medium, which be can be Included in electronic equipment described in above-described embodiment;It is also possible to individualism, and without in the supplying electronic equipment. For example, above-mentioned computer-readable medium carries one or more program, when said one or multiple programs are by the electronics When equipment executes, so that the electronic equipment: the data network responded thereon is in connection status, to the consumption shape of data traffic State is monitored;In response to monitoring that the consumption of current data flow reaches default amount, triggering network connection application is to obtain Take the network information of the wifi network near it;According to the network information of acquisition, therefrom choose wifi network using as target without Gauze network, and linking objective wireless network.
Above description is only the preferred embodiment of the application and the explanation to institute's application technology principle.Those skilled in the art Member is it should be appreciated that invention scope involved in the application, however it is not limited to technology made of the specific combination of above-mentioned technical characteristic Scheme, while should also cover in the case where not departing from foregoing invention design, it is carried out by above-mentioned technical characteristic or its equivalent feature Any combination and the other technical solutions formed.Such as features described above has similar function with (but being not limited to) disclosed herein Can technical characteristic replaced mutually and the technical solution that is formed.

Claims (11)

1. a kind of wireless network connecting method for terminal, comprising:
It is in connection status in response to the data network of terminal, the consumption state of data traffic is monitored;
In response to monitoring that the consumption of current data flow reaches default amount, triggering network connection application is to obtain the end The network information of wifi network near end;
According to the network information of acquisition, wifi network is therefrom chosen using as target radio network, and connect the Target Wireless Network.
2. according to the method described in claim 1, wherein, the consumption state to data traffic is monitored, comprising:
The data packet of the terminal real-time tranception is grabbed by packet catcher, it is for statistical analysis to the data packet of crawl, it obtains The total size of data message;According to the total size of data message, the consumption of the data traffic of the terminal is determined.
3. according to the method described in claim 1, wherein, if being equipped with the application tool for managing flow in the terminal, Then the consumption state to data traffic is monitored, comprising:
Pass through the consumption of the data traffic of terminal described in the application tool real-time monitoring.
4. according to the method described in claim 1, wherein, the consumption state to data traffic is monitored, comprising:
The real-time traffic consumption data that each third-party application installed in the terminal is counted based on communication protocol, determines the end The consumption of the data traffic at end.
5. according to the method described in claim 1, wherein, the consumption state to data traffic is monitored, comprising:
To carrier service end transmitted traffic inquiry request, and receive the feedback information at the carrier service end, wherein institute Feedback information is stated for describing the current flow consumption state of terminal;According to the feedback information, the data of the terminal are determined The consumption of flow.
6. according to the method described in claim 1, wherein, the network information includes the identification information of wifi network;And
The network information according to acquisition therefrom chooses wifi network using as target radio network, and connects the target Wireless network, comprising:
User is received to the selection operation of the identification information of the wifi network of acquisition, by wifi network indicated by the selection operation Network is sent to server-side as target radio network, and by the network information of the target radio network;And receive the clothes The connection key that business end is sent connects the target radio network according to the connection key.
7. according to the method described in claim 6, wherein, the network information by the target radio network is sent to service End, comprising:
Determine whether the target radio network is the wifi network connected;If the target radio network did not connected The network information of the target radio network is then sent to server-side by wifi network.
8. according to the method described in claim 1, wherein, the network information according to acquisition, therefrom choose wifi network with As target radio network, and connect the target radio network, comprising:
The network information that will acquire is sent to server-side, and receives the response message of the server-side, wherein the response message Identification information and connection key including available wifi network;By wifi indicated by the identification information in the response message Network connects the target radio network as target radio network, and according to the connection key in the response message.
9. any method in -8 according to claim 1, wherein the triggering network connection is applied to obtain the terminal Before the network information of neighbouring wifi network, the method also includes:
Determine whether the wifi network switch of the terminal is in the open state;If wifi network switch is in close state, Open wifi network switch.
10. a kind of electronic equipment, comprising:
One or more processors;
Storage device is stored thereon with one or more programs;
When one or more of programs are executed by one or more of processors, so that one or more of processors are real The now method as described in any in claim 1-9.
11. a kind of computer-readable medium, is stored thereon with computer program, wherein the computer program is held by processor The method as described in any in claim 1-9 is realized when row.
CN201811317985.5A 2018-11-07 2018-11-07 Wireless network connection method for terminal Active CN109152094B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201811317985.5A CN109152094B (en) 2018-11-07 2018-11-07 Wireless network connection method for terminal
PCT/CN2019/115885 WO2020094035A1 (en) 2018-11-07 2019-11-06 Wireless network connection method for terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811317985.5A CN109152094B (en) 2018-11-07 2018-11-07 Wireless network connection method for terminal

Publications (2)

Publication Number Publication Date
CN109152094A true CN109152094A (en) 2019-01-04
CN109152094B CN109152094B (en) 2021-10-22

Family

ID=64807864

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811317985.5A Active CN109152094B (en) 2018-11-07 2018-11-07 Wireless network connection method for terminal

Country Status (2)

Country Link
CN (1) CN109152094B (en)
WO (1) WO2020094035A1 (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109842759A (en) * 2019-01-21 2019-06-04 周晓菲 Network service operation control platform
WO2020094035A1 (en) * 2018-11-07 2020-05-14 上海连尚网络科技有限公司 Wireless network connection method for terminal
CN113170305A (en) * 2019-01-09 2021-07-23 深圳市欢太科技有限公司 Application downloading and installing method and related product
CN113766543A (en) * 2021-09-14 2021-12-07 青岛中科英泰商用系统股份有限公司 Method, system, electronic device and medium for improving WiFi stability
CN114143855A (en) * 2021-12-21 2022-03-04 西安易朴通讯技术有限公司 Network automatic connection method and device
CN114666857A (en) * 2022-04-27 2022-06-24 中国电信股份有限公司 Communication networking control method, device, medium and electronic equipment
CN116016239A (en) * 2023-01-03 2023-04-25 重庆长安汽车股份有限公司 Service interface testing method, device, equipment and storage medium

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112929825B (en) * 2021-03-18 2022-08-05 惠州Tcl移动通信有限公司 Terminal WiFi control method and device, storage medium and mobile terminal
CN115002186B (en) * 2022-05-17 2024-07-09 深信服科技股份有限公司 Network information acquisition method and device, electronic equipment and readable storage medium
CN118102351B (en) * 2024-04-18 2024-07-09 深圳市迅优电子科技有限公司 Mobile signal enhancement method and system based on multi-parameter dynamic adjustment strategy

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102448187A (en) * 2011-10-29 2012-05-09 华为终端有限公司 Method and terminal capable of automatically accessing Wi-Fi (Wireless Fidelity) network
CN102984812A (en) * 2012-11-22 2013-03-20 中兴通讯股份有限公司 Method for connecting terminal with wireless local area network (WLAN) and terminal
CN104105167A (en) * 2013-04-15 2014-10-15 中兴通讯股份有限公司 Terminal Wi-Fi hotspot access processing method and device
CN104144415A (en) * 2014-07-10 2014-11-12 深圳市螺光科技有限公司 Method for connecting WiFi access point and mobile communication terminal
CN104918298A (en) * 2014-03-10 2015-09-16 中国移动通信集团广东有限公司 Network connection control method and apparatus, and mobile terminal
WO2016053651A1 (en) * 2014-09-29 2016-04-07 Qualcomm Incorporated Out-of-service scan optimization using broadcast neighbor list information in wireless communications
CN106231579A (en) * 2016-07-27 2016-12-14 宇龙计算机通信科技(深圳)有限公司 The acquisition methods of Internet resources, the acquisition device of Internet resources and terminal
WO2017087141A1 (en) * 2015-11-16 2017-05-26 Qualcomm Incorporated Latency enhancement in a wireless communication system
EP3179780A1 (en) * 2014-08-26 2017-06-14 Huawei Technologies Co. Ltd. Network communication method and apparatus

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8750188B2 (en) * 2010-12-01 2014-06-10 Deutsche Telekom Ag System support for accessing and switching among multiple wireless interfaces on mobile devices
CN102438289A (en) * 2011-12-26 2012-05-02 中国电信股份有限公司 Wireless fidelity (Wi-Fi) flow guide method and device as well as mobile terminal
CN103686899A (en) * 2012-09-25 2014-03-26 东莞宇龙通信科技有限公司 A switching method between a mobile data service network and a wifi network and a mobile terminal thereof
CN109152094B (en) * 2018-11-07 2021-10-22 上海尚往网络科技有限公司 Wireless network connection method for terminal

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102448187A (en) * 2011-10-29 2012-05-09 华为终端有限公司 Method and terminal capable of automatically accessing Wi-Fi (Wireless Fidelity) network
CN102984812A (en) * 2012-11-22 2013-03-20 中兴通讯股份有限公司 Method for connecting terminal with wireless local area network (WLAN) and terminal
CN104105167A (en) * 2013-04-15 2014-10-15 中兴通讯股份有限公司 Terminal Wi-Fi hotspot access processing method and device
CN104918298A (en) * 2014-03-10 2015-09-16 中国移动通信集团广东有限公司 Network connection control method and apparatus, and mobile terminal
CN104144415A (en) * 2014-07-10 2014-11-12 深圳市螺光科技有限公司 Method for connecting WiFi access point and mobile communication terminal
EP3179780A1 (en) * 2014-08-26 2017-06-14 Huawei Technologies Co. Ltd. Network communication method and apparatus
WO2016053651A1 (en) * 2014-09-29 2016-04-07 Qualcomm Incorporated Out-of-service scan optimization using broadcast neighbor list information in wireless communications
WO2017087141A1 (en) * 2015-11-16 2017-05-26 Qualcomm Incorporated Latency enhancement in a wireless communication system
CN106231579A (en) * 2016-07-27 2016-12-14 宇龙计算机通信科技(深圳)有限公司 The acquisition methods of Internet resources, the acquisition device of Internet resources and terminal

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020094035A1 (en) * 2018-11-07 2020-05-14 上海连尚网络科技有限公司 Wireless network connection method for terminal
CN113170305A (en) * 2019-01-09 2021-07-23 深圳市欢太科技有限公司 Application downloading and installing method and related product
CN113170305B (en) * 2019-01-09 2023-02-28 深圳市欢太科技有限公司 Application downloading and installing method and related product
CN109842759A (en) * 2019-01-21 2019-06-04 周晓菲 Network service operation control platform
CN113766543A (en) * 2021-09-14 2021-12-07 青岛中科英泰商用系统股份有限公司 Method, system, electronic device and medium for improving WiFi stability
CN113766543B (en) * 2021-09-14 2024-04-30 青岛中科英泰商用系统股份有限公司 Method, system, electronic equipment and medium for improving WiFi stability
CN114143855A (en) * 2021-12-21 2022-03-04 西安易朴通讯技术有限公司 Network automatic connection method and device
CN114666857A (en) * 2022-04-27 2022-06-24 中国电信股份有限公司 Communication networking control method, device, medium and electronic equipment
CN116016239A (en) * 2023-01-03 2023-04-25 重庆长安汽车股份有限公司 Service interface testing method, device, equipment and storage medium

Also Published As

Publication number Publication date
WO2020094035A1 (en) 2020-05-14
CN109152094B (en) 2021-10-22

Similar Documents

Publication Publication Date Title
CN109152094A (en) Wireless network connecting method for terminal
CN109152095A (en) Wireless network connecting method for terminal
CN109246741A (en) Wireless network connecting method for terminal
CN104113879B (en) It is deployed with cloud AC WiFi communication system and communication means
CN104301436B (en) Content to be displayed push, subscription, update method and its corresponding device
CN109561171A (en) The configuration method and device of virtual private cloud service
CN104615448B (en) A kind of software channel packet update method, management method and equipment
CN108540831B (en) Method and apparatus for pushed information
CN109992732A (en) Information sharing method, device, electronic equipment and storage medium
CN109727301A (en) Generate method, apparatus, electronic equipment and the storage medium of dynamic wallpaper
CN110351323A (en) A kind of parameter management method and device of application system
CN102904959A (en) Network accelerating method and gateway
CN108810123A (en) The method and apparatus for opening mobile cellular network service
CN107241727A (en) Method and apparatus for obtaining WAP information
CN109548103A (en) Method and apparatus for handover network
CN110247951A (en) A kind of file transfer control method, device, equipment and storage medium
CN110377440A (en) Information processing method and device
CN105930249B (en) Using monitoring method and device
CN108370353A (en) It is increased network utilization using network assistance agreement
CN104216982B (en) A kind of information processing method and electronic equipment
CN108549586A (en) Information processing method and device
WO2016101446A1 (en) Data analysis method, apparatus, system, and terminal, and server
CN103546511A (en) Method for realizing establishment of distributed network for multiple WIFI (wireless fidelity) equipment through WIFI, software program and server
CN108880923A (en) The method and apparatus that policer operation applied to application server is requested
CN110134480A (en) Processing method, device, electronic equipment and the storage medium of user's trigger action

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right

Effective date of registration: 20210420

Address after: 200131 Zone E, 9th floor, No.1 Lane 666, zhangheng Road, Pudong New Area pilot Free Trade Zone, Shanghai

Applicant after: Shanghai Shangxiang Network Technology Co.,Ltd.

Address before: 201306, N2025 building, 24 building, Xincheng Road, 2 mud town, Shanghai, Pudong New Area

Applicant before: SHANGHAI LIANSHANG NETWORK TECHNOLOGY Co.,Ltd.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant