CN112543474A - Network connection method, mobile terminal and storage medium - Google Patents

Network connection method, mobile terminal and storage medium Download PDF

Info

Publication number
CN112543474A
CN112543474A CN201910893830.4A CN201910893830A CN112543474A CN 112543474 A CN112543474 A CN 112543474A CN 201910893830 A CN201910893830 A CN 201910893830A CN 112543474 A CN112543474 A CN 112543474A
Authority
CN
China
Prior art keywords
network
mobile terminal
value
equipment
network speed
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201910893830.4A
Other languages
Chinese (zh)
Inventor
方晓伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Qiku Internet Technology Shenzhen Co Ltd
Original Assignee
Qiku Internet Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Qiku Internet Technology Shenzhen Co Ltd filed Critical Qiku Internet Technology Shenzhen Co Ltd
Priority to CN201910893830.4A priority Critical patent/CN112543474A/en
Publication of CN112543474A publication Critical patent/CN112543474A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/08Testing, supervising or monitoring using real traffic
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/08Access restriction or access information delivery, e.g. discovery data delivery
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W88/00Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
    • H04W88/02Terminal devices
    • H04W88/04Terminal devices adapted for relaying to or from another terminal or user

Abstract

The invention provides a network connection method, a mobile terminal and a storage medium, wherein the method comprises the following steps: reading a current first network speed value by the mobile terminal; judging whether the first network speed value is lower than a preset first network speed threshold value or not; if so, the network equipment around the mobile terminal is in communication connection and equipment information of the network equipment is obtained; judging whether the network equipment meets a preset external condition or not according to the equipment information; and if so, the mobile terminal accesses an external network through the network equipment. According to the method and the device, when the network speed of the mobile terminal is low, other network equipment is automatically identified, and the network is accessed through the network equipment with the high network speed, so that the requirement of the network speed when a user uses the mobile terminal is met.

Description

Network connection method, mobile terminal and storage medium
Technical Field
The present invention relates to the field of terminal device technologies, and in particular, to a network connection method applied to a mobile terminal, and a storage medium.
Background
Wearable equipment such as intelligence bracelet receives more and more liking of masses because its smallness, convenient to carry's characteristics, along with electronic technology development rapidly, and present wearable equipment generally loads has the cellular network module, can independently surf the net and need not connect external network through wiFi.
When the user played the recreation through the mobile terminal online at home, because shielding such as wall body door and window, lead to indoor net speed good enough and bring the recreation delay, the user need walk on the balcony or the window limit just can make mobile terminal satisfy the net speed demand of recreation, also can make user's recreation place receive the limitation like this, brings not good experience for the user equally.
Disclosure of Invention
The invention mainly aims to provide a network connection method, a mobile terminal and a storage medium, so as to solve the problem that the network speed is low when the mobile terminal is used.
In order to achieve the above object, the present invention provides a network connection method, including:
the mobile terminal reads a current first network speed value;
judging whether the first network speed value is lower than a preset first network speed threshold value or not;
if so, performing communication connection with network equipment around the mobile terminal and acquiring equipment information of the network equipment;
judging whether the network equipment meets a preset external condition or not according to the equipment information;
and if so, the mobile terminal accesses an external network through the network equipment.
Further, before the step of determining whether the first wire speed value is lower than a preset first wire speed threshold value, the method includes:
and calculating to obtain a first network speed threshold according to the network speed required by the running application program.
Further, the device information includes a second network speed value of the network device, and the step of determining whether the network device satisfies a preset external condition according to the device information includes:
reading a second network speed value in the equipment information;
and if the second network speed value is larger than the first network speed value, judging that the network equipment meets a preset external condition.
Further, if the second network speed value is greater than the first network speed value, the step of determining that the network device meets a preset external condition includes:
if the second network speed value is larger than the first network speed value, acquiring a signal strength value between the mobile terminal and the network equipment;
calculating transmission efficiency according to the signal intensity value, wherein the transmission efficiency is less than or equal to 1;
multiplying the second network speed value by the transmission efficiency to obtain a critical value;
and if the critical value is larger than the first network speed value, judging that the network equipment meets a preset external condition.
Further, the network device is a wearable device, the device information includes location information of a location where the network device is located, and the step of determining whether the network device meets a preset external condition according to the device information includes:
reading position information in the equipment information;
and if the position information is the appointed position information, judging that the network equipment meets the preset external connection condition.
Further, the step of connecting to network devices around the mobile terminal in a communication manner and acquiring device information of the network devices includes:
the mobile terminal starts a WiFi module or a Bluetooth module, scans surrounding network equipment and is in communication connection with the network equipment through the WiFi module or the Bluetooth module;
receiving a picture sent by the network equipment, wherein the picture is shot by a camera on the network equipment;
and acquiring the position information of the network equipment according to the picture.
Further, the step of determining whether the network device meets a preset external condition according to the device information includes:
judging whether a first network service provider of the network equipment is consistent with a second network service provider of the mobile terminal;
if not, judging that the preset external connection condition is met.
Further, after the step of determining whether the first network service provider of the network device is consistent with the second network service provider of the mobile terminal, the method includes:
if the first network service provider of the network equipment is consistent with the second network service provider of the mobile terminal, acquiring the distance between the network equipment and the mobile terminal to obtain a distance value;
and if the distance value is greater than a preset distance threshold value, judging that a preset external condition is met.
The invention also provides a mobile terminal, which comprises a memory and a processor, wherein the memory stores a computer program, and the processor realizes the steps of any one of the methods when executing the computer program.
The invention also provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, carries out the steps of the method of any one of the above.
According to the network connection method, the mobile terminal and the storage medium provided by the invention, when the network speed of the mobile terminal is low, other network equipment is automatically identified, and the network is accessed through the network equipment with higher network speed, so that the requirement of the user on the network speed when the user uses the mobile terminal is met.
Drawings
FIG. 1 is a diagram illustrating steps of a network connection method according to an embodiment of the invention;
FIG. 2 is a diagram illustrating the steps of a network connection method according to another embodiment of the present invention;
FIG. 3 is a diagram illustrating specific steps of one embodiment of step S4 in FIG. 1;
FIG. 4 is a diagram illustrating specific steps of one embodiment of step S42 in FIG. 3;
fig. 5 is a block diagram of a mobile terminal according to an embodiment of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
As used herein, the singular forms "a", "an", "the" and "the" include plural referents unless the content clearly dictates otherwise. It will be further understood that the terms "comprises" and/or "comprising," when used in this specification, specify the presence of stated features, integers, steps, operations, elements, units, modules, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, units, modules, components, and/or groups thereof. It will be understood that when an element is referred to as being "connected" or "coupled" to another element, it can be directly connected or coupled to the other element or intervening elements may also be present. Further, "connected" or "coupled" as used herein may include wirelessly connected or wirelessly coupled. As used herein, the term "and/or" includes all or any element and all combinations of one or more of the associated listed items.
It will be understood by those skilled in the art that, unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. It will be further understood that terms, such as those defined in commonly used dictionaries, should be interpreted as having a meaning that is consistent with their meaning in the context of the prior art and will not be interpreted in an idealized or overly formal sense unless expressly so defined herein.
Referring to fig. 1, an embodiment of the present invention provides a network connection method, including:
s1, the mobile terminal reads the current first network speed value;
s2, judging whether the first network speed value is lower than a preset first network speed threshold value;
s3, if yes, the mobile terminal is in communication connection with network equipment around the mobile terminal and obtains equipment information of the network equipment;
s4, judging whether the network equipment meets the preset external connection condition according to the equipment information;
and S5, if yes, the mobile terminal accesses the external network through the network equipment.
In this embodiment, when the user uses the mobile terminal, the mobile terminal is in communication connection with an external server through a communication mode of the cellular network, that is, the mobile terminal is directly connected with the external network to perform data exchange. The cellular network of the mobile terminal will cause the network speed to change correspondingly according to the communication protocol with the external network, the stability of the base station signal, the hardware of the cellular module, the network service provider of the external network, the environment of the location where the mobile terminal is located, and the like. The network speed refers to the time for requesting and returning data when the mobile terminal accesses the internet and uploads and downloads the data. The mobile terminal can calculate the network speed of the mobile terminal according to the request data and the data size of the uploaded data in each fixed time period. The mobile terminal calculates a current first network speed value of the mobile terminal by using a built-in module for measuring the network speed. And then comparing the first wire speed value with a preset first wire speed threshold value. The first wire speed threshold is a preset fixed value or a value calculated according to a preset fixed formula. The wire speed of the first wire speed threshold value is the wire speed which can meet the requirement of a user for using the mobile terminal. If the first network speed value is lower than the first network speed threshold value, the current first network speed value of the mobile terminal is judged to be incapable of meeting the requirement of a user on normally using the mobile terminal, and the situation that the user causes pause or delay when playing a network game by using the mobile terminal or receives instant information delay of social software can be caused. At this moment, the mobile terminal accesses the external network to perform data interaction with the external network by connecting other network equipment, so that the network speed of the mobile terminal is improved. Specifically, the mobile terminal starts a WiFi module, scans surrounding network devices, is in communication connection with the surrounding network devices, and then obtains device information of the network devices. The network device refers to a device which can be connected with an external network, such as a wearable device with a SIM card. The device information of the network device includes attribute information of the network device or an environment in which the network device is located, and the like. And then according to the equipment information of the network equipment, judging whether the network speed of the mobile terminal can be increased to meet the network speed requirement of a user after the network equipment is connected, if the network speed of the mobile terminal can be increased, judging that the network equipment meets the external connection condition, and establishing communication connection between the mobile terminal and an external network through the network equipment. The device information of the network device includes various information related to the network device, such as attribute information of the network device, environment information of the network device, and parameter information at runtime. In a specific embodiment, the network device is provided with hardware such as a level meter, a compass, an illumination intensity sensor, a positioning sensor, etc., environment information of a position where the network device is located can be calculated according to data collected by each hardware, the mobile terminal obtains historical network speed, position information, orientation information, and light information in historical data of the network device, then predicts a current network speed of the network device by combining the position information, the orientation information, and the light information set by the current network, and if the predicted current network speed of the network device is greater than a first network speed value, it is determined that the network device meets a preset external condition. For example, in the history data of the network device, the average speed of the network from 0 point to 16 point is 12Mb/s, the average speed of the network from 16 point to 20 point is 25Mb/s, and the average speed of the network from 20 point to 24 point is 36 Mb/s. The first network speed threshold value of the mobile terminal is 20Mb/s, the mobile terminal acquires the current time, and if the current time is between 0 point and 16 points, the mobile terminal judges that the external connection condition is not met; and if the current time is between 16 and 20 points or between 20 and 24 points, judging that the external connection condition is met.
Referring to fig. 2, in an embodiment, before the step of determining whether the first wire speed value is lower than a preset first wire speed threshold value, the method includes:
s201, calculating to obtain a first network speed threshold according to the network speed required by the running application program.
In this embodiment, the mobile terminal has a plurality of application programs, each application program has different network speed requirements when running, and if some application programs of the stand-alone game do not need network resources, the requirement on the network speed is 0; some application programs such as a royal glory game need to be connected with an external network to be connected with other terminals in real time, the data of the picture of the game is huge, the requirement on the network speed required during the operation is high, and the huge data needs to be uploaded to a server of an external network quickly and instantly. The mobile terminal firstly obtains an application program in operation, then reads a corresponding use log, checks the data exchange speed of the application program in operation and a server of an external network during historical use, and then takes the upper peak value of the exchange speed as a first network speed threshold value. When a plurality of running application programs exist, the network speeds of the common requirements of the plurality of application programs are added to obtain a first network speed threshold value.
Referring to fig. 3, in an embodiment, the device information includes a second network speed value of the network device, and the step of determining whether the network device meets a preset external connection condition according to the device information includes:
s41, reading a second network speed value in the equipment information;
and S42, if the second network speed value is larger than the first network speed value, judging that the network equipment meets a preset external condition.
In this embodiment, the device information includes a current network speed value of the network device, that is, a second network speed value. When the first network speed value of the mobile terminal cannot meet the requirement that a user uses the mobile terminal, the network speed of the mobile terminal can meet the use requirement of the user only after the mobile terminal is connected with an external network through the network equipment if the second network speed value of the external network equipment is certainly larger than the first network speed value of the mobile terminal to surf the internet through the external network equipment. When the second network speed value of the network device is obtained, specifically, the mobile terminal sends data of an application program in operation and a server address corresponding to the application program to the network device through bluetooth, the network device accesses the corresponding server address and uploads the data to the corresponding server, and the second network speed value is calculated according to the time length required for uploading the data to the server and the size of the data. Therefore, the second network speed value can be calculated more accurately, and the influence of the factor of different servers is avoided, so that the measured second network speed value is inaccurate.
Referring to fig. 4, in an embodiment, the step of determining that the network device meets a preset external condition if the second network speed value is greater than the first network speed value includes:
s421, if the second network speed value is larger than the first network speed value, obtaining a signal strength value between the mobile terminal and the network device;
s422, calculating transmission efficiency according to the signal intensity value, wherein the transmission efficiency is less than or equal to 1;
s423, multiplying the second network speed value by the transmission efficiency to obtain a critical value;
and S424, if the critical value is larger than the first network speed value, judging that the network equipment meets a preset external condition.
In this embodiment, the mobile terminal accesses the internet through the network device, and the data sending process is that the mobile terminal sends data to the network device first, and then the network device sends the data to the corresponding server. There are two sending processes for data transmission, and the data transmission speed between the mobile terminal and the network device also has some influence. Therefore, a signal strength value between the mobile terminal and the network device is also calculated. The larger the signal intensity value is, the faster the data transmission speed is; the smaller the signal strength value, the slower the data transmission speed thereof. Firstly, the mobile terminal sends a signal to the network equipment through the WiFi module, and records a first signal strength a1 when the signal is sent, when the network equipment receives the signal, a second signal strength a2 when the signal is received is recorded, then the mobile terminal subtracts the second signal strength from the second signal strength to obtain a signal strength value a3, and the first signal strength when the signal is sent is greater than the second signal strength when the signal is received, so that the signal strength value is a negative number. And then according to the magnitude of the signal intensity value, converting the signal intensity value into transmission efficiency b. b-a 3/a 1. Since the absolute value of a3 is less than or equal to a1, the transmission efficiency is less than or equal to 1. Then multiplying the second network speed value by the transmission efficiency to obtain a critical value, wherein the critical value represents the maximum network speed between the mobile terminal and the server after the mobile terminal is connected with the server through the network equipment, and if the critical value is smaller than or equal to the first network speed value, the critical value represents that the network speed is slower or the same as the network speed between connections after the mobile terminal is connected with the server through the network equipment, so that the mobile terminal does not need to be connected with the network equipment; if the critical value is larger than the first network speed value, connection is necessary, and the network speed of the mobile terminal can be improved, so that the network equipment is judged to meet the preset external connection condition.
In one embodiment, the network device is a wearable device, the device information includes location information of a location where the network device is located, and the step of determining whether the network device meets a preset external condition according to the device information includes:
s43, reading the position information in the equipment information;
and S44, if the position information is the designated position information, judging that the network equipment meets the preset external connection condition.
In this embodiment, the network device is a wearable device, and the wearable device has a cellular network module therein and can be connected to an external network. When a user uses the mobile terminal at home, the network speed is not good, and may be due to a large influence on the signal caused by a wall or a window in the home. If the network equipment is at the position where the windowsill or the balcony and the like are not shielded, the signal of the network equipment is good, and the brought network speed is good, so that the network speed of the mobile terminal can be improved after connection, and the external connection condition is judged to be met. When the application scene is indoors, the designated position refers to a balcony or a windowsill, the user places the wearable device on the balcony or the windowsill, and then the user uses the mobile terminal to connect the wearable device on a sofa in a living room, so that the mobile terminal is connected with an external network through the wearable device. In other embodiments, the user sets different designated locations according to different usage scenarios.
In an embodiment, the step of communicatively connecting to network devices around the mobile terminal and acquiring device information of the network devices includes:
s31, the mobile terminal starts a WiFi module or a Bluetooth module, scans surrounding network equipment and is in communication connection with the network equipment through the WiFi module or the Bluetooth module;
s32, receiving a picture sent by the network equipment, wherein the picture is obtained by shooting through a camera on the network equipment;
and S33, acquiring the position information of the network equipment according to the picture.
In this embodiment, wearable equipment is last to have the camera, can shoot the photo. The mobile terminal opens the WiFi module or the Bluetooth module, scans surrounding network equipment, after the wearable equipment is scanned, the wearable equipment is in communication connection with the wearable equipment through the WiFi module or the Bluetooth module, a test request is sent to the wearable equipment, the wearable equipment controls the camera to shoot to obtain pictures, and the pictures are sent to the mobile terminal. The mobile terminal identifies the picture, analyzes whether the picture comprises the scene of an outdoor object, and judges whether the wearable device is located on a balcony or a windowsill if the picture comprises the scene of the outdoor object. If the picture comprises objects such as a wall, a desk, a mural, a television and the like, the position of the wearable device is judged to be indoor.
In an embodiment, the step of determining whether the network device meets a preset external connection condition according to the device information includes:
s45, judging whether a first network service provider of the network equipment is consistent with a second network service provider of the mobile terminal;
and S46, if not, judging that the preset external connection condition is met.
In this embodiment, the network service provider includes mobile, internet, telecommunication, etc. The same terminal may achieve different wire speeds because different network service providers employ different network communication protocols or different base stations. If the first network facilitator of the network device and the second network facilitator of the mobile terminal are the same network facilitator and the distance between the network device and the mobile terminal is short, the second network speed value of the network device is judged to be close to the first network speed value of the mobile terminal, and even if the mobile terminal is connected with an external server through the network device, the network speed of the mobile terminal cannot be improved well. Therefore, if the first service provider is different from the second service provider, the network speed can be increased after the mobile terminal is connected to the external network through the wearable device, and it is determined that the preset external condition is met. In a specific embodiment, after the mobile terminal is in communication connection with the wearable device, a third network speed value after the mobile terminal is connected is detected, and if the third network speed value is lower than the first network speed value, an antenna rotating instruction is sent to the wearable device to rotate the antenna of the wearable device, so that the second network speed value of the wearable device is increased, and finally the network speed of the mobile terminal meets the requirements of the user.
In an embodiment, after the step of determining whether the first network service provider of the network device is consistent with the second network service provider of the mobile terminal, the method includes:
s47, if the first network service provider of the network equipment is consistent with the second network service provider of the mobile terminal, acquiring the distance between the network equipment and the mobile terminal to obtain a distance value;
and S48, if the distance value is larger than a preset distance threshold value, judging that a preset external connection condition is met.
In this embodiment, if the first service provider is the same as the second service provider, and the distance between the first service provider and the second service provider is far, especially indoors, the distance between the first service provider and the second service provider is a little far, and a wall is separated, the difference between the network speeds of the first service provider and the second service provider is large. The mobile terminal sends a test signal to the network equipment through the Bluetooth, the network equipment calculates the distance between the mobile terminal and the network equipment according to the signal intensity of the received test signal to obtain a distance value, and then the distance value is sent to the mobile terminal. If the distance value is greater than the preset distance threshold value, the distance between the mobile terminal and the network service provider is larger, although the network service provider is the same network service provider, the network speed difference is larger, and the network speed of the mobile terminal is also increased after the mobile terminal is connected with the network equipment, so that the mobile terminal is judged to meet the preset external connection condition.
In one embodiment, the network device is a wearable device, and if a first network service provider of the network device is consistent with a second network service provider of the mobile terminal, whether the wearable device is worn is determined; if not, judging that the preset external connection condition is met.
In this embodiment, the network device is a wearable device, the wearable device is wearable on the body of the user, when the user uses the mobile terminal, if the wearable device is worn on the body of the user, it indicates that the distance between the wearable device and the mobile terminal is very close, and the first network service provider of the wearable device is consistent with the second network service provider of the mobile terminal, so that the network speeds of the wearable device and the mobile terminal are relatively close, and at this time, the wearable device cannot provide the mobile terminal with a network speed higher than the first network speed value, so that it is determined that the preset external condition is not satisfied. On the contrary, if the wearable device is not worn, the wearable device is away from the mobile terminal by a certain distance, the network speed of the wearable device and the network speed of the mobile terminal are different by a certain distance, and after the mobile terminal is in communication connection with the wearable device, the network speed of the mobile terminal is improved, so that the network speed requirement of the user can be met. The method for judging whether the wearable equipment is worn comprises the following steps: acquiring a heart rate value acquired by wearable equipment; judging whether the heart rate value is within a preset heart rate threshold range or not; if so, the wearable device is determined to be worn.
In an embodiment, after the step of reading the second wire speed value in the device information, the method includes:
if the second network speed value is less than or equal to the first network speed value, subtracting the second network speed value from the first network speed value to obtain a network speed difference value;
dividing the network speed difference value by the first network speed threshold value to obtain a network speed difference value rate;
if the network speed difference rate is smaller than a preset network speed threshold difference rate, acquiring first traffic information of a first network service provider and second traffic information of a second network service provider;
and if the first flow information and the second flow information meet a preset second condition, the mobile terminal accesses an external network through the network equipment.
In this embodiment, if the second network speed value is less than or equal to the first network speed value, but the difference between the two network speeds is not large, the network speed of the mobile terminal after accessing the external network through the network device will not be significantly reduced, and the experience of the client will not be reduced. Firstly, judging that the difference value between the first network speed value and the second network speed value is not large, and then judging whether the mobile terminal accesses an external network through network equipment or not according to the flow information of the first network speed value and the second network speed value.
And the judgment process for judging that the difference value between the first network speed value and the second network speed value is not large is that the network speed values of the first network speed value and the second network speed value are subtracted to obtain the network speed difference value, and the network speed difference value is obtained by subtracting the second network speed value from the first network speed value or subtracting the absolute value of the first network speed value from the second network speed value, wherein the network speed difference value is a positive number. And then dividing the network speed difference value by the first network speed threshold value to obtain a network speed difference value rate, comparing the network speed difference value rate with a network speed threshold difference rate preset by the user, if the network speed difference value rate is smaller than the network speed threshold difference rate, indicating that the network speed difference is within a range acceptable by the user, and judging that the user can consider using the mobile terminal under the condition of the network speed difference. Then, the mobile terminal obtains the first traffic information, specifically, obtains the first traffic information by accessing to a server of a first network service provider, and obtains second traffic information sent by the network device. The flow information comprises residual flow, flow property, flow time limit and the like in the package, then the first flow information is compared with the second flow information to judge whether the second condition is met, if the second condition is met, the cost for accessing the external network through the network equipment is lower from the economic aspect, and the mobile terminal is accessed to the external network through the network equipment. The second condition includes at least one of that the remaining traffic in the first traffic information is smaller than the remaining traffic in the second traffic information, that the traffic property in the second traffic information is consistent with the traffic property required by the mobile terminal, and that the traffic deadline in the first traffic information is closer to the traffic deadline in the second traffic information.
In summary, in the network connection method provided in the embodiment of the present invention, when the network speed of the mobile terminal is low, other network devices are automatically identified, and the network device with the higher network speed is used to surf the internet, so as to meet the requirement of the user on the network speed when using the mobile terminal.
An embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, implements the steps of the method according to any one of the above.
Fig. 5 shows only a portion related to the embodiment of the present invention for convenience of description, and please refer to the method portion in the embodiment of the present invention for details that are not disclosed. The mobile terminal may be any terminal device including a mobile phone, a tablet computer, a PDA (Personal Digital Assistant), a POS (Point of Sales), a vehicle-mounted computer, etc., taking the terminal as the mobile phone as an example:
fig. 5 is a block diagram illustrating a partial structure of a mobile phone related to a mobile terminal according to an embodiment of the present invention. Referring to fig. 5, the handset includes: radio Frequency (RF) circuit 110, memory 120, input unit 130, display unit 140, sensor 150, audio circuit 160, wireless-fidelity (Wi-Fi) module 170, processor 180, and power supply 190. Those skilled in the art will appreciate that the handset configuration shown in fig. 5 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
The following describes each component of the mobile phone in detail with reference to fig. 5:
the RF circuit 110 may be used for receiving and transmitting signals during information transmission and reception or during a call, and in particular, receives downlink information of a base station and then processes the received downlink information to the processor 180; in addition, the data for designing uplink is transmitted to the base station. In general, the RF circuit 110 includes, but is not limited to, an antenna, at least one Amplifier, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like. In addition, the RF circuitry 110 may also communicate with networks and other devices via wireless communications. The wireless communication may use any communication standard or protocol, including but not limited to Global System for Mobile communication (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), email, Short Messaging Service (SMS), and the like.
The memory 120 may be used to store software programs and modules, and the processor 180 executes various functional applications and data processing of the mobile phone by operating the software programs and modules stored in the memory 120. The memory 120 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 120 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The input unit 130 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the cellular phone. Specifically, the input unit 130 may include a touch panel 131 and other input devices 132. The touch panel 131, also referred to as a touch screen, may collect touch operations of a user on or near the touch panel 131 (e.g., operations of the user on or near the touch panel 131 using any suitable object or accessory such as a finger or a stylus pen), and drive the corresponding connection device according to a preset program. Alternatively, the touch panel 131 may include two parts, i.e., a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 180, and can receive and execute commands sent by the processor 180. In addition, the touch panel 131 may be implemented by various types such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. The input unit 130 may include other input devices 132 in addition to the touch panel 131. In particular, other input devices 132 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 140 may be used to display information input by a user or information provided to the user and various menus of the mobile phone. The Display unit 140 may include a Display panel 141, and optionally, the Display panel 141 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like. Further, the touch panel 131 can cover the display panel 141, and when the touch panel 131 detects a touch operation on or near the touch panel 131, the touch operation is transmitted to the processor 180 to determine the type of the touch event, and then the processor 180 provides a corresponding visual output on the display panel 141 according to the type of the touch event. Although in fig. 5, the touch panel 131 and the display panel 141 are two independent components to implement the input and output functions of the mobile phone, in some embodiments, the touch panel 131 and the display panel 141 may be integrated to implement the input and output functions of the mobile phone.
The handset may also include at least one sensor 150, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor that adjusts the brightness of the display panel 141 according to the brightness of ambient light, and a proximity sensor that turns off the display panel 141 and/or the backlight when the mobile phone is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when stationary, and can be used for applications of recognizing the posture of a mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which can be configured on the mobile phone, further description is omitted here.
Audio circuitry 160, speaker 161, and microphone 162 may provide an audio interface between the user and the handset. The audio circuit 160 may transmit the electrical signal converted from the received audio data to the speaker 161, and convert the electrical signal into a sound signal for output by the speaker 161; on the other hand, the microphone 162 converts the collected sound signal into an electrical signal, which is received by the audio circuit 160 and converted into audio data, which is then processed by the audio data output processor 180 and then transmitted to, for example, another cellular phone via the RF circuit 110, or the audio data is output to the memory 120 for further processing.
WiFi belongs to short-distance wireless transmission technology, and the mobile phone can help a user to receive and send e-mails, browse webpages, access streaming media and the like through the WiFi module 170, and provides wireless broadband Internet access for the user. Although fig. 5 shows the WiFi module 170, it is understood that it does not belong to the essential constitution of the handset, and may be omitted entirely as needed within the scope not changing the essence of the invention.
The processor 180 is a control center of the mobile phone, connects various parts of the entire mobile phone by using various interfaces and lines, and performs various functions of the mobile phone and processes data by operating or executing software programs and/or modules stored in the memory 120 and calling data stored in the memory 120, thereby integrally monitoring the mobile phone. Alternatively, processor 180 may include one or more processing units; preferably, the processor 180 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 180.
The handset also includes a power supply 190 (e.g., a battery) for powering the various components, and preferably, the power supply may be logically connected to the processor 180 via a power management system, such that functions such as managing charging, discharging, and power consumption are performed via the power management system.
Although not shown, the mobile phone may further include a camera, a bluetooth module, etc., which are not described herein.
Referring to fig. 5, in the embodiment of the present invention, the processor 180 included in the mobile terminal further has the following functions:
the mobile terminal reads a current first network speed value;
judging whether the first network speed value is lower than a preset first network speed threshold value or not;
if so, performing communication connection with network equipment around the mobile terminal and acquiring equipment information of the network equipment;
judging whether the network equipment meets a preset external condition or not according to the equipment information;
and if so, the mobile terminal accesses an external network through the network equipment.
The memory 120 is used for storing a program that supports the processor 180 to execute the network connection method according to the above embodiment;
the processor 180 is configured to execute programs stored in the memory 120.
In summary, according to the network connection method, the mobile terminal and the storage medium provided in the embodiments of the present invention, when the network speed of the mobile terminal is low, other network devices are automatically identified, and the network device with a higher network speed is used to surf the internet, so as to meet the requirement of the network speed when the user uses the mobile terminal.
Those skilled in the art will appreciate that the present invention includes apparatus directed to performing one or more of the operations described in the present application. These devices may be specially designed and manufactured for the required purposes, or they may comprise known devices in general-purpose computers. These devices have stored therein computer programs that are selectively activated or reconfigured. Such a computer program may be stored in a device (e.g., computer) readable medium, including, but not limited to, any type of disk including floppy disks, hard disks, optical disks, CD-ROMs, and magnetic-optical disks, ROMs (Read-Only memories), RAMs (Random Access memories), EPROMs (Erasable Programmable Read-Only memories), EEPROMs (Electrically Erasable Programmable Read-Only memories), flash memories, magnetic cards, or optical cards, or any type of media suitable for storing electronic instructions, and each coupled to a bus. That is, a readable medium includes any medium that stores or transmits information in a form readable by a device (e.g., a computer).
It will be understood by those within the art that each block of the block diagrams and/or flowchart illustrations, and combinations of blocks in the block diagrams and/or flowchart illustrations, can be implemented by computer program instructions. Those skilled in the art will appreciate that the computer program instructions may be implemented by a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, implement the features specified in the block or blocks of the block diagrams and/or flowchart illustrations of the present disclosure.
Those of skill in the art will appreciate that various operations, methods, steps in the processes, acts, or solutions discussed in the present application may be alternated, modified, combined, or deleted. Further, various operations, methods, steps in the flows, which have been discussed in the present application, may be interchanged, modified, rearranged, decomposed, combined, or eliminated. Further, steps, measures, schemes in the various operations, methods, procedures disclosed in the prior art and the present invention can also be alternated, changed, rearranged, decomposed, combined, or deleted.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

1. A network connection method, comprising the steps of:
the mobile terminal reads a current first network speed value;
judging whether the first network speed value is lower than a preset first network speed threshold value or not;
if so, performing communication connection with network equipment around the mobile terminal and acquiring equipment information of the network equipment;
judging whether the network equipment meets a preset external condition or not according to the equipment information;
and if so, the mobile terminal accesses an external network through the network equipment.
2. The network connection method according to claim 1, wherein the step of determining whether the first wire speed value is lower than a preset first wire speed threshold value is preceded by:
and calculating to obtain a first network speed threshold according to the network speed required by the running application program.
3. The network connection method according to claim 1, wherein the device information includes a second network speed value of the network device, and the step of determining whether the network device satisfies a preset external connection condition according to the device information includes:
reading a second network speed value in the equipment information;
and if the second network speed value is larger than the first network speed value, judging that the network equipment meets a preset external condition.
4. The network connection method according to claim 3, wherein the step of determining that the network device satisfies a predetermined external condition if the second network speed value is greater than the first network speed value comprises:
if the second network speed value is larger than the first network speed value, acquiring a signal strength value between the mobile terminal and the network equipment;
calculating transmission efficiency according to the signal intensity value, wherein the transmission efficiency is less than or equal to 1;
multiplying the second network speed value by the transmission efficiency to obtain a critical value;
and if the critical value is larger than the first network speed value, judging that the network equipment meets a preset external condition.
5. The network connection method according to claim 1, wherein the network device is a wearable device, the device information includes location information of a location where the network device is located, and the step of determining whether the network device satisfies a preset external condition according to the device information includes:
reading position information in the equipment information;
and if the position information is the appointed position information, judging that the network equipment meets the preset external connection condition.
6. The network connection method according to claim 5, wherein the step of connecting to the network device around the mobile terminal and acquiring the device information of the network device comprises:
the mobile terminal starts a WiFi module or a Bluetooth module, scans surrounding network equipment and is in communication connection with the network equipment through the WiFi module or the Bluetooth module;
receiving a picture sent by the network equipment, wherein the picture is shot by a camera on the network equipment;
and acquiring the position information of the network equipment according to the picture.
7. The network connection method according to claim 1, wherein the step of determining whether the network device satisfies a preset external condition according to the device information includes:
judging whether a first network service provider of the network equipment is consistent with a second network service provider of the mobile terminal;
if not, judging that the preset external connection condition is met.
8. The network connection method of claim 7, wherein the step of determining whether the first network facilitator of the network device is consistent with the second network facilitator of the mobile terminal comprises:
if the first network service provider of the network equipment is consistent with the second network service provider of the mobile terminal, acquiring the distance between the network equipment and the mobile terminal to obtain a distance value;
and if the distance value is greater than a preset distance threshold value, judging that a preset external condition is met.
9. A mobile terminal comprising a memory and a processor, the memory having stored therein a computer program, characterized in that the processor, when executing the computer program, implements the steps of the method according to any of claims 1 to 8.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 8.
CN201910893830.4A 2019-09-20 2019-09-20 Network connection method, mobile terminal and storage medium Pending CN112543474A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910893830.4A CN112543474A (en) 2019-09-20 2019-09-20 Network connection method, mobile terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910893830.4A CN112543474A (en) 2019-09-20 2019-09-20 Network connection method, mobile terminal and storage medium

Publications (1)

Publication Number Publication Date
CN112543474A true CN112543474A (en) 2021-03-23

Family

ID=75012462

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910893830.4A Pending CN112543474A (en) 2019-09-20 2019-09-20 Network connection method, mobile terminal and storage medium

Country Status (1)

Country Link
CN (1) CN112543474A (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090298496A1 (en) * 2004-12-06 2009-12-03 Mattias Pettersson Access selection in wireless networks
CN105188101A (en) * 2015-07-21 2015-12-23 努比亚技术有限公司 Network switching device and method
CN105813147A (en) * 2015-06-29 2016-07-27 维沃移动通信有限公司 Network switching method and terminal
CN106255162A (en) * 2016-08-29 2016-12-21 北海爱飞数码科技有限公司 Network automatic switching method
WO2017071262A1 (en) * 2015-10-28 2017-05-04 乐视控股(北京)有限公司 Network switching method, device and terminal equipment
CN107295594A (en) * 2017-08-07 2017-10-24 广东欧珀移动通信有限公司 Method for switching network, device and mobile terminal
CN107820302A (en) * 2017-11-30 2018-03-20 广东欧珀移动通信有限公司 Mobile terminal wireless local area network scan method and apparatus, computer equipment
CN108495349A (en) * 2018-03-15 2018-09-04 维沃移动通信有限公司 A kind of switching method and mobile terminal of carrier network
CN108632823A (en) * 2018-05-14 2018-10-09 Oppo广东移动通信有限公司 A kind of method for switching network, terminal and computer storage media
CN109151942A (en) * 2017-06-27 2019-01-04 宇龙计算机通信科技(深圳)有限公司 A kind of network insertion switching method, device and mobile terminal

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090298496A1 (en) * 2004-12-06 2009-12-03 Mattias Pettersson Access selection in wireless networks
CN105813147A (en) * 2015-06-29 2016-07-27 维沃移动通信有限公司 Network switching method and terminal
CN105188101A (en) * 2015-07-21 2015-12-23 努比亚技术有限公司 Network switching device and method
WO2017071262A1 (en) * 2015-10-28 2017-05-04 乐视控股(北京)有限公司 Network switching method, device and terminal equipment
CN106255162A (en) * 2016-08-29 2016-12-21 北海爱飞数码科技有限公司 Network automatic switching method
CN109151942A (en) * 2017-06-27 2019-01-04 宇龙计算机通信科技(深圳)有限公司 A kind of network insertion switching method, device and mobile terminal
CN107295594A (en) * 2017-08-07 2017-10-24 广东欧珀移动通信有限公司 Method for switching network, device and mobile terminal
CN107820302A (en) * 2017-11-30 2018-03-20 广东欧珀移动通信有限公司 Mobile terminal wireless local area network scan method and apparatus, computer equipment
CN108495349A (en) * 2018-03-15 2018-09-04 维沃移动通信有限公司 A kind of switching method and mobile terminal of carrier network
CN108632823A (en) * 2018-05-14 2018-10-09 Oppo广东移动通信有限公司 A kind of method for switching network, terminal and computer storage media

Similar Documents

Publication Publication Date Title
CN106412681B (en) Live bullet screen video broadcasting method and device
CN106303023B (en) Screen state adjusting method and device
US11363196B2 (en) Image selection method and related product
CN108900231B (en) Dynamic antenna adjustment method and related product
CN103347003B (en) A kind of Voice over Internet method, Apparatus and system
CN108834132B (en) Data transmission method and equipment and related medium product
CN106843868B (en) Multi-account login method and device and mobile terminal
WO2018103441A1 (en) Network positioning method and terminal device
TW201515682A (en) Methods and terminal for data acquisition
AU2018273505A1 (en) Method for capturing fingerprint and associated products
CN107801201A (en) Network recovery method and device
CN104571979A (en) Method and device for realizing split-screen views
CN109495769B (en) Video communication method, terminal, smart television, server and storage medium
CN107562303B (en) Method and device for controlling element motion in display interface
CN105227598A (en) A kind of resource sharing method, device and system stored based on cloud
CN105992001A (en) Method and device for carrying out quantification processing on picture
CN104092657A (en) Information transmission method, device and system
CN110489657B (en) Information filtering method and device, terminal equipment and storage medium
US20150070360A1 (en) Method and mobile terminal for drawing sliding trace
CN103457832A (en) Information management method, device and terminal
CN111372003A (en) Camera switching method and device and terminal
CN104702643A (en) A webpage access method, device and system
CN103079047B (en) A kind of method of parameter adjustment and terminal
CN110022600A (en) Adjusting method, device, storage medium and the mobile terminal of driving current
CN109547640A (en) Mobile terminal WIFI control method, device, mobile terminal and storage medium

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