CN112787745A - Wireless communication method, wireless communication device, electronic device, and storage medium - Google Patents

Wireless communication method, wireless communication device, electronic device, and storage medium Download PDF

Info

Publication number
CN112787745A
CN112787745A CN202110215195.1A CN202110215195A CN112787745A CN 112787745 A CN112787745 A CN 112787745A CN 202110215195 A CN202110215195 A CN 202110215195A CN 112787745 A CN112787745 A CN 112787745A
Authority
CN
China
Prior art keywords
communication
frequency band
communication module
module
controlling
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.)
Granted
Application number
CN202110215195.1A
Other languages
Chinese (zh)
Other versions
CN112787745B (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.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software 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 Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN202110215195.1A priority Critical patent/CN112787745B/en
Publication of CN112787745A publication Critical patent/CN112787745A/en
Application granted granted Critical
Publication of CN112787745B publication Critical patent/CN112787745B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04JMULTIPLEX COMMUNICATION
    • H04J11/00Orthogonal multiplex systems, e.g. using WALSH codes
    • H04J11/0023Interference mitigation or co-ordination
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

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

Abstract

The disclosure relates to a wireless communication method, a wireless communication device, an electronic device and a storage medium. The terminal comprises a first communication module and a second communication module, wherein the working frequency band supported by the first communication module comprises a first frequency band, and the working frequency band supported by the second communication module comprises a first frequency band and a second frequency band; the wireless communication method includes: determining the working state of the first communication module; and controlling the second communication module to communicate by using a first frequency band or a second frequency band based on the working state, so that the communication of the second communication module does not interfere with the communication of the first communication module in the first frequency band. Therefore, the working frequency band of the second communication module is dynamically adjusted to ensure that the communication of the second communication module does not interfere with the communication of the first communication module in the first frequency band, and the purpose of optimizing user experience is achieved.

Description

Wireless communication method, wireless communication device, electronic device, and storage medium
Technical Field
The present disclosure relates to the field of wireless communication technologies, and in particular, to a wireless communication method, an apparatus, an electronic device, and a storage medium.
Background
At present, a plurality of wireless communication modules are deployed in a plurality of terminals, and when the plurality of wireless communication modules use the same working frequency band for communication, interference can be generated among the plurality of wireless communication modules, the communication quality of the wireless communication modules which are executing important tasks is influenced, and bad experience is caused to users.
Disclosure of Invention
The present disclosure provides a wireless communication method, apparatus, electronic device, and storage medium to solve the deficiencies in the related art.
According to a first aspect of the embodiments of the present disclosure, a wireless communication method is provided, which is applied to a terminal, where the terminal includes a first communication module and a second communication module, a working frequency band supported by the first communication module includes a first frequency band, and a working frequency band supported by the second communication module includes a first frequency band and a second frequency band; the wireless communication method includes:
determining the working state of the first communication module;
and controlling the second communication module to communicate by using a first frequency band or a second frequency band based on the working state, so that the communication of the second communication module does not interfere with the communication of the first communication module in the first frequency band.
Optionally, if the operating state is a start state or a state in which the first frequency band is used for communication, controlling the second communication module to use the first frequency band or the second frequency band for communication includes:
and controlling the second communication module to communicate by using the second frequency band under the condition that the second communication module is started or uses the first frequency band to communicate.
Optionally, the method further comprises:
and under the condition that the second communication module is controlled to use the second frequency band for communication failure, the second communication module is controlled to use the first frequency band with the communication quality parameter value reduced for communication.
Optionally, if the operating state is a start state or a state in which the first frequency band is used for communication, controlling the second communication module to use the first frequency band or the second frequency band for communication includes:
and under the condition that the second communication module is started or uses the first frequency band for communication, controlling the second communication module to use the first frequency band with the reduced communication quality parameter value for communication.
Optionally, controlling the second communication module to perform communication using the first frequency band after the communication quality parameter value is reduced includes:
generating a prompt for judging whether to reduce the communication quality parameter value of the first frequency band of the second communication module, and controlling the second communication module to communicate by using the first frequency band after the communication quality parameter value is reduced under the condition of receiving an instruction for reducing the communication quality parameter value;
or, under the condition that the second communication module is determined to execute the target communication task by using the first frequency band, controlling the second communication module to communicate by using the first frequency band after the communication quality parameter value is reduced.
Optionally, controlling the second communication module to communicate using the first frequency band or the second frequency band includes:
judging whether the priority of a communication task executed by the second communication module by using a first frequency band is lower than the priority of a communication task executed by the first communication module by using the first frequency band;
and if so, controlling the second communication module to communicate by using the second frequency band, or controlling the second communication module to communicate by using the first frequency band after the communication quality parameter value is reduced.
Optionally, the method further comprises:
detecting a communication quality parameter value of the first communication module;
controlling the working frequency band of the second communication module, including:
and under the condition that the communication quality parameter value reaches a parameter threshold value, controlling the second communication module to use the second frequency band for communication, or controlling the second communication module to use the first frequency band with the communication quality parameter value reduced for communication.
According to a second aspect of the embodiments of the present disclosure, there is provided a wireless communication apparatus, which is applied to a terminal, where the terminal includes a first communication module and a second communication module, a working frequency band supported by the first communication module includes a first frequency band, and a working frequency band supported by the second communication module includes a first frequency band and a second frequency band; the wireless communication apparatus includes:
the determining module is used for determining the working state of the first communication module;
and the control module is used for controlling the second communication module to use the first frequency band or the second frequency band for communication based on the working state so as to enable the communication of the second communication module not to interfere the communication of the first communication module in the first frequency band.
According to a third aspect of the embodiments of the present disclosure, there is provided an electronic apparatus including:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to execute the executable instructions to implement the wireless communication method of any of the above.
According to a fourth aspect of embodiments of the present disclosure, there is provided a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps in the wireless communication method of any one of the above.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects:
in the embodiment of the disclosure, the working frequency band of the second communication module is dynamically adjusted to ensure that the communication of the second communication module does not interfere with the communication of the first communication module in the first frequency band, so as to achieve the purpose of optimizing the user experience.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure.
Fig. 1 is a block diagram illustrating a terminal according to an embodiment of the present disclosure;
fig. 2 is a flow chart illustrating a method of wireless communication in accordance with an embodiment of the present disclosure;
fig. 3 is a flow chart illustrating another method of wireless communication according to an embodiment of the present disclosure;
fig. 4 is a block schematic diagram illustrating a wireless communication device in accordance with an embodiment of the present disclosure;
fig. 5 is a block diagram illustrating an apparatus for wireless communication control in accordance with an embodiment of the present disclosure.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
Fig. 1 is a schematic block diagram of a terminal according to an embodiment of the present disclosure, and referring to fig. 1, the positioning terminal includes: the device comprises a control module 11, a first communication module 12 and a second communication module 13, wherein the first communication module 12 and the second communication module are respectively connected with the control module 11. The first communication module 12 is configured to implement communication connection between a terminal and a first peer terminal, and the second communication module 13 is configured to implement communication connection between a terminal and a second peer terminal, where the first peer terminal and the second peer terminal may be the same terminal, and the first peer terminal and the second peer terminal may also be different terminals.
The working frequency bands supported by the first communication module 12 include a first frequency band, and the working frequency bands supported by the second communication module include a first frequency band and a second frequency band different from the first frequency band. The control module 11 may determine an operating state of the first communication module 12, and control the second communication module 13 to perform communication using the first frequency band or the second frequency band based on the operating state, so that the communication of the second communication module 13 does not interfere with the communication of the first communication module 12 in the first frequency band.
It should be noted that the working frequency band supported by the first communication module may be only the first frequency band, and the working frequency band supported by the first communication module may also include the first frequency band and the second frequency band. The frequency range of the second frequency band may be one or more, and the disclosure does not limit this.
The type of the first communication module may be different from that of the second communication module, for example, the first communication module is a bluetooth module, and the second communication module is a Wi-Fi module; the type of the first communication module may be the same as the type of the second communication module, e.g., both the first communication module and the second communication module are Wi-Fi modules. The number of the first communication module and the second communication module is not limited to 1 shown in fig. 1, but may be 2, 3 or more, and the disclosure does not particularly limit this.
The communication control procedure of the terminal will be described in detail with reference to fig. 1.
Fig. 2 is a flow chart illustrating a wireless communication method according to an embodiment of the present disclosure, the wireless communication method including the steps of:
step 201, determining the working state of the first communication module.
In step 201, the operating state of the first communication module may include, but is not limited to, an inactive state, an active state, and a state in which communication is performed using the first frequency band. The startup state is a state in which the terminal is being started but no communication connection is established with the opposite terminal. And a state of performing communication by using the first frequency band, that is, a state of establishing communication connection with the opposite terminal based on the first frequency band.
It can be understood that when the first communication module is in the non-activated state, the communication of the second communication module does not interfere with the first communication module; when the first communication module is in a start state or a state of performing communication using the first frequency band, if the working frequency band of the second communication module is the first frequency band, communication of the second communication module in the first frequency band may interfere with communication of the first communication module in the first working frequency band or will interfere with communication of the first communication module in the first working frequency band.
Step 202, controlling the second communication module to use the first frequency band or the second frequency band for communication based on the working state, so that the communication of the second communication module does not interfere with the communication of the first communication module in the first frequency band.
The communication quality parameter value of the communication of the first communication module in the first frequency band is not interfered, that is, the communication quality parameter value of the communication of the first communication module in the first frequency band is not influenced or is slightly influenced.
The communication quality parameter value is a value of a communication quality parameter of the communication module, and the communication quality parameter may include, but is not limited to, at least one of the following parameters: packet loss rate, retransmission rate, received signal strength, received signal power, etc.
In an embodiment, when the operating state of the first communication module is a startup state or a state in which communication is performed using a first frequency band, if a startup request of the second communication module is received, the second communication module is controlled to perform communication using the second frequency band instead of using the first frequency band when the second communication module is started, so as to avoid interference on communication of the first communication module due to the fact that the second communication module uses the same operating frequency band as the first communication module.
In an embodiment, when the operating state of the first communication module is the startup state or the state of performing communication using the first frequency band, if the current second communication module performs communication using the first frequency band, the second communication module is controlled to switch from performing communication using the first frequency band to performing communication using the second frequency band, so as to avoid interference to the communication of the first communication module due to the fact that the second communication module uses the same operating frequency band as the first communication module.
In one embodiment, before controlling the second communication module to switch from using the first frequency band to using the second frequency band for communication, it is determined whether a communication quality parameter value of the first communication module reaches a parameter threshold value. If the communication quality parameter value of the first communication module reaches the parameter threshold value, which indicates that the second communication module causes large interference to the first communication module, the second communication module is controlled to switch the working frequency band, that is, the second communication module is controlled to switch from using the first frequency band for communication to using the second frequency band for communication. If the communication quality parameter value of the second communication module does not reach the parameter threshold value, it indicates that the second communication module does not cause large interference to the first communication module, and the second communication module may not be switched in the working frequency band, so as to avoid increasing the power consumption of the terminal due to the switching in the working frequency band. Wherein, the parameter threshold value can be set according to the actual requirement.
In one embodiment, before controlling the second communication module to switch from using the first frequency band for communication to using the second frequency band for communication, it is determined whether the priority of the communication task performed by the second communication module using the first frequency band is lower than the priority of the communication task performed by the first communication module using the first frequency band. If the judgment result is yes, it is indicated that the priority of the communication task executed by the first communication module is higher, and the execution of the communication task of the first communication module needs to be ensured first, the second communication module is controlled to switch from using the first frequency band for communication to using the second frequency band for communication, so that the situation that the execution of the communication task of the first communication module is influenced due to the fact that the second communication module uses the same working frequency band as the first communication module and therefore the communication of the first communication module is interfered is avoided. If the judgment result is negative, it indicates that the priority of the communication task executed by the second communication module is higher, and the execution of the communication task of the second communication module needs to be ensured first, the switching of the working frequency band is not performed on the second communication module, so as to avoid the interruption or influence on the execution of the communication task of the second communication module due to the switching of the working frequency band.
In one embodiment, in the case that it is determined that the priority of the communication task performed by the second communication module using the first frequency band is lower than the priority of the communication task performed by the first communication module using the first frequency band, it is further determined whether the communication quality parameter value of the first communication module reaches a parameter threshold, and in the case that it is determined that the communication quality parameter value of the first communication module reaches the parameter threshold, the second communication module is controlled to perform the working frequency band switching.
In one embodiment, before controlling the second communication module to switch from using the first frequency band for communication to using the second frequency band for communication, it is determined whether the first communication module uses the first frequency band to perform a second target communication task, where the second target communication task may be, for example, a real-time transmission task of audio and video with a high real-time requirement. And under the condition that the first communication module is determined to execute the second target communication task by using the first frequency band, controlling the second communication module to switch from the communication by using the first frequency band to the communication by using the second frequency band.
In an embodiment, before controlling the second communication module to switch from using the first frequency band for communication to using the second frequency band for communication, it is determined whether the first communication module uses the first frequency band to execute a second target communication task and a communication quality parameter value of the first communication module reaches a parameter threshold, where the second target communication task may be, for example, a real-time transmission task of audio and video with a higher real-time requirement. Under the condition that the first communication module is determined to execute the second target communication task by using the first frequency band and the communication quality parameter value of the first communication module reaches the parameter threshold value, the second communication module causes large interference to the real-time transmission task of the first communication module, and under the scene of listening to music or watching videos by using a Bluetooth earphone, a Bluetooth sound box, a Bluetooth vehicle-mounted device and the like, a pause phenomenon occurs, and the second communication module is controlled to switch from using the first frequency band for communication to using the second frequency band for communication.
In an embodiment, when the operating state of the first communication module is a startup state or a state in which communication is performed using a first frequency band, if a startup request of the second communication module is received, the second communication module is controlled to perform communication using the first frequency band after a communication quality parameter value is reduced when the second communication module is started, so as to reduce interference caused by the second communication module on communication of the first communication module. The reduction range of the communication quality parameter value can be set according to actual requirements.
In an embodiment, when the operating state of the first communication module is a startup state or a state of performing communication using the first frequency band, if the current second communication module also performs communication using the first frequency band, the communication quality parameter value of the first frequency band of the second communication module is reduced to reduce interference caused by the second communication module to the communication of the first communication module. The reduction range and the reduction strategy of the communication quality parameter value can be set according to actual requirements.
In one embodiment, before decreasing the communication quality parameter value of the first frequency band of the second communication module, it is determined whether the communication quality parameter value of the first communication module reaches a parameter threshold. If the communication quality parameter value of the first communication module reaches the parameter threshold value, which indicates that the second communication module causes large interference to the first communication module, the communication quality parameter value of the first frequency band of the second communication module is reduced. If the communication quality parameter value of the second communication module does not reach the parameter threshold value, which indicates that the second communication module does not cause large interference to the first communication module, the action of reducing the communication quality parameter value of the first frequency band of the second communication module is not executed.
In one embodiment, before decreasing the communication quality parameter value of the first frequency band of the second communication module, it is confirmed with the user whether the communication quality parameter value is decreased. Specifically, a prompt is generated whether to reduce the communication quality parameter value of the first frequency band of the second communication module, and the second communication module is controlled to communicate using the first frequency band with the reduced communication quality parameter value under the condition that an instruction of reducing the communication quality parameter value is received.
In an embodiment, before reducing the communication quality parameter value of the first frequency band of the second communication module, it is determined whether the second communication module uses the first frequency band to execute a target communication task, where the target communication task may be, for example, a task with low real-time requirement, such as a download task. And under the condition that the second communication module is determined to execute the target communication task by using the first frequency band, controlling the second communication module to communicate by using the first frequency band after the communication quality parameter value is reduced.
In an embodiment, before reducing the communication quality parameter value of the first frequency band of the second communication module, it is determined whether the first communication module executes a second target communication task using the first frequency band, where the second target communication task may be, for example, a real-time transmission task of audio and video with a higher real-time requirement. And under the condition that the first communication module is determined to execute the second target communication task by using the first frequency band, controlling the second communication module to carry out communication by using the first frequency band after the communication quality parameter value is reduced.
In an embodiment, before reducing the communication quality parameter value of the first frequency band of the second communication module, it is determined whether the first communication module executes a second target communication task using the first frequency band and the communication quality parameter value of the first communication module reaches a parameter threshold, where the second target communication task may be, for example, a real-time transmission task of audio and video with a higher real-time requirement. Under the condition that the first communication module is determined to execute the second target communication task by using the first frequency band and the communication quality parameter value of the first communication module reaches the parameter threshold value, the second communication module causes large interference to the real-time transmission task of the first communication module, and under the scene of listening to music or watching videos by using a Bluetooth earphone, a Bluetooth sound box, a Bluetooth vehicle-mounted device and the like, a pause phenomenon occurs, and then the second communication module is controlled to communicate by using the first frequency band after the communication quality parameter value is reduced.
In an embodiment, before reducing the communication quality parameter value of the first frequency band of the second communication module, it is determined whether the priority of the communication task executed by the second communication module using the first frequency band is lower than the priority of the communication task executed by the first communication module using the first frequency band. If the judgment result is yes, it indicates that the priority of the communication task executed by the first communication module is higher, and the execution of the communication task of the first communication module needs to be ensured first, the communication quality parameter value of the first frequency band of the second communication module is reduced. If the judgment result is negative, the priority of the communication task executed by the second communication module is higher, the execution of the communication task of the second communication module needs to be ensured first, and the action of reducing the communication quality parameter value of the first frequency band of the second communication module is not executed.
In one embodiment, in the case that it is determined that the priority of the communication task performed by the second communication module using the first frequency band is lower than the priority of the communication task performed by the first communication module using the first frequency band, it is further determined whether the communication quality parameter value of the first communication module reaches a parameter threshold value, and in the case that it is determined that the communication quality parameter value of the first communication module reaches the parameter threshold value, the communication quality parameter value of the first frequency band of the second communication module is decreased.
In one embodiment, it may be ensured that the communication of the second communication module does not interfere with the communication of the first communication module in the first frequency band by combining the switching of the operating frequency band and the reduction of the communication quality parameter value. In this scenario, the priority of switching the operating frequency band and reducing the communication quality parameter value may be set.
In one example, the priority of switching the working frequency band is set to be higher than the priority of reducing the communication quality parameter value, and when the working frequency band of the second communication module is controlled based on the working state, the working frequency band is switched first; and if the working frequency band switching fails, namely the second communication module is controlled to use the second frequency band for communication failure, the second communication module is controlled to use the first frequency band with the reduced communication quality parameter value for communication.
In another example, the priority of the switching of the working frequency band is set to be lower than the priority of the reduction of the communication quality parameter value, and when the working frequency band of the second communication module is controlled based on the working state, the communication quality parameter value of the first frequency band of the second communication module is reduced first; if the communication quality of the first communication module meets the requirement after the communication quality parameter value of the first frequency band of the second communication module is reduced, the switching action of the working frequency band is not carried out; if the communication quality of the first communication module does not meet the requirement after the communication quality parameter value of the first frequency band of the second communication module is reduced, performing a switching action of the working frequency band, that is, controlling the second communication module to switch from using the first frequency band for communication to using the second frequency band for communication.
In any of the above embodiments, the first wireless communication module and the second wireless communication module may be integrated on the same chip, or may be disposed on different chips. When the first wireless communication module determines that the communication quality parameter value reaches the parameter threshold value or determines that the Bluetooth technology is used for listening to music/watching videos and the card is pause, the first wireless communication module actively informs the terminal system side through one interface of the chip, and the terminal system side controls the second communication module to use the second frequency band for communication or controls the second communication module to use the first frequency band with the communication quality parameter value reduced for communication.
Fig. 3 is a flowchart illustrating another wireless communication method according to an embodiment of the present disclosure, where in the embodiment of the present disclosure, for example, a first communication module is a bluetooth module, and a second communication module is a Wi-Fi module, a communication control process is further described, referring to fig. 3, the wireless communication method includes the following steps:
step 301, determining the working state of the bluetooth module.
The operating state of the bluetooth module may include, but is not limited to, an inactive state, an active state, and a state in which communication is performed using the first frequency band. The startup state is a state in which the terminal is being started but no communication connection is established with the opposite terminal. And a state of performing communication by using the first frequency band, that is, a state of establishing communication connection with the opposite terminal based on the first frequency band.
The working frequency band that bluetooth module commonly used at present is 2.4GHz (first frequency band), and when establishing communication connection with the opposite terminal, the bluetooth module of terminal establishes communication connection with the bluetooth module of opposite terminal based on 2.4GHz frequency band to can realize through opposite terminal, opposite terminal can be bluetooth headset/bluetooth speaker/bluetooth mobile unit etc. for example, listen to amusement activities such as music/watch video.
And 302, controlling the working frequency band of the Wi-Fi module based on the working state so that the communication of the Wi-Fi module does not interfere the communication of the Bluetooth module in the first frequency band.
The communication of the bluetooth module in the first frequency band is not interfered, that is, the communication quality parameter value of the communication of the bluetooth module in the first frequency band is not influenced or is slightly influenced, and the pause phenomenon can not occur when the bluetooth headset, the bluetooth loudspeaker box, the bluetooth vehicle-mounted equipment and the like listen to music or watch videos.
In one embodiment, the Wi-Fi module is a multi-frequency Wi-Fi module that supports at least 2 operating bands, for example, the operating bands of the Wi-Fi module include a 2.4GHz band (first band) that is the same as the operating band supported by the bluetooth module, and a 5GHz band and/or a 60GHz band (second band) that is different from the operating band supported by the bluetooth module.
In order to ensure that the communication of the Wi-Fi module does not interfere the communication of the Bluetooth module in the first frequency band, when the Bluetooth module is started or the Bluetooth module is using a 2.4GHz frequency band for communication and the current working frequency band of the Wi-Fi module is the 2.4GHz frequency band, the Wi-Fi module is controlled to switch the working frequency band to a 5GHz frequency band or a 60GHz frequency band, that is, the Wi-Fi module of the terminal performs Wi-Fi connection based on the 5GHz frequency band or the 60GHz frequency band.
Before Wi-Fi connection is carried out, whether the Wi-Fi module is connected with a Wi-Fi network of a 5GHz frequency band or a 60GHz frequency band once or not is determined according to historical connection information of the Wi-Fi module, whether the Wi-Fi module has the connection authority of the Wi-Fi network of the 5GHz frequency band or the 60GHz frequency band currently or not is determined, and under the condition that the Wi-Fi module is determined to have the connection authority and the network is available, the Wi-Fi module is controlled to carry out Wi-Fi connection on the basis of the 5GHz frequency band or the 60GHz frequency band. Under the condition that the Bluetooth module does not have the connection authority or the current network is unavailable, the communication of the Wi-Fi module can be ensured not to interfere the communication of the Bluetooth module in the first frequency band in a mode of reducing the communication quality parameter value of the working frequency band of the Wi-Fi module.
Whether the network is available or not can be represented by signal strength, for example, if the signal strength of a Wi-Fi network in a 5GHz frequency band or a 60GHz frequency band in a wireless environment where the terminal is currently located is greater than-70 dbm, the signal strength can be considered to be good, and the network is available; if the Wi-Fi network of the 5GHz frequency band and the 60GHz frequency band does not exist in the wireless environment where the terminal is currently located, or the signal intensity of the Wi-Fi network of the 5GHz frequency band and the 60GHz frequency band is not more than-70 dbm, the signal intensity is considered to be poor, and the network is unavailable.
In one embodiment, before controlling the Wi-Fi module to switch the working frequency band, it is determined whether both the current bluetooth module and the Wi-Fi module are executing communication tasks, and whether the priority of the communication task executed by the bluetooth module is higher than that of the communication task executed by the Wi-Fi module, and the working frequency band of the Wi-Fi module is switched only when it is determined that the priority of the communication task executed by the bluetooth module is higher than that of the communication task executed by the Wi-Fi module. For example, assuming that the communication task of the bluetooth module is audio transmission, the communication task of the Wi-Fi module is a download task, the priority of the audio transmission is higher than the priority of the download task, and under the condition that both the bluetooth module and the Wi-Fi module use the 2.4GHz band, the working frequency band of the Wi-Fi module is switched from the 2.4GHz band to the 5GHz band or the 60GHz band.
In one embodiment, before controlling the Wi-Fi module to switch the working frequency band, the communication of the Wi-Fi module is realized in a mode of reducing the communication quality parameter value of the Wi-Fi module so as not to interfere the communication of the Bluetooth module in the first frequency band. In the process of reducing the communication quality parameter value of the Wi-Fi module, the communication quality parameter value of the Bluetooth module can be detected in real time, and if the communication quality parameter value of the Bluetooth module meets the requirement, a mode of controlling the Wi-Fi module to switch the working frequency band is adopted.
In one embodiment, if the Wi-Fi module only supports the frequency band same as the working frequency band of the bluetooth module, the communication of the bluetooth module in the first frequency band may not be interfered by the Wi-Fi module in a manner of reducing the communication quality parameter value of the Wi-Fi module.
Corresponding to the foregoing embodiments of the wireless communication method, the present disclosure also provides embodiments of a wireless communication apparatus.
Fig. 4 is a schematic block diagram of a wireless communication apparatus according to an embodiment of the present disclosure, which is applied to a terminal including a first communication module and a second communication module, where an operating frequency band supported by the first communication module includes a first frequency band, and an operating frequency band supported by the second communication module includes a first frequency band and a second frequency band; the wireless communication apparatus includes:
a determining module 41, configured to determine an operating state of the first communication module;
a control module 42, configured to control the second communication module to use the first frequency band or the second frequency band for communication based on the operating state, so that the communication of the second communication module does not interfere with the communication of the first communication module in the first frequency band.
Optionally, if the operating state is a start state or a state in which the first frequency band is used for communication, the control module is configured to:
and controlling the second communication module to communicate by using the second frequency band under the condition that the second communication module is started or uses the first frequency band to communicate.
Optionally, the control module is further configured to:
and under the condition that the second communication module is controlled to use the second frequency band for communication failure, the second communication module is controlled to use the first frequency band with the communication quality parameter value reduced for communication.
Optionally, if the operating state is a start state or a state in which the first frequency band is used for communication, the control module is configured to:
and under the condition that the second communication module is started or uses the first frequency band for communication, controlling the second communication module to use the first frequency band with the reduced communication quality parameter value for communication.
Optionally, when the second communication module is controlled to perform communication using the first frequency band after the communication quality parameter value is reduced, the control module is configured to:
generating a prompt for judging whether to reduce the communication quality parameter value of the first frequency band of the second communication module, and controlling the second communication module to communicate by using the first frequency band after the communication quality parameter value is reduced under the condition of receiving an instruction for reducing the communication quality parameter value;
or, under the condition that the second communication module is determined to execute the target communication task by using the first frequency band, controlling the second communication module to communicate by using the first frequency band after the communication quality parameter value is reduced.
Optionally, the control module is configured to:
judging whether the priority of a communication task executed by the second communication module by using a first frequency band is lower than the priority of a communication task executed by the first communication module by using the first frequency band;
and if so, controlling the second communication module to communicate by using the second frequency band, or controlling the second communication module to communicate by using the first frequency band after the communication quality parameter value is reduced.
Optionally, the apparatus further comprises:
the detection module is used for detecting a communication quality parameter value of the first communication module;
the control module is used for:
and under the condition that the communication quality parameter value reaches a parameter threshold value, controlling the second communication module to use the second frequency band for communication, or controlling the second communication module to use the first frequency band with the communication quality parameter value reduced for communication.
With regard to the apparatus in the above embodiments, the specific manner in which each module performs operations has been described in detail in the embodiments of the related method, and will not be described in detail here.
For the device embodiments, since they substantially correspond to the method embodiments, reference may be made to the partial description of the method embodiments for relevant points. The above-described embodiments of the apparatus are merely illustrative, wherein the modules described as separate parts may or may not be physically separate, and the parts displayed as modules may or may not be physical modules, may be located in one place, or may be distributed on a plurality of network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
An embodiment of the present disclosure also provides an electronic device, including:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to implement the wireless communication method of any of the above embodiments.
Embodiments of the present disclosure also provide a computer-readable storage medium, on which a computer program is stored, which when executed by a processor implements the steps in the wireless communication method according to any of the above embodiments.
Fig. 5 is a block diagram illustrating an apparatus for wireless communication control in accordance with an embodiment of the present disclosure. The device can be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, a Bluetooth sound box, a vehicle-mounted device and the like.
As shown in fig. 5, the apparatus 500 may include one or more of the following components: processing component 502, memory 504, power component 506, multimedia component 508, audio component 510, input/output (I/O) interface 512, sensor component 514, and communication component 516.
The processing component 502 generally controls overall operation of the device 500, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing components 502 may include one or more processors 520 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 502 can include one or more modules that facilitate interaction between the processing component 502 and other components. For example, the processing component 502 can include a multimedia module to facilitate interaction between the multimedia component 508 and the processing component 502.
The memory 504 is configured to store various types of data to support operations at the apparatus 500. Examples of such data include instructions for any application or method operating on device 500, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 504 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
The power supply component 506 provides power to the various components of the device 500. The power components 506 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the apparatus 500.
The multimedia component 508 includes a screen that provides an output interface between the device 500 and the user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 508 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the device 500 is in an operating mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 510 is configured to output and/or input audio signals. For example, audio component 510 includes a Microphone (MIC) configured to receive external audio signals when apparatus 500 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 504 or transmitted via the communication component 516. In some embodiments, audio component 510 further includes a speaker for outputting audio signals.
The I/O interface 512 provides an interface between the processing component 502 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor assembly 514 includes one or more sensors for providing various aspects of status assessment for the device 500. For example, the sensor assembly 514 may detect an open/closed state of the apparatus 500, the relative positioning of the components, such as a display and keypad of the apparatus 500, the sensor assembly 514 may also detect a change in the position of the apparatus 500 or a component of the apparatus 500, the presence or absence of user contact with the apparatus 500, orientation or acceleration/deceleration of the apparatus 500, and a change in the temperature of the apparatus 500. The sensor assembly 514 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 514 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 514 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 516 is configured to facilitate communication between the apparatus 500 and other devices in a wired or wireless manner. The apparatus 500 may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, bluetooth, or a combination thereof. In an exemplary embodiment, the communication component 516 receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 516 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, and other technologies.
In an exemplary embodiment, the apparatus 500 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the methods described in any of the above embodiments.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (10)

1. A wireless communication method is applied to a terminal, wherein the terminal comprises a first communication module and a second communication module, the working frequency band supported by the first communication module comprises a first frequency band, and the working frequency band supported by the second communication module comprises a first frequency band and a second frequency band; the wireless communication method includes:
determining the working state of the first communication module;
and controlling the second communication module to communicate by using a first frequency band or a second frequency band based on the working state, so that the communication of the second communication module does not interfere with the communication of the first communication module in the first frequency band.
2. The wireless communication method according to claim 1, wherein if the operating state is a start state or a state in which the first frequency band is used for communication, controlling the second communication module to use the first frequency band or the second frequency band for communication comprises:
and controlling the second communication module to communicate by using the second frequency band under the condition that the second communication module is started or uses the first frequency band to communicate.
3. The wireless communication method according to claim 2, further comprising:
and under the condition that the second communication module is controlled to use the second frequency band for communication failure, the second communication module is controlled to use the first frequency band with the communication quality parameter value reduced for communication.
4. The wireless communication method according to claim 1, wherein if the operating state is a start state or a state in which the first frequency band is used for communication, controlling the second communication module to use the first frequency band or the second frequency band for communication comprises:
and under the condition that the second communication module is started or uses the first frequency band for communication, controlling the second communication module to use the first frequency band with the reduced communication quality parameter value for communication.
5. The wireless communication method according to any one of claims 3 or 4, wherein controlling the second communication module to perform communication using the first frequency band after the communication quality parameter value is reduced comprises:
generating a prompt for judging whether to reduce the communication quality parameter value of the first frequency band of the second communication module, and controlling the second communication module to communicate by using the first frequency band after the communication quality parameter value is reduced under the condition of receiving an instruction for reducing the communication quality parameter value;
or, under the condition that the second communication module is determined to execute the target communication task by using the first frequency band, controlling the second communication module to communicate by using the first frequency band after the communication quality parameter value is reduced.
6. The wireless communication method of claim 1, wherein controlling the second communication module to communicate using the first frequency band or the second frequency band comprises:
under the condition that the priority of a communication task executed by the second communication module by using a first frequency band is lower than the priority of a communication task executed by the first communication module by using the first frequency band, controlling the second communication module to communicate by using the second frequency band, or controlling the second communication module to communicate by using the first frequency band after a communication quality parameter value is reduced;
and under the condition that the first communication module executes a second target communication task by using the first frequency band, controlling the second communication module to communicate by using the second frequency band, or controlling the second communication module to communicate by using the first frequency band after the communication quality parameter value is reduced.
7. The wireless communication method according to claim 1, further comprising:
detecting a communication quality parameter value of the first communication module;
controlling the second communication module to communicate using the first frequency band or the second frequency band, including:
under the condition that the communication quality parameter value reaches a parameter threshold value, controlling the second communication module to use the second frequency band for communication, or controlling the second communication module to use the first frequency band with the communication quality parameter value reduced for communication;
or, when the first communication module uses the first frequency band to execute a second target communication task and the communication quality parameter value reaches a parameter threshold value, controlling the second communication module to use the second frequency band for communication, or controlling the second communication module to use the first frequency band with the communication quality parameter value reduced for communication.
8. A wireless communication device is applied to a terminal, wherein the terminal comprises a first communication module and a second communication module, the working frequency band supported by the first communication module comprises a first frequency band, and the working frequency band supported by the second communication module comprises a first frequency band and a second frequency band; the wireless communication apparatus includes:
the determining module is used for determining the working state of the first communication module;
and the control module is used for controlling the second communication module to use the first frequency band or the second frequency band for communication based on the working state so as to enable the communication of the second communication module not to interfere the communication of the first communication module in the first frequency band.
9. An electronic device, comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to execute the executable instructions to implement the wireless communication method of any of claims 1-7.
10. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the wireless communication method according to any one of claims 1 to 7.
CN202110215195.1A 2021-02-25 2021-02-25 Wireless communication method, device, electronic equipment and storage medium Active CN112787745B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110215195.1A CN112787745B (en) 2021-02-25 2021-02-25 Wireless communication method, device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110215195.1A CN112787745B (en) 2021-02-25 2021-02-25 Wireless communication method, device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112787745A true CN112787745A (en) 2021-05-11
CN112787745B CN112787745B (en) 2023-06-27

Family

ID=75761937

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110215195.1A Active CN112787745B (en) 2021-02-25 2021-02-25 Wireless communication method, device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112787745B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113543365A (en) * 2021-06-23 2021-10-22 北京小米移动软件有限公司 Networking method, networking device and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107231159A (en) * 2017-05-31 2017-10-03 广东欧珀移动通信有限公司 A kind of Radio frequency interference processing method, device, storage medium and terminal
CN108391277A (en) * 2018-02-07 2018-08-10 广东欧珀移动通信有限公司 Signal connection method, device, mobile terminal and computer readable storage medium
US20200275383A1 (en) * 2019-02-26 2020-08-27 Samsung Electronics Co., Ltd. Electronic device supporting 5g network communication and method for electronic device to control transmit power
CN111642003A (en) * 2020-06-09 2020-09-08 展讯通信(上海)有限公司 Radio frequency interference processing method, electronic device and storage medium
CN111970024A (en) * 2020-08-26 2020-11-20 维沃移动通信有限公司 Communication network control method and device and electronic equipment
CN112272071A (en) * 2020-11-24 2021-01-26 惠州Tcl移动通信有限公司 Interference optimization control method and device and user equipment

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107231159A (en) * 2017-05-31 2017-10-03 广东欧珀移动通信有限公司 A kind of Radio frequency interference processing method, device, storage medium and terminal
CN108391277A (en) * 2018-02-07 2018-08-10 广东欧珀移动通信有限公司 Signal connection method, device, mobile terminal and computer readable storage medium
US20200275383A1 (en) * 2019-02-26 2020-08-27 Samsung Electronics Co., Ltd. Electronic device supporting 5g network communication and method for electronic device to control transmit power
CN111642003A (en) * 2020-06-09 2020-09-08 展讯通信(上海)有限公司 Radio frequency interference processing method, electronic device and storage medium
CN111970024A (en) * 2020-08-26 2020-11-20 维沃移动通信有限公司 Communication network control method and device and electronic equipment
CN112272071A (en) * 2020-11-24 2021-01-26 惠州Tcl移动通信有限公司 Interference optimization control method and device and user equipment

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113543365A (en) * 2021-06-23 2021-10-22 北京小米移动软件有限公司 Networking method, networking device and storage medium
CN113543365B (en) * 2021-06-23 2023-05-30 北京小米移动软件有限公司 Networking method, networking device and storage medium

Also Published As

Publication number Publication date
CN112787745B (en) 2023-06-27

Similar Documents

Publication Publication Date Title
CN107493500B (en) Multimedia resource playing method and device
EP3174027A1 (en) Method and apparatus for connecting with controlled smart device, computer program and recording medium
CN109565753B (en) Method and device for controlling beam failure recovery process
CN106454644B (en) Audio playing method and device
US11343741B2 (en) Data transmission method and device based on mobile network, and storage medium
CN106792937B (en) Method and device for processing call request
EP3176984B1 (en) Method and device for processing information
EP3322167B1 (en) Method and device for adjusting frequencies of intercom apparatuses
CN111049984A (en) Audio playback control method and apparatus, and storage medium
CN110392334B (en) Microphone array audio signal self-adaptive processing method, device and medium
CN106170141B (en) Mobile terminal network switching method and device
CN114513571A (en) Device connection method and device, electronic device and readable storage medium
CN112787745B (en) Wireless communication method, device, electronic equipment and storage medium
CN107371222B (en) Virtual card disabling method and device
CN109922203B (en) Terminal, screen off method and device
CN113938557B (en) Self-adaptive method, device and medium for intelligent terminal
CN114615647A (en) Call control method, device and storage medium
CN111313950B (en) Antenna control method and device
CN108539823B (en) Charging method and device
CN107708106B (en) User identification card management method and user identification card management device
CN112882622A (en) Data processing method and device, terminal and storage medium
CN111800836A (en) Communication method, communication device, electronic equipment and storage medium
CN112312498B (en) Method and device for switching network and storage medium
EP4344164A1 (en) Call processing method, storage medium, and electronic device
CN112118502B (en) Earphone control method, device, equipment and 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