CN108834223B - Method for switching WiFi frequency band and electronic equipment - Google Patents

Method for switching WiFi frequency band and electronic equipment Download PDF

Info

Publication number
CN108834223B
CN108834223B CN201810654522.1A CN201810654522A CN108834223B CN 108834223 B CN108834223 B CN 108834223B CN 201810654522 A CN201810654522 A CN 201810654522A CN 108834223 B CN108834223 B CN 108834223B
Authority
CN
China
Prior art keywords
data packet
service
service type
electronic device
threshold
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
CN201810654522.1A
Other languages
Chinese (zh)
Other versions
CN108834223A (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.)
China United Network Communications Group Co Ltd
Original Assignee
China United Network Communications Group Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China United Network Communications Group Co Ltd filed Critical China United Network Communications Group Co Ltd
Priority to CN201810654522.1A priority Critical patent/CN108834223B/en
Publication of CN108834223A publication Critical patent/CN108834223A/en
Application granted granted Critical
Publication of CN108834223B publication Critical patent/CN108834223B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/0005Control or signalling for completing the hand-off
    • H04W36/0011Control or signalling for completing the hand-off for data sessions of end-to-end connection
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/0005Control or signalling for completing the hand-off
    • H04W36/0083Determination of parameters used for hand-off, e.g. generation or modification of neighbour cell lists

Abstract

The application discloses a method for switching a WiFi frequency band and electronic equipment, relates to the technical field of communication, and can solve the problem that the frequency band switching in the prior art cannot meet the service requirement. The method provided by the application comprises the following steps: the first electronic equipment and the second electronic equipment are connected through a first frequency band of WIFI; the method comprises the steps that first electronic equipment determines the service type of a data packet according to the data packet transmitted between the first electronic equipment and second electronic equipment; the first electronic equipment determines a threshold corresponding to the service type of the data packet according to the service type of the data packet; the first electronic equipment determines whether data transmission between the first electronic equipment and the second electronic equipment meets a preset condition or not according to the current data transmission parameters and a threshold corresponding to the service type of the data packet; and if the preset condition is met, the first electronic equipment and the second electronic equipment are connected through a second frequency band of WIFI, wherein the first frequency band is different from the second frequency band.

Description

Method for switching WiFi frequency band and electronic equipment
Technical Field
The present application relates to the field of communications technologies, and in particular, to a method for switching a WiFi frequency band and an electronic device.
Background
With the development of Wireless Fidelity (WiFi) technology, most home WiFi devices, such as home gateways, routers, repeaters, etc., can support dual-band mode, i.e., 2.4G and 5G WiFi dual-band capability.
Currently, the user may Set the Service Set Identifiers (SSIDs) of 2.4G and 5G of the WiFi devices to be the same, and turn on the roaming switch. Therefore, the WiFi equipment can monitor the signal intensity between the terminals connected with the WiFi equipment in real time, and when the signal intensity reaches the threshold value set by the WiFi equipment, the frequency band is forcibly switched for the terminals.
However, the need for band switching by monitoring signal strength alone has not been met. For example: when a user watches a 4K video by using a mobile phone, the signal strength may not reach the switching threshold, and then the WiFi device does not switch the mobile phone to the 5G frequency band, and still uses the 2.4G frequency band. However, the data transmission rate of the 2.4G frequency band is low, and a user is likely to have a pause phenomenon when watching a 4K video, so that the user experience is poor.
Disclosure of Invention
The embodiment of the application provides a method for switching a WiFi frequency band and electronic equipment, which can solve the problem that the frequency band switching in the prior art cannot meet the service requirement.
In order to achieve the above purpose, the embodiment of the present application adopts the following technical solutions:
in a first aspect, an embodiment of the present application provides a method for switching a WiFi frequency band, where the method specifically includes:
the first electronic equipment and the second electronic equipment are connected through a first frequency band of WIFI; the first electronic equipment determines the service type of a data packet according to the data packet transmitted between the first electronic equipment and the second electronic equipment; the first electronic equipment determines a threshold corresponding to the service type of the data packet according to the service type of the data packet; the first electronic equipment determines whether data transmission between the first electronic equipment and the second electronic equipment meets a preset condition or not according to the current data transmission parameters and a threshold corresponding to the service type of the data packet; and if the preset condition is met, the first electronic equipment and the second electronic equipment are connected through a second frequency band of WIFI, wherein the first frequency band is different from the second frequency band.
In a second aspect, an embodiment of the present application provides an electronic device, including: the communication unit is used for establishing connection with second electronic equipment through a first frequency band of WIFI; the processing unit is used for determining the service type of the data packet according to the data packet transmitted between the first electronic equipment and the second electronic equipment; the processing unit is further configured to determine a threshold corresponding to the service type of the data packet according to the service type of the data packet; the processing unit is further configured to determine whether data transmission between the first electronic device and the second electronic device meets a preset condition according to a current data transmission parameter and a threshold corresponding to a service type of the data packet; the communication unit is further configured to establish a connection between the first electronic device and the second electronic device through a second frequency band of the WIFI if the preset condition is met, where the first frequency band is different from the second frequency band.
In a third aspect, the present application provides an electronic device comprising: a processor, a transceiver, and a memory. Wherein the memory is used to store one or more programs. The one or more programs include computer executable instructions which, when executed by the electronic device, cause the electronic device to perform the method of any of the first aspect and its various alternative implementations.
In a fourth aspect, the present application provides a computer-readable storage medium having instructions stored thereon, which, when executed by a computer, perform the method of any one of the first aspect and its various alternative implementations.
According to the method for switching the WiFi frequency band, the service type of the data packet can be determined according to the data packet transmitted between the electronic devices, and then the threshold corresponding to the service type is determined. And then determining whether the current data transmission meets a preset condition or not according to the current data transmission parameter of the data packet and the threshold. And if so, switching to the WiFi frequency band. Compared with the prior art, the electronic device only switches the WiFi frequency band according to the signal intensity, the current service requirement may not be met, and the user experience is poor. The method provided by the application can determine different threshold values according to the service types of the transmission data packets, and further determine whether to switch the frequency band according to the current data transmission condition and the threshold value condition. Therefore, the electronic equipment can adopt different service switching conditions for different service types, and the user experience is improved.
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 embodiments will be briefly described 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 without creative efforts.
Fig. 1 is an architecture diagram of a communication system according to an embodiment of the present application;
fig. 2 is a schematic flowchart of a method for switching a WiFi frequency band according to an embodiment of the present disclosure;
fig. 3 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure;
fig. 4 is a schematic structural diagram of another electronic device according to an embodiment of the present application.
Detailed Description
The method, device and system for processing UDP traffic congestion in a mobile network according to the embodiments of the present application are described in detail below with reference to the accompanying drawings.
The term "and/or" herein is merely an association describing an associated object, meaning that three relationships may exist, e.g., a and/or B, may mean: a exists alone, A and B exist simultaneously, and B exists alone.
The terms "first" and "second" and the like in the description and drawings of the present application are used for distinguishing different objects or for distinguishing different processes for the same object, and are not used for describing a specific order of the objects.
Furthermore, the terms "including" and "having," and any variations thereof, as referred to in the description of the present application, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements but may alternatively include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
It should be noted that in the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described herein as "exemplary" or "e.g.," is not necessarily to be construed as preferred or advantageous over other embodiments or designs. Rather, use of the word "exemplary" or "such as" is intended to present concepts related in a concrete fashion.
In the description of the present application, the meaning of "a plurality" means two or more unless otherwise specified.
The method for switching the WiFi frequency band provided by the embodiment of the application can be applied to a communication system comprising first electronic equipment and second electronic equipment. As shown in fig. 1, the communication system includes a first electronic device 100 and a second electronic device 200. The first electronic device 100 is a device providing WiFi signals, and may be, for example, a home gateway, a router, a repeater, a panel AP, a modem, an enterprise gateway, a mobile terminal, or the like. The second electronic device 200 is a device connected to the first electronic device 100 through WiFi, and may be a mobile phone, a computer, a Personal Digital Assistant (PDA), a laptop computer, a Set Top Box (STB), and/or other devices. The embodiment of the present application does not limit the specific forms of the first electronic device and the second electronic device.
In order to facilitate understanding of the technical solutions provided in the embodiments of the present application, a WiFi frequency band is briefly described first.
The signal frequency of the 2.4G frequency band is low, the attenuation is small when the signal propagates in the air or an obstacle, and the propagation distance is longer. However, the bandwidth of 2.4G signal is narrow, and many devices are currently using 2.4G frequency band, so the wireless environment is more crowded and the interference is larger.
The signal bandwidth of the 5G frequency band is wide, the wireless environment is clean, the interference is less, the network speed is stable, and the 5G can support higher wireless speed. However, the 5G signal has a high frequency, attenuates more when propagating through air or obstacles, and covers a relatively small distance compared to the 2.4G signal.
As can be seen from the above, 2.4G and 5G have advantages and disadvantages, and therefore, it is necessary to adopt an optimal frequency band for data transmission according to different network conditions. Then, the electronic device needs to switch different frequency bands according to different situations.
As shown in fig. 2, a schematic flow chart of a method for switching a WiFi frequency band is provided in an embodiment of the present application, where the method specifically includes:
s101, the first electronic device and the second electronic device establish connection through a first frequency band of WiFi.
In some examples of the application, the first electronic device may be a device providing a WiFi signal, the first electronic device having WiFi multi-band capability, for example: the first electronic device can provide dual-band capability for 2.4G band and 5G band WiFi. The second electronic device may be a device connected with the first electronic device through WiFi.
For example: the first electronic device is a WiFi device, and the second electronic device is a terminal. And the terminal carries out internet surfing through the WiFi signal connected with the WiFi equipment.
In other examples of the present application, the second electronic device is a device providing a WiFi signal, the second electronic device having WiFi multi-band capability, such as: the second electronic device can provide dual band capability for 2.4G band and 5G band WiFi. The first electronic device is connected with the first electronic device through WiFi.
For example: the first electronic device is a terminal, and the second electronic device is a WiFi device. And the terminal carries out internet surfing through the WiFi signal connected with the WiFi equipment.
S102, the first electronic device determines the service type of a target data packet according to the data packet transmitted between the first electronic device and the second electronic device, namely the target data packet.
Specifically, the type of the service currently used by the user is determined by analyzing the data packet transmitted between the first electronic device and the second electronic device, so as to determine whether the current data transmission of the user meets the service requirement.
For example, the determination may be made according to a Transmission Control Protocol (TCP)/User Datagram Protocol (UDP) target port number of the packet, a data communication Protocol, a packet size, and the like.
Generally speaking, the TCP/UDP target port number ranges from 1 to 65535, wherein 1 to 1023 are generally defined as common port types. These common port types usually correspond to relatively fixed traffic types, so the traffic type of the destination packet can be determined according to the TCP/UDP destination port number in the packet. Furthermore, the services of different service types have common communication protocols, so the service type corresponding to the target data packet can be determined by combining the communication protocol in the target data packet.
Then, the first electronic device may pre-store a feature table corresponding to each service type, for example: a communication protocol corresponding to each service type, a TCP/UDP target port number corresponding to each service type, the size of a data packet corresponding to each service type and the like. When the service type of the target data packet is judged, information such as a communication protocol, a TCP/UDP target port number, the size of the data packet and the like in the target data packet is read and compared with a pre-stored characteristic table corresponding to each service type. When each characteristic of the target data packet conforms to each characteristic in the pre-stored characteristic table, the target data packet can be determined to be the corresponding service type.
For example, table one is an example of a feature table corresponding to each service type, as follows:
watch 1
Figure BDA0001705154490000061
It should be noted that the port numbers used by most game services are clear, and the above table is only an example to give a description of several port numbers. The port numbers corresponding to other game services are not enumerated one by one.
In addition, the service type corresponding to the target data packet can be determined according to the size of the data packet. For example: typically, the packet length of game traffic is small, with the packet size being in a first interval (e.g., between 40-159 bytes), whereas the packet length of most traffic on the network is in a second interval (e.g., above 1400 bytes). Therefore, if it is detected that a certain proportion of the packets of a certain data stream are all in the first interval, and the interval time is less than 1 second, for example, it can be determined as a game service, and the TCP/UDP destination port numbers of these packets can be recorded in the feature table and labeled as a game service.
S103, the first electronic device determines a threshold corresponding to the service type according to the service type of the target data packet.
Considering that services of different service types have different requirements for data transmission, for example: in order to avoid the user from being jammed when watching high-definition, 4K, and 8K videos and affecting the user experience, the transmission rate of such video services is generally required to be high. And the game service has higher requirements on transmission rate and time delay. Therefore, in the embodiment of the present application, a data transmission requirement corresponding to the service type needs to be further determined according to the service type corresponding to the target data packet.
The threshold corresponding to the service type is used for reflecting the lowest requirement of data transmission corresponding to each service type. Wherein the threshold comprises a signal strength threshold, a data transmission rate threshold, a time delay threshold, etc. The number of the threshold values corresponding to each service type may be different, and the numerical values of the threshold values corresponding to each service type may also be different. For example, the threshold corresponding to each service type may refer to table two, as follows:
watch two
Type of service Internet access service Video service Game business Voice service
Signal strength
Rate of speed
Time delay
From the above, it can be seen that: for the internet access service, the problem of signal strength is generally considered, so the threshold corresponding to the internet access service is the signal strength threshold. For video traffic, signal strength and data transmission rate are generally considered, so the corresponding thresholds for video traffic include a signal strength threshold and a transmission rate threshold. For the game service, signal strength, transmission rate and delay are generally considered, so the thresholds corresponding to the game service include a signal strength threshold, a transmission rate threshold and a delay threshold. For voice services, transmission rate and delay problems are generally considered, so the corresponding threshold values of the voice services include a transmission rate threshold value and a delay threshold value.
The video service may also be specifically divided into different video modes, for example: for video services in different modes, the standard definition mode, the high definition mode, the 4K mode, the 8K mode, and the like may correspond to different thresholds, as shown in table three.
Watch III
Figure BDA0001705154490000081
In order to better understand the meaning of the threshold in the embodiment of the present application, as shown in table four, examples of different thresholds corresponding to different traffic types are given below. It should be noted that the numerical values herein are merely examples, and the embodiments of the present application do not limit the numerical values of the thresholds.
Watch four
Figure BDA0001705154490000082
And S104, the first electronic equipment determines to establish connection with the second electronic equipment through a second frequency band of WIFI according to the current data transmission parameters and the threshold corresponding to the service type of the data packet.
Wherein the first frequency band and the second frequency band are different.
The current data transmission parameters include signal strength, data transmission rate, time delay and the like. And if the current data transmission parameters meet the preset conditions, the first electronic equipment determines to establish connection with the second electronic equipment through a second frequency band of WiFi.
For example, if the service type of the target data packet is an internet service, the preset condition is that the current signal strength is less than or equal to a signal strength threshold corresponding to the internet service. If the service type of the target data packet is a video service, the preset condition is that the current signal intensity is less than or equal to a signal intensity threshold corresponding to the video service, or the current transmission rate is less than or equal to a transmission rate threshold corresponding to the video service. If the service type of the target data packet is the game service, the preset condition is that the current signal intensity is smaller than or equal to a signal intensity threshold corresponding to the game service, or the current transmission rate is smaller than or equal to a transmission rate threshold corresponding to the game service, or the current time delay is larger than or equal to a time delay threshold corresponding to the game service. If the service type of the target data packet is a voice service, the preset condition is that the current transmission rate is less than or equal to a transmission rate threshold corresponding to the voice service, or the current time delay is greater than or equal to a time delay threshold corresponding to the voice service.
For example: the user is using the first electronic device or the second electronic device to surf the internet, and the first electronic device and the second electronic device are connected through the 2.4G frequency band. When the first electronic device detects that the signal intensity of the 2.4 frequency band is less than or equal to the signal intensity threshold of 2.4G, it indicates that the signal intensity of 2.4G is very weak at this time, which may affect the internet experience of the user. Therefore, the first electronic device can be determined to be connected with the second electronic device through the 5G frequency band, so that the internet surfing experience of the user is improved.
Another example is: the user is watching a video using the first electronic device or the second electronic device, and the first electronic device and the second electronic device are connected through a 2.4G band. When the first electronic device detects that the signal intensity of the 2.4 frequency band is greater than the signal intensity threshold of 2.4G, but detects that the data transmission rate between the two devices is less than or equal to the threshold of the transmission rate corresponding to the video service, it indicates that the data transmission of the service is slow at this time, and may affect the user to watch the video. Therefore, the first electronic device can determine to connect with the second electronic device through the 5G frequency band, so as to meet the requirement of the user for watching the video service.
For another example: the user is playing a game using either the first electronic device or the second electronic device, and the first electronic device and the second electronic device are connected via the 2.4G band. When the first electronic device detects that the signal intensity of the 2.4 frequency band is greater than the signal intensity threshold of 2.4G, the data transmission rate between the two devices is also greater than the transmission rate threshold corresponding to the game service, but the time delay between the two devices is greater than or equal to the time delay threshold corresponding to the game service, which indicates that the data time delay of the service is large at this time, and the user may be influenced to play the game. Therefore, the first electronic device can determine to be connected with the second electronic device through the 5G frequency band so as to meet the game playing requirement of the user.
And then, after the first electronic device determines that the first electronic device is connected with the second electronic device through the second frequency band, the first electronic device is disconnected with the second electronic device in the first frequency band. Then, the first electronic device scans the channel of the second frequency band. When the second electronic device is scanned, authentication, association, key interaction and the like are carried out on the second electronic device, then connection is established between the second electronic device and the second electronic device in a second frequency band, and data transmission is carried out through the second frequency band.
In the embodiment of the present application, the division of the first electronic device and the second electronic device in the above embodiments may be arbitrary. That is, the first electronic device may determine the service type of the data packet, determine a corresponding threshold according to the service type, and then determine whether to switch the frequency band. Or the second electronic device determines the service type of the data packet, determines a corresponding threshold value according to the service type, and then determines whether to switch the frequency band. The embodiment of the present application does not limit this.
It should be further noted that the switching method provided in the embodiment of the present application is not only applicable to switching between 2.4G and 5G of the same electronic device, but also applicable to switching between different devices. For example, there are 2 WiFi devices in a home, and a terminal is initially connected to 2.4G of a first WiFi device, and when receiving a threshold switching operation of the first WiFi device or the terminal itself, the terminal may be connected to 5G of the first WiFi device when reconnecting, and may also be connected to 2.4G or 5G of a second WiFi device. The switching principle may refer to the above description, and will not be repeated again.
According to the method for switching the WiFi frequency band, the service type of the data packet can be determined according to the data packet transmitted between the electronic devices, and then the threshold corresponding to the service type is determined. And then determining whether the current data transmission meets a preset condition or not according to the current data transmission parameter of the data packet and the threshold. And if so, switching to the WiFi frequency band. Compared with the prior art, the electronic device only switches the WiFi frequency band according to the signal intensity, the current service requirement may not be met, and the user experience is poor. The method provided by the application can determine different threshold values according to the service types of the transmission data packets, and further determine whether to switch the frequency band according to the current data transmission condition and the threshold value condition. Therefore, the electronic equipment can adopt different service switching conditions for different service types, and the user experience is improved.
In the embodiment of the present application, the first electronic device may be divided into the functional modules or the functional units according to the above method examples, for example, each functional module or functional unit may be divided corresponding to each function, or two or more functions may be integrated into one processing module. The integrated module may be implemented in a form of hardware, or may be implemented in a form of a software functional module or a functional unit. The division of the modules or units in the embodiment of the present application is schematic, and is only a logic function division, and there may be another division manner in actual implementation.
Fig. 3 shows a schematic diagram of a possible structure of an electronic device (a first electronic device or a second electronic device) involved in the above embodiments. The electronic device 20 comprises a communication unit 21 and a processing unit 22.
The communication unit 21 is configured to establish a connection with a second electronic device through a first frequency band of WIFI.
The processing unit 22 is configured to determine a service type of a data packet according to the data packet transmitted between the first electronic device and the second electronic device;
the processing unit 22 is further configured to determine a threshold corresponding to the service type of the data packet according to the service type of the data packet;
the processing unit 22 is further configured to determine whether data transmission between the first electronic device and the second electronic device meets a preset condition according to a current data transmission parameter and a threshold corresponding to a service type of the data packet;
the communication unit 21 is further configured to establish a connection between the first electronic device and the second electronic device through a second frequency band of WIFI if the preset condition is met, where the first frequency band is different from the second frequency band.
Optionally, the processing unit 22 is further configured to determine, according to the service type of the data packet, that the threshold corresponding to the service type of the data packet is specifically: if the service type of the data packet is an internet access service, the threshold corresponding to the service type of the data packet comprises a signal intensity threshold; if the service type of the data packet is a video service, the threshold corresponding to the service type of the data packet comprises a signal intensity threshold and a transmission rate threshold; if the service type of the data packet is a game service, the threshold corresponding to the service type of the data packet comprises a signal intensity threshold, a transmission rate threshold and a time delay threshold; if the service type of the data packet is a voice service, the threshold corresponding to the service type of the data packet includes a transmission rate threshold and a delay threshold.
Optionally, the data transmission parameters include: signal strength, transmission rate and time delay.
Optionally, the preset conditions include:
if the service type of the data packet is an internet service, presetting conditions that the current signal intensity is less than or equal to a signal intensity threshold value corresponding to the internet service; if the service type of the data packet is a video service, presetting a condition that the current signal intensity is less than or equal to a signal intensity threshold corresponding to the video service, or the current transmission rate is less than or equal to a transmission rate threshold corresponding to the video service; if the service type of the data packet is a game service, the preset condition is that the current signal intensity is smaller than or equal to a signal intensity threshold corresponding to the game service, or the current transmission rate is smaller than or equal to a transmission rate threshold corresponding to the game service, or the current time delay is larger than or equal to a time delay threshold corresponding to the game service; if the service type of the data packet is a voice service, the preset condition is that the current transmission rate is less than or equal to a transmission rate threshold corresponding to the voice service, or the current time delay is greater than or equal to a time delay threshold corresponding to the voice service.
Optionally, the processing unit 22 is configured to determine, according to a data packet transmitted between the first electronic device and the second electronic device, a service type of the data packet specifically as follows: and determining the service type of the data packet according to the destination port number, the data communication protocol and the size of the data packet transmitted between the first electronic device and the second electronic device.
According to the first electronic device for switching the WiFi frequency band, the service type of the data packet can be determined according to the data packet transmitted between the electronic devices, and then the threshold corresponding to the service type is determined. And then determining whether the current data transmission meets a preset condition or not according to the current data transmission parameter of the data packet and the threshold. And if so, switching to the WiFi frequency band. Compared with the prior art, the electronic device only switches the WiFi frequency band according to the signal intensity, the current service requirement may not be met, and the user experience is poor. The method provided by the application can determine different threshold values according to the service types of the transmission data packets, and further determine whether to switch the frequency band according to the current data transmission condition and the threshold value condition. Therefore, the electronic equipment can adopt different service switching conditions for different service types, and the user experience is improved.
Fig. 4 shows a schematic diagram of another possible structure of the electronic device (first electronic device or second electronic device) involved in the above embodiments. The electronic device 300 includes: a processing module 301 and a communication module 302. The processing module 301 is used to control and manage the actions of the first electronic device, e.g., to perform the steps performed by the processing unit 22 described above and/or other processes for performing the techniques described herein. The communication module 302 is used for supporting communication between the first electronic device and the second electronic device, and other network entities, for example, performing the steps performed by the communication unit 21. The first electronic device may further comprise a memory module 303 and a bus 304, the memory module 303 being adapted to store program codes and data of the first electronic device.
The processing module 301 may be, for example, a processor or a controller in the first electronic device, which may implement or execute various exemplary logical blocks, modules, and circuits described in connection with the disclosure of the present application. The processor or controller may be a central processing unit, general purpose processor, digital signal processor, application specific integrated circuit, field programmable gate array or other programmable logic device, transistor logic device, hardware component, or any combination thereof. Which may implement or perform the various illustrative logical blocks, modules, and circuits described in connection with the disclosure. The processor may also be a combination of computing functions, e.g., comprising one or more microprocessors, DSPs, and microprocessors, among others.
The communication module 302 may be a transceiver, a transceiving circuit or a communication interface, etc. in the first electronic device.
The storage module 303 may be a memory or the like in the first electronic device, which may include a volatile memory, such as a random access memory; the memory may also include non-volatile memory, such as read-only memory, flash memory, a hard disk, or a solid state disk; the memory may also comprise a combination of memories of the kind described above.
The bus 304 may be an Extended Industry Standard Architecture (EISA) bus or the like. The bus 304 may be divided into an address bus, a data bus, a control bus, and the like. For ease of illustration, only one thick line is shown in FIG. 4, but this does not indicate only one bus or one type of bus.
Through the above description of the embodiments, it is clear to those skilled in the art that, for convenience and simplicity of description, the foregoing division of the functional modules is merely used as an example, and in practical applications, the above function distribution may be completed by different functional modules according to needs, that is, the internal structure of the device may be divided into different functional modules to complete all or part of the above described functions. For the specific working processes of the system, the apparatus and the unit described above, reference may be made to the corresponding processes in the foregoing method embodiments, and details are not described here again.
The embodiment of the present application further provides a computer-readable storage medium, where instructions are stored in the computer-readable storage medium, and when the computer executes the instructions, the computer may perform each step performed by the network device in the method flow shown in the foregoing method embodiment.
The computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a Read-Only Memory (ROM), an Erasable Programmable Read-Only Memory (EPROM), a register, a hard disk, an optical fiber, a portable Compact Disc Read-Only Memory (CD-ROM), an optical storage device, a magnetic storage device, any suitable combination of the above, or any other form of computer readable storage medium known in the art. An exemplary storage medium is coupled to the processor such the processor can read information from, and write information to, the storage medium. Of course, the storage medium may also be integral to the processor. The processor and the storage medium may reside in an Application Specific Integrated Circuit (ASIC). In embodiments of the present application, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
The above description is only an embodiment of the present application, but the scope of the present application is not limited thereto, and any changes or substitutions within the technical scope of the present disclosure should be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (4)

1. A method for switching a wireless fidelity (WIFI) frequency band is applied to a communication system comprising a first electronic device and a second electronic device, and comprises the following steps:
the first electronic equipment and the second electronic equipment are connected through a first frequency band of WIFI;
the first electronic equipment determines the service type of a data packet according to the data packet transmitted between the first electronic equipment and the second electronic equipment;
the determining, by the first electronic device, the threshold corresponding to the service type of the data packet according to the service type of the data packet includes:
if the service type of the data packet is an internet access service, the threshold corresponding to the service type of the data packet comprises a signal intensity threshold;
if the service type of the data packet is a video service, the threshold corresponding to the service type of the data packet comprises a signal intensity threshold and a transmission rate threshold;
if the service type of the data packet is a game service, the threshold corresponding to the service type of the data packet comprises a signal intensity threshold, a transmission rate threshold and a time delay threshold;
if the service type of the data packet is a voice service, the threshold corresponding to the service type of the data packet comprises a transmission rate threshold and a time delay threshold;
the first electronic equipment determines whether data transmission between the first electronic equipment and the second electronic equipment meets a preset condition or not according to the current data transmission parameters and a threshold corresponding to the service type of the data packet;
if the preset condition is met, the first electronic device and the second electronic device are connected through a second frequency band of WIFI, wherein the first frequency band is different from the second frequency band;
the data transmission parameters include: signal strength, transmission rate and time delay;
the preset conditions include:
if the service type of the data packet is an internet service, presetting conditions that the current signal intensity is less than or equal to a signal intensity threshold value corresponding to the internet service;
if the service type of the data packet is a video service, presetting a condition that the current signal intensity is less than or equal to a signal intensity threshold corresponding to the video service, or the current transmission rate is less than or equal to a transmission rate threshold corresponding to the video service;
if the service type of the data packet is a game service, the preset condition is that the current signal intensity is smaller than or equal to a signal intensity threshold corresponding to the game service, or the current transmission rate is smaller than or equal to a transmission rate threshold corresponding to the game service, or the current time delay is larger than or equal to a time delay threshold corresponding to the game service;
if the service type of the data packet is a voice service, the preset condition is that the current transmission rate is less than or equal to a transmission rate threshold corresponding to the voice service, or the current time delay is greater than or equal to a time delay threshold corresponding to the voice service.
2. The method of claim 1, wherein the first electronic device determining the service type of the data packet according to the data packet transmitted between the first electronic device and the second electronic device comprises:
and the first electronic equipment determines the service type of the data packet according to the destination port number, the data communication protocol and the data packet size of the data packet transmitted between the first electronic equipment and the second electronic equipment.
3. An electronic device, comprising:
the communication unit is used for establishing connection with second electronic equipment through a first frequency band of WIFI;
the processing unit is used for determining the service type of a data packet according to the data packet transmitted between the first electronic equipment and the second electronic equipment;
the processing unit is further configured to determine a threshold corresponding to the service type of the data packet according to the service type of the data packet, and specifically, the threshold is:
if the service type of the data packet is an internet access service, the threshold corresponding to the service type of the data packet comprises a signal intensity threshold;
if the service type of the data packet is a video service, the threshold corresponding to the service type of the data packet comprises a signal intensity threshold and a transmission rate threshold;
if the service type of the data packet is a game service, the threshold corresponding to the service type of the data packet comprises a signal intensity threshold, a transmission rate threshold and a time delay threshold;
if the service type of the data packet is a voice service, the threshold corresponding to the service type of the data packet comprises a transmission rate threshold and a time delay threshold;
the processing unit is further configured to determine whether data transmission between the first electronic device and the second electronic device meets a preset condition according to a current data transmission parameter and a threshold corresponding to a service type of the data packet;
the communication unit is further configured to establish a connection between the first electronic device and the second electronic device through a second frequency band of WIFI if the preset condition is met, where the first frequency band is different from the second frequency band;
the data transmission parameters include: signal strength, transmission rate and time delay;
the preset conditions include:
if the service type of the data packet is an internet service, presetting conditions that the current signal intensity is less than or equal to a signal intensity threshold value corresponding to the internet service;
if the service type of the data packet is a video service, presetting a condition that the current signal intensity is less than or equal to a signal intensity threshold corresponding to the video service, or the current transmission rate is less than or equal to a transmission rate threshold corresponding to the video service;
if the service type of the data packet is a game service, the preset condition is that the current signal intensity is smaller than or equal to a signal intensity threshold corresponding to the game service, or the current transmission rate is smaller than or equal to a transmission rate threshold corresponding to the game service, or the current time delay is larger than or equal to a time delay threshold corresponding to the game service;
if the service type of the data packet is a voice service, the preset condition is that the current transmission rate is less than or equal to a transmission rate threshold corresponding to the voice service, or the current time delay is greater than or equal to a time delay threshold corresponding to the voice service.
4. The electronic device according to claim 3, wherein the processing unit is configured to determine, according to a data packet transmitted between the first electronic device and the second electronic device, a service type of the data packet specifically as follows:
and determining the service type of the data packet according to the destination port number, the data communication protocol and the size of the data packet transmitted between the first electronic device and the second electronic device.
CN201810654522.1A 2018-06-22 2018-06-22 Method for switching WiFi frequency band and electronic equipment Active CN108834223B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810654522.1A CN108834223B (en) 2018-06-22 2018-06-22 Method for switching WiFi frequency band and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810654522.1A CN108834223B (en) 2018-06-22 2018-06-22 Method for switching WiFi frequency band and electronic equipment

Publications (2)

Publication Number Publication Date
CN108834223A CN108834223A (en) 2018-11-16
CN108834223B true CN108834223B (en) 2020-12-08

Family

ID=64137983

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810654522.1A Active CN108834223B (en) 2018-06-22 2018-06-22 Method for switching WiFi frequency band and electronic equipment

Country Status (1)

Country Link
CN (1) CN108834223B (en)

Families Citing this family (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109890087B (en) * 2018-12-29 2022-08-09 华为终端有限公司 Method and device for processing data packet
CN109982399A (en) * 2019-03-04 2019-07-05 成都小步创想慧联科技有限公司 Improve the method and router of router 5G frequency range utilization rate
CN110198555B (en) * 2019-05-21 2022-09-02 中国联合网络通信集团有限公司 Network slice configuration method and device
CN110392393B (en) * 2019-06-19 2022-12-06 中国移动通信集团湖北有限公司 Service layered processing method and device for VoLTE voice service and data service
CN112351461B (en) * 2019-08-08 2023-08-22 Oppo广东移动通信有限公司 WiFi network switching method, wiFi network switching device, terminal and storage medium
CN112449401B (en) * 2019-08-31 2022-03-08 Oppo广东移动通信有限公司 WiFi roaming method and device, mobile terminal and storage medium
CN112821947B (en) * 2019-11-18 2022-05-20 Oppo广东移动通信有限公司 Light fidelity LiFi communication control method, device, equipment and medium of electronic equipment
CN112953749A (en) * 2019-12-11 2021-06-11 华为技术有限公司 Transmission rate configuration method and device
CN113938990B (en) * 2020-06-29 2023-11-17 华为技术有限公司 Equipment management method and communication device
CN114222333B (en) * 2020-07-28 2022-11-25 华为技术有限公司 Wireless data transmission method, equipment, storage medium and chip system
CN111787599B (en) * 2020-08-06 2022-09-16 Oppo(重庆)智能科技有限公司 WIFI frequency band selection method and device, electronic equipment and storage medium
CN114390337B (en) * 2020-10-21 2023-06-02 华为技术有限公司 Screen projection method and system and electronic equipment
CN112272398B (en) * 2020-11-13 2024-01-19 Oppo广东移动通信有限公司 Data transmission method and device, electronic equipment and storage medium
CN114375021A (en) * 2021-12-17 2022-04-19 北京小米移动软件有限公司 Relay communication method, device, relay equipment, terminal and storage medium
CN114828129B (en) * 2022-06-20 2022-09-30 统信软件技术有限公司 Roaming method and device of wireless local area network, mobile terminal and readable storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102497661A (en) * 2011-12-16 2012-06-13 清华大学 Heterogeneous network selection method based on transmitting power of terminal
CN102769922A (en) * 2011-05-05 2012-11-07 鼎桥通信技术有限公司 Service scheduling method in wireless communication system
CN104469958A (en) * 2014-12-31 2015-03-25 华为技术有限公司 Dual-frequency communication method and WLAN device
CN106358223A (en) * 2016-08-31 2017-01-25 广东欧珀移动通信有限公司 Communication method and device as well as mobile terminal

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9210714B2 (en) * 2012-09-06 2015-12-08 Dell Products, Lp Method and apparatus for predicting mobile device wireless link quality of service requirements along a predicted path
US20160050683A1 (en) * 2013-03-15 2016-02-18 Hewlett-Packard Development Company, L.P. Multiband operation of a single wi-fi radio
CN107979496B (en) * 2017-12-07 2021-01-05 锐捷网络股份有限公司 Method and server for acquiring user experience quality

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102769922A (en) * 2011-05-05 2012-11-07 鼎桥通信技术有限公司 Service scheduling method in wireless communication system
CN102497661A (en) * 2011-12-16 2012-06-13 清华大学 Heterogeneous network selection method based on transmitting power of terminal
CN104469958A (en) * 2014-12-31 2015-03-25 华为技术有限公司 Dual-frequency communication method and WLAN device
CN106358223A (en) * 2016-08-31 2017-01-25 广东欧珀移动通信有限公司 Communication method and device as well as mobile terminal

Also Published As

Publication number Publication date
CN108834223A (en) 2018-11-16

Similar Documents

Publication Publication Date Title
CN108834223B (en) Method for switching WiFi frequency band and electronic equipment
US11102690B2 (en) Data sending method, data receiving method, data transmit end, and data receive end
RU2638945C2 (en) MANAGEMENT METHOD FOR MULTIPLE USE OF LTE WITH Wi-Fi AND TERMINAL DEVICE
JP6961708B2 (en) Network connection method and equipment
CN108055687B (en) Wireless network connection method and device and terminal equipment
US9743361B2 (en) Network access method, device, and system for detecting interference and reducing interference between interfering channels
US11797472B2 (en) Data cache mechanism through dual sim phone
CN109587734B (en) Communication method and device of double-frequency repeater
CN108712778B (en) Channel selection method and related product
JP2018533886A (en) Network handover method and apparatus
WO2020078199A1 (en) Link connection method and related apparatus
CN111356190A (en) Communication link switching method, device, terminal and computer readable storage medium
CN110299930B (en) Antenna switching method and related equipment
CN112105058A (en) Link connection method and related device
CN112997528A (en) Network switching method and related equipment
CN109298846B (en) Audio transmission method and device, electronic equipment and storage medium
CN110198183B (en) Antenna switching method and related equipment
CN112566262B (en) Data processing method and device, communication equipment and storage medium
US20230292241A1 (en) Method for data obtaining and communication device
US11032820B1 (en) Receiving wireless local area network (WLAN) packets from co-located access point radios and client device radios
CN111050377A (en) Method for sharing network connection by mobile terminal and mobile terminal
US11134510B1 (en) Transmit scheduling in multi-radio devices
US11696171B2 (en) Mitigation of excessive client steering attempts in multiple access point networks
US11601317B2 (en) Adaptive guard interval calibration
US11962452B2 (en) Adaptive guard interval calibration

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