CN108966266B - Communication connection method, device, electronic device and computer readable medium - Google Patents

Communication connection method, device, electronic device and computer readable medium Download PDF

Info

Publication number
CN108966266B
CN108966266B CN201810602463.3A CN201810602463A CN108966266B CN 108966266 B CN108966266 B CN 108966266B CN 201810602463 A CN201810602463 A CN 201810602463A CN 108966266 B CN108966266 B CN 108966266B
Authority
CN
China
Prior art keywords
channel
error vector
channels
mobile terminal
determining
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
CN201810602463.3A
Other languages
Chinese (zh)
Other versions
CN108966266A (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 CN201810602463.3A priority Critical patent/CN108966266B/en
Publication of CN108966266A publication Critical patent/CN108966266A/en
Application granted granted Critical
Publication of CN108966266B publication Critical patent/CN108966266B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/08Testing, supervising or monitoring using real traffic
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B17/00Monitoring; Testing
    • H04B17/30Monitoring; Testing of propagation channels
    • H04B17/309Measuring or estimating channel quality parameters
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B17/00Monitoring; Testing
    • H04B17/30Monitoring; Testing of propagation channels
    • H04B17/382Monitoring; Testing of propagation channels for resource allocation, admission control or handover
    • 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)
  • Physics & Mathematics (AREA)
  • Electromagnetism (AREA)
  • Quality & Reliability (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The embodiment of the application provides a communication connection method, a communication connection device, an electronic device and a computer readable medium, and relates to the technical field of communication. The method comprises the following steps: determining an error vector magnitude for each channel of the electronic device; acquiring an error vector amplitude range corresponding to the mobile terminal; determining a channel with the error vector amplitude within the error vector amplitude range in each channel as a candidate channel; determining one channel from the alternative channels as a target channel; and controlling the electronic device and the mobile terminal to establish connection through the target channel. The corresponding channel can be selected according to the error vector magnitude range corresponding to the mobile terminal, so that the channel distribution of the electronic device is more reasonable.

Description

Communication connection method, device, electronic device and computer readable medium
Technical Field
The present application relates to the field of communications technologies, and in particular, to a communication connection method, an apparatus, an electronic apparatus, and a computer-readable medium.
Background
With the development of networks, the networks have deepened into the daily life of people, and the use of routers is more and more common. The wireless router is used for surfing the internet and has a wireless coverage function, and has a plurality of advantages of convenience, safety, mobility and the like due to the fact that the wireless router is not bound by a network cable, so that a user can freely surf the internet in a proper range such as a home and an office area, and the wireless router is widely used at present. However, the channel configuration of the wireless router is still unreasonable at present, and the user experience is affected.
Disclosure of Invention
The present application provides a communication connection method, a communication connection device, an electronic device and a computer-readable medium to overcome the above-mentioned drawbacks.
In a first aspect, an embodiment of the present application provides a communication connection method, which is applied to an electronic device, and the method includes: determining an error vector magnitude for each channel of the electronic device; acquiring an error vector amplitude range corresponding to the mobile terminal; determining a channel with the error vector amplitude within the error vector amplitude range in each channel as a candidate channel; determining one channel from the alternative channels as a target channel; and controlling the electronic device and the mobile terminal to establish connection through the target channel.
In a second aspect, an embodiment of the present application further provides a communication connection apparatus, which is applied to an electronic apparatus, and the apparatus includes: the device comprises a first determining unit, a first acquiring unit, a second determining unit and a connecting unit. A first determining unit for determining an error vector magnitude for each channel of the electronic device. And the first acquisition unit is used for acquiring the error vector magnitude range corresponding to the mobile terminal. And the second acquisition unit is used for determining a channel with the error vector magnitude within the error vector magnitude range in each channel as a candidate channel. And a second determining unit, configured to determine one channel from the candidate channels as a target channel. And the connection unit is used for controlling the electronic device to establish connection with the mobile terminal through the target channel.
In a third aspect, an embodiment of the present application further provides an electronic apparatus, including a memory and a processor, where the memory is coupled with the processor; the memory stores instructions that, when executed by the processor, cause the processor to: determining an error vector magnitude for each channel of the electronic device; acquiring an error vector amplitude range corresponding to the mobile terminal; determining a channel with the error vector amplitude within the error vector amplitude range in each channel as a candidate channel; determining one channel from the alternative channels as a target channel; and controlling the electronic device and the mobile terminal to establish connection through the target channel.
In a fourth aspect, the present application also provides a computer-readable medium having program code executable by a processor, where the program code causes the processor to execute the above method.
The communication connection method, the communication connection device, the electronic device and the computer-readable medium provided by the embodiment of the application determine an error vector magnitude range of a mobile terminal and an error vector magnitude of each channel of the electronic device, then search a channel corresponding to the error vector magnitude within the error vector magnitude range in the error vector magnitude of each channel of the electronic device as a candidate channel, and then select one channel from the candidate channels as a target channel, so that the electronic device and the mobile terminal establish connection through the target channel. Therefore, the corresponding channel can be selected according to the error vector magnitude range corresponding to the mobile terminal, so that the channel allocation of the electronic device is more reasonable.
Additional features and advantages of embodiments of the present application will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by the practice of embodiments of the present application. The objectives and other advantages of the embodiments of the application may be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
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 schematic diagram illustrating a WIFI network access scenario provided in an embodiment of the present application;
FIG. 2 illustrates a WiFi network list interface provided by an embodiment of the present application;
fig. 3 is a flowchart illustrating a method of a communication connection method according to an embodiment of the present application;
fig. 4 is a flow chart of a method of communication connection provided by another embodiment of the present application;
FIG. 5 illustrates a method flow diagram of a communication connection method provided by yet another embodiment of the present application;
fig. 6 shows a block diagram of a communication connection apparatus provided in an embodiment of the present application;
FIG. 7 shows a block diagram of an electronic device provided by an embodiment of the present application;
fig. 8 is a schematic structural diagram of an electronic device according to an embodiment of the present application;
fig. 9 shows a block diagram of an electronic device according to an embodiment of the present application for performing a 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. The components of the embodiments of the present application, generally described and illustrated in the figures herein, can be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present application, presented in the accompanying drawings, is not intended to limit the scope of the claimed application, but is merely representative of selected embodiments of the application. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the present application without making any creative effort, shall fall within the protection scope of the present application.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures. Meanwhile, in the description of the present application, the terms "first", "second", and the like are used only for distinguishing the description, and are not to be construed as indicating or implying relative importance.
Specifically, please refer to fig. 1, which illustrates a schematic diagram of a WIFI network access scenario provided in an embodiment of the present application. As shown in fig. 1, a plurality of WiFi access points, such as a first WiFi access point 201, a second WiFi access point 202, and a third WiFi access point 203 in fig. 1, are included within the network coverage of the mobile terminal 100. The mobile terminal 100 and any WiFi access point need a channel to connect, that is, each WiFi access point is located on a channel, and different WiFi access points may be located on different channels or on the same channel.
When the mobile terminal 100 enters the network coverage area, it starts to scan the WiFi access point in the network coverage area, specifically, the system of the mobile terminal sends a scan request, and after the WiFi chip or other underlying network modules of the mobile terminal receive the scan command, it scans according to the preset channel scan sequence, for example, scan the channels of the common channels 1, 7, and 13 first, and then scan other channels that are not common.
Specifically, as shown in fig. 2, a WiFi network list interface is displayed in the interface, and the WiFi control switch has a function of turning on or off a WiFi network. For example, the WiFi control switch may control the power of the WiFi module to be turned on or off, and when the user clicks the WiFi on the mobile phone, the WiFi module is powered on to operate, and a driver of the WiFi is loaded correspondingly.
After the WiFi control switch is turned on, a WiFi access point near the mobile terminal 100 is searched in a Scanning (Scanning) manner, and a scanned result is displayed in the WiFi network list interface, wherein the Scanning may be performed in an active Scanning manner or a passive Scanning manner. After the scanning is completed, Authentication (Authentication) needs to be performed on the scanned wireless access hotspot. For example, the authentication may be performed by open system authentication, shared key authentication, or pre-authentication. For example, the WiFi access point that the mobile terminal 100 successfully authenticates is the first WiFi access point. After the authentication is completed, the mobile terminal 100 is associated with the access point to obtain full access to the network, so that the mobile terminal 100 successfully connects to the internet through the access point.
Each WiFi access point corresponds to an electronic device, which can establish a communication connection with an external device such as a mobile terminal, for example, has a WiFi module, and can perform a WiFi connection with the mobile terminal, for example, the electronic device is a router, and one router may have a plurality of WiFi access points, so that one router may be connected with a plurality of mobile terminals and may be allocated on different channels, and specifically, the correspondence between the channels of the router and the mobile terminals is shown in table 1 below.
TABLE 1
Channel with a plurality of channels Is connected withMobile terminal (2)
6 Id1,Id12
7 Id11,Id3
3 Id4
4 Id17
As can be seen from table 1 above, the number of mobile terminals currently connected by the router, and the channel on which each connected mobile terminal is located, and the identity of the connected mobile terminal, e.g., Id1, where the identity of the mobile terminal may be the MAC address or device number of the mobile terminal.
At present, the channel of the router may be manually set by the user, for example, fixed to 6 channels for connection, and then the mobile terminal may be connected to the router through 6 channels, or of course, the router may allocate the connected channels to different mobile terminals when a plurality of mobile terminals need to be connected.
However, the inventor has found in research that when allocating channels to different mobile terminals in a network environment, it is more likely that the mobile terminal connected first is allocated to a better channel, and the mobile terminal connected later is allocated to a bad channel, which may cause old users who are often connected to the router to be unable to allocate to a better channel, so that the allocation of channels to the electronic device is not reasonable enough in consideration of the situation of the mobile terminal.
Therefore, in order to solve the above-mentioned defects, an embodiment of the present application provides a communication connection method, which is applied to an electronic device, specifically, the electronic device may be a router, and may also be a mobile terminal capable of opening a WiFi hotspot, and a WiFi module of the mobile terminal can be used as a router at this time, and in the embodiment of the present application, for example, the electronic device is used as a router to describe the embodiment of the present application, then the method may be used to solve the problem that a channel configuration of the router is not reasonable, as shown in fig. 3, the method includes: s301 to S305.
S301: determining an error vector magnitude for each channel of the electronic device.
An Error Vector Magnitude (EVM) is a Vector difference between an ideal Error-free reference signal and an actually transmitted signal at a given time, and is used for measuring an amplitude Error and a phase Error of a modulated signal, and the EVM specifically indicates a proximity degree of an IQ component generated when a receiving terminal demodulates the signal and an ideal signal component, and is an index for considering the quality of the modulated signal. The smaller the EVM, the better the signal quality of the channel.
As an implementation manner, after the router is turned on, the supported channels are scanned channel by channel according to a preset channel scanning order, and at this time, EVM values of all channels are obtained and stored.
S302: and acquiring the range of the error vector amplitude corresponding to the mobile terminal.
The error vector range of the mobile terminal may be a range of error vector magnitudes of channels that can be used by the mobile terminal, or may be a range of error vector magnitudes of channels that are allowed to be used. For example, if the EVM value ranges from-30 to-15, it indicates that the EVM value that can be used by the mobile terminal is-30 to-15.
The error vector magnitude range of the mobile terminal may be set by a user according to a requirement, or may be set according to a policy of a router, for example, in a network environment where the router is located, several mobile terminals are frequently connected to the router in a communication manner, and may be considered as a common user of the environment where the router is located, a channel with good signal quality is prone to be allocated to the mobile terminal, and thus, the router may acquire the connection times of each mobile terminal in a preset communication time period, for example, in a preset communication time period, and the identifiers of all mobile terminals establishing communication connection, thereby acquiring the connection times of each mobile terminal in the preset communication time period, and set the error vector magnitude for the mobile terminal corresponding to the times according to the connection times, where the error vector magnitude range includes a first threshold and a second threshold, and the first threshold is smaller than the second threshold, the range of the error vector magnitude is the range between the first threshold and the second threshold, the higher the number of connections, and the smaller the first threshold, that is, the higher the number of connections, the higher the signal quality of the usable channel, so that the mobile terminal with the higher number of connections can be preferentially configured with the channel with the better signal quality.
In addition, each mobile terminal corresponds to identity information, which may be information used to indicate the identity of the mobile terminal, such as the MAC address or device ID of the mobile terminal. Specifically, the router may acquire the identity information of the mobile terminal when the mobile terminal is connected with the router, or when the mobile terminal scans the router. The specific implementation manner of obtaining the error vector magnitude range corresponding to the mobile terminal is as follows: acquiring identity information of the mobile terminal; and searching the error vector amplitude range corresponding to the mobile terminal according to the corresponding relation between the preset identity information and the error vector amplitude range.
After the identity information of the mobile terminal is acquired, an error vector magnitude range is configured for the mobile terminal corresponding to the identity information, and the configuration mode may be set according to the current connection number of the router and a channel where each mobile terminal connected to the router is located, for example, the number of the mobile terminals connected to the current router is 6, and the mobile terminals are equally distributed in the channel 6, and the signal quality of the channel 6 is the best, so that the channel 6 is prevented from being continuously connected with too many mobile terminals at this time, and a channel other than the channel 6 can be configured for the mobile terminal to be configured with the channel.
Of course, the channel can also be configured according to the priority of each mobile terminal, and some mobile terminals with higher priority can configure a better channel. Specifically, identity information of the mobile terminal is acquired; determining the priority corresponding to the mobile terminal according to the corresponding relation between the preset identity information and the priority; and setting an error vector magnitude range for the mobile terminal according to the priority of the mobile terminal.
The priority corresponding to the identity information may be set according to the number of connections in the preset time period, for example, the higher the number of connections, the higher the priority, or may be set according to the number of data transmissions in the preset time period, for example, the higher the number of data transmissions, the higher the priority.
Specifically, the router is preset with a priority corresponding to each identity information, for example, the router may be stored in a correspondence table between the identity information and the priority, and the correspondence table stores a plurality of identity information and the priority corresponding to each identity information. Then as an embodiment, the correspondence of identity information to priority and the correspondence of error vector magnitude range to identity information may be stored together as shown in table 2 below:
TABLE 2
Identity information Error vector magnitude range Priority level
ID1 [-30,-10] J1
ID2 [-20,-10] J2
ID3 [-15,-10] J3
As shown in table 2 above, J1, J2, and J3 represent different priorities, and as an embodiment, the smaller the number following "J" the higher the priority. Then J1 is the highest priority, J2 is the next highest, and J3 is the lowest of J1, J2, and J3. It can be seen that the higher the priority, the smaller the first threshold in the corresponding error vector magnitude range, i.e. the better the signal quality channel can be used.
And determining the identity information of the mobile terminal according to the corresponding relation between the error vector magnitude range and the identity information, and then determining the priority corresponding to the identity information of the mobile terminal.
S303: and determining the channel with the error vector amplitude within the error vector amplitude range in each channel as a candidate channel.
After the router acquires the error vector magnitude of each supported channel and also acquires the error vector magnitude range of the mobile terminal, the error vector magnitude of each channel of the router and the error vector magnitude range of the mobile terminal are subjected to, for example, channel within the range is found as the candidate channel.
Specifically, assuming that signals supported by the router are channel a, channel B, channel C, and channel D, the value of the EVM for each channel is as shown in table 3 below.
TABLE 3
Identification of channels EVM value
Channel A -30
Channel B -15
Channel C -9
Channel D -10
And the error vector magnitude range of the mobile terminal is [ -30, -15], the candidate channels that can be determined are channel a and channel B, i.e., the EVM value corresponding to channel a is-30, and the EVM value corresponding to channel B is-15, both of which are within the error vector magnitude range.
S304: and determining one channel from the alternative channels as a target channel.
After the candidate channels are determined, it means that all channels in the candidate channels can be configured to the mobile terminal, and then one channel can be randomly selected from the candidate channels as a target channel.
In addition, a target channel may also be selected according to the number of connections of the channel or the data transmission amount corresponding to the channel, for example, the data transmission amount of each channel in each candidate channel within a preset transmission time, so that the channel with the smallest data transmission amount is taken as the target channel.
S305: and controlling the electronic device and the mobile terminal to establish connection through the target channel.
Specifically, the electronic device and the mobile terminal are controlled to establish connection through the target channel, where the electronic device may not be connected with the mobile terminal at present, and when the electronic device obtains the connection request of the mobile terminal, the electronic device returns an identifier of the channel, that is, an identifier of the target channel, so that the mobile terminal is connected with the router through the target channel.
Of course, after the router has been connected to the mobile terminal, the electronic device and the mobile terminal may reestablish the connection through the target channel according to the determined target channel. Specifically, the router sends a reconnection request, where the reconnection request includes an access point identifier, an IP address, and a channel identifier of the router, and after the mobile terminal obtains the reconnection request, the mobile terminal parses the request to obtain the identifier of the router and the channel identifier, so that the mobile terminal can know that the identifier of the router is scanned in a channel corresponding to the channel identifier, and after the router is scanned, the mobile terminal sends a connection request to the router, and the router and the mobile terminal reestablish a connection.
However, considering that if the EVM value of the target channel is poor, the mobile terminal needs to scan the router on the target channel more time, and a scanning time can be set in the reconnection request, the mobile terminal can scan the channel according to the scanning time, and it is avoided that the mobile terminal cannot scan the router on the target channel due to inaccurate scanning time, which results in disconnection between the router and the mobile terminal.
Thus, the router may set a scan time for the target channel, and in particular, determine the scan time for the target channel based on the error vector magnitude of the target channel.
As an embodiment, the larger the EVM of a channel is, the worse the signal quality of the channel is, the longer the scanning time is, the scanning time may be increased for those channels with poor signal quality, because the poor signal quality of the channel may cause the transmission rate of the signal to be too low, and cause the transmission rate of the signal of the channel to be too slow, which further causes the scanning process to be slow, and requires a longer time, the scanning time of the channel needs to be increased, so that each channel may be scanned more comprehensively.
Therefore, in determining the EVM value of the channel, a scanning time may be configured for the channel according to the EVM value, that is, a time may be manually configured for each channel, and of course, a corresponding relationship between an error vector magnitude and a scanning time may also be set, specifically, the corresponding relationship may be preset, and the corresponding relationship includes a plurality of error vector magnitudes and scanning times corresponding to each error vector magnitude, specifically, as shown in table 4.
TABLE 4
EVM value Time of scan
-30 20s
-25 25s
-16 30s
-19 28s
As can be seen from the above table, the smaller the EVM value, the shorter the corresponding scan time, and the larger the EVM value, the longer the corresponding scan time. Thus, when the EVM value of the target channel is determined, the scanning time corresponding to the error vector magnitude of the target channel can be found according to the correspondence illustrated in table 1, for example, if the error vector magnitude of the target channel is-30, the corresponding scanning time is 20 s.
The corresponding relationship may be set by a user according to a requirement, and as an embodiment, the corresponding relationship may be obtained by testing before the router leaves a factory, specifically, an error vector magnitude of each WiFi channel in the plurality of WiFi channels supported by the router is detected; and establishing a corresponding relation between the error vector amplitude and the scanning time according to the detected error vector amplitude of each WiFi channel and storing the corresponding relation.
Before the router leaves a factory, testing the EVM value of each channel supported by the router in a pre-established testing environment to obtain the EVM value of each supported channel, then establishing a network environment, wherein the network environment comprises a plurality of WiFi access points which are distributed on different channels, so that at least one WiFi access point is distributed on each channel, then continuously debugging the scanning time of each channel to ensure that all the access points distributed on the channel can be scanned, so that the corresponding relation between the error vector amplitude and the scanning time can be established by testing the error vector amplitude of each WiFi channel, and then storing the preset corresponding relation so that the preset corresponding relation can be used after the router goes wrong.
As an embodiment, the error vector magnitude is positively correlated to the scan time for the sake of comprehensiveness of the scan of the channel. The positive correlation means that the larger the magnitude of the error vector, the longer the scanning time. Therefore, when the error vector magnitude is larger, namely the signal quality of the channel is poorer, the scanning time of the channel can be increased, so that each channel can be scanned more comprehensively to obtain all access points distributed on the channel.
Referring to fig. 4, an embodiment of the present application provides a communication connection method for solving an unreasonable channel configuration of a router, and as shown in fig. 4, the method includes: s401 to S405.
S401: determining an error vector magnitude for each channel of the electronic device.
S402: and acquiring the range of the error vector amplitude corresponding to the mobile terminal.
S403: and determining the channel with the error vector amplitude within the error vector amplitude range in each channel as a candidate channel.
S404: and selecting the channel with the minimum error vector amplitude as a target channel from the alternative channels.
S405: and controlling the electronic device and the mobile terminal to establish connection through the target channel.
Specifically, after determining the error vector magnitude of each of a plurality of channels supported by the router, the plurality of channels are ordered according to the error vector magnitude of each of the channels to obtain a channel error vector magnitude sequence.
For example, the channels in table 3 may be reordered in order of the EVM values from large to small, or in order of the EVM values from small to large, in this embodiment, table 3 is ordered according to the EVM value of each channel and in order of the EVM value from small to large, and then table 5 is changed to table 3.
TABLE 5
Identification of channels EVM value
Channel A -30
Channel B -15
Channel D -10
Channel C -9
The obtained channel error vector magnitude sequence is [ channel a, channel B, channel C, channel D ], and the channel with the largest EVM can be clearly determined according to the sequence. According to the above embodiment, if the determined candidate channels are channel a and channel B, the EVM value of channel a is determined to be the minimum, and the channel a is taken as the target channel.
In addition, when the number of the channels connected is excessive, the channels are not crowded too much, when the channel with the largest error vector magnitude is determined, the current number of the channels connected is obtained, whether the current number of the channels connected is larger than a preset value or not is determined, if the current number of the channels connected is larger than the preset value, the channel with the second smallest error vector magnitude is selected until the channel with the current number of the channels connected smaller than or equal to the preset value is found and is used as a target channel.
Referring to fig. 5, an embodiment of the present application provides a communication connection method for solving an unreasonable channel configuration of a router, and as shown in fig. 5, the method includes: s501 to S506.
S501: determining an error vector magnitude for each channel of the electronic device.
S502: and acquiring the range of the error vector amplitude corresponding to the mobile terminal.
S503: and determining the channel with the error vector amplitude within the error vector amplitude range in each channel as a candidate channel.
S504: and determining a channel with the error vector amplitude smaller than a preset value in the alternative channels as a channel to be determined.
Specifically, a preset value is set for the range of the error vector magnitude belonging to the mobile terminal, and is used for configuring the channel with the error vector magnitude smaller than the preset value as a target channel to the mobile terminal, and the preset value can be obtained by statistics according to the value of the error vector magnitude of the current channel with higher signal quality. Therefore, the channel with the error vector magnitude larger than the preset value is marked as the channel to be determined.
S505: and determining the target channel from the channels to be determined.
Determining a channel as a target channel from the channels to be determined, specifically, randomly selecting a channel as the target channel, but considering that if the number of connections of the channels is too large, normal use may be affected, and data cannot be sent and received, therefore, a specific implementation manner of determining the target channel from the channels to be determined may be:
acquiring the terminal connection number of each channel in the channels to be determined; and determining the target channel according to the terminal connection number of each channel in the channels to be determined.
Specifically, the number of connections per channel of the router is recorded, and as shown in table 1 above, after the number of connections per channel is determined, the target channel is determined by the number of connections per channel. Specifically, it may be determined that a channel with the smallest number of connections in all current channels is a target channel, and it may be ensured that after the channel is taken as the target channel, a mobile terminal is connected to a router through the channel, and is less likely to jam than when other channels are used, for example, if the determined channels to be determined are channel 6, channel 4, and channel 3, the number of connections of channel 6 is 5, the number of connections of channel 4 is 4, and the number of connections of channel 3 is 3, the target channel determined this time is channel 3, and after the mobile terminal is connected to the router through the channel 3, the number of connections of repair channel 3 is 4.
In addition, if the connection number of a plurality of channels (wherein a plurality of channels are defined as being greater than or equal to 2) is the same when the channel with the minimum connection number is selected from the channels to be determined, one channel is randomly selected from the channels with the same connection number as a target channel, in addition, the time point and the times of selecting the channel as the target channel each time can be recorded, and if the channels with the same connection number are a plurality of channels, the channel of which the target channel is selected last time from the channels with the same connection number is determined according to the record to be used as the target channel of the current time, so that the data of the channel for establishing the communication connection can be directly used at the current time without being deleted because the data are used last time.
S506: and controlling the electronic device and the mobile terminal to establish connection through the target channel.
Referring to fig. 6, an embodiment of the present application provides a communication connection apparatus 600, which is applied to an electronic apparatus, specifically, the electronic apparatus may be a router, and may also be a mobile terminal capable of turning on a WiFi hotspot, where a WiFi module of the mobile terminal can be used as a router, and in the embodiment of the present application, for example, the electronic apparatus is a router to describe the embodiment of the present application, the apparatus may be used to solve the unreasonable channel configuration of the router, and the apparatus includes: a first determination unit 601, a first acquisition unit 602, a second acquisition unit 603, a second determination unit 604, and a connection unit 605.
A first determining unit 601 for determining an error vector magnitude for each channel of the electronic device.
A first obtaining unit 602, configured to obtain an error vector magnitude range corresponding to the mobile terminal.
A second obtaining unit 603, configured to determine, as a candidate channel, a channel in each of the channels, where the error vector magnitude is within the error vector magnitude range.
A second determining unit 604, configured to determine one channel from the candidate channels as a target channel.
A connection unit 605, configured to control the electronic apparatus to establish a connection with the mobile terminal through the target channel.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
Referring to fig. 7, based on the aforementioned transmission rate adjustment method and apparatus, an embodiment of the present invention further provides an electronic apparatus 500, where the electronic apparatus 500 may be a mobile terminal, and the mobile terminal has a WiFi hotspot function. As shown in fig. 7, the electronic device 500 includes a WiFi module 501, a memory 104 and a processor 102, the WiFi module 501 and the memory 104 are coupled to the processor 102, the WiFi module 501 is used for transmitting data through a network, in the embodiment of the present application, can be used as a router, can open a WiFi hotspot, and is connected by other mobile terminals, and the memory 104 stores instructions, and when the instructions are executed by the processor 102, the processor 102 executes the above method.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
Referring to fig. 8, based on the method and apparatus described above, the embodiment of the present application further provides an electronic apparatus, and the electronic apparatus 100 may be any of various types of computer system devices (only one form is exemplarily shown) that are mobile or portable and perform wireless communication. Specifically, the electronic apparatus 100 may be a mobile phone or a smart phone (e.g., an iPhone (TM) based phone), a Portable game device (e.g., Nintendo DS (TM), PlayStation Portable (TM), game Advance (TM), iPhone (TM)), a laptop computer, a PDA, a Portable internet device, a music player, and a data storage device, other handheld devices, and a head-mounted device (HMD) such as a watch, a headset, a pendant, a headset, and the like, and the electronic apparatus 100 may also be other wearable devices (e.g., a head-mounted device (HMD) such as electronic glasses, electronic clothes, an electronic bracelet, an electronic necklace, an electronic tattoo, an electronic device, or a smart watch).
The electronic apparatus 100 may also be any of a number of electronic devices including, but not limited to, cellular phones, smart phones, other wireless communication devices, personal digital assistants, audio players, other media players, music recorders, video recorders, cameras, other media recorders, radios, medical devices, vehicle transportation equipment, calculators, programmable remote controllers, pagers, laptop computers, desktop computers, printers, netbook computers, Personal Digital Assistants (PDAs), Portable Multimedia Players (PMPs), moving Picture experts group (MPEG-1 or MPEG-2) Audio layer 3(MP3) players, portable medical devices, and digital cameras, and combinations thereof.
In some cases, electronic device 100 may perform multiple functions (e.g., playing music, displaying videos, storing pictures, and receiving and sending telephone calls). If desired, the electronic apparatus 100 may be a portable device such as a cellular telephone, media player, other handheld device, wrist watch device, pendant device, earpiece device, or other compact portable device.
The electronic device 100 is a mobile terminal, and includes an electronic main body 10, where the electronic main body 10 includes a housing 12 and a 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 display screen 120 generally includes a display panel 111, and may also include a circuit and 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. 9, in an actual application scenario, the electronic device 500 may be used as a smartphone 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, a power module 122, a WiFi module 501, and the like. It will be understood by those skilled in the art that the structure shown in fig. 9 is merely illustrative and is not intended to limit the structure of the electronic body 10. For example, the electronics body portion 10 may also include more or fewer components than shown in fig. 9, or have a different correspondence than shown in fig. 9.
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 remotely located from the processor 102, which may be connected to the electronics body portion 10 or the display screen 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), Voice over internet protocol (VoIP), Global Microwave internet Access (Wi-Max), other protocols for mail, instant messaging and short messaging, and any other suitable Communication protocols, and may even include those protocols that have not yet been developed.
The WiFi module 501 is configured to transmit or receive a WiFi signal, and in particular, may establish a communication connection with a peripheral device through a Wireless Fidelity (WiFi) (e.g., IEEE 802.10A, IEEE802.11 b, IEEE802.11g, and/or IEEE802.11 n standards of the institute of electrical and electronics engineers), and then the WiFi module 501 may include a power amplifier, a Wireless transceiver, a transceiver switch, a low noise amplifier, an antenna, and the like. When sending signals, the transceiver itself will directly output a low-Power weak rf signal, which is sent to a Power Amplifier (PA) for Power amplification, and then radiated to the space through an Antenna (Antenna) by a Transmit/Receive Switch (Transmit/Receive Switch). When receiving signals, the antenna senses electromagnetic signals in the space, and the electromagnetic signals are sent to a Low Noise Amplifier (LNA) for amplification after passing through the switcher, so that the amplified signals can be directly sent to the transceiver for processing and demodulation.
Specifically, the WiFi module 501 can turn on the hot spot function, and is used as a router, so as to be connected to other mobile terminals.
The audio circuitry 110, speaker 101, microphone 103, microphone 105 collectively provide an audio interface between a user and the electronics body section 10 or the display screen 120.
The sensor 114 is disposed in the electronics body portion 10 or in the display screen 120, examples of the sensor 114 include, but are not limited to: acceleration sensor 114F, gyroscope 114G, magnetometer 114H, and other sensors.
In this embodiment, the input module 118 may include the touch screen 109 disposed on the display screen 120, and the touch screen 109 may collect a touch operation of the user (for example, an operation of the user on or near the touch screen 109 using any suitable object or accessory such as a finger, a stylus, etc.) on or near the touch screen 109, so that the touch gesture of the user may be obtained and the corresponding connection device may be driven according to a preset program, and thus, the user may select the target area through a touch operation on the display screen. 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 display screen 120 is used to display information input by the user, information provided to the user, and various graphical user interfaces of the electronic body section 10, which may be composed of graphics, text, icons, numbers, video, and any combination thereof. In one example, the touch screen 109 may be disposed on the display panel 111 so as to be integral 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 electronics body portion 10 or the display screen 120.
The electronic device 500 further comprises a locator 119, the locator 119 being configured to determine an actual location of the electronic device 500. In this embodiment, the locator 119 uses a positioning service to locate the electronic device 500, and the positioning service is understood to be a technology or a service for obtaining the position information (e.g. longitude and latitude coordinates) of the electronic device 500 by using a specific positioning technology and marking the position of the located object on the electronic map.
In summary, the communication connection method, the apparatus, the electronic apparatus, and the computer-readable medium provided in the embodiments of the present application determine an error vector magnitude range of the mobile terminal and an error vector magnitude of each channel of the electronic apparatus, then search for a channel corresponding to the error vector magnitude within the error vector magnitude range in the error vector magnitude of each channel of the electronic apparatus, and use the channel as a candidate channel, and then select a channel from the candidate channels as a target channel, so that the electronic apparatus and the mobile terminal establish a connection through the target channel. Therefore, the corresponding channel can be selected according to the error vector magnitude range corresponding to the mobile terminal, so that the channel allocation of the electronic device is more reasonable.
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 (8)

1. A communication connection method is applied to an electronic device, and the method comprises the following steps:
determining an error vector magnitude for each channel of the electronic device;
acquiring the connection times between the mobile terminal and the electronic device in a preset communication time period;
determining an error vector magnitude range corresponding to the mobile terminal according to the connection times, wherein the error vector magnitude range comprises a first threshold and a second threshold, the first threshold is smaller than the second threshold, and the connection times are negatively correlated with the first threshold;
determining a channel with the error vector amplitude within the error vector amplitude range in each channel as a candidate channel;
determining one channel from the alternative channels as a target channel;
and controlling the electronic device and the mobile terminal to establish connection through the target channel.
2. The method of claim 1, wherein the determining one of the candidate channels as a target channel comprises:
and selecting the channel with the minimum error vector amplitude as a target channel from the alternative channels.
3. The method of claim 1, wherein the determining one of the candidate channels as a target channel comprises:
determining a channel with the error vector amplitude smaller than a preset value in the alternative channels as a channel to be determined;
and determining the target channel from the channels to be determined.
4. The method of claim 3, wherein the determining the target channel from the channels to be determined comprises:
acquiring the terminal connection number of each channel in the channels to be determined;
and determining the target channel according to the terminal connection number of each channel in the channels to be determined.
5. The method according to claim 4, wherein the determining the target channel according to the number of terminal connections of each channel in the channels to be determined comprises:
and acquiring the channel with the least number of terminal connections as a target channel from the channels to be determined.
6. A communication connection device applied to an electronic device, the device comprising:
a first determining unit for determining an error vector magnitude for each channel of the electronic device;
the device comprises a first obtaining unit, a second obtaining unit and a third obtaining unit, wherein the first obtaining unit is used for obtaining the connection times between a mobile terminal and an electronic device in a preset communication time period, and determining an error vector amplitude range corresponding to the mobile terminal according to the connection times, the error vector amplitude range comprises a first threshold and a second threshold, the first threshold is smaller than the second threshold, and the connection times are negatively correlated with the first threshold;
a second obtaining unit, configured to determine, as an alternative channel, a channel in each of the channels, where the error vector magnitude is within the error vector magnitude range;
a second determining unit, configured to determine one channel from the candidate channels as a target channel;
and the connection unit is used for controlling the electronic device to establish connection with the mobile terminal through the target channel.
7. An electronic device comprising a memory and a processor, the memory coupled with the processor; the memory stores instructions that, when executed by the processor, cause the processor to perform the method of any of claims 1-5.
8. A computer-readable medium having stored thereon program code executable by a processor, the program code causing the processor to perform the method of any of claims 1-5.
CN201810602463.3A 2018-06-12 2018-06-12 Communication connection method, device, electronic device and computer readable medium Active CN108966266B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810602463.3A CN108966266B (en) 2018-06-12 2018-06-12 Communication connection method, device, electronic device and computer readable medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810602463.3A CN108966266B (en) 2018-06-12 2018-06-12 Communication connection method, device, electronic device and computer readable medium

Publications (2)

Publication Number Publication Date
CN108966266A CN108966266A (en) 2018-12-07
CN108966266B true CN108966266B (en) 2021-11-16

Family

ID=64488555

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810602463.3A Active CN108966266B (en) 2018-06-12 2018-06-12 Communication connection method, device, electronic device and computer readable medium

Country Status (1)

Country Link
CN (1) CN108966266B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112543070B (en) * 2019-09-23 2022-09-06 上海诺基亚贝尔股份有限公司 On-line extraction of channel characteristics

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1875644A (en) * 2003-11-03 2006-12-06 思科技术公司 Selecting an access point according to a measure of received signal quality
CN101499861A (en) * 2008-02-02 2009-08-05 大唐移动通信设备有限公司 Measuring method and apparatus for error vector amplitude
CN101854654A (en) * 2009-04-01 2010-10-06 中兴通讯股份有限公司 EVM (Error Vector Magnitude) test system and method of fast moving LTE (Long Term Evolution)-TD mobile terminal
CN105430730A (en) * 2015-10-28 2016-03-23 普联技术有限公司 Method, device and system of determining transmission power set, and network access device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1875644A (en) * 2003-11-03 2006-12-06 思科技术公司 Selecting an access point according to a measure of received signal quality
CN101499861A (en) * 2008-02-02 2009-08-05 大唐移动通信设备有限公司 Measuring method and apparatus for error vector amplitude
CN101854654A (en) * 2009-04-01 2010-10-06 中兴通讯股份有限公司 EVM (Error Vector Magnitude) test system and method of fast moving LTE (Long Term Evolution)-TD mobile terminal
CN105430730A (en) * 2015-10-28 2016-03-23 普联技术有限公司 Method, device and system of determining transmission power set, and network access device

Also Published As

Publication number Publication date
CN108966266A (en) 2018-12-07

Similar Documents

Publication Publication Date Title
WO2018120905A1 (en) Message reminding method for terminal, and terminal
US10917792B2 (en) Method for establishing wireless local area network connection, apparatus, and terminal
WO2018103441A1 (en) Network positioning method and terminal device
AU2020250543B2 (en) SSB transmission indication method and apparatus, terminal, device, and medium
CN108811045B (en) WiFi channel scanning method and device, mobile terminal and storage medium
CN108471630B (en) Transmission rate adjusting method, device, mobile terminal and computer readable medium
CN108924908B (en) WiFi scanning method and device and electronic device
CN108345422A (en) Application control method, apparatus, mobile terminal and computer-readable medium
US20200396581A1 (en) Electronic device and method for displaying inquiry list of external electronic device in bluetoothtm network environment
CN108471622B (en) WiFi connection adjustment method and device, mobile terminal and storage medium
CN106413032B (en) Hotspot establishing method and terminal equipment
CN108696917B (en) Communication connection method, device, electronic device and computer readable medium
US20140187166A1 (en) Method and apparatus for controlling short range wireless communication
CN108848557B (en) Output power adjusting method, device, mobile terminal and computer readable medium
CN108307485B (en) Wireless network scanning method and device, terminal equipment and storage medium
CN108966266B (en) Communication connection method, device, electronic device and computer readable medium
CN106792434B (en) Hotspot establishing method and terminal equipment
CN110602766B (en) Personal hotspot identification method and method for determining association relationship between terminals
CN109743469B (en) VOLTE-based communication method and mobile terminal
CN110602738B (en) Network connection method and device and electronic device
CN108848566B (en) Wireless communication transmission method, device, mobile terminal and computer readable storage medium
CN106648902B (en) Application data processing method and device
CN109040352B (en) Antenna position adjusting method and device, mobile terminal and storage medium
CN108965581B (en) Transmission rate adjusting method, device, mobile terminal and storage medium
CN108924902B (en) Wireless network disconnection method and device and electronic device

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