CN109041026B - 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
CN109041026B
CN109041026B CN201810931648.9A CN201810931648A CN109041026B CN 109041026 B CN109041026 B CN 109041026B CN 201810931648 A CN201810931648 A CN 201810931648A CN 109041026 B CN109041026 B CN 109041026B
Authority
CN
China
Prior art keywords
current
bluetooth
chip
operating state
antenna
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
CN201810931648.9A
Other languages
Chinese (zh)
Other versions
CN109041026A (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 CN201810931648.9A priority Critical patent/CN109041026B/en
Publication of CN109041026A publication Critical patent/CN109041026A/en
Application granted granted Critical
Publication of CN109041026B publication Critical patent/CN109041026B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • H04B5/48

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 and the information of the current Bluetooth equipment connected with the Bluetooth chip, and set the antenna ratio of the Bluetooth chip and the WiFi chip according to the current ratio parameter, can set the antenna ratio according to actual requirements, are closer to a user using scene, and can perform real-time scheduling and switch the coexistence state of the Bluetooth chip and the WiFi chip in real time.

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
Wireless-Fidelity (WiFi) and Bluetooth (BT) 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, etc.), WiFi is a technology that allows a user device to connect to a Wireless Local Area Network (WLAN), and needs to conform to the 802.11b/G standard and usually works in a 2.4G frequency band, and BT also works in a 2.4G frequency band, because WiFi and Bluetooth basically work in the same frequency band, if they work at the same time, there will be a phenomenon of mutual interference more or less. If WiFi and bluetooth coexist on a module, i.e. a single module or chip supports both WiFi and bluetooth functions, the interference between WiFi and bluetooth is even more serious, and if the antenna isolation is not sufficient, it can only be time-division multiplexed.
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:
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 according to the current operating state of the Bluetooth chip, the current operating state of the WiFi chip and the current Bluetooth equipment information;
and setting the antenna occupation ratio of the Bluetooth chip and the WiFi chip according to the current occupation ratio 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.
Preferably, the determining the corresponding current duty ratio parameter according to the current operating state of the bluetooth chip, the current operating state of the WiFi chip, and the current bluetooth device information specifically includes:
and searching a corresponding current ratio parameter in a mapping relation according to the current operating state of the Bluetooth chip, the current operating state of the WiFi chip and the current Bluetooth equipment information, wherein the mapping relation stores the corresponding relation among the operating state of the Bluetooth chip, the operating state of the WiFi chip, the Bluetooth equipment information and the ratio parameter.
Preferably, the acquiring the current operating state of the bluetooth chip and the current operating state of the WiFi chip specifically includes:
and reading the current operating state of the Bluetooth chip and the current operating state of the WiFi chip through the host control interface HCI.
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 first buffer, and storing the current operation state of the WiFi chip into a second 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 into a third buffer;
the determining the corresponding current duty ratio parameter according to the current operating state of the bluetooth chip, the current operating state of the WiFi chip, and the current bluetooth device information specifically includes:
and taking out the current operating state of the Bluetooth chip from the first buffer, taking out the current operating state of the WiFi chip from the second buffer, taking out the current Bluetooth equipment information from the third buffer, and determining the corresponding current duty ratio parameter according to the taken out current operating state of the Bluetooth chip, the current operating state of the WiFi chip and the current Bluetooth equipment information.
Preferably, after determining the corresponding current duty ratio parameter 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 current proportion parameter into a fourth buffer;
the setting of the antenna duty ratio of the bluetooth chip and the WiFi chip according to the current duty ratio parameter specifically includes:
and taking out the current ratio parameter from the fourth buffer, and setting the antenna ratio of the Bluetooth chip and the WiFi chip according to the taken out current ratio parameter.
Preferably, after the antenna duty ratio of the bluetooth chip and the WiFi chip is set according to the current duty ratio parameter, the antenna duty ratio setting method further includes:
and returning to the step of acquiring the current operation state of the Bluetooth chip and the current operation state of the WiFi chip when the operation state of the Bluetooth chip or the operation state of the WiFi chip changes.
In addition, to achieve the above object, the present invention provides an antenna duty setting device, including:
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 according to the current operating state of the Bluetooth chip, the current operating state of the WiFi chip and the current Bluetooth equipment information;
and the occupation ratio setting module is used for setting the antenna occupation ratio of the Bluetooth chip and the WiFi chip according to the current occupation ratio 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 and the information of the current Bluetooth equipment connected with the Bluetooth chip, and set the antenna ratio of the Bluetooth chip and the WiFi chip according to the current ratio parameter, can set the antenna ratio according to actual requirements, are closer to a user using scene, and can perform real-time scheduling and switch the coexistence state of the Bluetooth chip and the WiFi chip in real time.
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 flowchart illustrating a method for setting priority according to a first embodiment of the present invention;
FIG. 3 is a flowchart illustrating a second embodiment of a priority setting method according to the present invention;
FIG. 4 is a flowchart illustrating a method for setting priority according to a third embodiment of the present invention;
fig. 5 is a block diagram showing the configuration of the priority setting apparatus according to the first embodiment of 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:
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 according to the current operating state of the Bluetooth chip, the current operating state of the WiFi chip and the current Bluetooth equipment information;
and setting the antenna occupation ratio of the Bluetooth chip and the WiFi chip according to the current 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:
and searching a corresponding current ratio parameter in a mapping relation according to the current operating state of the Bluetooth chip, the current operating state of the WiFi chip and the current Bluetooth equipment information, wherein the mapping relation stores the corresponding relation among the operating state of the Bluetooth chip, the operating state of the WiFi chip, the Bluetooth equipment information and the ratio parameter.
Further, the processor 1001 may call the antenna duty setting program stored in the memory 1005, and further perform the following operations:
and reading the current operating state of the Bluetooth chip and the current operating state of the WiFi chip through the host control interface HCI.
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 first buffer, and storing the current operation state of the WiFi chip into a second buffer;
storing the current Bluetooth equipment information into a third buffer;
and taking out the current operating state of the Bluetooth chip from the first buffer, taking out the current operating state of the WiFi chip from the second buffer, taking out the current Bluetooth equipment information from the third buffer, and determining the corresponding current duty ratio parameter according to the taken out current operating state of the Bluetooth chip, the current operating 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:
storing the current proportion parameter into a fourth buffer;
and taking out the current ratio parameter from the fourth buffer, and setting the antenna ratio of the Bluetooth chip and the WiFi chip according to the taken out current ratio parameter.
Further, the processor 1001 may call the antenna duty setting program stored in the memory 1005, and further perform the following operations:
and returning to the step of acquiring the current operation state of the Bluetooth chip and the current operation state of the WiFi chip when the operation state of the Bluetooth chip or the operation state of the WiFi chip changes.
In this embodiment, the corresponding current duty ratio parameter is determined according to the current operating state of the bluetooth chip, the current operating state of the WiFi chip, and the current bluetooth device information to which the bluetooth chip is connected, and then the antenna duty ratio of the bluetooth chip and the WiFi chip is set according to the current duty ratio parameter, so that the antenna duty ratio can be set according to actual requirements, which is closer to a user use scene, and the coexistence states of the bluetooth chip and the WiFi chip are switched in real time through real-time scheduling.
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: and acquiring the current operating state of the Bluetooth chip and the current operating state of the 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 control interface HCI.
S20: and 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 between step S10 and step S20, the two steps may be executed simultaneously, step S10 may precede step S20, or step S10 may follow step S20, which is not limited in this embodiment.
S30: and determining corresponding current ratio parameters according to the current operating state of the Bluetooth chip, the current operating state of the WiFi chip and the current Bluetooth equipment information.
In order to facilitate rapid determination of the current duty ratio parameter, in this embodiment, a mapping relationship may be pre-established, where the mapping relationship stores a corresponding relationship among the operating state of the bluetooth chip, the operating state of the WiFi chip, the bluetooth device information, and the duty ratio parameter, and when determining the current duty ratio parameter, the corresponding current duty ratio parameter may be searched in the mapping relationship according to the current operating state of the bluetooth chip, the current operating state of the WiFi chip, and the current bluetooth device information.
S40: and setting the antenna occupation ratio of the Bluetooth chip and the WiFi chip according to the current occupation ratio 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.
Since the user equipment actively acquires the state in S10, but the actively acquiring state is usually actively acquired according to a preset time interval, and sometimes the operation state of the bluetooth chip or the operation state of the WiFi chip cannot be immediately acquired, which results in that the antenna duty ratio cannot meet the actual requirement, in order to avoid this problem, after step S40, the method for setting the antenna duty ratio further includes: and when the operation state of the Bluetooth chip or the operation state of the WiFi chip changes, returning to the step S10, thereby ensuring that the antenna occupation ratio can meet the actual requirement.
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 user equipment is powered on, an initial duty parameter may be set to 1:9, the antenna duty 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 a 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 mapping relationship can be added with the correspondence relationship that the operation state of the bluetooth chip is idle state, the operation state of the WiFi chip is busy state, the current bluetooth device information is bluetooth remote controller, the device type in the current bluetooth information is bluetooth remote controller, the number of devices in the current bluetooth information is 1, and the duty parameter is 8: 2.
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 between the operation state of the WiFi chip as busy state, the current Bluetooth equipment information as a Bluetooth remote controller, the equipment type in the current Bluetooth information as the Bluetooth remote controller, the number of the equipment in the current Bluetooth information as 1 and the ratio parameter as 5:5 into the 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 blocked, the antenna ratio of the bluetooth chip to the WiFi chip can be allocated to be 3:7, and at this time, the corresponding relationship among the operating state of the bluetooth chip, the operating state of the WiFi chip, the types of the equipment in the current bluetooth information, 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 mapping relationship.
In short, the duty ratio parameter needs to be set according to the characteristics of WiFi and bluetooth and the user requirements of the combination scene, the setting situations of the duty ratio parameter are not listed, and different duty ratio parameters can be set in different situations.
The embodiment determines the corresponding current ratio parameter according to the current operating state of the Bluetooth chip, the current operating state of the WiFi chip and the current Bluetooth device information connected with the Bluetooth chip, and then sets 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 Bluetooth chip and the WiFi chip are closer to a user use scene, and the coexistence states of the Bluetooth chip and the WiFi chip are switched in real time through real-time scheduling.
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, after step S10, the antenna duty setting method further includes:
s11: and storing the current operation state of the Bluetooth chip into a first buffer, and storing the current operation state of the WiFi chip into a second buffer.
After step S20, the antenna ratio setting method further includes:
s21: storing the current Bluetooth equipment information into a third buffer;
the step S30 specifically includes:
s30': and taking out the current operating state of the Bluetooth chip from the first buffer, taking out the current operating state of the WiFi chip from the second buffer, taking out the current Bluetooth equipment information from the third buffer, and determining the corresponding current duty ratio parameter according to the taken out current operating state of the Bluetooth chip, the current operating state of the WiFi chip and the current Bluetooth equipment information.
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 current operation state of the Bluetooth chip into a first buffer A, storing the current operation state of the WiFi chip into a second buffer B, and storing the current Bluetooth equipment information into a third buffer C.
Correspondingly, when the current duty ratio parameter needs to be determined, the current operating state of the bluetooth chip can be taken out from the first buffer A, the current operating state of the WiFi chip can be taken out from the second buffer B, the current bluetooth device information can be taken out from the third buffer C, and the corresponding current duty ratio parameter can be determined according to the taken out current operating state of the bluetooth chip, the current operating state of the WiFi chip and the current bluetooth device information.
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. 2.
In the third embodiment, after step S30, the antenna duty setting method further includes:
s31: storing the current proportion parameter into a fourth buffer;
step S40, specifically including:
s40': and taking out the current ratio parameter from the fourth buffer, and setting the antenna ratio of the Bluetooth chip and the WiFi chip according to the taken out current ratio 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 current duty ratio parameter may be stored in a fourth buffer D, and accordingly, when the antenna duty ratio is displayed, the current duty ratio parameter may be taken out from the fourth buffer D, and the antenna duty ratios of the bluetooth chip and the WiFi chip are set according to the taken-out current duty ratio parameter.
In addition, an embodiment of the present invention further provides an antenna duty ratio setting apparatus, and referring to fig. 5, the antenna duty ratio setting apparatus includes:
the state acquisition module 10 is used for acquiring the current operating state of the bluetooth chip and the current operating state of the WiFi chip;
the information acquisition module 20 is configured to acquire information of a current bluetooth device connected to the bluetooth chip;
the parameter determining module 30 is configured to determine a corresponding current duty ratio parameter according to the current operating state of the bluetooth chip, the current operating state of the WiFi chip, and the current bluetooth device information;
and the duty ratio setting module 40 is configured to set the antenna duty ratio of the bluetooth chip and the WiFi chip according to the current duty ratio 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:
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 according to the current operating state of the Bluetooth chip, the current operating state of the WiFi chip and the current Bluetooth equipment information;
and setting the antenna occupation ratio of the Bluetooth chip and the WiFi chip according to the current occupation ratio parameter.
Further, the antenna duty ratio setting program when executed by the processor further implements the following operations:
and searching a corresponding current ratio parameter in a mapping relation according to the current operating state of the Bluetooth chip, the current operating state of the WiFi chip and the current Bluetooth equipment information, wherein the mapping relation stores the corresponding relation among the operating state of the Bluetooth chip, the operating state of the WiFi chip, the Bluetooth equipment information and the ratio parameter.
Further, the antenna duty ratio setting program when executed by the processor further implements the following operations:
and reading the current operating state of the Bluetooth chip and the current operating state of the WiFi chip through the host control interface HCI.
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 first buffer, and storing the current operation state of the WiFi chip into a second buffer;
storing the current Bluetooth equipment information into a third buffer;
and taking out the current operating state of the Bluetooth chip from the first buffer, taking out the current operating state of the WiFi chip from the second buffer, taking out the current Bluetooth equipment information from the third buffer, and determining the corresponding current duty ratio parameter according to the taken out current operating state of the Bluetooth chip, the current operating 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:
storing the current proportion parameter into a fourth buffer;
and taking out the current ratio parameter from the fourth buffer, and setting the antenna ratio of the Bluetooth chip and the WiFi chip according to the taken out current ratio parameter.
Further, the antenna duty ratio setting program when executed by the processor further implements the following operations:
and returning to the step of acquiring the current operation state of the Bluetooth chip and the current operation state of the WiFi chip when the operation state of the Bluetooth chip or the operation state of the WiFi chip changes.
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 (10)

1. An antenna occupation ratio setting method is characterized by comprising the following steps:
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 according to the current operating state of the Bluetooth chip, the current operating state of the WiFi chip and the current Bluetooth equipment information;
and setting the antenna occupation ratio of the Bluetooth chip and the WiFi chip according to the current occupation ratio parameter, wherein the antenna occupation ratio is the occupation ratio of the time length of the antenna.
2. The antenna duty cycle setting method of claim 1, wherein the current bluetooth device information includes: the device type and the device number of the current Bluetooth device connected with the Bluetooth chip.
3. The method for setting the antenna duty ratio according to claim 1, wherein the determining the corresponding current duty ratio parameter according to the current operating state of the bluetooth chip, the current operating state of the WiFi chip, and the current bluetooth device information specifically includes:
and searching a corresponding current ratio parameter in a mapping relation according to the current operating state of the Bluetooth chip, the current operating state of the WiFi chip and the current Bluetooth equipment information, wherein the mapping relation stores the corresponding relation among the operating state of the Bluetooth chip, the operating state of the WiFi chip, the Bluetooth equipment information and the ratio parameter.
4. The antenna duty ratio setting method according to claim 1, wherein the acquiring the current operating state of the bluetooth chip and the current operating state of the WiFi chip specifically includes:
and reading the current operating state of the Bluetooth chip and the current operating state of the WiFi chip through the host control interface HCI.
5. 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 first buffer, and storing the current operation state of the WiFi chip into a second 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 into a third buffer;
the determining the corresponding current duty ratio parameter according to the current operating state of the bluetooth chip, the current operating state of the WiFi chip, and the current bluetooth device information specifically includes:
and taking out the current operating state of the Bluetooth chip from the first buffer, taking out the current operating state of the WiFi chip from the second buffer, taking out the current Bluetooth equipment information from the third buffer, and determining the corresponding current duty ratio parameter according to the taken out current operating state of the Bluetooth chip, the current operating state of the WiFi chip and the current Bluetooth equipment information.
6. The method according to any one of claims 1 to 5, wherein after determining the corresponding current duty parameter 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 method further comprises:
storing the current proportion parameter into a fourth buffer;
the setting of the antenna duty ratio of the bluetooth chip and the WiFi chip according to the current duty ratio parameter specifically includes:
and taking out the current ratio parameter from the fourth buffer, and setting the antenna ratio of the Bluetooth chip and the WiFi chip according to the taken out current ratio parameter.
7. The antenna duty setting method according to any one of claims 1 to 5, wherein after the antenna duty of the Bluetooth chip and the WiFi chip is set according to the current duty parameter, the antenna duty setting method further comprises:
and returning to the step of acquiring the current operation state of the Bluetooth chip and the current operation state of the WiFi chip when the operation state of the Bluetooth chip or the operation state of the WiFi chip changes.
8. An antenna duty ratio setting device, characterized in that the antenna duty ratio setting device comprises:
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 according to the current operating state of the Bluetooth chip, the current operating state of the WiFi chip and the current Bluetooth equipment information;
and the occupation ratio setting module is used for setting the antenna occupation ratio of the Bluetooth chip and the WiFi chip according to the current occupation ratio parameter, wherein the antenna occupation ratio is the occupation ratio of the time length of the antenna.
9. 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 7.
10. 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 7.
CN201810931648.9A 2018-08-14 2018-08-14 Antenna ratio setting method and device, user equipment and storage medium Active CN109041026B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810931648.9A CN109041026B (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
CN201810931648.9A CN109041026B (en) 2018-08-14 2018-08-14 Antenna ratio setting method and device, user equipment and storage medium

Publications (2)

Publication Number Publication Date
CN109041026A CN109041026A (en) 2018-12-18
CN109041026B true CN109041026B (en) 2020-08-11

Family

ID=64630455

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810931648.9A Active CN109041026B (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) CN109041026B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112020079A (en) * 2019-05-31 2020-12-01 百度在线网络技术(北京)有限公司 Wireless communication device and method for electronic device, and storage medium
CN110290278A (en) * 2019-08-02 2019-09-27 惠州Tcl移动通信有限公司 Data transmission method, device, storage medium and terminal based on bluetooth

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102075207A (en) * 2010-12-23 2011-05-25 惠州Tcl移动通信有限公司 Device and method for implementing bluetooth and Wi-Fi single antenna
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

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8599709B2 (en) * 2011-02-10 2013-12-03 Apple Inc. Methods and apparatus for wireless coexistence based on transceiver chain emphasis

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102075207A (en) * 2010-12-23 2011-05-25 惠州Tcl移动通信有限公司 Device and method for implementing bluetooth and Wi-Fi single antenna
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
CN109041026A (en) 2018-12-18

Similar Documents

Publication Publication Date Title
CN108901077B (en) Antenna ratio setting method and device, user equipment and storage medium
US20170068527A1 (en) Device control method and apparatus
CN110687820B (en) Control method and device of intelligent household equipment, terminal equipment and storage medium
CN109041026B (en) Antenna ratio setting method and device, user equipment and storage medium
CN104898914A (en) Multi-page display method and device
KR20110064334A (en) Apparatus and method for user interface configuration in portable terminal
US11231836B2 (en) Multi-window displaying apparatus and method and mobile electronic equipment
CN111107518A (en) Display method, vehicle-mounted terminal, display system and computer-readable storage medium
CN112135081B (en) Mode control method and device, frame insertion chip and electronic equipment
WO2023020240A1 (en) Device control method and apparatus, and chip, electronic device and storage medium
CN108156312B (en) Method, terminal and storage device for controlling SIM card function menu display
CN116016556A (en) Control method of screen projection system, display device and readable storage medium
CN107493518B (en) IPTV terminal network outlet switching method, device and readable storage medium
US20170094500A1 (en) Subscriber identity module card managing method and electronic device
CN108307485B (en) Wireless network scanning method and device, terminal equipment and storage medium
CN103297516A (en) Multi-type providing method, multi-type providing system and multi-type providing device of applications
KR20130125948A (en) A method for providing digital album service and a device therefor
US20180115826A1 (en) System, terminal apparatus, main apparatus, and method
CN112367362B (en) Data processing method, device, equipment and computer storage medium
CN107580137A (en) Processing method, terminal and the computer-readable recording medium of presentation of information
CN111083651B (en) Call processing method and device, mobile terminal and computer readable storage medium
CN108710519B (en) Vehicle-mounted resource management system and method based on telephone processing
US20050223187A1 (en) Memory mapping control apparatus, information storage controller, data moving method, and data moving program
CN111782100A (en) Method, device, terminal and storage medium for previewing background picture
CN116709557B (en) Service processing method, device 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