CN109041026A - Antenna accounting setting method, device, user equipment and storage medium - Google Patents
Antenna accounting setting method, device, user equipment and storage medium Download PDFInfo
- Publication number
- CN109041026A CN109041026A CN201810931648.9A CN201810931648A CN109041026A CN 109041026 A CN109041026 A CN 109041026A CN 201810931648 A CN201810931648 A CN 201810931648A CN 109041026 A CN109041026 A CN 109041026A
- Authority
- CN
- China
- Prior art keywords
- current
- accounting
- bluetooth
- chip
- operating state
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 57
- 238000013507 mapping Methods 0.000 claims description 15
- 241001062009 Indigofera Species 0.000 claims description 6
- 238000010586 diagram Methods 0.000 description 9
- 238000004891 communication Methods 0.000 description 4
- 230000006870 function Effects 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 2
- MHOFGBJTSNWTDT-UHFFFAOYSA-M 2-[n-ethyl-4-[(6-methoxy-3-methyl-1,3-benzothiazol-3-ium-2-yl)diazenyl]anilino]ethanol;methyl sulfate Chemical compound COS([O-])(=O)=O.C1=CC(N(CCO)CC)=CC=C1N=NC1=[N+](C)C2=CC=C(OC)C=C2S1 MHOFGBJTSNWTDT-UHFFFAOYSA-M 0.000 description 1
- 241000208340 Araliaceae Species 0.000 description 1
- 235000005035 Panax pseudoginseng ssp. pseudoginseng Nutrition 0.000 description 1
- 235000003140 Panax quinquefolius Nutrition 0.000 description 1
- 235000008434 ginseng Nutrition 0.000 description 1
- 230000002452 interceptive effect Effects 0.000 description 1
- 238000002955 isolation Methods 0.000 description 1
- 238000012163 sequencing technique Methods 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/80—Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
-
- H04B5/48—
Abstract
The invention discloses a kind of antenna accounting setting method, device, user equipment and storage mediums.The present invention determines corresponding current accounting parameter according to the current Bluetooth facility information that the current operating state of Bluetooth chip, the current operating state of WiFi chip and Bluetooth chip have connected, the antenna accounting of the Bluetooth chip and WiFi chip is set further according to the current accounting parameter, antenna accounting can be set according to actual needs, it is more close to the users usage scenario, and Real-Time Scheduling, switch the coexisting state of Bluetooth chip and WiFi chip in real time.
Description
Technical field
The present invention relates to field of communication technology more particularly to a kind of antenna accounting setting method, device, user equipment and deposit
Storage media.
Background technique
WiMAX (Wireless-Fidelity, WiFi) and bluetooth (Bluetooth, abbreviation BT) are that many users set
Two function that can be carried on standby (such as: the equipment such as smart phone, notebook, tablet computer, intelligent sound box box or set-top box)
Can, WiFi is the technology for allowing user equipment to be connected to a WLAN (WLAN), needs to meet 802.11b/g mark
Standard is usually operated at 2.4G frequency range, and BT is also work in 2.4G frequency range, since WiFi and bluetooth substantially work in same frequency
Section, if the two works at the same time, will necessarily more or less have the phenomenon that interfering with each other.If WiFi and bluetooth collectively reside in
On one mould group, that is, single module or chip support WiFi and Bluetooth function simultaneously, then between WiFi and bluetooth that
This interference can be more serious, if isolation between antennas is inadequate, that can only time-sharing multiplex.
In the prior art, the coexisting state at present between WiFi and bluetooth is usually fixed, from device power-up to pass
Machine, coexisting state are exactly a kind of, such as: after user equipment powers on, the antenna accounting of WiFi and bluetooth is exactly to be distributed into 8:2, is begun
Whole such as one, it is adjusted without dynamic, so causing under the special scenes of certain user's equipment, this coexisting state is unable to satisfy field
Scape demand, and then there are various coexistence problems.
Above content is only used to facilitate the understanding of the technical scheme, and is not represented and is recognized that above content is existing skill
Art.
Summary of the invention
The main purpose of the present invention is to provide a kind of antenna accounting setting method, device, user equipment and storage medium,
It aims to solve the problem that the coexisting state in the prior art between WiFi and bluetooth is fixed, coexisting state is caused to be unable to satisfy scene demand,
And then there is the technical issues of various coexistence problems.
To achieve the above object, the present invention provides a kind of antenna accounting setting method, the antenna accounting setting method packet
Include following steps:
Obtain the current operating state of Bluetooth chip and the current operating state of WiFi chip;
Obtain the current Bluetooth facility information that the Bluetooth chip has connected;
It is set according to the current operating state of the Bluetooth chip, the current operating state of WiFi chip and current Bluetooth
Standby information determines corresponding current accounting parameter;
The antenna accounting of the Bluetooth chip and WiFi chip is set according to the current accounting parameter.
Preferably, the current Bluetooth facility information includes: setting for the current Bluetooth equipment that the Bluetooth chip has connected
Standby type and equipment number.
Preferably, it is described according to the current operating state of the Bluetooth chip, the current operating state of WiFi chip and
Current Bluetooth facility information determines corresponding current accounting parameter, specifically includes:
It is set according to the current operating state of the Bluetooth chip, the current operating state of WiFi chip and current Bluetooth
Standby information searches corresponding current accounting parameter in mapping relations, has the running of the Bluetooth chip in the mapping relations
Corresponding relationship between state, the operating state of WiFi chip, bluetooth equipment information and accounting parameter.
Preferably, the current operating state of the current operating state for obtaining Bluetooth chip and WiFi chip, specifically
Include:
The current operating state of Bluetooth chip and the current running shape of WiFi chip are read by Host Control Interface HCI
State.
Preferably, after the current operating state of the current operating state for obtaining Bluetooth chip and WiFi chip,
The antenna accounting setting method further include:
The current operating state of the Bluetooth chip is stored into the first buffer, by the current fortune of the WiFi chip
It stores as state into the second buffer;
After the current Bluetooth facility information that the acquisition Bluetooth chip has connected, the antenna accounting setting method
Further include:
The current Bluetooth facility information is stored into third buffer;
It is described according to the current operating state of the Bluetooth chip, the current operating state of WiFi chip and current blue
Tooth facility information determines corresponding current accounting parameter, specifically includes:
The current operating state that the Bluetooth chip is taken out from first buffer takes from second buffer
The current operating state of the WiFi chip out takes out the current Bluetooth facility information from the third buffer, according to
The current operating state of the Bluetooth chip, the current operating state of WiFi chip and the current Bluetooth facility information taken out
Determine corresponding current accounting parameter.
Preferably, it is described according to the current operating state of the Bluetooth chip, the current operating state of WiFi chip and
After current Bluetooth facility information determines corresponding current accounting parameter, the antenna accounting setting method further include:
The current accounting parameter is stored into the 4th buffer;
The antenna accounting that the Bluetooth chip and WiFi chip are arranged according to the current accounting parameter is specific to wrap
It includes:
Current accounting parameter is taken out from the 4th buffer, according to the current accounting parameter of taking-up to be arranged
State the antenna accounting of Bluetooth chip and WiFi chip.
Preferably, the antenna accounting that the Bluetooth chip and WiFi chip are set according to the current accounting parameter
Later, the antenna accounting setting method further include:
When the operating state of the Bluetooth chip or the operating state of WiFi chip change, it is blue to return to the acquisition
The step of current operating state of the current operating state of tooth chip and WiFi chip.
In addition, to achieve the above object, the present invention also provides a kind of antenna accountings, and device, the antenna accounting setting is arranged
Device includes:
State acquisition module, for obtaining the current operating state of Bluetooth chip and the current running shape of WiFi chip
State;
Data obtaining module, the current Bluetooth facility information being had connected for obtaining the Bluetooth chip;
Parameter determination module, for the current running shape according to the current operating state of the Bluetooth chip, WiFi chip
State and current Bluetooth facility information determine corresponding current accounting parameter;
Accounting setup module, for the day of the Bluetooth chip and WiFi chip to be arranged according to the current accounting parameter
Line accounting.
In addition, to achieve the above object, the present invention also provides a kind of user equipment, the user equipment include: memory,
The antenna accounting setting program that processor and being stored in can be run on the memory and on the processor, the antenna account for
The step of realizing antenna accounting setting method as described above when being executed than setting program by the processor.
In addition, to achieve the above object, the present invention also provides a kind of storage medium, being stored with antenna on the storage medium
Program is arranged in accounting, and the antenna accounting setting program realizes antenna accounting setting method as described above when being executed by processor
The step of.
The present invention is according to the current operating state of Bluetooth chip, the current operating state of WiFi chip and Bluetooth chip
The current Bluetooth facility information having connected determines corresponding current accounting parameter, further according to the current accounting parameter to be arranged
The antenna accounting of Bluetooth chip and WiFi chip is stated, antenna accounting can be set according to actual needs, and being more close to the users makes
With scene, and Real-Time Scheduling, switch the coexisting state of Bluetooth chip and WiFi chip in real time.
Detailed description of the invention
Fig. 1 is the user device architecture schematic diagram for the hardware running environment that the embodiment of the present invention is related to;
Fig. 2 is the flow diagram of priority setting method first embodiment of the present invention;
Fig. 3 is the flow diagram of priority setting method second embodiment of the present invention;
Fig. 4 is the flow diagram of priority setting method 3rd embodiment of the present invention;
Fig. 5 is the structural block diagram that device first embodiment is arranged in priority of the present invention.
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
Referring to Fig.1, Fig. 1 is the user device architecture schematic diagram for the hardware running environment that the embodiment of the present invention is related to.
As shown in Figure 1, the user equipment may include: processor 1001, such as CPU, communication bus 1002, Yong Hujie
Mouth 1003, network interface 1004, memory 1005.Wherein, communication bus 1002 is logical for realizing the connection between these components
Letter.User interface 1003 may include display screen (Display), and optional user interface 1003 can also include that the wired of standard connects
Mouth, wireless interface.Network interface 1004 optionally may include standard wireline interface and wireless interface (such as WI-FI interface).It deposits
Reservoir 1005 can be high speed RAM memory, be also possible to stable memory (non-volatile memory), such as magnetic
Disk storage.Memory 1005 optionally can also be the storage server independently of aforementioned processor 1001.
Specifically, the user equipment can be smart phone, notebook, tablet computer, intelligent sound box box or machine top
The equipment used by a user such as box can also be certainly other equipment, and the present embodiment is without restriction to this.
It will be understood by those skilled in the art that structure shown in Fig. 1 does not constitute the restriction to the user equipment, it can
To include perhaps combining certain components or different component layouts than illustrating more or fewer components.
As shown in Figure 1, as may include operating system, network communication mould in a kind of memory 1005 of storage medium
Program is arranged in block, Subscriber Interface Module SIM and antenna accounting.
The user equipment calls the antenna accounting stored in memory 1005 that program is arranged by processor 1001, and holds
The following operation of row:
Obtain the current operating state of Bluetooth chip and the current operating state of WiFi chip;
Obtain the current Bluetooth facility information that the Bluetooth chip has connected;
It is set according to the current operating state of the Bluetooth chip, the current operating state of WiFi chip and current Bluetooth
Standby information determines corresponding current accounting parameter;
The antenna accounting of the Bluetooth chip and WiFi chip is set according to the current accounting parameter.
Further, processor 1001 can call the antenna accounting stored in memory 1005 that program is arranged, and also execute
It operates below:
It is set according to the current operating state of the Bluetooth chip, the current operating state of WiFi chip and current Bluetooth
Standby information searches corresponding current accounting parameter in mapping relations, has the running of the Bluetooth chip in the mapping relations
Corresponding relationship between state, the operating state of WiFi chip, bluetooth equipment information and accounting parameter.
Further, processor 1001 can call the antenna accounting stored in memory 1005 that program is arranged, and also execute
It operates below:
The current operating state of Bluetooth chip and the current running shape of WiFi chip are read by Host Control Interface HCI
State.
Further, processor 1001 can call the antenna accounting stored in memory 1005 that program is arranged, and also execute
It operates below:
The current operating state of the Bluetooth chip is stored into the first buffer, by the current fortune of the WiFi chip
It stores as state into the second buffer;
The current Bluetooth facility information is stored into third buffer;
The current operating state that the Bluetooth chip is taken out from first buffer takes from second buffer
The current operating state of the WiFi chip out takes out the current Bluetooth facility information from the third buffer, according to
The current operating state of the Bluetooth chip, the current operating state of WiFi chip and the current Bluetooth facility information taken out
Determine corresponding current accounting parameter.
Further, processor 1001 can call the antenna accounting stored in memory 1005 that program is arranged, and also execute
It operates below:
The current accounting parameter is stored into the 4th buffer;
Current accounting parameter is taken out from the 4th buffer, according to the current accounting parameter of taking-up to be arranged
State the antenna accounting of Bluetooth chip and WiFi chip.
Further, processor 1001 can call the antenna accounting stored in memory 1005 that program is arranged, and also execute
It operates below:
When the operating state of the Bluetooth chip or the operating state of WiFi chip change, it is blue to return to the acquisition
The step of current operating state of the current operating state of tooth chip and WiFi chip.
In the present embodiment, according to the current operating state of Bluetooth chip, current operating state, the Yi Jilan of WiFi chip
The current Bluetooth facility information that tooth chip has connected determines corresponding current accounting parameter, comes further according to the current accounting parameter
The antenna accounting of the Bluetooth chip and WiFi chip is set, antenna accounting can be set according to actual needs, more close to
User's usage scenario, and Real-Time Scheduling switch the coexisting state of Bluetooth chip and WiFi chip in real time.
Based on above-mentioned hardware configuration, the embodiment of inventive antenna accounting setting method is proposed.
It is the flow diagram of inventive antenna accounting setting method first embodiment referring to Fig. 2, Fig. 2.
In the first embodiment, the antenna accounting setting method the following steps are included:
S10: the current operating state of Bluetooth chip and the current operating state of WiFi chip are obtained.
It should be noted that the operating state of Bluetooth chip is the letter for being used to reflect Bluetooth chip running status
Breath, can include: (connecting), bluetooth have connected (connected), bluetooth in bluetooth scanning (scan), bluetooth connection
Disconnection (disconnect), the free time states such as (idle) and busy (busy) may also include other states, this implementation certainly
Example is without restriction to this;
Similarly, the operating state of WiFi chip is the information for being used to reflect WiFi chip running status, can be wrapped
Include: WiFi scanning (scan), (linking) in WiFi connection, WiFi have connected (linked), the free time (idle), busy
(busy), WiFi data, which uploads the states such as (upload) and WiFi data downloading (download), may also include it certainly
His state, the present embodiment are without restriction to this.
It will be appreciated that the current operating state of the Bluetooth chip is the Bluetooth chip locating for the current time
Operating state, similarly it is found that the current operating state of the WiFi chip is the WiFi chip locating for the current time
Operating state.
It in the concrete realization, is the current fortune of current operating state and WiFi chip convenient for the acquisition Bluetooth chip
Make state, in the present embodiment, current operating state and WiFi chip that Host Control Interface HCI reads Bluetooth chip can be passed through
Current operating state.
S20: the current Bluetooth facility information that the Bluetooth chip has connected is obtained.
It will be appreciated that the current Bluetooth facility information, the indigo plant that the as described Bluetooth chip has connected at current time
The facility information of tooth equipment.
More accurately to characterize the current Bluetooth facility information, in the present embodiment, the current Bluetooth facility information
It include: the device type and equipment number of the current Bluetooth equipment that the Bluetooth chip has connected, such as: the Bluetooth chip
When having connected a blue Tooth remote controller, at this point, device type is blue Tooth remote controller, and equipment number in the current Bluetooth information
It is 1, certainly, the current Bluetooth facility information may also include other information, and the present embodiment is without restriction to this.
It should be noted that not having sequencing between step S10 and step S20, the two steps be may be performed simultaneously,
Can be with step S10 before step S20, can also be with step S10 after step S20, the present embodiment is without restriction to this.
S30: according to the current operating state of the Bluetooth chip, the current operating state of WiFi chip and current indigo plant
Tooth facility information determines corresponding current accounting parameter.
It is described in the present embodiment, a mapping relations can be pre-established convenient for quickly determining the current accounting parameter
There are the operating state of the Bluetooth chip, the operating state of WiFi chip, bluetooth equipment information and accounting in mapping relations
Corresponding relationship between parameter, when determining the current accounting parameter, can according to the current operating state of the Bluetooth chip,
The current operating state and current Bluetooth facility information of WiFi chip search corresponding current accounting ginseng in mapping relations
Number.
S40: the antenna accounting of the Bluetooth chip and WiFi chip is set according to the current accounting parameter.
It will be appreciated that the current accounting parameter as can reflect the Bluetooth chip and the antenna of WiFi chip accounts for
Therefore the antenna accounting of the Bluetooth chip and WiFi chip can be arranged in the parameter of ratio according to the current accounting parameter.
Due in above-mentioned S10, be by user equipment active acquisition state, but actively obtain state be usually according to it is default when
Between interval to carry out active acquisition, and the operating state of the operating state of the Bluetooth chip or WiFi chip can not be instant sometimes
It obtains, antenna accounting is caused to be unable to satisfy actual demand, to avoid the problem, after step S40, antenna accounting setting side
Method further include: when the operating state of the Bluetooth chip or the operating state of WiFi chip change, return step S10,
To guarantee that the antenna accounting can satisfy actual demand.
It should be noted that the antenna accounting of the WiFi chip and Bluetooth chip default may be configured as Bluetooth chip accounting
Greater than WiFi chip, accounting parameter can be set to 1:9, correspondingly, the antenna accounting of the WiFi chip and Bluetooth chip can
It is set as 1:9, that is to say, that macroscopically indicate, in the total time of such as 100ms, WiFi chip occupies antenna 10ms, bluetooth core
Piece occupies antenna 90ms.Why in this way, being because in many cases, for only having blue Tooth remote controller as input equipment
User equipment for, the highest priority of the remote controler of bluetooth, and bluetooth is carrying out bluetooth scanning, that is, blue Tooth remote controller
It when pairing, needs to occupy a large amount of antenna resources, if distribution is improper, will lead to blue Tooth remote controller pairing failure, for pure
The user equipment (such as: set-top box) of blue Tooth remote controller, therefore, to assure that user can match.
That is, 1:9 can be set by initial accounting parameter when the user equipment powers on, according to described initial
The antenna accounting of the WiFi chip and Bluetooth chip is arranged in accounting parameter, can for convenient for obtaining the initial accounting parameter
Operating state by the Bluetooth chip be idle state, the WiFi chip operating state be busy state, it is described current
Bluetooth equipment information be without and the initial accounting parameter be that corresponding relationship between 1:9 is added in mapping relations.
When connecting a blue Tooth remote controller due to user equipment, it is, the Bluetooth chip of user equipment is in
Connected state, WiFi chip operating state be busy state, device type is that bluetooth is distant in the current Bluetooth information
When to control device and equipment number be 1, blue-teeth data amount is very low, and at this time user needs to be accounted for video from the point of view of WiFi
Antenna accounting than parameter is arranged to 8:2, can both guarantee that blue Tooth remote controller is good for use, can also improve WiFi speed to greatest extent
Rate, at this point, can be by the operating state of the Bluetooth chip idle state, the WiFi chip operating state be busy shape
State, the current Bluetooth facility information be blue Tooth remote controller, in current Bluetooth information device type be blue Tooth remote controller, it is current blue
Equipment number is 1 in tooth information and accounting parameter is that corresponding relationship between 8:2 is added in mapping relations.
Since user equipment is after connecting a blue Tooth remote controller, when blue Tooth remote controller disconnection, that is to say, that user
The Bluetooth chip of equipment is in disconnect state, the operating state of the WiFi chip is busy state, the current indigo plant
Device type is blue Tooth remote controller and when equipment number is 1 in tooth information, after remote controler disconnection, user equipment (such as:
Intelligent sound box box) Bluetooth chip will do it bluetooth scanning carry out Hui Lian, at this time need antenna is inclined toward Bluetooth chip, it is no
Then will lead to Hui Lian not on, and it is available altogether to coexist the most basic blue Tooth remote controller that guarantee user, once so Bluetooth remote control
Device is in bluetooth disconnected state, needs to improve the accounting of Bluetooth chip, it is ensured that remote controler can be returned and be connected, at this time can be by accounting parameter
It is arranged to 5:5, at this point, can be the running of disconnect state, the WiFi chip by the operating state of the Bluetooth chip
State is busy state, the current Bluetooth facility information is blue Tooth remote controller, device type is bluetooth in current Bluetooth information
Equipment number is 1 in remote controler, current Bluetooth information and accounting parameter is that corresponding relationship between 5:5 is added to mapping and closes
In system.
Since user equipment is when connecting a blue Tooth remote controller and Baffle Box of Bluetooth, that is to say, that the indigo plant of user equipment
Tooth chip is in bluetooth connected status, in the current Bluetooth information device type be blue Tooth remote controller and Baffle Box of Bluetooth and
When equipment number is 2, in order to ensure blue Tooth remote controller and Baffle Box of Bluetooth can normal use, Baffle Box of Bluetooth not Caton can will be blue
The antenna accounting of tooth chip and WiFi chip is distributed into 3:7, at this point, can be by the operating state of the Bluetooth chip
Connected state, the WiFi chip operating state be busy state, device type is blue in the current Bluetooth information
Tooth remote controler and Baffle Box of Bluetooth, equipment number are 2 and accounting parameter is that corresponding relationship between 3:7 is added to mapping relations
In.
In short, accounting parameter needs to follow the characteristic of WiFi and bluetooth and is arranged in conjunction with the user demand of scene, with
The setting situation of upper accounting parameter has not been enumerated, can different situations be respectively set different accounting parameters.
The present embodiment is according to the current operating state of Bluetooth chip, the current operating state of WiFi chip and bluetooth core
The current Bluetooth facility information that piece has connected determines corresponding current accounting parameter, is arranged further according to the current accounting parameter
Antenna accounting can be arranged according to actual needs, be more close to the users for the antenna accounting of the Bluetooth chip and WiFi chip
Usage scenario, and Real-Time Scheduling switch the coexisting state of Bluetooth chip and WiFi chip in real time.
It is the flow diagram of inventive antenna accounting setting method second embodiment referring to Fig. 3, Fig. 3, is based on above-mentioned Fig. 2
Shown in embodiment, propose inventive antenna accounting setting method second embodiment.
In a second embodiment, after step S10, the antenna accounting setting method further include:
S11: the current operating state of the Bluetooth chip is stored into the first buffer, by working as the WiFi chip
Preceding operating state is stored into the second buffer.
After step S20, the antenna accounting setting method further include:
S21: the current Bluetooth facility information is stored into third buffer;
The step S30, specifically includes:
S30 ': taking out the current operating state of the Bluetooth chip from first buffer, from second caching
The current operating state that the WiFi chip is taken out in device takes out the current Bluetooth equipment letter from the third buffer
Breath, sets according to the current operating state of the Bluetooth chip of taking-up, the current operating state of WiFi chip and current Bluetooth
Standby information determines corresponding current accounting parameter.
It should be noted that realized since some process flows belong to distinct program process, for convenient for process can be fast
Speed obtains data, and prevents loss of data, in the present embodiment, can store the processing result of some process flows to preset
In buffer, when process needs to obtain data, can directly it be read from corresponding buffer, such as: by the Bluetooth chip
Current operating state store into the first buffer A, by the current operating state of the WiFi chip store to second caching
In device B, the current Bluetooth facility information is stored into third buffer C.
Correspondingly, it needs to be determined that the bluetooth core can be taken out from the first buffer A when current accounting parameter
The current operating state of piece takes out the current operating state of the WiFi chip, from the third from the second buffer B
The current Bluetooth facility information is taken out in buffer C, according to the current operating state of the Bluetooth chip of taking-up, WiFi core
The current operating state and current Bluetooth facility information of piece determine corresponding current accounting parameter.
It is the flow diagram of inventive antenna accounting setting method 3rd embodiment referring to Fig. 4, Fig. 4, is based on above-mentioned Fig. 2
Shown in embodiment, propose inventive antenna accounting setting method 3rd embodiment.
In the third embodiment, after step S30, the antenna accounting setting method further include:
S31: the current accounting parameter is stored into the 4th buffer;
Step S40, specifically includes:
S40 ': taking out current accounting parameter from the 4th buffer, according to the current accounting parameter of taking-up come
The antenna accounting of the Bluetooth chip and WiFi chip is set.
It should be noted that realized since some process flows belong to distinct program process, for convenient for process can be fast
The antenna accounting of the Bluetooth chip and WiFi chip is arranged in speed, and prevents loss of data, in the present embodiment, can work as by described in
Preceding accounting parameter is stored into the 4th buffer D, correspondingly, when showing antenna accounting, can be taken from the 4th buffer D
Current accounting parameter out is accounted for according to the current accounting parameter of taking-up the antenna of the Bluetooth chip and WiFi chip is arranged
Than.
In addition, the embodiment of the present invention also proposes a kind of antenna accounting setting device, and referring to Fig. 5, the antenna accounting setting
Device includes:
State acquisition module 10, for obtaining the current operating state of Bluetooth chip and the current running shape of WiFi chip
State;
Data obtaining module 20, the current Bluetooth facility information being had connected for obtaining the Bluetooth chip;
Parameter determination module 30, for the current running according to the current operating state, WiFi chip of the Bluetooth chip
State and current Bluetooth facility information determine corresponding current accounting parameter;
Accounting setup module 40, for the Bluetooth chip and WiFi chip to be arranged according to the current accounting parameter
Antenna accounting.
Each module in above-mentioned apparatus can be used for realizing each step in the above method, and details are not described herein.
In addition, the embodiment of the present invention also proposes a kind of storage medium, the setting of antenna accounting is stored on the storage medium
Program, the antenna accounting setting program realize following operation when being executed by processor:
Obtain the current operating state of Bluetooth chip and the current operating state of WiFi chip;
Obtain the current Bluetooth facility information that the Bluetooth chip has connected;
It is set according to the current operating state of the Bluetooth chip, the current operating state of WiFi chip and current Bluetooth
Standby information determines corresponding current accounting parameter;
The antenna accounting of the Bluetooth chip and WiFi chip is set according to the current accounting parameter.
Further, following operation is also realized when the antenna accounting setting program is executed by processor:
It is set according to the current operating state of the Bluetooth chip, the current operating state of WiFi chip and current Bluetooth
Standby information searches corresponding current accounting parameter in mapping relations, has the running of the Bluetooth chip in the mapping relations
Corresponding relationship between state, the operating state of WiFi chip, bluetooth equipment information and accounting parameter.
Further, following operation is also realized when the antenna accounting setting program is executed by processor:
The current operating state of Bluetooth chip and the current running shape of WiFi chip are read by Host Control Interface HCI
State.
Further, following operation is also realized when the antenna accounting setting program is executed by processor:
The current operating state of the Bluetooth chip is stored into the first buffer, by the current fortune of the WiFi chip
It stores as state into the second buffer;
The current Bluetooth facility information is stored into third buffer;
The current operating state that the Bluetooth chip is taken out from first buffer takes from second buffer
The current operating state of the WiFi chip out takes out the current Bluetooth facility information from the third buffer, according to
The current operating state of the Bluetooth chip, the current operating state of WiFi chip and the current Bluetooth facility information taken out
Determine corresponding current accounting parameter.
Further, following operation is also realized when the antenna accounting setting program is executed by processor:
The current accounting parameter is stored into the 4th buffer;
Current accounting parameter is taken out from the 4th buffer, according to the current accounting parameter of taking-up to be arranged
State the antenna accounting of Bluetooth chip and WiFi chip.
Further, following operation is also realized when the antenna accounting setting program is executed by processor:
When the operating state of the Bluetooth chip or the operating state of WiFi chip change, it is blue to return to the acquisition
The step of current operating state of the current operating state of tooth chip and WiFi chip.
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row
His property includes, so that the process, method, article or the system that include a series of elements not only include those elements, and
And further include other elements that are not explicitly listed, or further include for this process, method, article or system institute it is intrinsic
Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to do
There is also other identical elements in the process, method of element, article or system.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side
Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases
The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art
The part contributed out can be embodied in the form of software products, which is stored in one as described above
In storage medium (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that terminal device (it can be mobile phone,
Computer, server, air conditioner or network equipment etc.) execute method described in each embodiment of the present invention.
The above is only a preferred embodiment of the present invention, is not intended to limit the scope of the invention, all to utilize this hair
Equivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skills
Art field, is included within the scope of the present invention.
Claims (10)
1. a kind of antenna accounting setting method, which is characterized in that the antenna accounting setting method the following steps are included:
Obtain the current operating state of Bluetooth chip and the current operating state of WiFi chip;
Obtain the current Bluetooth facility information that the Bluetooth chip has connected;
Believed according to the current operating state of the Bluetooth chip, the current operating state of WiFi chip and current Bluetooth equipment
Breath determines corresponding current accounting parameter;
The antenna accounting of the Bluetooth chip and WiFi chip is set according to the current accounting parameter.
2. antenna accounting setting method as described in claim 1, which is characterized in that the current Bluetooth facility information includes:
The device type and equipment number for the current Bluetooth equipment that the Bluetooth chip has connected.
3. antenna accounting setting method as described in claim 1, which is characterized in that described according to the current of the Bluetooth chip
Operating state, the current operating state of WiFi chip and current Bluetooth facility information determine corresponding current accounting parameter, tool
Body includes:
Believed according to the current operating state of the Bluetooth chip, the current operating state of WiFi chip and current Bluetooth equipment
Breath searches corresponding current accounting parameter in mapping relations, has the running shape of the Bluetooth chip in the mapping relations
Corresponding relationship between state, the operating state of WiFi chip, bluetooth equipment information and accounting parameter.
4. antenna accounting setting method as described in claim 1, which is characterized in that the current running for obtaining Bluetooth chip
The current operating state of state and WiFi chip, specifically includes:
The current operating state of Bluetooth chip and the current operating state of WiFi chip are read by Host Control Interface HCI.
5. antenna accounting setting method as described in claim 1, which is characterized in that the current running for obtaining Bluetooth chip
After the current operating state of state and WiFi chip, the antenna accounting setting method further include:
The current operating state of the Bluetooth chip is stored into the first buffer, by the current running shape of the WiFi chip
State is stored into the second buffer;
After the current Bluetooth facility information that the acquisition Bluetooth chip has connected, the antenna accounting setting method is also wrapped
It includes:
The current Bluetooth facility information is stored into third buffer;
It is described to be set according to the current operating state of the Bluetooth chip, the current operating state of WiFi chip and current Bluetooth
Standby information determines corresponding current accounting parameter, specifically includes:
The current operating state that the Bluetooth chip is taken out from first buffer takes out institute from second buffer
The current operating state for stating WiFi chip takes out the current Bluetooth facility information, according to taking-up from the third buffer
The current operating state of the Bluetooth chip, the current operating state of WiFi chip and current Bluetooth facility information determine
Corresponding current accounting parameter.
6. such as antenna accounting setting method according to any one of claims 1 to 5, which is characterized in that described according to the indigo plant
The current operating state of tooth chip, the current operating state of WiFi chip and current Bluetooth facility information determine corresponding work as
After preceding accounting parameter, the antenna accounting setting method further include:
The current accounting parameter is stored into the 4th buffer;
The antenna accounting that the Bluetooth chip and WiFi chip are arranged according to the current accounting parameter, specifically includes:
Current accounting parameter is taken out from the 4th buffer, the indigo plant is arranged according to the current accounting parameter of taking-up
The antenna accounting of tooth chip and WiFi chip.
7. such as antenna accounting setting method according to any one of claims 1 to 5, which is characterized in that described to work as according to
Preceding accounting parameter is come after the antenna accounting of the Bluetooth chip and WiFi chip is arranged, the antenna accounting setting method is also wrapped
It includes:
When the operating state of the Bluetooth chip or the operating state of WiFi chip change, the acquisition bluetooth core is returned
The step of current operating state of the current operating state of piece and WiFi chip.
8. device is arranged in a kind of antenna accounting, which is characterized in that the antenna accounting is arranged device and includes:
State acquisition module, for obtaining the current operating state of Bluetooth chip and the current operating state of WiFi chip;
Data obtaining module, the current Bluetooth facility information being had connected for obtaining the Bluetooth chip;
Parameter determination module, for according to the current operating state of the current operating state of the Bluetooth chip, WiFi chip, with
And current Bluetooth facility information determines corresponding current accounting parameter;
Accounting setup module, for being accounted for according to the current accounting parameter the antenna of the Bluetooth chip and WiFi chip is arranged
Than.
9. a kind of user equipment, which is characterized in that the user equipment includes: memory, processor and is stored in the storage
On device and the antenna accounting setting program that can run on the processor, antenna accounting setting program is by the processor
The step of antenna accounting setting method as described in any one of claims 1 to 7 is realized when execution.
10. a kind of storage medium, which is characterized in that be stored with antenna accounting setting program, the antenna on the storage medium
Accounting setting program realizes the antenna accounting setting method as described in any one of claims 1 to 7 when being executed by processor
Step.
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 true CN109041026A (en) | 2018-12-18 |
CN109041026B 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) |
Cited By (2)
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 |
WO2021022720A1 (en) * | 2019-08-02 | 2021-02-11 | 惠州Tcl移动通信有限公司 | Bluetooth-based data transmission method, storage medium and terminal |
Citations (4)
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 |
US20160242071A1 (en) * | 2011-02-10 | 2016-08-18 | Apple Inc. | Methods and apparatus for wireless coexistence based on transceiver chain emphasis |
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 |
-
2018
- 2018-08-14 CN CN201810931648.9A patent/CN109041026B/en active Active
Patent Citations (4)
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 |
US20160242071A1 (en) * | 2011-02-10 | 2016-08-18 | Apple Inc. | Methods and apparatus for wireless coexistence based on transceiver chain emphasis |
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 |
Cited By (2)
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 |
WO2021022720A1 (en) * | 2019-08-02 | 2021-02-11 | 惠州Tcl移动通信有限公司 | Bluetooth-based data transmission method, storage medium and terminal |
Also Published As
Publication number | Publication date |
---|---|
CN109041026B (en) | 2020-08-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108901077A (en) | Antenna accounting setting method, device, user equipment and storage medium | |
CN107148009B (en) | Multi-standard mobile communication network internet data flow measuring device and method thereof | |
CN109542614B (en) | Resource allocation method, device, terminal and storage medium | |
CN103491653A (en) | WiFi and 3G coexisting method based on Android intelligent terminal | |
CN107529208A (en) | A kind of multi-mode terminal service processing method and processing device, multimode terminal | |
CN109495875B (en) | SIM card selection method and device, electronic equipment and storage medium | |
CN103002516B (en) | A kind of data transmission method and device, data terminal | |
CN103533165B (en) | Multi-APN (Access Point Name) concurrency method supporting Android applications of handheld equipment and system thereof | |
CN112672388A (en) | Call method, device, storage medium and user terminal | |
CN109309943B (en) | Multi-card multi-standby terminal, data card switching control method and device thereof, and storage medium | |
CN103228005A (en) | Testing method and device for data service of mobile communication network | |
CN109041026A (en) | Antenna accounting setting method, device, user equipment and storage medium | |
CN103002517A (en) | Data transmission method and data terminal | |
CN106791207A (en) | The method for controlling dialing and mobile terminal of a kind of mobile terminal | |
CN107430496A (en) | Frame is abandoned for long-range display | |
CN106792823A (en) | A kind of terminal connection method and device based on Miracast | |
CN101931700B (en) | Method for realizing communication between smart mobile phone chips and smart mobile phone | |
CN103024790A (en) | Automatic network communication quality automatic testing method and automatic network communication quality testing system | |
CN111262909A (en) | Large-screen information display method, device, equipment and storage medium | |
CN106465463A (en) | Wireless communication device | |
CN105429900A (en) | Method, device and system for bandwidth speed acceleration | |
CN102625399B (en) | Method for quickly switching network system on mobile platform | |
CN105721392A (en) | Method, device and system for recommending applications | |
CN104320221A (en) | Bus transfer rate control method and device for communication module | |
CN107786956B (en) | Method and device for determining real-time priority of package |
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 |