CN108696917B - 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
CN108696917B
CN108696917B CN201810602465.2A CN201810602465A CN108696917B CN 108696917 B CN108696917 B CN 108696917B CN 201810602465 A CN201810602465 A CN 201810602465A CN 108696917 B CN108696917 B CN 108696917B
Authority
CN
China
Prior art keywords
channel
electronic device
mobile terminal
error vector
channels
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
CN201810602465.2A
Other languages
Chinese (zh)
Other versions
CN108696917A (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 CN201810602465.2A priority Critical patent/CN108696917B/en
Publication of CN108696917A publication Critical patent/CN108696917A/en
Application granted granted Critical
Publication of CN108696917B publication Critical patent/CN108696917B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/19Connection re-establishment

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The application discloses 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: when the electronic device is connected with a mobile terminal, acquiring data content transmitted between the electronic device and the mobile terminal within a preset time period; judging whether the data content belongs to a preset category or not; if the channel belongs to the channel, acquiring the error vector magnitude of each channel supported by the electronic device; determining a channel with the error vector amplitude meeting a preset condition in each channel as a target channel; and controlling the electronic device and the mobile terminal to reestablish connection through the target channel. The connection of the channel between the electronic device and the mobile terminal is not fixed any more, but determined according to the data content between the electronic device and the mobile terminal, and the channel corresponding to the data content is reasonably allocated to carry out communication, so that the reasonability of channel allocation is improved.

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: when the electronic device is connected with a mobile terminal, acquiring data content transmitted between the electronic device and the mobile terminal within a preset time period; judging whether the data content belongs to a preset category or not; if the channel belongs to the channel, acquiring the error vector magnitude of each channel supported by the electronic device; determining a channel with the error vector amplitude meeting a preset condition in each channel as a target channel; and controlling the electronic device and the mobile terminal to reestablish 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 acquisition unit, a judgment unit, a second acquisition unit, a determination unit and a connection unit. The mobile terminal comprises a first acquisition unit and a second acquisition unit, wherein the first acquisition unit is used for acquiring data contents transmitted between the electronic device and the mobile terminal within a preset time period when the electronic device is connected with the mobile terminal. And the judging unit is used for judging whether the data content belongs to a preset category or not. And the second acquisition unit is used for acquiring the error vector magnitude of each channel supported by the electronic device if the error vector magnitude belongs to the channel. And the determining unit is used for determining a channel with the error vector magnitude meeting a preset condition in each channel as a target channel. And the connection unit is used for controlling the electronic device and the mobile terminal to reestablish connection 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: when the electronic device is connected with a mobile terminal, acquiring data content transmitted between the electronic device and the mobile terminal within a preset time period; judging whether the data content belongs to a preset category or not; if the channel belongs to the channel, acquiring the error vector magnitude of each channel supported by the electronic device; determining a channel with the error vector amplitude meeting a preset condition in each channel as a target channel; and controlling the electronic device and the mobile terminal to reestablish 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.
According to the communication connection method, the communication connection device, the electronic device and the computer readable medium, when the electronic device is connected with the mobile terminal, data content transmitted between the electronic device and the mobile terminal in a preset time period is obtained, under the condition that the data content meets the preset category, the error vector magnitude of each channel of the electronic device is obtained, then one channel is selected, and the connection between the electronic device and the mobile terminal is established. Therefore, the connection of the channel between the electronic device and the mobile terminal is not fixed any more, but determined according to the data content between the electronic device and the mobile terminal, the channel corresponding to the data content is reasonably distributed to carry out communication, and the rationality of channel distribution is improved.
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
Figure BDA0001693432620000041
Figure BDA0001693432620000051
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 of the present invention found in research that, now, after a router connects a certain channel to a mobile terminal, the router does not reallocate the channel for the mobile terminal unless the mobile terminal moves out of the network coverage or is forcibly disconnected by a user, and therefore, there are situations where channel allocation is not reasonable, for example, some mobile terminals occupy the channel and transmit less data or transmit some irrelevant content, and some mobile terminals which are in urgent need of transmitting data or have a large data transmission demand cannot use the good channel.
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 unreasonable channel configuration of the router, as shown in fig. 3, the method includes: s301 to S305.
S301: and when the electronic device is connected with the mobile terminal, acquiring data content transmitted between the electronic device and the mobile terminal within a preset time period.
The preset time period is set by the user according to the actual use requirement, and may be set according to the channel.
Then, data contents transmitted between the mobile terminal and the router within a preset time period are collected, and the counted data amount is recorded, specifically, a counted time point and a counted time length may correspond to each counted data content, for example, 5, 4, 13 of 2018: the data content transmitted between the mobile terminal and the router AAAA is content 1 between 00 and 14: 00. In this way, it is possible to obtain the data content of the data transmission in which specific time slot between the router and the connected mobile terminal is.
S302: and judging whether the data content belongs to a preset category or not.
Specifically, the data content may include video, audio, game data, text information, and the like, and may be obtained by analyzing the data content, for example, whether the content to which the data belongs is video or audio may be determined by a data format, and a classification of the content specific to the data content if the data content is text information may be determined according to extraction of keywords of the data content, for example, a military topic class, a marketing information class, an advertisement push class, and the like.
As an implementation manner, a corresponding relationship between data content and a data category may be set, specifically, the corresponding relationship may be a corresponding relationship between a sender of the data content and the data category, when data interaction is performed between the mobile terminal and the router, all sent data may be transmitted in the form of a data packet, and the data packet includes an identifier of the sender of the data, for example, if the sender of the data is a certain music APP, a category corresponding to the sender of the data may be found in the above corresponding relationship, for example, if the category corresponding to the certain music APP is an audio/video, it may be determined that the data category corresponding to the data content is the audio/video.
Each data content corresponds to a category, the preset category is set by a user according to requirements, specifically, the preset category may be a category related to urgency, specifically, one urgency may be set for the data content, different data contents correspond to different urgency, and the preset category may be a category with higher urgency, for example, the urgency of a video is 10, the urgency of a text message is 7, and the higher the value of the urgency, the more urgent the text message is, that is, the content with the urgency of 10 is more urgent than the urgency of 7.
In addition, the preset category may also be a category of content that the user considers unimportant, and in the embodiment of the present application, the preset category may be content marked as spam. Specifically, the sender of the data content may be marked as a spam sender, the mobile terminal determines whether the sender of the data content is marked as a spam sender, and if so, determines that the category of the data content is the content marked as spam, that is, belongs to a preset category, or extracts keywords of the data content, for example, the data content includes content similar to "promotion and reduction", and if it is determined that the data content is a marketing information category or an advertisement push category, the data content is marked as spam.
S303: obtaining an error vector magnitude for each channel supported by the electronic device.
And if the data content is judged to belong to the preset category, acquiring the error vector magnitude of each channel supported by the router.
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.
S304: and in each channel, determining a channel with the error vector amplitude meeting a preset condition as a target channel.
Specifically, the preset condition may be set by a user according to a requirement, and the preset condition corresponds to a preset category, so that the router can determine a corresponding channel according to a category corresponding to data content transmitted between the mobile terminals within a preset time period.
Specifically, the preset condition may be that an error vector magnitude interval is set, specifically, the interval includes a first threshold and a second threshold, where the first threshold is smaller than the second threshold, and both the first threshold and the second threshold represent an EVM value, and in each of the channels, all channels of the EVM value within the error vector magnitude interval are found as candidate channels, and then one channel is determined from the candidate channels as the target channel.
As an embodiment, the data content of the preset category is marked as spam, and a channel with poor signal quality can be allocated to the mobile terminal, so that the mobile terminals sending or downloading spam on the network transmit data on the channel with poor signal, and the channel with better signal is matched to the mobile terminals with more reasonable data transmission requirements.
S305: and controlling the electronic device and the mobile terminal to reestablish connection through the target channel.
Since the router reallocates the channel to the mobile terminal, a reconnection message needs to be sent to the mobile terminal to inform the mobile terminal that the channel is changed and the connection needs to be reestablished.
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 2.
TABLE 2
Figure BDA0001693432620000081
Figure BDA0001693432620000091
As can be seen from table 1 above, 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: and when the router is connected with the mobile terminal, acquiring the data content transmitted between the router and the mobile terminal within a preset time period.
S402: and judging whether the data content belongs to a preset category or not.
S403: and acquiring the error vector magnitude of each channel supported by the router.
S404: and determining the channel with the maximum error vector amplitude as a target channel in all the channels.
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 signals supported by the router are channel a, channel B, channel C, and channel D, and 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
After obtaining the EVM value of each channel, sorting all the channels according to the EVM value, specifically, sorting the EVM values in descending order or in ascending order, in this embodiment, sorting the EVM values of each channel in ascending order, and then sorting table 3 to table 4.
TABLE 4
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, that is, the channel with the worst signal, that is, channel D, can be clearly determined according to the sequence, and then channel D is taken as the target channel.
In addition, when the number of the channels connected is excessive, the channels are not crowded excessively, 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 largest error vector magnitude is selected, whether the number of the channels connected is larger than the preset value or not is determined, and the channels with the current number of the channels connected smaller than or equal to the preset value are found and used as target channels.
S405: and controlling the router and the mobile terminal to reestablish connection through the 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: and when the router is connected with the mobile terminal, acquiring the data content transmitted between the router and the mobile terminal within a preset time period.
S502: and judging whether the data content belongs to a preset category or not.
S503: and acquiring the error vector magnitude of each channel supported by the router.
S504: and determining the channel with the error vector magnitude larger than a preset value in all the channels as an alternative channel.
Specifically, a preset value is set for the data content belonging to the preset category, and is used for setting the mobile terminal transmitting the content of the preset category on the channel with the error vector magnitude larger than the preset value, and the preset value can be obtained by statistics according to the value of the error vector magnitude of the channel with poor signal quality at present. Therefore, the channel with the error vector magnitude larger than the preset value is marked as an alternative channel.
S505: and determining the target channel from the alternative channels.
Determining a channel as a target channel from the candidate channels, 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 candidate channels may be:
acquiring the terminal connection number of each channel in the alternative channels; and determining the target channel according to the terminal connection number of each channel in the alternative channels.
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 among all current channels is a target channel, and it may be ensured that after the channel is the target channel, the mobile terminal is connected to the router through the channel, and is less likely to jam than when other channels are used, for example, if the determined candidate channels 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 the repaired 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 candidate channels, one channel is randomly selected from the channels with the same connection number as the 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 the target channel 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 because the data are not deleted because the data are used recently.
Of course, it may also be possible to select the channel with the largest number of connections as the target channel, because the channel with the largest number of connections has poorer signal quality, and the channel with better signal quality may be left for the mobile terminal that needs to download useful data more. In addition, considering that the access point and the mobile terminal on the channel cannot normally communicate when the number of connections is too many, the current number of connections of the channel is obtained when the channel with the largest error vector magnitude is determined, whether the current number of connections is greater than a preset value is determined, if so, the channel with the second largest error vector magnitude is selected, and whether the number of connections of the channel is greater than the preset value is determined until the channel with the current number of connections less than or equal to the preset value is found and is used as the target channel.
S506: and controlling the electronic device and the mobile terminal to reestablish 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 acquisition unit 601, a judgment unit 602, a second acquisition unit 603, a determination unit 604, and a connection unit 605.
A first obtaining unit 601, configured to obtain data content transmitted between the electronic device and a mobile terminal within a preset time period when the electronic device is connected to the mobile terminal.
A determining unit 602, configured to determine whether the data content belongs to a preset category.
A second obtaining unit 603, configured to obtain, if the error vector belongs to the first channel, an error vector magnitude of each channel supported by the electronic apparatus.
A determining unit 604, configured to determine, in each of the channels, a channel whose error vector magnitude satisfies a preset condition as a target channel.
A connection unit 605, configured to control the electronic apparatus and the mobile terminal to reestablish a connection 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 interconnect (Wi-Max), other protocols for mail, instant messaging and short messaging, and any other suitable Communication protocols, and may even include those not currently 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.
To sum up, according to the communication connection method, the communication connection device, the electronic device, and the computer-readable medium provided in the embodiments of the present application, when the electronic device is connected to the mobile terminal, data content transmitted between the electronic device and the mobile terminal within a preset time period is obtained, and when the data content satisfies a preset category, an error vector magnitude of each channel of the electronic device is obtained, and then one channel is selected to establish connection between the electronic device and the mobile terminal. Therefore, the connection of the channel between the electronic device and the mobile terminal is not fixed any more, but determined according to the data content between the electronic device and the mobile terminal, the channel corresponding to the data content is reasonably distributed to carry out communication, and the rationality of channel distribution is improved.
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 (9)

1. A communication connection method is applied to an electronic device, and the method comprises the following steps:
when the electronic device is connected with a mobile terminal, acquiring data content transmitted between the electronic device and the mobile terminal within a preset time period;
judging whether the data category corresponding to the data content belongs to the content marked as spam;
if the channel belongs to the channel, acquiring the error vector magnitude of each channel supported by the electronic device;
in each channel, determining a channel with an error vector magnitude meeting a preset condition as a target channel, wherein the error vector magnitude of the target channel is greater than a preset value or the error vector magnitude of the target channel is maximum in all the channels;
and controlling the electronic device and the mobile terminal to reestablish connection through the target channel.
2. The method according to claim 1, wherein the determining whether the data category corresponding to the data content belongs to the content marked as spam includes:
determining a data type corresponding to the transmitted data content according to a corresponding relation between preset data content and the data type;
and judging whether the data category is marked as the content of the junk information.
3. The method according to claim 1, wherein the determining, in each of the channels, a channel whose error vector magnitude satisfies a preset condition as a target channel comprises:
and determining the channel with the maximum error vector amplitude as a target channel in all the channels.
4. The method according to claim 1, wherein the determining, in each of the channels, a channel whose error vector magnitude satisfies a preset condition as a target channel comprises:
determining a channel with the error vector amplitude larger than a preset value in all the channels as an alternative channel;
and determining the target channel from the alternative channels.
5. The method of claim 4, wherein the determining the target channel from the candidate channels comprises:
acquiring the terminal connection number of each channel in the alternative channels;
and determining the target channel according to the terminal connection number of each channel in the alternative channels.
6. The method of claim 5, wherein the determining the target channel according to the number of terminal connections of each of the candidate channels comprises:
and acquiring the channel with the maximum terminal connection number as a target channel from the alternative channels.
7. A communication connection device applied to an electronic device, the device comprising:
the mobile terminal comprises a first acquisition unit, a second acquisition unit and a control unit, wherein the first acquisition unit is used for acquiring data contents transmitted between the electronic device and the mobile terminal within a preset time period when the electronic device is connected with the mobile terminal;
the judging unit is used for judging whether the data category corresponding to the data content belongs to the content marked as the junk information;
a second obtaining unit, configured to obtain an error vector magnitude of each channel supported by the electronic apparatus if the channel belongs to the first obtaining unit;
a determining unit, configured to determine, in each of the channels, a channel whose error vector magnitude meets a preset condition as a target channel, where the error vector magnitude of the target channel is greater than a preset value or the error vector magnitude of the target channel is the largest in all the channels;
and the connection unit is used for controlling the electronic device and the mobile terminal to reestablish connection through the target channel.
8. 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:
when the electronic device is connected with a mobile terminal, acquiring data content transmitted between the electronic device and the mobile terminal within a preset time period;
judging whether the data category corresponding to the data content belongs to the content marked as spam;
if the channel belongs to the channel, acquiring the error vector magnitude of each channel supported by the electronic device;
in each channel, determining a channel with an error vector magnitude meeting a preset condition as a target channel, wherein the error vector magnitude of the target channel is greater than a preset value or the error vector magnitude of the target channel is maximum in all the channels;
and controlling the electronic device and the mobile terminal to reestablish connection through the target channel.
9. A computer-readable medium having program code executable by a processor, wherein the program code causes the processor to perform the method of any of claims 1-6.
CN201810602465.2A 2018-06-12 2018-06-12 Communication connection method, device, electronic device and computer readable medium Active CN108696917B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810602465.2A CN108696917B (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
CN201810602465.2A CN108696917B (en) 2018-06-12 2018-06-12 Communication connection method, device, electronic device and computer readable medium

Publications (2)

Publication Number Publication Date
CN108696917A CN108696917A (en) 2018-10-23
CN108696917B true CN108696917B (en) 2021-01-12

Family

ID=63849758

Family Applications (1)

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

Country Status (1)

Country Link
CN (1) CN108696917B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020181534A1 (en) * 2019-03-13 2020-09-17 深圳市柔宇科技有限公司 Connection control method, router and computer-readable storage medium
CN113596088A (en) * 2021-06-25 2021-11-02 青岛海尔科技有限公司 Communication channel determination method and device, storage medium and electronic device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8249606B1 (en) * 2008-07-30 2012-08-21 Optimi Corporation Frequency planning optimization for mobile communications
CN103067985A (en) * 2011-10-21 2013-04-24 上海无线通信研究中心 Super-speed wireless local area network channel binding and allocation method based on channel quality
CN104602349A (en) * 2013-10-31 2015-05-06 索尼公司 Carrier allocation device and method and terminal

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8249606B1 (en) * 2008-07-30 2012-08-21 Optimi Corporation Frequency planning optimization for mobile communications
CN103067985A (en) * 2011-10-21 2013-04-24 上海无线通信研究中心 Super-speed wireless local area network channel binding and allocation method based on channel quality
CN104602349A (en) * 2013-10-31 2015-05-06 索尼公司 Carrier allocation device and method and terminal

Also Published As

Publication number Publication date
CN108696917A (en) 2018-10-23

Similar Documents

Publication Publication Date Title
CN108990105B (en) Wireless communication transmission method, device, mobile terminal and computer readable storage medium
US12063606B2 (en) SSB transmission indication method and apparatus, terminal, device, and medium
CN104518945B (en) A kind of transmission, the methods, devices and systems of reception social network information
CN104618222A (en) Method and device for matching expression image
CN109451798A (en) The instruction of hybrid automatic repeat-request feedback, feedback method and device and base station
CN108668328B (en) Network switching method and mobile terminal
CN107317689B (en) Message processing method, electronic equipment and computer storage medium
CN106413032B (en) Hotspot establishing method and terminal equipment
US20220061096A1 (en) Wifi Channel Interference Resolution Method and Related Product
CN108811045B (en) WiFi channel scanning method and device, mobile terminal and storage medium
CN108345422A (en) Application control method, apparatus, mobile terminal and computer-readable medium
CN108471630B (en) Transmission rate adjusting method, device, mobile terminal and computer readable medium
CN108696917B (en) Communication connection method, device, electronic device and computer readable medium
CN108471622B (en) WiFi connection adjustment method and device, mobile terminal and storage medium
CN109151741B (en) Multimedia message receiving method and terminal
CN110602738B (en) Network connection method and device and electronic device
CN108848557B (en) Output power adjusting method, device, mobile terminal and computer readable medium
CN111615219A (en) PC5 link establishing method, equipment and system
CN106792434B (en) Hotspot establishing method and terminal equipment
CN108966266B (en) Communication connection method, device, electronic device and computer readable medium
CN110602766A (en) Personal hotspot identification method and method for determining association relationship between terminals
CN113162738A (en) Uplink transmission method, device, equipment and storage medium
CN106648902B (en) Application data processing method and device
CN110582079B (en) Bluetooth connection setting method and device, computer readable storage medium and terminal
CN110087290B (en) Power consumption management and control method, terminal 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