CN108901077B - Antenna ratio setting method and device, user equipment and storage medium - Google Patents

Antenna ratio setting method and device, user equipment and storage medium Download PDF

Info

Publication number
CN108901077B
CN108901077B CN201810931528.9A CN201810931528A CN108901077B CN 108901077 B CN108901077 B CN 108901077B CN 201810931528 A CN201810931528 A CN 201810931528A CN 108901077 B CN108901077 B CN 108901077B
Authority
CN
China
Prior art keywords
current
bluetooth
parameter
chip
priority
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
CN201810931528.9A
Other languages
Chinese (zh)
Other versions
CN108901077A (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.)
Shenzhen Skyworth Digital Technology Co Ltd
Original Assignee
Shenzhen Skyworth Digital 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 Shenzhen Skyworth Digital Technology Co Ltd filed Critical Shenzhen Skyworth Digital Technology Co Ltd
Priority to CN201810931528.9A priority Critical patent/CN108901077B/en
Publication of CN108901077A publication Critical patent/CN108901077A/en
Application granted granted Critical
Publication of CN108901077B publication Critical patent/CN108901077B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W72/00Local resource management
    • H04W72/12Wireless traffic scheduling
    • H04W72/1215Wireless traffic scheduling for collaboration of different radio technologies
    • 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 invention discloses an antenna ratio setting method, an antenna ratio setting device, user equipment and a storage medium. The method and the device determine the corresponding current ratio parameter according to the current operating state of the Bluetooth chip, the current operating state of the WiFi chip, the current Bluetooth equipment information connected with the Bluetooth chip and the current priority parameter, and set the antenna ratio of the Bluetooth chip and the WiFi chip according to the current ratio parameter, so that the antenna ratio can be set according to actual requirements, the method and the device are closer to the use scene of a user, and the coexistence states of the Bluetooth chip and the WiFi chip are switched in real time through real-time scheduling.

Description

Antenna ratio setting method and device, user equipment and storage medium
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method and an apparatus for setting an antenna ratio, a user equipment, and a storage medium.
Background
WiFi (Wireless-Fidelity) and Bluetooth (Bluetooth for short) are two functions carried by many user devices (for example, devices such as smart phones, notebooks, tablet computers, smart speaker boxes or set-top boxes), WiFi is a technology allowing the user devices to connect to a Wireless local area network (W L AN), and is required to conform to the 802.11b/G standard and usually works in the 2.4G frequency band, and BT also works in the 2.4G frequency band, because WiFi and Bluetooth basically work in the same frequency band, if both work at the same time, there is a phenomenon of mutual interference to a greater or lesser extent.
In the prior art, the coexistence status between WiFi and bluetooth is usually fixed, and from the device being powered on to powered off, the coexistence status is one, for example: after the user equipment is powered on, the antenna occupation ratio of WiFi and Bluetooth is distributed to 8:2, which is consistent and has no dynamic adjustment, so that the coexistence state can not meet the scene requirements in certain specific scenes of the user equipment, and various coexistence problems occur.
The above is only for the purpose of assisting understanding of the technical aspects of the present invention, and does not represent an admission that the above is prior art.
Disclosure of Invention
The invention mainly aims to provide an antenna duty ratio setting method, an antenna duty ratio setting device, user equipment and a storage medium, and aims to solve the technical problems that in the prior art, the coexistence state is fixed between WiFi and Bluetooth, so that the coexistence state cannot meet the scene requirements, and further various coexistence problems occur.
In order to achieve the above object, the present invention provides an antenna ratio setting method, including the steps of:
when an information transmission instruction needing to utilize WiFi or Bluetooth is generated, determining a corresponding current information transmission scene according to the information transmission instruction;
acquiring the current operating state of a Bluetooth chip and the current operating state of a WiFi chip;
acquiring the information of the current Bluetooth equipment connected with the Bluetooth chip;
determining a corresponding current ratio parameter and a current priority parameter according to the current operating state of the Bluetooth chip, the current operating state of the WiFi chip, the current Bluetooth equipment information and the current information transmission scene;
and setting the antenna ratio of the Bluetooth chip and the WiFi chip according to the current ratio parameter, and setting the WiFi priority and the Bluetooth priority according to the current priority parameter.
Preferably, the determining the corresponding current ratio parameter and the current priority parameter according to the current operating state of the bluetooth chip, the current operating state of the WiFi chip, the current bluetooth device information, and the current information transmission scenario specifically includes:
acquiring a priority parameter to be adjusted corresponding to the current information transmission scene;
determining a corresponding occupation ratio parameter to be adjusted according to the current operation state of the Bluetooth chip, the current operation state of the WiFi chip and the current Bluetooth equipment information;
and adjusting the ratio parameter to be adjusted and the priority parameter to be adjusted according to the current operation state of the Bluetooth chip, the current operation state of the WiFi chip, the current Bluetooth equipment information and the current information transmission scene to obtain the corresponding current ratio parameter and current priority parameter.
Preferably, the acquiring the priority parameter to be adjusted corresponding to the current information transmission scenario specifically includes:
searching a priority parameter to be adjusted corresponding to the current information transmission scene in a first mapping relation, wherein the first mapping relation stores the corresponding relation between the information transmission scene and the priority parameter;
the determining of the ratio parameter to be adjusted according to the current operation state of the bluetooth chip, the current operation state of the WiFi chip, and the current bluetooth device information specifically includes:
and searching a corresponding occupation ratio parameter to be adjusted in a second mapping relation according to the current operation state of the Bluetooth chip, the current operation state of the WiFi chip and the current Bluetooth equipment information, wherein the second mapping relation stores the corresponding relation among the operation state of the Bluetooth chip, the operation state of the WiFi chip, the Bluetooth equipment information and the occupation ratio parameter.
Preferably, after the obtaining of the priority parameter to be adjusted corresponding to the current information transmission scenario, the method for setting the antenna duty ratio further includes:
storing the priority parameter to be adjusted into a first buffer;
after determining the corresponding duty ratio parameter to be adjusted according to the current operating state of the bluetooth chip, the current operating state of the WiFi chip, and the current bluetooth device information, the antenna duty ratio setting method further includes:
storing the occupation ratio parameter to be adjusted into a second buffer;
the adjusting the ratio parameter to be adjusted and the priority parameter to be adjusted according to the current operating state of the bluetooth chip, the current operating state of the WiFi chip, the current bluetooth device information, and the current information transmission scenario to obtain the corresponding current ratio parameter and current priority parameter specifically includes:
and taking out the current priority parameter from the first buffer, taking out the occupation ratio parameter to be adjusted from the second buffer, and adjusting the occupation ratio parameter to be adjusted and the priority parameter to be adjusted according to the current operation state of the Bluetooth chip, the current operation state of the WiFi chip, the current Bluetooth equipment information and the current information transmission scene to obtain the corresponding current occupation ratio parameter and the current priority parameter.
Preferably, after acquiring the current operating state of the bluetooth chip and the current operating state of the WiFi chip, the antenna duty ratio setting method further includes:
storing the current operation state of the Bluetooth chip into a third buffer, and storing the current operation state of the WiFi chip into a fourth buffer;
after the information of the current bluetooth device connected to the bluetooth chip is obtained, the antenna percentage setting method further includes:
storing the current Bluetooth equipment information to a fifth buffer;
the method for adjusting the ratio of the current bluetooth chip to the WiFi chip comprises the following steps of determining a corresponding ratio parameter to be adjusted according to the current operation state of the bluetooth chip, the current operation state of the WiFi chip and current bluetooth device information, and specifically comprises the following steps:
and taking out the current operation state of the Bluetooth chip from the third buffer, taking out the current operation state of the WiFi chip from the fourth buffer, taking out the current Bluetooth equipment information from the fifth buffer, and determining a corresponding to-be-adjusted occupation ratio parameter according to the taken-out current operation state of the Bluetooth chip, the current operation state of the WiFi chip and the current Bluetooth equipment information.
Preferably, after determining the corresponding current ratio parameter and the current priority parameter according to the current operating state of the bluetooth chip, the current operating state of the WiFi chip, the current bluetooth device information, and the current information transmission scenario, the antenna ratio setting method further includes:
updating the priority parameter to be adjusted in the first buffer to be the current priority parameter, and updating the duty ratio parameter to be adjusted in the second buffer to be the current duty ratio parameter;
the setting of the antenna duty ratio of the bluetooth chip and the WiFi chip according to the current duty ratio parameter, and the setting of the WiFi priority and the bluetooth priority according to the current priority parameter specifically include:
and taking out the current priority parameter from the first buffer, taking out the current ratio parameter from the second buffer, setting the antenna ratio of the Bluetooth chip and the WiFi chip according to the taken out current ratio parameter, and setting the WiFi priority and the Bluetooth priority according to the taken out current priority parameter.
Preferably, the current bluetooth device information includes: the device type and the device number of the current Bluetooth device connected with the Bluetooth chip.
In addition, to achieve the above object, the present invention provides an antenna duty setting device, including:
the scene determining module is used for determining a corresponding current information transmission scene according to an information transmission instruction when the information transmission instruction needing to utilize WiFi or Bluetooth is generated;
the state acquisition module is used for acquiring the current operation state of the Bluetooth chip and the current operation state of the WiFi chip;
the information acquisition module is used for acquiring the information of the current Bluetooth equipment connected with the Bluetooth chip;
the parameter determining module is used for determining corresponding current ratio parameters and current priority parameters according to the current operating state of the Bluetooth chip, the current operating state of the WiFi chip, current Bluetooth equipment information and the current information transmission scene;
and the parameter setting module is used for setting the antenna ratio of the Bluetooth chip and the WiFi chip according to the current ratio parameter and setting the WiFi priority and the Bluetooth priority according to the current priority parameter.
In addition, to achieve the above object, the present invention further provides a user equipment, including: a memory, a processor and an antenna duty cycle setting program stored on the memory and operable on the processor, the antenna duty cycle setting program when executed by the processor implementing the steps of the antenna duty cycle setting method as described above.
In addition, to achieve the above object, the present invention further provides a storage medium having stored thereon an antenna duty setting program, which when executed by a processor, implements the steps of the antenna duty setting method as described above.
The method and the device determine the corresponding current ratio parameter according to the current operating state of the Bluetooth chip, the current operating state of the WiFi chip, the current Bluetooth equipment information connected with the Bluetooth chip and the current priority parameter, and set the antenna ratio of the Bluetooth chip and the WiFi chip according to the current ratio parameter, so that the antenna ratio can be set according to actual requirements, the method and the device are closer to the use scene of a user, and the coexistence states of the Bluetooth chip and the WiFi chip are switched in real time through real-time scheduling.
Drawings
FIG. 1 is a schematic diagram of a user equipment architecture of a hardware operating environment according to an embodiment of the present invention;
fig. 2 is a schematic flowchart of a first embodiment of an antenna duty ratio setting method according to the present invention;
fig. 3 is a schematic flowchart of a second embodiment of an antenna duty ratio setting method according to the present invention;
fig. 4 is a schematic flowchart of a third embodiment of an antenna duty ratio setting method according to the present invention;
fig. 5 is a schematic flowchart of a fourth embodiment of an antenna duty ratio setting method according to the present invention;
fig. 6 is a flowchart illustrating a fifth embodiment of an antenna duty ratio setting method according to the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Referring to fig. 1, fig. 1 is a schematic structural diagram of a user equipment in a hardware operating environment according to an embodiment of the present invention.
As shown in fig. 1, the user equipment may include: a processor 1001, such as a CPU, a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may comprise a Display screen (Display), and the optional user interface 1003 may also comprise a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 1005 may be a high-speed RAM memory or a non-volatile memory (e.g., a magnetic disk memory). The memory 1005 may alternatively be a storage server separate from the processor 1001.
Specifically, the user equipment may be a device used by a user, such as a smart phone, a notebook, a tablet computer, a smart speaker box, or a set-top box, and certainly, other devices may also be used, which is not limited in this embodiment.
Those skilled in the art will appreciate that the configuration shown in fig. 1 does not constitute a limitation of the user equipment and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
As shown in fig. 1, a memory 1005, which is a storage medium, may include therein an operating system, a network communication module, a user interface module, and an antenna duty setting program.
The user equipment invokes, via the processor 1001, an antenna duty cycle setting program stored in the memory 1005, and performs the following operations:
when an information transmission instruction needing to utilize WiFi or Bluetooth is generated, determining a corresponding current information transmission scene according to the information transmission instruction;
acquiring the current operating state of a Bluetooth chip and the current operating state of a WiFi chip;
acquiring the information of the current Bluetooth equipment connected with the Bluetooth chip;
determining a corresponding current ratio parameter and a current priority parameter according to the current operating state of the Bluetooth chip, the current operating state of the WiFi chip, the current Bluetooth equipment information and the current information transmission scene;
and setting the antenna ratio of the Bluetooth chip and the WiFi chip according to the current ratio parameter, and setting the WiFi priority and the Bluetooth priority according to the current priority parameter.
Further, the processor 1001 may call the antenna duty setting program stored in the memory 1005, and further perform the following operations:
acquiring a priority parameter to be adjusted corresponding to the current information transmission scene;
determining a corresponding occupation ratio parameter to be adjusted according to the current operation state of the Bluetooth chip, the current operation state of the WiFi chip and the current Bluetooth equipment information;
and adjusting the ratio parameter to be adjusted and the priority parameter to be adjusted according to the current operation state of the Bluetooth chip, the current operation state of the WiFi chip, the current Bluetooth equipment information and the current information transmission scene to obtain the corresponding current ratio parameter and current priority parameter.
Further, the processor 1001 may call the antenna duty setting program stored in the memory 1005, and further perform the following operations:
searching a priority parameter to be adjusted corresponding to the current information transmission scene in a first mapping relation, wherein the first mapping relation stores the corresponding relation between the information transmission scene and the priority parameter;
and searching a corresponding occupation ratio parameter to be adjusted in a second mapping relation according to the current operation state of the Bluetooth chip, the current operation state of the WiFi chip and the current Bluetooth equipment information, wherein the second mapping relation stores the corresponding relation among the operation state of the Bluetooth chip, the operation state of the WiFi chip, the Bluetooth equipment information and the occupation ratio parameter.
Further, the processor 1001 may call the antenna duty setting program stored in the memory 1005, and further perform the following operations:
storing the priority parameter to be adjusted into a first buffer;
storing the occupation ratio parameter to be adjusted into a second buffer;
and taking out the current priority parameter from the first buffer, taking out the occupation ratio parameter to be adjusted from the second buffer, and adjusting the occupation ratio parameter to be adjusted and the priority parameter to be adjusted according to the current operation state of the Bluetooth chip, the current operation state of the WiFi chip, the current Bluetooth equipment information and the current information transmission scene to obtain the corresponding current occupation ratio parameter and the current priority parameter.
Further, the processor 1001 may call the antenna duty setting program stored in the memory 1005, and further perform the following operations:
storing the current operation state of the Bluetooth chip into a third buffer, and storing the current operation state of the WiFi chip into a fourth buffer;
storing the current Bluetooth equipment information to a fifth buffer;
and taking out the current operation state of the Bluetooth chip from the third buffer, taking out the current operation state of the WiFi chip from the fourth buffer, taking out the current Bluetooth equipment information from the fifth buffer, and determining a corresponding to-be-adjusted occupation ratio parameter according to the taken-out current operation state of the Bluetooth chip, the current operation state of the WiFi chip and the current Bluetooth equipment information.
Further, the processor 1001 may call the antenna duty setting program stored in the memory 1005, and further perform the following operations:
updating the priority parameter to be adjusted in the first buffer to be the current priority parameter, and updating the duty ratio parameter to be adjusted in the second buffer to be the current duty ratio parameter;
and taking out the current priority parameter from the first buffer, taking out the current ratio parameter from the second buffer, setting the antenna ratio of the Bluetooth chip and the WiFi chip according to the taken out current ratio parameter, and setting the WiFi priority and the Bluetooth priority according to the taken out current priority parameter.
In this embodiment, a current duty ratio parameter and a current priority parameter corresponding to the current operating state of the bluetooth chip, the current operating state of the WiFi chip, the current bluetooth device information to which the bluetooth chip is connected, and the current information transmission scenario are determined, then an antenna duty ratio of the bluetooth chip and the WiFi chip is set according to the current duty ratio parameter, a WiFi priority and a bluetooth priority are set according to the current priority parameter, the antenna duty ratio and the priority can be set according to actual requirements, the user usage scenario is closer, and the coexistence states of the bluetooth chip and the WiFi chip are switched in real time by scheduling in real time.
Based on the hardware structure, the embodiment of the antenna proportion setting method is provided.
Referring to fig. 2, fig. 2 is a schematic flow chart of a first embodiment of the antenna duty ratio setting method of the present invention.
In a first embodiment, the antenna duty ratio setting method includes the steps of:
s10: when an information transmission instruction needing to utilize WiFi or Bluetooth is generated, determining a corresponding current information transmission scene according to the information transmission instruction;
it should be noted that, when receiving an information transmission request, a user equipment generally generates a corresponding information transmission instruction according to the information transmission request, and assuming that the generated information transmission instruction needs to use WiFi or bluetooth for information transmission response, the information transmission instruction at this time is the information transmission instruction that needs to use WiFi or bluetooth.
It can be understood that different information transmission scenes can generate different information transmission requests, and different information transmission requests can generate different information transmission instructions, so that after the information transmission instruction is determined, the corresponding current information transmission scene can be determined according to the information transmission instruction.
S20: acquiring the current operating state of a Bluetooth chip and the current operating state of a WiFi chip;
it should be noted that the operation state of the bluetooth chip is information for reflecting the operation state of the bluetooth chip, and the operation state may include: states such as bluetooth scan (scan), bluetooth connection (connection), bluetooth connected (connected), bluetooth disconnected (disconnected), idle (idle), and busy (busy), which may also include other states, which is not limited in this embodiment;
similarly, the operation state of the WiFi chip is information for reflecting the operation state of the WiFi chip, which may include: the WiFi scanning (scan), the WiFi connection (linking), the WiFi connected (linked), the idle (idle), the busy (busy), the WiFi data uploading (upload), and the WiFi data downloading (download), which may also include other states, which is not limited in this embodiment.
It can be understood that the current operating state of the bluetooth chip is the operating state of the bluetooth chip at the current time, and similarly, the current operating state of the WiFi chip is the operating state of the WiFi chip at the current time.
In a specific implementation, in order to obtain the current operating state of the bluetooth chip and the current operating state of the WiFi chip, in this embodiment, the current operating state of the bluetooth chip and the current operating state of the WiFi chip may be read through a Host Controller Interface (HCI).
S30: acquiring the information of the current Bluetooth equipment connected with the Bluetooth chip;
understandably, the current bluetooth device information is the device information of the bluetooth device to which the bluetooth chip is connected at the current time.
In order to more accurately represent the current bluetooth device information, in this embodiment, the current bluetooth device information includes: the device type and the number of the current bluetooth devices connected to the bluetooth chip, for example: when the bluetooth chip is connected to a bluetooth remote controller, at this time, the device type in the current bluetooth information is a bluetooth remote controller, and the number of devices is 1, and of course, the current bluetooth device information may also include other information, which is not limited in this embodiment.
It should be noted that, there is no sequence among the steps S10, S20, and S30, and these steps may be executed simultaneously, or may be executed in any sequence, which is not limited in this embodiment.
S40: determining a corresponding current ratio parameter and a current priority parameter according to the current operating state of the Bluetooth chip, the current operating state of the WiFi chip, the current Bluetooth equipment information and the current information transmission scene;
in order to determine the corresponding current ratio parameter and the current priority parameter, a lookup table may be pre-established, and when determining the corresponding current ratio parameter and the current priority parameter, the current ratio parameter and the current priority parameter may be looked up in the lookup table according to the current operating state of the bluetooth chip, the current operating state of the WiFi chip, the current bluetooth device information, and the current information transmission scenario.
S50: and setting the antenna ratio of the Bluetooth chip and the WiFi chip according to the current ratio parameter, and setting the WiFi priority and the Bluetooth priority according to the current priority parameter.
It can be understood that the current occupation ratio parameter is a parameter that can reflect the antenna occupation ratio of the bluetooth chip and the WiFi chip, and therefore, the antenna occupation ratio of the bluetooth chip and the WiFi chip can be set according to the current occupation ratio parameter.
Similarly, the current priority parameter is a parameter that can reflect the WiFi priority and the bluetooth priority, and therefore, the WiFi priority and the bluetooth priority can be set according to the current priority parameter.
The embodiment determines a corresponding current ratio parameter and a current priority parameter according to the current operating state of the Bluetooth chip, the current operating state of the WiFi chip, the current Bluetooth device information connected with the Bluetooth chip and the current information transmission scene, sets the antenna ratio of the Bluetooth chip and the WiFi chip according to the current ratio parameter, sets the WiFi priority and the Bluetooth priority according to the current priority parameter, can set the antenna ratio and the priority according to actual requirements, is more close to a user use scene, and performs real-time scheduling to switch the coexistence state of the Bluetooth chip and the WiFi chip in real time.
Referring to fig. 3, fig. 3 is a schematic flowchart of a second embodiment of the antenna duty ratio setting method according to the present invention, and the second embodiment of the antenna duty ratio setting method according to the present invention is proposed based on the embodiment shown in fig. 2.
In the second embodiment, step S40 specifically includes:
s401: acquiring a priority parameter to be adjusted corresponding to the current information transmission scene;
in a specific implementation, since there are multiple corresponding relationships between an information transmission scene and priority parameters, assuming that after a current information transmission scene is obtained, a current priority parameter corresponding to the current information transmission scene is directly generated, which may cause an excessively complicated generation process.
It should be understood that the current priority parameter is a parameter capable of reflecting the WiFi priority and the bluetooth priority, and therefore, the WiFi priority and the bluetooth priority may be set according to the current priority parameter.
In order to facilitate setting of the WiFi priority and the bluetooth priority, in this embodiment, a part of the priority parameters may correspond to the WiFi priority, and another part of the priority parameters may correspond to the bluetooth priority, that is, the priority parameters may include: WiFi flag information for corresponding to the WiFi priority and Bluetooth flag information for corresponding to the Bluetooth priority;
accordingly, a WiFi priority may be set according to the WiFi flag information and a bluetooth priority may be set according to the bluetooth flag information.
For WiFi, it may include a WiFi receiving antenna and a WiFi transmitting antenna, for bluetooth, it may include a bluetooth receiving antenna and a bluetooth transmitting antenna, and there are different scenarios for the requirements of these antennas, and in order to be able to adapt to more scenarios, in this embodiment, the WiFi flag information may include: for corresponding to the WiFi receiving flag and the WiFi transmitting flag, the bluetooth flag information may include: the Bluetooth receiving zone bit and the Bluetooth sending zone bit;
correspondingly, the priority of the WiFi receiving antenna can be set according to the WiFi receiving flag bit, the priority of the WiFi transmitting antenna can be set according to the WiFi transmitting flag bit, and the priority of the WiFi receiving antenna and the priority of the WiFi transmitting antenna are used as the WiFi priority; setting the priority of a Bluetooth receiving antenna according to the Bluetooth receiving zone bit, setting the priority of a Bluetooth transmitting antenna according to the Bluetooth transmitting zone bit, and taking the priority of the Bluetooth receiving antenna and the priority of the Bluetooth transmitting antenna as Bluetooth priorities.
In a specific implementation, the priority parameter is set to 4-bit binary data, the 1 st-bit binary data corresponds to the priority of the bluetooth transmitting antenna, the 2 nd-bit binary data corresponds to the priority of the bluetooth receiving antenna, the 3 rd-bit binary data corresponds to the priority of the WiFi transmitting antenna, and the 4 th-bit binary data corresponds to the priority of the WiFi receiving antenna, and the priorities are represented by 0 and 1, where 0 represents low priority and 1 represents high priority, and certainly, other manners may also be used to represent the priority parameter, which is not limited in this embodiment.
The following description will be given by taking a specific scenario as an example, but the scope of the present invention is not limited thereto.
When the priority of the Bluetooth receiving antenna and the priority of the Bluetooth sending antenna are both set to be 1, the priority of the Bluetooth receiving antenna and the priority of the Bluetooth sending antenna are both high, which is equivalent to that all the resources of the antenna are given to Bluetooth as long as Bluetooth data are received or need to be sent. In this case, the priority of the WiFi transmitting antenna and the priority of the WiFi receiving antenna can only be low. That is, the priority of the WiFi transmitting antenna and the priority of the WiFi receiving antenna cannot be simultaneously the same as the priority of the bluetooth receiving antenna and the priority of the bluetooth transmitting antenna. Two information transmission scenarios are suitable, the first information transmission scenario can be data interaction when the user equipment (such as a set top box) upgrades the Bluetooth remote controller, because the user equipment needs to ensure that the data can be upgraded successfully without loss when the user equipment transmits the software batch data of the remote controller to the remote controller through Bluetooth, and the second information transmission scenario can be that the Bluetooth is in a pairing state. Therefore, in the first mapping relationship, one can write: b (i.e., the two information transmission scenarios described above) and 1100 (i.e., the priority parameter).
When the priority of the bluetooth transmitting antenna is high, the priority of the bluetooth receiving antenna is low, and the priority of the WiFi transmitting antenna and the priority of the WiFi receiving antenna are both low, it indicates that as long as there is bluetooth data to be transmitted, all the resources of the antenna are given out to the bluetooth transmitting antenna, and a suitable information transmission scenario may be that a user equipment (e.g., a set top box) is connected to a bluetooth speaker to push songs, because the amount of bluetooth data transmitted by the bluetooth transmitting antenna of the user equipment is the largest in this information transmission scenario, the first mapping relationship may be written: c (i.e., the information transmission scenario described above) and 1000 (i.e., the priority parameter).
When the priority of the Bluetooth receiving antenna is high, the priority of the Bluetooth transmitting antenna is low, and the priority of the WiFi transmitting antenna and the priority of the WiFi receiving antenna are low, the situation that all the resources of the antennas are given out for the Bluetooth receiving antenna to receive data is indicated as long as the Bluetooth data needs to be received. Two information transmission scenes are suitable, the first information transmission scene can be that a mobile phone is connected with user equipment (such as an intelligent sound box), and the mobile phone pushes songs to the user equipment through Bluetooth; the second information transmission scenario may be that the user equipment is connected to a bluetooth remote controller, and the user uses the bluetooth remote controller to perform voice. In the two information transmission scenarios, the user equipment needs to receive a large amount of bluetooth audio data from the mobile phone or the remote controller, and in order to ensure that bluetooth sound is not blocked, delay is low, received bluetooth voice data is complete, packet loss is low, and the recognition rate is high to the maximum extent, the priority of the bluetooth receiving antenna needs to be set highest. So the first mapping can be written: d (i.e., the two information transmission scenarios described above) and 0100 (i.e., the priority parameter).
When the priority of the WiFi receiving antenna is high, the priority of the WiFi transmitting antenna is low, and the priority of the Bluetooth receiving antenna and the priority of the Bluetooth transmitting antenna are both low, the fact that all resources are given to the WiFi receiving antenna immediately next as long as the WiFi needs to download data is indicated. A suitable information transfer scenario may be when WiFi is downloading large amounts of data (e.g., playing a video or downloading a large file over WiFi). So the first mapping can be written: e (i.e., the information transmission scenario described above) and 0001 (i.e., the priority parameter).
When the priority of the WiFi sending antenna is high, the priority of the WiFi receiving antenna is low, and the priority of the Bluetooth receiving antenna and the priority of the Bluetooth sending antenna are both low, the fact that all resources are given to the WiFi sending antenna immediately next as long as the WiFi needs to upload data is indicated. A suitable information transfer scenario may be when WiFi uploads large amounts of data (e.g., large files uploaded over WiFi). So the first mapping can be written: f (i.e., the information transmission scenario described above) and 0010 (i.e., the priority parameter).
It should be noted that, in order to facilitate debugging of the programmer, the programmer may simulate a user usage scenario at an initial development stage of the user equipment to adjust the priority in real time, so as to prompt the user to experience the product to the maximum extent, that is, when a priority setting instruction manually set by the user is received, the WiFi priority and the bluetooth priority may be set according to the priority setting instruction.
In order to ensure that the user equipment can enable WiFi and bluetooth to coexist and adapt after being powered on and started, in this embodiment, the WiFi priority may be set as a first initial priority and the bluetooth priority may be set as a second initial priority when being powered on and started.
The following description will be given by taking a specific scenario as an example, but the scope of the present invention is not limited thereto.
By default, the WiFi priority may be set high and the bluetooth priority may be set low, that is, the WiFi transmit antenna priority and the WiFi receive antenna priority are set high and the bluetooth receive antenna priority and the bluetooth transmit antenna priority are set low. Equivalently, when the WiFi needs to receive or send data, other antenna resources of the bluetooth are all given out to the WiFi, where the corresponding priority parameter is 0011, and the suitable information transmission scenario may be a user equipment (e.g., a set top box) when the bluetooth device is not connected.
In general, the probability of using bluetooth is relatively small, and the probability of using WiFi is relatively high, in order to ensure that WiFi can fully utilize resources, in this embodiment, after step S60, the method further includes: after responding to the information transmission instruction, the WiFi priority may be reset to a first initial priority and the bluetooth priority may be reset to a second initial priority.
To facilitate resetting of WiFi priority and bluetooth priority, the first initial priority and the second initial priority may be stored in the first mapping, that is, written in the first mapping: a (i.e., the information transmission scenario described above) and 0011 (i.e., the priority parameter), so that when initial setting and resetting of the WiFi priority and the bluetooth priority are required, a search can be performed in the first mapping relationship.
For example: when the bluetooth remote controller pronunciation, in order to improve the speech recognition rate of bluetooth remote controller (that is to say furthest receives bluetooth data), just at this time can set up bluetooth data priority as the highest, ensures that speech recognition rate is high, and of course, speech transmission has accomplished and has reset at once to default priority, ensures that the bluetooth pronunciation of gathering can pass through wiFi and discern at the high in the clouds as early as possible, improves user identification rate and recognition speed's experience.
S402: determining a corresponding occupation ratio parameter to be adjusted according to the current operation state of the Bluetooth chip, the current operation state of the WiFi chip and the current Bluetooth equipment information;
in order to facilitate rapid determination of the occupation ratio parameter to be adjusted, in this embodiment, a second mapping relationship may be pre-established, where the second mapping relationship stores a corresponding relationship among the operation state of the bluetooth chip, the operation state of the WiFi chip, the bluetooth device information, and the occupation ratio parameter, and when the occupation ratio parameter to be adjusted is determined, the corresponding occupation ratio parameter to be adjusted may be searched in the second mapping relationship according to the current operation state of the bluetooth chip, the current operation state of the WiFi chip, and the current bluetooth device information.
It should be noted that the default antenna duty ratio of the WiFi chip and the bluetooth chip may be set to be that the bluetooth chip duty ratio is greater than the WiFi chip, the duty ratio parameter may be set to 1:9, and correspondingly, the antenna duty ratio of the WiFi chip and the bluetooth chip may be set to 1:9, that is, macroscopically, in total time of, for example, 100ms, the WiFi chip occupies 10ms of the antenna, and the bluetooth chip occupies 90ms of the antenna. The reason why the setting is such is that in many cases, for the user equipment only having the bluetooth remote controller as the input device, the priority of the bluetooth remote controller is the highest, and bluetooth needs to occupy a large amount of antenna resources when performing bluetooth scanning, that is, when the bluetooth remote controller is paired, if the allocation is not proper, the pairing of the bluetooth remote controller will fail, and for the user equipment (for example, a set-top box) having a pure bluetooth remote controller, it is necessary to ensure that the user can pair.
That is to say, when the ue is powered on, an initial duty parameter may be set to 1:9, an antenna duty ratio of the WiFi chip and the bluetooth chip may be set according to the initial duty parameter, and in order to obtain the initial duty parameter, a correspondence relationship between an idle state of the bluetooth chip, a busy state of the WiFi chip, no current bluetooth device information, and 1:9 of the initial duty parameter may be added to the second mapping relationship.
When the user equipment is connected with a Bluetooth remote controller, that is, when the Bluetooth chip of the user equipment is in a connected state, the operation state of the WiFi chip is in a busy state, the type of the equipment in the current Bluetooth information is the Bluetooth remote controller, and the number of the equipment is 1, the Bluetooth data volume is very low, and at this time, the user needs to watch the video by WiFi, the antenna occupation ratio of the occupation ratio parameter can be set to 8:2, so that the normal use of the Bluetooth remote controller can be ensured, the WiFi rate can be improved to the maximum extent, at this time, the correspondence between the bluetooth chip operating state being idle state, the WiFi chip operating state being busy state, the current bluetooth device information being bluetooth remote controller, the device type in the current bluetooth information being bluetooth remote controller, the number of devices in the current bluetooth information being 1, and the duty parameter being 8:2 may be added to the second mapping relationship.
When the user equipment is connected with a bluetooth remote controller and the bluetooth remote controller is disconnected, that is, the bluetooth chip of the user equipment is disconnected, the operation state of the WiFi chip is busy, the type of the equipment in the current bluetooth information is the bluetooth remote controller, and the number of the equipment is 1, after the remote controller is disconnected, the bluetooth chip of the user equipment (for example, an intelligent sound box) performs bluetooth scanning to perform connection back, at this time, an antenna needs to be biased towards the bluetooth chip, otherwise, the connection back cannot be caused, and the most basic bluetooth remote controller for the user can be shared, so once the bluetooth remote controller is in the bluetooth disconnected state, the occupation ratio of the bluetooth chip needs to be increased to ensure that the remote controller can be connected back, at this time, the occupation ratio parameter can be set to 5:5, at this time, the operation state of the bluetooth chip can be disconnected, And adding the corresponding relation of the operating state of the WiFi chip being busy state, the current Bluetooth equipment information being a Bluetooth remote controller, the equipment type in the current Bluetooth information being a Bluetooth remote controller, the number of the equipment in the current Bluetooth information being 1 and the ratio parameter being 5:5 into the second mapping relation.
When the user equipment is connected with a bluetooth remote controller and a bluetooth sound box, that is, when a bluetooth chip of the user equipment is in a bluetooth connected state, the types of the equipment in the current bluetooth information are the bluetooth remote controller and the bluetooth sound box, and the number of the equipment is 2, in order to ensure that the bluetooth remote controller and the bluetooth sound box can be normally used, the bluetooth sound box is not stuck, the antenna ratio of the bluetooth chip and the WiFi chip can be allocated to be 3:7, and at this time, the corresponding relationship among the operation state of the bluetooth chip being a connected state, the operation state of the WiFi chip being a busy state, the types of the equipment in the current bluetooth information being the bluetooth remote controller and the bluetooth sound box, the number of the equipment being 2, and the ratio parameter being 3:7 can be added to the second mapping relationship.
In a specific implementation, when the duty ratio parameter to be adjusted is adjusted according to the current operating state of the bluetooth chip, the current operating state of the WiFi chip, the current bluetooth device information, and the current priority parameter to obtain a corresponding current duty ratio parameter, the following policy may be referred to (but the scope of the present invention is not limited):
under the condition that the Bluetooth remote controller is not connected (namely a Bluetooth chip of user equipment is in an idle state), no matter how many current priority parameters are, the current priority parameters need to be reset to 1100, namely the priority of a Bluetooth receiving antenna and the priority of a Bluetooth sending antenna are set to be high, at the moment, the Bluetooth chip occupies all antenna resources, so that the user can be quickly paired or connected back to the Bluetooth remote controller, and the user is ensured to be always available to the remote controller.
When the bluetooth chip is not in idle state, it indicates that the bluetooth chip has paired the bluetooth remote controller, if other processes call an interface for setting priority, the current priority parameter is preferentially determined, the value of the duty ratio parameter to be adjusted is readjusted based on the current priority parameter, if the priority of the current priority parameter is biased to the bluetooth chip (that is, the current priority parameter is 1100, 0100, or 1000), and the operating state of the WiFi chip is non-busy state, the value of the current duty ratio parameter may be set to 1:9, if the operating state of the WiFi chip is busy state, the value of the current duty ratio parameter may be set to 4:6, which may also be determined according to specific conditions, in short, the values of the current priority parameter and the current duty ratio parameter are required to meet the user demand scenario. On the contrary, if the priority of the current priority parameter is biased toward the WiFi chip (i.e. the current priority parameter is 0011, 0001, or 0010), and the operation state of the bluetooth chip is a connect state, the value of the current duty ratio parameter may be set to 9:1, and if the operation state of the bluetooth chip is a disconnect state, the value of the current duty ratio parameter may be set to 6: 4.
When the Bluetooth chip is not in idle state, the Bluetooth chip is paired with the Bluetooth remote controller, if the current priority parameter is not determined, the ratio parameter to be adjusted can be used as the current ratio parameter by default, meanwhile, the value of the current priority parameter can be properly adjusted according to the value of the current ratio parameter, if the current ratio parameter is biased to the WiFi chip, the current priority parameter can be properly biased to the WiFi chip, and if the current ratio parameter is biased to Bluetooth, the current priority parameter can be properly biased to the Bluetooth chip.
When the Bluetooth chip is not in an idle state and the current Bluetooth equipment information is the paired Bluetooth remote controller and other Bluetooth equipment, the value of the current priority parameter and the value of the current proportion parameter are properly drawn close to the Bluetooth chip according to the paired Bluetooth equipment types, and the current priority parameter and the current proportion parameter are adapted as far as possible according to scenes, so that the optimal experience of a user is ensured.
In short, the duty ratio parameters need to be adjusted according to the characteristics of WiFi and bluetooth and the user requirements of the combination scene, and the adjustment situations of the duty ratio parameters are not listed, and different duty ratio parameters can be adjusted in different situations.
S403: and adjusting the ratio parameter to be adjusted and the priority parameter to be adjusted according to the current operation state of the Bluetooth chip, the current operation state of the WiFi chip, the current Bluetooth equipment information and the current information transmission scene to obtain the corresponding current ratio parameter and current priority parameter.
Because the current operating state of the bluetooth chip, the current operating state of the WiFi chip, the current bluetooth device information, and the current information transmission scenario have various conditions, if each condition sets a corresponding duty ratio parameter and priority parameter, a more complex mapping relationship needs to be established, in order to avoid this problem, in this embodiment, the priority parameter to be adjusted and the duty ratio parameter to be adjusted may be obtained first; and adjusting the ratio parameter to be adjusted and the priority parameter to be adjusted according to the current operation state of the Bluetooth chip, the current operation state of the WiFi chip, the current Bluetooth equipment information and the current information transmission scene to obtain the corresponding current ratio parameter and the corresponding current priority parameter.
Referring to fig. 4, fig. 4 is a schematic flowchart of a third embodiment of the antenna duty ratio setting method according to the present invention, and the third embodiment of the antenna duty ratio setting method according to the present invention is proposed based on the embodiment shown in fig. 3.
In the third embodiment, after step S401, the method for setting the antenna duty ratio further includes:
s4011: storing the priority parameter to be adjusted into a first buffer;
after step S402, the antenna ratio setting method further includes:
s4021: storing the occupation ratio parameter to be adjusted into a second buffer;
the step S403 specifically includes:
s403': and taking out the current priority parameter from the first buffer, taking out the occupation ratio parameter to be adjusted from the second buffer, and adjusting the occupation ratio parameter to be adjusted and the priority parameter to be adjusted according to the current operation state of the Bluetooth chip, the current operation state of the WiFi chip, the current Bluetooth equipment information and the current information transmission scene to obtain the corresponding current occupation ratio parameter and the current priority parameter.
It should be noted that, because some processing flows belong to different program processes for implementation, in order to facilitate the processes to quickly acquire data and prevent data loss, in this embodiment, processing results of some processing flows may be stored in a preset buffer, and when a process needs to acquire data, the processing results may be directly read from a corresponding buffer, for example: and storing the priority parameter to be adjusted into a first buffer M, and storing the duty ratio parameter to be adjusted into a second buffer N.
Correspondingly, when the duty ratio parameter to be adjusted and the priority parameter to be adjusted need to be adjusted, the current priority parameter can be taken out from the first buffer memory M, the duty ratio parameter to be adjusted is taken out from the second buffer memory N, and the taken duty ratio parameter to be adjusted and the priority parameter to be adjusted are adjusted according to the current operating state of the bluetooth chip, the current operating state of the WiFi chip, the current bluetooth device information and the current information transmission scene to obtain the corresponding current duty ratio parameter and the corresponding current priority parameter.
Also, in order to facilitate the process to acquire data quickly and prevent data loss, after step S20, the antenna duty ratio setting method further includes:
storing the current operation state of the Bluetooth chip into a third buffer X, and storing the current operation state of the WiFi chip into a fourth buffer Y;
after step S30, the antenna ratio setting method further includes:
storing the current Bluetooth equipment information to a fifth buffer Z;
the step S402 specifically includes:
and taking out the current operation state of the Bluetooth chip from the third buffer X, taking out the current operation state of the WiFi chip from the fourth buffer Y, taking out the current Bluetooth equipment information from the fifth buffer Z, and determining a corresponding occupation ratio parameter to be adjusted according to the taken out current operation state of the Bluetooth chip, the current operation state of the WiFi chip and the current Bluetooth equipment information.
Referring to fig. 5, fig. 5 is a schematic flowchart of a fourth embodiment of the antenna duty ratio setting method according to the present invention, and the fourth embodiment of the antenna duty ratio setting method according to the present invention is proposed based on the embodiment shown in fig. 3.
In the fourth embodiment, after step S403', the method further includes:
s41: updating the priority parameter to be adjusted in the first buffer to be the current priority parameter, and updating the duty ratio parameter to be adjusted in the second buffer to be the current duty ratio parameter;
step S50, specifically including:
s50': and taking out the current priority parameter from the first buffer, taking out the current ratio parameter from the second buffer, setting the antenna ratio of the Bluetooth chip and the WiFi chip according to the taken out current ratio parameter, and setting the WiFi priority and the Bluetooth priority according to the taken out current priority parameter.
It should be noted that, because some processing flows are implemented by different program processes, in order to facilitate the processes to quickly set the antenna duty ratios of the bluetooth chip and the WiFi chip and prevent data loss, in this embodiment, the priority parameter to be adjusted in the first buffer M may be updated to the current priority parameter, the duty parameter to be adjusted in the second buffer N may be updated to the current duty parameter, then the current priority parameter is taken out from the first buffer M, the current duty parameter is taken out from the second buffer N, the antenna duty ratios of the bluetooth chip and the WiFi chip are set according to the taken out current duty parameter, and the WiFi priority and the bluetooth priority are set according to the taken out current priority parameter.
In addition, an embodiment of the present invention further provides an antenna duty setting apparatus, and referring to fig. 6, the antenna duty setting apparatus includes:
the scene determining module 10 is configured to determine a corresponding current information transmission scene according to an information transmission instruction when the information transmission instruction requiring WiFi or bluetooth is generated;
the state acquisition module 20 is configured to acquire a current operating state of the bluetooth chip and a current operating state of the WiFi chip;
the information acquisition module 30 is used for acquiring the current bluetooth device information connected with the bluetooth chip;
a parameter determining module 40, configured to determine a corresponding current ratio parameter and a current priority parameter according to a current operating state of the bluetooth chip, a current operating state of the WiFi chip, current bluetooth device information, and the current information transmission scenario;
and a parameter setting module 50, configured to set the antenna ratio of the bluetooth chip and the WiFi chip according to the current ratio parameter, and set a WiFi priority and a bluetooth priority according to the current priority parameter.
Each module in the apparatus may be configured to implement each step in the method, and is not described herein again.
Furthermore, an embodiment of the present invention further provides a storage medium, where an antenna duty ratio setting program is stored on the storage medium, and when executed by a processor, the antenna duty ratio setting program implements the following operations:
when an information transmission instruction needing to utilize WiFi or Bluetooth is generated, determining a corresponding current information transmission scene according to the information transmission instruction;
acquiring the current operating state of a Bluetooth chip and the current operating state of a WiFi chip;
acquiring the information of the current Bluetooth equipment connected with the Bluetooth chip;
determining a corresponding current ratio parameter and a current priority parameter according to the current operating state of the Bluetooth chip, the current operating state of the WiFi chip, the current Bluetooth equipment information and the current information transmission scene;
and setting the antenna ratio of the Bluetooth chip and the WiFi chip according to the current ratio parameter, and setting the WiFi priority and the Bluetooth priority according to the current priority parameter.
Further, the antenna duty ratio setting program when executed by the processor further implements the following operations:
acquiring a priority parameter to be adjusted corresponding to the current information transmission scene;
determining a corresponding occupation ratio parameter to be adjusted according to the current operation state of the Bluetooth chip, the current operation state of the WiFi chip and the current Bluetooth equipment information;
and adjusting the ratio parameter to be adjusted and the priority parameter to be adjusted according to the current operation state of the Bluetooth chip, the current operation state of the WiFi chip, the current Bluetooth equipment information and the current information transmission scene to obtain the corresponding current ratio parameter and current priority parameter.
Further, the antenna duty ratio setting program when executed by the processor further implements the following operations:
searching a priority parameter to be adjusted corresponding to the current information transmission scene in a first mapping relation, wherein the first mapping relation stores the corresponding relation between the information transmission scene and the priority parameter;
and searching a corresponding occupation ratio parameter to be adjusted in a second mapping relation according to the current operation state of the Bluetooth chip, the current operation state of the WiFi chip and the current Bluetooth equipment information, wherein the second mapping relation stores the corresponding relation among the operation state of the Bluetooth chip, the operation state of the WiFi chip, the Bluetooth equipment information and the occupation ratio parameter.
Further, the antenna duty ratio setting program when executed by the processor further implements the following operations:
storing the priority parameter to be adjusted into a first buffer;
storing the occupation ratio parameter to be adjusted into a second buffer;
and taking out the current priority parameter from the first buffer, taking out the occupation ratio parameter to be adjusted from the second buffer, and adjusting the occupation ratio parameter to be adjusted and the priority parameter to be adjusted according to the current operation state of the Bluetooth chip, the current operation state of the WiFi chip, the current Bluetooth equipment information and the current information transmission scene to obtain the corresponding current occupation ratio parameter and the current priority parameter.
Further, the antenna duty ratio setting program when executed by the processor further implements the following operations:
storing the current operation state of the Bluetooth chip into a third buffer, and storing the current operation state of the WiFi chip into a fourth buffer;
storing the current Bluetooth equipment information to a fifth buffer;
and taking out the current operation state of the Bluetooth chip from the third buffer, taking out the current operation state of the WiFi chip from the fourth buffer, taking out the current Bluetooth equipment information from the fifth buffer, and determining a corresponding to-be-adjusted occupation ratio parameter according to the taken-out current operation state of the Bluetooth chip, the current operation state of the WiFi chip and the current Bluetooth equipment information.
Further, the antenna duty ratio setting program when executed by the processor further implements the following operations:
updating the priority parameter to be adjusted in the first buffer to be the current priority parameter, and updating the duty ratio parameter to be adjusted in the second buffer to be the current duty ratio parameter;
and taking out the current priority parameter from the first buffer, taking out the current ratio parameter from the second buffer, setting the antenna ratio of the Bluetooth chip and the WiFi chip according to the taken out current ratio parameter, and setting the WiFi priority and the Bluetooth priority according to the taken out current priority parameter.
In this embodiment, a current duty ratio parameter and a current priority parameter corresponding to the current operating state of the bluetooth chip, the current operating state of the WiFi chip, the current bluetooth device information to which the bluetooth chip is connected, and the current information transmission scenario are determined, then an antenna duty ratio of the bluetooth chip and the WiFi chip is set according to the current duty ratio parameter, a WiFi priority and a bluetooth priority are set according to the current priority parameter, the antenna duty ratio and the priority can be set according to actual requirements, the user usage scenario is closer, and the coexistence states of the bluetooth chip and the WiFi chip are switched in real time by scheduling in real time.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) as described above and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (9)

1. An antenna occupation ratio setting method is characterized by comprising the following steps:
when an information transmission instruction needing to utilize WiFi or Bluetooth is generated, determining a corresponding current information transmission scene according to the information transmission instruction;
acquiring the current operating state of a Bluetooth chip and the current operating state of a WiFi chip;
acquiring the information of the current Bluetooth equipment connected with the Bluetooth chip;
determining a corresponding current ratio parameter and a current priority parameter according to the current operating state of the Bluetooth chip, the current operating state of the WiFi chip, the current Bluetooth equipment information and the current information transmission scene;
setting the antenna ratio of the Bluetooth chip and the WiFi chip according to the current ratio parameter, and setting the WiFi priority and the Bluetooth priority according to the current priority parameter;
the determining, according to the current operating state of the bluetooth chip, the current operating state of the WiFi chip, the current bluetooth device information, and the current information transmission scenario, a corresponding current duty ratio parameter and a current priority parameter specifically includes:
acquiring a priority parameter to be adjusted corresponding to the current information transmission scene;
determining a corresponding occupation ratio parameter to be adjusted according to the current operation state of the Bluetooth chip, the current operation state of the WiFi chip and the current Bluetooth equipment information;
and adjusting the ratio parameter to be adjusted and the priority parameter to be adjusted according to the current operation state of the Bluetooth chip, the current operation state of the WiFi chip, the current Bluetooth equipment information and the current information transmission scene to obtain the corresponding current ratio parameter and current priority parameter.
2. The antenna duty ratio setting method according to claim 1, wherein the obtaining of the priority parameter to be adjusted corresponding to the current information transmission scenario specifically includes:
searching a priority parameter to be adjusted corresponding to the current information transmission scene in a first mapping relation, wherein the first mapping relation stores the corresponding relation between the information transmission scene and the priority parameter;
the determining of the ratio parameter to be adjusted according to the current operation state of the bluetooth chip, the current operation state of the WiFi chip, and the current bluetooth device information specifically includes:
and searching a corresponding occupation ratio parameter to be adjusted in a second mapping relation according to the current operation state of the Bluetooth chip, the current operation state of the WiFi chip and the current Bluetooth equipment information, wherein the second mapping relation stores the corresponding relation among the operation state of the Bluetooth chip, the operation state of the WiFi chip, the Bluetooth equipment information and the occupation ratio parameter.
3. The antenna duty ratio setting method of claim 1, wherein after the obtaining of the priority parameter to be adjusted corresponding to the current information transmission scenario, the antenna duty ratio setting method further comprises:
storing the priority parameter to be adjusted into a first buffer;
after determining the corresponding duty ratio parameter to be adjusted according to the current operating state of the bluetooth chip, the current operating state of the WiFi chip, and the current bluetooth device information, the antenna duty ratio setting method further includes:
storing the occupation ratio parameter to be adjusted into a second buffer;
the adjusting the ratio parameter to be adjusted and the priority parameter to be adjusted according to the current operating state of the bluetooth chip, the current operating state of the WiFi chip, the current bluetooth device information, and the current information transmission scenario to obtain the corresponding current ratio parameter and current priority parameter specifically includes:
and taking the priority parameter to be adjusted from the first buffer, taking the duty parameter to be adjusted from the second buffer, and adjusting the taken duty parameter to be adjusted and the priority parameter to be adjusted according to the current operating state of the Bluetooth chip, the current operating state of the WiFi chip, the current Bluetooth equipment information and the current information transmission scene to obtain the corresponding current duty parameter and the corresponding current priority parameter.
4. The method of claim 1, wherein after obtaining the current operating status of the bluetooth chip and the current operating status of the WiFi chip, the method further comprises:
storing the current operation state of the Bluetooth chip into a third buffer, and storing the current operation state of the WiFi chip into a fourth buffer;
after the information of the current bluetooth device connected to the bluetooth chip is obtained, the antenna percentage setting method further includes:
storing the current Bluetooth equipment information to a fifth buffer;
the method for adjusting the ratio of the current bluetooth chip to the WiFi chip comprises the following steps of determining a corresponding ratio parameter to be adjusted according to the current operation state of the bluetooth chip, the current operation state of the WiFi chip and current bluetooth device information, and specifically comprises the following steps:
and taking out the current operation state of the Bluetooth chip from the third buffer, taking out the current operation state of the WiFi chip from the fourth buffer, taking out the current Bluetooth equipment information from the fifth buffer, and determining a corresponding to-be-adjusted occupation ratio parameter according to the taken-out current operation state of the Bluetooth chip, the current operation state of the WiFi chip and the current Bluetooth equipment information.
5. The antenna duty ratio setting method of claim 3, wherein after determining the corresponding current duty ratio parameter and current priority parameter according to the current operating state of the Bluetooth chip, the current operating state of the WiFi chip, the current Bluetooth device information, and the current information transmission scenario, the antenna duty ratio setting method further comprises:
updating the priority parameter to be adjusted in the first buffer to be the current priority parameter, and updating the duty ratio parameter to be adjusted in the second buffer to be the current duty ratio parameter;
the setting of the antenna duty ratio of the bluetooth chip and the WiFi chip according to the current duty ratio parameter, and the setting of the WiFi priority and the bluetooth priority according to the current priority parameter specifically include:
and taking out the current priority parameter from the first buffer, taking out the current ratio parameter from the second buffer, setting the antenna ratio of the Bluetooth chip and the WiFi chip according to the taken out current ratio parameter, and setting the WiFi priority and the Bluetooth priority according to the taken out current priority parameter.
6. The antenna duty ratio setting method of any one of claims 1 to 5, wherein the current Bluetooth device information includes: the device type and the device number of the current Bluetooth device connected with the Bluetooth chip.
7. An antenna duty ratio setting device, characterized in that the antenna duty ratio setting device comprises:
the scene determining module is used for determining a corresponding current information transmission scene according to an information transmission instruction when the information transmission instruction needing to utilize WiFi or Bluetooth is generated;
the state acquisition module is used for acquiring the current operation state of the Bluetooth chip and the current operation state of the WiFi chip;
the information acquisition module is used for acquiring the information of the current Bluetooth equipment connected with the Bluetooth chip;
the parameter determining module is used for determining corresponding current ratio parameters and current priority parameters according to the current operating state of the Bluetooth chip, the current operating state of the WiFi chip, current Bluetooth equipment information and the current information transmission scene;
the parameter setting module is used for setting the antenna ratio of the Bluetooth chip and the WiFi chip according to the current ratio parameter and setting the WiFi priority and the Bluetooth priority according to the current priority parameter;
the determining, according to the current operating state of the bluetooth chip, the current operating state of the WiFi chip, the current bluetooth device information, and the current information transmission scenario, a corresponding current duty ratio parameter and a current priority parameter specifically includes:
acquiring a priority parameter to be adjusted corresponding to the current information transmission scene;
determining a corresponding occupation ratio parameter to be adjusted according to the current operation state of the Bluetooth chip, the current operation state of the WiFi chip and the current Bluetooth equipment information;
and adjusting the ratio parameter to be adjusted and the priority parameter to be adjusted according to the current operation state of the Bluetooth chip, the current operation state of the WiFi chip, the current Bluetooth equipment information and the current information transmission scene to obtain the corresponding current ratio parameter and current priority parameter.
8. A user equipment, the user equipment comprising: memory, processor and an antenna duty cycle setting program stored on the memory and executable on the processor, the antenna duty cycle setting program when executed by the processor implementing the steps of the antenna duty cycle setting method according to any one of claims 1 to 6.
9. A storage medium having stored thereon an antenna duty setting program which, when executed by a processor, implements the steps of the antenna duty setting method of any one of claims 1 to 6.
CN201810931528.9A 2018-08-14 2018-08-14 Antenna ratio setting method and device, user equipment and storage medium Active CN108901077B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810931528.9A CN108901077B (en) 2018-08-14 2018-08-14 Antenna ratio setting method and device, user equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810931528.9A CN108901077B (en) 2018-08-14 2018-08-14 Antenna ratio setting method and device, user equipment and storage medium

Publications (2)

Publication Number Publication Date
CN108901077A CN108901077A (en) 2018-11-27
CN108901077B true CN108901077B (en) 2020-07-21

Family

ID=64354570

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810931528.9A Active CN108901077B (en) 2018-08-14 2018-08-14 Antenna ratio setting method and device, user equipment and storage medium

Country Status (1)

Country Link
CN (1) CN108901077B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109743619A (en) * 2019-01-16 2019-05-10 四川长虹电器股份有限公司 Smart television WiFi and Bluetooth coexistence optimization method and device
CN110191449B (en) * 2019-05-29 2022-02-18 上海庆科信息技术有限公司 Communication mode switching method, device, storage medium, processor and system
CN111510898B (en) * 2020-04-16 2023-08-29 深圳创维数字技术有限公司 Mirror image connection method based on Miracast, electronic product and storage medium
CN114079893B (en) * 2020-08-13 2023-10-13 华为技术有限公司 Bluetooth communication method, terminal device and computer readable storage medium
CN113613230B (en) * 2021-10-09 2021-12-31 荣耀终端有限公司 Scanning parameter determination method and electronic equipment
CN113645715B (en) * 2021-10-13 2022-01-04 荣耀终端有限公司 Method and terminal device for monitoring link
CN115022859A (en) * 2022-06-30 2022-09-06 四川长虹电器股份有限公司 Wireless local area network and Bluetooth complementary communication method

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014005441A1 (en) * 2012-07-02 2014-01-09 Mediatek Inc. Methods for managing radio resources between multiple radio modules and communications apparatus utilizing the same
CN107666332A (en) * 2017-09-27 2018-02-06 普联技术有限公司 Anti-disturbance method and device, a kind of terminal between wireless module
CN107889087A (en) * 2016-09-29 2018-04-06 英特尔Ip公司 Dispatched using the bluetooth WIFI of the coordination of Bluetooth slots availability mask
CN108064086A (en) * 2017-12-07 2018-05-22 深圳创维数字技术有限公司 A kind of bandwidth allocation methods, device, computer equipment and storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9860754B2 (en) * 2014-02-19 2018-01-02 Mediatek Inc. Coexistence operation method and related wireless system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014005441A1 (en) * 2012-07-02 2014-01-09 Mediatek Inc. Methods for managing radio resources between multiple radio modules and communications apparatus utilizing the same
CN107889087A (en) * 2016-09-29 2018-04-06 英特尔Ip公司 Dispatched using the bluetooth WIFI of the coordination of Bluetooth slots availability mask
CN107666332A (en) * 2017-09-27 2018-02-06 普联技术有限公司 Anti-disturbance method and device, a kind of terminal between wireless module
CN108064086A (en) * 2017-12-07 2018-05-22 深圳创维数字技术有限公司 A kind of bandwidth allocation methods, device, computer equipment and storage medium

Also Published As

Publication number Publication date
CN108901077A (en) 2018-11-27

Similar Documents

Publication Publication Date Title
CN108901077B (en) Antenna ratio setting method and device, user equipment and storage medium
CN108647089B (en) Resource allocation method, device, terminal and storage medium
JP2007129711A (en) Systems and methods for arbitrating multiple communications
CN110493729B (en) Interaction method and device of augmented reality device and storage medium
EP3111738A1 (en) Method for controlling operation of an agricultural machine and system
CN109995861B (en) Relay communication method and system for vehicle-mounted system application and vehicle-mounted peripheral device
CN111654852B (en) Data card switching method and device, terminal and storage medium
CN111107518A (en) Display method, vehicle-mounted terminal, display system and computer-readable storage medium
US20160127768A1 (en) Usb sharing method for combo tv set, combo tv set and computer readable storage medium
EP2575331A1 (en) Electronic Apparatus and Media System Using Information Terminal
WO2023020240A1 (en) Device control method and apparatus, and chip, electronic device and storage medium
US11900168B2 (en) Electronic device supporting virtual mobile environment enabling user to select computing resources and performing application with selected computing resources
CN109041026B (en) Antenna ratio setting method and device, user equipment and storage medium
US11012372B2 (en) Electronic apparatus and method for control thereof
EP1585034B1 (en) Memory mapping control apparatus, information storage controller, data moving method, and data moving program
CN114466230B (en) Display equipment function expanding method and device, screen projector and storage medium
CN108337715B (en) Wireless network connection method, device, terminal equipment and storage medium
CN108924875A (en) priority setting method, device, user equipment and storage medium
KR20240015952A (en) A computing device and a method of operating the computing device
WO2020049352A1 (en) Near-field file transmission method and apparatus thereof
CN112367362B (en) Data processing method, device, equipment and computer storage medium
CN104079324A (en) Data transmission method, electronic equipment and system
CN103283185A (en) Prioritization of data communication
CN114090044A (en) TWS earphone upgrading method, device, equipment and computer readable storage medium
CN111145741A (en) Method and device for providing multimedia content, electronic 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