CN114296837A - Firmware control method and device, electronic equipment and computer readable storage medium - Google Patents

Firmware control method and device, electronic equipment and computer readable storage medium Download PDF

Info

Publication number
CN114296837A
CN114296837A CN202111680916.2A CN202111680916A CN114296837A CN 114296837 A CN114296837 A CN 114296837A CN 202111680916 A CN202111680916 A CN 202111680916A CN 114296837 A CN114296837 A CN 114296837A
Authority
CN
China
Prior art keywords
application software
firmware
state
started
control method
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111680916.2A
Other languages
Chinese (zh)
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.)
Xian Yep Telecommunication Technology Co Ltd
Original Assignee
Xian Yep Telecommunication Technology Co 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 Xian Yep Telecommunication Technology Co Ltd filed Critical Xian Yep Telecommunication Technology Co Ltd
Priority to CN202111680916.2A priority Critical patent/CN114296837A/en
Publication of CN114296837A publication Critical patent/CN114296837A/en
Pending legal-status Critical Current

Links

Images

Abstract

The application discloses a firmware control method, a firmware control device, electronic equipment and a computer readable storage medium, wherein the method comprises the steps of determining whether application software is started or not, loading firmware corresponding to the application software under the condition that the application software is determined to be started, obtaining the execution state of the application software, and correspondingly controlling the running state of the firmware according to the execution state of the application software. The application method and the device are beneficial to reducing the delay of the application software entering the execution state and reducing the energy consumption of the application software.

Description

Firmware control method and device, electronic equipment and computer readable storage medium
Technical Field
The present application relates to the field of firmware loading technologies, and in particular, to a firmware control method and apparatus, an electronic device, and a computer-readable storage medium.
Background
At present, the intelligent device is closely related to the life of people, and people use the intelligent device to carry out a series of activities.
Most of people use intelligent devices to play audio, such as music playing, sports prompt tone playing, conversation and other functions, however, part of the audio output of the intelligent devices depends on the operation of Codec (coder/decoder), but part of the Codec does not have on-chip ROM, and it takes a long time to load firmware each time the Codec is powered on, so that there is a delay between triggering playing and actual output audio, resulting in poor experience.
In addition, when the Codec is powered on frequently, the audio can be output immediately after being triggered, although no delay exists, the Codec is always in a powered-on state, power consumption is increased, and endurance is seriously affected.
In addition to the problems described above with the operation of audio playback software, other software that requires firmware to be loaded to support its operation also have problems described above.
Disclosure of Invention
An object of the present application is to provide a method, an apparatus, an electronic device, and a computer-readable storage medium for controlling firmware, which are beneficial to reduce the delay of entering the execution state of the application software and also beneficial to reduce the energy consumption of the application software.
In order to achieve the above object, the present application discloses a method for controlling firmware, comprising:
determining whether the application software is started;
loading firmware corresponding to the application software under the condition that the application software is determined to be started;
acquiring the execution state of the application software;
and correspondingly controlling the running state of the firmware according to the execution state of the application software.
Optionally, the determining whether the application software is started comprises:
and determining whether the application software is started according to user operation.
Optionally, the determining whether the application software is started according to a user operation includes:
determining whether to enter an interface of the application software.
Optionally, the determining whether the application software is started comprises:
receiving an execution request of the application software;
and determining whether the application software is started or not according to the execution request of the application software.
Optionally, acquiring information that the firmware loading is successful;
and controlling the opening of the interface of the application software and/or the vibration of the vibration motor according to the information that the firmware is successfully loaded.
Optionally, the execution state of the application software includes: an execution in state and a stop state;
when the application software is in the executing state, the firmware is in a power-on state;
and when the application software is in the stop state, the firmware is in a non-power-on state.
Optionally, when the application software is in the stop state, controlling the firmware to be in a low power consumption state or a power-off state according to the time when the application software is in the stop state.
In order to achieve the above object, the present application also discloses a control apparatus of firmware, which includes a module for executing the control method of firmware as described above.
In order to achieve the above object, the present application also discloses an electronic device, comprising:
a processor;
a memory having stored therein executable instructions of the processor;
wherein the processor is configured to execute the control method of firmware as described above via execution of the executable instructions.
In order to achieve the above object, the present application also discloses a computer-readable storage medium having stored thereon a computer program including a control method of implementing firmware as described above when the computer program is executed by a processor.
The present application also discloses a computer program product or computer program comprising computer instructions stored in a computer readable storage medium. The processor of the electronic device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the electronic device executes the control method of the firmware as described above.
The method comprises the steps of firstly determining whether application software is started, loading firmware corresponding to the application software under the condition that the application software is determined to be started, then obtaining the execution state of the application software, and correspondingly controlling the running state of the firmware according to the execution state of the application software. The method and the device can pre-load the firmware corresponding to the application software under the condition of determining the starting of the application software and before the application software enters the execution state, and correspondingly control the running state of the firmware by combining the current execution state of the application software, thereby not only being beneficial to reducing the delay of the application software entering the execution state, but also being beneficial to reducing the energy consumption of the application software.
Drawings
Fig. 1 is a flowchart of a firmware control method according to an embodiment of the present application.
Fig. 2 is a schematic block diagram of a control device of firmware according to an embodiment of the present application.
Fig. 3 is a schematic block diagram of an electronic device according to an embodiment of the present application.
Detailed Description
In order to explain technical contents, structural features, implementation principles, and objects and effects of the present application in detail, the following detailed description is given with reference to the accompanying drawings in combination with the embodiments.
Referring to fig. 1, the present application discloses a firmware control method, which includes:
101. it is determined whether the application software is started.
In the application, the manner of determining whether the application software is started may be to determine whether the user actively triggers the application software, for example, the user manually clicks to start the application software. The method for determining whether the application software is started may also be to determine whether the system starts the application software autonomously, for example, when the system receives an incoming call or notification information, the application software is started actively. Of course, the manner for determining whether the application software is started may be other specific forms, and is not limited herein.
In some embodiments, the determining whether the application software is started comprises:
and determining whether the application software is started according to the user operation.
Generally speaking, the application software is started through user operation, so that whether the application software is started or not can be determined by determining whether the application software is started according to the user operation or not so as to accurately and timely determine whether the application software is started or not, and when the system recognizes the user operation to start the application software, the application software is determined to be started.
Further, the determining whether the application software is started according to the user operation includes:
it is determined whether to enter an interface of the application software.
Generally, after a user starts application software, the application software opens a corresponding interface, so that the interface entering the application software can be used as a mark for starting the application software.
When a user starts application software (such as APP application software of music, movies and the like), the system enters an interface of the corresponding application software, and the system identifies the interface entering the application software to determine the starting of the application software.
Of course, the specific acquiring manner of "determining whether the application software is started according to the user operation" is not limited to the above manner, and for example, the specific acquiring manner may also be tactile feedback information of the user clicking the operation screen, or the manner thereof, which is not limited herein.
In some embodiments, the determining whether the application software is started comprises:
receiving an execution request of application software;
and determining whether the application software is started according to the execution request of the application software.
Generally, the application software may not only be started by a user operation, but in some cases, the system may start the application software by itself, the system controls the application software according to a received execution request of the application software, for example, some incoming calls and notification information send an execution request to the system, and after receiving the execution request, the system correspondingly controls the start of the application software to provide the incoming calls and notification information to the user, so that the user can obtain corresponding information in time. Therefore, whether the application software is started or not can be determined according to the received execution request of the application software, and the firmware can be loaded in time.
102. And loading the firmware corresponding to the application software under the condition of determining the application software to be started.
Specifically, each application software is executed without departing from the corresponding firmware, and the firmware is used for providing support for the execution of the corresponding application software so as to guarantee the normal execution of the application software. If the audio type application software corresponds to Codec firmware, the Codec firmware is used for providing configuration of audio functions for the audio type application software so as to ensure that the audio type application software can smoothly output and input audio. Similarly, the bluetooth application software and the NFC application software correspond to firmware that can provide bluetooth and NFC configuration support, respectively. Of course, other types of application software are also possible, and are not limited herein.
103. And acquiring the execution state of the application software.
For example, application software having an audio playback function may be in a playback state (in execution state) or a stop state.
104. And correspondingly controlling the running state of the firmware according to the execution state of the application software.
Due to the fact that the execution states of the application software are various, the running state of the firmware is correspondingly controlled according to the execution states of the application software, the firmware can be well utilized, and unnecessary energy consumption is reduced.
In some embodiments, the execution state of the application software includes: an execution in state and a stop state;
when the application software is in an executing state, the firmware is in a power-on state;
when the application software is in a stop state, the firmware is in a non-power-on state.
The running state of the firmware is correspondingly controlled according to the execution state of the application software, so that the firmware can be switched to a working mode corresponding to the execution state of the application software at present, the firmware can be well utilized, the firmware is ensured to be in a power-on state when the application software is in the execution state, the application software can work normally, the firmware can be switched to a non-power-on state when the application software is in the stop state, and unnecessary energy consumption is reduced.
Further, when the application software is in a stop state, the firmware is controlled to be in a low power consumption state or a power-down state according to the time when the application software is in the stop state.
By setting the firmware to be in the low power consumption state or the power-off state, when the time when the application software is in the stop state is short, the firmware is controlled to be switched to the low power consumption state, so that the firmware can be quickly switched to the power-on state when the application software is subsequently switched to the execution state, smooth operation of the application software is maintained, the firmware does not need to be switched to the power-on state from the power-off state again, and delay is reduced. And when the time when the application software is in the stop state exceeds the preset time, the control firmware is switched to the power-off state, so that unnecessary energy consumption can be reduced.
For example, it is assumed that the manner of determining whether the application software is started is to determine whether to enter information (triggered by a user) of an interface of the application software, where the application software is an audio-type application software, and the type of application software corresponds to Codec firmware used for providing configuration of audio functions for the audio-type application software. When the user is recognized to start the application software (entering an interface of the application software), the start of the application software is determined, and the Codec firmware is loaded so as to be in a power-on state. And then acquiring the execution state of the application software, and correspondingly controlling the running state of the Codec firmware according to the execution state of the application software. If the application software is in an executing state (the user has performed a playing operation), the Codec firmware is kept or switched to a power-up state for outputting and inputting audio, if the application software is in a stopping state (the user has performed a stopping operation), the Codec firmware is firstly switched from the power-up state to a low power consumption state to stop the audio, and if the application software is in the stopping state for a longer time, the Codec firmware is switched from the low power consumption state to the power-down state. In addition, when the user operates the interface of the application software to exit (for example, returning to the main interface of the system, and the process of the application software is still kept in the background of the system), according to the execution state of the application software when the interface of the application software exits, the Codec firmware keeps the original running state corresponding to the execution state of the application software. It should be noted that the above description is only for illustrative purposes and is not intended to be limiting.
In some embodiments, the above method further comprises:
acquiring information that firmware loading is successful;
and controlling the interface opening of the application software and/or the vibration of the vibration motor according to the information of successful firmware loading.
In some cases, the system may start the application software by itself, and the system controls the application software according to a received execution request of the application software, for example, some reminders, notifications, incoming call signals, and the like, by sending the execution request to the system, after receiving the execution request, the system determines the start of the application software, starts loading the firmware, and after obtaining information that the firmware is loaded successfully, controls the interface of the application software to be opened and/or the vibration of the vibration motor to be vibrated, so as to facilitate the opening of the interface of the application software, the vibration of the vibration motor, and the output (for example, audio playing) of the information of the application software to be performed synchronously.
For example, it is assumed that the application software is an audio type or an application software (e.g., a communication app) with an audio playing function, and the application software executes the audio playing function and is loaded by depending on Codec firmware. Firstly, the starting of the application software is confirmed according to an execution request of the application software (such as an execution request from an incoming call signal), then the Codec firmware is loaded to enable the Codec firmware to enter a power-on state, and when information that the Codec firmware is loaded successfully is acquired, an interface of the application software is opened and vibration of a vibration motor is controlled to ensure that UI display, motor vibration and audio playing are synchronous. And then acquiring the execution state of the application software, and correspondingly controlling the running state of the Codec firmware according to the execution state of the application software. If the application software is in the executing state (user call in), the Codec firmware keeps the power-on state for outputting and inputting audio, and if the application software is in the stopping state (user call stop), the Codec firmware is firstly switched from the power-on state to the low power consumption state. And if the time that the application software is in the stop state exceeds the preset time length, switching the Codec firmware from the low power consumption state to the power-down state. Of course, the power-down state can also be switched directly from the power-up state. It should be noted that the above description is only for illustrative purposes and is not intended to be limiting.
The method comprises the steps of firstly determining whether application software is started, loading firmware corresponding to the application software under the condition that the application software is determined to be started, then obtaining the execution state of the application software, and correspondingly controlling the running state of the firmware according to the execution state of the application software. The method and the device can pre-load the firmware corresponding to the application software under the condition of determining the starting of the application software and before the application software enters the execution state, and correspondingly control the running state of the firmware by combining the current execution state of the application software, thereby not only being beneficial to reducing the delay of the application software entering the execution state, but also being beneficial to reducing the energy consumption of the application software.
Referring to fig. 2, an embodiment of the present application further discloses a firmware control device, which includes:
a determining module 10, wherein the determining module 10 is used for determining whether the application software is started;
the loading module 11 is used for loading the firmware corresponding to the application software under the condition that the application software is determined to be started;
the acquisition module 12, the acquisition module 12 is used for acquiring the execution state of the application software;
and the control module 13, wherein the control module 13 is used for correspondingly controlling the running state of the firmware according to the execution state of the application software.
For a detailed description of the firmware control device, the control method of the firmware is described in detail, and is not repeated herein.
Referring to fig. 3, an embodiment of the present application further discloses an electronic device, which includes:
a processor 21;
a memory 20 having stored therein executable instructions of the processor 21;
wherein the processor 21 is configured to execute the above-mentioned firmware control method via executing the executable instructions.
The embodiment of the application also discloses a computer readable storage medium, wherein a computer program is stored on the computer readable storage medium, and the computer program is used for realizing the control method of the firmware when being executed by a processor.
The embodiment of the application also discloses a computer program product or a computer program, which comprises computer instructions, and the computer instructions are stored in a computer readable storage medium. The processor of the electronic device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the electronic device executes the control method of the firmware.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware associated with computer program instructions, and the programs can be stored in a computer readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), or the like.
The above disclosure is only a preferred embodiment of the present application and should not be taken as limiting the scope of the present application, so that the claims of the present application are covered by the appended claims.

Claims (10)

1. A method for controlling firmware, comprising:
determining whether the application software is started;
loading firmware corresponding to the application software under the condition that the application software is determined to be started;
acquiring the execution state of the application software;
and correspondingly controlling the running state of the firmware according to the execution state of the application software.
2. The firmware control method according to claim 1,
the determining whether the application software is started comprises:
and determining whether the application software is started according to user operation.
3. The firmware control method according to claim 2,
the determining whether the application software is started according to the user operation comprises:
determining whether to enter an interface of the application software.
4. The firmware control method according to claim 1,
the determining whether the application software is started comprises:
receiving an execution request of the application software;
and determining whether the application software is started or not according to the execution request of the application software.
5. The firmware control method according to claim 4,
acquiring information that the firmware is successfully loaded;
and controlling the opening of the interface of the application software and/or the vibration of the vibration motor according to the information that the firmware is successfully loaded.
6. The method of controlling firmware according to any one of claims 1 to 5,
the execution state of the application software comprises: an execution in state and a stop state;
when the application software is in the executing state, the firmware is in a power-on state;
and when the application software is in the stop state, the firmware is in a non-power-on state.
7. The firmware control method according to claim 6,
and when the application software is in the stop state, controlling the firmware to be in a low power consumption state or a power-off state according to the time when the application software is in the stop state.
8. A control apparatus of firmware, characterized by comprising means for executing the control method of firmware according to any one of claims 1 to 7.
9. An electronic device, comprising:
a processor;
a memory having stored therein executable instructions of the processor;
wherein the processor is configured to perform the control method of firmware of any one of claims 1-7 via execution of the executable instructions.
10. A computer-readable storage medium on which a computer program is stored, the computer program, when being executed by a processor, implementing a control method of firmware according to any one of claims 1 to 7.
CN202111680916.2A 2021-12-31 2021-12-31 Firmware control method and device, electronic equipment and computer readable storage medium Pending CN114296837A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111680916.2A CN114296837A (en) 2021-12-31 2021-12-31 Firmware control method and device, electronic equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111680916.2A CN114296837A (en) 2021-12-31 2021-12-31 Firmware control method and device, electronic equipment and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN114296837A true CN114296837A (en) 2022-04-08

Family

ID=80975619

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111680916.2A Pending CN114296837A (en) 2021-12-31 2021-12-31 Firmware control method and device, electronic equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN114296837A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115422110A (en) * 2022-07-27 2022-12-02 超聚变数字技术有限公司 Electronic equipment and port configuration method of PCIE Switch chip

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115422110A (en) * 2022-07-27 2022-12-02 超聚变数字技术有限公司 Electronic equipment and port configuration method of PCIE Switch chip
CN115422110B (en) * 2022-07-27 2023-09-01 超聚变数字技术有限公司 Port configuration method of electronic equipment and PCIE Switch chip

Similar Documents

Publication Publication Date Title
KR101812044B1 (en) Method and apparatus for reducing power consumption in a mobile electronic device
US11914446B2 (en) Electronic device control method and apparatus, and electronic device
JP5208246B2 (en) Voice input device having a period of interest
RU2643516C2 (en) Method and device for controlling power consumption
CN107734616B (en) Application program closing method and device, storage medium and electronic equipment
CN107783803B (en) System optimization method and device of intelligent terminal, storage medium and intelligent terminal
CN107851050B (en) Device with watchdog timer and method for operating watchdog timer
CN110769319B (en) Standby wakeup interaction method and device
WO2022089483A1 (en) Audio playback control method and apparatus, and electronic device
CN110727821A (en) Method, apparatus, system and computer storage medium for preventing device from being awoken by mistake
CN114296837A (en) Firmware control method and device, electronic equipment and computer readable storage medium
CN111290926A (en) Terminal prompting method and device, storage medium and terminal
CN111083564A (en) Intelligent television upgrading method, intelligent terminal, intelligent peripheral and intelligent television
WO2023241009A1 (en) Screen projection method, apparatus and system, device, and storage medium
WO2023130866A1 (en) Method and apparatus for switching operating system, and electronic device and storage medium
CN102044201B (en) Device and method for constant brightness display of mobile equipment screen
EP3955099A1 (en) Method and device for controlling the operation mode of a terminal device, and storage medium
JPH10200615A (en) Telephone set with backlight control mechanism
CN111050240A (en) Earphone mode switching method and device
CN111831100B (en) Electronic device control method and device, storage medium and electronic device
CN113655984A (en) Audio playback control method, audio playback control device, and computer storage medium
JP2007208460A (en) Electronic equipment with communication functions, processing control method, and processing control program
CN112860214A (en) Animation display method and device based on voice conversation, storage medium and equipment
CN112199069A (en) Audio control method and readable medium during multi-application operation based on Andriod
CN111026456A (en) Application management method and device, storage medium and electronic equipment

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