[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN112020079B - Wireless communication device and method for electronic equipment, electronic equipment and storage medium - Google Patents

Wireless communication device and method for electronic equipment, electronic equipment and storage medium Download PDF

Info

Publication number
CN112020079B
CN112020079B CN201910470386.5A CN201910470386A CN112020079B CN 112020079 B CN112020079 B CN 112020079B CN 201910470386 A CN201910470386 A CN 201910470386A CN 112020079 B CN112020079 B CN 112020079B
Authority
CN
China
Prior art keywords
wifi
chip
bluetooth
time
use state
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
CN201910470386.5A
Other languages
Chinese (zh)
Other versions
CN112020079A (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.)
Baidu Online Network Technology Beijing Co Ltd
Shanghai Xiaodu Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and Technology Co Ltd
Shanghai Xiaodu Technology 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 Baidu Netcom Science and Technology Co Ltd, Shanghai Xiaodu Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN201910470386.5A priority Critical patent/CN112020079B/en
Publication of CN112020079A publication Critical patent/CN112020079A/en
Application granted granted Critical
Publication of CN112020079B publication Critical patent/CN112020079B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/02Arrangements for optimising operational condition
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W88/00Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
    • H04W88/02Terminal devices
    • H04W88/06Terminal devices adapted for operation in multiple networks or having at least two operational modes, e.g. multi-mode terminals

Landscapes

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

Abstract

The application provides a wireless communication device and a wireless communication method of electronic equipment. Wherein the device comprises: a wireless fidelity WiFi antenna; the WiFi chip is connected with the WiFi antenna; the Bluetooth chip is connected with the WiFi antenna; the controller controls the WiFi chip and the Bluetooth chip to time-division multiplex the WiFi antenna, obtains the WiFi use state and the Bluetooth use state of the electronic equipment, and adjusts the time division ratio between the WiFi chip and the Bluetooth chip according to the WiFi use state and the Bluetooth use state of the electronic equipment. Therefore, through the wireless communication device of the electronic equipment, the use bandwidth of WiFi or Bluetooth is maximized under different scenes, the smoothness of WiFi and Bluetooth application networks is improved, and the user experience is improved.

Description

Wireless communication device and method for electronic equipment, electronic equipment and storage medium
Technical Field
The present application relates to the field of computer applications, and in particular, to a wireless communication device and method for an electronic device, and a storage medium.
Background
Currently, electronic devices generally have functions of wireless fidelity (WIRELESS FIDELITY, abbreviated as WiFi) connection and bluetooth data transmission. However, due to the limitation of hardware conditions of the electronic device, only one WiFi antenna is usually designed for receiving WiFi signals and bluetooth signals.
In the related art, wiFi and bluetooth commonly share a WiFi antenna in a time division multiplexing manner. Although the hardware cost of wireless connection can be reduced by the design scheme, the network bandwidth of WiFi and Bluetooth is limited, so that the bandwidth of WiFi or Bluetooth often cannot meet the actual use requirement of upper-layer application, and the use of WiFi or Bluetooth is blocked, so that the user experience is influenced.
Disclosure of Invention
The wireless communication device, the wireless communication method, the electronic device and the storage medium of the electronic device are used for solving the problems that in the related art, wiFi and Bluetooth share a WiFi antenna in a time division multiplexing mode, the network bandwidth of WiFi and Bluetooth is limited, the bandwidth of WiFi or Bluetooth often cannot reach the actual use requirement of upper-layer application, and the use of WiFi or Bluetooth is blocked, so that the user experience is influenced.
In one aspect, a wireless communication apparatus of an electronic device provided by an embodiment of the present application includes: a WiFi antenna; a WiFi chip connected with the WiFi antenna; the Bluetooth chip is connected with the WiFi antenna; the controller is used for controlling the WiFi chip and the Bluetooth chip to be time-division multiplexed, acquiring the WiFi use state and the Bluetooth use state of the electronic equipment, and adjusting the time division ratio between the WiFi chip and the Bluetooth chip according to the WiFi use state and the Bluetooth use state of the electronic equipment.
The wireless communication device of the electronic equipment comprises a WiFi antenna, a WiFi chip connected with the WiFi antenna, a Bluetooth chip and a controller, wherein the controller controls the WiFi chip and the Bluetooth chip to time-division multiplex the WiFi antenna, acquires a WiFi use state and a Bluetooth use state of the electronic equipment, and adjusts the time division ratio between the WiFi chip and the Bluetooth chip according to the WiFi use state and the Bluetooth use state of the electronic equipment. From this, through wiFi service condition and bluetooth service condition according to electronic equipment, the time division ratio between dynamic adjustment wiFi chip and the bluetooth chip to make wiFi chip and bluetooth chip accord with current user demand to the occupation time of wiFi antenna, realized maximize wiFi or bluetooth's use bandwidth under the different scenes, promoted wiFi and bluetooth application network's smoothness, improved user experience.
In another aspect, a wireless communication method of an electronic device according to an embodiment of the present application includes: acquiring a WiFi use state and a Bluetooth use state of the electronic equipment; according to the WiFi use state and the Bluetooth use state of the electronic equipment, determining the time division ratio between a WiFi chip and a Bluetooth chip in the electronic equipment; and controlling the WiFi chip and the Bluetooth chip to time-division multiplex the WiFi antenna in the electronic equipment according to the time ratio.
The wireless communication method of the electronic equipment provided by the embodiment of the application can acquire the WiFi use state and the Bluetooth use state of the electronic equipment, and determine the time division ratio between the WiFi chip and the Bluetooth chip in the electronic equipment according to the WiFi use state and the Bluetooth use state of the electronic equipment, thereby controlling the WiFi antenna in the WiFi chip and the Bluetooth chip time division multiplexing electronic equipment according to the time division ratio. From this, through wiFi service condition and bluetooth service condition according to electronic equipment, the time division ratio between dynamic adjustment wiFi chip and the bluetooth chip to make wiFi chip and bluetooth chip accord with current user demand to the occupation time of wiFi antenna, realized maximize wiFi or bluetooth's use bandwidth under the different scenes, promoted wiFi and bluetooth application network's smoothness, improved user experience.
In still another aspect, an electronic device provided by an embodiment of the present application includes: the wireless communication device, the memory, the processor and the computer program stored on the memory and capable of running on the processor, when the processor executes the computer program, the wireless communication method of the electronic device is realized.
The electronic device provided by the embodiment of the application can execute the wireless communication method of the electronic device, acquire the WiFi use state and the Bluetooth use state of the electronic device, determine the time division ratio between the WiFi chip and the Bluetooth chip in the electronic device according to the WiFi use state and the Bluetooth use state of the electronic device, and further control the WiFi antenna in the WiFi chip and the Bluetooth chip time division multiplexing electronic device according to the time division ratio. From this, through wiFi service condition and bluetooth service condition according to electronic equipment, the time division ratio between dynamic adjustment wiFi chip and the bluetooth chip to make wiFi chip and bluetooth chip accord with current user demand to the occupation time of wiFi antenna, realized maximize wiFi or bluetooth's use bandwidth under the different scenes, promoted wiFi and bluetooth application network's smoothness, improved user experience.
In a further aspect, the embodiment of the present application provides a computer readable storage medium, on which a computer program is stored, where the computer program is executed by a processor to implement a wireless communication method of an electronic device as described above.
Additional aspects and advantages of the application will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the application.
Drawings
The foregoing and/or additional aspects and advantages of the application will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings, in which:
Fig. 1 is a schematic structural diagram of a wireless communication device of an electronic apparatus according to an embodiment of the present application;
Fig. 2 is a flow chart of a wireless communication method of an electronic device according to an embodiment of the present application;
fig. 3 is a schematic structural diagram of an electronic device according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of another electronic device according to an embodiment of the present application.
Detailed Description
Reference will now be made in detail to embodiments of the present application, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the like or similar elements throughout. The embodiments described below by referring to the drawings are illustrative and intended to explain the present application and should not be construed as limiting the application.
Aiming at the problems that in the related art, wiFi and Bluetooth share a WiFi antenna in a time division multiplexing mode, the network bandwidth of WiFi and Bluetooth is limited, the bandwidth of WiFi or Bluetooth often cannot meet the actual use requirement of upper-layer application, the use of WiFi or Bluetooth is blocked, and the user experience is affected, the embodiment of the application provides the wireless communication device of the electronic equipment.
The wireless communication device of the electronic equipment comprises a WiFi antenna, a WiFi chip connected with the WiFi antenna, a Bluetooth chip and a controller, wherein the controller controls the WiFi chip and the Bluetooth chip to time-division multiplex the WiFi antenna, acquires a WiFi use state and a Bluetooth use state of the electronic equipment, and adjusts the time division ratio between the WiFi chip and the Bluetooth chip according to the WiFi use state and the Bluetooth use state of the electronic equipment. From this, through wiFi service condition and bluetooth service condition according to electronic equipment, the time division ratio between dynamic adjustment wiFi chip and the bluetooth chip to make wiFi chip and bluetooth chip accord with current user demand to the occupation time of wiFi antenna, realized maximize wiFi or bluetooth's use bandwidth under the different scenes, promoted wiFi and bluetooth application network's smoothness, improved user experience.
The wireless communication apparatus, the method, the electronic device and the storage medium of the electronic device provided by the application are described in detail below with reference to the accompanying drawings.
Fig. 1 is a schematic structural diagram of a wireless communication device of an electronic apparatus according to an embodiment of the present application.
As shown in fig. 1, a wireless communication apparatus 10 of the electronic device includes: a WiFi antenna 11, a WiFi chip 12, a bluetooth chip 13, and a controller 14.
The WiFi chip 12 is connected with the WiFi antenna 11; the Bluetooth chip 13 is connected with the WiFi antenna 11; the controller 14 controls the WiFi chip 12 and the bluetooth chip 13 to time-division multiplex the WiFi antenna 11, obtains a WiFi usage state and a bluetooth usage state of the electronic device, and adjusts a time division ratio between the WiFi chip 12 and the bluetooth chip 13 according to the WiFi usage state and the bluetooth usage state of the electronic device.
It should be noted that, today's electronic devices, such as mobile phones and tablet computers, support both WiFi and bluetooth connection functions. However, due to the limitation of hardware conditions of the electronic equipment, only one WiFi antenna is usually arranged in the electronic equipment, and WiFi and Bluetooth share the WiFi antenna in a time division multiplexing mode, so that the number of antennas in the electronic equipment is reduced, and the space cost of the electronic equipment is saved.
In the embodiment of the application, the WiFi chip 12 and the bluetooth chip 13 can share the WiFi antenna 11 in a time division multiplexing manner, so that the WiFi chip 12 and the bluetooth chip 13 can be respectively connected with the WiFi antenna 11, thereby achieving the purpose of sharing the WiFi antenna 11.
It should be noted that, when the WiFi chip 12 and the bluetooth chip 13 share the WiFi antenna 11 in a time division multiplexing manner, if the occupation time of the WiFi chip 12 and the bluetooth chip 13 to the WiFi antenna 11 is allocated according to a fixed time division ratio, the occupation time of the WiFi chip 12 and the bluetooth chip 13 to the WiFi antenna 11 is easy to be caused to be inconsistent with the current use requirement, so that the bandwidths of the WiFi network and the bluetooth network are limited, and the WiFi or bluetooth use is blocked.
For example, when the occupation time of the WiFi chip 12 and the bluetooth chip 13 to the WiFi antenna 11 is evenly distributed according to a fixed time division ratio of 1:1, when the use scenario is mainly a WiFi network, the bandwidth of the WiFi network is limited by the evenly distributed occupation time, so that the WiFi network uses a clip; when the usage scenario is mainly a bluetooth network, the average allocation of the occupied time can limit the bandwidth of the bluetooth network, so that the bluetooth network is blocked.
As a possible implementation manner, the controller 14 can control the time division multiplexing of the WiFi chip 12 and the bluetooth chip 13 to the WiFi antenna 11, the controller 14 can also obtain the current WiFi use state and bluetooth use state of the electronic device, and adjust the time division ratio between the WiFi chip 12 and the bluetooth chip 13 according to the obtained WiFi use state and bluetooth use state of the electronic device, and then control the time division multiplexing of the WiFi chip 12 and the bluetooth chip 13 to the WiFi antenna 11 according to the adjusted time division ratio, so that the use time of the WiFi chip 12 and the bluetooth chip 13 to the WiFi antenna 11 accords with the current use requirement of the electronic device to the WiFi network and the bluetooth network bandwidth, and the smoothness of the WiFi network and the bluetooth network is improved.
Optionally, the controller 14 may acquire the WiFi usage status and the bluetooth usage status of the electronic device from the system information of the electronic device at preset time intervals. Specifically, the current data sending and receiving rate of the WiFi network can be obtained from the system information of the electronic device, so as to determine whether the WiFi is currently used, and whether bluetooth is in an on state and in a use state when the bluetooth is in an on state.
It should be noted that, in actual use, the time interval for the controller 14 to acquire the WiFi usage state and the bluetooth usage state of the electronic device may be determined according to parameters such as actual usage requirement and performance of the electronic device, so as to ensure that the WiFi usage state and the bluetooth usage state can be acquired in time without affecting normal use of the electronic device. For example, it may be 3 seconds, 5 seconds, 10 seconds, etc.
Optionally, in the embodiment of the present application, the time division ratio between the WiFi chip 12 and the bluetooth chip 13 may be adjusted through an interface provided in the bluetooth chip 13. Specifically, the controller 14 can adjust the time-division duty ratio of the bluetooth chip 13 through the interface provided in the bluetooth chip 13, thereby achieving the purpose of adjusting the time-division ratio between the WiFi chip 12 and the bluetooth chip 13.
For example, when the current time division ratio between the WiFi chip 12 and the bluetooth chip 13 is 1:1, that is, the time division duty ratio of the bluetooth chip 13 is 50%, and the controller 14 determines that the time division ratio between the WiFi chip 12 and the bluetooth chip 13 needs to be adjusted to 7:3 according to the acquired WiFi usage state and bluetooth usage state of the electronic device, the controller 14 may adjust the time division duty ratio of the bluetooth chip to 30% through the interface provided by the bluetooth chip 13, so that the time division ratio between the WiFi chip 12 and the bluetooth chip 13 is adjusted to 7:3.
Alternatively, the time division ratio between the WiFi chip 12 and the bluetooth chip 13 may also be represented by a pulse width modulation (Pulse Width Modulation, abbreviated as PWM) signal, so that the controller 14 may adjust the time division ratio between the WiFi chip 12 and the bluetooth chip 13 by adjusting the duty cycle of the PWM signal.
Specifically, the high level and the low level of the PWM signal may be used to respectively indicate the occupation of the WiFi antenna 11 by the WiFi chip 12 and the bluetooth chip 13, so that the controller 14 adjusts the time division ratio between the WiFi chip 12 and the bluetooth chip 13 by adjusting the duty ratio of the PWM. For example, when the duty ratio of the PWM signal is 50%, the time division ratio between the WiFi chip 12 and the bluetooth chip 13 is 1:1.
For example, when the PWM signal is preset to be at a high level, the WiFi chip 12 occupies a WiFi antenna; when the PWM signal is at a low level, the bluetooth chip 13 occupies the WiFi antenna. The current duty cycle of the PWM signal is 80%, i.e. the time division ratio between the WiFi chip 12 and the bluetooth chip 13 is 4:1. The controller 14 determines that the time division ratio between the WiFi chip 12 and the bluetooth chip 13 needs to be adjusted to 1:1 according to the currently acquired WiFi usage state and bluetooth usage state of the electronic device, and the controller 14 may adjust the duty ratio of the PWM signal to 50%, so that the time division ratio between the WiFi chip 12 and the bluetooth chip 13 is adjusted to 1:1.
It should be noted that, the adjustment manner of the time division ratio between the WiFi chip 12 and the bluetooth chip 13 may include, but is not limited to, the above-listed cases. In actual use, the adjustment mode of the time division ratio between the WiFi chip 12 and the bluetooth chip 13 can be determined according to the actual needs and performance parameters of the electronic device, and the embodiment of the application is not limited in this regard.
The wireless communication device of the electronic equipment comprises a WiFi antenna, a WiFi chip connected with the WiFi antenna, a Bluetooth chip and a controller, wherein the controller controls the WiFi chip and the Bluetooth chip to time-division multiplex the WiFi antenna, acquires a WiFi use state and a Bluetooth use state of the electronic equipment, and adjusts the time division ratio between the WiFi chip and the Bluetooth chip according to the WiFi use state and the Bluetooth use state of the electronic equipment. From this, through wiFi service condition and bluetooth service condition according to electronic equipment, the time division ratio between dynamic adjustment wiFi chip and the bluetooth chip to make wiFi chip and bluetooth chip accord with current user demand to the occupation time of wiFi antenna, realized maximize wiFi or bluetooth's use bandwidth under the different scenes, promoted wiFi and bluetooth application network's smoothness, improved user experience.
In one possible implementation of the present application, the controller may make different adjustments to the time division ratio between the WiFi chip and the bluetooth chip according to different usage scenarios of the electronic device. The process of adjusting the time division ratio between the WiFi chip and the bluetooth chip will be described in detail with reference to the following embodiments.
Based on the embodiment shown in fig. 1, the controller 14 may also be configured to:
and when the WiFi use state is in an unconnected state and the Bluetooth use state is in an unconnected state, distributing the use time of the WiFi chip 12 and the Bluetooth chip 13 to the WiFi antenna 11 according to a first time ratio.
It can be understood that if the WiFi usage status and the bluetooth usage status in the electronic device are both unconnected, it can be determined that the bandwidth requirements on the WiFi network and the bluetooth network are low in the current usage scenario, and the usage time of the WiFi antenna 11 by the WiFi chip 12 and the bluetooth chip 13 can be allocated according to the first time ratio. The first time ratio may be 1:1, that is, when the WiFi use state and the bluetooth use state are both unconnected, the use time of the WiFi antenna 11 by the WiFi chip 12 and the bluetooth chip 13 may be fairly allocated.
Furthermore, the WiFi use state is an unconnected state, and the Bluetooth use state is a connected state and when the Bluetooth use state is in use, the occupation time of the Bluetooth chip to the WiFi antenna can be properly increased. That is, in one possible implementation manner of the embodiment of the present application, the controller 14 may be further configured to:
And when the WiFi use state is in an unconnected state and the Bluetooth use state is in a connected and in-use state, distributing the use time of the WiFi chip and the Bluetooth chip for the WiFi antenna according to a second time ratio, wherein the use time of the Bluetooth chip for the WiFi antenna is longer than the use time of the WiFi chip for the WiFi antenna in the second time ratio.
In the embodiment of the application, if the WiFi use state is in the unconnected state and the bluetooth use state is in the connected and in-use state in the electronic device, it can be determined that the bandwidth requirement on the bluetooth network is higher and the bandwidth requirement on the WiFi network is lower in the current use scenario, so that the use time of the WiFi antenna 11 by the bluetooth chip 13 can be appropriately increased, that is, the use time of the WiFi antenna 11 by the WiFi chip 12 and the bluetooth chip 13 can be allocated according to the second time division ratio. When the service time of the WiFi chip 12 and the bluetooth chip 13 to the WiFi antenna 11 is allocated in the second time division ratio, the service time of the bluetooth chip 13 to the WiFi antenna 11 is longer than the service time of the WiFi chip 12 to the WiFi antenna 11 in each time division multiplexing period, that is, in the second time division ratio, the value range of the time division duty ratio of the bluetooth chip 13 is (0.5, 1), thereby reducing the scanning frequency of WiFi, improving the fluency of the bluetooth network, and meeting the use requirement of the current use scenario.
It should be noted that, in actual use, the specific value of the second time ratio may be determined according to the specific use condition of the bluetooth network on the premise that the value range of the time division duty ratio of the bluetooth chip 13 is (0.5, 1), which is not limited in the embodiment of the present application.
Further, when the use state of the WiFi is a connected state and the use state of the bluetooth is an unconnected state, whether the WiFi network is currently used by an upper layer application or not can be further determined according to the transmission rate of the WiFi network, so as to determine the time division ratio between the WiFi chip and the bluetooth chip. That is, in one possible implementation manner of the embodiment of the present application, the controller 14 may be further configured to:
And further judging whether the WiFi transmission rate is larger than a preset threshold value or not when the WiFi use state is in a connected state and the Bluetooth use state is in an unconnected or unused state, if so, distributing the use time of the WiFi chip and the Bluetooth chip for the WiFi antenna according to a third time division ratio, wherein the use time of the Bluetooth chip for the WiFi antenna is smaller than the use time of the WiFi chip for the WiFi antenna in the third time division ratio, and if so, keeping the first time division ratio.
In the embodiment of the present application, when the WiFi usage status is in the connected status and the bluetooth usage status is in the unconnected or unused status, whether the usage time of the WiFi antenna 11 by the WiFi chip 12 needs to be properly increased may be further determined according to the usage situation of the WiFi network by the upper layer application.
Specifically, according to the relation between the transmission rate of the WiFi and the preset threshold, the usage situation of the upper layer application on the WiFi network can be determined, that is, whether the current WiFi network is used by the upper layer application or not. If the transmission rate of the WiFi is greater than the preset threshold, it may be determined that the WiFi network is currently being used by an upper layer application, that is, in the current use scenario, the bandwidth requirement on the WiFi network is higher, and the requirement on the bluetooth network is lower, so that the use time of the WiFi chip 12 for the WiFi antenna may be appropriately increased, that is, the use time of the WiFi chip 12 and the bluetooth chip 13 for the WiFi antenna 11 may be allocated according to the third time division ratio. When the third time division ratio is used for distributing the service time of the WiFi chip 12 and the bluetooth chip 13 to the WiFi antenna 11, the service time of the bluetooth chip 13 to the WiFi antenna 11 is smaller than the service time of the WiFi chip 12 to the WiFi antenna 11 in each time division multiplexing period, that is, in the third time division ratio, the value range of the time division duty ratio of the bluetooth chip 13 is [0,0.5 ], thereby reducing the occupation time of the bluetooth chip 13 to the WiFi antenna 11, improving the fluency of the WiFi network, and meeting the use requirement of the current use scene.
Correspondingly, if the transmission rate of the WiFi is smaller than the preset threshold, it can be determined that the WiFi network is not currently used by the upper layer application, that is, under the current use scenario, there is no special requirement on the bandwidths of the WiFi network and the bluetooth network, and then the use time of the WiFi antenna 11 by the WiFi chip 12 and the bluetooth chip 13 can be fairly allocated, that is, the first time ratio can be maintained.
The preset threshold of the transmission rate of the WiFi may be preset according to the transmission rate required by each application in the electronic device when the WiFi is used. For example, after the transmission rate of each application in the electronic device when WiFi is used is counted, it is determined that the transmission rate of application a when WiFi is used is the lowest in each application, and the preset threshold of the WiFi transmission rate may be preset to 20K.
It should be noted that, in actual use, the specific value of the third time ratio may be determined according to the specific use condition of the WiFi network on the premise that the value range of the time division duty ratio of the bluetooth chip 13 is [0,0.5 ], which is not limited in the embodiment of the present application.
Furthermore, when the WiFi network and the Bluetooth network are in the connected state, the time division ratio between the WiFi chip and the Bluetooth chip can be adjusted according to the current specific use conditions of the WiFi network and the Bluetooth network. That is, in one possible implementation manner of the embodiment of the present application, the controller 14 may be further configured to:
and when the WiFi use state is a connected state, the Bluetooth use state is a connected and in-use state, further judging whether the WiFi transmission rate is larger than the preset threshold, if so, keeping the first time ratio, and if not, distributing the use time of the WiFi chip and the Bluetooth chip to the WiFi antenna according to a fourth time ratio, wherein in the fourth time ratio, the use time of the Bluetooth chip to the WiFi antenna is larger than the use time of the WiFi chip to the WiFi antenna.
In the embodiment of the application, when the WiFi use state and the bluetooth use state are both connected and the bluetooth use state is in use, the time ratio between the WiFi chip 12 and the bluetooth chip 13 can be further adjusted according to the use condition of the upper layer application on the WiFi network.
Specifically, according to the relation between the transmission rate of the WiFi and the preset threshold, the usage situation of the upper layer application on the WiFi network can be determined, that is, whether the current WiFi network is used by the upper layer application or not. If the transmission rate of the WiFi is greater than the preset threshold, it may be determined that the WiFi network is currently being used by an upper layer application, that is, in the current use scenario, the WiFi network and the bluetooth network both need a certain bandwidth to ensure normal data transmission, and then the use time of the WiFi chip 12 and the bluetooth chip 13 for the WiFi antenna 11 may be fairly allocated, that is, the first time ratio may be maintained.
Correspondingly, if the transmission rate of the WiFi is smaller than the preset threshold, it can be determined that the WiFi network is not currently used by the upper layer application, that is, in the current use scenario, the bandwidth requirement on the bluetooth network is higher, and the bandwidth requirement on the WiFi network is lower, so that the use time of the WiFi antenna 11 by the bluetooth chip 13 can be appropriately increased, that is, the use time of the WiFi chip 12 and the use time of the WiFi antenna 11 by the bluetooth chip 13 are allocated according to the fourth time ratio. When the service time of the WiFi chip 12 and the bluetooth chip 13 to the WiFi antenna 11 is allocated according to the fourth time ratio, the service time of the bluetooth chip 13 to the WiFi antenna 11 is longer than the service time of the WiFi chip 12 to the WiFi antenna 11 in each time division multiplexing period, that is, in the third time ratio, the value range of the time division duty ratio of the bluetooth chip 13 is (0.5, 1), thereby reducing the scanning frequency of WiFi, improving the fluency of the bluetooth network, and meeting the use requirement of the current use scenario.
The fourth time ratio may be the same as the second time ratio or may be different from the second time ratio. In actual use, the specific value of the fourth time percentage may be determined according to the specific use condition of the bluetooth network on the premise that the value range of the time division duty ratio of the bluetooth chip 13 is (0.5, 1), which is not limited in the embodiment of the present application.
The wireless communication device of the electronic equipment comprises a WiFi antenna, a WiFi chip connected with the WiFi antenna, a Bluetooth chip and a controller, wherein the controller controls the WiFi chip and the Bluetooth chip to time-division multiplex the WiFi antenna, acquires a WiFi use state and a Bluetooth use state of the electronic equipment, and adjusts the time division ratio between the WiFi chip and the Bluetooth chip according to the WiFi use state and the Bluetooth use state of the electronic equipment. From this, through wiFi service condition and bluetooth service condition according to electronic equipment, the time division ratio between dynamic adjustment wiFi chip and the bluetooth chip to make wiFi chip and bluetooth chip accord with current user demand to the occupation time of wiFi antenna, realized maximize wiFi or bluetooth's use bandwidth under the different scenes, promoted wiFi and bluetooth application network's smoothness, improved user experience.
In order to achieve the above embodiment, the present application further provides a wireless communication method of an electronic device.
The following describes in detail a wireless communication method of an electronic device according to an embodiment of the present application based on the wireless communication apparatus of an electronic device.
Fig. 2 is a flow chart of a wireless communication method of an electronic device according to an embodiment of the present application.
As shown in fig. 2, the wireless communication method of the electronic device includes the following steps:
step 101, acquiring a WiFi use state and a Bluetooth use state of the electronic equipment.
It should be noted that, today's electronic devices, such as mobile phones and tablet computers, support both WiFi and bluetooth connection functions. However, due to the limitation of hardware conditions of the electronic equipment, only one WiFi antenna is usually arranged in the electronic equipment, and WiFi and Bluetooth share the WiFi antenna in a time division multiplexing mode, so that the number of antennas in the electronic equipment is reduced, and the space cost of the electronic equipment is saved.
In the embodiment of the application, the WiFi chip and the Bluetooth chip can share the WiFi antenna in a time division multiplexing mode. It should be noted that, when the WiFi chip and the bluetooth chip share the WiFi antenna through the mode of time division multiplexing, if allocate the occupation time of WiFi chip and bluetooth chip to the WiFi antenna according to fixed time division ratio, the occupation time of WiFi chip and bluetooth chip to the WiFi antenna is not in line with current user demand easily to limited the bandwidth of WiFi network and bluetooth network, caused wiFi or bluetooth to use the katon.
For example, at a fixed time division ratio of 1:1, when the occupied time of the WiFi chip and the Bluetooth chip to the WiFi antenna is distributed evenly, when the use scene is mainly a WiFi network, the bandwidth of the WiFi network can be limited by the average occupied time distribution, and the WiFi network is blocked; when the usage scenario is mainly a bluetooth network, the average allocation of the occupied time can limit the bandwidth of the bluetooth network, so that the bluetooth network is blocked.
As a possible implementation manner, the time division multiplexing of the WiFi chip and the bluetooth chip to the WiFi antenna 11 may be controlled by the controller, and the current WiFi use state and bluetooth use state of the electronic device may be obtained by the controller, and the time division ratio between the WiFi chip and the bluetooth chip may be adjusted according to the obtained WiFi use state and bluetooth use state of the electronic device.
Optionally, the WiFi usage state and the bluetooth usage state of the electronic device may be obtained from the system information of the electronic device according to a preset time interval. Specifically, the current data sending and receiving rate of the WiFi network can be obtained from the system information of the electronic device, so as to determine whether the WiFi is currently used, and whether bluetooth is in an on state and in a use state when the bluetooth is in an on state.
It should be noted that, during actual use, the time interval for acquiring the WiFi use state and the bluetooth use state of the electronic device may be determined according to parameters such as actual use requirements and performance of the electronic device, so as to ensure that the WiFi use state and the bluetooth use state can be acquired in time without affecting normal use of the electronic device. For example, it may be 3 seconds, 5 seconds, 10 seconds, etc.
And 102, determining the time division ratio between the WiFi chip and the Bluetooth chip in the electronic equipment according to the WiFi use state and the Bluetooth use state of the electronic equipment.
In the embodiment of the application, after the WiFi use state and the Bluetooth use state of the electronic equipment are obtained, the time division ratio between the WiFi chip and the Bluetooth chip can be adjusted according to the obtained WiFi use state and Bluetooth use state of the electronic equipment, so that the use time of the WiFi chip and the Bluetooth chip for the WiFi antenna accords with the current use requirement of the electronic equipment for the WiFi network and the Bluetooth network bandwidth, and the fluency of the WiFi network and the Bluetooth network is improved.
Optionally, in the embodiment of the present application, the time division ratio between the WiFi chip and the bluetooth chip may be adjusted through an interface provided in the bluetooth chip. Specifically, the time division duty ratio of the Bluetooth chip can be adjusted through an interface provided in the Bluetooth chip, so that the purpose of adjusting the time division ratio between the WiFi chip and the Bluetooth chip is achieved.
For example, the current time division ratio between the WiFi chip and the bluetooth chip is 1:1, that is, the time division duty ratio of the bluetooth chip is 50%, according to the acquired WiFi usage state and bluetooth usage state of the electronic device, it is determined that the time division ratio between the WiFi chip and the bluetooth chip needs to be adjusted to 7:3, and then the time division duty ratio of the bluetooth chip can be adjusted to 30% through an interface provided by the bluetooth chip, so that the time division ratio between the WiFi chip and the bluetooth chip is adjusted to 7:3.
Alternatively, the time ratio between the WiFi chip and the bluetooth chip may also be represented by a pulse width modulation (Pulse Width Modulation, abbreviated as PWM) signal, so that the time ratio between the WiFi chip and the bluetooth chip may be adjusted by adjusting the duty cycle of the PWM signal.
Specifically, the high level and the low level of the PWM signal can be used for respectively representing the occupation of the WiFi chip and the Bluetooth chip to the WiFi antenna, and then the adjustment of the time division ratio between the WiFi chip and the Bluetooth chip is realized by adjusting the duty ratio of PWM. For example, when the duty ratio of the PWM signal is 50%, the time division ratio between the WiFi chip and the bluetooth chip is 1:1.
For example, when the PWM signal is preset to be at a high level, the WiFi chip occupies the WiFi antenna; when the PWM signal is at a low level, the bluetooth chip occupies the WiFi antenna. The current duty cycle of the PWM signal is 80%, i.e. the time division ratio between the WiFi chip and the bluetooth chip is 4:1. According to the currently acquired WiFi use state and Bluetooth use state of the electronic device, if it is determined that the time division ratio between the WiFi chip and the Bluetooth chip needs to be adjusted to be 1:1, the duty ratio of the PWM signal can be adjusted to be 50%, so that the time division ratio between the WiFi chip and the Bluetooth chip is adjusted to be 1:1.
It should be noted that, the adjustment manner of the time ratio between the WiFi chip and the bluetooth chip may include, but is not limited to, the above-listed situations. In actual use, the adjustment mode of the time division ratio between the WiFi chip and the Bluetooth chip can be determined according to actual needs, performance parameters of the electronic equipment and the like, and the embodiment of the application is not limited to the adjustment mode.
Further, different adjustment can be made to the time division ratio between the WiFi chip and the Bluetooth chip according to different use scenes of the electronic equipment. That is, in one possible implementation manner of the embodiment of the present application, the step 102 may include:
and when the WiFi use state is in an unconnected state and the Bluetooth use state is in an unconnected state, distributing the use time of the WiFi chip and the Bluetooth chip to the WiFi antenna according to a first time ratio.
It can be understood that if the WiFi usage status and the bluetooth usage status in the electronic device are both unconnected, it can be determined that the bandwidth requirements on the WiFi network and the bluetooth network are low in the current usage scenario, and the usage time of the WiFi chip and the bluetooth chip on the WiFi antenna can be allocated according to the first time ratio. The first time ratio may be 1:1, that is, when the WiFi use state and the bluetooth use state are both unconnected, the use time of the WiFi chip and the bluetooth chip to the WiFi antenna may be fairly allocated.
Furthermore, the WiFi use state is an unconnected state, and the Bluetooth use state is a connected state and when the Bluetooth use state is in use, the occupation time of the Bluetooth chip to the WiFi antenna can be properly increased. That is, in one possible implementation manner of the embodiment of the present application, the step 102 may include:
And when the WiFi use state is in an unconnected state and the Bluetooth use state is in a connected and in-use state, distributing the use time of the WiFi chip and the Bluetooth chip for the WiFi antenna according to a second time ratio, wherein the use time of the Bluetooth chip for the WiFi antenna is longer than the use time of the WiFi chip for the WiFi antenna in the second time ratio.
In the embodiment of the application, if the WiFi use state in the electronic equipment is in the unconnected state and the Bluetooth use state is in the connected and in-use state, the bandwidth requirement on the Bluetooth network is higher and the bandwidth requirement on the WiFi network is lower under the current use scene can be determined, so that the use time of the WiFi antenna by the Bluetooth chip can be properly increased, namely the use time of the WiFi antenna by the WiFi chip and the Bluetooth chip can be distributed according to the second time division ratio. When the service time of the WiFi chip and the service time of the Bluetooth chip to the WiFi antenna are distributed according to the second time division ratio, the service time of the Bluetooth chip to the WiFi antenna is longer than the service time of the WiFi chip to the WiFi antenna in each time division multiplexing period, namely, in the second time division ratio, the value range of the time division duty ratio of the Bluetooth chip is (0.5, 1), so that the WiFi scanning frequency is reduced, the smoothness of a Bluetooth network is improved, and the service requirement of a current service scene is met.
It should be noted that, in actual use, the specific value of the second time-division ratio may be determined according to the specific use condition of the bluetooth network on the premise that the value range of the time-division duty ratio of the bluetooth chip is (0.5, 1), which is not limited in the embodiment of the present application.
Further, when the use state of the WiFi is a connected state and the use state of the bluetooth is an unconnected state, whether the WiFi network is currently used by an upper layer application or not can be further determined according to the transmission rate of the WiFi network, so as to determine the time division ratio between the WiFi chip and the bluetooth chip. That is, in one possible implementation manner of the embodiment of the present application, the step 102 may include:
And further judging whether the WiFi transmission rate is larger than a preset threshold value or not when the WiFi use state is in a connected state and the Bluetooth use state is in an unconnected or unused state, if so, distributing the use time of the WiFi chip and the Bluetooth chip for the WiFi antenna according to a third time division ratio, wherein the use time of the Bluetooth chip for the WiFi antenna is smaller than the use time of the WiFi chip for the WiFi antenna in the third time division ratio, and if so, keeping the first time division ratio.
In the embodiment of the application, when the WiFi use state is the connected state and the Bluetooth use state is the unconnected or unused state, whether the use time of the WiFi chip to the WiFi antenna needs to be properly increased can be further determined according to the use condition of the upper layer application to the WiFi network.
Specifically, according to the relation between the transmission rate of the WiFi and the preset threshold, the usage situation of the upper layer application on the WiFi network can be determined, that is, whether the current WiFi network is used by the upper layer application or not. If the transmission rate of the WiFi is greater than the preset threshold, it can be determined that the WiFi network is currently being used by an upper layer application, namely, the bandwidth requirement on the WiFi network is higher and the requirement on the Bluetooth network is lower under the current use scene, so that the use time of the WiFi chip to the WiFi antenna can be appropriately increased, namely, the use time of the WiFi chip and the Bluetooth chip to the WiFi antenna can be allocated according to a third time division ratio. When the service time of the WiFi chip and the service time of the Bluetooth chip to the WiFi antenna are distributed according to the third time division ratio, the service time of the Bluetooth chip to the WiFi antenna is smaller than the service time of the WiFi chip to the WiFi antenna in each time division multiplexing period, namely, in the third time division ratio, the value range of the time division duty ratio of the Bluetooth chip is [0,0.5 ], so that the occupied time of the Bluetooth chip to the WiFi antenna is reduced, the fluency of a WiFi network is improved, and the service requirement of a current service scene is met.
Correspondingly, if the transmission rate of the WiFi is smaller than the preset threshold, it can be determined that the WiFi network is not currently used by the upper layer application, namely, under the current use situation, no special requirements are made on the bandwidths of the WiFi network and the Bluetooth network, and the use time of the WiFi chip and the Bluetooth chip for the WiFi antenna can be fairly distributed, namely, the first time ratio can be kept.
The preset threshold of the transmission rate of the WiFi may be preset according to the transmission rate required by each application in the electronic device when the WiFi is used. For example, after the transmission rate of each application in the electronic device when WiFi is used is counted, it is determined that the transmission rate of application a when WiFi is used is the lowest in each application, and the preset threshold of the WiFi transmission rate may be preset to 20K.
It should be noted that, in actual use, the specific value of the third time-sharing ratio may be determined according to the specific use condition of the WiFi network on the premise that the value range of the time-sharing duty ratio of the bluetooth chip is [0, 0.5), which is not limited in the embodiment of the present application.
Furthermore, when the WiFi network and the Bluetooth network are in the connected state, the time division ratio between the WiFi chip and the Bluetooth chip can be adjusted according to the current specific use conditions of the WiFi network and the Bluetooth network. That is, in one possible implementation manner of the embodiment of the present application, the step 102 may include:
and when the WiFi use state is a connected state, the Bluetooth use state is a connected and in-use state, further judging whether the WiFi transmission rate is larger than the preset threshold, if so, keeping the first time ratio, and if not, distributing the use time of the WiFi chip and the Bluetooth chip to the WiFi antenna according to a fourth time ratio, wherein in the fourth time ratio, the use time of the Bluetooth chip to the WiFi antenna is larger than the use time of the WiFi chip to the WiFi antenna.
In the embodiment of the application, when the WiFi use state and the bluetooth use state are both connected and the bluetooth use state is in use, the time division ratio between the WiFi chip and the bluetooth chip 13 can be further determined according to the use condition of the upper layer application on the WiFi network.
Specifically, according to the relation between the transmission rate of the WiFi and the preset threshold, the usage situation of the upper layer application on the WiFi network can be determined, that is, whether the current WiFi network is used by the upper layer application or not. If the transmission rate of the WiFi is greater than the preset threshold, it can be determined that the WiFi network is currently being used by an upper layer application, namely, under the current use scene, the WiFi network and the Bluetooth network both need a certain bandwidth so as to ensure normal data transmission, and then the use time of the WiFi chip and the Bluetooth chip for the WiFi antenna can be fairly distributed, namely, the first time ratio can be kept.
Correspondingly, if the transmission rate of the WiFi is smaller than the preset threshold, it can be determined that the WiFi network is not currently used by the upper layer application, namely, the bandwidth requirement on the Bluetooth network is higher and the bandwidth requirement on the WiFi network is lower in the current use scene, so that the use time of the WiFi antenna by the Bluetooth chip can be appropriately increased, namely, the use time of the WiFi chip and the use time of the WiFi antenna by the Bluetooth chip are distributed according to the fourth time ratio. When the service time of the WiFi chip and the service time of the Bluetooth chip to the WiFi antenna are distributed according to the fourth time ratio, the service time of the Bluetooth chip to the WiFi antenna is longer than the service time of the WiFi chip to the WiFi antenna in each time division multiplexing period, namely, in the third time ratio, the value range of the time division duty ratio of the Bluetooth chip is (0.5, 1), so that the scanning frequency of WiFi is reduced, the fluency of a Bluetooth network is improved, and the service requirement of the current service scene is met.
The fourth time ratio may be the same as the second time ratio or may be different from the second time ratio. In actual use, the specific value of the fourth time percentage can be determined according to the specific use condition of the bluetooth network on the premise that the time division duty ratio of the bluetooth chip is in the value range of (0.5, 1), and the embodiment of the application is not limited to the specific value.
And step 103, controlling the WiFi chip and the Bluetooth chip to time-division multiplex the WiFi antenna in the electronic equipment according to the time ratio.
In the embodiment of the application, after the time division ratio between the WiFi chip and the Bluetooth chip is determined, the WiFi antenna in the WiFi chip and Bluetooth chip ten-time division multiplexing electronic equipment can be controlled according to the determined time division ratio, so that the use time of the WiFi chip and the Bluetooth chip for the WiFi antenna accords with the current use requirement of the electronic equipment for the WiFi network and the Bluetooth network bandwidth, and the fluency of the WiFi network and the Bluetooth network is improved.
The wireless communication method of the electronic equipment provided by the embodiment of the application can acquire the WiFi use state and the Bluetooth use state of the electronic equipment, and determine the time division ratio between the WiFi chip and the Bluetooth chip in the electronic equipment according to the WiFi use state and the Bluetooth use state of the electronic equipment, thereby controlling the WiFi antenna in the WiFi chip and the Bluetooth chip time division multiplexing electronic equipment according to the time division ratio. From this, through wiFi service condition and bluetooth service condition according to electronic equipment, the time division ratio between dynamic adjustment wiFi chip and the bluetooth chip to make wiFi chip and bluetooth chip accord with current user demand to the occupation time of wiFi antenna, realized maximize wiFi or bluetooth's use bandwidth under the different scenes, promoted wiFi and bluetooth application network's smoothness, improved user experience.
In order to achieve the above embodiment, the present application further provides an electronic device.
Fig. 3 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
As shown in fig. 3, the electronic device 200 includes: the wireless communication device 10, the memory 210, the processor 220, and the computer program stored in the memory and capable of running on the processor, when the processor executes the program, the wireless communication method of the electronic device according to the embodiment of the present application is implemented.
As shown in fig. 4, the electronic device 200 provided in the embodiment of the present application may further include:
The memory 210 and the processor 220, the bus 230 connecting different components (including the memory 210 and the processor 220), the memory 210 stores a computer program, and the processor 220 implements the wireless communication method of the electronic device according to the embodiment of the present application when executing the program.
Bus 230 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor, or a local bus using any of a variety of bus architectures. By way of example, and not limitation, such architectures include Industry Standard Architecture (ISA) bus, micro channel architecture (MAC) bus, enhanced ISA bus, video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
Electronic device 200 typically includes a variety of electronic device readable media. Such media can be any available media that is accessible by electronic device 200 and includes both volatile and nonvolatile media, removable and non-removable media.
Memory 210 may also include computer system readable media in the form of volatile memory, such as Random Access Memory (RAM) 240 and/or cache memory 250. The electronic device 200 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 260 may be used to read from or write to a non-removable, non-volatile magnetic media (not shown in FIG. 4, commonly referred to as a "hard disk drive"). Although not shown in fig. 4, a magnetic disk drive for reading from and writing to a removable non-volatile magnetic disk (e.g., a "floppy disk"), and an optical disk drive for reading from or writing to a removable non-volatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In such cases, each drive may be coupled to bus 230 via one or more data medium interfaces. Memory 210 may include at least one program product having a set (e.g., at least one) of program modules configured to carry out the functions of embodiments of the application.
Program/utility 280 having a set (at least one) of program modules 270 may be stored in, for example, memory 210, such program modules 270 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each or some combination of which may include an implementation of a network environment. Program modules 270 generally perform the functions and/or methods of the embodiments described herein.
The electronic device 200 may also communicate with one or more external devices 290 (e.g., keyboard, pointing device, display 291, etc.), one or more devices that enable a user to interact with the electronic device 200, and/or any device (e.g., network card, modem, etc.) that enables the electronic device 200 to communicate with one or more other computing devices. Such communication may occur through an input/output (I/O) interface 292. Also, electronic device 200 may communicate with one or more networks such as a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network, such as the Internet, through network adapter 293. As shown, network adapter 293 communicates with other modules of electronic device 200 over bus 230. It should be appreciated that although not shown, other hardware and/or software modules may be used in connection with electronic device 200, including, but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, data backup storage systems, and the like.
The processor 220 executes various functional applications and data processing by running programs stored in the memory 210.
It should be noted that, the implementation process and the technical principle of the electronic device in this embodiment refer to the foregoing explanation of the wireless communication method of the electronic device in this embodiment of the present application, and are not repeated here.
The electronic device provided by the embodiment of the application can execute the wireless communication method of the electronic device, acquire the WiFi use state and the Bluetooth use state of the electronic device, determine the time division ratio between the WiFi chip and the Bluetooth chip in the electronic device according to the WiFi use state and the Bluetooth use state of the electronic device, and further control the WiFi antenna in the WiFi chip and the Bluetooth chip time division multiplexing electronic device according to the time division ratio. From this, through wiFi service condition and bluetooth service condition according to electronic equipment, the time division ratio between dynamic adjustment wiFi chip and the bluetooth chip to make wiFi chip and bluetooth chip accord with current user demand to the occupation time of wiFi antenna, realized maximize wiFi or bluetooth's use bandwidth under the different scenes, promoted wiFi and bluetooth application network's smoothness, improved user experience.
In order to implement the above embodiments, the present application also proposes a computer-readable storage medium.
Wherein the computer readable storage medium has stored thereon a computer program which, when executed by a processor, implements a wireless communication method of an electronic device according to an embodiment of the present application.
In order to achieve the foregoing embodiments, an embodiment of the present application provides a computer program, which when executed by a processor, implements a wireless communication method of an electronic device according to an embodiment of the present application.
In alternative implementations, the present embodiments may employ any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. 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 or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In this document, 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 computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, smalltalk, C ++ and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the consumer electronic device, partly on the consumer electronic device, as a stand-alone software package, partly on the consumer electronic device and partly on the remote electronic device or entirely on the remote electronic device or server. In the case of remote electronic devices, the remote electronic device may be connected to the consumer electronic device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external electronic device (e.g., connected through the internet using an internet service provider).
Other embodiments of the application will be apparent to those skilled in the art from consideration of the specification and practice of the application disclosed herein. This application is intended to cover any variations, uses, or adaptations of the application following, in general, the principles of the application and including such departures from the present disclosure as come within known or customary practice within the art to which the application pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the application being indicated by the following claims.
It is to be understood that the application is not limited to the precise arrangements and instrumentalities shown in the drawings, which have been described above, and that various modifications and changes may be effected without departing from the scope thereof. The scope of the application is limited only by the appended claims.

Claims (4)

1. A wireless communication apparatus of an electronic device, comprising:
A wireless fidelity WiFi antenna;
a WiFi chip connected with the WiFi antenna;
The Bluetooth chip is connected with the WiFi antenna;
The controller is used for controlling the WiFi chip and the Bluetooth chip to multiplex the WiFi antenna in a time division manner, acquiring a WiFi use state and a Bluetooth use state of the electronic equipment, and adjusting the time division duty ratio of the Bluetooth chip through an interface provided in the Bluetooth chip according to the WiFi use state and the Bluetooth use state of the electronic equipment so as to adjust the time division ratio between the WiFi chip and the Bluetooth chip;
The controller is configured to further determine whether a transmission rate of the WiFi is greater than a preset threshold when the WiFi usage status is in a connected status and the bluetooth usage status is in an unconnected or unused status, and if so, allocate usage time of the WiFi chip and the bluetooth chip for the WiFi antenna according to a third time ratio, where the usage time of the bluetooth chip for the WiFi antenna is less than the usage time of the WiFi chip for the WiFi antenna in the third time ratio, and if so, maintain a first time ratio, and if the first time ratio is 1:1;
the controller is configured to further determine, when the WiFi usage status is in a connected state and the bluetooth usage status is in a connected and in-use state, whether a transmission rate of the WiFi is greater than the preset threshold, if so, keep the first time ratio, and if not, allocate the use time of the WiFi chip and the bluetooth chip for the WiFi antenna according to a fourth time ratio, where in the fourth time ratio, the use time of the bluetooth chip for the WiFi antenna is greater than the use time of the WiFi chip for the WiFi antenna;
The controller is configured to allocate the service time of the WiFi chip and the bluetooth chip to the WiFi antenna according to a first time ratio when the WiFi service state is an unconnected state and the bluetooth service state is also an unconnected state;
And the controller is used for distributing the service time of the WiFi chip and the Bluetooth chip to the WiFi antenna according to a second time ratio when the WiFi service state is in an unconnected state and the Bluetooth service state is in a connected and in-service state, wherein the service time of the Bluetooth chip to the WiFi antenna is longer than the service time of the WiFi chip to the WiFi antenna in the second time ratio.
2. A method of wireless communication for an electronic device, comprising:
acquiring a WiFi use state and a Bluetooth use state of the electronic equipment;
According to the WiFi use state and the Bluetooth use state of the electronic equipment, determining the time division ratio between a WiFi chip and a Bluetooth chip in the electronic equipment;
The time division duty ratio of the Bluetooth chip is adjusted through an interface provided in the Bluetooth chip so as to control the WiFi chip and the WiFi antenna in the electronic equipment to be time division multiplexed;
the determining the time division ratio between the WiFi chip and the Bluetooth chip in the electronic device according to the WiFi use state and the Bluetooth use state of the electronic device comprises the following steps:
Further judging whether the transmission rate of the WiFi is greater than a preset threshold value or not when the WiFi use state is in a connected state and the Bluetooth use state is in an unconnected or unused state, and if so, distributing the use time of the WiFi chip and the Bluetooth chip for the WiFi antenna according to a third time-division ratio, wherein the use time of the Bluetooth chip for the WiFi antenna is smaller than the use time of the WiFi chip for the WiFi antenna in the third time-division ratio, and if so, keeping a first time-division ratio, wherein the first time-division ratio is 1:1;
the determining the time division ratio between the WiFi chip and the Bluetooth chip in the electronic device according to the WiFi use state and the Bluetooth use state of the electronic device comprises the following steps:
further judging whether the transmission rate of the WiFi is greater than the preset threshold value or not when the WiFi use state is in a connected state and the Bluetooth use state is in a connected and using state, if so, keeping the first time ratio, and if so, distributing the use time of the WiFi chip and the Bluetooth chip for the WiFi antenna according to a fourth time ratio, wherein the use time of the Bluetooth chip for the WiFi antenna is greater than the use time of the WiFi chip for the WiFi antenna in the fourth time ratio;
the determining the time division ratio between the WiFi chip and the Bluetooth chip in the electronic device according to the WiFi use state and the Bluetooth use state of the electronic device comprises the following steps:
when the WiFi use state is in an unconnected state and the Bluetooth use state is in an unconnected state, distributing the use time of the WiFi chip and the Bluetooth chip to the WiFi antenna according to a first time ratio;
the determining the time division ratio between the WiFi chip and the Bluetooth chip in the electronic device according to the WiFi use state and the Bluetooth use state of the electronic device comprises the following steps:
And when the WiFi use state is in an unconnected state and the Bluetooth use state is in a connected and in-use state, distributing the use time of the WiFi chip and the Bluetooth chip for the WiFi antenna according to a second time ratio, wherein the use time of the Bluetooth chip for the WiFi antenna is longer than the use time of the WiFi chip for the WiFi antenna in the second time ratio.
3. An electronic device, comprising: wireless communication apparatus, a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the wireless communication method of an electronic device as claimed in claim 2 when executing the computer program.
4. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the wireless communication method of an electronic device as claimed in claim 2.
CN201910470386.5A 2019-05-31 2019-05-31 Wireless communication device and method for electronic equipment, electronic equipment and storage medium Active CN112020079B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910470386.5A CN112020079B (en) 2019-05-31 2019-05-31 Wireless communication device and method for electronic equipment, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910470386.5A CN112020079B (en) 2019-05-31 2019-05-31 Wireless communication device and method for electronic equipment, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112020079A CN112020079A (en) 2020-12-01
CN112020079B true CN112020079B (en) 2024-06-25

Family

ID=73502054

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910470386.5A Active CN112020079B (en) 2019-05-31 2019-05-31 Wireless communication device and method for electronic equipment, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112020079B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112737629A (en) * 2020-12-18 2021-04-30 展讯通信(上海)有限公司 Communication method, device and electronic equipment
CN113676881B (en) * 2021-08-06 2024-05-07 Oppo广东移动通信有限公司 Equipment control method, device, electronic equipment and storage medium
CN113691668B (en) * 2021-08-17 2023-06-13 Oppo广东移动通信有限公司 Device control method, device, chip, electronic device and storage medium
CN114584959A (en) * 2022-01-26 2022-06-03 江苏金亿达能科技有限公司 A Bluetooth-Wifi dual-mode terminal device and its scheduling method
CN116017614B (en) * 2023-02-23 2023-08-11 荣耀终端有限公司 Communication method and electronic device

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109041026A (en) * 2018-08-14 2018-12-18 深圳创维数字技术有限公司 Antenna accounting setting method, device, user equipment and storage medium

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2039070A2 (en) * 2006-06-27 2009-03-25 Nxp B.V. Scheduled coexistence
JP5944004B2 (en) * 2011-10-03 2016-07-05 インテル・コーポレーション Device-to-device communication (D2D communication) mechanism
TWI526089B (en) * 2013-02-01 2016-03-11 蘋果公司 Method, apparatus and wireless device for peer-to-peer communications
US9408149B2 (en) * 2013-03-18 2016-08-02 Mediatek Inc. Method of managing communication traffic for multiple communication technologies and communication device thereof
US9642079B2 (en) * 2013-07-16 2017-05-02 Mitsubishi Electric Corporation Wireless communication device and wireless communication control method
US9648518B2 (en) * 2015-03-06 2017-05-09 Apple Inc. Dynamic selection of coexistence profiles for improved Wi-Fi/bluetooth coexistence
US9998903B2 (en) * 2016-04-04 2018-06-12 Avaya Inc. Detecting bluetooth low energy (BLE) beacons using WiFi
CN109104507A (en) * 2018-07-12 2018-12-28 Oppo广东移动通信有限公司 Electronic device and control method thereof

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109041026A (en) * 2018-08-14 2018-12-18 深圳创维数字技术有限公司 Antenna accounting setting method, device, user equipment and storage medium

Also Published As

Publication number Publication date
CN112020079A (en) 2020-12-01

Similar Documents

Publication Publication Date Title
CN112020079B (en) Wireless communication device and method for electronic equipment, electronic equipment and storage medium
US11483830B2 (en) Frequency spectral management apparatus and method, geographical location database and secondary system apparatus
US11363581B2 (en) Resource allocation determination method, resource allocation indication method, user equipment and network device
CN109451051B (en) Service request processing method and device, electronic equipment and storage medium
CN103404188A (en) Spectrum resource sharing method and base station
KR102219015B1 (en) Use of network support protocols to improve network usage
CN108513358A (en) A kind of data transmission method and device
CN111010739A (en) Physical resource block configuration method and device, 5G base station and readable storage medium
CN114286348A (en) Scheduling method, device, electronic device and medium for dynamic spectrum sharing network
AU2017439718A1 (en) Resource indication method, user equipment, network device and computer storage medium
CN112217608B (en) Data rate adjusting method and device, computer readable medium and electronic equipment
US20230171751A1 (en) Collision processing method and apparatus
CN112020142A (en) Data multiplexing transmission method, base station, terminal, and storage medium
US11785603B2 (en) Method, apparatus and non-transitory computer readable medium for selecting a PUSCH to carry UCI
CN113708902A (en) Channel information reporting for dormant bandwidth segments
CN111524059A (en) Memory utilization method, system, terminal and storage medium during image caching
CN118432687A (en) Tethered unmanned aerial vehicle management method, tethered unmanned aerial vehicle management device, tethered unmanned aerial vehicle management equipment, tethered unmanned aerial vehicle management medium and tethered unmanned aerial vehicle management product
CN115038127B (en) Resource scheduling method and device, storage medium and electronic equipment
CN111225390A (en) Network channel allocation method, mobile device and storage device
CN117750480A (en) Data transmission method and device, equipment and storage medium
CN118301676A (en) Bandwidth resource allocation method, device, electronic equipment and storage medium
CN116614892A (en) Resource scheduling method, device, equipment and storage medium
KR20240096155A (en) Base station device and resource allocation method performed in the device
EP3740017A1 (en) Resource allocation method, and network device, terminal device and computer 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
TA01 Transfer of patent application right

Effective date of registration: 20210429

Address after: 100085 Beijing, Haidian District, No. ten on the ground floor, No. 10 Baidu building, layer three

Applicant after: BAIDU ONLINE NETWORK TECHNOLOGY (BEIJING) Co.,Ltd.

Applicant after: Shanghai Xiaodu Technology Co.,Ltd.

Address before: 100085 Beijing, Haidian District, No. ten on the ground floor, No. 10 Baidu building, layer three

Applicant before: BAIDU ONLINE NETWORK TECHNOLOGY (BEIJING) Co.,Ltd.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant