CN108668335B - Communication connection method, device, mobile terminal and computer readable storage medium - Google Patents

Communication connection method, device, mobile terminal and computer readable storage medium Download PDF

Info

Publication number
CN108668335B
CN108668335B CN201810558503.9A CN201810558503A CN108668335B CN 108668335 B CN108668335 B CN 108668335B CN 201810558503 A CN201810558503 A CN 201810558503A CN 108668335 B CN108668335 B CN 108668335B
Authority
CN
China
Prior art keywords
route
terminals
routes
preset threshold
preset
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
CN201810558503.9A
Other languages
Chinese (zh)
Other versions
CN108668335A (en
Inventor
俞义
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201810558503.9A priority Critical patent/CN108668335B/en
Publication of CN108668335A publication Critical patent/CN108668335A/en
Application granted granted Critical
Publication of CN108668335B publication Critical patent/CN108668335B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W40/00Communication routing or communication path finding
    • H04W40/02Communication route or path selection, e.g. power-based or shortest path routing
    • H04W40/04Communication route or path selection, e.g. power-based or shortest path routing based on wireless node resources
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/02Access restriction performed under specific conditions
    • H04W48/06Access restriction performed under specific conditions based on traffic conditions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/16Discovering, processing access restriction or access information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/20Selecting an access point
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup

Landscapes

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

Abstract

The application discloses a communication connection method, a communication connection device, a mobile terminal and a computer readable storage medium, wherein the method comprises the following steps: detecting a plurality of routes in a wireless communication area, and acquiring the number of terminals of which communication connection is established in each route; sequentially judging whether the number of the terminals of each route is smaller than a preset threshold value according to a preset sequence; and establishing communication connection with the connectable routes until the connectable routes with the number of the terminals smaller than the preset threshold value are obtained. According to the method and the device, the connection strategy of the terminal can be dynamically optimized according to the connection condition of the route, the connection power is improved, and the user experience is improved.

Description

Communication connection method, device, mobile terminal and computer readable storage medium
Technical Field
The present application relates to the field of mobile terminal technologies, and in particular, to a communication connection method and apparatus, a mobile terminal, and a computer-readable storage medium.
Background
When people use mobile phones to perform communication connection, the mobile phones can automatically select a route for connection according to an inherent connection optimization strategy. However, due to the limitation of the number of some connections of the route, in an environment with a large number of terminals, the route selected according to the inherent policy, although being in a good state, cannot be successfully connected, and the existing policy cannot automatically switch other routes for connection under the circumstance.
Disclosure of Invention
In view of the above problems, the present application provides a communication connection method, apparatus, mobile terminal and computer readable storage medium to solve the above problems.
In a first aspect, an embodiment of the present application provides a communication connection method, where the method includes: detecting a plurality of routes in a wireless communication area, and acquiring the number of terminals of which communication connection is established in each route; sequentially judging whether the number of the terminals of each route is smaller than a preset threshold value according to a preset sequence; and establishing communication connection with the connectable routes until the connectable routes with the number of the terminals smaller than the preset threshold value are obtained.
In a second aspect, an embodiment of the present application provides a communication connection apparatus, including: the detection module is used for detecting a plurality of routes in a wireless communication area and acquiring the number of terminals of which the communication connection is established in each route; the judging module is used for sequentially judging whether the number of the terminals of each route is smaller than a preset threshold value according to a preset sequence; and the connection module is used for establishing communication connection with the connectable routes until the connectable routes with the number of the terminals smaller than the preset threshold value are obtained.
In a third aspect, an embodiment of the present application provides a mobile terminal, which includes a display, a memory, and a processor, where the display and the memory are coupled to the processor, and the memory stores instructions, and when the instructions are executed by the processor, the processor performs the method of the first aspect.
In a fourth aspect, embodiments of the present application provide a computer-readable storage medium having program code executable by a processor, where the program code causes the processor to execute the method of the first aspect.
According to the communication connection method, the communication connection device, the mobile terminal and the computer readable storage medium, a plurality of routes in a wireless communication area are detected, the number of terminals of each route, which establish communication connection, is obtained, whether the number of terminals of each route is smaller than a preset threshold value is sequentially judged according to a preset sequence, and communication connection is established with the connectable routes until the connectable routes, which are smaller than the preset threshold value in number, are obtained. Compared with the prior art, the method and the device for establishing the communication connection can screen the connectable route with high connection success rate through threshold judgment according to the number of the terminals connected with each route in the current wireless communication area, can dynamically optimize the connection strategy of the terminals under the wireless environment with a large number of route connections, improve the connection power and improve the user experience.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description 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 flowchart illustrating a communication connection method according to a first embodiment of the present application;
fig. 2 is a flowchart illustrating a communication connection method according to a second embodiment of the present application;
fig. 3 shows a block diagram of a communication connection apparatus according to a third embodiment of the present application;
fig. 4 shows a block diagram of a communication connection apparatus according to a fourth embodiment of the present application;
fig. 5 is a block diagram illustrating a structure of a mobile terminal according to an embodiment of the present application;
fig. 6 shows a block diagram of a mobile terminal for performing a communication connection method according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
When a person uses a mobile phone to perform communication connection, the mobile phone will generally automatically select a route for connection according to an inherent connection optimization policy, for example, select the best route of signals in stored routes, or preferentially select a 5G route for connection, and so on.
However, after studying the conventional wireless communication connection policy, the inventors found that, due to the limitation of the number of connections of the route, for example, 20 terminals are limited, in some environments with a large number of terminals, such as airports and train stations, the route selected according to the conventional policy is not successfully connected although it is in a good state (strong or stable signal), or has no transmission rate after the connection is completed, but the conventional policy cannot automatically switch another route to connect in such a case.
In the course of research, the inventor researches how to improve the existing policy to enable the mobile terminal to recognize the connection situation between the route and other terminals in the current wireless environment, and how to automatically switch other routes for connection in an environment with a large number of terminals connected by the route, and proposes a communication connection method, apparatus, mobile terminal and computer readable storage medium in the embodiments of the present application.
The communication connection method, the communication connection device, the mobile terminal and the storage medium provided by the embodiments of the present application will be described in detail through specific embodiments.
First embodiment
Referring to fig. 1, fig. 1 is a flowchart illustrating a communication connection method according to a first embodiment of the present application. The communication connection method comprises the steps of firstly detecting a plurality of routes in a wireless communication area to obtain the number of terminals of each route, which establish communication connection, and then sequentially judging whether the number of the terminals of each route is smaller than a preset threshold value according to a preset sequence until connectable routes of which the number of the terminals is smaller than the preset threshold value are obtained, and then establishing communication connection with the connectable routes, so that the connection strategy of the terminals can be dynamically optimized under the wireless environment of a large number of route connections, the connection power is improved, and the user experience is improved. In a specific embodiment, the communication connection method may be applied to the communication connection apparatus 300 shown in fig. 3 and the mobile terminal 100 (fig. 5) configured with the communication connection apparatus 300, and is used for improving the user experience of communication connection in an environment with a large number of terminals. The following will describe the flow shown in fig. 1 in detail by taking a mobile phone as an example. The above communication connection method may specifically include the steps of:
step S101: detecting a plurality of routes in a wireless communication area, and acquiring the number of terminals of which communication connection is established in each route.
In the embodiment of the present application, the wireless communication area may be an area covered by a wireless communication signal. The wireless communication signal may be a Wi-Fi signal, an infrared signal, a bluetooth signal, a 4G signal, or the like. In this embodiment, a Wi-Fi connection between a mobile terminal and a route is taken as an example for description.
In this embodiment, as a manner, when the mobile phone starts the Wi-Fi communication function, all the routes (or access points, hot spots) in the wireless communication area are automatically scanned, and after the scanning is completed, the connection condition and state parameters of each route, such as signal strength, working frequency, the number of terminals establishing communication connection, and the like, may be obtained.
It should be noted that the plurality of routes in the wireless communication area may be all routes that can be detected by the current mobile terminal or all routes that can acquire the number of terminals that have established communication connections.
Step S102: and sequentially judging whether the number of the terminals of each route is less than a preset threshold value according to a preset sequence.
In this embodiment, after the number of terminals for which communication connection has been established in each route is obtained, the number of terminals for which communication connection has been established in each route may be sequentially subjected to threshold judgment according to a preset sequence.
In this embodiment, the preset sequence may be generated by randomly sorting the data of each route in the wireless communication area obtained by the mobile terminal; or the route is generated by sorting according to the distance between the current position of the mobile terminal and each route, for example, the route with a closer distance is firstly subjected to threshold judgment, and the route with a farther distance is later subjected to threshold judgment; the route with the better state parameter is firstly subjected to threshold judgment, and the route with the worse state parameter is later subjected to threshold judgment; the routes may be generated by sorting according to the past use frequency of the user, for example, a threshold judgment is performed first for a route with a high historical use frequency (or a high connection frequency), and a threshold judgment is performed later for a route with a low historical use frequency (or a low connection frequency); and the routing table can be generated by sorting according to other characteristic parameters of the routing. Specifically, as a mode, the preset sequence may also be generated by a user-defined selection sorting after the mobile terminal completes scanning.
In this embodiment, the preset threshold may be a maximum connection number limited by the route. It can be understood that, when the number of terminals for routing the established communication connection exceeds the maximum number of connections, the newly connected terminal cannot allocate bandwidth, and a connection failure or no transmission rate after the connection is established occurs.
As a case, when there is a route with a different maximum connection number from among a plurality of routes detected by the mobile terminal in the wireless communication area, the preset threshold may be different, that is, the preset threshold is dynamically adjusted according to the route currently subjected to the threshold determination. For example, if the maximum connection number of the current route subjected to threshold judgment is 10, the preset threshold corresponding to the current route is 10, and when the mobile terminal detects that the number of terminals connected to the current route is more than 10, the threshold judgment is performed on the next route according to the preset sequence; the maximum connection number of the next route may be 20, and at this time, the preset threshold is automatically adjusted to 20 corresponding to the route, that is, the mobile terminal determines whether the number of terminals for which the connection has been established in the route exceeds 20.
As another mode, the preset threshold may be a fixed value preset and stored in the mobile terminal, for example, the user may investigate and summarize the market in advance, the maximum number of connections of general routers in the market is between 10 and 20, the market share of 10 is large, the user may set the preset threshold to 10, and when the threshold is determined thereafter, the user may determine the preset threshold to be 10 regardless of which route. It is to be understood that the preset threshold may also be set by the user according to data parameters of each route after the mobile terminal completes scanning and acquires data of each route in the current wireless communication area.
In this embodiment, if the number of terminals connected to a route is greater than or equal to the preset threshold after the threshold is determined for a certain route in step S102, it is determined that the number of terminals connected to the route has reached the upper limit, and at this time, the threshold of the next route is determined according to the preset sequence; if the number of terminals connected to a route is smaller than the preset threshold after the threshold is determined in step S102, it is determined that the number of terminals connected to the route has not reached the upper limit, and the mobile terminal is connected to the route with a high probability of successful connection, then step S103 is executed.
Step S103: and establishing communication connection with the connectable routes until the connectable routes with the number of the terminals smaller than the preset threshold value are obtained.
In this embodiment, after obtaining a route whose terminal connection number does not reach the upper limit (the number of terminals whose connections have been established is smaller than the preset threshold) through the threshold, the route may be used as a connectable route (i.e., a route with high power is connected), and a communication connection may be established with the connectable route.
As a case, if all routes in the current wireless communication area are found to be fully loaded (the number of terminals with established connections is greater than or equal to the preset threshold) after threshold judgment is performed on all routes through the above steps, at this time, as an alternative, since there may be a possibility that some routes after threshold judgment are disconnected from other terminals in the process of previous threshold judgment, threshold judgment may be performed again from the beginning according to the preset sequence until route which is not fully loaded (the number of terminals with established connections is less than the preset threshold) is obtained; as another alternative, the communication connection may also be directly established with the first route in the preset sequence, and if the connection is unsuccessful, the communication connection is established with the second route according to the preset sequence until the connection is successful.
In particular, within a certain period of time, for example, 5 minutes, the mobile terminal has not found a suitable route to which a connection can be successfully connected, and the user may be informed to turn off the Wi-Fi function to use the traffic by a voice prompt or display information related to the fact that a suitable route connection is not found on a display screen, or may be prompted to select to move to another area to attempt a connection.
According to the communication connection method provided by the first embodiment of the application, the number of the terminals connected to each route in the current wireless communication area is detected, and the connectable routes with high connection power are screened out through threshold judgment to establish communication connection, so that the connection strategy of the terminals can be dynamically optimized under the wireless environment with a large number of route connections, the connection power is improved, and the communication connection experience of users is improved.
Second embodiment
Referring to fig. 2, fig. 2 is a flowchart illustrating a communication connection method according to a second embodiment of the present application. The following will describe the flow shown in fig. 2 in detail by taking a mobile phone as an example. The above communication connection method may specifically include the steps of:
step S201: detecting a plurality of routes in a wireless communication area, and acquiring the number of terminals of which communication connection is established in each route.
Step S202: and acquiring a plurality of state parameters of the route.
In this embodiment, the routing state parameter may be a performance parameter such as signal strength, operating frequency, transmission rate, and bit error rate of the route.
Step S203: prioritizing the plurality of routes based on the status parameter.
The priority ranking can be used as the preset sequence in step S102 in the first embodiment of the present application.
In this embodiment, the priority may be a priority for performing threshold judgment on a route. As one mode, the priority of the route with the better status parameter may be set to be higher (the priority ranking is in the front), and the priority of the route with the worse status parameter may be set to be lower (the priority ranking is in the back). As another way, the previous usage habits of the user may be combined to perform comprehensive ranking, for example, setting the route with higher historical usage frequency (or more connection times) as the higher priority, and setting the route with lower usage frequency (or less connection times) as the lower priority; and when the historical use frequency of part of the routes is the same, performing priority ranking of threshold judgment according to the state parameters of each route.
Step S204: and judging whether the number of the terminals of the current route is less than a preset threshold value.
In this embodiment, the current route represents a route currently subjected to threshold judgment, and may be any one of all routes in the priority ranking.
In this embodiment, when the number of the terminals of the current route is not less than the preset threshold, step S205 may be executed; when the number of the terminals of the current route is smaller than the preset threshold, step S206 may be performed.
Step S205: and judging whether the number of the terminals of the next route after the priority of the current route is sequenced is smaller than the preset threshold value or not according to the priority sequence.
In this embodiment, if the number of terminals whose connections have been established in the current route has reached the upper limit, the terminals are sorted according to the priority, and the threshold is determined for the next route sorted after the current route.
It is understood that, in this embodiment, steps S204 to S205 are executed in a loop, and if no suitable route is found in step S204, the threshold determination is performed on the next route in step S205, at this time, the next route in step S205 becomes the current route in step S204, and the loop is repeated until a route is obtained, in which the number of terminals for which the connection has been established is less than the preset threshold, or all routes in the priority ranking are subjected to the threshold determination.
Step S206: the current route is taken as a connectable route.
In this embodiment, if a suitable route (the number of terminals with established connections is less than the preset threshold) is found in all routes through the above steps, the route that is currently subjected to threshold judgment and passes the screening may be used as the connectable route.
In this embodiment, step S207 may be performed after step S205 completes traversal of all routes and step S206.
Step S207: and judging whether the connectable routes of which the number of the terminals is smaller than the preset threshold value are obtained or not.
In this embodiment, when the connectable route is obtained, step S208 may be executed; when the connectable route is not obtained, step S209 may be performed.
Step S208: establishing a communication connection with the connectable route.
Step S209: and establishing communication connection with the route arranged at the head in the preset sequence.
In this embodiment, if appropriate connectable routes (the number of terminals having established connections is less than the preset threshold) are not obtained after threshold judgment is completed on all routes in the priority ranking through steps S204 and S205, a communication connection may be established with a route ranked first in the preset order (in this embodiment, the priority ranking). At this time, the supplementary description of step S103 in the first embodiment of the present application may be referred to, and is not repeated herein.
In this embodiment, after step S205, step S210 may be further performed.
Step S210: and acquiring the number of routes which are judged by the threshold value.
In this embodiment, the number of routes that have undergone threshold determination may be counted while performing threshold determination (determining whether the number of terminals to which a connection has been established for a current route or a next route is less than a preset threshold).
Step S211: and judging whether the number of the routes subjected to threshold judgment reaches a preset number.
In this embodiment, the preset number may be an upper limit of the number of times of threshold judgment, which may be set by a user, or may be determined by the terminal according to the current state of the wireless environment. For example, when the first 20 routes in the priority ranking are in good status and the last 20 routes are in poor status and do not have the value of threshold judgment and connection, the mobile terminal may adjust the value of the preset number to be 20, that is, only the first 20 routes in the priority ranking are subjected to threshold judgment.
In this embodiment, when the number of routes that have undergone the threshold determination reaches the preset number, step S209 may be executed; and when the number of routes which are judged to have been subjected to the threshold value is smaller than the preset number, returning to execute the step S210.
Compared with the first embodiment of the application, the communication connection method provided by the second embodiment of the application can adjust the connection strategy more flexibly according to the current wireless communication state and by combining the preference or use habit of the user, so that the application of the scheme is more intelligent and humanized, and the user experience is further improved.
Third embodiment
Referring to fig. 3, fig. 3 is a block diagram of a communication connection apparatus 300 according to a third embodiment of the present application. As will be explained below with respect to the block diagram shown in fig. 3, the communication connection device 300 includes: a detection module 310, a determination module 320, and a connection module 330, wherein:
a detecting module 310, configured to detect multiple routes in a wireless communication area, and obtain the number of terminals for which communication connection has been established in each route.
The determining module 320 is configured to sequentially determine, according to a preset sequence, whether the number of the terminals of each route is smaller than a preset threshold.
A connection module 330, configured to establish a communication connection with the connectable routes until the connectable routes whose number of terminals is smaller than the preset threshold are obtained.
The communication connection device provided by the third embodiment of the application, by detecting the number of terminals connected to each route in the current wireless communication area and determining and screening the connectable routes connected to be high in power through the threshold value, can dynamically optimize the connection strategy of the terminals in some wireless environments with large number of route connections, improve the connection power, and improve the communication connection experience of users.
Fourth embodiment
Referring to fig. 4, fig. 4 is a block diagram of a communication connection apparatus 400 according to a fourth embodiment of the present application. As will be explained below with respect to the block diagram shown in fig. 4, the communication connection apparatus 400 includes: the detecting module 410, the determining module 420, the connecting module 430, the quantity obtaining module 440, the quantity determining module 450, and the preset connecting module 460, wherein:
the detecting module 410 is configured to detect multiple routes in a wireless communication area, and obtain the number of terminals for which communication connection has been established in each route.
A determining module 420, configured to sequentially determine, according to a preset sequence, whether the number of terminals of each route is smaller than a preset threshold. Further, the determining module 420 includes: an obtaining unit 421, a sorting unit 422, and a judging unit 423, wherein:
an obtaining unit 421, configured to obtain status parameters of a plurality of routes.
A sorting unit 422, configured to perform priority sorting on the plurality of routes based on the state parameter, where the priority sorting is used as the preset order.
A determining unit 423, configured to sequentially determine, according to the priority ranking, whether the number of terminals of each route is smaller than a preset threshold. Further, the judging unit 423 includes: a first judging subunit, a second judging subunit and a connectable subunit, wherein:
and the first judgment subunit is used for judging whether the number of the terminals of the current route is less than a preset threshold value.
And a second judging subunit, configured to, when the number of terminals of the current route is not less than the preset threshold, judge, according to the priority ranking, whether the number of terminals of a next route after the priority ranking of the current route is less than the preset threshold.
A connectable subunit, configured to, when the number of terminals of the current route is smaller than the preset threshold, take the current route as a connectable route.
A connection module 430, configured to establish a communication connection with the connectable route until the connectable route whose number of terminals is smaller than the preset threshold is obtained. Further, the connection module 430 includes: a first connection unit 431, a second connection unit 432, and a third connection unit 433, wherein:
and the first connection unit 431 is configured to determine whether to obtain a connectable route of which the number of terminals is smaller than the preset threshold.
A second connection unit 432, configured to establish a communication connection with the connectable route when the connectable route is obtained.
A third connection unit 433, configured to establish a communication connection with a route that is first in the preset sequence when the connectable route is not obtained.
The quantity obtaining module 440 is configured to obtain the number of routes that have undergone the threshold determination.
The quantity determining module 450 is configured to determine whether the number of routes that have undergone the threshold determination reaches a preset number.
A preset connection module 460, configured to establish a communication connection with a first-ranked route in the preset sequence when the number of routes that have undergone the threshold determination reaches the preset number.
Compared with the third embodiment of the application, the communication connection device provided by the fourth embodiment of the application can adjust the connection strategy more flexibly according to the current wireless communication state and by combining the preference or use habit of the user, so that the application of the scheme is more intelligent and humanized, and the user experience is further improved.
Fifth embodiment
A fifth embodiment of the present application provides a mobile terminal comprising a display, a memory, and a processor, the display and the memory coupled to the processor, the memory storing instructions that, when executed by the processor, perform:
detecting a plurality of routes in a wireless communication area, and acquiring the number of terminals of which communication connection is established in each route;
sequentially judging whether the number of the terminals of each route is smaller than a preset threshold value according to a preset sequence;
and establishing communication connection with the connectable routes until the connectable routes with the number of the terminals smaller than the preset threshold value are obtained.
Sixth embodiment
A sixth embodiment of the present application provides a computer-readable storage medium having program code executable by a processor, the program code causing the processor to perform:
detecting a plurality of routes in a wireless communication area, and acquiring the number of terminals of which communication connection is established in each route;
sequentially judging whether the number of the terminals of each route is smaller than a preset threshold value according to a preset sequence;
and establishing communication connection with the connectable routes until the connectable routes with the number of the terminals smaller than the preset threshold value are obtained.
To sum up, according to the communication connection method, the communication connection device, the mobile terminal, and the computer-readable storage medium provided in the embodiments of the present application, a plurality of routes in a wireless communication area are detected first, the number of terminals for which communication connection has been established in each route is obtained, and then whether the number of terminals in each route is smaller than a preset threshold is sequentially determined according to a preset sequence, until a connectable route for which the number of terminals is smaller than the preset threshold is obtained, communication connection is established with the connectable route. Compared with the prior art, the method and the device for establishing the communication connection can screen the connectable route with high connection success rate through threshold judgment according to the number of the terminals connected with each route in the current wireless communication area, can dynamically optimize the connection strategy of the terminals under the wireless environment with a large number of route connections, improve the connection power and improve the user experience.
It should be noted that, in the present specification, the embodiments are all described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments may be referred to each other. For the device-like embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment. For any processing manner described in the method embodiment, all the processing manners may be implemented by corresponding processing modules in the apparatus embodiment, and details in the apparatus embodiment are not described again.
Referring to fig. 5, based on the above communication connection method and apparatus, an embodiment of the present invention further provides a mobile terminal 100, which includes an electronic body 10, where the electronic body 10 includes a housing 12 and a main display 120 disposed on the housing 12. The housing 12 may be made of metal, such as steel or aluminum alloy. In this embodiment, the main display 120 generally includes a display panel 111, and may also include a circuit or the like for responding to a touch operation performed on the display panel 111. The Display panel 111 may be a Liquid Crystal Display (LCD) panel, and in some embodiments, the Display panel 111 is a touch screen 109.
Referring to fig. 6, in an actual application scenario, the mobile terminal 100 may be used as a smart phone terminal, in which case the electronic body 10 generally further includes one or more processors 102 (only one is shown in the figure), a memory 104, an RF (Radio Frequency) module 106, an audio circuit 110, a sensor 114, an input module 118, and a power module 122. It will be understood by those skilled in the art that the structure shown in fig. 5 is merely illustrative and is not intended to limit the structure of the electronic body 10. For example, the electronics body section 10 may also include more or fewer components than shown in FIG. 5, or have a different configuration than shown in FIG. 5.
Those skilled in the art will appreciate that all other components are peripheral devices with respect to the processor 102, and the processor 102 is coupled to the peripheral devices through a plurality of peripheral interfaces 124. The peripheral interface 124 may be implemented based on the following criteria: universal Asynchronous Receiver/Transmitter (UART), General Purpose Input/Output (GPIO), Serial Peripheral Interface (SPI), and Inter-Integrated Circuit (I2C), but the present invention is not limited to these standards. In some examples, the peripheral interface 124 may comprise only a bus; in other examples, the peripheral interface 124 may also include other elements, such as one or more controllers, for example, a display controller for interfacing with the display panel 111 or a memory controller for interfacing with a memory. These controllers may also be separate from the peripheral interface 124 and integrated within the processor 102 or a corresponding peripheral.
The memory 104 may be used to store software programs and modules, and the processor 102 executes various functional applications and data processing by executing the software programs and modules stored in the memory 104. The memory 104 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 104 may further include memory located remotely from the processor 102, which may be connected to the electronic body portion 10 or the primary display 120 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 RF module 106 is configured to receive and transmit electromagnetic waves, and achieve interconversion between the electromagnetic waves and electrical signals, so as to communicate with a communication network or other devices. The RF module 106 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 module 106 may communicate with various networks such as the internet, an intranet, a wireless network, or with other devices via 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 (W-CDMA), Code Division Multiple Access (CDMA), Time Division Multiple Access (TDMA), Wireless Fidelity (WiFi) (e.g., Institute of Electrical and Electronics Engineers (IEEE) standard IEEE 802.10A, IEEE802.11 b, IEEE 802.2.1 g, and/or IEEE802.11 n), voice over internet protocol (VoIP), world wide mail Access (Microwave for Wireless communications, Wi-1 wave), and any other suitable protocol for short message Communication (sms), including, and may even include those protocols that have not yet been developed.
The audio circuitry 110, earpiece 101, sound jack 103, microphone 105 collectively provide an audio interface between a user and the electronic body portion 10 or the main display 120. Specifically, the audio circuit 110 receives sound data from the processor 102, converts the sound data into an electrical signal, and transmits the electrical signal to the earpiece 101. The earpiece 101 converts the electrical signal into sound waves that can be heard by the human ear. The audio circuitry 110 also receives electrical signals from the microphone 105, converts the electrical signals to sound data, and transmits the sound data to the processor 102 for further processing. Audio data may be retrieved from the memory 104 or through the RF module 106. In addition, audio data may also be stored in the memory 104 or transmitted through the RF module 106.
The sensor 114 is disposed in the electronic body portion 10 or the main display 120, examples of the sensor 114 include, but are not limited to: light sensors, operational sensors, pressure sensors, gravitational acceleration sensors, and other sensors.
Specifically, the light sensors may include a light sensor 114F, a pressure sensor 114G. Among them, the pressure sensor 114G may detect a pressure generated by pressing on the mobile terminal 100. That is, the pressure sensor 114G detects pressure generated by contact or pressing between the user and the mobile terminal, for example, contact or pressing between the user's ear and the mobile terminal. Accordingly, the pressure sensor 114G may be used to determine whether contact or pressing has occurred between the user and the mobile terminal 100, as well as the magnitude of the pressure.
Referring to fig. 5 again, in the embodiment shown in fig. 5, the light sensor 114F and the pressure sensor 114G are disposed adjacent to the display panel 111. The light sensor 114F may turn off the display output when an object is near the main display 120, for example, when the electronic body portion 10 moves to the ear.
As one of the motion sensors, the gravity acceleration sensor can detect the magnitude of acceleration in various directions (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used for applications (such as horizontal and vertical screen switching, related games, magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tapping) and the like for recognizing the attitude of the mobile terminal 100. In addition, the electronic body 10 may also be configured with other sensors such as a gyroscope, a barometer, a hygrometer and a thermometer, which are not described herein,
in this embodiment, the input module 118 may include the touch screen 109 disposed on the main display 120, and the touch screen 109 may collect touch operations of the user (for example, operations of the user on or near the touch screen 109 using any suitable object or accessory such as a finger, a stylus, etc.) and drive the corresponding connection device according to a preset program. Optionally, the touch screen 109 may include 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 detection device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 102, and can receive and execute commands sent by the processor 102. In addition, the touch detection function of the touch screen 109 may be implemented by various types, such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch screen 109, in other variations, the input module 118 may include other input devices, such as keys 107. The keys 107 may include, for example, character keys for inputting characters, and control keys for activating control functions. Examples of such control keys include a "back to home" key, a power on/off key, and the like.
The main display 120 is used to display information input by a user, information provided to the user, and various graphic user interfaces of the electronic body section 10, which may be composed of graphics, text, icons, numbers, video, and any combination thereof, and in one example, the touch screen 109 may be provided on the display panel 111 so as to be integrated with the display panel 111.
The power module 122 is used to provide power supply to the processor 102 and other components. Specifically, the power module 122 may include a power management system, one or more power sources (e.g., batteries or ac power), a charging circuit, a power failure detection circuit, an inverter, a power status indicator light, and any other components associated with the generation, management, and distribution of power within the electronic body portion 10 or the primary display 120.
The mobile terminal 100 further comprises a locator 119, the locator 119 being configured to determine an actual location of the mobile terminal 100. In this embodiment, the locator 119 implements the positioning of the mobile terminal 100 by using a positioning service, which is understood to be a technology or a service for obtaining the position information (e.g., longitude and latitude coordinates) of the mobile terminal 100 by using a specific positioning technology and marking the position of the positioned object on an electronic map.
It should be understood that the mobile terminal 100 described above is not limited to a smartphone terminal, but it should refer to a computer device that can be used in mobility. Specifically, the mobile terminal 100 refers to a mobile computer device equipped with an intelligent operating system, and the mobile terminal 100 includes, but is not limited to, a smart phone, a smart watch, a tablet computer, and the like.
In the description herein, reference to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the application. In this specification, the schematic representations of the terms used above are not necessarily intended to refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, various embodiments or examples and features of different embodiments or examples described in this specification can be combined and combined by one skilled in the art without contradiction.
Furthermore, the terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In the description of the present application, "plurality" means at least two, e.g., two, three, etc., unless specifically limited otherwise.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing specific logical functions or steps of the process, and the scope of the preferred embodiments of the present application includes other implementations in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the present application.
The logic and/or steps represented in the flowcharts or otherwise described herein, e.g., an ordered listing of executable instructions that can be considered to implement logical functions, can be embodied in any computer-readable medium for use by or in connection with an instruction execution system, apparatus, or device, such as a computer-based system, processor-containing system, or other system that can fetch the instructions from the instruction execution system, apparatus, or device and execute the instructions. For the purposes of this description, a "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of the computer-readable medium would include the following: an electrical connection (mobile terminal) having one or more wires, a portable computer diskette (magnetic device), a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disc read-only memory (CDROM). Additionally, the computer-readable medium could even be paper or another suitable medium upon which the program is printed, as the program can be electronically captured, via for instance optical scanning of the paper or other medium, then compiled, interpreted or otherwise processed in a suitable manner if necessary, and then stored in a computer memory.
It should be understood that portions of the present application may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, the various steps or methods may be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, any one or combination of the following techniques, which are known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), or the like.
It will be understood by those skilled in the art that all or part of the steps carried by the method for implementing the above embodiments may be implemented by hardware related to instructions of a program, which may be stored in a computer readable storage medium, and when the program is executed, the program includes one or a combination of the steps of the method embodiments. In addition, functional units in the embodiments of the present application may be integrated into one processing module, or each unit may exist alone physically, or two or more units are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may also be stored in a computer readable storage medium.
The storage medium mentioned above may be a read-only memory, a magnetic or optical disk, etc. Although embodiments of the present application have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present application, and that variations, modifications, substitutions and alterations may be made to the above embodiments by those of ordinary skill in the art within the scope of the present application.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present application, and not to limit the same; although the present application has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not necessarily depart from the spirit and scope of the corresponding technical solutions in the embodiments of the present application.

Claims (10)

1. A method of communication connection, the method comprising:
detecting a plurality of routes in a wireless communication area, and acquiring the number of terminals of which communication connection is established in each route;
sequentially judging whether the number of the terminals of each route is smaller than a preset threshold value according to a preset sequence, wherein the preset threshold value is the maximum connection number limited by each route, the preset sequence is a priority sequence of the routes, and the priority sequence is established according to the historical use frequency of the routes by a user and the state parameters of the routes;
and if the number of the terminals corresponding to each route in the plurality of routes is judged to be the preset threshold corresponding to the number of the terminals, if the connectable routes with the number of the terminals smaller than the preset threshold are not found, outputting prompt information, wherein the prompt information is used for prompting a user to use data flow for communication or prompting the user to select to move to other areas for trying connection, if the connectable routes with the number of the terminals smaller than the preset threshold are not found after the number of the terminals corresponding to each route in the plurality of routes is judged to be the preset threshold corresponding to the number of the terminals, directly trying to establish communication connection with the first route in the preset sequence, and if the connection is unsuccessful, establishing communication connection with the next route in the preset sequence until the routes are successfully connected.
2. The method of claim 1, wherein sequentially determining whether the number of terminals of each of the routes is smaller than a preset threshold according to a preset sequence comprises:
acquiring state parameters of a plurality of routes;
performing priority ordering on the plurality of routes based on the state parameters, wherein the priority ordering is used as the preset order;
and sequentially judging whether the number of the terminals of each route is less than a preset threshold value according to the priority sequence.
3. The method of claim 2, wherein sequentially determining whether the number of terminals of each of the routes is less than a preset threshold according to the priority ranking comprises:
judging whether the number of the terminals of the current route is smaller than a preset threshold value or not;
and when the number of the terminals of the current route is not less than the preset threshold, judging whether the number of the terminals of the next route after the priority of the current route is sequenced is less than the preset threshold or not according to the priority sequence.
4. The method of claim 3, wherein after determining whether the number of terminals of the current route is less than a preset threshold, the method further comprises:
and when the number of the terminals of the current route is smaller than the preset threshold value, taking the current route as a connectable route.
5. The method according to claim 1, wherein establishing a communication connection with the connectable route until the connectable route with the number of terminals smaller than the preset threshold is obtained comprises:
judging whether connectable routes with the number of the terminals smaller than the preset threshold value are obtained or not;
establishing a communication connection with the connectable route when the connectable route is obtained.
6. The method according to claim 5, wherein after determining whether the connectable routes with the number of terminals smaller than the preset threshold are obtained, the method further comprises:
and when the connectable route is not obtained, establishing communication connection with the route which is arranged at the head in the preset sequence.
7. The method of claim 1, wherein after sequentially determining whether the number of terminals of each of the routes is smaller than a preset threshold according to a preset order, the method further comprises:
acquiring the number of routes which are judged by a threshold value;
judging whether the number of the routes subjected to threshold judgment reaches a preset number or not;
and when the number of the routes which are judged by the threshold reaches the preset number, establishing communication connection with the first-ranked route in the preset sequence.
8. A communications connection apparatus, the apparatus comprising:
the detection module is used for detecting a plurality of routes in a wireless communication area and acquiring the number of terminals of which the communication connection is established in each route;
the judging module is used for sequentially judging whether the number of the terminals of each route is smaller than a preset threshold value according to a preset sequence, wherein the preset threshold value is the maximum connection number limited by each route, the preset sequence is the priority sequence of the routes, and the priority sequence is established according to the historical use frequency of the routes by users and the state parameters of the routes;
a connection module, configured to establish a communication connection with the connectable routes until obtaining the connectable routes whose number of terminals is smaller than the preset threshold, if no connectable routes having the number of terminals smaller than the preset threshold value are found within a preset time period, outputting a prompt message for prompting the user to use the data traffic for communication or prompting the user to select to move to another area to attempt connection, if the number of the terminals corresponding to each route in the plurality of routes is judged to be equal to the corresponding preset threshold value, if no connectable route with the number of terminals smaller than the preset threshold is found, directly trying to establish communication connection with the route arranged at the head in the preset sequence, and if the connection is unsuccessful, establishing communication connection according to the route arranged at the next position in the preset sequence until the route is successfully connected.
9. A mobile terminal comprising a display, a memory, and a processor, the display and the memory coupled to the processor, the memory storing instructions that, when executed by the processor, the processor performs the method of any of claims 1-7.
10. A computer-readable storage medium having program code executable by a processor, the program code causing the processor to perform the method of any one of claims 1-7.
CN201810558503.9A 2018-06-01 2018-06-01 Communication connection method, device, mobile terminal and computer readable storage medium Active CN108668335B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810558503.9A CN108668335B (en) 2018-06-01 2018-06-01 Communication connection method, device, mobile terminal and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810558503.9A CN108668335B (en) 2018-06-01 2018-06-01 Communication connection method, device, mobile terminal and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN108668335A CN108668335A (en) 2018-10-16
CN108668335B true CN108668335B (en) 2020-01-14

Family

ID=63775246

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810558503.9A Active CN108668335B (en) 2018-06-01 2018-06-01 Communication connection method, device, mobile terminal and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN108668335B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114710376B (en) * 2020-12-16 2024-03-12 深圳Tcl新技术有限公司 Connection control method and device of gateway equipment, gateway equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101478484A (en) * 2009-01-23 2009-07-08 华为技术有限公司 Method, equipment and communication system for route selection
CN102857915A (en) * 2012-08-23 2013-01-02 深圳雷柏科技股份有限公司 Electronic equipment, intelligent terminal and authentication method of wireless router
CN103249118A (en) * 2012-02-10 2013-08-14 联想(北京)有限公司 Wireless access point selection method and electronic terminals
CN103298041A (en) * 2012-02-27 2013-09-11 联想(北京)有限公司 Method, equipment and system for automatic switching of wireless router
CN105722245A (en) * 2016-01-28 2016-06-29 努比亚技术有限公司 Network connection device and method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101478484A (en) * 2009-01-23 2009-07-08 华为技术有限公司 Method, equipment and communication system for route selection
CN103249118A (en) * 2012-02-10 2013-08-14 联想(北京)有限公司 Wireless access point selection method and electronic terminals
CN103298041A (en) * 2012-02-27 2013-09-11 联想(北京)有限公司 Method, equipment and system for automatic switching of wireless router
CN102857915A (en) * 2012-08-23 2013-01-02 深圳雷柏科技股份有限公司 Electronic equipment, intelligent terminal and authentication method of wireless router
CN105722245A (en) * 2016-01-28 2016-06-29 努比亚技术有限公司 Network connection device and method

Also Published As

Publication number Publication date
CN108668335A (en) 2018-10-16

Similar Documents

Publication Publication Date Title
CN108990105B (en) Wireless communication transmission method, device, mobile terminal and computer readable storage medium
CN107464557B (en) Call recording method and device, mobile terminal and storage medium
CN108021642B (en) Application program recommendation method and device, mobile terminal and storage medium
CN108777731B (en) Key configuration method and device, mobile terminal and storage medium
CN108235308B (en) Data reporting method and device, mobile terminal and computer readable medium
CN107566980B (en) Mobile terminal positioning method and mobile terminal
CN107959952B (en) Method and terminal for detecting inter-system cell
CN108834132B (en) Data transmission method and equipment and related medium product
CN108668328B (en) Network switching method and mobile terminal
CN108811045B (en) WiFi channel scanning method and device, mobile terminal and storage medium
CN108924908B (en) WiFi scanning method and device and electronic device
CN108345422A (en) Application control method, apparatus, mobile terminal and computer-readable medium
CN108235237B (en) Data reporting method and device, mobile terminal and computer readable medium
CN108934025B (en) Wireless communication transmission method, device, mobile terminal and computer readable storage medium
CN108449787B (en) Connection control method and device and electronic equipment
CN108471622B (en) WiFi connection adjustment method and device, mobile terminal and storage medium
CN108200546B (en) Data reporting method and device, mobile terminal and computer readable medium
CN107918517B (en) Screen rotation response method and device, mobile terminal and storage medium
CN108848566B (en) Wireless communication transmission method, device, mobile terminal and computer readable storage medium
CN110602738B (en) Network connection method and device and electronic device
CN108668335B (en) Communication connection method, device, mobile terminal and computer readable storage medium
CN108990104B (en) Wireless communication transmission method, device, mobile terminal and computer readable storage medium
CN108901062B (en) Wireless communication transmission method, device, mobile terminal and computer readable storage medium
CN108924868B (en) WiFi disconnection adjusting method and device, mobile terminal and storage medium
CN107894958B (en) Junk information cleaning method, terminal, server and computer readable 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
GR01 Patent grant
GR01 Patent grant