CN113692026B - Network connection method, device, terminal and storage medium - Google Patents

Network connection method, device, terminal and storage medium Download PDF

Info

Publication number
CN113692026B
CN113692026B CN202110962935.8A CN202110962935A CN113692026B CN 113692026 B CN113692026 B CN 113692026B CN 202110962935 A CN202110962935 A CN 202110962935A CN 113692026 B CN113692026 B CN 113692026B
Authority
CN
China
Prior art keywords
manual
network
connection
terminal
wireless network
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
CN202110962935.8A
Other languages
Chinese (zh)
Other versions
CN113692026A (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN202110962935.8A priority Critical patent/CN113692026B/en
Publication of CN113692026A publication Critical patent/CN113692026A/en
Application granted granted Critical
Publication of CN113692026B publication Critical patent/CN113692026B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/0005Control or signalling for completing the hand-off
    • H04W36/0011Control or signalling for completing the hand-off for data sessions of end-to-end connection
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/24Reselection being triggered by specific parameters
    • H04W36/30Reselection being triggered by specific parameters by measured or perceived connection quality data
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/24Reselection being triggered by specific parameters
    • H04W36/32Reselection being triggered by specific parameters by location or mobility data, e.g. speed data

Landscapes

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

Abstract

The present application relates to the field of computer technologies, and in particular, to a network connection method, a device, a terminal, and a storage medium. The network connection method comprises the following steps: acquiring terminal position information, and acquiring network manual connection times corresponding to the terminal position information; and if the manual connection times of the network meet the connection conditions, connecting the control terminal to the network corresponding to the connection conditions. By adopting the application, the use experience of network connection can be improved.

Description

Network connection method, device, terminal and storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a network connection method, a device, a terminal, and a storage medium.
Background
With the development of science and technology, the development of terminals is also more and more rapid, so improving the convenience of users to use the terminals is a focus of attention of users. The terminal may be connected not only to a wireless network but also to a data communication network. For example, the terminal may be connected to the WiFi network for free in the WiFi network. But the communication quality of the WiFi network is poor, and the terminal can be connected to the data communication network when the communication quality of the data communication network is good. But the use experience is poor when the terminal connects to the network.
Disclosure of Invention
The embodiment of the application provides a network connection method, a device, a terminal and a storage medium, which can improve the use experience of network connection. The technical scheme of the embodiment of the application is as follows:
in a first aspect, an embodiment of the present application provides a network connection method, where the method includes:
acquiring terminal position information, and acquiring network manual connection times corresponding to the terminal position information;
and if the manual connection times of the network meet the connection conditions, connecting the control terminal to the network corresponding to the connection conditions.
In a second aspect, an embodiment of the present application provides a network connection device, including:
the information acquisition unit is used for acquiring the terminal position information and acquiring the network manual connection times corresponding to the terminal position information;
And the network connection unit is used for controlling the terminal to be connected to the network corresponding to the connection condition if the manual connection times of the network meet the connection condition.
In a third aspect, an embodiment of the present application provides a terminal, which may include: a processor and a memory; wherein the memory stores a computer program adapted to be loaded by the processor and to perform the above-mentioned method steps.
In a fourth aspect, embodiments of the present application provide a computer storage medium storing a plurality of instructions adapted to be loaded by a processor and to perform the above-described method steps.
The technical scheme provided by the embodiments of the application has the beneficial effects that at least:
In one or more embodiments of the present application, the number of manual network connections corresponding to the terminal location information is obtained by collecting the terminal location information, and if the number of manual network connections satisfies the connection condition, the control terminal is connected to the network corresponding to the connection condition. Therefore, the terminal can determine the network connected with the terminal based on the terminal position information and the manual network connection times on the terminal position information, so that the matching performance between the network connection and the manual network switching of the user can be improved, the condition that the data traffic is wasted due to the fact that the terminal is simultaneously connected to the wireless network and the data communication network can be reduced, the condition that the network switching is not performed when the call quality of the wireless network is poor can be reduced, the convenience of the network connection can be improved, and the use experience of the network connection can be improved.
Drawings
In order to more clearly illustrate the embodiments of the application or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described, it being obvious that the drawings in the following description are only some embodiments of the application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic background diagram of a network connection method according to an embodiment of the present application;
Fig. 2 shows a system architecture diagram of a network connection method according to an embodiment of the present application;
fig. 3 is a schematic flow chart of a first network connection method according to an embodiment of the present application;
fig. 4 is a schematic flow chart of a second network connection method according to an embodiment of the present application;
fig. 5 shows a schematic view of a first terminal location information acquisition scenario provided by an embodiment of the present application;
fig. 6 is a schematic diagram of a scenario of second terminal location information acquisition according to an embodiment of the present application;
Fig. 7 shows an exemplary schematic diagram of a first terminal interface according to an embodiment of the present application;
Fig. 8 shows an exemplary schematic diagram of a second terminal interface provided by an embodiment of the present application;
Fig. 9 shows an update schematic diagram of a network manual connection number according to an embodiment of the present application;
Fig. 10 is a schematic structural diagram of a first network connection device according to an embodiment of the present application;
fig. 11 is a schematic structural diagram of a second network connection device according to an embodiment of the present application;
Fig. 12 is a schematic structural diagram of a third network connection device according to an embodiment of the present application;
Fig. 13 is a schematic structural diagram of a fourth network connection device according to an embodiment of the present application;
Fig. 14 is a schematic structural diagram of a fifth network connection device according to an embodiment of the present application;
Fig. 15 is a schematic structural diagram of a terminal according to an embodiment of the present application;
FIG. 16 is a schematic diagram of an operating system and user space provided by an embodiment of the present application;
FIG. 17 is an architecture diagram of the android operating system of FIG. 16;
FIG. 18 is an architecture diagram of the IOS operating system of FIG. 16.
Detailed Description
The following description of the embodiments of the present application will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present application, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
In the description of the present application, it should be understood that the terms "first," "second," and the like are used for descriptive purposes only and are not to be construed as indicating or implying relative importance. In the description of the present application, it should be noted that, unless expressly specified and limited otherwise, "comprise" and "have" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those listed steps or elements but may include other steps or elements not listed or inherent to such process, method, article, or apparatus. The specific meaning of the above terms in the present application will be understood in specific cases by those of ordinary skill in the art. Furthermore, in the description of the present application, unless otherwise indicated, "a plurality" means two or more. "and/or", describes an association relationship of an association object, and indicates that there may be three relationships, for example, a and/or B, and may indicate: a exists alone, A and B exist together, and B exists alone. The character "/" generally indicates that the context-dependent object is an "or" relationship.
With the development of scientific technology, the terminal supports more and more functions, thereby greatly facilitating the life of users. For example, the terminal may support a network connection function. The terminal may be connected not only to a wireless network but also to a data communication network. For example, when the WiFi network is free but data traffic is charged, the terminal may connect to the WiFi network based on a wireless connection instruction of the user. However, when the communication quality of the WiFi network is poor and the communication quality of the data communication network is good, the terminal may be connected to the data communication network based on a connection instruction of the user.
It is easy to understand that fig. 1 shows a system architecture diagram of a network connection method according to an embodiment of the present application. As shown in fig. 1, when the terminal 11 opens the personal hotspot, the terminal 11 may set a frequency band of the personal hotspot, a name of the personal hotspot, an encryption manner of the personal hotspot, a password of the personal hotspot, whether to hide the personal hotspot, and so on. The frequency bands of the personal hot spot include, but are not limited to, 2.4G frequency bands, 5G frequency bands, and the like. For example, when terminal 12 is connected only to a wireless network, terminal 11 may turn on a personal hotspot so that terminal 12 may connect to terminal 11's personal hotspot through network 13 so that terminal 12 may communicate using terminal 11's cellular data. The terminal 12 may also be connected to, for example, a wireless router 14 for communication using a wireless network to which the wireless router corresponds.
Optionally, the terminal 11 may also turn on the wireless network switch and the data network switch simultaneously, and at this time, when the communication quality of the wireless network is good, the data traffic is consumed, so that the situation of data traffic consumption may occur.
Optionally, fig. 2 is a schematic background diagram of a network connection method according to an embodiment of the present application. As shown in fig. 2, when the terminal can use only one of the wireless network and the data communication network at the same time, the terminal may be, for example, a network that determines the connection of the terminal based on the communication quality of the wireless network and the communication quality of the data communication network. However, in the secondary process, when the communication quality of the wireless network is poor but the lower throughput can be maintained, the terminal cannot automatically switch to the data communication network, so that the communication quality of the terminal when the terminal uses the network is poor, and the use experience of network connection is reduced.
The present application will be described in detail with reference to specific examples.
In one embodiment, as shown in fig. 3, fig. 3 is a flowchart illustrating a first network connection method according to an embodiment of the present application, where the method may be implemented by a computer program and may be executed on a device including a network connection function. The computer program may be integrated in the application or may run as a stand-alone tool class application.
The network connection device may be a terminal with a network connection function, including but not limited to: wearable devices, handheld devices, personal computers, tablet computers, vehicle-mounted devices, smart phones, computing devices, or other processing devices connected to a wireless modem, etc. Terminals may be called different names in different networks, for example: a user equipment, an access terminal, a subscriber unit, a subscriber station, a mobile station, a remote terminal, a mobile device, a user terminal, a wireless communication device, a user agent or user equipment, a cellular telephone, a cordless telephone, a Personal Digital Assistant (PDA), a fifth Generation mobile communication technology (5th Generation Mobile Communication Technology,5G) network, a fourth Generation mobile communication technology (the 4th Generation mobile communication technology,4G) network, a third Generation mobile communication technology (3 rd-Generation, 3G) network, or a terminal in a future evolution network, etc.
Specifically, the network connection method includes:
s101, acquiring terminal position information, and acquiring network manual connection times corresponding to the terminal position information;
In some embodiments, the terminal location information is used to indicate the current location of the terminal, and the terminal location information is not specific to a fixed location. For example, when the location of the terminal changes, the terminal location information may also change accordingly.
It is easy to understand that the network manual connection number is used to represent the network connection number of manually switching the network on the terminal location information. The number of manual network connections refers to the number of manual network connections to the terminal location information. The network connection number is a connection number corresponding to both the terminal position information and the manual connection network, and the network connection number is not particularly a certain fixed connection number. For example, when the terminal receives a manual connection instruction for a network on the terminal location information, the terminal may update the number of manual network connections corresponding to the terminal location information based on the manual connection instruction.
Alternatively, the number of manual network connections may refer to the number of manual network connections, which do not refer specifically to the number of manual network connections for a certain fixed network, and may be the number of connection of all networks manually connected at the terminal location. The terminal position information and the network manual connection times may correspond to each other, that is, different terminal position information may correspond to different network manual connection times. The network manual connection times refer to the connection times of the manual connection network corresponding to the terminal position information recorded in the terminal before the terminal position information is acquired.
In some embodiments, terminal location information may be collected while the network connection method is performed. When the terminal acquires the terminal position information, the terminal can acquire the network manual connection times corresponding to the terminal position information.
S102, if the number of times of manual network connection meets the connection condition, the control terminal is connected to the network corresponding to the connection condition.
In some embodiments, the connection condition refers to a condition for determining a network to which the terminal is connected. The number of the connection conditions is at least one, and different connection conditions correspond to different networks. The connection condition is also not particularly specific to a certain fixed connection condition. For example, when the terminal acquires a condition modification instruction for a connection condition, the connection condition may also change accordingly.
It is easy to understand that the network to which the connection condition corresponds refers to a one-to-one correspondence between the connection condition and the network. I.e. different connection conditions may correspond to different networks. The terminal may modify the connection condition corresponding to the network, for example, based on the modification instruction.
Optionally, when the terminal obtains the number of manual connection times of the network corresponding to the terminal position information, the terminal may detect whether the number of manual connection times meets the connection condition. If the network manual connection times meet the connection conditions, the terminal can be controlled to be connected to the network corresponding to the connection conditions.
In one or more embodiments of the present application, the number of manual network connections corresponding to the terminal location information is obtained by collecting the terminal location information, and if the number of manual network connections satisfies the connection condition, the control terminal is connected to the network corresponding to the connection condition. Therefore, the terminal can determine the network connected with the terminal based on the terminal position information and the manual network connection times on the terminal position information, so that the matching performance between the network connection and the manual network switching of the user can be improved, the condition that the data traffic is wasted due to the fact that the terminal is simultaneously connected to the wireless network and the data communication network can be reduced, the condition that the network switching is not performed when the call quality of the wireless network is poor can be reduced, the convenience of the network connection can be improved, and the use experience of the network connection can be improved. Secondly, aiming at the connection of the network based on the manual connection times of the network directly, the communication quality of the network is not required to be judged, so that the matching between the network connection and the manual switching network of a user can be improved, and the use experience of the network connection can be improved.
Referring to fig. 4, fig. 4 is a flowchart illustrating a second network connection method according to an embodiment of the present application. Specific:
s201, collecting terminal position information;
the specific process is as described above, and will not be described here again.
In some embodiments, the terminal may determine terminal location information based on latitude and longitude data and the current usage scenario. When the terminal position information is acquired, the current longitude and latitude data can be acquired, and the longitude and latitude data is determined to be the terminal position information. The terminal position information may be acquired, for example, according to a preset time interval, which may be understood as that the terminal may acquire the terminal position information in real time. The terminal position information is the current position information collected by the terminal.
It is easy to understand that fig. 5 shows a schematic view of a first terminal location information acquisition scenario provided in an embodiment of the present application. As shown in fig. 5, when the terminal is located at the a position, the terminal may acquire longitude and latitude data corresponding to the a position. When the terminal acquires longitude and latitude data corresponding to the A position, the terminal can determine the longitude and latitude data as terminal position information.
In some embodiments, when acquiring the terminal location information, the current usage scenario may be acquired, and the terminal location information may be determined based on the current usage scenario. When the terminal acquires the current use scene, the terminal can acquire the current use scene information based on the indoor positioning technology, the interaction information of the terminal and the interaction equipment, the indoor positioning technology, the interaction information, the radio frequency positioning technology, the communication information with the operator and the like.
In some embodiments, when the terminal acquires the current usage scenario, the terminal may acquire interaction information with the interaction device. The terminal can determine the current use scene based on the interactive content in the interactive information, the terminal directly determines the current use scene based on the interactive information, and determines the terminal position information based on the current use scene, so that the geographic position of the terminal is not required to be acquired, the accuracy of acquiring the current use scene can be improved, the accuracy of the manual network connection times can be improved, and the accuracy of network connection can be improved.
It is easy to understand that the interactive device refers to a device that performs information interaction with the terminal. The interactive device may be, for example, a terminal that performs information interaction with the terminal by using a wireless communication method. The interaction information refers to information when the terminal interacts with the interaction device. The interaction information includes, but is not limited to, interaction content, interaction time, interaction mode, and the like. The interactive information is not particularly limited to a certain fixed information. For example, when the interaction time changes, the interaction information also changes accordingly.
Optionally, fig. 6 is a schematic diagram of a second scenario of terminal location information acquisition provided in an embodiment of the present application. As shown in fig. 6, for example, when the interactive device is a subway gate, the terminal may display the riding code in the form of a two-dimensional code when entering the subway station, and place the two-dimensional code in the acquisition range of the subway gate camera. When the subway gate control camera recognizes the two-dimensional code, the terminal can acquire the interaction information with the subway gate. The terminal can determine that the current use scene is a subway use scene based on the interactive content of the interactive information. The terminal may determine terminal location information based on the current usage scenario. The terminal location information may be determined, for example, based on device identification of the interactive device in the metro usage scenario.
In some embodiments, before the terminal obtains the traffic usage information corresponding to each traffic usage scenario in the traffic usage scenario set, the terminal may use a radio frequency fingerprint positioning technology to obtain fingerprint information corresponding to a terminal position. Wherein the fingerprint information includes a camping cell identity and a signal strength. Based on the fingerprint information, the terminal can determine a current usage scenario corresponding to the terminal position. The terminal may determine terminal location information based on the current usage scenario.
It is readily understood that the camping cell includes, but is not limited to, a 5G camping cell, a 4G camping cell, a 3G camping cell, and the like. The radio frequency fingerprint positioning technology can be applied to a scene that a global positioning system (Global Positioning System, GPS) cannot accurately acquire the position information of a terminal due to the existence of an obstacle. For example, when the terminal is in an indoor scene, the GPS positioning technology can only acquire the geographic position of the terminal, but cannot acquire the current use scene of the terminal, so that the accuracy of acquiring the current use scene can be improved by adopting the radio frequency fingerprint positioning technology, the accuracy of the manual network connection times can be improved, and the accuracy of network connection can be improved.
In some embodiments, when the terminal acquires the current usage scenario and the terminal determines to use the data traffic for communication, the terminal may determine that the current usage scenario is the traffic usage scenario. The terminal can acquire the resident cell identification of the cell where the user identification card resides, and determine the cell position corresponding to the resident cell identification as the terminal position information. Wherein the camping cell identification is used to uniquely identify the camping cell. The terminal can only acquire the resident cell identifier, so that the operation steps of the terminal when acquiring the current use scene can be reduced, and the power consumption of the terminal can be reduced while the acquisition accuracy of the current use scene is improved.
It is easy to understand that a subscriber identity card may be provided in the terminal, for example. Subscriber identity cards are also known as subscriber identity modules, smart cards, SIM cards, etc. Subscriber identification cards include, but are not limited to, embedded SIM cards and non-embedded SIM cards. An embedded SIM card (eSIM card) is a device that embeds a conventional SIM card directly onto the chip of the terminal, rather than being added to the terminal as a separate removable component. Therefore, the use of the embedded SIM card can make the terminal lighter and thinner, save the manufacturing cost of the terminal, and the user does not need to manually install the SIM card. The subscriber identification card includes, but is not limited to, a central processing unit (central processing unit, CPU), a read Only Memory image (ROM), a random access Memory (random access Memory, RAM), a charged erasable programmable read Only Memory (EEPROM), and input/output I/O circuitry.
S202, acquiring the network manual connection times corresponding to the terminal position information;
the specific process is as described above, and will not be described here again.
In some embodiments, the network manual connection times may include, for example, a first manual connection time and a second manual connection time. The first manual connection number is the number of times of manually connecting to the wireless network, and the first manual connection number is not particularly a certain fixed connection number. The terminal may update the first number of manual connections, for example, when the terminal detects a manual connection instruction to manually connect to the wireless network.
The second manual connection number is the number of times of manually connecting to the data communication network, and the second manual connection number is not particularly limited to a certain fixed connection number. The terminal may update the second number of manual connections, for example, when the terminal detects a manual connection instruction to manually connect the data communication network. The terminal may update the first manual connection number and the second manual connection number simultaneously.
S203, if the first manual connection times are greater than a first connection threshold, the control terminal is connected to the wireless network;
In some embodiments, when the terminal obtains the number of manual network connections corresponding to the terminal location information, the terminal may obtain the first number of manual network connections and the second number of manual network connections. The first manual connection number is the number of manual connections to the wireless network, and the second manual connection number is the number of manual connections to the data communication network. When the terminal obtains the first manual connection times, the terminal can detect whether the first manual connection times are larger than a first connection threshold. The first connection threshold is a threshold corresponding to the first manual connection times. The first connection threshold is not particularly limited to a fixed threshold. For example, when the terminal receives a threshold modification instruction for the first connection threshold, the terminal may modify the first connection threshold based on the threshold modification instruction.
It is easy to understand that if the terminal determines that the first manual connection number is greater than the first connection threshold, the terminal may be controlled to connect to the wireless network. I.e. the first connection threshold is a condition for determining whether the terminal can connect to the wireless network.
In some embodiments, if the first manual connection number is greater than the first connection threshold, the control terminal may obtain, from the network manual connection numbers, a third manual connection number corresponding to each wireless network identifier in the wireless network identifier set when the control terminal is connected to the wireless network. The wireless network identification set refers to a collective formed by the wireless network identification set. The wireless network set does not refer specifically to a fixed set. For example, when the number of radio network identifications included in the set of radio network identifications changes, the set of radio network identifications may also change accordingly. For example, when a change occurs in a radio network identity included in a radio network identity set, the radio network identity set may also change accordingly. The wireless network identification is used to uniquely identify the wireless network. For example, the set of radio network identifications may include an S radio network identification, a D radio network identification, and an F radio network identification.
Optionally, the third number of manual connections is a number of manual connections for a certain wireless network. The third number of manual connections is not specific to a certain fixed number of connections. For example, the third manual connection number corresponding to the S wireless network identifier may be 3 times, the third manual connection number corresponding to the D wireless network identifier may be 4 times, and the third manual connection number corresponding to the F wireless network identifier may be 5 times.
It is easy to understand that, when the terminal obtains the third manual connection times corresponding to each wireless network identifier in the wireless network identifier set, the terminal may determine the total times of the third manual connection times corresponding to each wireless network identifier as the first manual connection times. For example, the terminal may determine the third manual connection number corresponding to the S wireless network identifier 3 times, the third manual connection number corresponding to the D wireless network identifier 4 times, and the total number of times 12 of the third manual connection number corresponding to the F wireless network identifier 5 times as the first manual connection number.
Optionally, when the terminal obtains the first manual connection number, the terminal may detect whether the first manual connection number is greater than a first connection threshold. If the first manual connection times are greater than the first connection threshold, a wireless network identifier corresponding to the highest third manual connection times can be obtained, and the terminal is controlled to be connected to a wireless network corresponding to the wireless network identifier. Wherein the first connection threshold may be 10 times. If the first manual connection times are 12 times and are greater than the first connection threshold value by 10 times, the wireless network identifier corresponding to the obtained highest third manual connection times may be, for example, an F wireless network identifier, and the control terminal is connected to an F1 wireless network corresponding to the F wireless network identifier.
In some embodiments, if the first manual connection number is greater than the first connection threshold, the control terminal may obtain, from the network manual connection numbers, a first manual connection number corresponding to any wireless network identifier in the wireless network identifier set when the control terminal is connected to the wireless network. When the terminal obtains the first manual connection times corresponding to any wireless network identifier in the wireless network identifier set, the terminal can detect whether the first manual connection times corresponding to the wireless network identifier are larger than a first connection threshold value. If only one first manual connection frequency corresponding to the wireless network identifier is larger than the first connection threshold value, the control terminal is connected to the wireless network corresponding to the wireless network identifier. If the first manual connection times corresponding to the plurality of wireless network identifications are all larger than the first connection threshold value, acquiring the wireless network identification corresponding to the highest first manual connection times, and controlling the terminal to be connected to the wireless network corresponding to the wireless network identification.
It is readily understood that the set of radio network identifications may include, for example, an S radio network identification, a D radio network identification, an F radio network identification, a G radio network identification, an H radio network identification, and a J radio network identification. For example, the number of first manual connections corresponding to the S wireless network identifier may be 9, the number of first manual connections corresponding to the D wireless network identifier may be 7, the number of first manual connections corresponding to the F wireless network identifier may be 6, the number of first manual connections corresponding to the G wireless network identifier may be 11, the number of first manual connections corresponding to the H wireless network identifier may be 7, and the number of first manual connections corresponding to the J wireless network identifier may be 6. If only one wireless network identifier G corresponds to 11 times of first manual connection times which are greater than the first connection threshold value 10 times, the control terminal is connected to the G1 wireless network corresponding to the G wireless network identifier.
It is readily understood that the set of radio network identifications may include, for example, an S radio network identification, a D radio network identification, an F radio network identification, a G radio network identification, an H radio network identification, and a J radio network identification. For example, the number of first manual connections corresponding to the S wireless network identifier may be 9, the number of first manual connections corresponding to the D wireless network identifier may be 7, the number of first manual connections corresponding to the F wireless network identifier may be 6, the number of first manual connections corresponding to the G wireless network identifier may be 11, the number of first manual connections corresponding to the H wireless network identifier may be 12, and the number of first manual connections corresponding to the J wireless network identifier may be 13. If the first manual connection times corresponding to the plurality of wireless network identifiers are greater than the first connection threshold value by 10 times, namely, the first manual connection times corresponding to the G wireless network identifier are determined to be 11 times, the first manual connection times corresponding to the H wireless network identifier are determined to be 12 times, the first manual connection times corresponding to the J wireless network identifier are determined to be 13 times and are all greater than the first connection threshold value by 10 times, the wireless network identifier corresponding to the highest first manual connection times which can be obtained by the terminal can be the J wireless network identifier, and the control terminal is connected to the J1 wireless network corresponding to the J wireless network identifier.
S204, if the second manual connection times are larger than a second connection threshold value, the control terminal is connected to the data communication network;
In some embodiments, when the terminal obtains the number of manual network connections corresponding to the terminal location information, the terminal may obtain the first number of manual network connections and the second number of manual network connections. When the terminal acquires the second manual connection times, the terminal can detect whether the second manual connection times are larger than a second connection threshold. The second connection threshold is a threshold corresponding to the second manual connection times. The second connection threshold is not particularly limited to a certain fixed threshold. For example, when the terminal receives a threshold modification instruction for the second connection threshold, the terminal may modify the second connection threshold based on the threshold modification instruction.
It will be readily appreciated that if the terminal determines that the number of second manual connections is greater than the second connection threshold, the terminal may be controlled to connect to the data communications network. I.e. the second connection threshold is a condition for determining whether the terminal can be connected to the data communication network.
Alternatively, the first connection threshold and the second connection threshold may be the same threshold or different thresholds. The second connection threshold may be, for example, 10 times. The number of second manual connections acquired by the terminal may be 13, for example. If the number of the second manual connections is 13 times greater than the second connection threshold value by 10 times, the control terminal is connected to the data communication network, i.e. the terminal can use the data traffic for communication.
In some embodiments, the terminal may update the number of network manual connections based on the manual operation instruction after connecting to the wireless network or the data communication network. For example, the terminal may obtain the instruction type of the manual operation instruction, and obtain the wireless network identifier corresponding to the manual operation instruction. Wherein the wireless network identification is used to uniquely identify the wireless network. When the terminal acquires the instruction type of the manual operation instruction, the terminal can detect whether the instruction type indicates that the manual operation instruction is a manual connection instruction for the wireless network. If the instruction type indicates that the manual operation instruction is a manual connection instruction aiming at the wireless network, the first manual connection times are increased by one, and the second manual connection times are decreased by one. If the instruction type indicates that the manual connection instruction is a manual connection instruction for the data communication network, the first manual connection times are reduced by one, and the second manual connection times are increased by one. Because the terminal can update the first manual connection times and the second manual connection times based on the manual operation instruction when acquiring the manual operation instruction, the terminal needs to judge whether the network manual connection times of the terminal position information meet the connection conditions or not when acquiring the terminal position information each time, and the accuracy of network connection can be improved.
In some embodiments, the connection condition may be a connection threshold, but also a frequency threshold. For example, the terminal acquires the number of network manual connections corresponding to the terminal location information, and the terminal may determine the network manual connection frequency based on the number of network manual connections. That is, the terminal may calculate the network manual connection frequency based on the preset duration and the number of network manual connections. For example, the network manual connection times may include, for example, a first manual connection time and a second manual connection time. The terminal may calculate the first manual connection frequency and the second manual connection frequency based on the preset duration, the first manual connection frequency and the second manual connection frequency. If the first manual connection frequency is greater than the first frequency threshold, the terminal may be controlled to connect to the wireless network. If the second manual connection frequency is greater than the second frequency threshold, the terminal may be controlled to connect to the data communication network. Wherein the first frequency threshold and the second frequency threshold do not refer to a certain fixed frequency threshold. The terminal may modify the first frequency threshold and the second frequency threshold, for example, based on a threshold modification instruction entered by the user.
S205, if the number of manual network connections does not satisfy the connection condition, when a manual operation instruction for the network is acquired, the number of manual network connections is updated based on the manual operation instruction.
In some embodiments, when the terminal acquires the number of manual connections of the network, the terminal may determine whether the number of manual connections satisfies the connection condition. If the terminal determines that the number of times of manual network connection does not meet the connection condition, the terminal can detect whether a manual operation instruction for the network is acquired. If the terminal determines that the manual operation instruction for the network is acquired, the terminal can update the manual connection times of the network based on the manual operation instruction.
It is easy to understand that when the terminal obtains the network manual connection times corresponding to the terminal position information, the terminal can obtain the first manual connection times and the second manual connection times in the network manual connection times. When the terminal obtains the first manual connection times and the second manual connection times, the terminal can detect whether the first manual connection times are larger than a first connection threshold value or not and detect whether the second manual connection times are larger than a second connection threshold value or not. When the terminal determines that the first manual connection times are not greater than the first connection threshold and the second manual connection times are not greater than the second connection threshold, the terminal can connect the network according to a preset network connection strategy. The terminal connects to the network according to a predetermined network connection policy, for example, the terminal may acquire a first signal strength value of the wireless network and a second signal strength value of the data communication network. And if the first signal strength value is larger than the second signal strength value, the control terminal is connected to the wireless network. And if the second signal strength value is larger than the first signal strength value, the control terminal is connected to the data communication network.
In some embodiments, the network manual connection times include a first manual connection time and a second manual connection time. The first manual connection number is the number of manual connections to the wireless network, and the second manual connection number is the number of manual connections to the data communication network. The terminal can acquire the instruction type of the manual operation instruction and acquire the wireless network identifier corresponding to the manual operation instruction when updating the network manual connection times based on the manual operation instruction. Wherein the wireless network identification is used to uniquely identify the wireless network. When the terminal acquires the instruction type of the manual operation instruction, the terminal can detect whether the instruction type indicates that the manual operation instruction is a manual connection instruction for the wireless network. If the instruction type indicates that the manual operation instruction is a manual switching instruction for switching the data communication network to the wireless network, the first manual connection times are increased by one, and the second manual connection times are decreased by one. If the instruction type indicates that the manual operation instruction is a manual switching instruction for switching the wireless network to the data communication network, the first manual connection times are reduced by one, and the second manual connection times are increased by one. Because the terminal can update the first manual connection times and the second manual connection times based on the manual operation instruction when acquiring the manual operation instruction, the terminal needs to judge whether the network manual connection times of the terminal position information meet the connection conditions or not when acquiring the terminal position information each time, and the accuracy of network connection can be improved.
It is readily understood that the set of radio network identifications may include, for example, an S radio network identification, a D radio network identification, and an F radio network identification. For example, the third manual connection number corresponding to the S wireless network identifier may be 3 times, the third manual connection number corresponding to the D wireless network identifier may be 4 times, and the third manual connection number corresponding to the F wireless network identifier may be 5 times. Wherein the first connection threshold may be 10 times. When the terminal obtains the first manual connection times corresponding to any wireless network identifier in the wireless network identifier set, the terminal can detect whether the first manual connection times corresponding to the wireless network identifier are larger than a first connection threshold value. If the terminal determines that the first manual connection times corresponding to the wireless network identifier are not greater than the first connection threshold, the terminal can be connected to a wireless network corresponding to the maximum signal strength on the terminal position information. Or the terminal may connect to the wireless network corresponding to the wireless connection instruction based on the wireless connection instruction of the user, and an exemplary schematic diagram of the first terminal interface may be shown in fig. 7.
Optionally, for example, the wireless network identifier set may include an S wireless network identifier, a D wireless network identifier, an F wireless network identifier, a G wireless network identifier, an H wireless network identifier, and a J wireless network identifier. For example, the number of first manual connections corresponding to the S wireless network identifier may be 9, the number of first manual connections corresponding to the D wireless network identifier may be 7, the number of first manual connections corresponding to the F wireless network identifier may be 6, the number of first manual connections corresponding to the G wireless network identifier may be 11, the number of first manual connections corresponding to the H wireless network identifier may be 7, and the number of first manual connections corresponding to the J wireless network identifier may be 6. If only one wireless network identifier G corresponds to 11 times of first manual connection times which are greater than the first connection threshold value 10 times, the control terminal is connected to the G1 wireless network corresponding to the G wireless network identifier. When the terminal receives a manual disconnection instruction for the G1 wireless network on the terminal position information and the manual control terminal is connected to the data communication network, that is, the network connected by the control terminal is switched from the G1 wireless network to the data communication network, the terminal may decrease the first manual connection frequency corresponding to the G wireless network identifier by one, that is, the first manual connection frequency corresponding to the G wireless network identifier is 10 times. At this time, an exemplary schematic diagram of the second terminal interface may be shown in fig. 8. The terminal may add one to the second manual connection number while subtracting one from the first manual connection number corresponding to the G wireless network identifier. In this case, as shown in fig. 9, the update schematic diagram of the number of manual network connections may be shown in fig. 9, where the update information of the number of manual network connections shown in fig. 9 includes update information of correspondence between each wireless network identifier in the wireless network identifier set and the number of manual network connections and update information of the number of manual network connections. Therefore, when the terminal acquires the terminal position information again, the terminal can determine that the first manual connection times corresponding to the G wireless network identifier are not more than 10 times, so that the terminal can connect to the network according to a preset network connection strategy, for example.
Optionally, when the network connected with the control terminal is switched between the wireless networks corresponding to different network identifiers, the terminal may update the first manual connection times corresponding to the wireless network identifiers, and not update the second manual connection times. For example, when the terminal receives a manual disconnection instruction for the G1 wireless network on the terminal location information and the manual control terminal is connected to the H1 wireless network corresponding to the H wireless network identifier, that is, the control terminal is switched from the G1 wireless network to the H1 wireless network, the terminal may decrease the first manual connection frequency corresponding to the G wireless network identifier by one, that is, the first manual connection frequency corresponding to the G wireless network identifier is 10 times, and increase the first manual connection frequency corresponding to the H wireless network identifier by one, that is, the first manual connection frequency corresponding to the H wireless network identifier is 8 times, and the terminal will not update the second manual connection frequency.
In some embodiments, the network manual connection times include a first manual connection time and a second manual connection time. The first manual connection number is the number of manual connections to the wireless network, and the second manual connection number is the number of manual connections to the data communication network. The terminal can acquire the instruction type of the manual operation instruction and acquire the wireless network identifier corresponding to the manual operation instruction when updating the network manual connection times based on the manual operation instruction. The terminal can acquire the instruction type of the manual operation instruction and acquire the wireless network identifier corresponding to the manual operation instruction. When the terminal acquires the instruction type of the manual operation instruction, the terminal can detect whether the instruction type indicates that the manual operation instruction is a manual connection instruction for the wireless network. If the instruction type indicates that the manual operation instruction is a manual connection instruction for the wireless network, the first manual connection time is increased by one. If the instruction type indicates that the manual operation instruction is a manual connection instruction for the data communication network, the second manual connection time is increased by one. When the terminal acquires the manual operation instruction, only one of the first manual connection times and the second manual connection times is updated based on the manual operation instruction, so that the matching degree between the network connection and the manual connection of the user can be improved, and the use experience of the network connection can be improved.
It is easy to understand that when the terminal acquires the terminal position information and acquires the number of manual connection times of the network corresponding to the terminal position information, if the terminal determines that the number of the first manual connection times is greater than the first connection threshold and the number of the first manual connection times is greater than the second connection threshold, the terminal can acquire signal strengths of the wireless network and the data communication network and control the terminal to be connected to the network with a larger signal strength value.
Optionally, when the terminal collects the terminal position information and obtains the network manual connection times corresponding to the terminal position information, if the terminal determines that the first manual connection times are greater than the first connection threshold and the first manual connection times are greater than the second connection threshold, the terminal can obtain and detect whether the first manual connection times are greater than the second manual connection times. And if the first manual connection times are determined to be larger than the second manual connection times, the control terminal is connected to the wireless network. And if the first manual connection times are not larger than the second manual connection times, connecting the control terminal to the data communication network.
In one or more embodiments of the present application, by collecting the terminal location information, the number of manual network connections corresponding to the terminal location information may be obtained, so that when the number of the first manual network connections is greater than the first connection threshold, the terminal may be controlled to connect to the wireless network, so that accuracy of wireless network connection may be improved, and matching degree between the network connection and manual network connection of a user may be improved, so that use experience of network connection may be improved. And secondly, the terminal can be connected to the data communication network when the second manual connection times are larger than the second connection threshold value, so that the accuracy of the wireless data communication network can be improved, the condition that data traffic is wasted due to the fact that the terminal is simultaneously connected to the wireless network and the data communication network can be reduced, the condition that network switching is not performed when the communication quality of the wireless network is poor can also be reduced, the matching degree of the manual connection between the data communication network connection and a user can also be improved, and the use experience of network connection can be improved. In addition, the network connection can be connected to the network without waiting for manual operation of a user, so that the steps of the network connection can be reduced, and the network connection time is shortened. Finally, if the number of times of manual network connection does not meet the connection condition, when the manual operation instruction for the network is acquired, the terminal can update the number of times of manual network connection based on the manual operation instruction, so that the accuracy of acquiring the number of times of manual network connection can be improved, the matching degree of the network connection and the manual network connection of a user can be improved, and the use experience of the network connection can be improved.
The following are examples of the apparatus of the present application that may be used to perform the method embodiments of the present application. For details not disclosed in the embodiments of the apparatus of the present application, please refer to the embodiments of the method of the present application.
Referring to fig. 10, a schematic structural diagram of a first network connection device according to an exemplary embodiment of the present application is shown. The network connection means may be implemented as all or part of the device by software, hardware or a combination of both. The network connection device 1000 includes an information acquisition unit 1001 and a network connection unit 1002, wherein:
The information acquisition unit 1001 is configured to acquire terminal location information, and acquire a number of manual network connections corresponding to the terminal location information;
the network connection unit 1002 is configured to, if the number of manual network connections satisfies the connection condition, control the terminal to connect to the network corresponding to the connection condition.
In some embodiments, fig. 11 is a schematic structural diagram of a second network connection device according to an embodiment of the present application. As shown in fig. 11, the network manual connection times include a first manual connection times and a second manual connection times, the network connection unit 1002 includes a wireless network connection subunit 1012 and a communication network connection subunit 1022, and the network connection unit 1002 is configured to, when the network manual connection times satisfy a connection condition, control the connection of the terminal to a network corresponding to the connection condition, specifically configured to:
A wireless network connection subunit 1012, configured to control the terminal to connect to the wireless network if the first manual connection number is greater than the first connection threshold, where the first manual connection number is a number of manual connections to the wireless network;
The communication network connection subunit 1022 is configured to control the terminal to connect to the data communication network if the second manual connection number is greater than the second connection threshold, where the second manual connection number is a number of times of manually connecting to the data communication network.
In some embodiments, the wireless network connection subunit 1012 is configured to, if the first manual connection number is greater than the first connection threshold, control connection of the terminal to the wireless network, specifically:
acquiring a third manual connection frequency corresponding to each wireless network identifier in the wireless network identifier set from the network manual connection frequency;
Determining the total number of the third manual connection times corresponding to each wireless network identifier as the first manual connection times;
if the first manual connection times are larger than the first connection threshold, acquiring a wireless network identifier corresponding to the highest third manual connection times;
The control terminal is connected to the wireless network corresponding to the wireless network identifier.
In some embodiments, the wireless network connection subunit 1012 is configured to, if the first manual connection number is greater than the first connection threshold, control connection of the terminal to the wireless network, specifically:
Acquiring first manual connection times corresponding to any wireless network identifier in a wireless network identifier set in the network manual connection times;
If only one first manual connection frequency corresponding to the wireless network identifier is larger than a first connection threshold value, the control terminal is connected to the wireless network corresponding to the wireless network identifier;
If the first manual connection times corresponding to the plurality of wireless network identifications are all larger than the first connection threshold value, acquiring the wireless network identification corresponding to the highest first manual connection times, and controlling the terminal to be connected to the wireless network corresponding to the wireless network identification.
In some embodiments, fig. 12 is a schematic structural diagram of a third network connection device according to an embodiment of the present application. As shown in fig. 12, the network connection device 1100 further includes an information updating unit 1003 configured to, after acquiring the number of network manual connections of the manual connection network corresponding to the terminal position information, update the number of network manual connections based on the manual operation instruction when the manual operation instruction for the network is acquired if the number of network manual connections does not satisfy the connection condition.
In some embodiments, fig. 13 is a schematic structural diagram of a fourth network connection device according to an embodiment of the present application. As shown in fig. 13, the network manual connection number includes a first manual connection number and a second manual connection number, the information updating unit 1003 includes an identification acquisition subunit 1013 and a number addition and subtraction subunit 1023, and the information updating unit 1003 is configured to update the network manual connection number when:
an identifier obtaining subunit 1013, configured to obtain an instruction type of the manual operation instruction, and obtain a wireless network identifier corresponding to the manual operation instruction;
The number adding and subtracting subunit 1023 is configured to add one to the first manual connection number if the instruction type indicates that the manual operation instruction is a manual switching instruction for switching the data communication network to the wireless network, and subtract one to the second manual connection number, where the first manual connection number is the number of times of manual connection to the wireless network, and the second manual connection number is the number of times of manual connection to the data communication network;
The number adding/subtracting subunit 1023 is configured to, if the instruction type indicates that the manual operation instruction is a manual switching instruction for switching the wireless network to the data communication network, decrease the first manual connection number by one and increase the second manual connection number by one.
In some embodiments, fig. 14 is a schematic structural diagram of a fifth network connection device according to an embodiment of the present application. As shown in fig. 14, the information acquisition unit 1001 includes a latitude and longitude acquisition subunit 1012 or a scene acquisition subunit 1022, and the information acquisition unit 1001 is configured to, when acquiring terminal position information:
A latitude and longitude acquisition subunit 1012, configured to acquire current latitude and longitude data, and determine the latitude and longitude data as terminal position information; or (b)
The scene acquisition subunit 1022 is configured to acquire a current usage scene, and determine terminal location information based on the current usage scene.
It should be noted that, in the network connection device provided in the foregoing embodiment, only the division of the foregoing functional modules is used for illustration when executing the network connection method, and in practical application, the foregoing functional allocation may be performed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules, so as to complete all or part of the functions described above. In addition, the network connection device and the network connection method embodiment provided in the foregoing embodiments belong to the same concept, which represents a detailed implementation process in the method embodiment, and are not described herein again.
The foregoing embodiment numbers of the present application are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
In one or more embodiments of the present application, the information collecting unit collects the terminal position information, and obtains the number of manual network connections corresponding to the terminal position information, and if the number of manual network connections meets the connection condition, the network connection unit may control the terminal to connect to the network corresponding to the connection condition. Therefore, the network connection device can determine the network connected with the terminal based on the terminal position information and the network manual connection times on the terminal position information, can improve the matching between the network connection and the user manual switching network, can reduce the condition that the data traffic is wasted due to the fact that the network connection is simultaneously connected to the wireless network and the data communication network, can also reduce the condition that the network switching is not performed when the communication quality of the wireless network is poor, can improve the convenience of the network connection, and can improve the use experience of the network connection.
The embodiment of the present application further provides a computer storage medium, where the computer storage medium may store a plurality of instructions, where the instructions are suitable for being loaded by a processor and executed by the processor to implement the network connection method according to the embodiment shown in fig. 3 to fig. 9, and the specific implementation process may refer to the specific description of the embodiment shown in fig. 3 to fig. 9, which is not repeated herein.
The present application further provides a computer program product, where at least one instruction is stored, where the at least one instruction is loaded by the processor and executed by the processor to implement the network connection method according to the embodiment shown in fig. 3 to fig. 9, and the specific implementation process may refer to the specific description of the embodiment shown in fig. 3 to fig. 9, which is not repeated herein.
Referring to fig. 15, a block diagram illustrating a structure of a terminal according to an exemplary embodiment of the present application is shown. The terminal of the present application may include one or more of the following components: processor 110, memory 120, input device 130, output device 140, and bus 150. The processor 110, the memory 120, the input device 130, and the output device 140 may be connected by a bus 150. The processor loads and executes the network connection method according to the embodiment shown in fig. 3 to fig. 9, and the specific execution process may refer to the specific description of the embodiment shown in fig. 3 to fig. 9, which is not described herein.
Processor 110 may include one or more processing cores. The processor 110 connects various parts within the overall terminal using various interfaces and lines, performs various functions of the terminal 100 and processes data by executing or executing instructions, programs, code sets, or instruction sets stored in the memory 120, and invoking data stored in the memory 120. Alternatively, the processor 110 may be implemented in at least one hardware form of Digital Signal Processing (DSP), field-programmable gate array (FPGA), programmable logic array (programmable logic Array, PLA). The processor 110 may integrate one or a combination of several of a central processing unit (central processing unit, CPU), an image processor (graphics processing unit, GPU), a modem, etc. The CPU mainly processes an operating system, a user interface, an application program and the like; the GPU is used for being responsible for rendering and drawing of display content; the modem is used to handle wireless communications. It will be appreciated that the modem may not be integrated into the processor 110 and may be implemented solely by a single communication chip.
The memory 120 may include a random access memory (random Access Memory, RAM) or a read-only memory (ROM). Optionally, the memory 120 includes a non-transitory computer readable medium (non-transitory computer-readable storage medium). Memory 120 may be used to store instructions, programs, code, sets of codes, or sets of instructions. The memory 120 may include a stored program area and a stored data area, wherein the stored program area may store instructions for implementing an operating system, which may be an Android (Android) system, including an Android system-based deep development system, an IOS system developed by apple corporation, including an IOS system-based deep development system, or other systems, instructions for implementing at least one function (such as a touch function, a sound playing function, an image playing function, etc.), instructions for implementing various method embodiments described below, and the like. The storage data area may also store data created by the terminal in use, such as phonebooks, audio-video data, chat-record data, etc.
Referring to FIG. 16, the memory 120 may be divided into an operating system space in which the operating system is running and a user space in which native and third party applications are running. In order to ensure that different third party application programs can achieve better operation effects, the operating system allocates corresponding system resources for the different third party application programs. However, the requirements of different application scenarios in the same third party application program on system resources are different, for example, under the local resource loading scenario, the third party application program has higher requirement on the disk reading speed; in the animation rendering scene, the third party application program has higher requirements on the GPU performance. The operating system and the third party application program are mutually independent, and the operating system often cannot timely sense the current application scene of the third party application program, so that the operating system cannot perform targeted system resource adaptation according to the specific application scene of the third party application program.
In order to enable the operating system to distinguish specific application scenes of the third-party application program, data communication between the third-party application program and the operating system needs to be communicated, so that the operating system can acquire current scene information of the third-party application program at any time, and targeted system resource adaptation is performed based on the current scene.
Taking an operating system as an Android system as an example, as shown in fig. 17, a program and data stored in the memory 120 may be stored in the memory 120 with a Linux kernel layer 320, a system runtime library layer 340, an application framework layer 360 and an application layer 380, where the Linux kernel layer 320, the system runtime library layer 340 and the application framework layer 360 belong to an operating system space, and the application layer 380 belongs to a user space. The Linux kernel layer 320 provides the various hardware of the terminal with the underlying drivers such as display drivers, audio drivers, camera drivers, bluetooth drivers, wi-Fi drivers, power management, etc. The system runtime layer 340 provides the main feature support for the Android system through some C/c++ libraries. For example, the SQLite library provides support for databases, the OpenGL/ES library provides support for 3D graphics, the Webkit library provides support for browser kernels, and the like. Also provided in the system runtime library layer 340 is An Zhuoyun runtime library (Android runtime), which primarily provides some core libraries that can allow developers to write Android applications using the Java language. The application framework layer 360 provides various APIs that may be used in building applications, which developers can also build their own applications by using, for example, campaign management, window management, view management, notification management, content provider, package management, call management, resource management, location management. At least one application program is running in the application layer 380, and these application programs may be native application programs of the operating system, such as a contact program, a short message program, a clock program, a camera application, etc.; and may also be a third party application developed by a third party developer, such as a game-like application, instant messaging program, photo beautification program, network connection program, etc.
Taking an operating system as an IOS system as an example, the programs and data stored in the memory 120 are shown in fig. 18, the IOS system includes: core operating system layer 420 (Core OS layer), core services layer 440 (Core SERVICES LAYER), media layer 460 (MEDIA LAYER), and touchable layer 480 (Cocoa Touch Layer). The core operating system layer 420 includes an operating system kernel, drivers, and underlying program frameworks that provide more hardware-like functionality for use by the program frameworks at the core services layer 440. The core services layer 440 provides system services and/or program frameworks required by the application, such as a Foundation (Foundation) framework, an account framework, an advertisement framework, a data storage framework, a network connection framework, a geographic location framework, a sports framework, and the like. The media layer 460 provides an interface for applications related to audiovisual aspects, such as a graphics-image related interface, an audio technology related interface, a video technology related interface, an audio video transmission technology wireless play (AirPlay) interface, and so forth. The touchable layer 480 provides various commonly used interface-related frameworks for application development, with the touchable layer 480 being responsible for user touch interactions on the terminal. Such as a local notification service, a remote push service, an advertisement framework, a game tool framework, a message User Interface (UI) framework, a User Interface UIKit framework, a map framework, and so forth.
Among the frameworks illustrated in fig. 16, frameworks related to most applications include, but are not limited to: a base framework in core services layer 440 and UIKit frameworks in touchable layer 480. The infrastructure provides many basic object classes and data types, providing the most basic system services for all applications, independent of the UI. While the class provided by the UIKit framework is a base UI class library for creating touch-based user interfaces, iOS applications can provide UIs based on the UIKit framework, so it provides the application's infrastructure for building user interfaces, drawing, handling and user interaction events, responding to gestures, and so on.
The manner and principle of implementing data communication between the third party application program and the operating system in the IOS system can refer to the Android system, and the application is not described herein.
The input device 130 is configured to receive input instructions or data, and the input device 130 includes, but is not limited to, a keyboard, a mouse, a camera, a microphone, or a touch device. The output device 140 is used to output instructions or data, and the output device 140 includes, but is not limited to, a display device, a speaker, and the like. In one example, the input device 130 and the output device 140 may be combined, and the input device 130 and the output device 140 are a touch display screen for receiving a touch operation thereon or thereabout by a user using a finger, a touch pen, or any other suitable object, and displaying a user interface of each application program. The touch display screen is typically provided at the front panel of the terminal. The touch display screen may be designed as a full screen, a curved screen, or a contoured screen. The touch display screen may also be designed as a combination of a full screen and a curved screen, and the combination of a special-shaped screen and a curved screen, which is not limited in the embodiment of the present application.
In addition, those skilled in the art will appreciate that the configuration of the terminal illustrated in the above-described figures does not constitute a limitation of the terminal, and the terminal may include more or less components than illustrated, or may combine certain components, or may have a different arrangement of components. For example, the terminal further includes components such as a radio frequency circuit, an input unit, a sensor, an audio circuit, a wireless fidelity (WIRELESS FIDELITY, wiFi) module, a power supply, a bluetooth module, and the like, which are not described herein.
In the embodiment of the present application, the execution subject of each step may be the terminal described above. Optionally, the execution subject of each step is an operating system of the terminal. The operating system may be an android system, an IOS system, or other operating systems, which is not limited by the embodiments of the present application.
The terminal of the embodiment of the application can be further provided with a display device, and the display device can be various devices capable of realizing display functions, such as: cathode ray tube displays (cathode ray tubedisplay, CR), light-emitting diode displays (light-emitting diode display, LED), electronic ink screens, liquid Crystal Displays (LCD), plasma display panels (PLASMA DISPLAY PANEL, PDP), and the like. A user may view displayed text, images, video, etc. information using a display device on the terminal 100. The terminal may be a smart phone, a tablet computer, a gaming device, an AR (Augmented Reality ) device, an automobile, a data storage, an audio playing device, a video playing device, a notebook, a desktop computing device, a wearable device such as an electronic watch, electronic glasses, an electronic helmet, an electronic bracelet, an electronic necklace, an electronic article of clothing, etc.
It will be clear to a person skilled in the art that the solution according to the application can be implemented by means of software and/or hardware. "Unit" and "module" in this specification refer to software and/or hardware capable of performing a particular function, either alone or in combination with other components, such as Field programmable gate arrays (Field-ProgrammaBLE GATE ARRAY, FPGA), integrated circuits (INTEGRATED CIRCUIT, ICs), etc.
It should be noted that, for simplicity of description, the foregoing method embodiments are all described as a series of acts, but it should be understood by those skilled in the art that the present application is not limited by the order of acts described, as some steps may be performed in other orders or concurrently in accordance with the present application. Further, those skilled in the art will also appreciate that the embodiments described in the specification are all preferred embodiments, and that the acts and modules referred to are not necessarily required for the present application.
In the foregoing embodiments, the descriptions of the embodiments are emphasized, and for parts of one embodiment that are not described in detail, reference may be made to related descriptions of other embodiments.
In the several embodiments provided by the present application, it should be understood that the disclosed apparatus may be implemented in other manners. For example, the apparatus embodiments described above are merely illustrative, such as the division of the units, merely a logical function division, and there may be additional manners of dividing the actual implementation, such as multiple units or components may be combined or integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be through some service interface, device or unit indirect coupling or communication connection, electrical or otherwise.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable memory. Based on this understanding, the technical solution of the present application may be embodied essentially or partly in the form of a software product, or all or part of the technical solution, which is stored in a memory, and includes several instructions for causing a computer device (which may be a personal computer, a server, a network device, or the like) to perform all or part of the steps of the method according to the embodiments of the present application. And the aforementioned memory includes: a U-disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a removable hard disk, a magnetic disk, or an optical disk, or other various media capable of storing program codes.
Those of ordinary skill in the art will appreciate that all or a portion of the steps in the various methods of the above embodiments may be performed by hardware associated with a program that is stored in a computer readable memory, which may include: flash disk, read-Only Memory (ROM), random-access Memory (Random Access Memory, RAM), magnetic disk or optical disk, etc.
The foregoing is merely exemplary embodiments of the present disclosure and is not intended to limit the scope of the present disclosure. That is, equivalent changes and modifications are contemplated by the teachings of this disclosure, which fall within the scope of the present disclosure. Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a scope and spirit of the disclosure being indicated by the claims.

Claims (7)

1. A method of network connection, the method comprising:
Acquiring terminal position information, and acquiring network manual connection times corresponding to the terminal position information; the network manual connection times comprise first manual connection times and second manual connection times, wherein the first manual connection times are times of manually connecting to a wireless network, and the second manual connection times are times of manually connecting to a data communication network;
If the second manual connection times are larger than a second connection threshold value, controlling the terminal to be connected to a data communication network;
acquiring a third manual connection frequency corresponding to each wireless network identifier in the wireless network identifier set from the network manual connection frequency; determining the total number of the third manual connection times corresponding to each wireless network identifier as the first manual connection times;
And if the first manual connection times are larger than a first connection threshold, acquiring a wireless network identifier corresponding to the highest third manual connection times, and controlling the terminal to be connected to a wireless network corresponding to the wireless network identifier.
2. The method according to claim 1, wherein after the acquiring the number of network manual connections of the manual connection network corresponding to the terminal position information, further comprising:
if the network manual connection times do not meet the connection conditions, when a manual operation instruction aiming at the network is acquired, updating the network manual connection times based on the manual operation instruction.
3. The method of claim 2, wherein the number of network manual connections comprises a first number of manual connections and a second number of manual connections, and wherein updating the number of network manual connections based on the manual operation instruction comprises:
acquiring the instruction type of the manual operation instruction and acquiring a wireless network identifier corresponding to the manual operation instruction;
If the instruction type indicates that the manual operation instruction is a manual switching instruction for switching the data communication network to the wireless network, the first manual connection frequency is increased by one, the second manual connection frequency is decreased by one, the first manual connection frequency is the frequency of manually connecting to the wireless network, and the second manual connection frequency is the frequency of manually connecting to the data communication network;
And if the instruction type indicates that the manual operation instruction is a manual switching instruction for switching the wireless network to the data communication network, the first manual connection times are reduced by one, and the second manual connection times are increased by one.
4. The method of claim 1, wherein the collecting terminal location information comprises:
Acquiring current longitude and latitude data, and determining the longitude and latitude data as terminal position information; or (b)
And acquiring a current use scene, and determining terminal position information based on the current use scene.
5. A network connection device, the device comprising:
The information acquisition unit is used for acquiring the terminal position information and acquiring the network manual connection times corresponding to the terminal position information; the network manual connection times comprise first manual connection times and second manual connection times, wherein the first manual connection times are times of manually connecting to a wireless network, and the second manual connection times are times of manually connecting to a data communication network;
The network connection unit is used for controlling the terminal to be connected to a data communication network if the second manual connection times are larger than a second connection threshold value; acquiring a third manual connection frequency corresponding to each wireless network identifier in the wireless network identifier set from the network manual connection frequency; determining the total number of the third manual connection times corresponding to each wireless network identifier as the first manual connection times; if the first manual connection times are larger than a first connection threshold value, acquiring a wireless network identifier corresponding to the highest third manual connection times; and controlling the terminal to be connected to the wireless network corresponding to the wireless network identifier.
6. A terminal, comprising: a processor and a memory; wherein the memory stores a computer program adapted to be loaded by the processor and to perform the method steps of any of claims 1-4.
7. A computer storage medium storing a plurality of instructions adapted to be loaded by a processor and to perform the method steps of any one of claims 1 to 4.
CN202110962935.8A 2021-08-20 2021-08-20 Network connection method, device, terminal and storage medium Active CN113692026B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110962935.8A CN113692026B (en) 2021-08-20 2021-08-20 Network connection method, device, terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110962935.8A CN113692026B (en) 2021-08-20 2021-08-20 Network connection method, device, terminal and storage medium

Publications (2)

Publication Number Publication Date
CN113692026A CN113692026A (en) 2021-11-23
CN113692026B true CN113692026B (en) 2024-05-17

Family

ID=78581106

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110962935.8A Active CN113692026B (en) 2021-08-20 2021-08-20 Network connection method, device, terminal and storage medium

Country Status (1)

Country Link
CN (1) CN113692026B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104717610A (en) * 2015-03-04 2015-06-17 惠州Tcl移动通信有限公司 Wireless data network automatic shift method and mobile terminal based on LBS
CN106162830A (en) * 2016-09-27 2016-11-23 维沃移动通信有限公司 The method of attachment of a kind of WLAN and mobile terminal
CN107332740A (en) * 2017-08-25 2017-11-07 广东欧珀移动通信有限公司 A kind of network detecting method, network detection means and intelligent terminal
CN110519757A (en) * 2018-05-22 2019-11-29 腾讯科技(深圳)有限公司 Wireless network resource package management method, device, machinery equipment and storage medium
CN110996364A (en) * 2019-11-20 2020-04-10 深圳传音控股股份有限公司 Wireless access point switching method, mobile terminal and computer storage medium
CN111010716A (en) * 2019-12-11 2020-04-14 Oppo广东移动通信有限公司 Network control method, network control device, storage medium and electronic equipment

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104717610A (en) * 2015-03-04 2015-06-17 惠州Tcl移动通信有限公司 Wireless data network automatic shift method and mobile terminal based on LBS
CN106162830A (en) * 2016-09-27 2016-11-23 维沃移动通信有限公司 The method of attachment of a kind of WLAN and mobile terminal
CN107332740A (en) * 2017-08-25 2017-11-07 广东欧珀移动通信有限公司 A kind of network detecting method, network detection means and intelligent terminal
CN110519757A (en) * 2018-05-22 2019-11-29 腾讯科技(深圳)有限公司 Wireless network resource package management method, device, machinery equipment and storage medium
CN110996364A (en) * 2019-11-20 2020-04-10 深圳传音控股股份有限公司 Wireless access point switching method, mobile terminal and computer storage medium
CN111010716A (en) * 2019-12-11 2020-04-14 Oppo广东移动通信有限公司 Network control method, network control device, storage medium and electronic equipment

Also Published As

Publication number Publication date
CN113692026A (en) 2021-11-23

Similar Documents

Publication Publication Date Title
WO2020108085A1 (en) Resource allocation method and apparatus, terminal, and storage medium
CN109542614B (en) Resource allocation method, device, terminal and storage medium
CN111459586B (en) Remote assistance method, device, storage medium and terminal
US9756674B2 (en) Method of transmitting and receiving data of electronic device and electronic device using the method
WO2023273463A1 (en) Data plan acquisition method and apparatus, terminal, and storage medium
CN111918386A (en) Positioning method, positioning device, storage medium and electronic equipment
US10075798B2 (en) Method for providing audio and electronic device adapted to the same
CN117555459A (en) Application group processing method and device, storage medium and electronic equipment
CN113286349B (en) Personal hot spot connection method, device, terminal and storage medium
CN112114965A (en) Application program running method and device, terminal and storage medium
CN110730300A (en) Camera control method, device, storage medium and terminal
CN113692026B (en) Network connection method, device, terminal and storage medium
CN113595662B (en) Signal prompting method, device, terminal equipment and storage medium
CN113098859B (en) Webpage page rollback method, device, terminal and storage medium
CN113950043B (en) Communication method, device, storage medium and terminal
CN113419650A (en) Data moving method and device, storage medium and electronic equipment
CN112256354A (en) Application starting method and device, storage medium and electronic equipment
CN113068252B (en) Positioning method, positioning device, terminal and storage medium
CN115314588B (en) Background synchronization method, device, terminal, equipment, system and storage medium
US20180131736A1 (en) Streaming service method and device
CN116801354A (en) Resource allocation method and device, terminal, server and storage medium
CN113691676B (en) Equipment state prompting method and device, storage medium and electronic equipment
CN114125048B (en) Message push setting method and device, storage medium and electronic equipment
WO2022218191A1 (en) Method and apparatus for displaying amount of charge, storage medium, and terminal device
CN112612487A (en) Application installation method and device, storage medium and terminal

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