CN109005582A - Transmission power adjustment method, device, electronic equipment and storage medium - Google Patents

Transmission power adjustment method, device, electronic equipment and storage medium Download PDF

Info

Publication number
CN109005582A
CN109005582A CN201810925250.4A CN201810925250A CN109005582A CN 109005582 A CN109005582 A CN 109005582A CN 201810925250 A CN201810925250 A CN 201810925250A CN 109005582 A CN109005582 A CN 109005582A
Authority
CN
China
Prior art keywords
electronic equipment
transmission power
audio data
bluetooth
audio
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
Application number
CN201810925250.4A
Other languages
Chinese (zh)
Other versions
CN109005582B (en
Inventor
严锋贵
龚金华
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201810925250.4A priority Critical patent/CN109005582B/en
Publication of CN109005582A publication Critical patent/CN109005582A/en
Application granted granted Critical
Publication of CN109005582B publication Critical patent/CN109005582B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/04TPC
    • H04W52/18TPC being performed according to specific parameters
    • H04W52/26TPC being performed according to specific parameters using transmission rate or quality of service QoS [Quality of Service]
    • H04W52/265TPC being performed according to specific parameters using transmission rate or quality of service QoS [Quality of Service] taking into account the quality of service QoS
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication

Abstract

The embodiment of the present application discloses a kind of transmission power adjustment method, device, electronic equipment and storage medium, is applied to electronic equipment, which comprises detect the connection status between the electronic equipment and other equipment;When passing through bluetooth connection there are audio-frequence player device and the electronic equipment, detect whether the electronic equipment has audio data output;When the electronic equipment has audio data output, increase the Bluetooth transmission power of the electronic equipment.This method may be implemented to reduce the delay that audio data is transmitted to audio-frequence player device, promote user experience.

Description

Transmission power adjustment method, device, electronic equipment and storage medium
Technical field
This application involves technical field of electronic equipment, more particularly, to a kind of transmission power adjustment method, device, electricity Sub- equipment and storage medium.
Background technique
Electronic equipment, such as mobile phone, tablet computer etc. have become most common consumer electronics in people's daily life One of product.When user uses electronic equipment, electronics can be received commonly using the audio-frequence player device connecting with electronic equipment The audio-frequency information of equipment.But the received audio-frequency information of audio-frequence player device usually there will be delay, make the experience of user by It influences.
Summary of the invention
In view of the above problems, present applicant proposes a kind of transmission power adjustment method, device, electronic equipment and storages to be situated between Matter promotes user experience to reduce the transmission delay of audio data.
In a first aspect, the embodiment of the present application provides a kind of transmission power adjustment method, it is applied to electronic equipment, the side Method includes: the connection status between the detection electronic equipment and other equipment;When there are audio-frequence player devices and the electronics When equipment passes through bluetooth connection, detect whether the electronic equipment has audio data output;There is audio number in the electronic equipment When according to output, increase the Bluetooth transmission power of the electronic equipment.
Second aspect, the embodiment of the present application provide a kind of transmit power adjustment means, are applied to electronic equipment, the dress Set includes: communication check module, data detection module and power regulation module, wherein the communication check module is for examining Survey the connection status between the electronic equipment and other equipment;The data detection module is used for when there are audio-frequence player devices When passing through bluetooth connection with the electronic equipment, detect whether the electronic equipment has audio data output;The power adjustment Module is used for when the electronic equipment has audio data output, increases the Bluetooth transmission power of the electronic equipment.
The third aspect, the embodiment of the present application provide a kind of electronic equipment, including memory, processor and bluetooth mould Block, the memory and bluetooth module are couple to the processor, the memory store instruction, when described instruction is by described The processor executes the transmission power adjustment method that above-mentioned first aspect provides when processor execution.
Fourth aspect, the embodiment of the present application also provides a kind of computers of program code that can be performed with processor can Read storage medium, which is characterized in that said program code makes the processor execute the transmitting function that above-mentioned first aspect provides Rate method of adjustment.
Compared with the existing technology, transmission power adjustment method provided by the present application, device, electronic equipment and storage medium, By the connection status between detection electronic equipment and other equipment, when there are audio-frequence player devices and electronic equipment to pass through bluetooth When connection, whether detection electronic equipment has audio data output, when electronic equipment has audio data output, increases electronic equipment Bluetooth transmission power.So as to subtract when electronic equipment transmits audio data to audio-frequence player device by Bluetooth communication The transmission delay of few audio data, promotes user experience.
These aspects or other aspects of the application can more straightforward in the following description.
Detailed description of the invention
In order to more clearly explain the technical solutions in the embodiments of the present application, make required in being described below to embodiment Attached drawing is briefly described, it should be apparent that, the drawings in the following description are only some examples of the present application, for For those skilled in the art, without creative efforts, it can also be obtained according to these attached drawings other attached Figure.
Fig. 1 shows the flow chart of the transmission power adjustment method of one embodiment of the application offer;
Fig. 2 shows the flow charts for the transmission power adjustment method that another embodiment of the application provides;
Fig. 3 shows the flow chart of step S250 in transmission power adjustment method provided by the embodiments of the present application;
Fig. 4 shows the stream for the transmission power adjustment method that the another embodiment of the application provided by the embodiments of the present application proposes Cheng Tu;
Fig. 5 shows the flow chart of step S340 in transmission power adjustment method provided by the embodiments of the present application;
Fig. 6 shows the structural block diagram of the transmit power adjustment means of the embodiment of the present application proposition;
Fig. 7 shows the electricity for being used to execute the transmission power adjustment method according to the embodiment of the present application of the embodiment of the present application The block diagram of sub- equipment.
Specific embodiment
Below in conjunction with the attached drawing in the embodiment of the present application, technical solutions in the embodiments of the present application carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of embodiments of the present application, instead of all the embodiments.It is based on Embodiment in the application, it is obtained by those of ordinary skill in the art without making creative efforts every other Embodiment shall fall in the protection scope of this application.
Currently, with the progress of science and technology, most electronic equipment can be played out audio data.Wherein, electronics The audio framework of equipment and the audio framework of computer are similar, mainly by processor and built-in audio CODEC (codec) To complete.Specifically, after processor receives the input of audio data, it is converted to I2S (Inter-IC Sound, in integrated circuit Set audio-frequency bus) signal, and be transmitted to CODEC and be converted into analog signal, then play out.
As the further development of science and technology and the increase in demand of user, electronic equipment can be played with external audio frequency Equipment connection, passes through the audio-frequence player device playing audio-fequency data.Audio-frequence player device may include earphone, speaker and vehicle Carry equipment etc..The audio-frequence player device connecting with electronic equipment can receive the audio data that electronic equipment comes, and will Audio data plays out.Wherein, electronic equipment can be connect by wired mode or wireless mode with audio-frequence player device.
And currently, user generallys use wireless mode and connect audio-frequence player device with electronic equipment, realization audio is broadcast Put device plays audio data.When audio-frequence player device is wirelessly connect with electronic equipment, electronic equipment connects with it The audio-frequence player device connect needs just carry out data transmission using network.For example, electronic equipment and audio-frequence player device need Carried out data transmission using Wireless Fidelity (Wireless Fidelity, WiFi) connection or electronic equipment and audio-frequence player device It needs to connect using bluetooth (Bluetooth, BT) and carry out data transmission.In most cases, electronic equipment can pass through Bluetooth is connect with audio-frequence player device, and audio data is transmitted to audio-frequence player device by bluetooth and is played out.
But since audio data is transmitted to audio-frequence player device by electronic equipment, audio number is received to audio-frequence player device According to, can have certain transmission delay, so as to cause audio-frequence player device play sound it is not real-time, thereby increases and it is possible to electronic equipment The picture of display is asynchronous etc., causes the experience of user bad.
In view of the above-mentioned problems, inventor is by studying for a long time and proposing transmission power provided by the embodiments of the present application Method of adjustment, device, electronic equipment and storage medium transmit audio data to audio by Bluetooth communication in electronic equipment and broadcast When putting equipment, the transmission delay of audio data is reduced, promotes user experience.Wherein, specific transmission power adjustment method is rear It is described in detail in continuous embodiment.
In one embodiment, referring to Fig. 1, Fig. 1 shows transmission power adjustment method provided by the embodiments of the present application Flow diagram.The transmission power adjustment method is by transmitting audio data to audio by Bluetooth communication in electronic equipment When playback equipment, the transmission delay of audio data is reduced, promotes user experience.In the particular embodiment, the transmission power Method of adjustment is applied to transmit power adjustment means 400 as shown in FIG. 6 and is configured with the transmit power adjustment means 400 Electronic equipment (Fig. 7).It will illustrate the detailed process of the present embodiment by taking electronic equipment as an example below, it will of course be understood that, Electronic equipment applied by the present embodiment can be smart phone, tablet computer, wearable electronic equipment etc., not do herein specific Restriction.It will be explained in detail below for process shown in FIG. 1, above-mentioned transmission power adjustment method specifically can be with The following steps are included:
Step S110: the connection status between the electronic equipment and other equipment is detected.
Audio data is transmitted to audio-frequence player device and broadcast by electronic equipment frequently by connection audio-frequence player device It puts.And user higher for demand can utilize the Bluetooth function of electronic equipment, and audio-frequence player device is made to pass through bluetooth and electricity Sub- equipment connection, realizes the broadcasting of above-mentioned audio data.And audio data is transmitted to audio by Bluetooth communication in electronic equipment When playback equipment plays out, there can be the transmission delay of audio data, keep the broadcasting of audio data not real-time.If electronics is set When audio corresponding for dynamic menu for the audio data transmitted, electronic equipment is also resulted in when showing a picture, and audio Playback equipment does not receive the audio data of the picture, keeps the broadcasting of picture asynchronous with the broadcasting of sound.It therefore can be to electricity Sub- equipment is handled by the case where blue tooth transmission audio frequency data.
In the embodiment of the present application, the connection status between electronic equipment and other equipment is detected first, so as to It handles using the case where audio-frequence player device playing audio-fequency data with electronic equipment bluetooth connection.
Wherein, the connection status between electronic equipment and other equipment includes that there are other equipment and electronic equipment communication link Connect communication connection mode between other equipment, do not communicate to connect with other equipment and with other equipment communication link It connects.When the electronic equipment is in connected status, which may be at mobile network's connection status, such as: it deposits When other equipment and electronic equipment communicate to connect, connection type can be WiFi (WIreless-Fidelity, wireless guarantor Very) connection, bluetooth connection, MiFi (Mobile Wifi, mobile router or mobile hot spot) connection etc..In the embodiment of the present application In, the communication connection status between specific electronic equipment and other equipment is not as restriction.
Step S120: when passing through bluetooth connection there are audio-frequence player device and the electronic equipment, the electronics is detected Whether equipment has audio data output.
In the embodiment of the present application, electronic equipment can pass through bluetooth connection with other equipment.Therefore, when other equipment with When electronic equipment passes through bluetooth connection, step S110 be can detecte there are other equipment through bluetooth connection to electronic equipment. For example, detecting the Bluetooth function of electronic equipment and other equipment in step S110, and the electronic equipment and unlatching bluetooth function When the other equipment successful matching of energy, then it can determine that there are other equipment to pass through bluetooth connection to electronic equipment.
Further, the device type for the other equipment that can also be connect with electronic equipment Bluetooth communication, with determine with Whether the equipment that electronic equipment is communicatively coupled by bluetooth is audio-frequence player device.
Case-based Reasoning can be passed through in the electronic equipment based on android (Android) operating system as a kind of mode Change the obtained return value of BluetoothClass.Device class to determine the currently device type by bluetooth connection.If returning The value returned is AUDIO_VIDEO_CAMCORDER, then is characterized as image capture device;If the value returned is AUDIO_VIDEO_ CAR_AUDIO is then characterized as mobile unit;If the value returned is AUDIO_VIDEO_HIFI_AUDIO, it is characterized as audio and broadcasts Equipment or video playback apparatus are put, for example, bluetooth headset;If the value returned is AUDIO_VIDEO_MICROPHONE, table It is levied as microphone.
It is thus possible to detect the case where electronic equipment and audio-frequence player device are connected by Bluetooth communication.
In the embodiment of the present application, when detecting that electronic equipment and audio-frequence player device pass through bluetooth connection, Ke Yijin Whether one step detection current electronic device has audio data output.It is understood that electronic equipment with audio-frequence player device When passing through bluetooth connection, the case where being played out there are electronic equipment positive output audio data to audio-frequence player device, there is also Electronic equipment does not export the case where audio data to audio-frequence player device plays out.There is audio data output in electronic equipment When, then it needs to consider the transmission delay of audio data and is handled, and when no audio data exports, then it does not need to be located Reason.Specifically, whether can have whether processing audio data or audio codec work by processor, electricity is judged Whether sub- equipment has audio data output.
Step S130: when the electronic equipment has audio data output, increase the Bluetooth transmission function of the electronic equipment Rate.
When step S120 detects that electronic equipment has audio data output, then it represents that current electronic device passes through bluetooth Transmission audio data to audio-frequence player device plays out, therefore can handle the transmission delay of audio data.
In the embodiment of the present application, audio data can be reduced by increasing the Bluetooth transmission power of electronic equipment Transmission delay.It is understood that Bluetooth transmission power affects bluetooth signal intensity, Bluetooth transmission power is higher, then bluetooth Signal strength is higher, and signal strength determines the efficiency of transmission of data, therefore by increasing Bluetooth transmission power, and improves letter Number intensity, can promote the efficiency of transmission of data, to reduce the transmission delay of audio data.
Further, the bluetooth module of electronic equipment has specified Bluetooth transmission power and maximum Bluetooth transmission power, Wherein, specified Bluetooth transmission power is less than maximum Bluetooth transmission power.Under normal conditions, the bluetooth module of electronic equipment can be with volume Determine the work of Bluetooth transmission power.
Certainly, the Bluetooth transmission power of the bluetooth module of electronic equipment is also adjustable, can specifically be ordered by HCI It enables to set the transmission power of bluetooth, such as Bluetooth transmission power is set by HCI_EXT_SetTxPowerCmd ().
Therefore, electronic equipment and audio-frequence player device are being detected by bluetooth connection, and electronic equipment exports audio number According to when, then can increase the Bluetooth transmission power of the bluetooth module of electronic equipment, increase the Bluetooth transmission power of electronic equipment To the value less than or equal to maximum Bluetooth transmission power, and bluetooth signal intensity is increased, promotes the transmission of audio data Efficiency reduces the transmission delay of audio data.
Transmission power adjustment method provided by the embodiments of the present application passes through the company between detection electronic equipment and other equipment State is connect, then whether detection electronic equipment has audio number when there are audio-frequence player device and electronic equipment pass through bluetooth connection According to output, when electronic equipment has audio data output, the Bluetooth transmission power of electronic equipment is increased, bluetooth signal intensity is made Increase, and make audio transmission improved efficiency, reduce the transmission delay of audio data, promotes user experience.
In one embodiment, referring to Fig. 2, Fig. 2 shows transmission power adjustment methods provided by the embodiments of the present application Flow diagram.It will be explained in detail below for process shown in Fig. 2, the transmission power adjustment method specifically may be used With the following steps are included:
Step S210: the connection status between the electronic equipment and other equipment is detected.
Step S220: when passing through bluetooth connection there are audio-frequence player device and the electronic equipment, the electronics is detected Whether equipment has audio data output.
Step S210 and step S220 in the embodiment of the present application may refer to the content in above-described embodiment, herein not It repeats one by one again.
Step S230: when the electronic equipment has audio data output, the application journey for exporting the audio data is obtained The type of sequence.
When detecting that above-mentioned electronic equipment has audio data output, then it represents that electronic equipment currently utilizes Bluetooth communication to pass Transfer audio data to audio-frequence player device is exported, therefore can be led to when detecting that electronic equipment has audio data output The Bluetooth transmission power for increasing electronic equipment is crossed, to reduce the transmission delay of audio data.
In the embodiment of the present application, can also be determined whether according to the type of the application program of audio data to audio data Delay handled.Wherein, the application program of audio data is it is to be understood that export the application program of the audio data.
Certainly, in the embodiment of the present application, the application program of audio data is exported other than it can export audio data, Also other data, such as image data etc. can also be exported.
Be understood that when, electronic equipment by bluetooth output audio data to audio-frequence player device when, some types Application program output audio data to timeliness without too high request, such as the prompt tone frequency of management-type application output According to, and the audio data of the application program of some types output then needs instant play out.Therefore, it is possible to judge that electronics is set Whether the type of application program corresponding to the audio data of standby output is preset kind, to determine whether to prolong audio data It is handled late.
It is possible, firstly, to obtain the type of the application program of above-mentioned audio data.Can electronic equipment in advance to it is all can Classified with exporting the application program of audio data, and by sorted each application program it is corresponding under different types into Row storage.It, can be by each application of the corresponding application program of above-mentioned audio data and storage after determining destination application Program is matched one by one, to obtain the type where the application program and the application program with above-mentioned application matches, So as to obtain the type of above-mentioned application program.It is of course also possible to be carried out to the content of the audio data of electronic equipment output After identification, the type of the corresponding application program of the audio data is determined according to the content of audio data, such as can be by sound The identification of the content of frequency evidence obtains the data content and corresponds to text information, based on the text acquisition of information data content Specifying information.Certainly, the mode of the type of application program corresponding to the audio data of electronic equipment output is specifically obtained at this It is not intended as limiting in application embodiment.
Step S240: whether the type for judging the application program is preset kind.
After the type for obtaining application program corresponding to the audio data of electronic equipment output, then it may determine that above-mentioned Whether the type of application program is preset kind, subsequent whether handle the delay of audio data determined.
Wherein, above-mentioned preset kind can include at least: music type, video playing type, call type, voice Type and Video chat type.It is understood that the application program of above-mentioned preset kind is to the audio data of output Timeliness has higher requirements, i.e., these are applied is required to quickly play after exporting audio, for transmission to user's human ear.Certainly, Preset kind is not limited to above-mentioned type, also may include more or fewer types, specifically can be according to user demand Depending on.For example, only needing to reduce the audio data propagation delay time of the application of video playing type in user, then can set pre- If type only includes video playing type.
Step S250: if it is the preset kind, increase the Bluetooth transmission power of the electronic equipment.
Judge that application type corresponding to the audio data of electronic equipment output is default class in above-mentioned steps S240 When type, then increase the Bluetooth transmission power of electronic equipment, to reduce the transmission delay of audio data.
In the embodiment of the present application, the application type corresponding to the audio data of electronic equipment output is preset kind When, different degrees of increase can also be carried out according to Bluetooth transmission power of the specific preset kind to electronic equipment.
Fig. 3 is referred to, step S250 may include:
Step S251: if the type of the application program is the first preset kind, increase the bluetooth of the electronic equipment Transmission power is to the first transmission power.
Step S252: if the type of the application program is the second preset kind, increase the bluetooth of the electronic equipment Transmission power is to the second transmission power, wherein second transmission power is greater than first transmission power.
In the embodiment of the present application, preset kind includes the first preset kind and the second preset kind, i.e., above-mentioned default Type is divided into the first preset kind and the second preset kind, and the first preset kind includes: that music type and video are broadcast Type is put, the second preset kind includes: call type, sound-type and Video chat type.In the application journey of audio data Needing the first transmission power increased to be less than the type of application program when the type of sequence is the first preset kind is second default The second transmission power for needing to increase to when type, for example, the first transmission power is 1.5 milliwatts, the second Bluetooth transmission power is 2.0 milliwatt.The requirement for the timeliness that the application program of above-mentioned first preset kind transmits audio data is less than above-mentioned second The requirement for the timeliness that the application program of preset kind transmits audio data, therefore can be in the application journey of the second preset kind Bluetooth transmission power when sequence is greater than the Bluetooth transmission power in the application program of the first preset kind.
It is understood that when the timeliness of the corresponding application program of audio data requires high, such as conversational class application journey One or more of sequence, voice class application program and Video chat class application program, i.e., the second preset kind includes at least: The one or more of call type, sound-type and Video chat type.It is considered that such application program prolongs sound It is more sensitive late, therefore, the Bluetooth transmission power of electronic equipment can be increased into the second transmission power, make bluetooth signal intensity Enhance and promoted the efficiency of transmission of audio data, to reduce the delay of audio data.And journey is applied when audio data is corresponding When the timeliness of sequence requires low, such as the application of music class application program, video playback class, it is believed that such application program The timeliness of corresponding sound transmission is of less demanding, therefore, Bluetooth transmission power can be increased to less than the second transmission power First transmission power can reduce the power consumption of bluetooth module while reducing the transmission delay of audio data.
Transmission power adjustment method provided by the embodiments of the present application transmits audio data by Bluetooth communication in electronic equipment When to audio-frequence player device, according to the type for the application program for exporting the audio data, it is determined whether the transmission to audio data Delay is handled, and when the application program for exporting audio data is to the application program for having audio transmission delay to require, is then increased Big Bluetooth transmission power, enhances bluetooth signal intensity, promotes the efficiency of transmission of audio data and reduces audio data transmission Delay, and save the power consumption of bluetooth module.In addition, also according to the difference of preset kind, to the Bluetooth transmission function of electronic equipment Rate increases to different power, and the power consumption of bluetooth module is saved while achieving the effect that reduce the transmission delay of blue-teeth data.
In one embodiment, referring to Fig. 4, Fig. 4 shows transmission power adjustment method provided by the embodiments of the present application Flow diagram.It will be explained in detail below for process shown in Fig. 4, the transmission power adjustment method specifically may be used With the following steps are included:
Step S310: the connection status between the electronic equipment and other equipment is detected.
Step S320: when passing through bluetooth connection there are audio-frequence player device and the electronic equipment, the electronics is detected Whether equipment has audio data output.
Step S310 and step S320 in the embodiment of the present application may refer to the content in above-described embodiment, herein not It repeats one by one again.
Step S330: when the electronic equipment has audio data output, the application journey for exporting the audio data is obtained The operation information of sequence.
When detecting that above-mentioned electronic equipment has audio data output, then it represents that electronic equipment currently utilizes Bluetooth communication to pass Transfer audio data to audio-frequence player device is exported, therefore can be led to when detecting that electronic equipment has audio data output The Bluetooth transmission power for increasing electronic equipment is crossed, to reduce the transmission delay of audio data.
It in the embodiment of the present application, can also be according to the operation information of the application program of transmission audio data to Bluetooth transmission Power is increased.Wherein, the application program of audio data is it is to be understood that export the application program of the audio data.
The operation information of the application program of above-mentioned transmission audio data may include: application program be in front stage operation or Running background, the functional unit of application call, the type of application program, data of application program output etc..It is understood that , which at least supports audio data, the i.e. application program at least audio output.For example, the application program can To include music class application program, video playback class application program, conversational class application program, game class application program etc.. Above-mentioned application program refers in front stage operation can usually interact with user, and application program operates in foreground, when using journey Sequence can be suspended (such as: game) when invisible;Application program running background refer to user interaction it is very limited, in addition to matching During setting, the other times of life cycle are all hiding (such as: SMS automatically replies program and alarm clock program);Application program Refer to that application program can arbitrarily switch between foreground and backstage on the foreground of electronic equipment and backstage switchover operation.
Certainly, in the embodiment of the present application, the application program of audio data is exported other than it can export audio data, Also other data, such as image data etc. can also be exported.
Step S340: increase the Bluetooth transmission power of the electronic equipment based on the operation information.
After obtaining the operation of application program of output audio data, then electronics can be increased according to the operation information and set Standby Bluetooth transmission power.In the embodiment of the present application, Fig. 5 is referred to, step S340 may include:
Step S341: when the application program is front stage operation, the Bluetooth transmission power of the electronic equipment is increased To third transmission power.
Step S342: when the application program is running background, the Bluetooth transmission power of the electronic equipment is increased To the 4th transmission power, wherein the 4th transmission power is greater than the third transmission power.
In the embodiment of the present application, the Bluetooth transmission power of electronic equipment can increase to third transmission power, can also be with Increase to the 4th transmission power.Wherein, the 4th transmission power is greater than third transmission power.For example, third transmission power is 2 millis Watt, the 4th Bluetooth transmission power is 2.5 milliwatts.Certainly, the size of specific third transmission power and the 4th transmission power exists It is not intended as limiting in the embodiment of the present application, can be limited according to specific requirements, it is only necessary to which the 4th transmission power is greater than third Transmission power.
Further, when detecting front stage operation of the application program of output audio data in electronic equipment, at this point, answering Need real-time display picture with program or respond the operation of user, the timeliness requirement that application program transmit audio data compared with Height, therefore Bluetooth transmission power is increased to the 4th transmission power enhances bluetooth signal intensity and promotes the biography of audio data Defeated efficiency, to reduce the transmission delay of audio data.When the application program of the output audio data got is in electronic equipment Running background when, at this point, the application program do not need real-time display picture or respond user operation, application program is for sound Frequency is lower according to the timeliness requirement of transmission, therefore, the Bluetooth transmission power of electronic equipment can be increased to less than the 4th hair The third transmission power of power is penetrated, the power consumption of bluetooth module can be reduced while reducing the transmission delay of audio data.
Step S350: it is lower than default network speed in the current network speed of network and the electronic equipment in the audio data source When, the Bluetooth transmission power of the electronic equipment is increased into maximum Bluetooth transmission power.
In addition, in the embodiment of the present application, the audio data of electronic equipment output is probably derived from network, and audio data When from network, the acquisition speed of audio data may be made slower since network condition is poor, in obtaining for audio data When taking speed slower, then the result of broadcast of audio data can show Caton, and the experience of user is made to be affected.And in audio number According to acquisition speed it is slower when, by the transmission delay of further less audio data, enable the audio data got quickly It is transferred to audio-frequence player device to play out, then can improve above-mentioned Caton effect.
Therefore, the network state of electronic equipment can be detected in audio data source when network.Wherein, exist It, can be by obtaining ConnectivityManager pairs when electronic equipment is the equipment based on android (Android) operating system As rear, then NetworkInfo object corresponding to ConnectivityManager object is obtained, then from NetworkInfo pairs As taking out the information about network connection.Wherein, ConnectivityManager object is for checking network state and management net Network connects relevant operation, and NetworkInfo object includes all information of network connection.According to the information of acquisition, can obtain To the current network speed of electronic equipment.
It, then can be into one when such as less than 100Kb/S when the current network speed for detecting electronic equipment is lower than default network speed Step increases the Bluetooth transmission power of electronic equipment, to promote the efficiency of transmission of audio data.In the embodiment of the present application, Ke Yi When current network speed is lower than default network speed, the Bluetooth transmission power of electronic equipment is increased to the maximum Bluetooth transmission function of electronic equipment Rate, makes the Bluetooth transmission power of electronic equipment reach maximum, transmits audio data with highest efficiency of transmission.Certainly, network speed is preset It is not intended as limiting in the embodiment of the present application, can set according to the demand of user.
Transmission power adjustment method provided by the embodiments of the present application, by transmitting audio by Bluetooth communication in electronic equipment When data to audio-frequence player device, according to the difference of the operation information for the application program for exporting the audio data, to electronic equipment Increase different Bluetooth transmission power, the effect of the power consumption of bluetooth module is saved while reaching the transmission delay for reducing blue-teeth data Fruit.In addition, Bluetooth transmission power is increased to maximum indigo plant when audio data source is lower in the network speed of network and electronic equipment Tooth transmission power promotes user experience to weaken the influence that network plays audio.
In one embodiment, referring to Fig. 6, Fig. 6 shows transmit power adjustment means provided by the embodiments of the present application 400 module frame chart.The transmit power adjustment means 400 are applied to electronic equipment.It will be carried out below for block diagram shown in fig. 6 It illustrates, the transmit power adjustment means 400 include: communication check module 410, data detection module 420 and power adjustment Module 430.Wherein, the communication check module 410 is used to detect the connection status between the electronic equipment and other equipment; The data detection module 420 is used to detect institute when passing through bluetooth connection there are audio-frequence player device and the electronic equipment State whether electronic equipment has audio data output;The power regulation module 430 is used to have audio data in the electronic equipment When output, increase the Bluetooth transmission power of the electronic equipment.
In the embodiment of the present application, power regulation module 430 may include: type acquiring unit, type judging unit with And increase execution unit.Wherein, type acquiring unit is used for;Type judging unit is used for;Increase execution unit to be used for.
Further, the preset kind includes the first preset kind and the second preset kind.Increasing execution unit can To be specifically used for: if the type of the application program is the first preset kind, increasing the Bluetooth transmission function of the electronic equipment Rate is to the first transmission power;If the type of the application program is the second preset kind, increase the bluetooth of the electronic equipment Transmission power is to the second transmission power, wherein second transmission power is greater than first transmission power.
Further, first preset kind may include: music type and video playing type, and described Two preset kinds may include: call type, sound-type and Video chat type.
In the embodiment of the present application, power regulation module 430 may include: that information acquisition unit and power increase list Member.Wherein, information acquisition unit is used for when the electronic equipment has audio data output, is obtained and is exported the audio data The operation information of application program;Power adjustment unit is used to increase based on the operation information Bluetooth transmission of the electronic equipment Power.
Further, power increasing unit can be specifically used for: when the application program is front stage operation, by the electricity The Bluetooth transmission power of sub- equipment increases to third transmission power;When the application program is running background, by the electronics The Bluetooth transmission power of equipment increases to the 4th transmission power, wherein the 4th transmission power is greater than the third and emits function Rate.
In the embodiment of the present application, which can also include: to increase adjustment module.Increase and adjusts Mould preparation block can be used for when the audio data source is lower than default network speed in the current network speed of network and the electronic equipment, The Bluetooth transmission power of the electronic equipment is increased into maximum Bluetooth transmission power.
In one embodiment, referring to Fig. 7, based on above-mentioned transmission power adjustment method, device, the embodiment of the present application The one kind also provided can execute the electronic equipment 100 of aforementioned transmission power adjustment method.Electronic equipment 100 includes intercoupling One or more (one is only shown in figure) processor 102, memory 104 and bluetooth module 110.In the memory 104 The corresponding program of transmission power adjustment method provided by the above embodiment can be executed by being stored with, and processor 102 can be held The program stored in the row memory 104.
It will appreciated by the skilled person that every other component belongs to for the processor 102 It is coupled between peripheral hardware, the processor 102 and these peripheral hardwares by multiple Peripheral Interfaces.The Peripheral Interface can based on Lower standard implementation: Universal Asynchronous Receive/sending device (Universal Asynchronous Receiver/Transmitter, UART), universal input/output (General Purpose Input Output, GPIO), Serial Peripheral Interface (SPI) (Serial Peripheral Interface, SPI), internal integrated circuit (Inter-Integrated Circuit, I2C), but not and limit In above-mentioned standard.In some instances, the Peripheral Interface can only include bus;In other examples, the Peripheral Interface May also include other elements, display controller such as one or more controller, such as connecting the display panel or Person is used to connect the storage control of memory.In addition, these controllers can also be detached from the Peripheral Interface, and It is integrated in the processor 102 or in corresponding peripheral hardware.
The memory 104 can be used for storing software program and module, and the processor 102 is stored in institute by operation The software program and module in memory 104 are stated, thereby executing various function application and data processing.The memory 104 may include high speed random access memory, may also include nonvolatile memory, and such as one or more magnetic storage device dodges It deposits or other non-volatile solid state memories.In some instances, the memory 104 can further comprise relative to institute The remotely located memory of processor 102 is stated, these remote memories can pass through network connection to the electronic body portion 10 Or the main display 120.The example of above-mentioned network includes but is not limited to internet, intranet, local area network, mobile communication Net and combinations thereof.
Bluetooth module 110 can be a kind of PCBA board of integrated Bluetooth function, short-distance wireless communication is used for, by function It is divided into blue-teeth data module and blue tooth voice module, the former completes wireless data transmission, and the latter completes voice and stereo audio Wireless data transmission.
Electronic equipment 100 (for example, being based on iPhone TM, can be based on Android TM for mobile phone or smart phone Phone), portable gaming device (such as Nintendo DS TM, PlayStation Portable TM, Gameboy Advance TM, iPhone TM), laptop computer, PDA, portable Internet appliance, music player and data storage Equipment, other handheld devices and wrist-watch, earphone, pendant, earphone etc., electronic equipment 100 can also can be worn for others Equipment is worn (for example, such as electronic glasses, electronics clothes, electronics bracelet, electronics necklace, electronics are tatooed, mobile terminal or intelligent hand The headset equipment (HMD) of table).
In one embodiment, the embodiment of the present application provides a kind of calculating of program code that can be performed with processor Machine read/write memory medium, said program code make the processor execute the transmission power adjustment side that above-mentioned first aspect provides Method.
In the embodiment of the present application, " computer-readable medium " can be it is any may include, store, communicating, propagating or Transfer program uses for instruction execution system, device or equipment or in conjunction with these instruction execution systems, device or equipment Device.The more specific example (non-exhaustive list) of computer-readable medium include the following: there are one or more wirings Electrical connection section (electronic equipment), portable computer diskette box (magnetic device), random access memory (RAM), read-only memory (ROM), erasable edit read-only storage (EPROM or flash memory), fiber device and portable optic disk is read-only deposits Reservoir (CDROM).In addition, computer-readable medium can even is that the paper that can print described program on it or other are suitable Medium, because can then be edited, be interpreted or when necessary with it for example by carrying out optical scanner to paper or other media His suitable method is handled electronically to obtain described program, is then stored in computer storage.
In conclusion transmission power adjustment method provided by the present application, device, electronic equipment and storage medium, pass through inspection The connection status between electronic equipment and other equipment is surveyed, when there are audio-frequence player devices and electronic equipment to pass through bluetooth connection When, whether detection electronic equipment has audio data output, when electronic equipment has audio data output, increases the indigo plant of electronic equipment Tooth transmission power.So as to reduce sound when electronic equipment transmits audio data to audio-frequence player device by Bluetooth communication The transmission delay of frequency evidence, the picture for showing electronic equipment is synchronous with the sound that audio-frequence player device plays, promotes user Experience.
In the description of this specification, any process described otherwise above in flow chart or herein or method description can To be understood to, indicate to include the steps that one or more for realizing the executable instruction of specific logical function or process Module, segment or the part of code, and the range of the preferred embodiment of the application includes other realization, wherein can not By sequence shown or discussed, including according to related function by it is basic simultaneously in the way of or in the opposite order, to hold Row function, this should be understood by embodiments herein person of ordinary skill in the field.
Expression or logic and/or step described otherwise above herein in flow charts, for example, being considered use In the order list for the executable instruction for realizing logic function, may be embodied in any computer-readable medium, for Instruction execution system, device or equipment (such as computer based system, including the system of processor or other can be held from instruction The instruction fetch of row system, device or equipment and the system executed instruction) it uses, or combine these instruction execution systems, device or set It is standby and use.
Those skilled in the art are understood that realize all or part of step that above-described embodiment method carries It suddenly is that relevant hardware can be instructed to complete by program, the program can store in a kind of computer-readable storage medium In matter, which when being executed, includes the steps that one or a combination set of embodiment of the method.In addition, in each embodiment of the application In each functional unit can integrate in a processing module, be also possible to each unit and physically exist alone, can also two A or more than two units are integrated in a module.Above-mentioned integrated module both can take the form of hardware realization, can also It is realized in the form of using software function module.If the integrated module realized in the form of software function module and as Independent product when selling or using, also can store in a computer readable storage medium.

Claims (10)

1. a kind of transmission power adjustment method, which is characterized in that be applied to electronic equipment, which comprises
Detect the connection status between the electronic equipment and other equipment;
When passing through bluetooth connection there are audio-frequence player device and the electronic equipment, detect whether the electronic equipment has audio Data output;
When the electronic equipment has audio data output, increase the Bluetooth transmission power of the electronic equipment.
2. the method according to claim 1, wherein described when the electronic equipment has audio data output, Increase the Bluetooth transmission power of the electronic equipment, comprising:
When the electronic equipment has audio data output, the type for exporting the application program of the audio data is obtained;
Whether the type for judging the application program is preset kind;
If it is the preset kind, increase the Bluetooth transmission power of the electronic equipment.
3. according to the method described in claim 2, it is characterized in that, the preset kind includes the first preset kind and second Preset kind, it is described if it is the preset kind, increase the Bluetooth transmission power of the electronic equipment, comprising:
If the type of the application program is the first preset kind, increase the Bluetooth transmission power of the electronic equipment to first Transmission power;
If the type of the application program is the second preset kind, increase the Bluetooth transmission power of the electronic equipment to second Transmission power, wherein second transmission power is greater than first transmission power.
4. according to the method described in claim 3, it is characterized in that, first preset kind include: music type with And video playing type, second preset kind include: call type, sound-type and Video chat type.
5. the method according to claim 1, wherein described when the electronic equipment has audio data output, Increase the Bluetooth transmission power of the electronic equipment, comprising:
When the electronic equipment has audio data output, the operation information for exporting the application program of the audio data is obtained;
Increase the Bluetooth transmission power of the electronic equipment based on the operation information.
6. according to the method described in claim 5, it is characterized in that, described increase the electronic equipment based on the operation information Bluetooth transmission power, comprising:
When the application program is front stage operation, the Bluetooth transmission power of the electronic equipment is increased into third transmitting function Rate;
When the application program is running background, the Bluetooth transmission power of the electronic equipment is increased into the 4th transmitting function Rate, wherein the 4th transmission power is greater than the third transmission power.
7. method according to claim 1-6, which is characterized in that have audio data output in the electronic equipment When, after the Bluetooth transmission power for increasing the electronic equipment, the method also includes:
When the audio data source is lower than default network speed in the current network speed of network and the electronic equipment, by the electronics The Bluetooth transmission power of equipment increases to maximum Bluetooth transmission power.
8. a kind of transmit power adjustment means, which is characterized in that be applied to electronic equipment, described device includes: communication check mould Block, data detection module and power regulation module, wherein
The communication check module is used to detect the connection status between the electronic equipment and other equipment;
The data detection module is used to detect institute when passing through bluetooth connection there are audio-frequence player device and the electronic equipment State whether electronic equipment has audio data output;
The power regulation module is used for when the electronic equipment has audio data output, increases the bluetooth of the electronic equipment Transmission power.
9. a kind of electronic equipment, which is characterized in that including memory, processor and bluetooth module, the memory and indigo plant Tooth module couples are to the processor, the memory store instruction, when executed by the processor the place Reason device executes the method according to claim 1 to 7.
10. a kind of computer-readable storage medium for the program code that can be performed with processor, which is characterized in that the journey Sequence code makes the processor execute the method according to claim 1 to 7.
CN201810925250.4A 2018-08-14 2018-08-14 Transmission power adjusting method, device, electronic equipment and storage medium Active CN109005582B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810925250.4A CN109005582B (en) 2018-08-14 2018-08-14 Transmission power adjusting method, device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810925250.4A CN109005582B (en) 2018-08-14 2018-08-14 Transmission power adjusting method, device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN109005582A true CN109005582A (en) 2018-12-14
CN109005582B CN109005582B (en) 2021-07-13

Family

ID=64592139

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810925250.4A Active CN109005582B (en) 2018-08-14 2018-08-14 Transmission power adjusting method, device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN109005582B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111093105A (en) * 2019-12-17 2020-05-01 青岛海信宽带多媒体技术有限公司 Remote control method and device
WO2020192546A1 (en) * 2019-03-26 2020-10-01 华为技术有限公司 Bluetooth transmission power control method and terminal device
CN111913684A (en) * 2020-07-29 2020-11-10 深圳Tcl新技术有限公司 Method and device for setting sound playing mode and storage medium
CN112601207A (en) * 2020-12-11 2021-04-02 Oppo广东移动通信有限公司 Communication method, communication device, terminal device and storage medium
CN114451023A (en) * 2019-12-24 2022-05-06 谷歌有限责任公司 Selectively increasing the transmit power level of a wireless communication device directly to a maximum power level based on a detected activity pattern or received signal quality
WO2023071813A1 (en) * 2021-10-26 2023-05-04 深圳Tcl新技术有限公司 Data transmission method and device, and storage medium and terminal device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104054369A (en) * 2011-11-14 2014-09-17 T移动美国公司 Device-based architecture for self organizing networks
US20160095060A1 (en) * 2014-09-26 2016-03-31 Intel Corporation METHOD AND APPARATUS FOR POWER OPTIMIZED IoT COMMUNICATION
CN106105317A (en) * 2014-04-25 2016-11-09 英特尔Ip公司 For transferring method and the user equipment of initiation
CN106303933A (en) * 2016-09-30 2017-01-04 广东欧珀移动通信有限公司 The power regulating method of a kind of bluetooth and device
CN106792462A (en) * 2016-12-22 2017-05-31 深圳Tcl数字技术有限公司 Bluetooth audio frequency transmits method of adjustment and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104054369A (en) * 2011-11-14 2014-09-17 T移动美国公司 Device-based architecture for self organizing networks
CN106105317A (en) * 2014-04-25 2016-11-09 英特尔Ip公司 For transferring method and the user equipment of initiation
US20160095060A1 (en) * 2014-09-26 2016-03-31 Intel Corporation METHOD AND APPARATUS FOR POWER OPTIMIZED IoT COMMUNICATION
CN106303933A (en) * 2016-09-30 2017-01-04 广东欧珀移动通信有限公司 The power regulating method of a kind of bluetooth and device
CN106792462A (en) * 2016-12-22 2017-05-31 深圳Tcl数字技术有限公司 Bluetooth audio frequency transmits method of adjustment and device

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020192546A1 (en) * 2019-03-26 2020-10-01 华为技术有限公司 Bluetooth transmission power control method and terminal device
CN111757303A (en) * 2019-03-26 2020-10-09 华为技术有限公司 Control method of Bluetooth transmitting power and terminal equipment
EP3920565A4 (en) * 2019-03-26 2022-03-23 Huawei Technologies Co., Ltd. Bluetooth transmission power control method and terminal device
CN111093105A (en) * 2019-12-17 2020-05-01 青岛海信宽带多媒体技术有限公司 Remote control method and device
CN114451023A (en) * 2019-12-24 2022-05-06 谷歌有限责任公司 Selectively increasing the transmit power level of a wireless communication device directly to a maximum power level based on a detected activity pattern or received signal quality
CN111913684A (en) * 2020-07-29 2020-11-10 深圳Tcl新技术有限公司 Method and device for setting sound playing mode and storage medium
CN112601207A (en) * 2020-12-11 2021-04-02 Oppo广东移动通信有限公司 Communication method, communication device, terminal device and storage medium
CN112601207B (en) * 2020-12-11 2023-07-21 Oppo广东移动通信有限公司 Communication method, device, terminal equipment and storage medium
EP4262254A4 (en) * 2020-12-11 2024-03-06 Guangdong Oppo Mobile Telecommunications Corp Ltd Communication method and apparatus, terminal device, and storage medium
WO2023071813A1 (en) * 2021-10-26 2023-05-04 深圳Tcl新技术有限公司 Data transmission method and device, and storage medium and terminal device

Also Published As

Publication number Publication date
CN109005582B (en) 2021-07-13

Similar Documents

Publication Publication Date Title
CN109005582A (en) Transmission power adjustment method, device, electronic equipment and storage medium
CN109275129A (en) Communication processing method, device, electronic equipment and storage medium
KR102060776B1 (en) Electronic device operating in asscociated state with external audio device based on biometric information and method therefor
CN109284080B (en) Sound effect adjusting method and device, electronic equipment and storage medium
US9851705B2 (en) Terminal apparatus and method for controlling terminal apparatus
CN109151212A (en) Apparatus control method, device and electronic equipment
CN109151211B (en) Voice processing method and device and electronic equipment
CN109144642A (en) Display control method, device, electronic equipment and storage medium
CN107743178B (en) Message playing method and mobile terminal
WO2020207376A1 (en) Denoising method and electronic device
CN109271131B (en) Earphone control method and device, electronic equipment and storage medium
CN108536418A (en) A kind of method, apparatus and wireless sound box of the switching of wireless sound box play mode
CN109413555A (en) Audio-frequency inputting method, device, earphone and electronic equipment
CN106658256A (en) Earphone, terminal and terminal control method
CN109151861A (en) Encoding rate method of adjustment, device and electronic equipment
CN109859757A (en) A kind of speech ciphering equipment control method, device and terminal
US20220261217A1 (en) Audio data processing method, server, and storage medium
CN108710458A (en) A kind of split screen control method and terminal device
CN108683980B (en) Audio signal transmission method and mobile terminal
CN109151783B (en) Data transmission method and device, electronic equipment and storage medium
CN107911777B (en) Processing method and device for return-to-ear function and mobile terminal
CN104715769B (en) Method and system for controlling wireless music through phototonus
CN111770403A (en) Wireless earphone control method, wireless earphone and control system thereof
CN109151669A (en) Headset control method, device, electronic equipment and storage medium
CN112543247A (en) Intelligent bracelet and control method thereof

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