CN108243414B - Method and device for determining network environment of terminal user - Google Patents

Method and device for determining network environment of terminal user Download PDF

Info

Publication number
CN108243414B
CN108243414B CN201611222912.9A CN201611222912A CN108243414B CN 108243414 B CN108243414 B CN 108243414B CN 201611222912 A CN201611222912 A CN 201611222912A CN 108243414 B CN108243414 B CN 108243414B
Authority
CN
China
Prior art keywords
signal
server
target application
application program
terminal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201611222912.9A
Other languages
Chinese (zh)
Other versions
CN108243414A (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.)
Beijing Kingsoft Cloud Network Technology Co Ltd
Beijing Kingsoft Cloud Technology Co Ltd
Original Assignee
Beijing Kingsoft Cloud Network Technology Co Ltd
Beijing Kingsoft Cloud 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 Beijing Kingsoft Cloud Network Technology Co Ltd, Beijing Kingsoft Cloud Technology Co Ltd filed Critical Beijing Kingsoft Cloud Network Technology Co Ltd
Priority to CN201611222912.9A priority Critical patent/CN108243414B/en
Publication of CN108243414A publication Critical patent/CN108243414A/en
Application granted granted Critical
Publication of CN108243414B publication Critical patent/CN108243414B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/06Authentication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/02Access restriction performed under specific conditions
    • H04W48/04Access restriction performed under specific conditions based on user or terminal location or mobility data, e.g. moving direction, speed
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/08Access restriction or access information delivery, e.g. discovery data delivery
    • H04W48/10Access restriction or access information delivery, e.g. discovery data delivery using broadcasted information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/18Selecting a network or a communication service
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W88/00Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
    • H04W88/02Terminal devices
    • H04W88/06Terminal devices adapted for operation in multiple networks or having at least two operational modes, e.g. multi-mode terminals

Abstract

The embodiment of the invention provides a method and a device for determining a network environment of a terminal user, wherein the method comprises the following steps: when a request message of starting a target application program by a terminal user is received, detecting a signal received by terminal equipment, wherein the target application program is an application program required to be operated by the user; determining a frequency range within which a frequency of the signal is located; determining the network environment of the terminal user according to the frequency range, wherein the network environment comprises: a wireless broadband network environment or a mobile data traffic network environment. By applying the embodiment of the invention, after the target application program of the terminal equipment is started, the terminal automatically identifies the network environment where the terminal user is located, and the terminal user does not need to manually adjust the network environment of the terminal equipment, so that the experience degree of the terminal user in operating the target application program is improved.

Description

Method and device for determining network environment of terminal user
Technical Field
The present invention relates to the field of mobile communications technologies, and in particular, to a method and an apparatus for determining a network environment where a terminal user is located.
Background
With the increasing transmission speed of mobile networks and the popularization of terminal devices such as smartphones and tablet computers, people are gradually accustomed to various applications using the terminal devices, for example, various APPs (applications) such as WeChat, microblog, and happy everyday. Each big internet operator can accumulate more end users through terminal equipment, and end user experiences good APP (for example, microblog, little letter etc.), can promote end user's loyalty to these APP, liveness, has played critical effect to the income of enterprise and future development.
Currently, under the condition that mobile internet is increasingly popularized, mobile-free data traffic becomes the most concerned problem for the terminal device user to surf the internet. In general, the end user adjusts the networking mode of the terminal device through a manual selection mode. For example, when a user operates an application through a terminal device (a user playing a game is also called a player), when there is a WI-FI (Wireless bandwidth) in a location where the terminal device of the terminal user is located, the terminal user first operates the application using the Wireless bandwidth WI-FI, and when there is no WI-FI in the location where the terminal device of the terminal user is located, the terminal user needs to operate the application using mobile data traffic, so that for those terminal users who have no or less mobile data traffic available, the stickiness of the game played by the terminal user may be reduced.
Therefore, when the terminal user operates the application program on the terminal device, the terminal user manually adjusts the networking mode of the terminal device, and when the terminal device cannot automatically identify the application program operated by the terminal user, the network environment where the terminal user is located needs to be manually adjusted by the terminal user, so that the experience degree of the terminal user is influenced.
Disclosure of Invention
The embodiment of the invention aims to provide a method and a device for determining the network environment of a terminal user. The specific technical scheme is as follows:
in a first aspect, an embodiment of the present invention discloses a method for determining a network environment where an end user is located, including:
when a request message of starting a target application program by a terminal user is received, detecting a signal received by terminal equipment, wherein the target application program is an application program required to be operated by the terminal user;
determining a frequency range within which a frequency of the signal is located;
determining the network environment of the terminal user according to the frequency range, wherein the network environment comprises: a wireless broadband network environment or a mobile data traffic network environment.
Optionally, after receiving the request message for starting the target application program from the terminal user, the method further includes:
and starting the target application program.
Optionally, the detecting a signal received by the terminal device when receiving a request message for starting the target application program from the terminal user includes:
when a request message of starting a target application program of a terminal user is received, sending a first signal to a base station, and receiving a second signal returned by the base station to the terminal equipment aiming at the first signal, wherein the first signal is a signal of a communication request sent by the terminal equipment to the base station, and the second signal is: the base station broadcasts a signal of the position of the base station to the terminal equipment;
detecting the second signal;
alternatively, the first and second electrodes may be,
receiving a second signal sent by a base station when a request message of starting a target application program of a terminal user is received, wherein the second signal is a signal of a position where the base station is broadcasted to the terminal equipment by the base station;
the second signal is detected.
Optionally, the determining a frequency range in which the frequency of the signal is located includes:
and searching and determining a frequency range in which the frequency of the second signal is located in at least one preset frequency range.
Optionally, the determining, according to the frequency range, a network environment where the end user is located includes:
and determining that the terminal user operates the target application program in a mobile data traffic network environment according to the stored corresponding relation between the preset at least one frequency range and the communication system.
Optionally, the detecting a signal received by the terminal device when receiving a request message for starting the target application program from the terminal user includes:
when a request message of starting a target application program of an end user is received, a third signal is sent to a first server, and a fourth signal which is sent by the first server to the terminal equipment and is aimed at the third signal is received; the third signal is: the terminal device sends a communication request signal to the first server, where the fourth signal is: the first server broadcasts a signal of the position of the first server to the terminal equipment; the first server is: a server capable of wireless bandwidth communication with the terminal device;
detecting the fourth signal;
alternatively, the first and second electrodes may be,
receiving a fourth signal sent by a first server when receiving a request message of starting a target application program from a terminal user, wherein the fourth signal is a signal of broadcasting the position of the first server to the terminal equipment by the first server; the first server is: a server capable of wireless bandwidth communication with the terminal device;
detecting the fourth signal.
Optionally, the determining a frequency range in which the frequency of the signal is located includes:
and searching and determining a frequency range in which the frequency of the fourth signal is located in at least one preset frequency range.
Optionally, determining the network environment where the end user is located according to the frequency range includes:
and when the frequency of the fourth signal is not in any frequency range of the preset at least one frequency range, determining that the terminal user is in a wireless bandwidth network environment to operate the target application program.
Optionally, after determining the network environment where the end user is located according to the frequency range, the method further includes:
when a terminal user operates the target application program in a mobile data traffic network environment, judging whether the target application program has a mobile-free data traffic authority;
when the target application program has the mobile-free data flow right, accessing the free server according to a stored free server address accessible by the terminal equipment, wherein the free server is as follows: and when the target application program has the mobile-free data traffic right, providing a server of a mobile-free data traffic operator for the terminal equipment.
Optionally, after the determining whether the target application has the mobility-exempt data traffic authority when the end user operates the target application in the mobile data traffic network environment, the method further includes:
when the target application program does not have the mobility-free data flow right, accessing the charging server according to the stored charging server address accessible by the terminal equipment, wherein the charging server is as follows: and when the target application program does not have the mobile-free data traffic right, providing a server of a mobile data traffic operator to the terminal equipment.
Optionally, after the accessing the toll-free server according to the stored toll-free server address accessible to the terminal device when the target application has the move-free data traffic right, the method further includes:
when the fact that the frequency of the signal received by the terminal device is changed from the frequency of the second signal to the frequency of the fourth signal is detected, switching the free server accessed by the terminal device to a first server, wherein the second signal is: the base station broadcasts a signal of the position of the base station to the terminal equipment; the fourth signal is: the first server broadcasts a signal of the position of the first server to the terminal equipment; the first server is a server capable of wireless bandwidth communication with the terminal device.
Optionally, after the free server accessed by the terminal device is switched to the first server, the method further includes:
and when the fact that the frequency of the signal received by the terminal equipment is changed from the frequency of the fourth signal to the frequency of the second signal is detected, switching the first server accessed by the terminal equipment to the free server.
In a second aspect, an embodiment of the present invention further discloses an apparatus for determining a network environment where an end user is located, including:
the system comprises a detection module, a processing module and a processing module, wherein the detection module is used for detecting a signal received by terminal equipment when receiving a request message of starting a target application program from a terminal user, and the target application program is an application program required to be operated by the terminal user;
the first determining module is used for determining a frequency range in which the frequency of the signal is located;
a second determining module, configured to determine, according to the frequency range, a network environment where the end user is located, where the network environment includes: a wireless broadband network environment or a mobile data traffic network environment.
Optionally, the apparatus further comprises:
and the starting module is used for starting the target application program.
Optionally, the detection module includes:
a first sending submodule, configured to send a first signal to a base station when receiving a request message for starting a target application program from a terminal user, and receive a second signal returned by the base station to the terminal device in response to the first signal, where the first signal is a signal of a communication request sent by the terminal device to the base station, and the second signal is: the base station broadcasts a signal of the position of the base station to the terminal equipment;
a first detection submodule for detecting the second signal;
alternatively, the first and second electrodes may be,
the first sending submodule is used for receiving a second signal sent by a base station when receiving a request message of starting a target application program from a terminal user, wherein the second signal is a signal of broadcasting the position of the base station to the terminal equipment by the base station;
and the first detection submodule is used for detecting the second signal.
Optionally, the first determining module is specifically configured to,
and searching and determining a frequency range in which the frequency of the second signal is located in at least one preset frequency range.
Optionally, the second determining module is specifically configured to,
and determining that the terminal user operates the target application program in a mobile data traffic network environment according to the stored corresponding relation between the preset at least one frequency range and the communication system.
Optionally, the detection module includes:
the second sending submodule is used for sending a third signal to the first server when receiving a request message of starting a target application program from a terminal user, and receiving a fourth signal returned to the terminal equipment by the first server aiming at the third signal; the third signal is: the terminal device sends a communication request signal to the first server, where the fourth signal is: the first server broadcasts a signal of the position of the first server to the terminal equipment; the first server is: a server capable of wireless bandwidth communication with the terminal device;
a second detection submodule for detecting the fourth signal;
alternatively, the first and second electrodes may be,
the second sending submodule is used for receiving a fourth signal sent by a first server when receiving a request message of starting a target application program from a terminal user, wherein the fourth signal is a signal of broadcasting the position of the first server to the terminal equipment by the first server; the first server is: a server capable of wireless bandwidth communication with the terminal device;
and the second detection submodule is used for detecting the fourth signal.
Optionally, the first determining module is specifically configured to,
and searching and determining a frequency range in which the frequency of the fourth signal is located in at least one preset frequency range.
Optionally, the second determining module is specifically configured to,
and when the frequency of the fourth signal is not in any frequency range of the preset at least one frequency range, determining that the terminal user is in a wireless bandwidth network environment to operate the target application program.
Optionally, the apparatus further comprises:
the judging module is used for judging whether the target application program has the mobile data traffic-free authority or not when the terminal user operates the target application program in a mobile data traffic network environment;
a first access module, configured to, when the target application has a mobility-exempt data traffic right, access the free server according to a stored free server address accessible by the terminal device, where the free server is: and when the target application program has the mobile-free data traffic right, providing a server of a mobile-free data traffic operator for the terminal equipment.
Optionally, the apparatus further comprises:
a second access module, configured to, when the target application does not have a mobility-exempt data traffic right, access the charging server according to a stored charging server address accessible by the terminal device, where the charging server is: and when the target application program does not have the mobile-free data traffic right, providing a server of a mobile data traffic operator to the terminal equipment.
Optionally, the apparatus further comprises:
a first switching module, configured to switch the toll-free server accessed by the terminal device to a first server after detecting that the frequency of the signal received by the terminal device is changed from the frequency of the second signal to the frequency of the fourth signal, where the second signal is: the base station broadcasts a signal of the position of the base station to the terminal equipment; the fourth signal is: the first server broadcasts a signal of the position of the first server to the terminal equipment; the first server is a server capable of wireless bandwidth communication with the terminal device.
Optionally, the apparatus further comprises:
and the second switching module is used for switching the first server accessed by the terminal equipment to the free server after detecting that the frequency of the signal received by the terminal equipment is changed from the frequency of the fourth signal to the frequency of the second signal.
The embodiment of the invention provides a method and a device for determining a network environment of a terminal user, wherein the method comprises the following steps: when a request message of starting a target application program by a terminal user is received, starting the target application program, wherein the target application program is an application program required to be operated by the user, detecting a signal received by terminal equipment, and determining a frequency range in which the frequency of the signal received by the terminal equipment is located; and determining the network environment of the terminal user according to the determined frequency range. In the embodiment of the invention, after the target application program is started, the terminal equipment can automatically identify the network environment where the terminal equipment is located, and a terminal user does not need to manually select a networking mode, so that the experience degree of the terminal user in operating the target program is improved. Meanwhile, when the target application program operated by the terminal user does not have the mobility-free data traffic right, the terminal device accesses the first server, and when the target application program operated by the terminal user has the mobility-free data traffic right, the free server accessed by the terminal device reduces the cost generated by using the mobility data traffic when the terminal user operates the target application program, and improves the viscosity of the target application program operated by the terminal user.
Of course, it is not necessary for any product or method of practicing the invention to achieve all of the above-described advantages at the same time.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic flowchart of a method for determining a network environment of an end user according to an embodiment of the present invention;
fig. 2 is another schematic flowchart of a method for determining a network environment of an end user according to an embodiment of the present invention;
fig. 3 is a flowchart illustrating a method for determining a network environment of an end user according to an embodiment of the present invention;
fig. 4 is a flowchart of a specific embodiment of a method for determining a network environment of an end user according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of an apparatus for determining a network environment of an end user according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a detection module in the apparatus for determining a network environment of an end user according to the embodiment of the present invention;
fig. 7 is a schematic structural diagram of an apparatus for determining a network environment of an end user according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of an apparatus for determining a network environment of an end user according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Generally, when determining the network environment of the terminal user, a PING (Packet Internet Groper) is used, which is actually a network diagnostic tool applied to the terminal device, and is used to test whether a data Packet can reach a target server through an IP (Internet Protocol, Protocol for interconnection between networks), and a PING is a DOS (Disk Operating System) command, where the DOS command is a command of a DOS Operating System, and the command is a Disk-oriented Operating command and mainly includes a directory operation command, a file operation command, a Disk operation command, and other commands. The main working process of the network diagnostic tool PING is as follows: an ICMP echo (Internet Control Message Protocol echo) packet is transmitted to the destination host, and waits for reception of an echo packet for the ICMP echo packet. PING is generally used to detect network communication or non-communication, also called latency, i.e. the time interval between sending an ICMP echo and returning an echo, the larger the time interval, the slower the network speed. PING is actually a procedure to test the amount of network connectivity. PING uses the uniqueness of the IP address of a server (e.g., host) on the network to send a packet to the IP address of the target server, and then requires the other party to return a packet of the same size to determine whether two network machines are connected and communicated, and the amount of delay. And judging the network environment of the terminal equipment according to the time delay, wherein the network environment represents the network speed.
Illustratively, when an end user uses an application program of a terminal device, i.e. a mobile phone, a network environment where the terminal device is located is displayed above a screen of the terminal device, where the network environment includes: a wireless bandwidth network environment or a mobile data traffic network environment. When a wireless bandwidth WI-FI exists in a place where a terminal user is located and a function key for receiving the wireless bandwidth of the terminal device is opened, the terminal device of the terminal user can detect the wireless bandwidth and an account, if the terminal user wants to access the terminal device into a wireless bandwidth network and the account of the wireless bandwidth is not provided with a password, the terminal device can be automatically connected to the wireless bandwidth, when the account of the wireless bandwidth is provided with a unique password, the terminal user must acquire the password corresponding to the account of the wireless bandwidth to access the network through the wireless bandwidth, and after the terminal device is accessed into the network, the terminal user can operate an application program on the terminal device.
In addition, when the wireless bandwidth WI-FI exists in the location of the terminal user, and the function key of the terminal device for receiving the wireless bandwidth is in a closed state, the terminal device of the terminal user cannot detect the wireless bandwidth and the account, when the terminal user needs to access the network through the wireless bandwidth and operate the target application program on the terminal device, the function key for receiving the wireless bandwidth needs to be manually turned on to detect the network environment where the terminal user is located, and after acquiring the password for accessing the wireless bandwidth, the wireless bandwidth can be accessed through the account and the password of the wireless bandwidth to operate the target application program.
For example, when the end user needs to operate the APP of the game application on the terminal device, the game APP on the terminal device may be opened, and it is checked whether the terminal device has opened the WI-FI or the function key of the mobile data traffic, that is, whether the terminal device has accessed the network through the WI-FI or the mobile data traffic. Generally, in a state that the WI-FI or the function key of the mobile data traffic is turned on, the terminal device first accesses the WI-FI network, and when the WI-FI is not present in the location where the terminal device is located, or the WI-FI is present in the location where the terminal device is located, but the terminal device does not obtain the right to access the WI-FI (i.e., does not obtain the password to access the WI-FI), the terminal device selects the mobile data traffic to access the WI-FI network. Therefore, it is necessary for the end user to determine the network environment in which the end user is located when the end user operates "game a" on the terminal device. When the network environment is that the terminal device uses mobile data traffic to operate the game A on the terminal device, the terminal user needs to adjust the networking mode of the terminal device in a manual mode, the terminal device cannot automatically identify the game A network environment operated by the terminal user, the terminal user needs to manually adjust, and the experience of the terminal user in operating the game A is influenced.
In order to solve the problem in the prior art, embodiments of the present invention provide a method and an apparatus for determining a network environment where a terminal user is located, so as to improve the experience of the terminal user in operating a target application program.
First, a method for determining a network environment where an end user is located according to an embodiment of the present invention is described below.
It should be noted that the method for determining the network environment of the terminal user provided by the embodiment of the present invention may be applied to a terminal device, and specifically, the method for determining the network environment of the terminal user provided by the embodiment of the present invention may be applied to an application program corresponding to functional software in the terminal device, for example, a target application program described below; alternatively, it is also possible to use a plug-in for the target application, for example, a plug-in built in the target application described below.
Wherein, this terminal equipment can include: tablet computers, smart phones, and the like may use mobile data traffic electronic devices, but are not limited thereto. The end user in the embodiment of the present invention may be a player (end user operating a game), an online shopper, but is not limited thereto. The target application program in the embodiment of the invention may include: game APP, shopping APP, etc., but are not limited thereto. Preferably, the target application program in the embodiment of the present invention may be described as an example of a game APP operated by a player.
Currently, the types of games provided by various large game operators for terminal devices mainly include: stand-alone games and network games, wherein the stand-alone games can be: the terminal device may not be connected to the network when the terminal device is capable of playing an electronic game independently, i.e., when the terminal user is playing a stand-alone game on the terminal device. In general, a stand-alone game can normally operate a game without a professional game server provided by a game operator, and part of a single click game can be: and carrying out a multi-player battle game through the local area network. The network games are managed and operated by game operators by adopting professional game servers, and the professional game servers can store the attributes and data of the network games when network game players operate the games.
The single game needs a local game server (the local game server can be integrated in the terminal device), the attributes and data of the single game are stored and changed by the local game server, so the single game can normally run without depending on the network, and part of the local game servers of the single game also have the function of network connection, and players can mutually play with other network players under the network.
The network environment in the embodiment of the present invention specifically is: when the terminal device accesses the network, the terminal device uses a wireless broadband WI-FI or a network environment of mobile data traffic, for example, a communication system corresponding to mobile data traffic of china mobile that the terminal device can use includes: GSM (Global System for Mobile Communications )900, DCS (Distributed Control System) 1800, TD-SCDMA (Time Division-Synchronous Code Division Multiple Access ) and TD-LTE (Time Division Long Term Evolution), the communication System corresponding to china-unicom Mobile data traffic that can be used by the terminal device includes: the communication system corresponding to the mobile data traffic of the chinese telecommunications that can be used by the terminal device includes GSM900, DCS1800, WCDMA (Wideband Code Division Multiple Access), TD-LTE and FDD-LTE (Frequency Division duplex Long Term Evolution), which includes: CDMA (Code Division Multiple Access), CDMA2000, TD-LTE, and FDD-LTE.
As shown in fig. 1, a method for determining a network environment of an end user according to an embodiment of the present invention may include the following steps:
s101, when a request message of starting a target application program of a terminal user is received, a signal received by a terminal device is detected.
The target application program is an application program required to be operated by a terminal user; for example, when the terminal user needs to operate the APP corresponding to the "network game a", the target application program is the "network game a", and when the terminal user needs to operate the APP corresponding to the "network game B", the target application program is the "network game B".
In order to implement the object of the embodiment of the present invention, when a terminal user operates a target application program, a request message for starting the target application program by the terminal user is received. The request message for the end user to operate the target application may be: and the terminal user generates a request message for the operation of the target application program according to the APP corresponding to the target application program and the preset operation target application program after operating the target application program.
It should be noted that, the performing the predetermined operation on the APP corresponding to the target application program may be: the method includes but is not limited to APP single-click operation, double-click operation and voice operation corresponding to a target application program. Generally, different applications can be started in different operating modes. For example, when the APP corresponding to the target application program that the terminal user needs to start is "network game B", and the terminal user clicks or double clicks the APP corresponding to the "network game B" on the terminal device, a request message for starting the application program of the "network game B" is correspondingly generated, and when the request message for starting the APP corresponding to the "network game B" by the terminal user is received, the application program of the "network game B" is run on the terminal device.
Specifically, in a possible implementation manner of the embodiment of the present invention, the detecting a signal received by a terminal device when receiving a request message for starting a target application program from a terminal user includes:
when a request message of starting a target application program of a terminal user is received, sending a first signal to a base station, and receiving a second signal returned by the base station to the terminal equipment aiming at the first signal, wherein the first signal is a signal of a communication request sent by the terminal equipment to the base station, and the second signal is: the base station broadcasts a signal of the position of the base station to the terminal equipment;
detecting the second signal;
alternatively, the first and second electrodes may be,
receiving a second signal sent by a base station when a request message of starting a target application program of a terminal user is received, wherein the second signal is a signal of a position where the base station is broadcasted to the terminal equipment by the base station;
the second signal is detected.
When a terminal user performs corresponding operation on a target application program of the terminal equipment, the terminal equipment receives a request message for starting the target application program aiming at the corresponding operation.
In addition, after receiving a request message for starting the target application program from the user, the method further includes:
and starting the target application program.
In practical applications, the target application program may be started after detecting the signal received by the terminal device when receiving a request message for starting the target application program from the terminal user, or the signal received by the terminal device and the execution action of starting the target application program may be performed simultaneously when receiving a request message for starting the target application program from the terminal user.
Generally, when receiving a request message for starting a target application program from a terminal user, a terminal device may send a first signal to a nearest base station of a mobile operator according to a mobile operator network (china mobile, china unicom, or china telecom) used by the terminal device, request the base station to communicate with the terminal device, and simultaneously broadcast a second signal of a location where the base station is located to the terminal device, and establish a communication channel with the terminal device.
In practical applications, when receiving a request message for starting a target application program from a terminal user, a terminal device may receive a second signal sent by a base station and indicating that the base station is located, and communicate with the base station according to the second signal.
It should be noted that the detection of the signal received by the terminal device is only required when receiving a request message from the terminal user to start the target application.
In the embodiment of the present invention, when the target Application program is a game, an SDK (Software Development Kit) or an API (Application Programming Interface) is embedded in a program corresponding to the game to determine a network environment where a terminal user is located, that is, the SDK or the API is embedded in the game to determine whether a terminal device can access a network through mobile data traffic or WI-FI. The API is a call interface allocated by the operating system to the target application program, and the target application program makes the operating system execute a command (action) of the target application program by calling the API of the operating system. The operating system here is the operating system of the terminal device.
In addition, in another possible implementation manner of the embodiment of the present invention, the detecting a signal received by a terminal device when receiving a request message for starting a target application by a terminal user includes:
when a request message of starting a target application program of an end user is received, a third signal is sent to a first server, and a fourth signal which is sent by the first server to the terminal equipment and is aimed at the third signal is received; the third signal is: the terminal device sends a communication request signal to the first server, where the fourth signal is: the first server broadcasts a signal of the position of the first server to the terminal equipment; the first server is: a server capable of wireless bandwidth communication with the terminal device;
detecting the fourth signal; alternatively, the first and second electrodes may be,
receiving a fourth signal sent by a first server when receiving a request message of starting a target application program from a terminal user, wherein the fourth signal is a signal of broadcasting the position of the first server to the terminal equipment by the first server; the first server is: a server capable of wireless bandwidth communication with the terminal device;
detecting the fourth signal.
Specifically, after the target application is started, the terminal device sends a third signal to the first server, or the terminal device receives a fourth signal sent by the first server. When the terminal device is in a WI-FI network environment and can access the network through WI-FI, the WI-FI transmitting device (e.g., a router) transmitting the WI-FI receives the third signal transmitted by the terminal device and correspondingly returns the fourth signal.
S102, determining a frequency range where the frequency of the signal is located.
In practical applications, the frequency of the signal may be referred to as a signal frequency, or a frequency signal. The signal frequency is the bandwidth of the signal spectrum and can be understood as the difference between the highest frequency component and the lowest frequency component of the signal.
Currently, operators that provide mobile data traffic include: china mobile, china unicom and china telecom. The terminal device communicates with the base station by means of an uplink frequency transmission signal, and the base station communicates with the terminal device by means of a downlink frequency transmission signal. As shown in table 1, the communication system included in china mobile includes: GSM900, DCS1800 and TD-SCDMA, wherein, GSM900 belongs to the 2G (the 2Generation mobile communication technology, second Generation mobile communication system) network, the uplink frequency of GSM900 is 890-909MHz, the downlink frequency is 935-954MHz, and the frequency ranges of the uplink frequency and the downlink frequency of GSM900 are both 19 MHz.
Wherein, TD-LTE in the communication system of the china mobile belongs to the 4G (the 4Generation mobile communication technology) network, and uplink frequency of TD-LTE includes: 1880-1890MHz, 2320-2370MHz and 2575-2635MHz, the downlink frequency includes: 1880-1890MHz, 2320-2370MHz and 2575-2635MHz, the frequency ranges of the uplink frequency and the downlink frequency of the TD-LTE are 130 MHz.
For another example, WCDMA in the china unicom communication system belongs to a 3G (the 3 Generation mobile communication technology) network, and the uplink frequency of the WCDMA includes: 1940-1955MHz, the downlink frequency comprises: 2130 and 2145MHz, wherein the frequency ranges of the upstream frequency and the downstream frequency of the WCDMA are both 15 MHz.
For another example, TD-LTE in the communication system of chinese telecommunications belongs to the 4G (the 4Generation mobile communication technology) network, wherein the uplink frequency of TD-LTE includes: 2370-: 2370 and 2635 and 2655MHz, and the frequency ranges of the uplink frequency and the downlink frequency of the TD-LTE are 130 MHz.
It can be seen that when a terminal device uses mobile data traffic of different operators for communication, the frequency ranges used by the terminal device are different. Therefore, the frequency range of the frequency of the signal received by the terminal equipment is determined by detecting the signal received by the terminal equipment. The frequency range of the second signal may be any one of the communication systems shown in table 1.
TABLE 1
Figure BDA0001193025490000151
Specifically, in a possible implementation manner of the embodiment of the present invention, the determining a frequency range in which the frequency of the signal is located includes:
and searching and determining a frequency range in which the frequency of the second signal is located in at least one preset frequency range.
Here, at least one frequency range is preset as a frequency range corresponding to each communication system shown in table 1. When the second signal is received, the frequency range in which the frequency of the second signal is located may be quickly determined according to at least one frequency range shown in table 1.
Specifically, in another possible implementation manner of the embodiment of the present invention, the determining a frequency range in which the frequency of the signal is located includes:
and searching and determining a frequency range in which the frequency of the fourth signal is located in at least one preset frequency range.
The method comprises the steps of detecting a fourth signal received by the terminal equipment, determining the frequency of the fourth signal, and searching the frequency of the fourth signal in at least one frequency range shown in table 1.
In practical applications, the communication operator networks (china mobile, china unicom, and china telecom) supported by the terminal device may be detected, and the frequency range where the frequency of the fourth signal is located may be searched and determined in the communication operator shown in table 1.
S103, determining the network environment of the terminal user according to the frequency range.
Wherein the network environment comprises: the wireless broadband network environment or the network environment in which the terminal device uses mobile data traffic to access the internet.
For example, when the frequency of the second signal is the XXX value, and the XXX value belongs to the frequency range of 1880-.
It can be understood that, when the terminal device of the terminal user can only support a network of china mobile, when the terminal user is near a base station of china mobile, it is better to receive the signal of the base station, the communication system between the terminal device and the base station may be a TD-LTE corresponding 4G network, when the terminal user moves to a basement or a place far away from the base station, the terminal device receives a worse signal sent by the base station, which may be a GSM900 corresponding 2G network, or the terminal device cannot receive the signal sent by any base station.
Specifically, in a possible implementation manner of the embodiment of the present invention, the determining, according to the frequency range, a network environment where the end user is located includes:
and determining that the terminal user operates the target application program in a mobile data traffic network environment according to the stored corresponding relation between the preset at least one frequency range and the communication system.
When it is determined that the signal received by the terminal device is within any frequency range of the preset at least one frequency range, it may be determined that the terminal user is operating the target application program in the mobile data traffic network environment according to the correspondence in table 1.
Specifically, in another possible implementation manner of the embodiment of the present invention, determining the network environment where the end user is located according to the frequency range includes:
and when the frequency of the fourth signal is not in any frequency range of the preset at least one frequency range, determining that the terminal user is in a wireless bandwidth network environment to operate the target application program.
It is understood that when the received fourth signal of the terminal device is not in any of the frequency ranges in table 1, it is determined that the terminal user does not use the mobile data traffic for performing the relevant operation on the terminal device.
In practical applications, the network environment where the terminal user is determined may be determined through the SDK or API in the target application.
For example, when running the SDK in the target application, the following settings are set:
when case 0:
connectionType=KSCNetworkConncectionTypeConnectionUnknown;
break;
when case 1:
connectionType=KSCNetworkConncectionTypeCell2G;
break;
when case 2:
connectionType=KSCNetworkConncectionTypeCell3G;
break;
when case 3:
connectionType=KSCNetworkConncectionTypeCell4G;
break;
when case 4: // quasi 4G derived from LTE mobility
connectionType=KSCNetworkConncectionTypeCell4G;
break;
When case 5:
connectionType=KSCNetworkConncectionTypeWifi;
break;
the above procedure is a determination process that the terminal device uses the network environment of the chinese mobile operator, case represents a network state where the network environment is located, case 0 represents that the terminal device is in a no-network state, that is, "connectionType ═ kscnetworking connectionconnectionunknown", case1 represents a 2G network where the terminal device moves in china, that is, "connectionType ═ kscnetworking connectionType cell 2G", case2 represents a 3G network where the terminal device moves in china, that is, "connectionType ═ kscnetworking connectionType cell 3G", case 64 represents a quasi-4G network where the terminal device moves in china, that is, "connectionType ═ kscnetworking type ═ 3 cell G", case 63 represents that the terminal device moves in china, that "ksontype ═ kscnetworking type", and case 6778 represents that the terminal device is in a quasi-cnetworking environment, that the terminal device is in a mobile network state, that the terminal device is in a ksoneftnetworktype — ksonetype. Generally, when determining a frequency range in which a frequency of a signal received by a terminal device is located, the frequency range is in one-to-one correspondence with a case to determine a network state in which the terminal device is located, that is, a network environment in which a terminal user is located.
In the embodiment of the invention, after the target application program is started, the terminal equipment can automatically identify the network environment where the terminal equipment is located, and a terminal user does not need to manually select a networking mode, so that the experience degree of the terminal user in operating the target program is improved.
As shown in fig. 2, a method for determining a network environment of an end user according to an embodiment of the present invention includes the following steps:
s201, when receiving a request message of starting a target application program from a terminal user, detecting a signal received by terminal equipment;
s202, determining a frequency range where the frequency of the signal is located;
s203, determining the network environment of the terminal user according to the frequency range;
s201 to S203 are the same as S101 to S103, and therefore, the description thereof is omitted.
Starting from S204, the method for determining the network environment of the end user includes the following steps:
s204, when the terminal user operates the target application program in a mobile data traffic network environment, judging whether the target application program has the permission of mobile-free data traffic;
for the terminal user, when the terminal user operates the target application, the most concern is whether the target application has the mobility-exempt data traffic authority, so when the terminal user operates the target application by using the mobile data traffic, whether the target application has the mobility-exempt data traffic authority or not can be judged when the SDK or the API in the target application is run. For example, when a player operates a game, it is first desirable to determine whether to operate the game with move-free data traffic.
S205, when the target application program has the mobile-free data flow right, accessing the free server according to the stored free server address accessible by the terminal equipment;
wherein the free server is: and when the target application program has the mobile-free data traffic right, providing a server of a mobile-free data traffic operator for the terminal equipment.
In order to attract terminal users, a target application program operator sets one or more application programs in a plurality of application programs managed by the operator as application programs with the permission of the mobile-free data traffic. For example, when the target application is "game a", in order to increase the stickiness of the end user to play "game a", the "game a" may be set as an application having a mobile-free data traffic authority, so that when there is no WI-FI network environment, the end user may play "game a" when he wants to play "game a", without worrying about using mobile communication charges using mobile data traffic and abandoning the play of "game a".
S206, when the target application program does not have the mobility-free data flow right, accessing the billing server according to the stored billing server address accessible by the terminal equipment.
Wherein, the charging server is: and when the target application program does not have the mobile-free data traffic right, providing a server of a mobile data traffic operator to the terminal equipment.
It can be understood that when the terminal device runs the target application and the target application does not have the mobile-exempt data traffic right, the mobile data traffic generated by the terminal device running the target application is charged into the mobile communication charge of the terminal user, and generally, because the charge generated by the mobile data traffic is called traffic charge, the operator (china mobile, china unicom or chinese telecom) can deduct the mobile communication charge paid by the terminal user.
Further, the network environment where the end user is located may change due to the change of the location or motion state of the end user, for example: due to the fault of the device for transmitting the WI-FI wireless signal in the place where the terminal user is located, the terminal device of the terminal user cannot receive the WI-FI signal, or when the terminal user enters the place with the WI-FI from the place without the WI-FI signal, the terminal device detects the WI-FI and simultaneously obtains a password for accessing the WI-FI in the WI-FI place, so that the frequency of the signal received by the terminal device changes, or the terminal user stops the application program which is operated and has the mobile-free data traffic, and starts and operates the application program which does not have the mobile-free data traffic.
For example, "game a" operated by the end user has the permission of the move-free data traffic, and "game B" operated by the end user does not have the permission of the move-free data traffic, the server accessed by the terminal device is different when the end user operates "game a" or "game B". As shown in fig. 3, a method for determining a network environment of an end user according to an embodiment of the present invention may include the following steps:
s301, when receiving a request message of starting a target application program from a terminal user, detecting a signal received by terminal equipment;
s302, determining a frequency range where the frequency of the signal is;
s303, determining the network environment of the terminal user according to the frequency range;
s304, when the terminal user operates the target application program in a mobile data traffic network environment, judging whether the target application program has the permission of mobile-free data traffic;
s305, when the target application program has the mobile-free data flow right, accessing the free server according to the stored free server address accessible by the terminal equipment;
wherein the free server is: and when the target application program has the mobile-free data traffic right, providing a server of a mobile-free data traffic operator for the terminal equipment.
S306, when the target application program does not have the mobility-free data flow right, accessing the charging server according to the stored charging server address accessible by the terminal equipment;
wherein, the charging server is: and when the target application program does not have the mobile-free data traffic right, providing a server of a mobile data traffic operator to the terminal equipment.
S301 to S206 are the same as S201 to S106, and therefore, are not described herein again.
Starting at 307, the method for determining the network environment of the end user comprises the following steps:
s307, when it is detected that the frequency of the signal received by the terminal device is changed from the frequency of the second signal to the frequency of the fourth signal, switching the toll-free server accessed by the terminal device to a first server, where the second signal is: the base station broadcasts a signal of the position of the base station to the terminal equipment; the fourth signal is: the first server broadcasts a signal of the position of the first server to the terminal equipment; the first server is a server capable of wireless bandwidth communication with the terminal device.
For example, after the end user operates the target application program on the terminal device with mobile data traffic for a period of time in an outdoor location, the end user enters a coffee shop, the coffee shop provides free WI-FI, and then the terminal device detects the WI-FI and receives a signal sent by the WI-FI, and then switches a free server accessed by the terminal device to the billing server.
S308, when the fact that the frequency of the signal received by the terminal device is changed from the frequency of the fourth signal to the frequency of the second signal is detected, the first server accessed by the terminal device is switched to the free server.
For example, when the terminal user moves from a place with WI-FI to a place without WI-FI, the frequency of the signal received by the terminal device is changed from the frequency of the fourth signal to the frequency of the second signal, and the server accessed by the terminal device is switched from the first server to the free server.
In the embodiment of the invention, after the target application program is started, the terminal equipment can automatically identify the network environment where the terminal equipment is located, and a terminal user does not need to manually select a networking mode, so that the experience degree of the terminal user in operating the target program is improved. Meanwhile, when the target application program operated by the terminal user does not have the permission of the movement-free data flow and the place where the terminal user is located does not have free WI-FI, the terminal device accesses the charging server, and when the target application program operated by the terminal user has the permission of the movement-free data flow, the free server accessed by the terminal device reduces the cost generated by using the movement data flow when the terminal user operates the target application program, and improves the viscosity of the target program operated by the terminal user.
The method for determining the network environment of the end user provided by the embodiment of the invention is described below with reference to a specific application example.
Specifically, in a specific embodiment in which the terminal device is a smart phone, the terminal user is a smart phone user, and the target application is "game a", as shown in fig. 4, the method may include the following steps:
s401, when a request message of starting a game A by a user of the smart phone is received, detecting a signal received by the smart phone;
s402, determining a frequency range of the frequency of the signal received by the smart phone;
s403, determining the network environment of the smart phone user according to the frequency range;
s401 to S403 are the same as S101 to S103, and therefore, the description thereof is omitted.
S404, judging whether the smart phone user uses the wireless bandwidth to operate a game A according to the determined network environment;
here, the network environment includes a wireless bandwidth network environment and a mobile data traffic network environment. When the network environment is a wireless bandwidth network environment, the smart phone user is determined to use the wireless bandwidth to operate the game A, and when the network environment is mobile data traffic, the smart phone user is determined to use the mobile data traffic to operate the game A.
S405, if the judgment result is yes, the smart phone accesses the first server; the first server is a server capable of carrying out wireless bandwidth communication with the smart phone;
it will be appreciated that when the smartphone user operates "game a" using wireless bandwidth, the mobile data traffic used by the smartphone user to operate "game a" is also free.
S406, if the judgment result is negative, judging whether the game A has the movement-free data flow permission;
when a smart phone user operates a game a by using mobile data traffic, it needs to be determined whether the game a has a mobile-free data traffic permission.
And S407, if the game A does not have the mobile-free data flow permission, accessing the charging server according to the stored charging server address accessible by the smart phone.
Wherein, the charging server is: and when the game A does not have the mobile-free data traffic right, providing a server of a mobile data traffic operator for the smart phone.
S408, if the game A has the permission of the mobile-free data flow, determining an operator providing the mobile-free data flow for the smart phone according to the frequency range;
when game a has the mobile-free data traffic right, an operator of the mobile data traffic being used by the smartphone is determined according to the frequency range, and the operator may be any one of china mobile, china telecom and china unicom.
S409, initializing an interface corresponding to the operator;
it will be appreciated that the interface is initiated in order to invoke an application in the smartphone and to access the operator's server in accordance with the invoked application.
S410, accessing a free server from the corresponding interface, wherein the free server is as follows: and when the game A has the mobile-free data traffic right, providing a server of a mobile-free data traffic operator for the smart phone.
In the embodiment of the invention, after the game A is started, when a smart phone user operates the game A by using wireless bandwidth, no mobile-free data traffic processing is carried out, when the smart phone user operates the game A by using mobile data traffic, whether the game A has the mobile-free data traffic right or not is judged, when the game A has the mobile-free data traffic, an operator using the mobile data traffic is determined, an interface of the operator is initialized, and a free server of the operator is accessed through the interface. Therefore, the cost generated by using the mobile data traffic when the smart phone user operates the game A is reduced, and the viscosity of the smart phone user operating the game A is improved.
Corresponding to the above method embodiment for determining the network environment of the end user, an embodiment of the present invention further provides an apparatus for determining the network environment of the end user, which is applied to a terminal device, as shown in fig. 5, where the apparatus 500 may include:
a detection module 510, configured to detect a signal received by a terminal device when receiving a request message for starting a target application program from a terminal user, where the target application program is an application program that the terminal user needs to operate;
a first determining module 520, configured to determine a frequency range in which the frequency of the signal is located;
a second determining module 530, configured to determine, according to the frequency range, a network environment where the end user is located, where the network environment includes: a wireless broadband network environment or a mobile data traffic network environment.
Optionally, the apparatus further comprises:
and the starting module is used for starting the target application program.
Optionally, as shown in fig. 6, a detection module 510 in an apparatus for determining a network environment where an end user is located according to an embodiment of the present invention may include:
a first sending sub-module 511, configured to send a first signal to a base station when receiving a request message for starting a target application program from a terminal user, and receive a second signal returned by the base station to the terminal device in response to the first signal, where the first signal is a signal of a communication request sent by the terminal device to the base station, and the second signal is: the base station broadcasts a signal of the position of the base station to the terminal equipment;
a first detection submodule 512, configured to detect the second signal;
alternatively, the first and second electrodes may be,
a first sending submodule 511, configured to receive a second signal sent by a base station when receiving a request message for starting a target application program from a terminal user, where the second signal is a signal indicating that the base station broadcasts a position of the base station to the terminal device;
a first detection submodule 512, configured to detect the second signal.
Optionally, the first determining module is specifically configured to,
and searching and determining a frequency range in which the frequency of the second signal is located in at least one preset frequency range.
Optionally, the second determining module is specifically configured to,
and determining that the terminal user operates the target application program in a mobile data traffic network environment according to the stored corresponding relation between the preset at least one frequency range and the communication system.
Optionally, the detection module 510 in the apparatus for determining the network environment of the end user provided in the embodiment of the present invention may include:
a second sending submodule 513, configured to send a third signal to the first server when receiving a request message for starting a target application from an end user, and receive a fourth signal returned by the first server to the terminal device in response to the third signal; the third signal is: the terminal device sends a communication request signal to the first server, where the fourth signal is: the first server broadcasts a signal of the position of the first server to the terminal equipment; the first server is: a server capable of wireless bandwidth communication with the terminal device;
a second detection submodule 514 for detecting the fourth signal;
alternatively, the first and second electrodes may be,
a second sending submodule 513, configured to receive a fourth signal sent by a first server when receiving a request message for starting a target application program from a terminal user, where the fourth signal is a signal indicating that the first server broadcasts, to the terminal device, a location where the first server is located; the first server is: a server capable of wireless bandwidth communication with the terminal device;
a second detection submodule 514 for detecting the fourth signal.
Optionally, the first determining module is specifically configured to,
and searching and determining a frequency range in which the frequency of the fourth signal is located in at least one preset frequency range.
Optionally, the second determining module is specifically configured to,
and when the frequency of the fourth signal is not in any frequency range of the preset at least one frequency range, determining that the terminal user is in a wireless bandwidth network environment to operate the target application program.
In the embodiment of the invention, after the target application program is started, the terminal equipment can automatically identify the network environment where the terminal equipment is located, and a terminal user does not need to manually select a networking mode, so that the experience degree of the terminal user in operating the target program is improved.
Further, on the basis of including the detecting module 510, the first determining module 520, and the second determining module 530, as shown in fig. 7, the apparatus 500 for determining the network environment where the end user is located according to the embodiment of the present invention may further include:
a determining module 540, configured to determine whether the target application program has a mobility-free data traffic permission when the terminal user operates the target application program in a mobile data traffic network environment;
a first accessing module 550, configured to, when the target application has a mobility-exempt data traffic right, access a free server according to a stored free server address accessible by the terminal device, where the free server is: and when the target application program has the mobile-free data traffic right, providing a server of a mobile-free data traffic operator for the terminal equipment.
Optionally, the apparatus further comprises:
a second accessing module 560, configured to, when the target application does not have the mobility-exempt data traffic right, access the charging server according to a stored charging server address accessible by the terminal device, where the charging server is: and when the target application program does not have the mobile-free data traffic right, providing a server of a mobile data traffic operator for the terminal equipment to access.
In the embodiment of the invention, after the target application program is started, the terminal equipment can automatically identify the network environment where the terminal equipment is located, and a terminal user does not need to manually select a networking mode, so that the experience degree of the terminal user in operating the target program is improved. Meanwhile, when the target application program operated by the terminal user does not have the mobility-free data flow right, the terminal device accesses the billing server, and when the target application program operated by the terminal user has the mobility-free data flow right, the free server accessed by the terminal device reduces the cost generated by using the mobility data flow when the terminal user operates the target application program, and improves the viscosity of the target program operated by the terminal user.
Further, on the basis of including the detecting module 510, the first determining module 520, the second determining module 530, the determining module 540, the first accessing module 550 and the second accessing module, as shown in fig. 8, the apparatus 500 for determining the network environment of the end user according to the embodiment of the present invention may further include:
a first switching module 570, configured to switch, after detecting that the frequency of the signal received by the terminal device is changed from the frequency of the second signal to the frequency of the fourth signal, the toll-free server accessed by the terminal device to the charging server, where the second signal is: the base station broadcasts a signal of the position of the base station to the terminal equipment; the fourth signal is: the first server broadcasts a signal of the position of the first server to the terminal equipment; the first server is a server capable of wireless bandwidth communication with the terminal device.
Optionally, the apparatus further comprises:
a second switching module 580, configured to switch the first server accessed by the terminal device to the free server after detecting that the frequency of the signal received by the terminal device is changed from the frequency of the fourth signal to the frequency of the second signal.
In the embodiment of the invention, after the target application program is started, the terminal equipment can automatically identify the network environment where the terminal equipment is located, and a terminal user does not need to manually select a networking mode, so that the experience degree of the terminal user in operating the target program is improved. Meanwhile, when the target application program operated by the terminal user does not have the mobility-free data flow right, the terminal device accesses the billing server, and when the target application program operated by the terminal user has the mobility-free data flow right, the free server accessed by the terminal device reduces the cost generated by using the mobility data flow when the terminal user operates the target application program, and improves the viscosity of the target program operated by the terminal user. And when the terminal user changes the operated application program, switching the server accessed by the terminal equipment according to the characteristic of whether the application program has the permission of the mobile-free data flow.
For the device embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, refer to the partial description of the method embodiment.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
All the embodiments in the present specification are described in a related manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the system embodiment, since it is substantially similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
The above description is only for the preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention shall fall within the protection scope of the present invention.

Claims (22)

1. A method for determining the network environment of an end user is applied to a terminal device, and comprises the following steps:
when a request message of starting a target application program by a terminal user is received, detecting a signal received by terminal equipment, wherein the target application program is an application program required to be operated by the terminal user;
determining a frequency range within which a frequency of the signal is located;
determining the network environment of the terminal user according to the frequency range, wherein the network environment comprises: a wireless broadband network environment or a mobile data traffic network environment;
when a terminal user operates the target application program in a mobile data traffic network environment, judging whether the target application program has a mobile-free data traffic authority;
when the target application program has the mobile-free data flow right, accessing the free server according to a stored free server address accessible by the terminal equipment, wherein the free server is as follows: and when the target application program has the mobile-free data traffic right, providing a server of a mobile-free data traffic operator for the terminal equipment.
2. The method of claim 1, wherein after receiving the end-user request message to launch the target application, the method further comprises:
and starting the target application program.
3. The method of claim 1, wherein detecting a signal received by the terminal device upon receiving a request message from an end user to launch a target application comprises:
when a request message of starting a target application program of a terminal user is received, sending a first signal to a base station, and receiving a second signal returned by the base station to the terminal equipment aiming at the first signal, wherein the first signal is a signal of a communication request sent by the terminal equipment to the base station, and the second signal is: the base station broadcasts a signal of the position of the base station to the terminal equipment;
detecting the second signal;
alternatively, the first and second electrodes may be,
receiving a second signal sent by a base station when a request message of starting a target application program of a terminal user is received, wherein the second signal is a signal of a position where the base station is broadcasted to the terminal equipment by the base station;
the second signal is detected.
4. The method of claim 3, wherein determining a frequency range in which the frequency of the signal is located comprises:
and searching and determining a frequency range in which the frequency of the second signal is located in at least one preset frequency range.
5. The method of claim 4, wherein said determining the network environment of the end user according to the frequency range comprises:
and determining that the terminal user operates the target application program in a mobile data traffic network environment according to the stored corresponding relation between the preset at least one frequency range and the communication system.
6. The method of claim 1, wherein detecting a signal received by the terminal device upon receiving a request message from an end user to launch a target application comprises:
when a request message of starting a target application program of an end user is received, a third signal is sent to a first server, and a fourth signal which is sent by the first server to the terminal equipment and is aimed at the third signal is received; the third signal is: the terminal device sends a communication request signal to the first server, where the fourth signal is: the first server broadcasts a signal of the position of the first server to the terminal equipment; the first server is: a server capable of wireless bandwidth communication with the terminal device;
detecting the fourth signal;
alternatively, the first and second electrodes may be,
receiving a fourth signal sent by a first server when receiving a request message of starting a target application program from a terminal user, wherein the fourth signal is a signal of broadcasting the position of the first server to the terminal equipment by the first server; the first server is: a server capable of wireless bandwidth communication with the terminal device;
detecting the fourth signal.
7. The method of claim 6, wherein determining a frequency range in which the frequency of the signal is located comprises:
and searching and determining a frequency range in which the frequency of the fourth signal is located in at least one preset frequency range.
8. The method of claim 7, wherein determining the network environment of the end user based on the frequency range comprises:
and when the frequency of the fourth signal is not in any frequency range of the preset at least one frequency range, determining that the terminal user is in a wireless broadband network environment to operate the target application program.
9. The method of any one of claims 1 to 8, wherein after determining whether the target application has mobility-exempt data traffic rights when the end user operates the target application in a mobility data traffic network environment, the method further comprises:
when the target application program does not have the mobility-free data flow right, accessing the charging server according to the stored charging server address accessible by the terminal equipment, wherein the charging server is as follows: and when the target application program does not have the mobile-free data traffic right, providing a server of a mobile data traffic operator to the terminal equipment.
10. The method of claim 9, wherein after accessing the toll-free server according to a stored toll-free server address accessible to the terminal device when the target application has the move-free data traffic right, the method further comprises:
when the fact that the frequency of the signal received by the terminal device is changed from the frequency of a second signal to the frequency of a fourth signal is detected, switching the toll-free server accessed by the terminal device to a first server, wherein the second signal is as follows: the base station broadcasts a signal of the position of the base station to the terminal equipment; the fourth signal is: the first server broadcasts a signal of the position of the first server to the terminal equipment; the first server is a server capable of wireless bandwidth communication with the terminal device.
11. The method of claim 10, wherein after the switching the toll-free server accessed by the terminal device to the first server, the method further comprises:
and when the fact that the frequency of the signal received by the terminal equipment is changed from the frequency of the fourth signal to the frequency of the second signal is detected, switching the first server accessed by the terminal equipment to the free server.
12. An apparatus for determining the network environment of an end user, applied to a terminal device, includes:
the system comprises a detection module, a processing module and a processing module, wherein the detection module is used for detecting a signal received by terminal equipment when receiving a request message of starting a target application program from a terminal user, and the target application program is an application program required to be operated by the terminal user;
the first determining module is used for determining a frequency range in which the frequency of the signal is located;
a second determining module, configured to determine, according to the frequency range, a network environment where the end user is located, where the network environment includes: a wireless broadband network environment or a mobile data traffic network environment;
the judging module is used for judging whether the target application program has the mobile data traffic-free authority or not when the terminal user operates the target application program in a mobile data traffic network environment;
a first access module, configured to, when the target application has a mobility-exempt data traffic right, access the free server according to a stored free server address accessible by the terminal device, where the free server is: and when the target application program has the mobile-free data traffic right, providing a server of a mobile-free data traffic operator for the terminal equipment.
13. The apparatus of claim 12, further comprising:
and the starting module is used for starting the target application program.
14. The apparatus of claim 12, wherein the detection module comprises:
a first sending submodule, configured to send a first signal to a base station when receiving a request message for starting a target application program from a terminal user, and receive a second signal returned by the base station to the terminal device in response to the first signal, where the first signal is a signal of a communication request sent by the terminal device to the base station, and the second signal is: the base station broadcasts a signal of the position of the base station to the terminal equipment;
a first detection submodule for detecting the second signal;
alternatively, the first and second electrodes may be,
the first sending submodule is used for receiving a second signal sent by a base station when receiving a request message of starting a target application program from a terminal user, wherein the second signal is a signal of broadcasting the position of the base station to the terminal equipment by the base station;
and the first detection submodule is used for detecting the second signal.
15. The apparatus of claim 14, wherein the first determining module is specifically configured to,
and searching and determining a frequency range in which the frequency of the second signal is located in at least one preset frequency range.
16. The apparatus of claim 15, wherein the second determining module is specifically configured to,
and determining that the terminal user operates the target application program in a mobile data traffic network environment according to the stored corresponding relation between the preset at least one frequency range and the communication system.
17. The apparatus of claim 12, wherein the detection module comprises:
the second sending submodule is used for sending a third signal to the first server when receiving a request message of starting a target application program from a terminal user, and receiving a fourth signal returned to the terminal equipment by the first server aiming at the third signal; the third signal is: the terminal device sends a communication request signal to the first server, where the fourth signal is: the first server broadcasts a signal of the position of the first server to the terminal equipment; the first server is: a server capable of wireless bandwidth communication with the terminal device;
a second detection submodule for detecting the fourth signal;
alternatively, the first and second electrodes may be,
the second sending submodule is used for receiving a fourth signal sent by a first server when receiving a request message of starting a target application program from a terminal user, wherein the fourth signal is a signal of broadcasting the position of the first server to the terminal equipment by the first server; the first server is: a server capable of wireless bandwidth communication with the terminal device;
and the second detection submodule is used for detecting the fourth signal.
18. The apparatus of claim 17, wherein the first determining module is specifically configured to,
and searching and determining a frequency range in which the frequency of the fourth signal is located in at least one preset frequency range.
19. The apparatus of claim 18, wherein the second determining module is specifically configured to,
and when the frequency of the fourth signal is not in any frequency range of the preset at least one frequency range, determining that the terminal user is in a wireless bandwidth network environment to operate the target application program.
20. The apparatus of any one of claims 12 to 19, further comprising:
a second access module, configured to, when the target application does not have a mobility-exempt data traffic right, access the charging server according to a stored charging server address accessible by the terminal device, where the charging server is: and when the target application program does not have the mobile-free data traffic right, providing a server of a mobile data traffic operator to the terminal equipment.
21. The apparatus of claim 20, further comprising:
a first switching module, configured to switch the toll-free server accessed by the terminal device to a first server after detecting that a frequency of a signal received by the terminal device changes from a frequency of a second signal to a frequency of a fourth signal, where the second signal is: the base station broadcasts a signal of the position of the base station to the terminal equipment; the fourth signal is: the first server broadcasts a signal of the position of the first server to the terminal equipment; the first server is a server capable of wireless bandwidth communication with the terminal device.
22. The apparatus of claim 21, further comprising:
and the second switching module is used for switching the first server accessed by the terminal equipment to the free server after detecting that the frequency of the signal received by the terminal equipment is changed from the frequency of the fourth signal to the frequency of the second signal.
CN201611222912.9A 2016-12-27 2016-12-27 Method and device for determining network environment of terminal user Active CN108243414B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611222912.9A CN108243414B (en) 2016-12-27 2016-12-27 Method and device for determining network environment of terminal user

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611222912.9A CN108243414B (en) 2016-12-27 2016-12-27 Method and device for determining network environment of terminal user

Publications (2)

Publication Number Publication Date
CN108243414A CN108243414A (en) 2018-07-03
CN108243414B true CN108243414B (en) 2021-06-18

Family

ID=62702464

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611222912.9A Active CN108243414B (en) 2016-12-27 2016-12-27 Method and device for determining network environment of terminal user

Country Status (1)

Country Link
CN (1) CN108243414B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109151748A (en) * 2018-08-23 2019-01-04 深圳市万普拉斯科技有限公司 Flow card switching method and device
CN109640178B (en) * 2018-12-29 2021-10-01 Oppo广东移动通信有限公司 Network shunting method and related equipment
US20210153118A1 (en) * 2019-11-20 2021-05-20 Mediatek Inc. Method for referring to application scenario to manage hardware component of electronic device and associated non-transitory machine-readable medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102685692A (en) * 2011-03-17 2012-09-19 中兴通讯股份有限公司 Multimode mobile phone payment user equipment, payment method and payment system
CN103970550A (en) * 2013-01-30 2014-08-06 腾讯科技(深圳)有限公司 Software updating prompting method and device for mobile terminal
CN104380769A (en) * 2014-04-18 2015-02-25 华为技术有限公司 Information reminding method, apparatus, and electronic terminal
CN105100340A (en) * 2014-04-15 2015-11-25 深圳富泰宏精密工业有限公司 System, mobile terminal and method capable of correcting Doppler effect

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8996061B2 (en) * 2012-09-21 2015-03-31 Bae Systems Information And Electronic Systems Integration Inc. Bridging communications between tactical SDR and cellular telephone networks
CN104731808A (en) * 2013-12-20 2015-06-24 腾讯科技(深圳)有限公司 Browser webpage loading method and browser webpage loading device
CN109462831B (en) * 2015-06-30 2021-02-23 北京奇虎科技有限公司 Method, distribution server and system for accessing network by application program in mobile terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102685692A (en) * 2011-03-17 2012-09-19 中兴通讯股份有限公司 Multimode mobile phone payment user equipment, payment method and payment system
CN103970550A (en) * 2013-01-30 2014-08-06 腾讯科技(深圳)有限公司 Software updating prompting method and device for mobile terminal
CN105100340A (en) * 2014-04-15 2015-11-25 深圳富泰宏精密工业有限公司 System, mobile terminal and method capable of correcting Doppler effect
CN104380769A (en) * 2014-04-18 2015-02-25 华为技术有限公司 Information reminding method, apparatus, and electronic terminal

Also Published As

Publication number Publication date
CN108243414A (en) 2018-07-03

Similar Documents

Publication Publication Date Title
CN111656754B (en) Method for edge computing service and electronic device thereof
US10187451B2 (en) Method, mobile device and system for transmitting files
CN106817731B (en) Network switching method of terminal and terminal equipment
US9591675B2 (en) Method and apparatus for connecting short-range wireless communication in terminal
EP2434830B1 (en) Adaptive data communication control method and portable device for supporting the same
JP2021513824A (en) Data path selection method and equipment
EP3585099B1 (en) Vowifi call processing method of mobile terminal and mobile terminal
US20150237497A1 (en) Method of selecting an active sim from multiple sims and a wireless device utilizing the same
CN105722059B (en) Mobile terminal and communication method of dual-modem system
CN108243414B (en) Method and device for determining network environment of terminal user
EP3869713B1 (en) Electromagnetic interference control method and related apparatus
EP3637946A1 (en) Apparatus and method for providing access point function in portable communication system
WO2020147645A1 (en) Link aggregation realization method and related product
WO2018228387A1 (en) Communication method, device and system, non-transitory computer readable storage medium, computer program product and electronic device
US11516705B2 (en) Network performance improvement method and device
CN116847419A (en) Wireless communication method, device and system
CN112464208B (en) File access method, mobile terminal and computer readable storage medium
US20140344423A1 (en) Method, apparatus and system for switching function mode
KR100668641B1 (en) Method for Performing Handoff without Changing IP of Mobile Subscriber Station for Use in Portable Internet Network
CN104092742A (en) Method for conducing remote setting and maintaining on another intelligent device through smart phone
US20120142368A1 (en) Obtaining location server address on a mobile device
CN103491609A (en) Method, system and device for carry out communication between mobile terminals
KR100792832B1 (en) Method And System for Measuring Perceived Communication Quality by Using Mobile Communication Network
CN112351464B (en) WiFi connection method, terminal and storage medium
CN113079512B (en) Method, device and storage medium for supporting terminal roaming

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
GR01 Patent grant
GR01 Patent grant