WO2019076289A1 - Procédé de réduction de la consommation d'énergie d'un dispositif électronique, et dispositif électronique - Google Patents
Procédé de réduction de la consommation d'énergie d'un dispositif électronique, et dispositif électronique Download PDFInfo
- Publication number
- WO2019076289A1 WO2019076289A1 PCT/CN2018/110398 CN2018110398W WO2019076289A1 WO 2019076289 A1 WO2019076289 A1 WO 2019076289A1 CN 2018110398 W CN2018110398 W CN 2018110398W WO 2019076289 A1 WO2019076289 A1 WO 2019076289A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- electronic device
- volume
- audio
- level
- volume level
- 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.)
- Ceased
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W52/00—Power management, e.g. Transmission Power Control [TPC] or power classes
- H04W52/02—Power saving arrangements
- H04W52/0209—Power saving arrangements in terminal devices
- H04W52/0261—Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level
- H04W52/0264—Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level by selectively disabling software applications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72403—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
- H04M1/72442—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality for playing music files
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72448—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
- H04M1/72463—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions to restrict the functionality of the device
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/725—Cordless telephones
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W52/00—Power management, e.g. Transmission Power Control [TPC] or power classes
- H04W52/02—Power saving arrangements
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W52/00—Power management, e.g. Transmission Power Control [TPC] or power classes
- H04W52/02—Power saving arrangements
- H04W52/0209—Power saving arrangements in terminal devices
- H04W52/0251—Power saving arrangements in terminal devices using monitoring of local events, e.g. events related to user activity
- H04W52/0254—Power saving arrangements in terminal devices using monitoring of local events, e.g. events related to user activity detecting a user operation or a tactile contact or a motion of the device
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D30/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Definitions
- the present invention relates to the field of audio power consumption, and more particularly to a method and an electronic device for reducing power consumption of an electronic device.
- sound is one of the most important basic functions, and one of the most frequently used functions of the user, including voice, music, recording, ringing, frequency modulation (FM), games and video.
- FM frequency modulation
- the sound needs to be transmitted to the user's ear through the electronic device, requiring a series of software process processing and hardware device enablement.
- the power consumption of the mobile phone is relatively high during the sound playing in different scenes.
- the current or limit of the audio device (for example, smartpa, codec, headphone hifi, etc.) is controlled mainly by reducing the volume of the sound. Press to reduce power consumption. But the control of the process is not very concerned.
- the volume control of the audio scene and the control of the audio channel are two separate processes.
- the volume level of other sounds can be adjusted to the 0 level by adjusting the volume key, that is, the silent mode.
- the volume control is implemented on the framework side
- the control of the audio path is implemented on the drive side
- the drive side cannot obtain the volume level on the frame side.
- the audio system of the electronic device still powers up the audio device, and the audio data is actually 0, and the audio device actually processes the audio.
- the data that is, the audio device does not need to work at this time, still meets the requirements; the audio device at this time will cause a waste of power consumption.
- Embodiments of the present invention provide a method for reducing power consumption of an electronic device, and an electronic device, wherein the technical problem to be solved is that, in an audio system of the electronic device, when the user sets the volume level of the sound other than the call to At 0 level, audio device operation will waste power.
- the present invention provides a method for reducing power consumption of an electronic device, the method for reducing power consumption of the electronic device, comprising: playing an audio data stream on the electronic device, the electronic device receiving a first operation instruction input by the user, The first operation instruction is for adjusting the volume level of the electronic device; when the volume level is adjusted to the 0 level or the volume is 0, the audio device of the electronic device is turned off, so that the electronic device stops playing the audio data stream.
- the method for reducing the power consumption of the electronic device provided in this embodiment, when the volume level is 0 level or the volume is 0, the playback of the audio data stream by the electronic device is turned off or not turned on, wherein the volume level is adjusted by the user, which is reduced. Power consumption.
- the volume needs to be calculated according to the adjusted volume level.
- the audio device of the electronic device is turned off, so that the electronic device stops playing. Audio data stream.
- the volume calculation includes: determining a volume value corresponding to the volume level according to the volume level; multiplying the volume value by the audio data stream to obtain a volume.
- the electronic device starts playing the audio data stream, the electronic device receives the second operation instruction input by the user, and the second operation instruction is used to enable the electronic device to play the audio data; if the volume level of the electronic device is Level 0, the audio device of the electronic device is not turned on.
- the electronic device starts playing the audio data stream, the electronic device receives the second operation instruction input by the user, and the second operation instruction is used to enable the electronic device to play the audio data; if the volume of the electronic device is 0 at this time , the audio device of the electronic device is not turned on.
- an embodiment of the present invention provides an electronic device, where the electronic device includes an input module, a processing module, and a computing module. Playing an audio data stream on the electronic device, and inputting a module, configured to receive a first operation instruction input by the user, where the first operation instruction is used to adjust a volume level of the electronic device; when the volume level is adjusted to a level of 0 or the volume is 0, the processing is performed.
- the module turns off the audio device of the electronic device such that the electronic device stops playing the audio data stream.
- the electronic device provided in this embodiment adjusts the volume level according to the first operation instruction, and when the volume level is 0 level or the volume is 0, the playback of the audio data stream by the electronic device is turned off or not turned on. Reduced power consumption.
- the calculation module is configured to calculate the volume according to the volume level; in the process of adjusting the volume level, if the volume calculated according to the adjusted volume level is 0, the audio device of the electronic device is turned off, so that the electronic device Stop playing the audio stream.
- the calculating module is specifically configured to: determine a volume value corresponding to the volume level according to the volume level; multiply the volume value by the audio data stream to obtain a volume.
- the input unit is further configured to: start playing an audio data stream in the electronic device, the input module is further configured to receive a second operation instruction input by the user, and the second operation instruction is used to enable the electronic device to play the audio data; If the volume level of the electronic device is 0 level at this time, the processing module does not turn on the audio device of the electronic device.
- the input unit is further configured to: start playing an audio data stream in the electronic device, the input module is further configured to receive a second operation instruction input by the user, and the second operation instruction is used to enable the electronic device to play the audio data; If the volume of the electronic device is 0 at this time, the processing module does not turn on the audio device of the electronic device.
- the method and the electronic device for reducing the power consumption of the electronic device provided by the embodiment of the present invention, when the user adjusts the volume level to 0 level, during the audio data stream playing, the audio is turned off.
- the data stream stops playing the audio data stream.
- the audio device is turned off to reduce power consumption.
- FIG. 1 is a schematic structural diagram of an audio system in the prior art
- FIG. 2 is a schematic structural diagram of an audio system according to an embodiment of the present invention.
- FIG. 3 is a flowchart of a method for reducing power consumption of an electronic device according to an embodiment of the present invention
- FIG. 4 is a flowchart of a work of transmitting a volume level to a driving side of a framework side according to an embodiment of the present invention
- FIG. 5 is a flowchart of a working side of a driving side according to an embodiment of the present invention.
- FIGS. 6(a)-6(b) are schematic diagrams of interfaces of a terminal according to an embodiment of the present invention.
- FIG. 7 is a structural block diagram of an electronic device according to an embodiment of the present invention.
- FIG. 8 is a structural block diagram of another electronic device according to an embodiment of the present invention.
- FIG. 2 is a schematic structural diagram of an audio system according to an embodiment of the present invention.
- the audio system may include a framework side and a drive side.
- the framework side may include an audio policy management module (audiopolicymanager), an AudioFlinger, and a hardware abstraction layer (HAL).
- audiopolicymanager audio policy management module
- AudioFlinger audioFlinger
- HAL hardware abstraction layer
- the audio policy management module transmits the volume to the HAL layer through the AudioFlinger, and then to the driving side, and the HAL layer turns off or turns on the audio device on the driving side through logic control.
- An electronic device may be a device that provides data connectivity to a user.
- the operating system (OS) used by the electronic device may include, but is not limited to, an operating system such as Android Android or IOS.
- the electronic device can be a mobile electronic device, such as a mobile phone (or "cellular" phone) and a computer with a mobile electronic device, for example, a portable, pocket, handheld, computer built-in or vehicle-mounted mobile device. Exchange language and/or data with the wireless access network. For example, Personal Communication Service (PCS) phones, cordless phones, Session Initiation Protocol (SIP) phones, Wireless Local Loop (WLL) stations, Personal Digital Assistants (Personal Digital Assistant, PDA) and other equipment.
- the electronic device may also be referred to as a system, a Subscriber Unit, a Subscriber Station, a Mobile Station, a Mobile, a Remote Station, an Access Point, Remote Terminal, Access Terminal, User Terminal, User Agent, User Device, or User Equipment.
- the method for reducing power consumption of an electronic device provided by the embodiment of the present invention, by setting the volume level of the electronic device, if the volume level set by the user is 0 level, turning off the audio device of the electronic device. When the volume level is 0, turn off the audio device, which reduces power consumption.
- FIG. 3 is a flowchart of a method for reducing power consumption of an electronic device according to an embodiment of the present invention. As shown in FIG. 3, the method for reducing power consumption of an electronic device may include the following steps:
- Step S301 Receive a first operation instruction input by the user, where the first operation instruction is used to adjust a volume level of the electronic device.
- the volume level of the electronic device can be adjusted by the user according to his own use requirements, and the user can adjust the volume level by adjusting the volume button on the electronic device or through the sound interface.
- the default adjustment volume button is to adjust the volume level corresponding to the ringtone.
- the volume level corresponding to the A-type application is adjusted through the volume key; if the electronic device has the B-type application enabled, and the A-type application is not Termination (A type is different from B type).
- the volume adjustment button is used to adjust the volume level corresponding to the B type application. Only after the application of the B type is terminated, if the volume key is adjusted again, then Adjust the volume level corresponding to the application of type A.
- the sound interface can adjust the volume level corresponding to all application types. As shown in Figure 6(a) and Figure 6(b).
- the adjusted volume level can be transmitted to the user's ear through the speaker of the framework-HAL-Kernel-Audiodsp-Codec-Smartpa-electronic device.
- the volume level corresponding to the application of the media, the ringtone, the alarm clock, and the like can be adjusted to the 0 level, that is, the silent mode. As shown in Figure 6(b).
- Step S302 When the volume level is 0 level or the volume is 0, the audio device of the electronic device is turned off.
- the audio device of the electronic device is already in working state, that is, the electronic device is playing audio, and if the volume level is 0 level or the volume is 0, the audio of the electronic device is turned off. Device. This will reduce the power consumption.
- the audio device of the electronic device is already in a working state, for example, the application of the media type has been enabled, that is, the audio device corresponding to the application of the media type is in a working state, if the media type is When the corresponding volume level of the application is 0 level or the volume is 0, the audio device corresponding to the application of the media type is turned off. That is to say, when the volume level corresponding to a certain type of application is adjusted from non-zero to 0, the audio device corresponding to the application of the type is turned off. This will reduce the power consumption.
- the electronic device may be provided with a device such as a speaker, an earpiece, a microphone, etc.
- the speaker may be disposed at the bottom of the electronic device or the outer casing of the electronic device
- the microphone may be disposed at the bottom or the top of the electronic device.
- the electronic device can be transmitted to the user's ear according to the position of the above device on the electronic device, and each type of application needs to be transmitted to the user's ear by using the above-mentioned device to establish a correspondence between a certain type of application and a device at different positions on the electronic device.
- the volume level corresponding to multiple types of applications corresponding to the device at a certain location is 0 level or volume.
- the device at that location is turned off. Assuming that the speaker at the bottom only corresponds to the audio type application, then the volume level corresponding to the application of the media type is adjusted to 0 level or the volume is 0, then the speaker at the bottom of the electronic device is turned off.
- the audio device of the electronic device needs to be turned on to play the original audio data stream.
- the method for reducing power consumption of the electronic device further includes:
- Step S303 Calculate the volume according to the volume level.
- the volume value corresponding to the volume level is determined according to the volume level; the volume value is multiplied by the data stream of the initial audio data stream to obtain the volume.
- the auditaudiicymanager module of the framework side calculates a curve according to a fixed volume of the operating system, and obtains a volume value corresponding to each volume level, and the volume value and the audio data stream are The data streams are multiplied to get the volume.
- step S302 is executed to turn off the audio device of the electronic device.
- the audio device of the electronic device is already in operation, that is, the audio device of the electronic device performs audio on the audio data stream, and after the user adjusts the volume level, if the volume is 0, Then turn off the audio device of the electronic device. This will reduce the power consumption.
- the volume needs to be recalculated according to the re-adjusted volume level. For example, if the volume level is adjusted from 0 level to non-zero level, so that the volume changes from 0 to non-zero, the audio device pair of the electronic device is re-opened. The audio stream is played.
- the method for reducing power consumption of the electronic device further includes: step S304: the electronic device receives a second operation instruction, the second operation instruction is used to enable the audio device of the electronic device;
- Step S305 If the volume level is 0 level, the audio device of the electronic device is not turned on.
- the audio data stream in the audio device is clicked for playing. If the volume level is 0 level at this time, the audio device is not turned on to play the audio data stream. If the volume level is not 0 level at this time, the audio device is turned on to play the audio data stream.
- the method for reducing power consumption of the electronic device further includes: step S304: receiving a second operation instruction, the second operation instruction is used to enable the electronic device to play the audio data stream; if the volume is 0, the execution is performed.
- step S305 the audio device of the electronic device is not turned on.
- the audio data stream in the audio device is clicked for playing. If the volume is 0 at this time, the audio device is not turned on to play the audio data stream. If the volume is not 0 at this time, the audio device is turned on to play the audio data stream.
- the volume level set by the user in step S301 can be obtained by the audiopoliicymanager module on the framework side.
- the volume level can be passed through the audiopolicyyservice module of the framework side by the setparameter interface of the operating system.
- the audioflinger module on the framework side is passed to the driver side audio hardware abstraction layer module audio_hw.
- the volume level on the framework side is transmitted to the drive side.
- Equivalent replacement can be performed as long as the implementation of the volume level of the framework side is transmitted to the driving side, and details are not described herein again.
- the volume level set by the user in step 301 can be obtained and calculated by the audiopoliicymanager module on the framework side, and the calculation is based on the volume level, that is, the volume calculated in step S303, after the calculation, the operating system can be called.
- the setparameter interface passes the volume through the audiopolicy service module on the framework side - the audio system - the audioflinger module on the framework side to the audio - abstraction layer module audio_hw on the driver side.
- the volume on the framework side is transmitted to the drive side. Equivalent replacement can be performed as long as the implementation of the volume of the framework side is transmitted to the driving side, and details are not described herein again.
- the audio device is playing a song to sing the motherland, and the process of driving the side to play the singing of the motherland can be as follows:
- the user adjusts the user audio level through the volume key on the electronic device.
- the volume level is transmitted to the audio HAL layer through the audioflinger module, and the HAL layer controls the codec and the audio device amplifier through logic control. To achieve the purpose of saving power. If the user adjusts the volume level to a non-zero level again, re-open the codec and audio device amplifier to play the singing country.
- the command to turn off the audio device is written to the kernel node /dev/snd/control0, and after receiving the command, the kernel calls the driving logic corresponding to the device to be controlled by the command.
- the device is driven to turn off the audio device through a bus such as I2C, a resource such as GPIO to control the register of the audio device.
- the command to open the audio device is written to the kernel node /dev/snd/control0.
- the kernel will call the device to be controlled by the command (smartpa, hifi, etc.).
- the device drives through the bus such as I2C, GPIO and other resources to control the registers of the audio device to turn on the audio device.
- the audio device starts to play the singing of the motherland, and the process of driving the side to play the singing of the motherland can be as follows:
- the user adjusts the user audio level through the volume button on the electronic device. If the volume level of the electronic device is 0 level, the volume level is transmitted to the audio HAL layer through the audioflinger module, and the HAL layer is controlled by logic to turn off the codec and Audio device power amplifier (smartpa, hifi, etc.), to achieve the purpose of saving power.
- the codec and Audio device power amplifier asmartpa, hifi, etc.
- the command to turn off the audio device is written to the kernel node /dev/snd/control0, and after the kernel receives the command, the device to be controlled by the command is called (smartpa, hifi)
- the corresponding drive logic is driven by the device to turn off the audio device through a bus such as I2C, GPIO and other resources to control the registers of the audio device.
- the audio device is playing a song to sing the motherland, and the process of driving the side to play the singing of the motherland can be as follows:
- the user adjusts the user volume level so that the volume is zero.
- the audiopolicymanager module obtains the volume level and calculates the volume, and transmits the volume to the audio HAL layer through the audioflinger module.
- the HAL layer controls the logic and turns off the codec and audio device amplifiers to save power. If the user adjusts the volume level again, the volume changes from 0 to non-zero, and then re-enable the codec and audio device amplifier to play the singing country.
- the command to turn off the audio device is written to the kernel node /dev/snd/control0, and after receiving the command, the kernel invokes the driving logic corresponding to the device to be controlled by the command,
- the device driver turns off the audio device by controlling the audio device's registers through resources such as I2C bus and GPIO.
- the command to open the audio device is written to the kernel node /dev/snd/control0.
- the kernel will call the device (smartpa, hifi, etc.) to be controlled by the command.
- Drive logic driven by the device through the I2C bus, GPIO and other resources to control the audio device registers to open the audio device.
- the audio device starts to play the singing of the motherland, and the process of driving the side to play the singing of the motherland can be as follows:
- the user adjusts the user volume level so that the volume is zero.
- the audiopolicymanager module obtains the volume level and calculates the volume, and transmits the volume to the audio HAL layer through the audioflinger module.
- the HAL layer controls the logic and turns off the codec and audio device amplifiers to save power. If the user adjusts the volume level again, the volume changes from 0 to non-zero, and then re-enable the codec and audio device amplifier to play the singing country.
- the command to turn off the audio device is written to the kernel node /dev/snd/control0, and after receiving the command, the kernel invokes the driving logic corresponding to the device to be controlled by the command,
- the device driver turns off the audio device by controlling the audio device's registers through resources such as I2C bus and GPIO.
- the command to open the audio device is written to the kernel node /dev/snd/control0.
- the kernel will call the device (smartpa, hifi, etc.) to be controlled by the command.
- Drive logic driven by the device through the I2C bus, GPIO and other resources to control the audio device registers to open the audio device.
- the electronic device has different types of sounds, such as ringtones, media, alarms, and calls. Different types have separate volumes, which can be adjusted separately. There are many kinds of audio devices (smartpa, hifi, etc.), but for example, if you need to play with a speaker, you need to pass smartpa, whether it is ringtone or music.
- the software recognizes that the ringer volume is 0, so that smartpa can be turned off to reduce power consumption.
- the music starts to play.
- the software will judge that the speaker needs to play the sound at this time, and the smartpa will be re-opened.
- the audio power amplifier is fully called an audio power amplifier, and is a power amplifier device for pushing the sound of the speaker of the electronic device to reproduce the sound, which is used in all electronic products that emit sound.
- the method for reducing the power consumption of the electronic device provided in this embodiment, when the volume level is 0 level or the volume is 0, the playback of the audio data stream by the electronic device is turned off or not turned on, wherein the volume level is adjusted by the user, which is reduced. Power consumption.
- FIG. 7 is a schematic structural diagram of an electronic device according to an embodiment of the present invention. As shown in FIG. 7, the electronic device can include an input module 710, a processing module 720, and a computing module 730.
- the input module 710 is configured to receive a first operation instruction input by the user, where the first operation instruction is used to adjust a volume level of the electronic device.
- the volume level of the electronic device can be adjusted by the user according to his own use requirements, and the user can adjust the volume level by adjusting the volume button on the electronic device or through the sound interface.
- the adjustment of the volume level of the electronic device by the user is the same as that described in the above step S301, and therefore will not be described again.
- the adjusted volume level can be transmitted to the user's ear through the speaker of the framework-HAL-Kernel-Audiodsp-Codec-Smartpa-electronic device.
- the volume levels of the media, ringtones, alarms, and the like can be adjusted by the user to the 0 level, that is, the silent mode. As shown in Figure 6(b).
- the processing module 720 is configured to turn off the audio device of the electronic device when the volume level is 0 level or when the volume level is 0.
- the processing module 720 is specifically configured to: before the user adjusts the volume level of the user, the audio device of the electronic device is already in working state, that is, the electronic device is playing audio, and if the volume level is 0 level or the volume is 0, the data is turned off. Audio device for electronic devices. This will reduce the power consumption.
- the processing module 720 is configured to turn off the audio device of the electronic device when the volume level is 0 or the volume is 0, which is the same as described in the above step S302, and therefore will not be described again.
- the audio device of the electronic device needs to be turned on to play the original audio data stream.
- the electronic device further includes a computing module 730.
- the calculation module 730 is configured to calculate the volume according to the volume level.
- the volume value corresponding to the volume level is determined according to the volume level; the volume value is multiplied by the data stream of the initial audio data stream to obtain the volume.
- the calculating module 730 is specifically configured to: assume that the volume level of the electronic device ranges from 0 to 15, and the auditiomicymanager module of the framework side calculates a volume according to a fixed volume of the operating system, and obtains a volume value corresponding to each volume level, and the volume value is The data stream of the audio file is multiplied to get the volume.
- the processing module 720 is configured to turn off the audio device of the electronic device if the volume is 0.
- the audio device of the electronic device is already in operation, that is, the audio device of the electronic device performs audio on the audio data stream, and after the user adjusts the volume level, if the volume is 0, Then turn off the audio device of the electronic device. This will reduce the power consumption.
- the volume needs to be recalculated according to the re-adjusted volume level. For example, if the volume level is adjusted from 0 level to non-zero level, so that the volume changes from 0 to non-zero, the audio device pair of the electronic device is re-opened. The audio stream is played.
- the processing module 720 is further configured to: when the electronic device receives the second operation instruction, the second operation instruction is used to turn on the audio device of the electronic device; if the volume level is 0, the electronic device is not turned on. The audio device of the device.
- the audio data stream in the audio device is clicked for playing. If the volume level is 0 level at this time, the audio device is not turned on to play the audio data stream. If the volume level is not 0 level at this time, the audio device is turned on to play the audio data stream.
- the processing module 720 is further configured to: when the second operation instruction is received, the second operation instruction is used to enable the electronic device to play the audio data stream, and if the volume is 0, the electronic device is not turned on. Audio device.
- the audio data stream in the audio device is clicked for playing. If the volume is 0 at this time, the audio device is not turned on to play the audio data stream. If the volume is not 0 at this time, the audio device is turned on to play the audio data stream.
- the volume level in the input module 710 can be obtained by the audiopoliicymanager module on the framework side.
- the volume level can be passed through the auditioicyservice module of the framework side-audio system by calling the setparameter interface of the operating system.
- the audioflinger module on the framework side is passed to the driver side audio hardware abstraction layer module audio_hw.
- the volume level on the framework side is transmitted to the drive side.
- Equivalent replacement can be performed as long as the implementation of the volume level of the framework side is transmitted to the driving side, and details are not described herein again.
- the volume level in the input module 710 can be obtained and calculated by the audiopoliicymanager module on the framework side, the calculation is based on the volume level, and the volume calculated by the calculation module 730 can be calculated by calling the setparameter interface of the operating system.
- the volume is transmitted to the driver side audio hardware abstraction layer module audio_hw through the audiopolicyyservice module of the framework side - the audio system - the audioflinger module on the framework side.
- the volume on the framework side is transmitted to the drive side. Equivalent replacement can be performed as long as the implementation of the volume of the framework side is transmitted to the driving side, and details are not described herein again.
- the audio device is playing a song to sing the motherland, and the process of driving the side to play the singing of the motherland can be as follows:
- the user adjusts the user audio level through the volume key on the electronic device.
- the volume level is transmitted to the audio HAL layer through the audioflinger module, and the HAL layer controls the codec and the audio device amplifier through logic control. To achieve the purpose of saving power. If the user adjusts the volume level to a non-zero level again, re-open the codec and audio device amplifier to play the singing country.
- the command to turn off the audio device is written to the kernel node /dev/snd/control0, and after receiving the command, the kernel calls the driving logic corresponding to the device to be controlled by the command.
- the device is driven to turn off the audio device through a bus such as I2C, a resource such as GPIO to control the register of the audio device.
- the command to open the audio device is written to the kernel node /dev/snd/control0.
- the kernel will call the device to be controlled by the command (smartpa, hifi, etc.).
- the device drives through the bus such as I2C, GPIO and other resources to control the registers of the audio device to turn on the audio device.
- the audio device starts to play the singing of the motherland, and the process of driving the side to play the singing of the motherland can be as follows:
- the user adjusts the user audio level through the volume button on the electronic device. If the volume level of the electronic device is 0 level, the volume level is transmitted to the audio HAL layer through the audioflinger module, and the HAL layer is controlled by logic to turn off the codec and Audio device power amplifier (smartpa, hifi, etc.), to achieve the purpose of saving power.
- the codec and Audio device power amplifier asmartpa, hifi, etc.
- the command to turn off the audio device is written to the kernel node /dev/snd/control0, and after the kernel receives the command, the device to be controlled by the command is called (smartpa, hifi)
- the corresponding drive logic is driven by the device to turn off the audio device through a bus such as I2C, GPIO and other resources to control the registers of the audio device.
- the audio device is playing a song to sing the motherland, and the process of driving the side to play the singing of the motherland can be as follows:
- the user adjusts the user volume level so that the volume is zero.
- the audiopolicymanager module obtains the volume level and calculates the volume, and transmits the volume to the audio HAL layer through the audioflinger module.
- the HAL layer controls the logic and turns off the codec and audio device amplifiers to save power. If the user adjusts the volume level again, the volume changes from 0 to non-zero, and then re-enable the codec and audio device amplifier to play the singing country.
- the command to turn off the audio device is written to the kernel node /dev/snd/control0, and after receiving the command, the kernel invokes the driving logic corresponding to the device to be controlled by the command,
- the device driver turns off the audio device by controlling the audio device's registers through resources such as I2C bus and GPIO.
- the command to open the audio device is written to the kernel node /dev/snd/control0.
- the kernel will call the device (smartpa, hifi, etc.) to be controlled by the command.
- Drive logic driven by the device through the I2C bus, GPIO and other resources to control the audio device registers to open the audio device.
- the audio device starts to play the singing of the motherland, and the process of driving the side to play the singing of the motherland can be as follows:
- the user adjusts the user volume level so that the volume is zero.
- the audiopolicymanager module obtains the volume level and calculates the volume, and transmits the volume to the audio HAL layer through the audioflinger module.
- the HAL layer controls the logic and turns off the codec and audio device amplifiers to save power. If the user adjusts the volume level again, the volume changes from 0 to non-zero, and then re-enable the codec and audio device amplifier to play the singing country.
- the command to turn off the audio device is written to the kernel node /dev/snd/control0, and after receiving the command, the kernel invokes the driving logic corresponding to the device to be controlled by the command,
- the device driver turns off the audio device by controlling the audio device's registers through resources such as I2C bus and GPIO.
- the command to open the audio device is written to the kernel node /dev/snd/control0.
- the kernel will call the device (smartpa, hifi, etc.) to be controlled by the command.
- Drive logic driven by the device through the I2C bus, GPIO and other resources to control the audio device registers to open the audio device.
- the electronic device provided in this embodiment adjusts the volume level according to the first operation instruction, and when the volume level is 0 level or the volume is 0, the playback of the audio data stream by the electronic device is turned off or not turned on. Reduced power consumption.
- FIG. 8 is a schematic structural diagram of another electronic device according to an embodiment of the present invention.
- the electronic device includes: a radio frequency (RF) circuit 810, a memory 820, an input unit 830, a display unit 840, an audio circuit 850, a processor 860, and a wireless local area network (WLAN).
- RF radio frequency
- Module 870, power supply 880, and Bluetooth module 890 and the like It will be understood by those skilled in the art that the electronic device structure illustrated in FIG. 8 does not constitute a limitation on the electronic device, and may include more or less components than those illustrated, or a combination of certain components, or different component arrangements.
- the RF circuit 810 can be used to send and receive information, for example, to connect to a mobile broadband.
- RF circuit 810 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like.
- LNA Low Noise Amplifier
- RF circuitry 810 can also forward mobile bandwidth traffic to WLAN module 870 to forward mobile bandwidth traffic to other electronic devices via WLAN module 870.
- wireless communication can adopt any communication standard or protocol, including but not limited to Global System of Mobile communication (GSM), General Packet Radio Service (GPRS), and code division multiple access (Code).
- CDMA Division Multiple Access
- WCDMA Wideband Code Division Multiple Access
- LTE Long Term Evolution
- E-mail Short Messaging Service
- the memory 820 can be used to store program instructions, and the processor 860 causes the electronic device to perform the method of reducing power consumption of the electronic device as shown in FIG. 3 by running the program instructions stored in the memory 820.
- the memory 820 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system and an application program or the like required to implement the above-described method of reducing power consumption of the electronic device.
- the storage data area may store list information of the electronic device and data generated by the electronic device when the above-described application authorization method is executed.
- the memory 820 may include a volatile memory such as a random-access memory (RAM); the memory 820 may also include a non-volatile memory, for example, only Read-only memory (ROM), flash memory, hard disk drive (HDD) or solid-state drive (SSD).
- RAM random-access memory
- ROM Read-only memory
- HDD hard disk drive
- SSD solid-state drive
- the memory 820 may also include a combination of the above types of memories.
- the input unit 830 can be configured to receive an operation instruction input by the user, including turning on a WLAN hotspot instruction, selecting an instruction of an electronic device sharing the WLAN hotspot, and the like.
- the input unit 830 may include a touch panel 831 and other input devices 832.
- the touch panel 831 also referred to as a touch screen, can collect touch operations on or near the user (such as the user using a finger, a stylus, or the like on the touch panel 831 or near the touch panel 831. Operation), and drive the corresponding connecting device according to a preset program.
- the touch panel 831 can include two parts: a touch detection device and a touch controller.
- the touch detection device detects the touch orientation of the user, and detects a signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts the touch information into contact coordinates, and sends the touch information.
- the processor 860 is provided and can receive commands from the processor 860 and execute them.
- the input unit 830 can implement the touch panel 831 by using various types such as resistive, capacitive, infrared, and surface acoustic waves.
- the input unit 830 may also include other input devices 832.
- other input devices 832 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control buttons, switch buttons, etc.), trackballs, mice, joysticks, and the like.
- the display unit 840 can be used to display information input by the user or information provided to the user as well as various menus of the electronic device.
- the display unit 840 can include a display screen 841.
- the display screen 841 can be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), or the like.
- the touch panel 831 can cover the display screen 841. When the touch panel 831 detects a touch operation thereon or nearby, the touch panel 831 transmits to the processor 860 to determine the type of the touch event, and then the processor 860 according to the touch event. The type provides a corresponding visual output on display 841.
- the touch panel 831 and the display screen 841 function as two separate components to implement input and input functions of the electronic device, in some embodiments, the touch panel 831 can be integrated with the display screen 841. And realize the input and output functions of electronic devices.
- An audio circuit 850, a speaker 851, and a microphone 852 can provide an audio interface between the user and the electronic device 800.
- the audio circuit 850 can transmit the converted electrical data of the received audio data to the speaker 851 for conversion to the sound signal output by the speaker 851; on the other hand, the microphone 852 converts the collected sound signal into an electrical signal by the audio circuit 850. After receiving, it is converted into audio data, and then processed by the audio data output processor 860, sent to an electronic device such as an electronic device via the RF circuit 810, or outputted to the memory 820 for further processing.
- the processor 860 is a control center of the electronic device that connects various parts of the entire electronic device using various interfaces and lines, by running or executing a volume level or volume stored in the memory 820, and calling data stored in the memory 820, such as The method of reducing the power consumption of an electronic device shown in FIG.
- processor 860 can include one or more processing units.
- the processor 860 can integrate an application processor and a modem processor, wherein the application processor mainly processes an operating system, a user interface, an application, etc., and the modem processor mainly processes wireless communication. It will be appreciated that the above described modem processor may also not be integrated into the processor 860.
- the WLAN module 880 can be used to assist users in sending and receiving emails, browsing web pages, and accessing streaming media, etc., which provides users with wireless broadband WLAN Internet access.
- the WLAN is a short-range wireless transmission technology, and the electronic device can access the WLAN hotspot through the WLAN module 870.
- the WLAN hotspot can also be enabled by the WLAN module 870 to forward the mobile bandwidth service to other electronic devices.
- the WLAN module 870 can also perform Wi-Fi broadcasts and scans to enable wireless communication with other nearby electronic devices.
- the electronic device also includes a power source 880 (such as a battery) that supplies power to the various components.
- a power source 880 such as a battery
- the power source can be logically coupled to the processor 860 through a power management system to manage functions such as charging, discharging, and power consumption through the power management system.
- the Bluetooth module 890 can be a Bluetooth Low Energy (BLE) device, a traditional Bluetooth device, or a dual-mode Bluetooth device supporting traditional Bluetooth and BLE.
- BLE Bluetooth Low Energy
- the Bluetooth module 890 establishes a BLE or classic Bluetooth connection with the Bluetooth module of other electronic devices, and the Bluetooth module 890 can also perform BR or BLE broadcast and scanning to enable wireless communication with other surrounding electronic devices.
- the electronic device may further include a camera, a speaker, etc., and will not be described herein.
- RF circuit 810, Bluetooth module 890, and WLAN module 870 may be collectively referred to as a wireless communication interface.
- the electronic device includes a processor 860, a memory 820, and a wireless communication interface.
- the memory 820 is configured to store program instructions
- the input unit 830 receives a first operation instruction input by the user, where the first operation instruction is used to adjust a volume level of the electronic device;
- the processor 860 is configured to execute the program according to the program instructions stored in the memory 820. Action: If the volume level is 0 or the volume is 0, turn off the audio device of the electronic device.
- the input unit 830 is further configured to receive a second operation instruction input by the user, the second operation instruction is used to enable the electronic device to play the audio data stream, and the processor 860 is configured to use the program instruction stored in the memory 820. Do the following: If the volume level is 0 or the volume is 0, the audio device of the electronic device is not turned on.
- the electronic device provided in this embodiment adjusts the volume level according to the first operation instruction, and when the volume level is 0 level or the volume is 0, the playback of the audio data stream by the electronic device is turned off or not turned on. Reduced power consumption.
- the steps of a method or algorithm described in connection with the embodiments disclosed herein can be implemented in hardware, a software module executed by a processor, or a combination of both.
- the software module can be placed in random access memory (RAM), memory, read only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, removable disk, CD-ROM, or technical field. Any other form of storage medium known.
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Human Computer Interaction (AREA)
- Multimedia (AREA)
- Circuit For Audible Band Transducer (AREA)
- Telephone Function (AREA)
Abstract
Des modes de réalisation de la présente invention concernent un procédé de réduction de la consommation d'énergie d'un dispositif électronique, et un dispositif électronique. Le procédé de réduction de la consommation d'énergie d'un dispositif électronique consiste à : régler le niveau de volume d'un dispositif électronique; et si le niveau de volume est égal à 0, éteindre une unité audio du dispositif électronique. Dans les modes de réalisation de la présente invention, une unité audio est éteinte lorsque le niveau de volume est égal à 0, ce qui permet de réduire la consommation d'énergie.
Applications Claiming Priority (4)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201710970314.8 | 2017-10-16 | ||
| CN201710970314 | 2017-10-16 | ||
| CN201810224989.2A CN109673042A (zh) | 2017-10-16 | 2018-03-19 | 降低电子设备的功耗的方法以及电子设备 |
| CN201810224989.2 | 2018-03-19 |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2019076289A1 true WO2019076289A1 (fr) | 2019-04-25 |
Family
ID=66142689
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2018/110398 Ceased WO2019076289A1 (fr) | 2017-10-16 | 2018-10-16 | Procédé de réduction de la consommation d'énergie d'un dispositif électronique, et dispositif électronique |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN109673042A (fr) |
| WO (1) | WO2019076289A1 (fr) |
Families Citing this family (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN110989816B (zh) * | 2019-09-24 | 2022-01-14 | 华为技术有限公司 | 应用的处理方法、装置以及存储介质 |
| CN111309282B (zh) * | 2020-02-11 | 2023-08-22 | RealMe重庆移动通信有限公司 | 音频设备功耗控制方法、装置、音频设备及存储介质 |
| CN115437597A (zh) * | 2021-06-02 | 2022-12-06 | 深圳市万普拉斯科技有限公司 | 音频播放方法、装置及终端设备 |
| CN113971014A (zh) * | 2021-10-28 | 2022-01-25 | 歌尔光学科技有限公司 | 音视频设备的静音方法、装置、音视频设备及存储介质 |
| CN116668906A (zh) * | 2023-04-21 | 2023-08-29 | 上德联声科技(珠海)有限公司 | 一种降低音频播放设备内部电源干扰的方法 |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101335852A (zh) * | 2008-07-31 | 2008-12-31 | 中兴通讯股份有限公司 | 一种移动电视的终端播放方法和移动终端 |
| WO2009124806A1 (fr) * | 2008-04-09 | 2009-10-15 | Telefonaktiebolaget L M Ericsson (Publ) | Réception discontinue de rafales pour des appels vocaux |
| CN101848280A (zh) * | 2009-03-25 | 2010-09-29 | 深圳富泰宏精密工业有限公司 | 静音播放音乐的省电系统及方法 |
| CN107197362A (zh) * | 2016-03-15 | 2017-09-22 | 广州市动景计算机科技有限公司 | 一种播放多媒体信息的方法及装置 |
-
2018
- 2018-03-19 CN CN201810224989.2A patent/CN109673042A/zh active Pending
- 2018-10-16 WO PCT/CN2018/110398 patent/WO2019076289A1/fr not_active Ceased
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2009124806A1 (fr) * | 2008-04-09 | 2009-10-15 | Telefonaktiebolaget L M Ericsson (Publ) | Réception discontinue de rafales pour des appels vocaux |
| CN101335852A (zh) * | 2008-07-31 | 2008-12-31 | 中兴通讯股份有限公司 | 一种移动电视的终端播放方法和移动终端 |
| CN101848280A (zh) * | 2009-03-25 | 2010-09-29 | 深圳富泰宏精密工业有限公司 | 静音播放音乐的省电系统及方法 |
| CN107197362A (zh) * | 2016-03-15 | 2017-09-22 | 广州市动景计算机科技有限公司 | 一种播放多媒体信息的方法及装置 |
Also Published As
| Publication number | Publication date |
|---|---|
| CN109673042A (zh) | 2019-04-23 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| WO2019076289A1 (fr) | Procédé de réduction de la consommation d'énergie d'un dispositif électronique, et dispositif électronique | |
| CN112040533B (zh) | 一种终端设备的搜网控制方法、装置及终端设备 | |
| WO2018121148A1 (fr) | Procédé de sélection de ressources de communication, terminal intelligent portatif et dispositif d'accès | |
| WO2021184920A1 (fr) | Procédé et appareil pour masquer un son, et dispositif de terminal | |
| JP2009505545A (ja) | コンテキスト情報を使って通話中音声ユーザインタフェースを実装する装置及び方法 | |
| CN102917326B (zh) | 双卡双通终端的通信方法、装置及双卡双通终端 | |
| CN108900231B (zh) | 动态天线调整方法及相关产品 | |
| WO2019029618A1 (fr) | Procédé de commutation de réseau d'appel vocal ims, dispositif de stockage et terminal mobile | |
| WO2019011231A1 (fr) | Procédé de réduction d'une valeur sar d'un terminal mobile, support de stockage et terminal mobile | |
| WO2023173702A1 (fr) | Procédé de distribution de réseau longue distance sans fil, centre de commande et dispositif | |
| US11076354B2 (en) | Cell handover method and terminal device | |
| WO2017215661A1 (fr) | Procédé de contrôle d'effet sonore basé sur un scénario, et dispositif électronique | |
| CN106126170A (zh) | 一种终端的音效设置方法及终端 | |
| CN110635878A (zh) | 一种命令处理方法及终端设备 | |
| CN111641480B (zh) | 一种tcp重传次数的控制方法及终端设备、存储介质 | |
| US11006475B2 (en) | Direct mode operation communication method and terminal | |
| CN111642000A (zh) | 数据传输方法、装置、电子设备及计算机可读存储介质 | |
| CN111935848B (zh) | 一种周期性业务更新方法、装置及终端设备 | |
| CN109155803B (zh) | 音频数据处理方法、终端设备和存储介质 | |
| CN111885689B (zh) | 一种天线控制方法、装置及终端设备 | |
| WO2014086292A1 (fr) | Procédé et terminal pour dépendre d'un terminal appelé pour déterminer un signal de rappel d'un terminal appelant | |
| KR100650060B1 (ko) | 상대방 단말기의 통화 음량을 자동적으로 조절하는 이동통신 단말기 및 방법 | |
| CN107484225B (zh) | 一种网络接入控制方法、装置及用户终端 | |
| WO2022213304A1 (fr) | Procédé de commande lbt, dispositif, et support de stockage | |
| TWI897016B (zh) | 藍牙連線系統及藍牙連線及設定方法 |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 18868767 Country of ref document: EP Kind code of ref document: A1 |
|
| NENP | Non-entry into the national phase |
Ref country code: DE |
|
| 122 | Ep: pct application non-entry in european phase |
Ref document number: 18868767 Country of ref document: EP Kind code of ref document: A1 |