CN105636079A - Network determining method and device - Google Patents

Network determining method and device Download PDF

Info

Publication number
CN105636079A
CN105636079A CN201510997896.XA CN201510997896A CN105636079A CN 105636079 A CN105636079 A CN 105636079A CN 201510997896 A CN201510997896 A CN 201510997896A CN 105636079 A CN105636079 A CN 105636079A
Authority
CN
China
Prior art keywords
network
mobile terminal
currently accessed
application program
cellular
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201510997896.XA
Other languages
Chinese (zh)
Inventor
王智勇
邱峰
朱瑞贤
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Xiaomi Inc
Original Assignee
Xiaomi Inc
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 Xiaomi Inc filed Critical Xiaomi Inc
Priority to CN201510997896.XA priority Critical patent/CN105636079A/en
Publication of CN105636079A publication Critical patent/CN105636079A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/16Discovering, processing access restriction or access information

Landscapes

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

Abstract

The disclosure relates to a network determining method and device, and belongs to the technical field of a mobile terminal. The method includes the steps of: judging whether a mobile terminal current access network is a set network; and when the mobile terminal current access network is the set network, feeding back a cellular network currently accessed by the mobile terminal to an application of the mobile terminal, the set network being a Wireless Fidelity (WiFi) hotspot network established based on the cellular network. When the mobile terminal current access network is the set network, that the mobile terminal current access network is a cellular network is fed back to the application of the mobile network, and the set network is the WiFi hotspot network established based on the cellular network. When the mobile terminal current access network is the cellular network in essence, that the current access network is the cellular network is fed back to the application, and the application starts using a strategy that the network is used conservatively. Some unessential uploading and downloading operations are avoided, the network usage is reduced, and furthermore the user payment is reduced.

Description

Network determination method and device
Technical Field
The present disclosure relates to the field of mobile terminal technologies, and in particular, to a network determination method and apparatus.
Background
Wireless Wide Area Network (WWAN) technology allows mobile terminals to connect to the internet anywhere within the coverage of a cellular network. Since a mobile terminal such as a notebook computer and a tablet computer cannot directly access the WWAN, a smart phone and a portable broadband Wireless device (such as mifi) are generally set as a Wireless-Fidelity (Wi-Fi) hotspot, and the mobile terminal is connected to the internet through a cellular network connected to the Wi-Fi hotspot so as to use the Wi-Fi hotspot. However, most mobile terminals are connected to the Wi-Fi hotspot in the form of free Wi-Fi, so that an application (app for short) in the mobile terminal uses the network without restriction, thereby increasing the cost paid by the user for using the cellular network.
Disclosure of Invention
In order to overcome the problem of using a paid network without throttling in the related art, the disclosure provides a network determination method and a network determination device.
According to a first aspect of the embodiments of the present disclosure, there is provided a network determination method, including:
judging whether a network currently accessed by the mobile terminal is a set network;
and when the network currently accessed by the mobile terminal is the set network, feeding back the current access cellular network of the mobile terminal to an application program of the mobile terminal, wherein the set network is a wireless fidelity WiFi hotspot network established based on the cellular network.
By judging whether the network currently accessed by the mobile terminal is a set network or not, and feeding back the network currently accessed by the mobile terminal to be a cellular network and the set network to be a WiFi hot spot network to the application program of the mobile terminal when the network currently accessed by the mobile terminal is the set network, the purpose of feeding back the cellular network currently accessed to the application program when the network currently accessed by the mobile terminal is essentially the cellular network is achieved, the strategy that the application program starts to use the network conservatively is triggered, unnecessary uploading and downloading operations are avoided, the use of the network is reduced, and when the non-cellular network is a charging network such as a WWAN, the cost paid by a user is reduced.
In a possible implementation manner of the first aspect, the determining whether a network currently accessed by the mobile terminal is a set network includes:
when the network currently accessed by the mobile terminal is a Wi-Fi hotspot network, judging that the network currently accessed by the mobile terminal is the set network;
and when the network currently accessed by the mobile terminal is a cellular network, judging that the network currently accessed by the mobile terminal is not the set network.
The system can automatically identify the charged non-cellular network and disguise the non-cellular network as the cellular network, trigger the application program to start the strategy of using the network conservatively, reduce the cost paid by the user and save the trouble of marking by the user.
In another possible implementation manner of the first aspect, the determining whether a network currently accessed by the mobile terminal is a set network further includes:
searching whether the configuration information of the network currently accessed by the mobile terminal comprises mark information;
when the configuration information comprises the mark information, judging that the network currently accessed by the mobile terminal is the set network;
and when the configuration information does not comprise the mark information, judging that the network currently accessed by the mobile terminal is not the set network.
And judging whether the network currently accessed by the mobile terminal is a set network by using the marking information, so that the method is simple, convenient and effective.
Optionally, the method further comprises:
an input interface for outputting the label information;
receiving the marking information input through the input interface.
And the input of the marking information is realized through the input interface.
In another possible implementation manner of the first aspect, the determining whether a network currently accessed by the mobile terminal is a set network includes:
when the network accessed by the mobile terminal changes, judging whether the network currently accessed by the mobile terminal is a set network;
or,
receiving a network query request sent by the application program;
and judging whether the network currently accessed by the mobile terminal is a set network or not according to the network query request.
When the current network condition needs to be fed back to the application program, whether the network currently accessed by the mobile terminal is the set network or not is judged firstly, namely, the current network is disguised as the cellular network when the network currently accessed by the mobile terminal is the set network, so that the application program is prevented from using the network without throttling, and the cost paid by a user is reduced.
In yet another possible implementation manner of the first aspect, the method further includes:
and when the network currently accessed by the mobile terminal is the set network, limiting the data transmission rate of the application program within the set rate.
By directly limiting the rate of the application program using the network resources, the network resources used by the application program using the network resources are reduced under a cellular network, and the user overhead is saved.
In yet another possible implementation manner of the first aspect, the method further includes:
and when the network currently accessed by the mobile terminal is not the set network, feeding back the network currently accessed by the mobile terminal to the application program.
When the network currently accessed by the mobile terminal is not the set network, feeding back the actual network currently accessed by the mobile terminal, using network resources by the app according to the actual network condition, and mainly saving user overhead when the current network is a cellular network and mainly using user experience when the current network is a WLAN.
According to a second aspect of the embodiments of the present disclosure, there is provided a network determination apparatus, including:
the judging module is used for judging whether the network currently accessed by the mobile terminal is a set network;
and the feedback module is used for feeding back the current access cellular network of the mobile terminal to an application program of the mobile terminal when the current access network of the mobile terminal is the set network, and the set network is a wireless fidelity WiFi hotspot network established based on the cellular network.
In a possible implementation manner of the second aspect, the determining module includes:
the first judgment submodule is used for judging that the network currently accessed by the mobile terminal is the set network when the network currently accessed by the mobile terminal is the Wi-Fi hotspot network;
and a second determining sub-module, configured to determine that the network currently accessed by the mobile terminal is not the set network when the network currently accessed by the mobile terminal is a cellular network.
In another possible implementation manner of the second aspect, the determining module includes:
the searching submodule is used for searching whether the configuration information of the network currently accessed by the mobile terminal comprises mark information;
a third determining sub-module, configured to determine, when the configuration information includes the flag information, that a network to which the mobile terminal currently accesses is the set network;
and a fourth judging submodule, configured to judge that the network to which the mobile terminal is currently accessed is not the set network when the configuration information does not include the flag information.
Optionally, the apparatus further comprises:
the output module is used for outputting the input interface of the marking information;
and the receiving module is used for receiving the marking information input through the input interface.
In yet another possible implementation manner of the second aspect, the determining module is configured to,
when the network accessed by the mobile terminal changes, judging whether the network currently accessed by the mobile terminal is a set network;
or,
receiving a network query request sent by the application program;
and judging whether the network currently accessed by the mobile terminal is a set network or not according to the network query request.
In yet another possible implementation manner of the second aspect, the apparatus further includes:
and the limiting module is used for limiting the data transmission rate of the application program within a set rate when the network currently accessed by the mobile terminal is the set network.
In yet another possible implementation manner of the second aspect, the feedback module is further configured to,
and when the network currently accessed by the mobile terminal is not the set network, feeding back the network currently accessed by the mobile terminal to the application program.
According to a third aspect of the embodiments of the present disclosure, there is provided a network determining apparatus, including:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
judging whether a network currently accessed by the mobile terminal is a set network;
and when the network currently accessed by the mobile terminal is the set network, feeding back the current access cellular network of the mobile terminal to an application program of the mobile terminal, wherein the set network is a wireless fidelity WiFi hotspot network established based on the cellular network.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects: by judging whether the network currently accessed by the mobile terminal is a set network or not, and feeding back the network currently accessed by the mobile terminal to the application program of the mobile terminal as a cellular network when the network currently accessed by the mobile terminal is the set network, and setting the network as a WiFi hotspot network created based on the cellular network, the purpose that the network currently accessed by the mobile terminal is fed back to the application program when the network currently accessed by the mobile terminal is essentially the cellular network is achieved, the application program is triggered to start a strategy of using the network conservatively, some unnecessary uploading and downloading operations are avoided, the use of the network is reduced, and the cost paid by a user is reduced when the non-cellular network is a charging network such as WWAN.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention.
FIG. 1 is an application scenario illustrating a network determination method according to an exemplary embodiment;
FIG. 2 is a flow chart illustrating a network determination method according to an exemplary embodiment;
FIG. 3 is a flow chart illustrating a method of network determination according to an exemplary embodiment;
4 a-4 c are terminal interface diagrams of an input interface shown outputting markup information, according to an example embodiment;
FIGS. 5 a-5 b are diagrams illustrating a mobile terminal using network resources according to an example embodiment;
FIG. 6 is a block diagram illustrating a network determination device in accordance with an exemplary embodiment;
FIG. 7 is a block diagram illustrating a network determination device in accordance with an exemplary embodiment;
fig. 8 is a block diagram illustrating a network determination device in accordance with an example embodiment.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the invention, as detailed in the appended claims.
An application scenario of the network determining method provided by the embodiment of the present disclosure is briefly described below with reference to fig. 1. As shown in fig. 1, the WWAN access device 1 is connected to the internet through a cellular network and is set as a Wi-Fi hotspot. A plurality of mobile terminals 2 are connected to the WWAN access device 1, i.e. may be connected to the internet using the cellular network of the WWAN access device 1.
In practical applications, the WWAN access device 1 may be a portable broadband wireless device (e.g., mifi), a smart phone, etc., and the mobile terminal 2 may be a notebook computer, a tablet computer, a smart phone, etc., which is not limited by the disclosure.
Fig. 2 is a flowchart illustrating a network determination method according to an exemplary embodiment, which is used in a mobile terminal, as shown in fig. 2, and includes the following steps.
In step S101, it is determined whether the network currently accessed by the mobile terminal is a set network.
In step S102, when the network currently accessed by the mobile terminal is the set network, the current access of the mobile terminal to the cellular network is fed back to the application program of the mobile terminal.
In this embodiment, the network is set to be a Wi-Fi hotspot network created based on a cellular network. The Wi-Fi hotspot network is a Wi-Fi network which takes a Wi-Fi hotspot as a wireless access point (AP for short) and is established based on a cellular network.
The embodiment of the disclosure feeds back the currently accessed network of the mobile terminal to the application program when the currently accessed network of the mobile terminal is the set network by judging whether the currently accessed network of the mobile terminal is the set network and feeding back the currently accessed network of the mobile terminal to be the cellular network when the currently accessed network of the mobile terminal is the set network, and the set network is the WiFi hotspot network created based on the cellular network, so that the currently accessed cellular network is fed back to the application program when the currently accessed network of the mobile terminal is the cellular network essentially, the application program is triggered to start the strategy of using the network conservatively, unnecessary uploading and downloading operations are avoided, the use of the network is reduced, and the cost paid by a user is reduced when the non-cellular network is a charging network such as WWAN.
Fig. 3 is a flowchart illustrating a network determination method according to an exemplary embodiment, which is used in a mobile terminal, as shown in fig. 3, and includes the following steps.
In step S201, it is determined whether the network currently accessed by the mobile terminal is a set network. When the network accessed by the mobile terminal is the set network, executing step S202-step S203; when the network currently accessed by the mobile terminal is not the set network, step S204 is performed.
In this embodiment, the network currently accessed by the mobile terminal may be one of a cellular network, a Wi-Fi hotspot network, and a Wi-Fi network. The cellular network may include a second-generation mobile phone communication technology (the2 nd-generational wireless cellular technology, abbreviated as 2G), a third-generation mobile phone communication technology (the3 rd-generational wireless cellular technology, abbreviated as 3G), a fourth-generation mobile phone communication technology (the4 th-generational wireless cellular technology, abbreviated as 4G), and so on. The Wi-Fi hotspot network is a wireless network provided when the Wi-Fi hotspot shares the cellular network. The Wi-Fi network is a Wireless Local Area Network (WLAN) provided by devices such as a wireless router.
Setting the network as a Wi-Fi hotspot network established based on a cellular network. The Wi-Fi hotspot network is a Wi-Fi network which takes a Wi-Fi hotspot as an AP and is established based on a cellular network.
In an implementation manner of this embodiment, the step S201 may include:
when the network currently accessed by the mobile terminal is a Wi-Fi hotspot network, judging that the network currently accessed by the mobile terminal is a set network;
and when the network currently accessed by the mobile terminal is a cellular network, judging that the network currently accessed by the mobile terminal is not a set network.
In the implementation mode, the mobile terminal directly determines whether the mobile terminal belongs to the set network according to the currently accessed network, the system can automatically identify the Wi-Fi hot spot network and inform the application program that the currently accessed network is a cellular network substantially, the application program is triggered to start a strategy of using the network conservatively, the cost paid by a user is reduced, and the trouble of marking by the user can be omitted.
Optionally, the step S201 may further include:
when the network accessed by the mobile terminal currently is a Wi-Fi network, searching whether the configuration information of the network accessed by the mobile terminal currently comprises mark information;
when the configuration information comprises the mark information, judging that the network currently accessed by the mobile terminal is a set network;
and when the configuration information does not comprise the mark information, judging that the network currently accessed by the mobile terminal is not the set network.
Further, when the system cannot identify whether the Wi-Fi hotspot network exists or not, the user marks the Wi-Fi hotspot network, the mobile terminal determines whether the essence of the current access network exists or not according to the marking information, namely whether the current access network accesses the Internet through the cellular network or not, so that the application program is informed when the current access network actually exists in the cellular network, the application program is triggered to start a strategy of using the network conservatively, the cost paid by the user is reduced, and different modes are selected according to different conditions to meet various requirements.
Alternatively, the tag information may be an identifier labeled as a Wi-Fi hotspot network, such as "1" indicating that the network is a Wi-Fi hotspot network, "0" indicating that the network is not a Wi-Fi hotspot network, and the tag information being an identifier with a value of "1". The marking information can also be the name of a cellular network specifically accessed by the currently accessed Wi-Fi hotspot network, such as '3G'. It should be noted that the present disclosure is not limited thereto.
Optionally, the method may further include:
an input interface for outputting the label information;
tag information input through the input interface is received.
Preferably, the input interface for outputting the label information may include:
and outputting the input interface of the mark information on a network configuration page of the mobile terminal.
In practical application, the settings and the Wi-Fi (possibly the wireless local area network, the WLAN and the like) can be selected from the main page of the mobile terminal in sequence, and the selection page of the Wi-Fi is entered. The selection page comprises a selection interface whether to connect Wi-Fi, when the Wi-Fi connection is selected, the selection page also comprises names of all Wi-Fi currently searched by the mobile terminal, encryption or not, signal strength and more information inquiry interfaces, and one of the more information inquiry interfaces of the Wi-Fi is selected to enter a configuration page of the Wi-Fi. The configuration page includes a name of the Wi-Fi, an interface for connecting or disconnecting the Wi-Fi, an IP address, a subnet mask, a router, a domain name system (DNS for short), and the like, and the present disclosure adds an input interface for marking information to the configuration page, such as a slider corresponding to "mark as cellular network" in fig. 4a, or a text box corresponding to "mark as cellular network" in fig. 4b (input "3G" in fig. 4 b).
Preferably, the input interface for outputting the label information may include:
and the input interface outputs the marking information on the current page of the mobile terminal.
In practical applications, when the mobile terminal accesses the Wi-Fi hotspot network, the mobile terminal may pop up a dialog box on the current page, where the dialog box includes an input interface for marking information, such as the "ok" button in the dialog box in fig. 4 c.
Preferably, after receiving the tag information input through the input interface, the method may further include:
the tag information is stored in configuration information of the corresponding network.
In practical applications, after accessing a network, the mobile terminal usually records configuration information of the network, such as NetworkInfo of the android system. The configuration information includes network identification, access password, etc., which facilitates automatic connection when the network is searched again. The embodiment may store the tag information in the configuration information, so that when the mobile terminal connects to the network again, the essence of the currently accessed network (i.e. accessing to the cellular network) can still be fed back to the application program according to the tag information, and the user is prevented from inputting the tag information every time.
Preferably, after receiving the tag information input through the input interface, the method may further include:
and feeding back the current access of the mobile terminal to the cellular network to the application program of the mobile terminal.
In practical application, a user marks a non-cellular network as a cellular network, so that when the marking information is received, the network fed back to the application program by the system is changed accordingly, and the current network broadcasted by the system to the app is changed into the cellular network, so that the situation that the app uses the network without restriction can be avoided in time, and the cost paid by the user is reduced.
In another implementation manner of this embodiment, the step S201 may include:
searching whether the configuration information of the network currently accessed by the mobile terminal comprises mark information;
when the configuration information comprises the mark information, judging that the network currently accessed by the mobile terminal is a set network;
and when the configuration information does not comprise the mark information, judging that the network currently accessed by the mobile terminal is not the set network.
How to determine, input and follow-up processes of the mark information according to the mark information can be as described before, and detailed description is omitted here. Compared with the foregoing, the difference is that the implementation mode does not need to compare the current network, and the judgment is directly performed according to the mark information input by the user, so that the implementation mode is simpler and more convenient to implement.
In another implementation manner of this embodiment, the step S201 may include:
when the network accessed by the mobile terminal changes, whether the network accessed by the mobile terminal currently is a set network is judged.
In practical application, the app may register an event with the system, and when the system finds that a network changes, the system may automatically send a changed network condition, such as whether to access the network currently and the network that is accessed, to the app registering the event in a broadcast manner.
In yet another implementation manner of this embodiment, the step S201 may include.
Receiving a network query request sent by an application program of a mobile terminal;
and judging whether the network currently accessed by the mobile terminal is a set network or not according to the network query request.
In practical applications, the app may also obtain the current network by sending a network query request to the system, such as when the app starts.
In step S202, the current access of the mobile terminal to the cellular network is fed back to the application of the mobile terminal.
In practical applications, the cellular network fed back by the system may be randomly selected, may be a default of the system, may be indicated in the tag information by the user, or may be a cellular network supported by the mobile terminal.
As mentioned above, referring to fig. 5a, the network accessed by the mobile terminal generally includes a cellular network, a Wi-Fi hotspot network, and a Wi-Fi network, wherein the cellular network includes 2G, 3G, 4G, and so on. But the networks acquired by only a small part of apps comprise a cellular network, a Wi-Fi hotspot network and a Wi-Fi network, and the networks acquired by most apps only comprise the cellular network and the Wi-Fi network, and at the moment, the Wi-Fi hotspot network can be considered as the Wi-Fi network. When the network acquired by the app is one of the 2G, 3G, 4G and other cellular networks, basically all apps make a network policy of conservative use under a data payment network (such as a cellular network), so that all apps start the policy at this time, and network resources are saved; when the network acquired by the app is a charged Wi-Fi hotspot network, only a small part of the app still starts the strategy, and most of the app considers the free Wi-Fi network to fully use network resources. Compared with the method of saving the network resources, the method has the advantages that the network resources are fully used, and the apps can perform some unnecessary actions of consuming the flow, such as downloading data which are not selected by the user and uploading or downloading large-flow data, so that if most of the apps fully use the network resources under the Wi-Fi hotspot network, the used network resources are greatly increased, and the user pays a large amount of unnecessary cost. Likewise, in a charged Wi-Fi network, all apps would also be considered free Wi-Fi networks and fully use network resources, causing the user to pay a significant amount of unnecessary fees.
Referring to fig. 5b, in this embodiment, the charged Wi-Fi network is artificially marked, and the marked charged Wi-Fi network and the charged Wi-Fi hotspot network automatically identified by the system both feed back the app as a cellular network, so that the app starts a conservative network usage policy, reduces network resources used, saves the cost paid by the user, and has good user experience.
In step S203, the rate at which the application transmits data is limited to the set rate. This step S203 is an optional step.
It can be understood that, if the app does not have a network policy for conservative use in a data payment network (e.g., a cellular network), the feedback access to the cellular network cannot enable the app to save the network resources, and at this time, the system directly limits the rate at which the app uses the network resources, so as to reduce the network resources used by the app to a certain extent and save the cost paid by the user.
In step S204, the network currently accessed by the mobile terminal is fed back to the application program of the mobile terminal.
The embodiment of the disclosure feeds back the currently accessed network of the mobile terminal to the application program when the currently accessed network of the mobile terminal is the set network by judging whether the currently accessed network of the mobile terminal is the set network and feeding back the currently accessed network of the mobile terminal to be the cellular network when the currently accessed network of the mobile terminal is the set network, and the set network is the WiFi hotspot network created based on the cellular network, so that the currently accessed cellular network is fed back to the application program when the currently accessed network of the mobile terminal is the cellular network essentially, the application program is triggered to start the strategy of using the network conservatively, unnecessary uploading and downloading operations are avoided, the use of the network is reduced, and the cost paid by a user is reduced when the non-cellular network is a charging network such as WWAN.
Fig. 6 is a block diagram illustrating a network determination apparatus according to an exemplary embodiment, and referring to fig. 6, the apparatus includes a determination module 301 and a feedback module 302.
The determining module 301 is configured to determine whether a network currently accessed by the mobile terminal is a set network.
The feedback module 302 is configured to feed back the current access of the mobile terminal to the cellular network to the application program of the mobile terminal when the current access of the mobile terminal is the set network, and the set network is a WiFi hotspot network created based on the cellular network.
The embodiment of the disclosure feeds back the currently accessed network of the mobile terminal to the application program when the currently accessed network of the mobile terminal is the set network by judging whether the currently accessed network of the mobile terminal is the set network and feeding back the currently accessed network of the mobile terminal to be the cellular network when the currently accessed network of the mobile terminal is the set network, and the set network is the WiFi hotspot network created based on the cellular network, so that the currently accessed cellular network is fed back to the application program when the currently accessed network of the mobile terminal is the cellular network essentially, the application program is triggered to start the strategy of using the network conservatively, unnecessary uploading and downloading operations are avoided, the use of the network is reduced, and the cost paid by a user is reduced when the non-cellular network is a charging network such as WWAN.
Fig. 7 is a block diagram illustrating a network determination apparatus according to an exemplary embodiment, and referring to fig. 7, the apparatus includes a determination module 401 and a feedback module 402.
The determining module 401 is configured to determine whether a network currently accessed by the mobile terminal is a set network.
The feedback module 402 is configured to feed back the current access of the mobile terminal to the cellular network to the application program of the mobile terminal when the current access of the mobile terminal is the set network, and the set network is a WiFi hotspot network created based on the cellular network.
In an implementation manner of this embodiment, the determining module 401 may include a first determining sub-module 401a and a second determining sub-module 401 b.
The first determining submodule 401a is configured to determine that the network currently accessed by the mobile terminal is the set network when the network currently accessed by the mobile terminal is the Wi-Fi hotspot network.
The second determination submodule 401b is configured to determine that the network currently accessed by the mobile terminal is not the set network when the network currently accessed by the mobile terminal is the cellular network.
In another implementation manner of this embodiment, the determining module 401 may include a searching sub-module 401c, a third determining sub-module 401d, and a fourth determining sub-module 401 e.
The lookup sub-module 401c is configured to lookup whether the configuration information of the network to which the mobile terminal is currently accessing includes the flag information.
The third determining sub-module 401d is configured to determine that the network currently accessed by the mobile terminal is the set network when the configuration information includes the flag information.
The fourth judging sub-module 401e is configured to judge that the network to which the mobile terminal is currently accessed is not the set network when the configuration information does not include the flag information.
Optionally, the apparatus may further include an output module 403 and a receiving module 404.
The output module 403 is configured as an input interface for outputting the label information.
The receiving module 404 is configured to receive the marking information input through the input interface.
In yet another implementation manner of this embodiment, the determining module 401 may be configured to determine whether a network currently accessed by the mobile terminal is a set network when the network accessed by the mobile terminal changes; or receiving a network query request sent by an application program; and judging whether the network currently accessed by the mobile terminal is a set network or not according to the network query request.
In yet another implementation of this embodiment, the apparatus may further include a restriction module 405.
The limiting module 405 is configured to limit the rate of data transmission of the application program within a set rate when the network to which the mobile terminal is currently connected is a set network.
In yet another implementation manner of this embodiment, the feedback module 402 may be further configured to feed back the network currently accessed by the mobile terminal to the application program when the network currently accessed by the mobile terminal is not the set network.
The embodiment of the disclosure feeds back the currently accessed network of the mobile terminal to the application program when the currently accessed network of the mobile terminal is the set network by judging whether the currently accessed network of the mobile terminal is the set network and feeding back the currently accessed network of the mobile terminal to be the cellular network when the currently accessed network of the mobile terminal is the set network, and the set network is the WiFi hotspot network created based on the cellular network, so that the currently accessed cellular network is fed back to the application program when the currently accessed network of the mobile terminal is the cellular network essentially, the application program is triggered to start the strategy of using the network conservatively, unnecessary uploading and downloading operations are avoided, the use of the network is reduced, and the cost paid by a user is reduced when the non-cellular network is a charging network such as WWAN.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
Fig. 8 is a block diagram illustrating a network determination device 800 according to an example embodiment. For example, the apparatus 800 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, and the like.
Referring to fig. 8, the apparatus 800 may include one or more of the following components: a processing component 802, a memory 804, a power component 806, a multimedia component 808, an audio component 810, an input/output (I/O) interface 812, a sensor component 814, and a communication component 816.
The processing component 802 generally controls overall operation of the device 800, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing components 802 may include one or more processors 820 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 802 can include one or more modules that facilitate interaction between the processing component 802 and other components. For example, the processing component 802 can include a multimedia module to facilitate interaction between the multimedia component 808 and the processing component 802.
The memory 804 is configured to store various types of data to support operation at the device 800. Examples of such data include instructions for any application or method operating on device 800, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 804 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
Power component 806 provides power to the various components of device 800. The power components 806 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for the device 800.
The multimedia component 808 includes a screen that provides an output interface between the device 800 and a user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 808 includes a front facing camera and/or a rear facing camera. The front-facing camera and/or the rear-facing camera may receive external multimedia data when the device 800 is in an operating mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 810 is configured to output and/or input audio signals. For example, the audio component 810 includes a Microphone (MIC) configured to receive external audio signals when the apparatus 800 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 804 or transmitted via the communication component 816. In some embodiments, audio component 810 also includes a speaker for outputting audio signals.
The I/O interface 812 provides an interface between the processing component 802 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor assembly 814 includes one or more sensors for providing various aspects of state assessment for the device 800. For example, the sensor assembly 814 may detect the open/closed state of the device 800, the relative positioning of the components, such as a display and keypad of the apparatus 800, the sensor assembly 814 may also detect a change in position of the apparatus 800 or a component of the apparatus 800, the presence or absence of user contact with the apparatus 800, orientation or acceleration/deceleration of the apparatus 800, and a change in temperature of the apparatus 800. Sensor assembly 814 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 814 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 814 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 816 is configured to facilitate communications between the apparatus 800 and other devices in a wired or wireless manner. The device 800 may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 816 receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 816 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the apparatus 800 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer-readable storage medium comprising instructions, such as the memory 804 comprising instructions, executable by the processor 820 of the device 800 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
A non-transitory computer readable storage medium having instructions therein which, when executed by a processor of a mobile terminal, enable the mobile terminal to perform a network determination method, the method comprising:
judging whether a network currently accessed by the mobile terminal is a set network;
and when the network currently accessed by the mobile terminal is the set network, feeding back the current access cellular network of the mobile terminal to an application program of the mobile terminal, wherein the set network is a wireless fidelity WiFi hotspot network established based on the cellular network.
In an implementation manner of this embodiment, the determining whether a network currently accessed by the mobile terminal is a set network includes:
when the network currently accessed by the mobile terminal is a wireless fidelity Wi-Fi hotspot network, judging that the network currently accessed by the mobile terminal is the set network;
and when the network currently accessed by the mobile terminal is a cellular network, judging that the network currently accessed by the mobile terminal is not the set network.
In another implementation manner of this embodiment, the determining whether the network currently accessed by the mobile terminal is a set network includes:
searching whether the configuration information of the network currently accessed by the mobile terminal comprises mark information;
when the configuration information comprises the mark information, judging that the network currently accessed by the mobile terminal is the set network;
and when the configuration information does not comprise the mark information, judging that the network currently accessed by the mobile terminal is not the set network.
Optionally, the method further comprises:
an input interface for outputting the label information;
receiving the marking information input through the input interface.
In another implementation manner of this embodiment, the determining whether the network currently accessed by the mobile terminal is a set network includes:
when the network accessed by the mobile terminal changes, judging whether the network currently accessed by the mobile terminal is a set network;
or,
receiving a network query request sent by the application program;
and judging whether the network currently accessed by the mobile terminal is a set network or not according to the network query request.
In another implementation manner of this embodiment, the method further includes:
and when the network currently accessed by the mobile terminal is the set network, limiting the data transmission rate of the application program within the set rate.
In another implementation manner of this embodiment, the method further includes:
and when the network currently accessed by the mobile terminal is not the set network, feeding back the network currently accessed by the mobile terminal to the application program.
Other embodiments of the invention will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the invention and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the invention being indicated by the following claims.
It will be understood that the invention is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the invention is limited only by the appended claims.

Claims (15)

1. A method for network determination, comprising:
judging whether a network currently accessed by the mobile terminal is a set network;
and when the network currently accessed by the mobile terminal is the set network, feeding back the current access cellular network of the mobile terminal to an application program of the mobile terminal, wherein the set network is a wireless fidelity WiFi hotspot network established based on the cellular network.
2. The method of claim 1, wherein the determining whether the network currently accessed by the mobile terminal is a configured network comprises:
when the network currently accessed by the mobile terminal is a Wi-Fi hotspot network, judging that the network currently accessed by the mobile terminal is the set network;
and when the network currently accessed by the mobile terminal is a cellular network, judging that the network currently accessed by the mobile terminal is not the set network.
3. The method of claim 1, wherein the determining whether the network currently accessed by the mobile terminal is a configured network comprises:
searching whether the configuration information of the network currently accessed by the mobile terminal comprises mark information;
when the configuration information comprises the mark information, judging that the network currently accessed by the mobile terminal is the set network;
and when the configuration information does not comprise the mark information, judging that the network currently accessed by the mobile terminal is not the set network.
4. The method of claim 3, further comprising:
an input interface for outputting the label information;
receiving the marking information input through the input interface.
5. The method according to any one of claims 1 to 4, wherein the determining whether the network currently accessed by the mobile terminal is a configured network comprises:
when the network accessed by the mobile terminal changes, judging whether the network currently accessed by the mobile terminal is a set network;
or,
receiving a network query request sent by the application program;
and judging whether the network currently accessed by the mobile terminal is a set network or not according to the network query request.
6. The method according to any one of claims 1-4, further comprising:
and when the network currently accessed by the mobile terminal is the set network, limiting the data transmission rate of the application program within the set rate.
7. The method according to any one of claims 1-4, further comprising:
and when the network currently accessed by the mobile terminal is not the set network, feeding back the network currently accessed by the mobile terminal to the application program.
8. A network determination apparatus, comprising:
the judging module is used for judging whether the network currently accessed by the mobile terminal is a set network;
and the feedback module is used for feeding back the current access cellular network of the mobile terminal to an application program of the mobile terminal when the current access network of the mobile terminal is the set network, and the set network is a wireless fidelity WiFi hotspot network established based on the cellular network.
9. The apparatus of claim 8, wherein the determining module comprises:
the first judgment submodule is used for judging that the network currently accessed by the mobile terminal is the set network when the network currently accessed by the mobile terminal is the Wi-Fi hotspot network;
and a second determining sub-module, configured to determine that the network currently accessed by the mobile terminal is not the set network when the network currently accessed by the mobile terminal is a cellular network.
10. The apparatus of claim 8, wherein the determining module comprises:
the searching submodule is used for searching whether the configuration information of the network currently accessed by the mobile terminal comprises mark information;
a third determining sub-module, configured to determine, when the configuration information includes the flag information, that a network to which the mobile terminal currently accesses is the set network;
and a fourth judging submodule, configured to judge that the network to which the mobile terminal is currently accessed is not the set network when the configuration information does not include the flag information.
11. The apparatus of claim 10, further comprising:
the output module is used for outputting the input interface of the marking information;
and the receiving module is used for receiving the marking information input through the input interface.
12. The apparatus according to any one of claims 8-11, wherein the determining module is configured to,
when the network accessed by the mobile terminal changes, judging whether the network currently accessed by the mobile terminal is a set network;
or,
receiving a network query request sent by the application program;
and judging whether the network currently accessed by the mobile terminal is a set network or not according to the network query request.
13. The apparatus according to any one of claims 8-11, further comprising:
and the limiting module is used for limiting the data transmission rate of the application program within a set rate when the network currently accessed by the mobile terminal is the set network.
14. The apparatus of any one of claims 8-11, wherein the feedback module is further configured to,
and when the network currently accessed by the mobile terminal is not the set network, feeding back the network currently accessed by the mobile terminal to the application program.
15. A network determination apparatus, comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
judging whether a network currently accessed by the mobile terminal is a set network;
and when the network currently accessed by the mobile terminal is the set network, feeding back the current access cellular network of the mobile terminal to an application program of the mobile terminal, wherein the set network is a wireless fidelity WiFi hotspot network established based on the cellular network.
CN201510997896.XA 2015-12-26 2015-12-26 Network determining method and device Pending CN105636079A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510997896.XA CN105636079A (en) 2015-12-26 2015-12-26 Network determining method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510997896.XA CN105636079A (en) 2015-12-26 2015-12-26 Network determining method and device

Publications (1)

Publication Number Publication Date
CN105636079A true CN105636079A (en) 2016-06-01

Family

ID=56050456

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510997896.XA Pending CN105636079A (en) 2015-12-26 2015-12-26 Network determining method and device

Country Status (1)

Country Link
CN (1) CN105636079A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106851779A (en) * 2016-12-07 2017-06-13 广东欧珀移动通信有限公司 A kind of method and mobile terminal for recognizing access point and focus
WO2018010160A1 (en) * 2016-07-15 2018-01-18 华为技术有限公司 Mobile data sharing method and mobile terminal

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103096384A (en) * 2012-12-17 2013-05-08 东莞宇龙通信科技有限公司 Method limiting slave internet traffic and system thereof
CN104363588A (en) * 2014-11-19 2015-02-18 贵州万臻时代通讯技术有限公司 Mobile terminal internet access control method and mobile terminal
CN104869621A (en) * 2015-06-12 2015-08-26 联想(北京)有限公司 Method and device for network awareness
CN105007602A (en) * 2015-07-16 2015-10-28 福建天晴数码有限公司 Method for flow control of mobile terminal and flow control mobile terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103096384A (en) * 2012-12-17 2013-05-08 东莞宇龙通信科技有限公司 Method limiting slave internet traffic and system thereof
CN104363588A (en) * 2014-11-19 2015-02-18 贵州万臻时代通讯技术有限公司 Mobile terminal internet access control method and mobile terminal
CN104869621A (en) * 2015-06-12 2015-08-26 联想(北京)有限公司 Method and device for network awareness
CN105007602A (en) * 2015-07-16 2015-10-28 福建天晴数码有限公司 Method for flow control of mobile terminal and flow control mobile terminal

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018010160A1 (en) * 2016-07-15 2018-01-18 华为技术有限公司 Mobile data sharing method and mobile terminal
CN108141906A (en) * 2016-07-15 2018-06-08 华为技术有限公司 Mobile data sharing method and mobile terminal
CN108141906B (en) * 2016-07-15 2021-01-29 华为技术有限公司 Mobile data sharing method and mobile terminal
CN106851779A (en) * 2016-12-07 2017-06-13 广东欧珀移动通信有限公司 A kind of method and mobile terminal for recognizing access point and focus
US10743252B2 (en) 2016-12-07 2020-08-11 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Method for identifying access point and hotspot and terminal

Similar Documents

Publication Publication Date Title
EP3177077A1 (en) Method and device for network access
US20160381629A1 (en) Virtual sim card for accessing operator network
EP3226432B1 (en) Method and devices for sharing media data between terminals
US20170034776A1 (en) Method, apparatus, and system for smart device to access router
CN105049416A (en) Method and apparatus for accessing to wifi network
CN107241521B (en) Webpage access method and device
CN104602112A (en) Configuration method and device
CN104320830B (en) The display methods and device of wireless device list, wireless device and its broadcasting method
CN109451877B (en) Unmanned aerial vehicle control method and device, unmanned aerial vehicle and remote control equipment
CN109451786B (en) Unmanned aerial vehicle management method and device and communication connection establishment method and device
CN106454998B (en) Wireless local area network access method, device and terminal
CN106376057A (en) Wireless network access method and device
CN107820300A (en) Network search method and device
CN105282809A (en) Network model switching method and apparatus, and terminal equipment
CN106792892B (en) Access control method and device for application program
CN112237036B (en) Problem reporting method and problem reporting device
KR20200108878A (en) Cell type indication method and apparatus
CN109451878B (en) Unmanned aerial vehicle indication method and device
US11848885B2 (en) System information reception method and apparatus, and system information transmission method and apparatus
CN106792570B (en) Positioning method and device
CN104618987B (en) Access the method and device of network
CN105991626A (en) Network access method and network access device
CN105636079A (en) Network determining method and device
CN108401518B (en) Channel coordination method and device
CN106506808A (en) The method and device pointed out by communication message

Legal Events

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

Application publication date: 20160601