CN108377483A - A kind of processing method and mobile terminal of bluetooth channel - Google Patents
A kind of processing method and mobile terminal of bluetooth channel Download PDFInfo
- Publication number
- CN108377483A CN108377483A CN201810074213.7A CN201810074213A CN108377483A CN 108377483 A CN108377483 A CN 108377483A CN 201810074213 A CN201810074213 A CN 201810074213A CN 108377483 A CN108377483 A CN 108377483A
- Authority
- CN
- China
- Prior art keywords
- channel
- bluetooth
- channel set
- threshold value
- slave devices
- 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.)
- Pending
Links
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
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W72/00—Local resource management
- H04W72/50—Allocation or scheduling criteria for wireless resources
- H04W72/54—Allocation or scheduling criteria for wireless resources based on quality criteria
- H04W72/542—Allocation or scheduling criteria for wireless resources based on quality criteria using measured or perceived quality
Landscapes
- Engineering & Computer Science (AREA)
- Quality & Reliability (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Telephone Function (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The present invention provides a kind of processing method of bluetooth channel and mobile terminals.This method includes:Bluetooth channel is detected, determines that channel quality meets the first channel set of the first preset condition, first channel set includes multiple bluetooth channels;Receive the second channel aggregate information that Bluetooth slave devices determine, wherein the second channel aggregate information corresponds to second channel set, and the second channel set includes multiple bluetooth channels that channel quality meets the second preset condition;It determines the common signal channel in first channel set and the second channel set, obtains third channel set;When the channel quantity of the third channel set is less than the channel quantity of preset quantity threshold value and the second channel set more than or equal to the preset quantity threshold value, then the channel in the second channel set is set to the common available channel of the bluetooth master and Bluetooth slave devices progress bluetooth connection.The present invention can avoid the problem that card sound or noise reduction occurs in the audio played by bluetooth communication between bluetooth equipment.
Description
Technical field
The present invention relates to the processing methods and mobile terminal of field of communication technology more particularly to a kind of bluetooth channel.
Background technology
Bluetooth uses 2.401~2.480GHz frequency ranges, and the bandwidth of each channel is 1MHz, comes to 79 channels.Bluetooth
Technology offer frequency-hopping mode is anti-interference, and frequency hopping is that frequency band is divided into several frequency hopping channels (hop channel), one
In secondary connection, radio transceiver by certain code sequence (i.e. certain rule is technically called " pseudo noise code ", is exactly "
False " random code) constantly from a channel " " to one other channel, only receiving-transmitting sides are communicated by this rule for jump
, and other interference can not possibly be interfered by same rule;The instant bandwidth of frequency hopping is very narrow, but by extending frequency
Spectral technology makes this narrow bandwidth be extended to broadband at hundred times of ground, makes to influence to become very little caused by interference.
Wherein, blue-tooth device can be by the interference environment of each channel in 79 channels of detection, from 79 channels
The bad channel of communication performance is filtered out, and sets the good channel of performance to the available channel of itself Bluetooth communication, that is, can
With carrying out above-mentioned frequency hopping communication on channel.
And Bluetooth protocol regulation at least carries out above-mentioned frequency hopping communication using 20 channels, and if what bluetooth communication connected
Between two equipment, if inadequate 20 of the channel that common performance is good, such as the good channel of common performance only have 15, then
It can be set from 5 channels of random selection in 64 channels except 15 channels are excluded in 79 channels as two to fill into
The good shared channel of performance between standby.
For example, when user listens song using blue-tooth technology, there are two bluetooth equipments (Bluetooth of mobile phone and bluetooths
Earphone), such as Bluetooth of mobile phone judges that the available channel in residing interference environment has 30, bluetooth headset judges residing interference environment
In available channel have 25, and available channel is 16 to the two jointly, needs to exclude this 16 from this 79 channels in this way
4 channels are randomly choosed in 63 channels except available channel is used as available channel.And bluetooth headset or on-vehicle Bluetooth
Obviously it is not so good as Bluetooth of mobile phone in the maturity and performance of these blue tooth products, if that bluetooth headset judges 4 filled into letters
Road is the bad channel of performance, then often causes the very serious card sound of appearance during listening song even noiseless.
It can be seen that the processing method of bluetooth channel in the prior art is played in the prevalence of equipment by bluetooth communication
Audio card sound or the problem of noise reduction.
Invention content
The embodiment of the present invention provides a kind of processing method and mobile terminal of bluetooth channel, to solve indigo plant in the prior art
The problem of audio card sound that equipment present in the processing method of tooth channel is played by bluetooth communication or noise reduction.
In order to solve the above-mentioned technical problem, the invention is realized in this way:
In a first aspect, an embodiment of the present invention provides a kind of processing method of bluetooth channel, it is applied to bluetooth master, it should
Method includes:
Bluetooth channel is detected, determines that channel quality meets the first channel set of the first preset condition, this first
Channel set includes multiple bluetooth channels;
Receive the second channel aggregate information that Bluetooth slave devices determine, wherein the second channel aggregate information corresponds to the
Two channel sets, the second channel set include multiple bluetooth channels that channel quality meets the second preset condition;
It determines the common signal channel in first channel set and the second channel set, obtains third channel set;
When the channel quantity of the third channel set is less than preset quantity threshold value and the channel quantity of the second channel set
When more than or equal to the preset quantity threshold value, then the channel in the second channel set is set to the bluetooth master and the indigo plant
Tooth carries out the common available channel of bluetooth connection from equipment.
Second aspect, the embodiment of the present invention additionally provide a kind of mobile terminal, which is bluetooth master, the shifting
Dynamic terminal includes:
Detection module determines that channel quality meets the first letter of the first preset condition for being detected to bluetooth channel
Road set, first channel set include multiple bluetooth channels;
Receiving module, the second channel aggregate information for receiving Bluetooth slave devices determination, wherein the second channel set
Information corresponds to the second information aggregate, which includes multiple bluetooths letter that channel quality meets the second preset condition
Road;
First determining module is obtained for determining the common signal channel in first channel set and the second channel set
Third channel set;
First setup module, for when the third channel set channel quantity be less than preset quantity threshold value and this second
When the channel quantity of channel set is greater than or equal to the preset quantity threshold value, then set the channel in the second channel set to
The bluetooth master carries out the common available channel of bluetooth connection with the Bluetooth slave devices.
The third aspect, the embodiment of the present invention additionally provide a kind of mobile terminal, including:It memory, processor and is stored in
On the memory and the computer program that can run on the processor, realized when which is executed by the processor
The step of stating the processing method of bluetooth channel.
Fourth aspect, the embodiment of the present invention additionally provide a kind of computer readable storage medium, the computer-readable storage
Computer program is stored on medium, which realizes the processing method of above-mentioned bluetooth channel when being executed by processor
Step.
In embodiments of the present invention, it is determined as the good second channel aggregate information of performance by receiving Bluetooth slave devices, and
Determine that bluetooth master side is judged as the first good channel set of performance the second letter corresponding with the second channel aggregate information
The intersection of road set, i.e. third channel set, and it is less than the minimum letter of bluetooth communication in the channel quantity of the third channel set
In the case that the channel quantity of road quantity and the second channel set is greater than or equal to the lowest channel quantity, directly using blue
The channel that tooth is determined as from equipment in the good second channel set of performance is used as bluetooth master and Bluetooth slave devices carry out indigo plant
The channel of tooth communication.The channel that bluetooth master and Bluetooth slave devices carry out bluetooth communication is enable to meet Bluetooth slave devices
Channel performance requirement, avoids the problem that bluetooth equipment card sound or noise reduction occurs by the audio that bluetooth communication plays.
Description of the drawings
In order to illustrate the technical solution of the embodiments of the present invention more clearly, below by institute in the description to the embodiment of the present invention
Attached drawing to be used is needed to be briefly described, it should be apparent that, the accompanying drawings in the following description is only some implementations of the present invention
Example, for those of ordinary skill in the art, without having to pay creative labor, can also be according to these attached drawings
Obtain other attached drawings.
Fig. 1 is the flow chart of the processing method of the bluetooth channel of first embodiment of the invention;
Fig. 2 is the flow chart of the processing method of the bluetooth channel of second embodiment of the invention;
Fig. 3 is the block diagram of the mobile terminal of third embodiment of the invention;
Fig. 4 is the block diagram of the mobile terminal of fourth embodiment of the invention;
Fig. 5 is the hardware architecture diagram of the mobile terminal of fifth embodiment of the invention.
Specific implementation mode
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation describes, it is clear that described embodiments are some of the embodiments of the present invention, instead of all the embodiments.Based on this hair
Embodiment in bright, the every other implementation that those of ordinary skill in the art are obtained without creative efforts
Example, shall fall within the protection scope of the present invention.
First embodiment
Referring to Fig.1, it shows the flow chart of the processing method of the bluetooth channel of one embodiment of the invention, is applied to bluetooth
Main equipment, the method can specifically include following steps:
Step 101, bluetooth channel is detected, determines that channel quality meets the first channel set of the first preset condition
It closes, first channel set includes multiple bluetooth channels;
Wherein, bluetooth master side can detect the channel quality of ambient enviroment in real time when using bluetooth communication.Tool
For body, bluetooth master can detect the quality of each channel by way of to 79 channels respectively transmission data packet,
So that it is determined that channel quality meets (i.e. performance is good for the bluetooth master) multiple bluetooths of the first preset condition
Channel constitutes the first channel set.
Wherein, conventional bluetooth channel detection method can be used in above-mentioned steps 101, and which is not described herein again.
Wherein, so-called bluetooth master, the equipment for as asking bluetooth connection.In practical applications, the bluetooth master
It can be mobile terminal, such as have the mobile phone of Bluetooth function.
Step 102, the second channel aggregate information that Bluetooth slave devices determine is received, wherein the second channel set letter
Breath corresponds to second channel set, and the second channel set includes multiple bluetooths letter that channel quality meets the second preset condition
Road;
Likewise, Bluetooth slave devices can also use the method such as step 101 similar procedure to be detected bluetooth channel,
Details are not described herein, so that it is determined that being judged as the good multiple bluetooth channels of performance after Bluetooth slave devices detection, and constitutes second
Channel set.
Wherein, different with the environment residing for Bluetooth slave devices due to bluetooth master, required bluetooth channel
It is required that also different.Therefore, for the two in the detection process for carrying out bluetooth channel, default bluetooth quality requirements are also different.Its
In, the first preset condition for bluetooth master and the second preset condition different from for Bluetooth slave devices.
However, it should be understood that whether bluetooth master or Bluetooth slave devices detect respective available bluetooth
Routine techniques can be used in the method that is detected and determined of channel, specific bluetooth channel, and which is not described herein again.
Wherein, so-called Bluetooth slave devices, the equipment of as requested bluetooth connection, in practical applications, the bluetooth is from setting
Standby can be bluetooth headset, vehicle-mounted Bluetooth equipment.
Wherein, used bluetooth channel when bluetooth master is for controlling itself and Bluetooth slave devices progress bluetooth connection;
Therefore Bluetooth slave devices are in detecting and determining itself local environment after the preferable second channel set of performance, need by with this
The corresponding second channel aggregate information of second channel set is sent to bluetooth master.
In addition, the present invention does not limit the execution sequence of step 101 and step 102, only step 101 is first in this example
It is executed in step 102.
Step 103, it determines the common signal channel in first channel set and the second channel set, obtains third letter
Road set;
Wherein, such as the first channel set for constituting of the good bluetooth channel of the performance that detects of bluetooth master side includes 30
A bluetooth channel, and the second channel set for the good bluetooth channel composition of performance that Bluetooth slave devices side detects includes 25 indigo plants
Tooth channel.
So in this step, bluetooth master side is it needs to be determined that two channel sets of the first channel set and second channel set
Bluetooth master and Bluetooth slave devices are all determined as the good common bluetooth channel of performance and constitute third channel by the intersection of conjunction
Set.
Step 104, when the channel quantity of the third channel set is less than preset quantity threshold value and the second channel collection
When the channel quantity of conjunction is greater than or equal to the preset quantity threshold value, then the channel in the second channel set is set to institute
State the common available channel that bluetooth master carries out bluetooth connection with the Bluetooth slave devices.
Wherein, since Bluetooth protocol provides at least to communicate to carry out the frequency hopping of bluetooth using 20 channels, if that right
The quantity for being all determined as the good bluetooth channel of performance in bluetooth master and Bluetooth slave devices is 15, i.e., common performance is good
Channel only has 15, then the quantity of the common good channel of performance is less than preset quantity threshold value (i.e. 20), and Bluetooth slave devices
The quantity (i.e. 25) for being determined as the good bluetooth channel of performance is more than preset quantity threshold value 20.So in order to avoid fill into bluetooth from
Equipment is determined as 5 bad channels of performance, in this step, can Bluetooth slave devices be directly determined as the good indigo plant of performance
Tooth channel (channel i.e. in second channel set) is set as such as bluetooth cellular phone and bluetooth headset when bluetooth communication is connect
Available channel.I.e. it is good to be determined as performance with bluetooth headset when carrying out frequency hopping communication using above-mentioned Bluetooth slave devices for bluetooth cellular phone
25 bluetooth channels carry out frequency hopping communication, be determined as 5 bad channel institutes of performance to avoid filling into bluetooth headset at random
There is the problem of very serious card sound or even noise reduction by the audio that bluetooth communication plays in caused equipment.
In embodiments of the present invention, it is determined as the good second channel aggregate information of performance by receiving Bluetooth slave devices, and
Determine that bluetooth master side is judged as the first good channel set of performance the second letter corresponding with the second channel aggregate information
The intersection of road set, i.e. third channel set, and it is less than the minimum letter of bluetooth communication in the channel quantity of the third channel set
In the case that the channel quantity of road quantity and the second channel set is greater than or equal to the lowest channel quantity, directly using blue
The channel that tooth is determined as from equipment in the good second channel set of performance is used as bluetooth master and Bluetooth slave devices carry out indigo plant
The channel of tooth communication.The channel that bluetooth master and Bluetooth slave devices carry out bluetooth communication is enable to meet Bluetooth slave devices
Channel performance requirement, avoids the problem that card sound or noise reduction occurs in the audio played by bluetooth communication between bluetooth equipment.
In addition, even if Bluetooth slave devices are determined as in the good second channel set of performance, there are a small amount of bluetooth masters to think
The bad channel of performance, this only can cause a small amount of data to retransmit when audio plays, without influencing receipts of the user to audio
It listens, avoids the problem that card sound or noise reduction occurs in the audio played by bluetooth communication between bluetooth equipment
Second embodiment
With reference to Fig. 2, the flow chart of the processing method of the bluetooth channel of one embodiment of the invention is shown, be applied to bluetooth
Main equipment, the method can specifically include following steps:
Step 201, bluetooth channel is detected, determines that channel quality meets the first channel set of the first preset condition
It closes, first channel set includes multiple bluetooth channels;
Wherein, elaborating referring in particular to the step 101 of first embodiment, details are not described herein.
Step 202, the second channel aggregate information that Bluetooth slave devices determine is received, wherein the second channel set letter
Breath corresponds to second channel set, and the second channel set includes multiple bluetooths letter that channel quality meets the second preset condition
Road;
Wherein, elaborating referring in particular to the step 102 of first embodiment, details are not described herein.
Step 203, it determines the common signal channel in first channel set and the second channel set, obtains third letter
Road set;
Wherein it is determined that the method for common signal channel is elaborated referring in particular to the step 103 of first embodiment, herein no longer
It repeats.
Optionally, step 204, when the channel quantity of the third channel set is less than preset quantity threshold value and described the
When the channel quantity of two channel sets is greater than or equal to the preset quantity threshold value, then by the channel in the second channel set
It is set as the available channel that the bluetooth master carries out bluetooth connection with the Bluetooth slave devices.
Wherein, elaborating referring in particular to the step 104 of first embodiment, details are not described herein.
Optionally, step 205, when the channel quantity of the third channel set is less than preset quantity threshold value and described the
When the channel quantity of two channel sets is less than the preset quantity threshold value, it is determined that remove the third in first channel set
Channel except channel set is the 4th channel set;
Wherein, such as the good bluetooth channel that is determined as performance the first channel set for being constituted in bluetooth master side includes 30
A bluetooth channel, and the second channel set that the Bluetooth slave devices side good bluetooth channel that is determined as performance is constituted includes 18 indigo plants
Tooth channel.And the third channel set that the first channel set and the common signal channel of second channel set are constituted includes 15 bluetooths
Channel.That is, the channel quantity 15 of third channel set is less than preset quantity threshold value 20, it is therefore desirable to fill into 5 channels.In this example
In, the channel quantity of second channel set is 18 again again smaller than preset quantity threshold value 20, and therefore, it is necessary to from the first channel set
In choose 2 channels again, in particular, it is desirable to determine in the first channel set (30 bluetooth channels) except in third channel set
15 bluetooth channels except the 4th channel set that is constituted of remaining 15 bluetooth channels.
Step 206, the difference of the preset quantity threshold value and the channel quantity of the second channel set is calculated;
In this step, preferentially using Bluetooth slave devices think the good channel of performance as bluetooth master and Bluetooth slave devices into
The common available channel of row communication, therefore, still using 18 channels in second channel set as common available channel.And by
It is communicated at least 20 available channels of needs, therefore the letter of preset quantity threshold value 20 and the second channel set can be calculated
The difference 2 of road quantity 18 also needs to fill into 2 channels.
Step 207, the channel with the absolute value equal amount of the difference is randomly choosed from the 4th channel set
As the first available channel;
That is, 2 channels filled into are randomly selected from the 4th channel set, in the 4th channel set
Bluetooth channel be determined as in the good channel set of performance selected from bluetooth master and not be selected from being determined as property of Bluetooth slave devices
In channel set that can be good.
Step 208, by the second channel set channel and first available channel be set as the bluetooth master
Equipment carries out the common available channel of bluetooth connection with the Bluetooth slave devices.
Wherein it is possible to which Bluetooth slave devices (such as bluetooth headset) to be thought to 18 bluetooths of the good second channel set of performance
Channel, and think to randomly select in the good and channel set different from 18 bluetooth channels of performance from bluetooth master
2 bluetooth channels are set as 20 that the bluetooth master carries out bluetooth connection with the Bluetooth slave devices and can be used jointly jointly
Channel.
In this way, when the quantity for being determined as the good channel of performance jointly of bluetooth master and Bluetooth slave devices be less than 20,
And Bluetooth slave devices side be determined as the quantity of the good channel of performance also less than 20 when, then the method for the embodiment of the present invention still may be used
Preferentially to set the channel that it is good that Bluetooth slave devices are determined as performance to the common available channel of bluetooth connection, and further from
It is good and be determined as randomly choosing in the good channel of performance different from the Bluetooth slave devices and lack that bluetooth master is determined as performance
The channel of few number is used as the common available channel.(bluetooth when interference environment so residing for the Bluetooth slave devices is poor
It is determined as the quantity of the good channel of performance less than 20 from equipment side), the method for the embodiment of the present invention is still able to preferentially
Meet the performance requirement of the bluetooth channel of Bluetooth slave devices, to the sound that abatement device is played by bluetooth communication to a certain extent
Occur frequently existing card sound or noise reduction the problem of.
Optionally, step 209, when the channel quantity of the third channel set is greater than or equal to preset quantity threshold value,
It sets the channel in the third channel set to the bluetooth master and carries out bluetooth connection with the Bluetooth slave devices
Common available channel.
Wherein, such as the good bluetooth channel that is determined as performance the first channel set for being constituted in bluetooth master side includes 30
A bluetooth channel, and the second channel set that the Bluetooth slave devices side good bluetooth channel that is determined as performance is constituted includes 25 indigo plants
Tooth channel.And the third channel set that the first channel set and the common signal channel of second channel set are constituted includes that 23 bluetooths are believed
Road.That is, the channel quantity of third channel set is more than preset quantity threshold value 20, then then can directly constitute the common signal channel
Third channel set in bluetooth channel be set as the bluetooth master and Bluetooth slave devices carry out the common of bluetooth connection can
Use channel.
In this way, the method for the embodiment of the present invention is determining the shared channel between bluetooth master side and Bluetooth slave devices
When quantity is more than 20, then can directly the shared channel be set to the common available channel of the two Bluetooth communication, to ensure
Efficient communication between bluetooth equipment.
3rd embodiment
With reference to Fig. 3, show that the block diagram of the mobile terminal of one embodiment of the invention, the mobile terminal are that bluetooth master sets
It is standby.The mobile terminal of the embodiment of the present invention can realize the thin of the processing method of the bluetooth channel in embodiment one to embodiment two
Section, and reach identical effect.Mobile terminal shown in Fig. 3 includes:
Detection module 31 determines that channel quality meets the first of the first preset condition for being detected to bluetooth channel
Channel set, first channel set include multiple bluetooth channels;
Receiving module 32, the second channel aggregate information for receiving Bluetooth slave devices determination, wherein the second channel
Aggregate information corresponds to the second information aggregate, and the second channel set includes that channel quality meets the multiple of the second preset condition
Bluetooth channel;
First determining module 33, for determining the common letter in first channel set and the second channel set
Road obtains third channel set;
First setup module 34 is less than preset quantity threshold value and institute for the channel quantity when the third channel set
It, then will be in the second channel set when stating the channel quantity of second channel set more than or equal to the preset quantity threshold value
Channel is set as the common available channel that the bluetooth master carries out bluetooth connection with the Bluetooth slave devices.
In embodiments of the present invention, it is determined as the good second channel aggregate information of performance by receiving Bluetooth slave devices, and
Determine that bluetooth master side is judged as the first good channel set of performance the second letter corresponding with the second channel aggregate information
The intersection of road set, i.e. third channel set, and it is less than the minimum letter of bluetooth communication in the channel quantity of the third channel set
In the case that the channel quantity of road quantity and the second channel set is greater than or equal to the lowest channel quantity, directly using blue
The channel that tooth is determined as from equipment in the good second channel set of performance is used as bluetooth master and Bluetooth slave devices carry out indigo plant
The channel of tooth communication.The channel that bluetooth master and Bluetooth slave devices carry out bluetooth communication is enable to meet Bluetooth slave devices
Channel performance requirement, avoids the problem that card sound or noise reduction occurs in the audio played by bluetooth communication between bluetooth equipment.
Fourth embodiment
Optionally, with reference to Fig. 4, on the basis of Fig. 3, the mobile terminal further includes:
Second determining module 35 is less than preset quantity threshold value and institute for the channel quantity when the third channel set
When stating the channel quantity of second channel set less than the preset quantity threshold value, it is determined that except described in first channel set
Channel except third channel set is the 4th channel set;
Computing module 36, the difference for calculating the preset quantity threshold value and the channel quantity of the third channel set
Value;
Selecting module 37, the absolute value equal amount for random selection and the difference from the 4th channel set
Channel as the first available channel;
Second setup module 38, for by the second channel set channel and first available channel be set as
The bluetooth master carries out the common available channel of bluetooth connection with the Bluetooth slave devices.
Optionally, the mobile terminal further includes:
Third setup module 39 is greater than or equal to preset quantity threshold value for the channel quantity when the third channel set
When, it sets the channel in the third channel set to the bluetooth master and carries out bluetooth connection with the Bluetooth slave devices
Common available channel.
Mobile terminal provided in an embodiment of the present invention can realize that mobile terminal is realized in the embodiment of the method for Fig. 1 to Fig. 2
Each process, to avoid repeating, which is not described herein again.
5th embodiment
A kind of hardware architecture diagram of Fig. 5 mobile terminals of each embodiment to realize the present invention,
The mobile terminal 400 includes but not limited to:It is radio frequency unit 401, network module 402, audio output unit 403, defeated
Enter unit 404, sensor 405, display unit 406, user input unit 407, interface unit 408, memory 409, processor
The components such as 410 and power supply 411.It will be understood by those skilled in the art that mobile terminal structure shown in Fig. 4 is not constituted
Restriction to mobile terminal, mobile terminal may include than illustrating more or fewer components, either combine certain components or
Different component arrangements.In embodiments of the present invention, mobile terminal include but not limited to mobile phone, tablet computer, laptop,
Palm PC, car-mounted terminal, wearable device and pedometer etc..
Wherein, radio frequency unit 401, the second channel aggregate information for receiving Bluetooth slave devices determination, wherein described the
Two channel set information correspond to second channel set, and the second channel set includes that channel quality meets the second preset condition
Multiple bluetooth channels;
Processor 410 determines that channel quality meets the first letter of the first preset condition for being detected to bluetooth channel
Road set, first channel set include multiple bluetooth channels;Determine first channel set and the second channel collection
Common signal channel in conjunction obtains third channel set;When the third channel set channel quantity be less than preset quantity threshold value,
And the channel quantity of the second channel set be greater than or equal to the preset quantity threshold value when, then by the second channel set
In channel be set as the common available channel that the bluetooth master and the Bluetooth slave devices carry out bluetooth connection.
In embodiments of the present invention, it is determined as the good second channel aggregate information of performance by receiving Bluetooth slave devices, and
Determine that bluetooth master side is judged as the first good channel set of performance the second letter corresponding with the second channel aggregate information
The intersection of road set, i.e. third channel set, and it is less than the minimum letter of bluetooth communication in the channel quantity of the third channel set
In the case that the channel quantity of road quantity and the second channel set is greater than or equal to the lowest channel quantity, directly using blue
The channel that tooth is determined as from equipment in the good second channel set of performance is used as bluetooth master and Bluetooth slave devices carry out indigo plant
The channel of tooth communication.The channel that bluetooth master and Bluetooth slave devices carry out bluetooth communication is enable to meet Bluetooth slave devices
Channel performance requirement, avoids the problem that card sound or noise reduction occurs in the audio played by bluetooth communication between bluetooth equipment.
It should be understood that the embodiment of the present invention in, radio frequency unit 401 can be used for receiving and sending messages or communication process in, signal
Send and receive, specifically, by from base station downlink data receive after, to processor 410 handle;In addition, by uplink
Data are sent to base station.In general, radio frequency unit 401 includes but not limited to antenna, at least one amplifier, transceiver, coupling
Device, low-noise amplifier, duplexer etc..In addition, radio frequency unit 401 can also by radio communication system and network and other set
Standby communication.
Mobile terminal has provided wireless broadband internet to the user by network module 402 and has accessed, and such as user is helped to receive
Send e-mails, browse webpage and access streaming video etc..
It is that audio output unit 403 can receive radio frequency unit 401 or network module 402 or in memory 409
The audio data of storage is converted into audio signal and exports to be sound.Moreover, audio output unit 403 can also be provided and be moved
The relevant audio output of specific function that dynamic terminal 400 executes is (for example, call signal receives sound, message sink sound etc.
Deng).Audio output unit 403 includes loud speaker, buzzer and receiver etc..
Input unit 404 is for receiving audio or video signal.Input unit 404 may include graphics processor
(Graphics Processing Unit, GPU) 4041 and microphone 4042, graphics processor 4041 is in video acquisition mode
Or the image data of the static images or video obtained by image capture apparatus (such as camera) in image capture mode carries out
Reason.Treated, and picture frame may be displayed on display unit 406.Through graphics processor 4041, treated that picture frame can be deposited
Storage is sent in memory 409 (or other storage mediums) or via radio frequency unit 401 or network module 402.Mike
Wind 4042 can receive sound, and can be audio data by such acoustic processing.Treated audio data can be
The format output of mobile communication base station can be sent to via radio frequency unit 401 by being converted in the case of telephone calling model.
Mobile terminal 400 further includes at least one sensor 405, such as optical sensor, motion sensor and other biographies
Sensor.Specifically, optical sensor includes ambient light sensor and proximity sensor, wherein ambient light sensor can be according to environment
The light and shade of light adjusts the brightness of display panel 4061, and proximity sensor can close when mobile terminal 400 is moved in one's ear
Display panel 4061 and/or backlight.As a kind of motion sensor, accelerometer sensor can detect in all directions (general
For three axis) size of acceleration, size and the direction of gravity are can detect that when static, can be used to identify mobile terminal posture (ratio
Such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap);It passes
Sensor 405 can also include fingerprint sensor, pressure sensor, iris sensor, molecule sensor, gyroscope, barometer, wet
Meter, thermometer, infrared sensor etc. are spent, details are not described herein.
Display unit 406 is for showing information input by user or being supplied to the information of user.Display unit 406 can wrap
Display panel 4061 is included, liquid crystal display (Liquid Crystal Display, LCD), Organic Light Emitting Diode may be used
Forms such as (Organic Light-Emitting Diode, OLED) configure display panel 4061.
User input unit 407 can be used for receiving the number or character information of input, and generate the use with mobile terminal
Family is arranged and the related key signals input of function control.Specifically, user input unit 407 include touch panel 4071 and
Other input equipments 4072.Touch panel 4071, also referred to as touch screen collect user on it or neighbouring touch operation
(for example user uses any suitable objects or attachment such as finger, stylus on touch panel 4071 or in touch panel 4071
Neighbouring operation).Touch panel 4071 may include both touch detecting apparatus and touch controller.Wherein, touch detection
Device detects the touch orientation of user, and detects the signal that touch operation is brought, and transmits a signal to touch controller;Touch control
Device processed receives touch information from touch detecting apparatus, and is converted into contact coordinate, then gives processor 410, receiving area
It manages the order that device 410 is sent and is executed.Furthermore, it is possible to more using resistance-type, condenser type, infrared ray and surface acoustic wave etc.
Type realizes touch panel 4071.In addition to touch panel 4071, user input unit 407 can also include other input equipments
4072.Specifically, other input equipments 4072 can include but is not limited to physical keyboard, function key (such as volume control button,
Switch key etc.), trace ball, mouse, operating lever, details are not described herein.
Further, touch panel 4071 can be covered on display panel 4061, when touch panel 4071 is detected at it
On or near touch operation after, send processor 410 to determine the type of touch event, be followed by subsequent processing device 410 according to touch
The type for touching event provides corresponding visual output on display panel 4061.Although in Figure 5, touch panel 4071 and display
Panel 4061 is to realize the function that outputs and inputs of mobile terminal as two independent components, but in some embodiments
In, can be integrated by touch panel 4071 and display panel 4061 and realize the function that outputs and inputs of mobile terminal, it is specific this
Place does not limit.
Interface unit 408 is the interface that external device (ED) is connect with mobile terminal 400.For example, external device (ED) may include having
Line or wireless head-band earphone port, external power supply (or battery charger) port, wired or wireless data port, storage card end
Mouth, port, the port audio input/output (I/O), video i/o port, earphone end for connecting the device with identification module
Mouthful etc..Interface unit 408 can be used for receiving the input (for example, data information, electric power etc.) from external device (ED) and
By one or more elements that the input received is transferred in mobile terminal 400 or can be used in 400 He of mobile terminal
Transmission data between external device (ED).
Memory 409 can be used for storing software program and various data.Memory 409 can include mainly storing program area
And storage data field, wherein storing program area can storage program area, application program (such as the sound needed at least one function
Sound playing function, image player function etc.) etc.;Storage data field can store according to mobile phone use created data (such as
Audio data, phone directory etc.) etc..In addition, memory 409 may include high-speed random access memory, can also include non-easy
The property lost memory, a for example, at least disk memory, flush memory device or other volatile solid-state parts.
Processor 410 is the control centre of mobile terminal, utilizes each of various interfaces and the entire mobile terminal of connection
A part by running or execute the software program and/or module that are stored in memory 409, and calls and is stored in storage
Data in device 409 execute the various functions and processing data of mobile terminal, to carry out integral monitoring to mobile terminal.Place
Reason device 410 may include one or more processing units;Preferably, processor 410 can integrate application processor and modulatedemodulate is mediated
Manage device, wherein the main processing operation system of application processor, user interface and application program etc., modem processor is main
Processing wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor 410.
Mobile terminal 400 can also include the power supply 411 (such as battery) powered to all parts, it is preferred that power supply 411
Can be logically contiguous by power-supply management system and processor 410, to realize management charging by power-supply management system, put
The functions such as electricity and power managed.
In addition, mobile terminal 400 includes some unshowned function modules, details are not described herein.
Preferably, the embodiment of the present invention also provides a kind of mobile terminal, including processor 410, and memory 409 is stored in
On memory 409 and the computer program that can be run on the processor 410, the computer program are executed by processor 410
Each process of the processing method embodiment of the above-mentioned bluetooth channels of Shi Shixian, and identical technique effect can be reached, to avoid weight
Multiple, which is not described herein again.
The embodiment of the present invention also provides a kind of computer readable storage medium, and meter is stored on computer readable storage medium
Calculation machine program, the computer program realize each mistake of the processing method embodiment of above-mentioned bluetooth channel when being executed by processor
Journey, and identical technique effect can be reached, to avoid repeating, which is not described herein again.Wherein, the computer-readable storage medium
Matter, such as read-only memory (Read-Only Memory, abbreviation ROM), random access memory (Random Access
Memory, abbreviation RAM), magnetic disc or CD etc..
It should be noted that herein, the terms "include", "comprise" or its any other variant are intended to non-row
His property includes, so that process, method, article or device including a series of elements include not only those elements, and
And further include other elements that are not explicitly listed, or further include for this process, method, article or device institute it is intrinsic
Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including this
There is also other identical elements in the process of element, method, article or device.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side
Method can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but in many cases
The former is more preferably embodiment.Based on this understanding, technical scheme of the present invention substantially in other words does the prior art
Going out the part of contribution can be expressed in the form of software products, which is stored in a storage medium
In (such as ROM/RAM, magnetic disc, CD), including some instructions are used so that a station terminal (can be mobile phone, computer, service
Device, air conditioner or network equipment etc.) execute method described in each embodiment of the present invention.
The embodiment of the present invention is described with above attached drawing, but the invention is not limited in above-mentioned specific
Embodiment, the above mentioned embodiment is only schematical, rather than restrictive, those skilled in the art
Under the inspiration of the present invention, without breaking away from the scope protected by the purposes and claims of the present invention, it can also make very much
Form belongs within the protection of the present invention.
Claims (8)
1. a kind of processing method of bluetooth channel is applied to bluetooth master, which is characterized in that the method includes:
Bluetooth channel is detected, determines that channel quality meets the first channel set of the first preset condition, first letter
Road set includes multiple bluetooth channels;
Receive the second channel aggregate information that Bluetooth slave devices determine, wherein the second channel aggregate information corresponds to second
Channel set, the second channel set include multiple bluetooth channels that channel quality meets the second preset condition;
It determines the common signal channel in first channel set and the second channel set, obtains third channel set;
When the channel quantity of the third channel set is less than the channel quantity of preset quantity threshold value and the second channel set
When more than or equal to the preset quantity threshold value, then the channel in the second channel set is set to the bluetooth master
The common available channel of bluetooth connection is carried out with the Bluetooth slave devices.
2. according to the method described in claim 1, it is characterized in that, the determination first channel set and second letter
Common signal channel in road set, after obtaining third channel set, the method further includes:
When the channel quantity of the third channel set is less than the channel quantity of preset quantity threshold value and the second channel set
When less than the preset quantity threshold value, it is determined that the channel in first channel set in addition to the third channel set is
4th channel set;
Calculate the difference of the preset quantity threshold value and the channel quantity of the third channel set;
Random selection and the channel of the absolute value equal amount of the difference are available as first from the 4th channel set
Channel;
By in the second channel set channel and first available channel be set as the bluetooth master and the indigo plant
Tooth carries out the common available channel of bluetooth connection from equipment.
3. according to the method described in claim 1, it is characterized in that, the determination first channel set and second letter
The middle common signal channel of road set, after obtaining third channel set, the method further includes:
It, will be in the third channel set when the channel quantity of the third channel set is greater than or equal to preset quantity threshold value
Channel be set as the common available channel that the bluetooth master and the Bluetooth slave devices carry out bluetooth connection.
4. a kind of mobile terminal, the mobile terminal is bluetooth master, which is characterized in that the mobile terminal includes:
Detection module determines that channel quality meets the first channel set of the first preset condition for being detected to bluetooth channel
It closes, first channel set includes multiple bluetooth channels;
Receiving module, the second channel aggregate information for receiving Bluetooth slave devices determination, wherein the second channel set letter
Breath corresponds to the second information aggregate, and the second channel set includes multiple bluetooths letter that channel quality meets the second preset condition
Road;
First determining module is obtained for determining the common signal channel in first channel set and the second channel set
Third channel set;
First setup module is less than preset quantity threshold value and described second for the channel quantity when the third channel set
When the channel quantity of channel set is greater than or equal to the preset quantity threshold value, then the channel in the second channel set is set
It is set to the common available channel that the bluetooth master carries out bluetooth connection with the Bluetooth slave devices.
5. mobile terminal according to claim 4, which is characterized in that the mobile terminal further includes:
Second determining module is less than preset quantity threshold value and described second for the channel quantity when the third channel set
When the channel quantity of channel set is less than the preset quantity threshold value, it is determined that except the third is believed in first channel set
Channel except road set is the 4th channel set;
Computing module, the difference for calculating the preset quantity threshold value and the channel quantity of the third channel set;
Selecting module, the channel for random selection and the absolute value equal amount of the difference from the 4th channel set
As the first available channel;
Second setup module, for by the second channel set channel and first available channel be set as the indigo plant
Tooth main equipment carries out the common available channel of bluetooth connection with the Bluetooth slave devices.
6. mobile terminal according to claim 4, which is characterized in that the mobile terminal further includes:
Third setup module is used for when the channel quantity of the third channel set is greater than or equal to preset quantity threshold value, will
Channel in the third channel set is set as the bluetooth master and carries out being total to for bluetooth connection with the Bluetooth slave devices
Same available channel.
7. a kind of mobile terminal, which is characterized in that including:It memory, processor and is stored on the memory and can be in institute
The computer program run on processor is stated, such as claims 1 to 3 is realized when the computer program is executed by the processor
Any one of described in bluetooth channel processing method the step of.
8. a kind of computer readable storage medium, which is characterized in that be stored with computer on the computer readable storage medium
Program, the computer program realize the place of bluetooth channel as claimed any one in claims 1 to 3 when being executed by processor
Step in reason method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810074213.7A CN108377483A (en) | 2018-01-25 | 2018-01-25 | A kind of processing method and mobile terminal of bluetooth channel |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810074213.7A CN108377483A (en) | 2018-01-25 | 2018-01-25 | A kind of processing method and mobile terminal of bluetooth channel |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108377483A true CN108377483A (en) | 2018-08-07 |
Family
ID=63016768
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810074213.7A Pending CN108377483A (en) | 2018-01-25 | 2018-01-25 | A kind of processing method and mobile terminal of bluetooth channel |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108377483A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111918258A (en) * | 2020-07-29 | 2020-11-10 | 东软集团股份有限公司 | Method, device and equipment for realizing Bluetooth service connection |
CN112911450A (en) * | 2021-03-08 | 2021-06-04 | 广州安凯微电子股份有限公司 | Channel selection method, device and system of Bluetooth wireless headset |
CN115022872A (en) * | 2021-11-05 | 2022-09-06 | 荣耀终端有限公司 | Data transmission method and electronic equipment |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
TW201315168A (en) * | 2011-09-22 | 2013-04-01 | Realtek Semiconductor Corp | Communication device with intelligent frequency hopping channel selection capability |
US20160381572A1 (en) * | 2015-06-25 | 2016-12-29 | Intel IP Corporation | Adaptive frequency hopping (afh) with channel inhibition (ci) for bluetooth |
CN107105386A (en) * | 2016-02-23 | 2017-08-29 | 诺基亚技术有限公司 | Method, device and the computer program product of wireless short-range communication Channel assignment |
US9832598B2 (en) * | 2015-11-06 | 2017-11-28 | Intel IP Corporation | Methods in short range radio communication master subsystems, mobile devices, and multi-mode radio communication systems |
CN107547112A (en) * | 2017-07-20 | 2018-01-05 | 青岛海信电器股份有限公司 | Method, equipment and the system recovered to the channel between master-slave equipment |
-
2018
- 2018-01-25 CN CN201810074213.7A patent/CN108377483A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
TW201315168A (en) * | 2011-09-22 | 2013-04-01 | Realtek Semiconductor Corp | Communication device with intelligent frequency hopping channel selection capability |
US20160381572A1 (en) * | 2015-06-25 | 2016-12-29 | Intel IP Corporation | Adaptive frequency hopping (afh) with channel inhibition (ci) for bluetooth |
US9832598B2 (en) * | 2015-11-06 | 2017-11-28 | Intel IP Corporation | Methods in short range radio communication master subsystems, mobile devices, and multi-mode radio communication systems |
CN107105386A (en) * | 2016-02-23 | 2017-08-29 | 诺基亚技术有限公司 | Method, device and the computer program product of wireless short-range communication Channel assignment |
CN107547112A (en) * | 2017-07-20 | 2018-01-05 | 青岛海信电器股份有限公司 | Method, equipment and the system recovered to the channel between master-slave equipment |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111918258A (en) * | 2020-07-29 | 2020-11-10 | 东软集团股份有限公司 | Method, device and equipment for realizing Bluetooth service connection |
CN111918258B (en) * | 2020-07-29 | 2024-05-03 | 东软集团股份有限公司 | Method, device and equipment for realizing Bluetooth service connection |
CN112911450A (en) * | 2021-03-08 | 2021-06-04 | 广州安凯微电子股份有限公司 | Channel selection method, device and system of Bluetooth wireless headset |
CN112911450B (en) * | 2021-03-08 | 2023-07-25 | 广州安凯微电子股份有限公司 | Channel selection method, device and system of Bluetooth wireless earphone |
CN115022872A (en) * | 2021-11-05 | 2022-09-06 | 荣耀终端有限公司 | Data transmission method and electronic equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108551636A (en) | A kind of speaker control method and mobile terminal | |
CN107911445A (en) | A kind of information push method, mobile terminal and storage medium | |
CN108347759A (en) | A kind of anti-interference method and mobile terminal of flexible screen | |
CN107770760A (en) | A kind of method and mobile terminal of the type for identifying bluetooth equipment | |
CN108319445A (en) | A kind of audio frequency playing method and mobile terminal | |
CN108540358A (en) | Control method, mobile terminal and the computer readable storage medium of household appliance | |
CN108494030A (en) | A kind of wireless charging method, terminal and transmitting end equipment | |
CN108521520A (en) | A kind of call handling method and mobile terminal | |
CN107948874A (en) | A kind of terminal control method, mobile terminal | |
CN107678829A (en) | A kind of application control method and mobile terminal | |
CN108762869A (en) | A kind of information processing method and mobile terminal | |
CN107743178A (en) | A kind of message player method and mobile terminal | |
CN108363524A (en) | A kind of application icon display methods and mobile terminal | |
CN110062104A (en) | Application program launching method, device and mobile terminal | |
CN110351407A (en) | A kind of audio frequency playing method and mobile terminal | |
CN107786751A (en) | A kind of method for broadcasting multimedia file and mobile terminal | |
CN108958695A (en) | Audio-frequency inputting method, device and computer readable storage medium | |
CN108377483A (en) | A kind of processing method and mobile terminal of bluetooth channel | |
CN108683980A (en) | A kind of transmission method and mobile terminal of audio signal | |
CN107835495A (en) | A kind of message prompt method, device and mobile terminal | |
CN108509141A (en) | A kind of generation method and mobile terminal of control | |
CN108664818A (en) | A kind of unlock control method and device | |
CN111158624A (en) | Application sharing method, electronic equipment and computer readable storage medium | |
CN107749761B (en) | A kind of anti-interference method and mobile terminal | |
CN109005297A (en) | A kind of display methods and mobile terminal of navigation application |
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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20180807 |