CN108901077A - 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
- CN108901077A CN108901077A CN201810931528.9A CN201810931528A CN108901077A CN 108901077 A CN108901077 A CN 108901077A CN 201810931528 A CN201810931528 A CN 201810931528A CN 108901077 A CN108901077 A CN 108901077A
- Authority
- CN
- China
- Prior art keywords
- current
- bluetooth
- accounting
- parameter
- chip
- 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
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W72/00—Local resource management
- H04W72/12—Wireless traffic scheduling
- H04W72/1215—Wireless traffic scheduling for collaboration of different radio technologies
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W88/00—Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
- H04W88/02—Terminal devices
- H04W88/06—Terminal devices adapted for operation in multiple networks or having at least two operational modes, e.g. multi-mode terminals
Abstract
The invention discloses a kind of antenna accounting setting method, device, user equipment and storage mediums.The current Bluetooth facility information and the current priority parameter that the present invention has connected according to the current operating state of Bluetooth chip, current operating state, the Bluetooth chip of WiFi chip determine corresponding current accounting parameter, 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
Standby (such as:The equipment such as smart phone, notebook, tablet computer, intelligent sound box box or set-top box) on two function can carrying
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, begin
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:
When generation needs to transmit instruction using the information of WiFi or bluetooth, transmit to instruct determining correspondence according to the information
Current information transmitting scene;
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;
According to the current operating state of the Bluetooth chip, the current operating state of WiFi chip, current Bluetooth equipment letter
Breath and the current information transmitting scene determine corresponding current accounting parameter and current priority parameter;
The antenna accounting of the Bluetooth chip and WiFi chip is set according to the current accounting parameter, is worked as according to described
Preceding priority parameters are arranged WiFi priority and Bluetooth priority levels.
Preferably, the current operating state, current of the current operating state according to the Bluetooth chip, WiFi chip
Bluetooth equipment information and the current information transmitting scene determine corresponding current accounting parameter and current priority parameter,
It specifically includes:
Obtain priority parameters to be adjusted corresponding with the current information transmitting scene;
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 accounting parameter to be adjusted;
According to the current operating state of the Bluetooth chip, the current operating state of WiFi chip, current Bluetooth equipment letter
Breath and the current information transmitting scene are adjusted the accounting parameter to be adjusted and priority parameters to be adjusted, obtain
Obtain corresponding current accounting parameter and current priority parameter.
Preferably, described to obtain priority parameters to be adjusted corresponding with the current information transmitting scene, it specifically includes:
Priority parameters to be adjusted corresponding with the current information transmitting scene are searched in the first mapping relations, it is described
There is the corresponding relationship between information transmitting scene and priority parameters in first mapping relations;
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 accounting parameter to be adjusted, 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 accounting parameter to be adjusted in the second mapping relations, has the bluetooth in second mapping relations
Corresponding relationship between the operating state of chip, the operating state of WiFi chip, bluetooth equipment information and accounting parameter.
Preferably, described after acquisition priority parameters to be adjusted corresponding with the current information transmitting scene
Antenna accounting setting method further includes:
The priority parameters to be adjusted are stored into the first buffer;
It is described according to the current operating state of the Bluetooth chip, the current operating state of WiFi chip and current blue
After tooth facility information determines corresponding accounting parameter to be adjusted, the antenna accounting setting method further includes:
The accounting parameter to be adjusted is stored into the second buffer;
It is described to be set according to the current operating state of the Bluetooth chip, current operating state, the current Bluetooth of WiFi chip
Standby information and the current information transmitting scene adjust the accounting parameter to be adjusted and priority parameters to be adjusted
It is whole, corresponding current accounting parameter and current priority parameter are obtained, is specifically included:
The current priority parameter is taken out from first buffer, taken out from second buffer it is described to
Accounting parameter is adjusted, is set according to current operating state, the current Bluetooth of the current operating state of the Bluetooth chip, WiFi chip
Standby information and the current information transmitting scene adjust the accounting parameter to be adjusted of taking-up and priority parameters to be adjusted
It is whole, obtain corresponding current accounting parameter and current priority parameter.
Preferably, after the current operating state of the current operating state for obtaining Bluetooth chip and WiFi chip,
The antenna accounting setting method further includes:
The current operating state of the Bluetooth chip is stored to third buffer, by the current running of the WiFi chip
State is stored to the 4th 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 to the 5th 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 accounting parameter to be adjusted, specifically includes:
The current operating state that the Bluetooth chip is taken out from the third buffer takes from the 4th buffer
The current operating state of the WiFi chip out takes out the current Bluetooth facility information from the 5th buffer, according to
The current operating state of the Bluetooth chip of taking-up, the current operating state of WiFi chip and current Bluetooth facility information determine
Corresponding accounting parameter to be adjusted.
Preferably, the current operating state, current of the current operating state according to the Bluetooth chip, WiFi chip
Bluetooth equipment information and the current information transmitting scene determine corresponding current accounting parameter and current priority parameter it
Afterwards, the antenna accounting setting method further includes:
Priority parameters to be adjusted in first buffer are updated to the current priority parameter, by described
Accounting parameter to be adjusted in two buffers is updated to the current accounting parameter;
The antenna accounting that the Bluetooth chip and WiFi chip are set according to the current accounting parameter, according to institute
Current priority parameter is stated WiFi priority and Bluetooth priority levels are arranged, is specifically included:
Current priority parameter is taken out from first buffer, and current accounting ginseng is taken out from second buffer
Number, the antenna accounting of the Bluetooth chip and WiFi chip is arranged according to the current accounting parameter of taking-up, according to working as taking-up
Preceding priority parameters are arranged WiFi priority and Bluetooth priority levels.
Preferably, the current Bluetooth facility information includes:The current Bluetooth equipment that the Bluetooth chip has connected is set
Standby type and equipment number.
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:
Scene determining module, for generate need the information transmission instruction using WiFi or bluetooth when, according to the letter
Breath transmission instruction determines corresponding current information transmitting scene;
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, current Bluetooth facility information and the current information transmitting scene determine corresponding current accounting parameter and current preference
Grade parameter;
Parameter setting module, for the day of the Bluetooth chip and WiFi chip to be arranged according to the current accounting parameter
WiFi priority and Bluetooth priority levels are arranged according to the current priority parameter in line accounting.
In addition, to achieve the above object, the present invention also provides a kind of user equipment, the user equipment includes: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 has connected according to the current operating state of Bluetooth chip, current operating state, the Bluetooth chip of WiFi chip
The current Bluetooth facility information and the current priority parameter connect determines corresponding current accounting parameter, further according to described
Current accounting parameter is arranged the antenna accounting of the Bluetooth chip and WiFi chip, antenna can be arranged according to actual needs
Accounting, usage scenario of being more close to the users, 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 inventive antenna accounting setting method first embodiment;
Fig. 3 is the flow diagram of inventive antenna accounting setting method second embodiment;
Fig. 4 is the flow diagram of inventive antenna accounting setting method 3rd embodiment;
Fig. 5 is the flow diagram of inventive antenna accounting setting method fourth embodiment;
Fig. 6 is the flow diagram of the 5th embodiment of inventive antenna accounting setting method.
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:
When generation needs to transmit instruction using the information of WiFi or bluetooth, transmit to instruct determining correspondence according to the information
Current information transmitting scene;
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;
According to the current operating state of the Bluetooth chip, the current operating state of WiFi chip, current Bluetooth equipment letter
Breath and the current information transmitting scene determine corresponding current accounting parameter and current priority parameter;
The antenna accounting of the Bluetooth chip and WiFi chip is set according to the current accounting parameter, is worked as according to described
Preceding priority parameters are arranged WiFi priority and Bluetooth priority levels.
Further, processor 1001 can call the antenna accounting stored in memory 1005 that program is arranged, and also execute
It operates below:
Obtain priority parameters to be adjusted corresponding with the current information transmitting scene;
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 accounting parameter to be adjusted;
According to the current operating state of the Bluetooth chip, the current operating state of WiFi chip, current Bluetooth equipment letter
Breath and the current information transmitting scene are adjusted the accounting parameter to be adjusted and priority parameters to be adjusted, obtain
Obtain corresponding current accounting parameter and current priority parameter.
Further, processor 1001 can call the antenna accounting stored in memory 1005 that program is arranged, and also execute
It operates below:
Priority parameters to be adjusted corresponding with the current information transmitting scene are searched in the first mapping relations, it is described
There is the corresponding relationship between information transmitting scene and priority parameters in first mapping relations;
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 accounting parameter to be adjusted in the second mapping relations, has the bluetooth in second mapping relations
Corresponding relationship between the operating state of chip, 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 priority parameters to be adjusted are stored into the first buffer;
The accounting parameter to be adjusted is stored into the second buffer;
The current priority parameter is taken out from first buffer, taken out from second buffer it is described to
Accounting parameter is adjusted, is set according to current operating state, the current Bluetooth of the current operating state of the Bluetooth chip, WiFi chip
Standby information and the current information transmitting scene adjust the accounting parameter to be adjusted of taking-up and priority parameters to be adjusted
It is whole, obtain corresponding current accounting parameter and current priority 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 the Bluetooth chip is stored to third buffer, by the current running of the WiFi chip
State is stored to the 4th buffer;
The current Bluetooth facility information is stored to the 5th buffer;
The current operating state that the Bluetooth chip is taken out from the third buffer takes from the 4th buffer
The current operating state of the WiFi chip out takes out the current Bluetooth facility information from the 5th buffer, according to
The current operating state of the Bluetooth chip of taking-up, the current operating state of WiFi chip and current Bluetooth facility information determine
Corresponding accounting parameter to be adjusted.
Further, processor 1001 can call the antenna accounting stored in memory 1005 that program is arranged, and also execute
It operates below:
Priority parameters to be adjusted in first buffer are updated to the current priority parameter, by described
Accounting parameter to be adjusted in two buffers is updated to the current accounting parameter;
Current priority parameter is taken out from first buffer, and current accounting ginseng is taken out from second buffer
Number, the antenna accounting of the Bluetooth chip and WiFi chip is arranged according to the current accounting parameter of taking-up, according to working as taking-up
Preceding priority parameters are arranged WiFi priority and Bluetooth priority levels.
In the present embodiment, according to the current operating state of the Bluetooth chip, the current operating state of WiFi chip, indigo plant
The current Bluetooth facility information and the current information transmitting scene that tooth chip has connected determine corresponding current accounting parameter
With current priority parameter, accounted for further according to the current accounting parameter the antenna of the Bluetooth chip and WiFi chip is arranged
Than WiFi priority and Bluetooth priority levels are arranged according to the current priority parameter, can be arranged according to actual needs
Antenna accounting and priority, usage scenario of being more close to the users, and Real-Time Scheduling switch Bluetooth chip and WiFi core in real time
The coexisting state of piece.
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 includes the following steps:
S10:When generation is needed using the transmission instruction of the information of WiFi or bluetooth, transmit to instruct determining according to the information
Corresponding current information transmitting scene;
It should be noted that user equipment is when receiving information transmission request, it will usually be asked according to information transmission
Seek survival into corresponding information transmission instruction, it is assumed that the information transmission instruction of generation needs to carry out information biography using WiFi or bluetooth
Defeated response, information transmission instruction at this time is as described to be needed to utilize the transmission instruction of the information of WiFi or bluetooth.
It will be appreciated that different information transmitting scenes can generate different information transmission requests, and different information passes
Defeated request can generate different information transmission instructions, therefore, can be transmitted according to the information after determining information transmission instruction
Instruction determines corresponding current information transmitting scene.
S20:Obtain the current operating state of Bluetooth chip and the current operating state of WiFi chip;
It should be noted that the operating state of Bluetooth chip is the letter for being used to reflect Bluetooth chip running status
It ceases, may 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
It includes: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, Host Control Interface (Host Controller Interface, HCI) can be passed through and read bluetooth core
The current operating state of piece and the current operating state of WiFi chip.
S30:Obtain the current Bluetooth facility information that the Bluetooth chip has connected;
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
Including:The device type and equipment number for 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, S20 and S30, these steps be may be performed simultaneously,
It can also be executed using any sequencing, the present embodiment is without restriction to this.
S40:It is set according to current operating state, the current Bluetooth of the current operating state of the Bluetooth chip, WiFi chip
Standby information and the current information transmitting scene determine corresponding current accounting parameter and current priority parameter;
For an inquiry table can be pre-established convenient for the corresponding current accounting parameter of determination and current priority parameter,
When determining corresponding current accounting parameter and current priority parameter, can according to the current operating state of the Bluetooth chip,
Current operating state, current Bluetooth facility information and the current information transmitting scene of WiFi chip are in the inquiry table
Middle lookup.
S50:The antenna accounting of the Bluetooth chip and WiFi chip is set according to the current accounting parameter, according to institute
Current priority parameter is stated WiFi priority and Bluetooth priority levels are arranged.
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.
Similarly, the current priority parameter is that can reflect the parameter of the WiFi priority and Bluetooth priority levels,
Therefore, WiFi priority and Bluetooth priority levels can be set according to the current priority parameter.
The present embodiment is according to the current operating state of the Bluetooth chip, the current operating state of WiFi chip, bluetooth core
The current Bluetooth facility information and the current information transmitting scene that piece has connected determine corresponding current accounting parameter and work as
The antenna accounting of the Bluetooth chip and WiFi chip, root are arranged further according to the current accounting parameter for preceding priority parameters
WiFi priority and Bluetooth priority levels are set according to the current priority parameter, can be accounted for according to actual needs antenna is arranged
Than and priority, usage scenario of being more close to the users, and Real-Time Scheduling, switch being total to for Bluetooth chip and WiFi chip in real time
Deposit state.
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, step S40 is specifically included:
S401:Obtain priority parameters to be adjusted corresponding with the current information transmitting scene;
In the concrete realization, since the corresponding relationship between information transmitting scene and priority parameters is with a variety of, it is assumed that
After obtaining current information transmitting scene, all directly go to generate current priority ginseng corresponding with the current information transmitting scene
Number, it is excessively cumbersome to will lead to product process, is simple flow, in the present embodiment, can be searched in the first mapping relations with it is described
The corresponding current priority parameter of current information transmitting scene has information transmitting scene and preferential in first mapping relations
Corresponding relationship between grade parameter.
It should be understood that the current priority parameter is to be able to reflect the ginseng of WiFi priority and Bluetooth priority levels
Number, therefore, can be arranged WiFi priority and Bluetooth priority levels according to the current priority parameter.
It, can be by the priority parameters in the present embodiment for convenient for being configured to WiFi priority and Bluetooth priority levels
In the corresponding WiFi priority of a part, another part in the priority parameters is corresponded into Bluetooth priority levels, that is to say, that
The priority parameters may include:Indigo plant for corresponding to the WiFi flag information of WiFi priority and for corresponding to Bluetooth priority levels
Tooth flag information;
Correspondingly, WiFi priority can be set according to the WiFi flag information, and according to the bluetooth flag information
Bluetooth priority levels are arranged.
It may include WiFi receiving antenna and WiFi transmission antenna for WiFi, for bluetooth, may include
Bluetooth receiving antenna and bluetooth transmission antenna, and different scenes, for these antenna demand there is also difference, in order to suitable
Answer more scenes, in the present embodiment, the WiFi flag information may include:For corresponding to WiFi reception flag position and WiFi hair
Flag bit is sent, the bluetooth flag information may include:Bluetooth reception flag position and bluetooth send flag bit;
Correspondingly, the priority of WiFi receiving antenna can be set according to WiFi reception flag position, according to described
WiFi sends flag bit the priority of WiFi transmission antenna is arranged, and the priority of the WiFi receiving antenna and WiFi is sent out
The priority of antennas is as WiFi priority;The preferential of bluetooth receiving antenna is set according to bluetooth reception flag position
Grade sends flag bit according to the bluetooth to be arranged the priority of bluetooth transmission antenna, and by the excellent of the bluetooth receiving antenna
First grade and the priority of bluetooth transmission antenna are as Bluetooth priority levels.
In the concrete realization, priority parameters are set as 4 bit binary datas, and the 1st bit binary data corresponds to bluetooth hair
The priority of antennas, the 2nd bit binary data correspond to the priority of bluetooth receiving antenna, and the 3rd bit binary data is corresponding
The priority of WiFi transmission antenna, the 4th bit binary data corresponds to the priority of WiFi receiving antenna, and priority is with 0 and 1
To indicate, wherein 0 indicates low priority, and 1 indicates high priority, certainly, other modes can be used also to characterize priority ginseng
Number, the present embodiment are without restriction to this.
Priority parameters are illustrated by taking specific scene as an example below, but the scope of protection of the present invention is not limited.
When the priority of the priority of bluetooth receiving antenna and bluetooth transmission antenna is disposed as 1, indicate that bluetooth receives
The priority of antenna and the priority of bluetooth transmission antenna are height, then are equivalent to, as long as there is Bluetooth data reception to arrive or need
It sends, then antenna whole resource allows out to bluetooth.The priority of WiFi transmission antenna and WiFi receive day in such cases
The priority of line is only low.I.e. the priority of WiFi transmission antenna and the priority of WiFi receiving antenna cannot simultaneously and bluetooth
The priority of receiving antenna is identical with the priority of bluetooth transmission antenna.There are two types of information transmitting scenes to be more suitble to, the first
Information transmitting scene can for user equipment (such as:Set-top box) to blue Tooth remote controller upgrade when data interaction because user sets
It is standby when the software batch data of remote controler being passed to remote controler by bluetooth, therefore, to assure that data are perfectly safe could upgrade at
Function, second of information transmitting scene can be in pairing state for bluetooth.So writable in the first mapping relations:B is (i.e. above-mentioned
Two kinds of information transmitting scenes) and 1100 (i.e. priority parameters) between corresponding relationship.
When the priority of bluetooth transmission antenna is height, the priority of bluetooth receiving antenna is low, and WiFi transmission antenna
When priority and the priority of WiFi receiving antenna are low, as long as indicating have blue-teeth data to need to send, antenna is all provided
Source, which allows out, gives bluetooth transmission antenna, suitable information transmitting scene can for user equipment (such as:Set-top box) connection bluetooth sound
Case pushes away song, because blue-teeth data amount transmitted by the bluetooth transmission antenna of user equipment is maximum under this information transmitting scene
, so writable in the first mapping relations:Between C (i.e. above-mentioned information transmitting scene) and 1000 (i.e. priority parameters)
Corresponding relationship.
When the priority of bluetooth receiving antenna is height, the priority of bluetooth transmission antenna be it is low, WiFi transmission antenna it is excellent
When first grade and the priority of WiFi receiving antenna are low, as long as indicating to need to start receiving bluetooth, following antenna is whole
Resource, which allows out, receives data to bluetooth receiving antenna.There are two types of information transmitting scenes to be more suitble to, the first information transmission field
Scape can for mobile phone connect user equipment (such as:Intelligent sound box box), mobile phone pushes away song to user equipment by bluetooth;Second
Information transmitting scene can connect blue Tooth remote controller, user's blue Tooth remote controller voice for user equipment.Because of above two information
User equipment will receive a large amount of Bluetooth audio frequency data from mobile phone or remote controler under transmitting scene, in order to guarantee to greatest extent
Bluetooth sound not Caton, the blue tooth voice data low, receive of delay are complete, packet loss is low, discrimination is high, so bluetooth receiving antenna
Priority need that highest is arranged.So writable in the first mapping relations:D (two kinds of i.e. above-mentioned information transmitting scenes) and
Corresponding relationship between 0100 (i.e. priority parameters).
When the priority of WiFi receiving antenna is height, the priority of WiFi transmission antenna be it is low, bluetooth receiving antenna it is excellent
When first grade and the priority of bluetooth transmission antenna are low, as long as indicating that WiFi needs downloading data, at once next all
Resource gives WiFi receiving antenna.Suitable information transmitting scene can for WiFi downloading mass data (such as:It is broadcast by WiFi
Put video or the big file of downloading) when.So writable in the first mapping relations:E (i.e. above-mentioned information transmitting scene)
And the corresponding relationship between 0001 (i.e. priority parameters).
When the priority of WiFi transmission antenna is height, the priority of WiFi receiving antenna be it is low, bluetooth receiving antenna it is excellent
When first grade and the priority of bluetooth transmission antenna are low, as long as indicating that WiFi needs to upload data, at once next all
Resource gives WiFi transmission antenna.Suitable information transmitting scene can for WiFi upload mass data (such as:By on WiFi
The big file passed) when.So writable in the first mapping relations:F (i.e. above-mentioned information transmitting scene) and 0010 is (i.e. excellent
First grade parameter) between corresponding relationship.
It should be noted that programmer debugs for convenience, programmer can be allowed to simulate in the initial stage of development of user equipment
User's usage scenario adjusts priority in real time, prompts experience of the user to product to greatest extent, that is to say, that can receive
It is excellent WiFi priority and bluetooth is arranged according to the priority setting instruction when instruction is arranged in the priority of user's manual setting
First grade.
To guarantee that after electrifying startup WiFi Bluetooth coexistence can be adapted to user equipment, in the present embodiment, can power on
When starting, the first initial priority is set by the WiFi priority, it is initial excellent to set second for the Bluetooth priority levels
First grade.
Priority parameters are illustrated by taking specific scene as an example below, but the scope of protection of the present invention is not limited.
Under default situations, it is high WiFi priority can be set to, can set low for Bluetooth priority levels, that is to say, that
The priority of WiFi transmission antenna and the priority of WiFi receiving antenna are set as high, the priority and bluetooth of bluetooth receiving antenna
The priority of transmission antenna is set as low.It is equivalent to, when WiFi needs to receive or sends data, other antenna resources of bluetooth
It all to allow out to WiFi, corresponding priority parameters are 0011 here, and suitable information transmitting scene can be not connected indigo plant
When tooth equipment user equipment (such as:Set-top box).
Under normal circumstances, bluetooth is relatively small using probability, and WiFi's is relatively high using probability, in order to guarantee
WiFi can make full use of resource, in the present embodiment, after step S60, the method also includes:It is transmitted to the information
After instruction is responded, the WiFi priority can be reset to the first initial priority, the Bluetooth priority levels are reset to
Second initial priority.
For the ease of being reset to WiFi priority and Bluetooth priority levels, so, it can be by first initial priority
It is stored in the first mapping relations with the second initial priority, that is to say, that be written in the first mapping relations:A is (i.e. above-mentioned
Information transmitting scene) and 0011 (i.e. priority parameters) between corresponding relationship, thus needing to WiFi priority and bluetooth
When priority carries out initial setting up and resetting, it can also be searched in the first mapping relations.
Such as:When blue Tooth remote controller voice, in order to improve the discrimination of blue Tooth remote controller voice (namely to greatest extent
Receiving bluetooth), it is highest that blue-teeth data priority, which can at this time be arranged, it is ensured that and phonetic recognization rate is high, certainly, voice
Transmission is over resets to the priority of default at once, it is ensured that collected blue tooth voice can be identified beyond the clouds as early as possible by WiFi
Come, improves the experience of user's discrimination and recognition speed.
S402: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 accounting parameter to be adjusted;
For that in the present embodiment, one second mapping can be pre-established and closed convenient for quickly determining the accounting parameter to be adjusted
It is to have the operating state of the Bluetooth chip, the operating state of WiFi chip, bluetooth equipment letter in second mapping relations
Corresponding relationship between breath and accounting parameter can be according to the Bluetooth chip when determining the accounting parameter to be adjusted
Current operating state, the current operating state of WiFi chip and current Bluetooth facility information are searched in the second mapping relations
Corresponding accounting parameter to be adjusted.
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, 1 can be set by accounting parameter: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
Blue Tooth remote controller user equipment (such as:Set-top box), therefore, to assure that user can match.
That is, when the user equipment powers on 1 can be set by initial accounting parameter:9, 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 is nothing and the initial accounting parameter is 1:Corresponding relationship between 9 is added in the second 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, it can both guarantee that blue Tooth remote controller was good for use, and 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 8:Corresponding relationship between 2 is added in the second 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 5:Corresponding relationship between 5 is added to second and reflects
It penetrates in relationship.
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 3:Corresponding relationship between 7 is added to the second mapping
In relationship.
In the concrete realization, according to the current operating state of the current operating state of the Bluetooth chip, WiFi chip,
Current Bluetooth facility information and the current priority parameter are adjusted the accounting parameter to be adjusted, are corresponded to
Current accounting parameter when, can refer to following tactful (but the scope of protection of the present invention is not limited):
In the case where blue Tooth remote controller is in not connected (i.e. the Bluetooth chip of user equipment is in idle state), at this moment
No matter current priority parameter be it is how many, be required to for the current priority parameter to be re-set as 1100, i.e. bluetooth receives
The priority of antenna and the priority of bluetooth transmission antenna are set as high, at this point, Bluetooth chip occupies all antenna resources, this
Sample is in order to ensure user can quickly match or the company's of returning blue Tooth remote controller, it is ensured that user has remote controler available always.
When Bluetooth chip is not at idle state, indicate that Bluetooth chip has matched right blue Tooth remote controller, if other
Process has invoked the interface of setting priority, then preferentially determines current priority parameter, the weight on the basis of current priority parameter
The value of accounting parameter to be adjusted is newly adjusted, if the priority of current priority parameter is biased to Bluetooth chip (i.e. current priority
Parameter is 1100,0100 or 1000), and the operating state of WiFi chip is non-busy state, then the value of current accounting parameter
It can be set to 1:9, if the operating state of WiFi chip is busy state, the value of current accounting parameter can be set to 4:
6, this can also as the case may be depending on, the value of current priority parameter and current accounting parameter will meet user's need in a word
Seek scene., whereas if current priority parameter priority be biased to WiFi chip (i.e. current priority parameter be 0011,
0001 or 0010), and when the operating state of Bluetooth chip is connect state, then the value of current accounting parameter can be set
It is 9:1, if the operating state of Bluetooth chip is disconnect state, the value of current accounting parameter can be set to 6:4.
When Bluetooth chip is not at idle state, indicate that Bluetooth chip has matched right blue Tooth remote controller, if do not had
It determines current priority parameter, then can default using accounting parameter to be adjusted as current accounting parameter, while current priority
The value of parameter can be adjusted suitably according to the value of current accounting parameter, if current accounting parameter is biased to WiFi chip, when
Preceding priority parameters can suitably be biased to WiFi chip, if current accounting parameter is biased to bluetooth, current priority parameter can
To be suitably biased to Bluetooth chip.
Be not at idle state in Bluetooth chip, and current Bluetooth facility information be matched blue Tooth remote controller and other
When bluetooth equipment, according to the bluetooth equipment type matched, the value of the value of current priority parameter and current accounting parameter is fitted
It draws close when to Bluetooth chip, is adapted to as far as possible according to scene, it is ensured that the optimal experience of user.
In short, accounting parameter needs to follow the characteristic of WiFi and bluetooth and adjusts in conjunction with the user demand of scene, with
The adjustment situation of upper accounting parameter has not been enumerated, can different situations adjust separately different accounting parameters.
S403:It is set according to current operating state, the current Bluetooth of the current operating state of the Bluetooth chip, WiFi chip
Standby information and the current information transmitting scene adjust the accounting parameter to be adjusted and priority parameters to be adjusted
It is whole, obtain corresponding current accounting parameter and current priority parameter.
Due to the current operating state of the Bluetooth chip, the current operating state of WiFi chip, current Bluetooth equipment letter
Breath and the current information transmitting scene have a case that it is varied, if corresponding accounting is respectively set in every case
Parameter and priority parameters, which will lead to, needs to establish a more complicated mapping relations, to avoid the problem, in the present embodiment,
Priority parameters to be adjusted and accounting parameter to be adjusted can first be obtained;Further according to the Bluetooth chip current operating state,
Current operating state, current Bluetooth facility information and the current information transmitting scene of WiFi chip are to described to be adjusted
Accounting parameter and priority parameters to be adjusted are adjusted, and obtain corresponding current accounting parameter and current priority 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. 3
Shown in embodiment, propose inventive antenna accounting setting method 3rd embodiment.
In the third embodiment, after step S401, the antenna accounting setting method further includes:
S4011:The priority parameters to be adjusted are stored into the first buffer;
After step S402, the antenna accounting setting method further includes:
S4021:The accounting parameter to be adjusted is stored into the second buffer;
The step S403 is specifically included:
S403':The current priority parameter is taken out from first buffer, is taken out from second buffer
The accounting parameter to be adjusted, according to the current operating state of the Bluetooth chip, the current operating state, current of WiFi chip
Bluetooth equipment information and the current information transmitting scene are to the accounting parameter to be adjusted of taking-up and priority parameters to be adjusted
It is adjusted, obtains corresponding current accounting parameter and current priority 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:It will be described to be adjusted excellent
First grade parameter is stored into the first buffer M, and the accounting parameter to be adjusted is stored into the second buffer N.
It correspondingly, can be from first caching when needing to adjust accounting parameter to be adjusted and priority parameters to be adjusted
The current priority parameter is taken out in device M, the accounting parameter to be adjusted is taken out from the second buffer N, according to institute
State the current operating state of Bluetooth chip, the current operating state of WiFi chip, current Bluetooth facility information and described current
Information transmitting scene is adjusted the accounting parameter to be adjusted of taking-up and priority parameters to be adjusted, and acquisition is corresponding currently to account for
Than parameter and current priority parameter.
Equally, for convenient for process can quick obtaining data, and prevent loss of data, after step S20, the antenna
Accounting setting method further includes:
The current operating state of the Bluetooth chip is stored to third buffer X, by the current fortune of the WiFi chip
It stores as state to the 4th buffer Y;
After the step S30, the antenna accounting setting method further includes:
The current Bluetooth facility information is stored to the 5th buffer Z;
The step S402, specifically includes:
The current operating state that the Bluetooth chip is taken out from the third buffer X, from the 4th buffer Y
The current operating state for taking out the WiFi chip takes out the current Bluetooth facility information, root from the 5th buffer Z
It is true according to the current operating state of the Bluetooth chip of taking-up, the current operating state of WiFi chip and current Bluetooth facility information
Fixed corresponding accounting parameter to be adjusted.
It is the flow diagram of inventive antenna accounting setting method fourth embodiment referring to Fig. 5, Fig. 5, is based on above-mentioned Fig. 3
Shown in embodiment, propose inventive antenna accounting setting method fourth embodiment.
In the fourth embodiment, after step S403 ', the method also includes:
S41:Priority parameters to be adjusted in first buffer are updated to the current priority parameter, by institute
It states the accounting parameter to be adjusted in the second buffer and is updated to the current accounting parameter;
Step S50, specifically includes:
S50':Current priority parameter is taken out from first buffer, is taken out from second buffer current
The antenna accounting of the Bluetooth chip and WiFi chip is arranged according to the current accounting parameter of taking-up for accounting parameter, according to taking
WiFi priority and Bluetooth priority levels are arranged in current priority parameter out.
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, can first will be described in the present embodiment
Priority parameters to be adjusted in first buffer M are updated to the current priority parameter, will be in the second buffer N
Accounting parameter to be adjusted is updated to the current accounting parameter, then current priority parameter is taken out from the first buffer M,
Current accounting parameter is taken out from the second buffer N, the Bluetooth chip is arranged according to the current accounting parameter of taking-up
With the antenna accounting of WiFi chip, WiFi priority and Bluetooth priority levels are set according to the current priority parameter of taking-up.
In addition, the embodiment of the present invention also proposes a kind of antenna accounting setting device, and referring to Fig. 6, the antenna accounting setting
Device includes:
Scene determining module 10, for generate need the information transmission instruction using WiFi or bluetooth when, according to described
Information transmission instruction determines corresponding current information transmitting scene;
State acquisition module 20, for obtaining the current operating state of Bluetooth chip and the current running shape of WiFi chip
State;
Data obtaining module 30, the current Bluetooth facility information being had connected for obtaining the Bluetooth chip;
Parameter determination module 40, for the current running according to the current operating state, WiFi chip of the Bluetooth chip
State, current Bluetooth facility information and the current information transmitting scene determine corresponding current accounting parameter and current excellent
First grade parameter;
Parameter setting module 50, for the Bluetooth chip and WiFi chip to be arranged according to the current accounting parameter
WiFi priority and Bluetooth priority levels are arranged according to the current priority parameter in 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:
When generation needs to transmit instruction using the information of WiFi or bluetooth, transmit to instruct determining correspondence according to the information
Current information transmitting scene;
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;
According to the current operating state of the Bluetooth chip, the current operating state of WiFi chip, current Bluetooth equipment letter
Breath and the current information transmitting scene determine corresponding current accounting parameter and current priority parameter;
The antenna accounting of the Bluetooth chip and WiFi chip is set according to the current accounting parameter, is worked as according to described
Preceding priority parameters are arranged WiFi priority and Bluetooth priority levels.
Further, following operation is also realized when the antenna accounting setting program is executed by processor:
Obtain priority parameters to be adjusted corresponding with the current information transmitting scene;
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 accounting parameter to be adjusted;
According to the current operating state of the Bluetooth chip, the current operating state of WiFi chip, current Bluetooth equipment letter
Breath and the current information transmitting scene are adjusted the accounting parameter to be adjusted and priority parameters to be adjusted, obtain
Obtain corresponding current accounting parameter and current priority parameter.
Further, following operation is also realized when the antenna accounting setting program is executed by processor:
Priority parameters to be adjusted corresponding with the current information transmitting scene are searched in the first mapping relations, it is described
There is the corresponding relationship between information transmitting scene and priority parameters in first mapping relations;
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 accounting parameter to be adjusted in the second mapping relations, has the bluetooth in second mapping relations
Corresponding relationship between the operating state of chip, 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 priority parameters to be adjusted are stored into the first buffer;
The accounting parameter to be adjusted is stored into the second buffer;
The current priority parameter is taken out from first buffer, taken out from second buffer it is described to
Accounting parameter is adjusted, is set according to current operating state, the current Bluetooth of the current operating state of the Bluetooth chip, WiFi chip
Standby information and the current information transmitting scene adjust the accounting parameter to be adjusted of taking-up and priority parameters to be adjusted
It is whole, obtain corresponding current accounting parameter and current priority parameter.
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 to third buffer, by the current running of the WiFi chip
State is stored to the 4th buffer;
The current Bluetooth facility information is stored to the 5th buffer;
The current operating state that the Bluetooth chip is taken out from the third buffer takes from the 4th buffer
The current operating state of the WiFi chip out takes out the current Bluetooth facility information from the 5th buffer, according to
The current operating state of the Bluetooth chip of taking-up, the current operating state of WiFi chip and current Bluetooth facility information determine
Corresponding accounting parameter to be adjusted.
Further, following operation is also realized when the antenna accounting setting program is executed by processor:
Priority parameters to be adjusted in first buffer are updated to the current priority parameter, by described
Accounting parameter to be adjusted in two buffers is updated to the current accounting parameter;
Current priority parameter is taken out from first buffer, and current accounting ginseng is taken out from second buffer
Number, the antenna accounting of the Bluetooth chip and WiFi chip is arranged according to the current accounting parameter of taking-up, according to working as taking-up
Preceding priority parameters are arranged WiFi priority and Bluetooth priority levels.
In the present embodiment, according to the current operating state of the Bluetooth chip, the current operating state of WiFi chip, indigo plant
The current Bluetooth facility information and the current information transmitting scene that tooth chip has connected determine corresponding current accounting parameter
With current priority parameter, accounted for further according to the current accounting parameter the antenna of the Bluetooth chip and WiFi chip is arranged
Than WiFi priority and Bluetooth priority levels are arranged according to the current priority parameter, can be arranged according to actual needs
Antenna accounting and priority, usage scenario of being more close to the users, and Real-Time Scheduling switch Bluetooth chip and WiFi core in real time
The coexisting state of piece.
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 includes the following steps:
When generation is needed using the transmission instruction of the information of WiFi or bluetooth, transmit to instruct determining corresponding work as according to the information
Preceding information transmitting scene;
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;
According to the current operating state of the Bluetooth chip, the current operating state of WiFi chip, current Bluetooth facility information, with
And the current information transmitting scene determines corresponding current accounting parameter and current priority parameter;
The antenna accounting of the Bluetooth chip and WiFi chip is set according to the current accounting parameter, according to described current excellent
WiFi priority and Bluetooth priority levels are arranged in first grade parameter.
2. 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, current Bluetooth facility information and the current information transmitting scene determine
Corresponding current accounting parameter and current priority parameter, specifically include:
Obtain priority parameters to be adjusted corresponding with the current information transmitting scene;
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 accounting parameter to be adjusted;
According to the current operating state of the Bluetooth chip, the current operating state of WiFi chip, current Bluetooth facility information, with
And the current information transmitting scene is adjusted the accounting parameter to be adjusted and priority parameters to be adjusted, is corresponded to
Current accounting parameter and current priority parameter.
3. antenna accounting setting method as claimed in claim 2, which is characterized in that the acquisition is transmitted with the current information
The corresponding priority parameters to be adjusted of scene, specifically include:
The lookup priority parameters to be adjusted corresponding with the current information transmitting scene in the first mapping relations, described first
There is the corresponding relationship between information transmitting scene and priority parameters in mapping relations;
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 accounting parameter to be adjusted, specifically 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 accounting parameter to be adjusted in the second mapping relations, has the Bluetooth chip in second mapping relations
Operating state, the operating state of WiFi chip, the corresponding relationship between bluetooth equipment information and accounting parameter.
4. antenna accounting setting method as claimed in claim 2, which is characterized in that the acquisition is transmitted with the current information
After the corresponding priority parameters to be adjusted of scene, the antenna accounting setting method further includes:
The priority parameters to be adjusted are stored into the first 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
After standby information determines corresponding accounting parameter to be adjusted, the antenna accounting setting method further includes:
The accounting parameter to be adjusted is stored into the second buffer;
It is described to be believed according to the current operating state of the Bluetooth chip, the current operating state of WiFi chip, current Bluetooth equipment
Breath and the current information transmitting scene are adjusted the accounting parameter to be adjusted and priority parameters to be adjusted, obtain
Corresponding current accounting parameter and current priority parameter are obtained, is specifically included:
The current priority parameter is taken out from first buffer, is taken out from second buffer described to be adjusted
Accounting parameter is believed according to the current operating state of the Bluetooth chip, the current operating state of WiFi chip, current Bluetooth equipment
Breath and the current information transmitting scene are adjusted the accounting parameter to be adjusted of taking-up and priority parameters to be adjusted,
Obtain corresponding current accounting parameter and current priority parameter.
5. antenna accounting setting method as claimed in claim 4, 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 includes:
The current operating state of the Bluetooth chip is stored to third buffer, by the current operating state of the WiFi chip
It stores to the 4th 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 to the 5th 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 accounting parameter to be adjusted, specifically includes:
The current operating state that the Bluetooth chip is taken out from the third buffer takes out institute from the 4th buffer
The current operating state for stating WiFi chip takes out the current Bluetooth facility information from the 5th buffer, according to taking-up
The current operating state of Bluetooth chip, the current operating state of WiFi chip and current Bluetooth facility information determine and correspond to
Accounting parameter to be adjusted.
6. antenna accounting setting method as claimed in claim 4, which is characterized in that described according to the current of the Bluetooth chip
Operating state, the current operating state of WiFi chip, current Bluetooth facility information and the current information transmitting scene determine
After corresponding current accounting parameter and current priority parameter, the antenna accounting setting method further includes:
Priority parameters to be adjusted in first buffer are updated to the current priority parameter, described second is delayed
Accounting parameter to be adjusted in storage is updated to the current accounting parameter;
The antenna accounting that the Bluetooth chip and WiFi chip are arranged according to the current accounting parameter, works as according to described
Preceding priority parameters are arranged WiFi priority and Bluetooth priority levels, specifically include:
Current priority parameter is taken out from first buffer, and current accounting parameter is taken out from second buffer,
The antenna accounting of the Bluetooth chip and WiFi chip is set according to the current accounting parameter of taking-up, according to the current excellent of taking-up
WiFi priority and Bluetooth priority levels are arranged in first grade parameter.
7. such as antenna accounting setting method according to any one of claims 1 to 6, which is characterized in that the current Bluetooth is set
Include for information:The device type and equipment number for the current Bluetooth equipment that the Bluetooth chip has connected.
8. device is arranged in a kind of antenna accounting, which is characterized in that the antenna accounting is arranged device and includes:
Scene determining module, for being passed according to the information when generation is needed using the transmission instruction of the information of WiFi or bluetooth
Defeated instruction determines corresponding current information transmitting scene;
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, when
Preceding bluetooth equipment information and the current information transmitting scene determine corresponding current accounting parameter and current priority ginseng
Number;
Parameter setting module, for being accounted for according to the current accounting parameter the antenna of the Bluetooth chip and WiFi chip is arranged
Than WiFi priority and Bluetooth priority levels are arranged according to the current priority parameter.
9. a kind of user equipment, which is characterized in that the user equipment includes:Memory, processor and it 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 |
---|---|---|---|
CN201810931528.9A CN108901077B (en) | 2018-08-14 | 2018-08-14 | Antenna ratio setting method and device, user equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810931528.9A CN108901077B (en) | 2018-08-14 | 2018-08-14 | Antenna ratio setting method and device, user equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108901077A true CN108901077A (en) | 2018-11-27 |
CN108901077B CN108901077B (en) | 2020-07-21 |
Family
ID=64354570
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810931528.9A Active CN108901077B (en) | 2018-08-14 | 2018-08-14 | Antenna ratio setting method and device, user equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108901077B (en) |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109743619A (en) * | 2019-01-16 | 2019-05-10 | 四川长虹电器股份有限公司 | Smart television WiFi and Bluetooth coexistence optimization method and device |
CN111510898A (en) * | 2020-04-16 | 2020-08-07 | 深圳创维数字技术有限公司 | Miracast-based mirror image connection method, electronic product and storage medium |
WO2020237703A1 (en) * | 2019-05-29 | 2020-12-03 | 上海庆科信息技术有限公司 | Communication mode switching method and device, storage medium, processor, and system |
CN113613230A (en) * | 2021-10-09 | 2021-11-05 | 荣耀终端有限公司 | Scanning parameter determination method and electronic equipment |
CN113645715A (en) * | 2021-10-13 | 2021-11-12 | 荣耀终端有限公司 | Method and terminal device for monitoring link |
WO2022033320A1 (en) * | 2020-08-13 | 2022-02-17 | 华为技术有限公司 | Bluetooth communication method, terminal device, and computer-readable storage medium |
CN115022859A (en) * | 2022-06-30 | 2022-09-06 | 四川长虹电器股份有限公司 | Wireless local area network and Bluetooth complementary communication method |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2014005441A1 (en) * | 2012-07-02 | 2014-01-09 | Mediatek Inc. | Methods for managing radio resources between multiple radio modules and communications apparatus utilizing the same |
US20150237505A1 (en) * | 2014-02-19 | 2015-08-20 | Ralink Technology Corp. | Coexistence Operation Method And Related Wireless System |
CN107666332A (en) * | 2017-09-27 | 2018-02-06 | 普联技术有限公司 | Anti-disturbance method and device, a kind of terminal between wireless module |
CN107889087A (en) * | 2016-09-29 | 2018-04-06 | 英特尔Ip公司 | Dispatched using the bluetooth WIFI of the coordination of Bluetooth slots availability mask |
CN108064086A (en) * | 2017-12-07 | 2018-05-22 | 深圳创维数字技术有限公司 | A kind of bandwidth allocation methods, device, computer equipment and storage medium |
-
2018
- 2018-08-14 CN CN201810931528.9A patent/CN108901077B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2014005441A1 (en) * | 2012-07-02 | 2014-01-09 | Mediatek Inc. | Methods for managing radio resources between multiple radio modules and communications apparatus utilizing the same |
US20150237505A1 (en) * | 2014-02-19 | 2015-08-20 | Ralink Technology Corp. | Coexistence Operation Method And Related Wireless System |
CN107889087A (en) * | 2016-09-29 | 2018-04-06 | 英特尔Ip公司 | Dispatched using the bluetooth WIFI of the coordination of Bluetooth slots availability mask |
CN107666332A (en) * | 2017-09-27 | 2018-02-06 | 普联技术有限公司 | Anti-disturbance method and device, a kind of terminal between wireless module |
CN108064086A (en) * | 2017-12-07 | 2018-05-22 | 深圳创维数字技术有限公司 | A kind of bandwidth allocation methods, device, computer equipment and storage medium |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109743619A (en) * | 2019-01-16 | 2019-05-10 | 四川长虹电器股份有限公司 | Smart television WiFi and Bluetooth coexistence optimization method and device |
WO2020237703A1 (en) * | 2019-05-29 | 2020-12-03 | 上海庆科信息技术有限公司 | Communication mode switching method and device, storage medium, processor, and system |
CN111510898A (en) * | 2020-04-16 | 2020-08-07 | 深圳创维数字技术有限公司 | Miracast-based mirror image connection method, electronic product and storage medium |
CN111510898B (en) * | 2020-04-16 | 2023-08-29 | 深圳创维数字技术有限公司 | Mirror image connection method based on Miracast, electronic product and storage medium |
WO2022033320A1 (en) * | 2020-08-13 | 2022-02-17 | 华为技术有限公司 | Bluetooth communication method, terminal device, and computer-readable storage medium |
CN114079893A (en) * | 2020-08-13 | 2022-02-22 | 华为技术有限公司 | Bluetooth communication method, terminal device and computer readable storage medium |
CN114079893B (en) * | 2020-08-13 | 2023-10-13 | 华为技术有限公司 | Bluetooth communication method, terminal device and computer readable storage medium |
CN113613230A (en) * | 2021-10-09 | 2021-11-05 | 荣耀终端有限公司 | Scanning parameter determination method and electronic equipment |
CN113645715A (en) * | 2021-10-13 | 2021-11-12 | 荣耀终端有限公司 | Method and terminal device for monitoring link |
CN115022859A (en) * | 2022-06-30 | 2022-09-06 | 四川长虹电器股份有限公司 | Wireless local area network and Bluetooth complementary communication method |
Also Published As
Publication number | Publication date |
---|---|
CN108901077B (en) | 2020-07-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108901077A (en) | Antenna accounting setting method, device, user equipment and storage medium | |
CN108647089B (en) | Resource allocation method, device, terminal and storage medium | |
US8027293B2 (en) | Communication channel selection and use | |
CN104540176B (en) | Wireless network access method, device and terminal | |
EP2728497B1 (en) | Object based server page reception in electronic device | |
CN103533165B (en) | Multi-APN (Access Point Name) concurrency method supporting Android applications of handheld equipment and system thereof | |
CN105450785A (en) | File transmission method and device | |
CN104866269A (en) | Screen splitting area regulation method and terminal | |
CN103228005A (en) | Testing method and device for data service of mobile communication network | |
CN113407134A (en) | Method and device for realizing file sharing among multiple clients based on split screen display | |
US20120023159A1 (en) | Communication control device, communication control system, communication control method, and program | |
CN109041026A (en) | Antenna accounting setting method, device, user equipment and storage medium | |
CN112600897B (en) | Multi-user access control method and device for intelligent equipment | |
CN108924875A (en) | priority setting method, device, user equipment and storage medium | |
CN108848410A (en) | Bluetooth audio frequency transmission method, device and computer readable storage medium | |
CN111917595A (en) | System upgrading method and device, intelligent equipment and storage medium | |
WO2020164522A1 (en) | Data transmission control method and related product | |
CN105429900A (en) | Method, device and system for bandwidth speed acceleration | |
CN103297516A (en) | Multi-type providing method, multi-type providing system and multi-type providing device of applications | |
CN101951642A (en) | Method and device for regulating download speed of mobile terminal | |
CN101527890A (en) | Method and device for displaying multimedia message at single-task platform terminal | |
CN109413626A (en) | Remote Bluetooth devices white list and non-the white list company's of returning compatibility method automatically | |
CN114466441A (en) | Method and device for adjusting transmission power, storage medium and WiFi (Wireless Fidelity) equipment | |
CN108055660A (en) | The method and internet-of-things terminal of data are transmitted in network channel | |
CN110856162B (en) | Network configuration method and related device |
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 |