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

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

Info

Publication number
CN111954317B
CN111954317B CN202010794625.5A CN202010794625A CN111954317B CN 111954317 B CN111954317 B CN 111954317B CN 202010794625 A CN202010794625 A CN 202010794625A CN 111954317 B CN111954317 B CN 111954317B
Authority
CN
China
Prior art keywords
frequency band
frequency
mobile terminal
network connection
base station
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
CN202010794625.5A
Other languages
Chinese (zh)
Other versions
CN111954317A (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.)
TCL Communication Ningbo Ltd
Original Assignee
TCL Communication Ningbo 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 TCL Communication Ningbo Ltd filed Critical TCL Communication Ningbo Ltd
Priority to CN202010794625.5A priority Critical patent/CN111954317B/en
Publication of CN111954317A publication Critical patent/CN111954317A/en
Application granted granted Critical
Publication of CN111954317B publication Critical patent/CN111954317B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/19Connection re-establishment
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Abstract

The application relates to a network connection method, a device, a storage medium and a mobile terminal, wherein the network connection method is applied to the mobile terminal and comprises the following steps: when the mobile terminal needs to perform network connection again, acquiring a plurality of frequency bands supported by the mobile terminal, and determining the working frequency band of the base station which is supported by the mobile terminal and accessed; sequencing the plurality of frequency bands according to the frequency, and taking the frequency band at the middle sequencing position as a middle frequency band; comparing the frequency of the working frequency band with the frequency of the middle frequency band to obtain a comparison result; and performing network connection according to the comparison result, so that when the mobile terminal needs to perform network connection again, connection detection on all LTE frequency bands supported by the mobile terminal is not needed, the time for the mobile terminal to connect to the network can be shortened, and the internet access efficiency is improved.

Description

Network connection method, device, storage medium and mobile terminal
Technical Field
The present application relates to the field of communications technologies, and in particular, to a network connection method, an apparatus, a storage medium, and a mobile terminal.
Background
With the rapid development of communication technology, LTE technology is currently commonly used in mobile terminals, and LTE can be understood that Long Term Evolution (Long Term Evolution) is the Evolution of 3G, but LTE is not the commonly understood 4G technology, but a transition between 3G and 4G technologies, and is a global standard of 3.9G, which improves and enhances the 3G over-the-air access technology and adopts OFDM and MIMO as the unique standards for wireless network Evolution thereof. The LTE technology greatly increases the communication rate of the mobile terminal, improves the performance of cell edge users, increases the cell capacity, and reduces system delay, so that many mobile terminals already use the LTE technology.
However, in the prior art, there are many LTE frequency bands, and because the user activity range of the mobile terminal is large, the mobile terminal often needs to support more LTE frequency bands, so that the mobile terminal needs to detect all the LTE frequency bands supported by the mobile terminal when performing network connection, which is time-consuming and affects the internet access efficiency.
Disclosure of Invention
The application aims to provide a network connection method, a network connection device, a storage medium and a mobile terminal, so that the time for connecting the mobile terminal to a network is shortened, and the internet access efficiency is improved.
In order to solve the foregoing problem, an embodiment of the present application provides a network connection method, where the network connection method is applied to a mobile terminal, and includes: when the mobile terminal needs to perform network connection again, acquiring a plurality of frequency bands supported by the mobile terminal, and determining the working frequency band of the base station which is supported by the mobile terminal and accessed; sequencing the plurality of frequency bands according to the frequency, and taking the frequency band at the middle sequencing position as a middle frequency band; comparing the frequency of the working frequency band with the frequency of the middle frequency band to obtain a comparison result; and performing network connection according to the comparison result.
Wherein, according to the comparison result, the network connection is performed, which includes: when the comparison result indicates that the frequency of the working frequency band is the same as the frequency of the middle frequency band, network connection is performed through the middle frequency band; when the comparison result indicates that the frequency of the working frequency band is greater than the frequency of the middle frequency band, taking the frequency band of which the frequency is greater than the frequency of the middle frequency band as an undetermined frequency band, updating the frequency bands by using the undetermined frequency band, then returning to execute the steps of sequencing the frequency bands according to the frequency size and taking the frequency band at the middle sequencing position as the middle frequency band; and when the comparison result indicates that the frequency of the working frequency band is less than the frequency of the middle frequency band, taking the frequency band of which the frequency is less than the frequency of the middle frequency band as an undetermined frequency band, updating the frequency bands by using the undetermined frequency band, then returning to execute the steps of sequencing the frequency bands according to the frequency size and taking the frequency band at the middle sequencing position as the middle frequency band.
The determining the working frequency band of the base station which the mobile terminal supports to access comprises the following steps: receiving electromagnetic wave signals transmitted by peripheral base stations; and determining the working frequency band of the base station which supports the access of the mobile terminal based on the received electromagnetic wave signals.
The method for determining the working frequency band of the base station which supports the access of the mobile terminal based on the received electromagnetic wave signals comprises the following steps: determining a peripheral base station corresponding to the electromagnetic wave signal with the maximum signal intensity in the received electromagnetic wave signals as a target base station; and taking the frequency band of the electromagnetic wave signal transmitted by the target base station as the working frequency band of the base station which supports the access of the mobile terminal.
Before acquiring a plurality of frequency bands supported by the mobile terminal and determining an operating frequency band of a base station supported by the mobile terminal for access, the method further comprises the following steps: monitoring whether the running state of the mobile terminal is a preset running state or not, wherein the preset running state comprises starting, restarting, closing a flight mode, switching a cell or inserting a Subscriber Identity Module (SIM); and if so, determining that the mobile terminal needs to perform network connection again.
In order to solve the foregoing problem, an embodiment of the present invention further provides a network connection device, where the network connection device is applied to a mobile terminal, and the network connection device includes: the first determining module is used for acquiring a plurality of frequency bands supported by the mobile terminal when the mobile terminal needs to perform network connection again, and determining the working frequency band of the base station which is supported by the mobile terminal and accessed; the sequencing module is used for sequencing the frequency bands according to the frequency sizes and taking the frequency band at the middle sequencing position as a middle frequency band; the comparison module is used for comparing the frequency of the working frequency band with the frequency of the middle frequency band to obtain a comparison result; and the connection module is used for carrying out network connection according to the comparison result.
Wherein, the connection module is specifically configured to: when the comparison result indicates that the frequency of the working frequency band is the same as the frequency of the middle frequency band, network connection is performed through the middle frequency band; when the comparison result indicates that the frequency of the working frequency band is greater than the frequency of the middle frequency band, taking the frequency band of which the frequency is greater than the frequency of the middle frequency band as an undetermined frequency band, updating the frequency bands by using the undetermined frequency band, then triggering a sorting module to sort the frequency bands according to the frequency size, and taking the frequency band at the middle sorting position as the middle frequency band; and when the comparison result indicates that the frequency of the working frequency band is less than the frequency of the middle frequency band, taking the frequency band of which the frequency is less than the frequency of the middle frequency band as an undetermined frequency band, updating the frequency bands by using the undetermined frequency band, then triggering the sequencing module to sequence the frequency bands according to the frequency size, and taking the frequency band at the middle sequencing position as the middle frequency band.
Wherein the first determining module comprises: the receiving unit is used for receiving electromagnetic wave signals transmitted by peripheral base stations; and the determining unit is used for determining the working frequency band of the base station which supports the access of the mobile terminal based on the received electromagnetic wave signal.
Wherein, the quantity of peripheral basic station is a plurality of, and the determining element includes: the first determining subunit is used for determining a peripheral base station corresponding to the electromagnetic wave signal with the maximum signal intensity in the received electromagnetic wave signals as a target base station; and the second determining subunit is used for taking the frequency band of the electromagnetic wave signal transmitted by the target base station as the working frequency band of the base station which the mobile terminal supports to access.
Wherein, the network connection device further comprises: the monitoring module is used for monitoring whether the running state of the mobile terminal is a preset running state, wherein the preset running state comprises starting, restarting, closing a flight mode, switching a cell or inserting a Subscriber Identity Module (SIM); and the second determining module is used for determining that the mobile terminal needs to perform network connection again when the running state of the mobile terminal is the preset running state.
In order to solve the above problem, an embodiment of the present application further provides a computer-readable storage medium, where a plurality of instructions are stored, and the instructions are adapted to be loaded by a processor to execute any one of the network connection methods described above.
In order to solve the above problem, an embodiment of the present application further provides a mobile terminal, where the mobile terminal includes a processor and a memory, the processor is electrically connected to the memory, the memory is used for storing instructions and data, and the processor is used for executing steps in any one of the network connection methods.
The beneficial effect of this application is: different from the prior art, the network connection method provided by the application is applied to the mobile terminal, and when the mobile terminal needs to perform network connection again, the multiple frequency bands supported by the mobile terminal are obtained, the working frequency band of the base station which is supported by the mobile terminal and accessed is determined, then the multiple frequency bands are sequenced according to the frequency, the frequency band in the middle sequencing position is used as the middle frequency band, then the frequency of the working frequency band is compared with the frequency of the middle frequency band to obtain a comparison result, and network connection is performed according to the comparison result, so that when the mobile terminal needs to perform network connection again, connection detection on all LTE frequency bands supported by the mobile terminal is not needed, the time for connecting the mobile terminal to the network can be shortened, and the internet access efficiency is improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the description below are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic flowchart of a network connection method provided in an embodiment of the present application;
fig. 2 is a schematic structural diagram of a network connection system provided in an embodiment of the present application;
fig. 3 is another schematic flow chart of a network connection method provided in an embodiment of the present application;
fig. 4 is a schematic structural diagram of a network connection device according to an embodiment of the present application;
fig. 5 is another schematic structural diagram of a network connection device according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of a mobile terminal provided in an embodiment of the present application;
fig. 7 is another schematic structural diagram of a mobile terminal according to an embodiment of the present application.
Detailed Description
In order to make the purpose, technical solution, and technical effects of the present application clearer and clearer, the following further describes the present application in detail, and it should be understood that the specific embodiments described herein are only used for explaining the present application, and are not used for limiting the present application.
Referring to fig. 1, fig. 1 is a schematic flowchart of a network connection method provided in an embodiment of the present application, where the network connection method is applied to a mobile terminal, and a specific flow may be as follows:
s101: when the mobile terminal needs to perform network connection again, a plurality of frequency bands supported by the mobile terminal are obtained, and the working frequency band of the base station which is supported by the mobile terminal and accessed is determined.
In this embodiment, the mobile terminal may be any device with internet access function, such as a mobile phone, a tablet computer, a notebook computer, a palm computer, a personal digital assistant, a portable media player, a navigation device, a wearable device, an intelligent watch, an intelligent bracelet, and a pedometer, and includes at least one antenna, such as a high frequency main antenna, a low intermediate frequency upper main antenna, or a low intermediate frequency lower main antenna, wherein each antenna can transmit signals using at least one communication system (e.g., WCDMA, FDD LTE, TDD LTE, etc.), and when one antenna transmits signals using one communication system, the frequency band of the transmitted signal can be selected correspondingly, taking the main antenna on the low intermediate frequency as an example, when the main antenna on the low intermediate frequency transmits the signal by using the WCDMA communication system, the frequency band of the corresponding signal may be B1, B2, B3, B4, B5, B6, B8, or the like.
Specifically, when the mobile terminal needs to perform network connection again, the antenna identifier of the antenna currently used by the mobile terminal and the used communication system may be obtained, and a plurality of working frequency bands corresponding to the antenna identifier under the used communication system are searched from the correspondence pre-stored in the mobile terminal according to the obtained antenna identifier, so as to obtain a plurality of frequency bands supported by the mobile terminal.
In some embodiments, in order to determine an operating frequency band of a base station that a mobile terminal supports access to, the S101 may specifically include:
s1011: and receiving electromagnetic wave signals transmitted by peripheral base stations.
Specifically, as shown in fig. 2, when the mobile terminal B is located in the serving cell a of the network to be connected, it can receive electromagnetic wave signals transmitted by the base stations a1, a2, and A3 (i.e., peripheral base stations) of the serving cell a.
S1012: and determining the working frequency band of the base station which supports the access of the mobile terminal based on the received electromagnetic wave signal.
Specifically, when the number of the base stations of the serving cell is one, that is, the number of the peripheral base stations is one, the frequency band of the electromagnetic wave signal transmitted by the peripheral base station may be directly used as the operating frequency band of the base station to which the mobile terminal supports access. Further, when the number of the base stations of the serving cell is multiple (for example, as shown in fig. 2, the serving cell a has three base stations a1, a2 and A3), that is, the number of the peripheral base stations is multiple, the S1012 may include:
s1-1: and determining the peripheral base station corresponding to the electromagnetic wave signal with the maximum signal intensity in the received electromagnetic wave signals as a target base station.
S1-2: and taking the frequency band of the electromagnetic wave signal transmitted by the target base station as the working frequency band of the base station which supports the access of the mobile terminal.
Therefore, the peripheral base station with the maximum intensity of the electromagnetic wave signal received by the mobile terminal is used as the target base station, so that the maximum network speed can be obtained after the subsequent mobile terminal establishes network connection with the target base station, and the internet access performance of the mobile terminal is improved.
In some alternative embodiments, in order to determine the operating frequency band of the base station that the mobile terminal supports accessing, the S101 may also specifically include: acquiring current position information of a mobile terminal; searching an accessible base station closest to the mobile terminal by using a navigation application installed on the mobile terminal according to the obtained position information; and acquiring the working frequency band of the accessible base station closest to the mobile terminal so as to obtain the working frequency band of the base station which is supported to be accessed by the mobile terminal.
S102: and sequencing the plurality of frequency bands according to the frequency size, and taking the frequency band at the middle sequencing position as a middle frequency band.
Specifically, the plurality of frequency bands may be sorted in a descending order or a descending order of frequency. Moreover, when the plurality of frequency bands are odd frequency bands, for example, (2N +1) frequency bands, where N is a natural integer not less than 1, the frequency band at the middle sorting position may be the frequency band with the sequence number of (N +1) after sorting. When the plurality of frequency bands are even number of frequency bands, for example, 2N frequency bands, where N is a natural integer not less than 1, the frequency band at the middle sorting position may be a frequency band with a serial number N or (N +1) after sorting.
S103: and comparing the frequency of the working frequency band with the frequency of the middle frequency band to obtain a comparison result.
Specifically, when comparing the frequency of the operating frequency band with the frequency of the middle frequency band, the center frequency of the operating frequency band may be directly compared with the center frequency of the middle frequency band, when the center frequency of the operating frequency band is the same as the center frequency of the middle frequency band, the comparison result may be that the frequency of the operating frequency band is the same as the frequency of the middle frequency band, when the center frequency of the operating frequency band is greater than the center frequency of the middle frequency band, the comparison result may be that the frequency of the operating frequency band is greater than the frequency of the middle frequency band, and when the center frequency of the operating frequency band is less than the center frequency of the middle frequency band, the comparison result may be that the frequency of the operating frequency band is less than the frequency of the middle frequency band.
S104: and performing network connection according to the comparison result.
As shown in fig. 3, the S104 may specifically include:
s1041: and when the comparison result indicates that the frequency of the working frequency band is the same as the frequency of the intermediate frequency band, performing network connection through the intermediate frequency band.
S1042: and when the comparison result indicates that the frequency of the working frequency band is greater than the frequency of the middle frequency band, taking the frequency band of which the frequency is greater than the frequency of the middle frequency band as an undetermined frequency band, updating the frequency bands by using the undetermined frequency band, and then returning to execute the step S102.
S1043: and when the comparison result indicates that the frequency of the working frequency band is less than the frequency of the middle frequency band, taking the frequency band of which the frequency is less than the frequency of the middle frequency band as an undetermined frequency band, updating the frequency bands by using the undetermined frequency band, and then returning to execute the step S102.
Specifically, when the plurality of frequency bands are sorted in the order of frequencies from high to low in the previous step S102, the frequency band corresponding to the frequency greater than the middle frequency band is a frequency band whose sequence number is before the sequence number of the middle frequency band after the sorting, and the frequency band corresponding to the frequency less than the middle frequency band is a frequency band whose sequence number is after the sequence number of the middle frequency band after the sorting. When the plurality of frequency bands are sorted in the order of increasing frequency in the previous step S102, the frequency band corresponding to the frequency greater than the middle frequency band is a frequency band whose sequence number is located after the sequence number of the middle frequency band, and the frequency band corresponding to the frequency less than the middle frequency band is a frequency band whose sequence number is located before the sequence number of the middle frequency band after the sequence.
Thus, the above S102, the above S103 and the above S1042, and the above S102, the above S103 and the above S1042 form two cycles, and once one of the two cycles, the number of the corresponding frequency bands to be detected is reduced by half until a frequency band matching the operating frequency band of the base station that the mobile terminal supports to access is found, so that more time consumption for performing connection detection on multiple frequency bands supported by the mobile terminal can be saved, and the network connection speed can be increased.
In some embodiments, as shown in fig. 3, before S101, the method may further include:
s105: and B, monitoring whether the running state of the mobile terminal is a preset running state, wherein the preset running state comprises starting, restarting, closing a flight mode, switching cells or inserting a Subscriber Identity Module (SIM), if so, executing the step B, and if not, not processing.
S106: and determining that the mobile terminal needs to perform network connection again.
Specifically, when the mobile terminal is powered on, restarted or turned off in the flight mode, the mobile terminal is triggered to perform network connection because the mobile terminal is not connected to the network. In the using process of the mobile terminal, when a subscriber identity module (e.g. an SIM) card is inserted into the mobile terminal, the mobile terminal is triggered to perform network connection by using the inserted subscriber identity module; or, when a user moves a mobile terminal from one serving cell to another serving cell, the network speed of the mobile terminal is greatly reduced or even the network is disconnected due to cell handover, and therefore, the mobile terminal is triggered to perform network connection.
Different from the prior art, the network connection method of the embodiment is applied to the mobile terminal, and when the mobile terminal needs to perform network connection again, the multiple frequency bands supported by the mobile terminal are obtained, the working frequency band of the base station which the mobile terminal supports to access is determined, then the multiple frequency bands are sequenced according to the frequency size, the frequency band in the middle sequencing position is used as the middle frequency band, then the frequency of the working frequency band is compared with the frequency of the middle frequency band to obtain a comparison result, and network connection is performed according to the comparison result, so that when the mobile terminal needs to perform network connection again, connection detection on all LTE frequency bands supported by the mobile terminal is not needed, the time for the mobile terminal to connect to the network can be shortened, and the internet access efficiency is improved.
Referring to fig. 4, fig. 4 is a schematic structural diagram of a network connection device according to an embodiment of the present disclosure. As shown in fig. 4, the network connection device 50 may be integrated in a mobile terminal, and includes:
(1) first determination module 51
The first determining module 51 is configured to, when the mobile terminal needs to perform network connection again, acquire a plurality of frequency bands supported by the mobile terminal, and determine an operating frequency band of a base station that the mobile terminal supports access.
In this embodiment, the mobile terminal may be any device with internet access function, such as a mobile phone, a tablet computer, a notebook computer, a palm computer, a personal digital assistant, a portable media player, a navigation device, a wearable device, a smart watch, a smart bracelet, and a pedometer, and includes at least one antenna, such as a high frequency main antenna, a low intermediate frequency upper main antenna, or a low intermediate frequency lower main antenna, wherein each antenna can transmit signals using at least one communication system (e.g., WCDMA, FDD LTE, TDD LTE, etc.), and when one antenna transmits signals using one communication system, the frequency band of the transmitted signal can be selected correspondingly, taking the main antenna on the low intermediate frequency as an example, when the main antenna on the low intermediate frequency transmits the signal by using the WCDMA communication system, the frequency band of the corresponding signal may be B1, B2, B3, B4, B5, B6, B8, or the like.
Specifically, when the mobile terminal needs to perform network connection again, the first determining module 51 may obtain an antenna identifier of an antenna currently used by the mobile terminal and a used communication system, and search, according to the obtained antenna identifier, a plurality of working frequency bands corresponding to the antenna identifier in the used communication system from a correspondence relationship pre-stored in the mobile terminal, so as to obtain a plurality of frequency bands supported by the mobile terminal.
In some embodiments, as shown in fig. 5, in order to determine an operating frequency band of a base station that a mobile terminal supports accessing, the first determining module 51 may specifically include:
a receiving unit 511, configured to receive electromagnetic wave signals transmitted by peripheral base stations;
a determining unit 512, configured to determine, based on the received electromagnetic wave signal, an operating frequency band of a base station that the mobile terminal supports accessing.
Specifically, when the number of the peripheral base stations is one, the determining unit 512 may directly use the frequency band of the electromagnetic wave signal transmitted by the peripheral base station as the operating frequency band of the base station to which the mobile terminal supports access. Further, when the number of the peripheral base stations is multiple, the determining unit 512 may specifically include:
the first determining subunit is used for determining a peripheral base station corresponding to the electromagnetic wave signal with the maximum signal intensity in the received electromagnetic wave signals as a target base station;
and the second determining subunit is used for taking the frequency band of the electromagnetic wave signal transmitted by the target base station as the working frequency band of the base station which the mobile terminal supports to access.
(2) Sorting module 52
And the sorting module 52 is configured to sort the multiple frequency bands according to the frequency sizes, and use the frequency band at the middle sorting position as the middle frequency band.
(3) Comparison module 53
And the comparison module 53 is configured to compare the frequency of the working frequency band with the frequency of the intermediate frequency band to obtain a comparison result.
(4) Connection module 54
And a connection module 54, configured to perform network connection according to the comparison result.
The connection module 54 may be specifically configured to:
when the comparison result indicates that the frequency of the working frequency band is the same as the frequency of the middle frequency band, network connection is performed through the middle frequency band;
when the comparison result indicates that the frequency of the working frequency band is greater than the frequency of the middle frequency band, taking the frequency band of which the frequency is greater than the frequency of the middle frequency band as an undetermined frequency band, updating the frequency bands by using the undetermined frequency band, then triggering the sorting module 52 to sort the frequency bands according to the frequency size, and taking the frequency band at the middle sorting position as the middle frequency band;
when the comparison result indicates that the frequency of the working frequency band is less than the frequency of the middle frequency band, the frequency band of the plurality of frequency bands with the frequency less than the frequency of the middle frequency band is used as an undetermined frequency band, the plurality of frequency bands are updated by using the undetermined frequency band, then the trigger sorting module 52 sorts the plurality of frequency bands according to the frequency size, and the frequency band in the middle sorting position is used as the middle frequency band.
In some embodiments, as shown in fig. 5, the network connection device 50 may further include:
(55) monitoring module 55
And the monitoring module 55 is configured to monitor whether the operation state of the mobile terminal is a preset operation state, where the preset operation state includes starting up, restarting, closing a flight mode, switching a cell, or inserting a subscriber identity module card.
(6) Second determination module 56
The second determining module 56 is configured to determine that the mobile terminal needs to perform network connection again when the operation state of the mobile terminal is the preset operation state.
In specific implementation, the above modules, units and sub-units may be implemented as independent entities, or may be combined arbitrarily and implemented as one or several entities, and specific implementations of the above modules, units and sub-units may refer to the foregoing method embodiments, and are not described herein again.
Different from the prior art, the network connection device of the embodiment is applied to a mobile terminal, and includes a first determining module, configured to obtain a plurality of frequency bands supported by the mobile terminal when the mobile terminal needs to perform network connection again, and determine a working frequency band of a base station to which the mobile terminal supports access, a sorting module, configured to sort the plurality of frequency bands according to frequency sizes, and use the frequency band in a middle sorting position as a middle frequency band, a comparing module, configured to compare the frequency of the working frequency band with the frequency of the middle frequency band, and obtain a comparison result, and a connecting module, configured to perform network connection according to the comparison result, so that when the mobile terminal needs to perform network connection again, connection detection on all LTE frequency bands supported by the mobile terminal is not required, time for connecting the mobile terminal to a network can be shortened, and internet surfing efficiency can be improved.
Correspondingly, the embodiment of the application further provides the mobile terminal which can be a smart phone, a tablet computer and the like. As shown in fig. 6, the mobile terminal 800 includes a processor 801, a memory 802. The processor 801 is electrically connected to the memory 802.
The processor 801 is a control center of the mobile terminal 800, connects various parts of the entire mobile terminal using various interfaces and lines, and performs various functions of the mobile terminal and processes data by running or loading an application program stored in the memory 802 and calling data stored in the memory 802, thereby performing overall monitoring of the mobile terminal.
In this embodiment, the processor 801 in the mobile terminal 800 loads instructions corresponding to processes of one or more application programs into the memory 802, and the processor 801 executes the application programs stored in the memory 802 according to the following steps, so as to implement various functions:
when the mobile terminal needs to perform network connection again, acquiring a plurality of frequency bands supported by the mobile terminal, and determining the working frequency band of the base station which is supported by the mobile terminal and accessed;
sequencing the plurality of frequency bands according to the frequency, and taking the frequency band at the middle sequencing position as a middle frequency band;
comparing the frequency of the working frequency band with the frequency of the middle frequency band to obtain a comparison result;
and performing network connection according to the comparison result.
The mobile terminal may implement the steps in any embodiment of the network connection method provided in the embodiment of the present application, and therefore, beneficial effects that can be achieved by any network connection method provided in the embodiment of the present invention can be achieved, which are detailed in the foregoing embodiments and will not be described herein again.
Fig. 7 is a block diagram illustrating a specific structure of a mobile terminal according to an embodiment of the present invention, where the mobile terminal may be used to implement the network connection method provided in the foregoing embodiment. This mobile terminal 900 may be an AR glasses, an AR helmet, an AR head-up display (HUD), a smartphone, or a laptop, among other devices.
The RF circuit 910 is used for receiving and transmitting electromagnetic waves, and interconverting the electromagnetic waves and electrical signals, so as to communicate with a communication network or other devices. RF circuit 910 may include various existing circuit elements for performing these functions, such as an antenna, a radio frequency transceiver, a digital signal processor, an encryption/decryption chip, a Subscriber Identity Module (SIM) card, memory, and so forth. The RF circuit 910 may communicate with various networks such as the internet, an intranet, a wireless network, or with other devices over a wireless network. The wireless network may comprise a cellular telephone network, a wireless local area network, or a metropolitan area network. The Wireless network may use various Communication standards, protocols, and technologies, including, but not limited to, Global System for Mobile Communication (GSM), Enhanced Data GSM Environment (EDGE), Wideband Code Division Multiple Access (WCDMA), Code Division Multiple Access (CDMA), Time Division Multiple Access (TDMA), Wireless Fidelity (Wi-Fi) (e.g., Institute of Electrical and Electronics Engineers (IEEE) standard IEEE802.11 a, IEEE802.11 b, IEEE802.11g, and/or IEEE802.11 n), Voice over Internet Protocol (VoIP), world wide mail Access (Microwave Access for micro), wimax-1, other suitable short message protocols, and any other suitable Protocol for instant messaging, and may even include those protocols that have not yet been developed.
The memory 920 may be used to store software programs and modules, such as program instructions/modules corresponding to the network connection method in the foregoing embodiment, and the processor 980 executes various functional applications and data processing by running the software programs and modules stored in the memory 920, that is, functions of charging a backup battery, charging a battery, and the like. The memory 920 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 920 may further include memory located remotely from the processor 980, which may be connected to the mobile terminal 900 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input unit 930 may be used to receive input numeric or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control. In particular, the input unit 930 may include a touch-sensitive surface 931 as well as other input devices 932. The touch-sensitive surface 931, also referred to as a touch screen or a touch pad, may collect touch operations by a user on or near the touch-sensitive surface 931 (e.g., operations by a user on or near the touch-sensitive surface 931 using a finger, a stylus, or any other suitable object or attachment) and drive the corresponding connecting device according to a predetermined program. Alternatively, the touch sensitive surface 931 may include both 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 980, and can receive and execute commands sent by the processor 980. In addition, the touch sensitive surface 931 may be implemented in various types, such as resistive, capacitive, infrared, and surface acoustic wave. The input unit 930 may also include other input devices 932 in addition to the touch-sensitive surface 931. In particular, other input devices 932 may include, but are not limited to, one or more of a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 940 may be used to display information input by or provided to the user and various graphical user interfaces of the mobile terminal 900, which may be made up of graphics, text, icons, video, and any combination thereof. The Display unit 940 may include a Display panel 941, and optionally, the Display panel 941 may be configured in the form of an LCD (Liquid Crystal Display), an OLED (Organic Light-Emitting Diode), or the like. Further, touch-sensitive surface 931 may overlay display panel 941, and when touch-sensitive surface 931 detects a touch operation on or near touch-sensitive surface 931, it is passed to processor 680 to determine the type of touch event, and processor 980 then provides a corresponding visual output on display panel 941 in accordance with the type of touch event. Although the touch-sensitive surface 931 and the display panel 941 are shown as two separate components to implement input and output functions, in some embodiments, the touch-sensitive surface 931 and the display panel 941 may be integrated to implement input and output functions.
The mobile terminal 900 may also include at least one sensor 950, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor that may adjust the brightness of the display panel 941 according to the brightness of ambient light, and a proximity sensor that may generate an interrupt when the folder is closed or closed. As one of the motion sensors, the gravity acceleration sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when the mobile phone is stationary, and can be used for applications of recognizing the posture of the 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 may be further configured on the mobile terminal 900, further description is omitted here.
The audio circuitry 960, speaker 961, microphone 962 may provide an audio interface between a user and the mobile terminal 900. The audio circuit 960 may transmit the electrical signal converted from the received audio data to the speaker 961, and convert the electrical signal into a sound signal for output by the speaker 961; on the other hand, the microphone 962 converts the collected sound signal into an electric signal, converts the electric signal into audio data after being received by the audio circuit 960, and outputs the audio data to the processor 980 for processing, and then transmits the audio data to another terminal via the RF circuit 910, or outputs the audio data to the memory 920 for further processing. The audio circuit 960 may also include an earbud jack to provide communication of peripheral headphones with the mobile terminal 900.
The mobile terminal 900, which can assist the user in receiving requests, sending messages, etc., through a transmission module 970 (e.g., a Wi-Fi module), provides the user with wireless broadband internet access. Although the transmission module 970 is illustrated in the drawings, it is understood that it does not belong to the essential constitution of the mobile terminal 900 and can be omitted entirely within the scope not changing the essence of the invention as needed.
The processor 980 is a control center of the mobile terminal 900, connects various parts of the entire mobile phone using various interfaces and lines, and performs various functions of the mobile terminal 900 and processes data by operating or executing software programs and/or modules stored in the memory 920 and calling data stored in the memory 920, thereby integrally monitoring the mobile terminal. Optionally, processor 980 may include one or more processing cores; in some embodiments, the processor 980 may integrate an application processor, which primarily handles operating systems, user interfaces, applications, etc., and a modem processor, which primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 980.
The mobile terminal 900 also includes a power supply 990 (e.g., a battery backup or battery) that provides power to the various components and, in some embodiments, may be logically connected to the processor 980 via a power management system that provides management of charging, discharging, and power consumption. Power supply 990 may also include any component of one or more dc or ac power sources, recharging systems, power failure detection circuits, power converters or inverters, power status indicators, and the like.
Although not shown, the mobile terminal 900 further includes a camera (e.g., a front camera, a rear camera), a bluetooth module, etc., which are not described in detail herein. Specifically, in this embodiment, the display unit of the mobile terminal is a touch screen display, the mobile terminal further includes a memory, and one or more programs, where the one or more programs are stored in the memory and configured to be executed by the one or more processors, and the one or more programs include instructions for:
when the mobile terminal needs to perform network connection again, acquiring a plurality of frequency bands supported by the mobile terminal, and determining the working frequency band of the base station which is supported by the mobile terminal and accessed;
sequencing the plurality of frequency bands according to the frequency, and taking the frequency band at the middle sequencing position as a middle frequency band;
comparing the frequency of the working frequency band with the frequency of the middle frequency band to obtain a comparison result;
and performing network connection according to the comparison result.
It will be understood by those skilled in the art that all or part of the steps of the methods of the above embodiments may be performed by instructions or by associated hardware controlled by the instructions, which may be stored in a computer readable storage medium and loaded and executed by a processor. To this end, an embodiment of the present invention provides a storage medium, in which a plurality of instructions are stored, where the instructions can be loaded by a processor to execute the steps of any embodiment of the network connection method provided in the embodiment of the present invention.
Wherein the storage medium may include: read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, and the like.
Since the instructions stored in the storage medium may execute the steps in any embodiment of the network connection method provided in the embodiment of the present application, beneficial effects that can be achieved by any network connection method provided in the embodiment of the present application may be achieved, which are detailed in the foregoing embodiments and will not be described herein again.
The network connection method, device, storage medium and mobile terminal provided in the embodiments of the present application are described in detail above, and a specific example is applied in the present application to explain the principle and the implementation of the present application, and the description of the above embodiments is only used to help understand the method and the core idea of the present application; meanwhile, for those skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (8)

1. A network connection method is applied to a mobile terminal and comprises the following steps:
when the mobile terminal needs to perform network connection again, acquiring a plurality of frequency bands supported by the mobile terminal, and determining a working frequency band of a base station which is supported by the mobile terminal to be accessed;
sequencing the plurality of frequency bands according to the frequency size, and taking the frequency band at the middle sequencing position as a middle frequency band;
comparing the frequency of the working frequency band with the frequency of the intermediate frequency band to obtain a comparison result;
performing network connection according to the comparison result;
the obtaining of the multiple frequency bands supported by the mobile terminal specifically includes:
acquiring an antenna identifier of an antenna currently used by the mobile terminal and a used communication system, and searching a plurality of frequency bands corresponding to the antenna identifier under the used communication system from a corresponding relation pre-stored in the mobile terminal according to the acquired antenna identifier so as to obtain a plurality of frequency bands supported by the mobile terminal;
and wherein, the network connection according to the comparison result specifically includes:
when the comparison result indicates that the frequency of the working frequency band is the same as the frequency of the intermediate frequency band, performing network connection through the intermediate frequency band;
when the comparison result indicates that the frequency of the working frequency band is greater than the frequency of the middle frequency band, taking the frequency band of which the frequency is greater than the frequency of the middle frequency band as an undetermined frequency band, updating the frequency bands by using the undetermined frequency band, then returning to execute the step of sequencing the frequency bands according to the frequency size, and taking the frequency band at the middle sequencing position as the middle frequency band;
and when the comparison result indicates that the frequency of the working frequency band is less than the frequency of the middle frequency band, taking the frequency band of which the frequency is less than the frequency of the middle frequency band as an undetermined frequency band, updating the frequency bands by using the undetermined frequency band, then returning to execute the steps of sequencing the frequency bands according to the frequency size and taking the frequency band at the middle sequencing position as the middle frequency band.
2. The network connection method according to claim 1, wherein the determining an operating frequency band of a base station to which the mobile terminal supports access comprises:
receiving electromagnetic wave signals transmitted by peripheral base stations;
and determining the working frequency band of the base station which supports the access of the mobile terminal based on the received electromagnetic wave signal.
3. The network connection method according to claim 2, wherein the number of the peripheral base stations is plural, and the determining the operating frequency band of the base station to which the mobile terminal supports access based on the received electromagnetic wave signal comprises:
determining a peripheral base station corresponding to the electromagnetic wave signal with the maximum signal intensity in the received electromagnetic wave signals as a target base station;
and taking the frequency band of the electromagnetic wave signal transmitted by the target base station as the working frequency band of the base station which is supported to be accessed by the mobile terminal.
4. The network connection method according to claim 1, further comprising, before the obtaining the plurality of frequency bands supported by the mobile terminal and determining an operating frequency band of a base station that the mobile terminal supports accessing:
monitoring whether the running state of the mobile terminal is a preset running state or not, wherein the preset running state comprises starting, restarting, closing a flight mode, switching a cell or inserting a Subscriber Identity Module (SIM);
and if so, determining that the mobile terminal needs to perform network connection again.
5. A network connection device applied to a mobile terminal includes:
a determining module, configured to, when the mobile terminal needs to perform network connection again, acquire multiple frequency bands supported by the mobile terminal, and determine a working frequency band of a base station to which the mobile terminal supports access;
the sequencing module is used for sequencing the frequency bands according to the frequency sizes and taking the frequency band at the middle sequencing position as a middle frequency band;
the comparison module is used for comparing the frequency of the working frequency band with the frequency of the intermediate frequency band to obtain a comparison result;
the connection module is used for carrying out network connection according to the comparison result;
the obtaining of the multiple frequency bands supported by the mobile terminal specifically includes:
acquiring an antenna identifier of an antenna currently used by the mobile terminal and a used communication system, and searching a plurality of frequency bands corresponding to the antenna identifier under the used communication system from a corresponding relation pre-stored in the mobile terminal according to the acquired antenna identifier so as to obtain a plurality of frequency bands supported by the mobile terminal;
and wherein the connection module is specifically configured to:
when the comparison result indicates that the frequency of the working frequency band is the same as the frequency of the intermediate frequency band, performing network connection through the intermediate frequency band;
when the comparison result indicates that the frequency of the working frequency band is greater than the frequency of the intermediate frequency band, taking the frequency band of which the frequency is greater than the frequency of the intermediate frequency band as an undetermined frequency band, updating the frequency bands by using the undetermined frequency band, then triggering the sorting module to sort the frequency bands according to the frequency size, and taking the frequency band at the intermediate sorting position as the intermediate frequency band;
and when the comparison result indicates that the frequency of the working frequency band is less than the frequency of the intermediate frequency band, taking the frequency band of which the frequency is less than the frequency of the intermediate frequency band as an undetermined frequency band, updating the frequency bands by using the undetermined frequency band, then triggering the sequencing module to sequence the frequency bands according to the frequency size, and taking the frequency band at the intermediate sequencing position as the intermediate frequency band.
6. The network connection device of claim 5, wherein the determining module comprises:
the receiving unit is used for receiving electromagnetic wave signals transmitted by peripheral base stations;
and the determining unit is used for determining the working frequency band of the base station which supports the access of the mobile terminal based on the received electromagnetic wave signal.
7. A computer-readable storage medium having stored thereon a plurality of instructions adapted to be loaded by a processor to perform the network connection method of any of claims 1 to 4.
8. A mobile terminal comprising a processor and a memory, the processor being electrically connected to the memory, the memory being configured to store instructions and data, the processor being configured to perform the steps of the network connection method of any one of claims 1 to 4.
CN202010794625.5A 2020-08-10 2020-08-10 Network connection method, device, storage medium and mobile terminal Active CN111954317B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010794625.5A CN111954317B (en) 2020-08-10 2020-08-10 Network connection method, device, storage medium and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010794625.5A CN111954317B (en) 2020-08-10 2020-08-10 Network connection method, device, storage medium and mobile terminal

Publications (2)

Publication Number Publication Date
CN111954317A CN111954317A (en) 2020-11-17
CN111954317B true CN111954317B (en) 2022-07-08

Family

ID=73333115

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010794625.5A Active CN111954317B (en) 2020-08-10 2020-08-10 Network connection method, device, storage medium and mobile terminal

Country Status (1)

Country Link
CN (1) CN111954317B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101616469A (en) * 2009-07-22 2009-12-30 中兴通讯股份有限公司 Method and a kind of portable terminal that a kind of cell initial search is selected
CN103199942A (en) * 2013-03-04 2013-07-10 福建联迪商用设备有限公司 Audio communication method and terminal utilizing same
CN104935366A (en) * 2015-04-21 2015-09-23 北京航空航天大学 Wave beam searching method in millimeter wave communication
CN106162684A (en) * 2015-03-31 2016-11-23 华为技术有限公司 Based on ZigBee-network data transmission method, Apparatus and system
CN107634767A (en) * 2017-08-30 2018-01-26 深圳市盛路物联通讯技术有限公司 A kind of antenna selecting method and mobile terminal
CN107682928A (en) * 2017-10-20 2018-02-09 维沃移动通信有限公司 A kind of working frequency range determines method and mobile terminal
CN108684068A (en) * 2018-04-28 2018-10-19 努比亚技术有限公司 network search method, mobile terminal and computer readable storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE112018006098T5 (en) * 2017-12-30 2020-08-13 Intel Corporation DELIVERY RELATED TECHNOLOGY, DEVICES, AND PROCEDURES

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101616469A (en) * 2009-07-22 2009-12-30 中兴通讯股份有限公司 Method and a kind of portable terminal that a kind of cell initial search is selected
CN103199942A (en) * 2013-03-04 2013-07-10 福建联迪商用设备有限公司 Audio communication method and terminal utilizing same
CN106162684A (en) * 2015-03-31 2016-11-23 华为技术有限公司 Based on ZigBee-network data transmission method, Apparatus and system
CN104935366A (en) * 2015-04-21 2015-09-23 北京航空航天大学 Wave beam searching method in millimeter wave communication
CN107634767A (en) * 2017-08-30 2018-01-26 深圳市盛路物联通讯技术有限公司 A kind of antenna selecting method and mobile terminal
CN107682928A (en) * 2017-10-20 2018-02-09 维沃移动通信有限公司 A kind of working frequency range determines method and mobile terminal
CN108684068A (en) * 2018-04-28 2018-10-19 努比亚技术有限公司 network search method, mobile terminal and computer readable storage medium

Also Published As

Publication number Publication date
CN111954317A (en) 2020-11-17

Similar Documents

Publication Publication Date Title
CN109688611B (en) Frequency band parameter configuration method, device, terminal and storage medium
CN111953389A (en) Antenna tuning method, antenna tuning device, storage medium and electronic terminal
CN111327343A (en) Common receiving channel radio frequency device, method and mobile terminal
CN110891262A (en) Bluetooth pairing method, system and terminal equipment
CN111954317B (en) Network connection method, device, storage medium and mobile terminal
CN112367425B (en) Volume adjusting method and device and terminal
CN109831771B (en) Bluetooth searching method and device, mobile terminal and storage medium
CN112367428A (en) Electric quantity display method and system, storage medium and mobile terminal
CN111885591A (en) Network connection method, device, storage medium and terminal
CN113613310A (en) WIFI connection method and device, storage medium and mobile terminal
CN109151154B (en) Power consumption control method and mobile terminal
CN112261634A (en) Bluetooth transmission control method, device, terminal equipment and storage medium
CN108111553B (en) Method and device for providing service
CN110913022A (en) Method, device and system for downloading network file of mobile terminal and storage medium
CN111031588B (en) Network searching method, device, terminal equipment and storage medium
CN109714755B (en) Parameter storage method and device, mobile terminal and storage medium
CN105278967B (en) System updating method, device and system of mobile terminal
CN110972220B (en) Wireless communication method, device, storage medium and terminal equipment
CN111405649B (en) Information transmission method and device and mobile terminal
CN111488123B (en) Storage space management method and device, storage medium and mobile terminal
CN110445922B (en) Mobile terminal contact sharing method and device and storage medium
CN111262636B (en) Method and device for enhancing network data transmission speed, storage medium and mobile terminal
CN110891304B (en) gPS power consumption control method for mobile terminal
CN111382335B (en) Data pulling method and device and storage medium
CN112199049B (en) Fingerprint storage method, fingerprint storage device 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