CN112579484A - Power-down state protection method and device for intelligent sound box and main board power supply circuit - Google Patents

Power-down state protection method and device for intelligent sound box and main board power supply circuit Download PDF

Info

Publication number
CN112579484A
CN112579484A CN201910931775.3A CN201910931775A CN112579484A CN 112579484 A CN112579484 A CN 112579484A CN 201910931775 A CN201910931775 A CN 201910931775A CN 112579484 A CN112579484 A CN 112579484A
Authority
CN
China
Prior art keywords
sound box
intelligent sound
power
user
data
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
CN201910931775.3A
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.)
Beijing SoundAI Technology Co Ltd
Original Assignee
Beijing SoundAI 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 Beijing SoundAI Technology Co Ltd filed Critical Beijing SoundAI Technology Co Ltd
Priority to CN201910931775.3A priority Critical patent/CN112579484A/en
Publication of CN112579484A publication Critical patent/CN112579484A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F12/00Accessing, addressing or allocating within memory systems or architectures
    • G06F12/16Protection against loss of memory contents
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R3/00Circuits for transducers, loudspeakers or microphones

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Acoustics & Sound (AREA)
  • Signal Processing (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Power Sources (AREA)

Abstract

The invention provides a method and a device for protecting the power failure state of an intelligent sound box and a main board power supply circuit, wherein the method comprises the following steps: judging whether the intelligent sound box is powered off or not; when the intelligent sound box is powered off, current operation data of the intelligent sound box is stored and recorded as recovery data; and when the current running data is stored, controlling the intelligent sound box to perform shutdown operation. Through carrying out real time monitoring to the power failure state of intelligent audio amplifier, when the power failure, the intelligent audio amplifier is to its current operating data save, whether intelligent audio amplifier is after the start next time, can select according to self demand whether these operating data need resume, made things convenient for the user to use.

Description

Power-down state protection method and device for intelligent sound box and main board power supply circuit
Technical Field
The invention relates to the technical field of integrated devices, in particular to a method and a device for protecting a power-down state of an intelligent sound box and a main board power supply circuit.
Background
The intelligent sound box is a product of sound box upgrading, is a tool for household consumers to surf the internet by voice, such as song ordering, internet shopping or weather forecast knowing, and can also control intelligent household equipment, such as opening a curtain, setting the temperature of a refrigerator, heating a water heater in advance and the like.
The power failure is one of the conditions that power consumption equipment often appears, and refers to disconnection of a machine from a power supply, and the reason for the power failure can be that a user actively unplugs the power supply or turns off a switch to shut down the machine, or certainly, the power failure can be abnormal power failure to shut down the machine.
In the prior art, after the power failure of the intelligent sound box, when the intelligent sound box is restarted, the progress of the intelligent sound box before the power failure cannot be saved, and when a user wants to enable the intelligent sound box to continuously enter a state before the power failure, the user needs to reset the progress.
Disclosure of Invention
In view of this, embodiments of the present invention provide a method and an apparatus for protecting a power-down state of an intelligent sound box, so as to store a state of the intelligent sound box at a power-down time when the intelligent sound box is powered down.
In order to achieve the above purpose, the embodiments of the present invention provide the following technical solutions:
a power-down state protection method for an intelligent sound box comprises the following steps:
judging whether the intelligent sound box is powered off or not;
when the intelligent sound box is powered off, current operation data of the intelligent sound box is stored and recorded as recovery data;
and when the current running data is stored, controlling the intelligent sound box to perform shutdown operation.
Optionally, in the method for protecting a power-down state of the smart sound box, the method further includes:
after the intelligent sound box is powered on and started, whether a data recovery instruction issued by a user is acquired or not is judged, when the data recovery instruction is acquired, a main control chip of the intelligent sound box is controlled to read the recovery data, and the running state of the intelligent sound box is configured according to the recovery data.
Optionally, in the method for protecting a power-down state of the smart sound box, the method further includes:
when a power-on starting instruction of the intelligent sound box is acquired, judging whether the running state of the intelligent sound box needs to be restored to the running state before power failure or not according to user operation;
when recovery is not needed, the intelligent sound box is directly started;
and when the intelligent sound box needs to be recovered, acquiring the recovery data, starting the intelligent sound box and configuring the running state of the intelligent sound box according to the recovery data.
Optionally, in the method for protecting a power-down state of the smart sound box, when a power-on start instruction of the smart sound box is obtained, whether the operating state of the smart sound box needs to be restored to the operating state before the power-down is judged according to a user operation, where the method includes:
when a power-on starting instruction output to the intelligent sound box by a user is detected, outputting first prompt information to the user, wherein the first prompt information is used for prompting the user whether the operation state of the intelligent sound box needs to be restored to the operation state before power failure;
when the first prompt message is output, timing is started, when a first preset instruction is obtained within a preset timing duration, it is indicated that a user needs to restore the operation state of the intelligent sound box to the operation state before power failure, and when a second preset instruction is obtained within the preset timing duration or the first preset instruction is not obtained when the preset timing duration arrives, it is indicated that the user does not need to restore the operation state of the intelligent sound box to the operation state before power failure.
The utility model provides a power-down state protection device of intelligent sound box, includes:
the power-down state detection module is connected with a main control chip of the intelligent sound box and used for judging whether the intelligent sound box is powered down or not, and outputting a first trigger signal to the main control chip when the intelligent sound box is powered down;
the main control chip is used for storing the current operation data of the intelligent sound box into a memory as recovery data when the first trigger signal is acquired;
and the state storage module is connected with the main control chip of the intelligent sound box and is used for storing recovery data issued by the main control chip.
Optionally, in the above-mentioned power failure protection device for an intelligent sound box, the main control chip is further configured to:
after the intelligent sound box is powered on and started, whether a data recovery instruction issued by a user is acquired or not is judged, when the data recovery instruction is acquired, a main control chip of the intelligent sound box is controlled to read the recovery data, and the running state of the intelligent sound box is configured according to the recovery data.
Optionally, in the above-mentioned power failure protection device for an intelligent sound box, the main control chip is further configured to: when a power-on starting instruction of the intelligent sound box is acquired, judging whether the running state of the intelligent sound box needs to be restored to the running state before power failure or not according to user operation; when recovery is not needed, the intelligent sound box is directly started; and when the intelligent sound box needs to be recovered, acquiring the recovery data, starting the intelligent sound box and configuring the running state of the intelligent sound box according to the recovery data.
Optionally, in the power failure protection device for an intelligent sound box, the main control chip is specifically configured to, when determining whether to restore the operating state of the intelligent sound box to the operating state before the power failure according to the user operation:
when a power-on starting instruction output to the intelligent sound box by a user is detected, outputting first prompt information to the user, wherein the first prompt information is used for prompting the user whether the operation state of the intelligent sound box needs to be restored to the operation state before power failure;
when the first prompt message is output, timing is started, when a first preset instruction is obtained within a preset timing duration, it is indicated that a user needs to restore the operation state of the intelligent sound box to the operation state before power failure, and when a second preset instruction is obtained within the preset timing duration or the first preset instruction is not obtained when the preset timing duration arrives, it is indicated that the user does not need to restore the operation state of the intelligent sound box to the operation state before power failure.
Optionally, in the above-mentioned intelligent sound box power-down state protection device, the power-down state detection module includes:
the filter comprises a first voltage-dividing resistor, a second voltage-dividing resistor and a filter capacitor;
the first end of the first divider resistor is connected with a main board power supply of the intelligent sound box, the first end of the second divider resistor is connected with the second end of the first divider resistor, the second end of the second divider resistor is grounded, the public end of the first divider resistor and the public end of the second divider resistor are connected with the main control chip, and when the main board power supply is powered off, the voltage value of the public end of the first divider resistor and the voltage value of the public end of the second divider resistor serve as the first trigger signal.
The utility model provides a mainboard power supply circuit, sets up the mainboard power supply circuit between mainboard power and main control chip, mainboard power supply circuit includes:
the circuit comprises a first isolation resistor, a second isolation resistor, a first energy storage capacitor and a diode;
first ends of the first isolation resistor and the second isolation resistor are connected with the output end of the mainboard power supply, second ends of the first isolation resistor and the second isolation resistor are connected with the first end of the energy storage capacitor, and the second end of the energy storage capacitor is grounded;
the anode of the diode is connected with the first end of the energy storage capacitor, and the second end of the diode is connected with the first ends of the first isolation resistor and the second isolation resistor and the power input end of the main control chip.
Based on the technical scheme, in the scheme provided by the embodiment of the invention, the power failure state of the intelligent sound box is monitored in real time, the current operation data of the intelligent sound box is stored when the intelligent sound box is powered off, and whether the operation data needs to be recovered or not can be selected according to the requirement of the intelligent sound box after the intelligent sound box is started next time, so that the intelligent sound box is convenient for a user to use.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a schematic flow chart of a method for protecting a power-down state of an intelligent sound box disclosed in an embodiment of the present application;
fig. 2 is a schematic flow chart of a method for protecting a smart sound box from a power-down state according to another embodiment of the present application;
fig. 3 is a schematic flow chart of a method for performing data recovery on a smart sound box in a power-down state protection method for the smart sound box disclosed in the embodiment of the present application;
fig. 4 is a schematic flow chart illustrating a method for protecting a smart speaker from a power-down state according to another embodiment of the present application;
fig. 5 is a schematic structural diagram of a power-down state protection device for an intelligent sound box according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of a power failure detection module disclosed in an embodiment of the present application;
fig. 7 is a schematic structural diagram of a motherboard power supply circuit disclosed in an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Aiming at the problem that the working state before power failure cannot be stored when the intelligent sound box is powered down in the prior art, the application discloses a method and a device for protecting the power failure state of the intelligent sound box.
Referring to fig. 1, a method for protecting a power-down state of an intelligent sound box disclosed in the embodiment of the present application includes:
step S101: judging whether the intelligent sound box is powered off, and executing the step S102 when the intelligent sound box is powered off;
in this step, the power failure may refer to any form of power failure, for example, may include normal power failure and abnormal power failure of the smart speaker, the normal power failure refers to that the user controls the switch button on the smart speaker through triggering the power failure generated when the smart speaker is turned off, or the user sends a turn-off signal to the smart speaker through a remote controller of the smart speaker, and the power failure of the smart speaker caused thereby, the abnormal power failure may refer to that the user does not trigger the turn-off button on the smart speaker and the smart speaker do not receive the turn-off signal, and the smart speaker suddenly loses power.
Step S102: storing the current operation data of the intelligent sound box and recording the current operation data as recovery data;
in this scheme, a flash memory module is configured in the smart sound box, the flash memory module is configured to store operation data of the smart sound box when a system is powered down, the operation data at least includes state information of each application started by the smart sound box, process information of a task corresponding to each application, and the like, that is, the operation data is data that can enable a working scene of the smart sound box and a working scene of a control object of the smart sound box to be restored to a state before the power down after being triggered. For example, when the smart sound box is powered off, the current playing content and the playing progress of music playing software in the smart sound box are read and stored, the configuration information of software used for controlling a water heater in the smart sound box is read and stored, the data are used as recovery data, and when a recovery instruction input by a user is obtained, the configuration information of each software in the smart sound box is configured according to the stored recovery data.
Step S103: and when the current running data is stored, controlling the intelligent sound box to perform shutdown operation.
According to the scheme, the intelligent sound box can store the current operation data when the power failure occurs, and the intelligent sound box can select whether to recover the operation data according to the requirement after being started next time, so that the intelligent sound box is convenient for a user to use.
In the technical solution disclosed in the embodiment of the present application, when storing the operation data of each application in the smart sound box, the operation data of the application in the startup state only when the power is down may be stored, further, in order to reduce the data storage amount, when storing the operation data, only the target data in the operation data may be stored, and when recovering the application, the application may be recovered based on the target data, specifically referring to fig. 2, in the technical solution disclosed in the above embodiment of the present application, between step S102 and step S101, the method may further include:
step S201: when the intelligent sound box is powered off, judging the running state of each application configured in the intelligent sound box;
step S202: calling the running data of the application in the running state in the starting state;
step S203: calling target data in the running data corresponding to each application, taking the target data as the running data of the intelligent sound box, and executing the step S102;
taking a music playing application as an example, the target data may include address information of currently played music and playing progress information, and taking software for controlling a water heater as an example, the target data may include: specifically, target data corresponding to each application may be different according to different types of applications, and specific target data corresponding to each application may be defined by developers during application development.
In the technical scheme disclosed in this embodiment, when the smart speaker loses power, the stored data has pertinence, the data volume is small, the storage speed is high, when the smart speaker loses power, the data storage can be quickly realized, and when the data is recovered, the recovery data also has pertinence, and the recovery speed is high.
Further, after the smart sound box is started up at power-on, a user can select whether to restore the operating data of the smart sound box according to own requirements, for example, the user can uniformly restore the configuration information of all application programs in the smart sound box by triggering a button on the smart sound box or a remote controller of the smart sound box, and when the restored data is detected to be used, the stored restored data is deleted.
In the technical scheme disclosed in this embodiment, when the smart speaker is powered on, the smart speaker may actively initiate a request to inquire whether a user controls the smart speaker to recover an operating state when the power failure occurred last time, and specifically, the scheme may include:
when a power-on starting instruction of the intelligent sound box is acquired, first prompt information is sent to a user, the prompt information is used for prompting whether the user needs to configure configuration information of an application of the intelligent sound box according to the recovery data, when the first prompt information is spoken, timing is started, after a feedback instruction of the user is acquired within a preset time, when the feedback instruction is a first instruction for representing that the application in the intelligent sound box is configured according to the recovery data, the recovery data is acquired, the intelligent sound box is started and the running state of the intelligent sound box is configured according to the recovery data, when the feedback instruction of the user is not acquired within the preset time or a second instruction input by the user is acquired, the user does not need to configure the running state of the intelligent sound box according to the recovery data, and at the moment, the intelligent sound box is directly started, the above process is recorded as a process of judging whether the operation state of the smart sound box needs to be restored to the operation state before the power failure, wherein the process is described as a process of judging whether the operation state of the smart sound box needs to be restored to the operation state before the power failure. The first instruction may refer to a confirm instruction and the second instruction may refer to a cancel instruction.
In the technical solution disclosed in another embodiment of the present application, a user may not need to restore the working state of some applications, but only want to restore the working state of a target application, and for this, the present application further provides a technical solution to enable the user to separately perform data restoration on an application program in a certain or some smart speakers, see fig. 3, which implements the following process:
step S301: when detecting that the application program in the smart sound box is started, executing step S302;
step S302: acquiring identification information of the started application;
step S303: judging whether recovery data matched with the identification information is stored, if so, executing the step S304, otherwise, ending the process;
when recovery data matched with the identification information is stored, the application is in a starting state when the intelligent sound box is powered off last time;
step S304: outputting prompt information for prompting the user whether to perform data recovery on the started application to the user;
step S305: timing is started, when feedback information output by a user is acquired within a first preset time, step S306 is executed, otherwise, the process is ended;
the feedback information may be played to the user in a form of voice, and it should be noted that, in the process of executing the process, normal starting of the application is not affected, that is, the starting of the application and the execution of the present scheme may be synchronous, of course, the application may be started after the process is executed first and then the process is finished, and of course, the application may also be started first and then the process may be executed in reverse;
step S306: analyzing the feedback information of the user, executing the step S307 when a first instruction is obtained by analyzing, and ending the process when a second instruction is obtained by analyzing;
wherein the first instruction may be an "acknowledge" instruction and the second instruction may be a "cancel" instruction.
Step S307: retrieving recovery data matched with the identification information;
step S308: and configuring the application corresponding to the identification information according to the recovery data.
In the technical solution disclosed in the embodiment of the present application, each application may only correspond to one recovery data, that is, in the above solution, when power is lost, if the running data is saved, it is found that the running data is already stored in the memory, and the running data may be directly overwritten.
Specifically, referring to fig. 4, the method for protecting the power-down state of the smart speaker disclosed in the foregoing embodiment of the present application may include:
step S101: judging whether the intelligent sound box is powered off or not, and executing the step S401 when the intelligent sound box is powered off;
step S401: acquiring current running data of each application in the intelligent sound box and identification information of each application, wherein the application identification information is recorded as first application identification information;
step S402: acquiring an application identifier corresponding to the stored recovery data, and recording the application identifier as second application identifier information;
step S403: judging whether a second application identifier identical to the first application identifier information exists, if so, executing step S404 and executing step S405;
step S404: deleting application data corresponding to a second application identifier which is the same as the first application identifier information, wherein the application data are stored application data;
step S405: storing the current operation data in a memory, and executing step S103;
step S103: and when the current running data is stored, controlling the intelligent sound box to perform shutdown operation.
In the technical scheme disclosed in this embodiment, at the same time, the recovery data corresponding to each application in the intelligent speaker can only be stored in one group, that is, if the recovery data corresponding to an application is stored, and if it is detected that the recovery data corresponding to the application already exists in the memory, the stored recovery data needs to be deleted first, and then the recovery data of this time is stored.
In addition, in the technical solution disclosed in the embodiment of the present application, when it is desired to perform power failure data recovery on each application in the smart speaker during the use of the smart speaker, the following method may be adopted to implement the power failure state protection method disclosed in the embodiment of the present application, that is, the power failure state protection method may further include:
after the intelligent sound box is powered on and started, whether a data recovery instruction issued by a user is acquired or not is judged, when the data recovery instruction is acquired, a main control chip of the intelligent sound box is controlled to read the recovery data, and the running state of the intelligent sound box is configured according to the recovery data.
Corresponding to the above method, the present application also discloses a device for protecting a power-down state of an intelligent sound box, in this embodiment, the specific working contents of each unit and module of the device refer to the contents of the above method embodiment, and the following describes the device for protecting a power-down state of an intelligent sound box provided by the embodiment of the present invention, and the device for protecting a power-down state of an intelligent sound box described below and the method for protecting a power-down state of an intelligent sound box described above can be referred to correspondingly. Referring to fig. 5, the apparatus may include:
the power-down state detection module 100 is connected with the main control chip 200 of the intelligent sound box, and is used for judging whether the intelligent sound box is powered down or not, and outputting a first trigger signal to the main control chip 200 when the intelligent sound box is powered down;
the main control chip 200 is configured to, when the first trigger signal is obtained, store current operation data of the smart sound box as recovery data in the memory 300, where a preset application program is stored in the main control chip 200, and after the preset application program is triggered, control the main control chip 200 to execute an action corresponding to the smart sound box power-down state protection method disclosed in the above embodiment of the present application;
and the state storage module is connected with the main control chip 200 of the intelligent sound box and is used for storing recovery data issued by the main control chip 200.
For example, when the application program of the main control chip 200 is triggered, the main control chip 200 may be configured to perform the following actions:
after the intelligent sound box is powered on and started, whether a data recovery instruction issued by a user is acquired or not is judged, when the data recovery instruction is acquired, the main control chip 200 of the intelligent sound box is controlled to read the recovery data, and the running state of the intelligent sound box is configured according to the recovery data.
For example, when the application program of the main control chip 200 is triggered, the main control chip 200 may be further configured to perform the following actions:
when a power-on starting instruction of the intelligent sound box is acquired, judging whether the running state of the intelligent sound box needs to be restored to the running state before power failure or not according to user operation; when recovery is not needed, the intelligent sound box is directly started; and when the intelligent sound box needs to be recovered, acquiring the recovery data, starting the intelligent sound box and configuring the running state of the intelligent sound box according to the recovery data.
Wherein, the main control chip 200 executes the following actions: judging whether the running state of the intelligent sound box needs to be restored to the running state before the power failure according to user operation, and specifically executing the following actions:
when a power-on starting instruction output to the intelligent sound box by a user is detected, outputting first prompt information to the user, wherein the first prompt information is used for prompting the user whether the operation state of the intelligent sound box needs to be restored to the operation state before power failure;
when the first prompt message is output, timing is started, when a first preset instruction is obtained within a preset timing duration, it is indicated that a user needs to restore the operation state of the intelligent sound box to the operation state before power failure, and when a second preset instruction is obtained within the preset timing duration or the first preset instruction is not obtained when the preset timing duration arrives, it is indicated that the user does not need to restore the operation state of the intelligent sound box to the operation state before power failure.
In the technical solution disclosed in the embodiment of the present application, the specific structure of the power failure detection module 100 may be set according to a user requirement, for example, referring to fig. 6, the power failure detection module 100 disclosed in the embodiment of the present application may include:
the first voltage-dividing resistor R1, the second voltage-dividing resistor R2 and the filter capacitor C1;
the first end of the first voltage-dividing resistor R1 is connected to a main board power supply of the smart sound box, the first end of the second voltage-dividing resistor R2 is connected to the second end of the first voltage-dividing resistor R1, the second end of the second voltage-dividing resistor R2 is grounded, the common end of the first voltage-dividing resistor R1 and the common end of the second voltage-dividing resistor R2 are connected to the main control chip 200, and the main control chip 200 takes the voltage value of the common end of the first voltage-dividing resistor R1 and the common end of the second voltage-dividing resistor R2 as the first trigger signal when the main board power supply is powered down.
In the technical scheme disclosed in the embodiment of the present application, a specific structure of a main board power supply circuit for supplying power to a main board of an intelligent sound box can be set by a user according to a user requirement, for example, in order to solve a power supply problem that a power failure detection module detects a power failure behavior and then completes state saving to a main control chip, the main board power supply circuit shown in fig. 7 is specially designed. If a large-capacity capacitor is directly used, the startup time is affected due to long charging time in the power-on process. Therefore, the buffering fast discharging circuit shown in fig. 7 is designed to solve the problem of slow capacitor charging in the power-on process during the power-on process, and meanwhile, it can be ensured that the capacitor is rapidly discharged in the power-off process, and the power loss is not affected, specifically, the motherboard power supply circuit can be arranged between the motherboard power supply and the main control chip 200, referring to fig. 7, the motherboard power supply circuit includes:
the energy-saving circuit comprises a first isolation resistor R3, a second isolation resistor R4, a first energy-storing capacitor C2 and a diode D;
first ends of the first isolation resistor R3 and the second isolation resistor R4 are connected with the power output end of the main board, second ends of the first isolation resistor R3 and the second isolation resistor R4 are connected with a first end of the energy storage capacitor, and a second end of the energy storage capacitor is grounded;
the anode of the diode D is connected to the first end of the energy storage capacitor, and the second end of the diode D is connected to the first ends of the first isolation resistor R3 and the second isolation resistor R4 and the power input end of the main control chip 200.
In addition, in order to ensure the power supply quality, one or more filter capacitors C1, such as the filter capacitor C3 and the filter capacitor C4 shown in fig. 7, may be disposed in the motherboard power supply circuit.
Wherein, C1 is an energy storage capacitor; the two resistors R1 and R2 are isolation resistors and play a role in slow charging; the diode D may be a schottky diode to provide a discharge loop; c3 and C4 are filter capacitors for filtering noise. The working process of the circuit is as follows:
when the power is on, VCC _ IN can directly supply power to the mainboard, the node B instantly reaches VCC _ IN level, and the mainboard starts working. Meanwhile, VCC _ IN slowly charges the capacitor C2 through the resistors R1 and R2, the level of the node A is slowly increased and finally rises to VCC _ IN, and the charging of the capacitor C2 is finished. In the charging process, the cathode level of the diode D is higher than the anode pin level, and the diode is not conducted.
When the power is off, VCC _ IN loses the external power supply, and the level of the node B is gradually reduced until the level is lower than the level of the node A. At this time, the diode D is turned on, and the electric energy stored in the capacitor C2 is released to the main board through the diode D.
For convenience of description, the above system is described with the functions divided into various modules, which are described separately. Of course, the functionality of the various modules may be implemented in the same one or more software and/or hardware implementations of the invention.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, the system or system embodiments are substantially similar to the method embodiments and therefore are described in a relatively simple manner, and reference may be made to some of the descriptions of the method embodiments for related points. The above-described system and system embodiments are only illustrative, wherein the units described as separate parts may or may not be physically separate, and the parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module may reside in random access memory 300(RAM), memory, read only memory 300(ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
It is further noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

1. A power-down state protection method for an intelligent sound box is characterized by comprising the following steps:
judging whether the intelligent sound box is powered off or not;
when the intelligent sound box is powered off, current operation data of the intelligent sound box is stored and recorded as recovery data;
and when the current running data is stored, controlling the intelligent sound box to perform shutdown operation.
2. The method for protecting the power-down state of the intelligent sound box according to claim 1, further comprising:
after the intelligent sound box is powered on and started, whether a data recovery instruction issued by a user is acquired or not is judged, when the data recovery instruction is acquired, a main control chip of the intelligent sound box is controlled to read the recovery data, and the running state of the intelligent sound box is configured according to the recovery data.
3. The method for protecting the power-down state of the intelligent sound box according to claim 1, further comprising:
when a power-on starting instruction of the intelligent sound box is acquired, judging whether the running state of the intelligent sound box needs to be restored to the running state before power failure or not according to user operation;
when recovery is not needed, the intelligent sound box is directly started;
and when the intelligent sound box needs to be recovered, acquiring the recovery data, starting the intelligent sound box and configuring the running state of the intelligent sound box according to the recovery data.
4. The method for protecting the power-down state of the smart sound box according to claim 3, wherein when a power-on start instruction of the smart sound box is obtained, whether the operation state of the smart sound box needs to be restored to the operation state before the power-down is judged according to user operation, and the method comprises the following steps:
when a power-on starting instruction output to the intelligent sound box by a user is detected, outputting first prompt information to the user, wherein the first prompt information is used for prompting the user whether the operation state of the intelligent sound box needs to be restored to the operation state before power failure;
when the first prompt message is output, timing is started, when a first preset instruction is obtained within a preset timing duration, it is indicated that a user needs to restore the operation state of the intelligent sound box to the operation state before power failure, and when a second preset instruction is obtained within the preset timing duration or the first preset instruction is not obtained when the preset timing duration arrives, it is indicated that the user does not need to restore the operation state of the intelligent sound box to the operation state before power failure.
5. The utility model provides an intelligence audio amplifier power-down state protection device which characterized in that includes:
the power-down state detection module is connected with a main control chip of the intelligent sound box and used for judging whether the intelligent sound box is powered down or not, and outputting a first trigger signal to the main control chip when the intelligent sound box is powered down;
the main control chip is used for storing the current operation data of the intelligent sound box into a memory as recovery data when the first trigger signal is acquired;
and the state storage module is connected with the main control chip of the intelligent sound box and is used for storing recovery data issued by the main control chip.
6. The device of claim 5, wherein the main control chip is further configured to:
after the intelligent sound box is powered on and started, whether a data recovery instruction issued by a user is acquired or not is judged, when the data recovery instruction is acquired, a main control chip of the intelligent sound box is controlled to read the recovery data, and the running state of the intelligent sound box is configured according to the recovery data.
7. The device of claim 5, wherein the main control chip is further configured to: when a power-on starting instruction of the intelligent sound box is acquired, judging whether the running state of the intelligent sound box needs to be restored to the running state before power failure or not according to user operation; when recovery is not needed, the intelligent sound box is directly started; and when the intelligent sound box needs to be recovered, acquiring the recovery data, starting the intelligent sound box and configuring the running state of the intelligent sound box according to the recovery data.
8. The device for protecting a smart sound box from a power failure state according to claim 7, wherein the main control chip is specifically configured to, when determining whether the operating state of the smart sound box needs to be restored to the operating state before the power failure according to a user operation:
when a power-on starting instruction output to the intelligent sound box by a user is detected, outputting first prompt information to the user, wherein the first prompt information is used for prompting the user whether the operation state of the intelligent sound box needs to be restored to the operation state before power failure;
when the first prompt message is output, timing is started, when a first preset instruction is obtained within a preset timing duration, it is indicated that a user needs to restore the operation state of the intelligent sound box to the operation state before power failure, and when a second preset instruction is obtained within the preset timing duration or the first preset instruction is not obtained when the preset timing duration arrives, it is indicated that the user does not need to restore the operation state of the intelligent sound box to the operation state before power failure.
9. The device for protecting the power-down state of the smart sound box according to claim 5, wherein the power-down state detection module comprises:
the filter comprises a first voltage-dividing resistor, a second voltage-dividing resistor and a filter capacitor;
the first end of the first divider resistor is connected with a main board power supply of the intelligent sound box, the first end of the second divider resistor is connected with the second end of the first divider resistor, the second end of the second divider resistor is grounded, the public end of the first divider resistor and the public end of the second divider resistor are connected with the main control chip, and when the main board power supply is powered off, the voltage value of the public end of the first divider resistor and the voltage value of the public end of the second divider resistor serve as the first trigger signal.
10. The utility model provides a mainboard power supply circuit, sets up the mainboard power supply circuit between mainboard power and main control chip, mainboard power supply circuit includes:
the circuit comprises a first isolation resistor, a second isolation resistor, a first energy storage capacitor and a diode;
first ends of the first isolation resistor and the second isolation resistor are connected with the output end of the mainboard power supply, second ends of the first isolation resistor and the second isolation resistor are connected with the first end of the energy storage capacitor, and the second end of the energy storage capacitor is grounded;
the anode of the diode is connected with the first end of the energy storage capacitor, and the second end of the diode is connected with the first ends of the first isolation resistor and the second isolation resistor and the power input end of the main control chip.
CN201910931775.3A 2019-09-29 2019-09-29 Power-down state protection method and device for intelligent sound box and main board power supply circuit Pending CN112579484A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910931775.3A CN112579484A (en) 2019-09-29 2019-09-29 Power-down state protection method and device for intelligent sound box and main board power supply circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910931775.3A CN112579484A (en) 2019-09-29 2019-09-29 Power-down state protection method and device for intelligent sound box and main board power supply circuit

Publications (1)

Publication Number Publication Date
CN112579484A true CN112579484A (en) 2021-03-30

Family

ID=75110927

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910931775.3A Pending CN112579484A (en) 2019-09-29 2019-09-29 Power-down state protection method and device for intelligent sound box and main board power supply circuit

Country Status (1)

Country Link
CN (1) CN112579484A (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0279111A (en) * 1988-09-16 1990-03-19 Canon Inc Electronic apparatus
CN1583364A (en) * 2004-05-22 2005-02-23 宁波摩士集团股份有限公司 Grinding machine parameter testing and analytical system
CN101661320A (en) * 2009-09-25 2010-03-03 宇龙计算机通信科技(深圳)有限公司 Method for power-fail restarting
CN102572110A (en) * 2012-02-07 2012-07-11 深圳市金立通信设备有限公司 Smart phone power-down protection system and method
CN106557438A (en) * 2015-09-30 2017-04-05 中兴通讯股份有限公司 A kind of method of power down protection, device and electronic equipment
CN106886273A (en) * 2017-02-24 2017-06-23 济南浪潮高新科技投资发展有限公司 A kind of power-down protection circuit
CN107392066A (en) * 2017-07-19 2017-11-24 广东欧珀移动通信有限公司 Protect method, mobile terminal and the computer-readable recording medium of data safety
CN110032473A (en) * 2019-04-12 2019-07-19 惠州Tcl移动通信有限公司 Data guard method, device, electronic equipment and system

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0279111A (en) * 1988-09-16 1990-03-19 Canon Inc Electronic apparatus
CN1583364A (en) * 2004-05-22 2005-02-23 宁波摩士集团股份有限公司 Grinding machine parameter testing and analytical system
CN101661320A (en) * 2009-09-25 2010-03-03 宇龙计算机通信科技(深圳)有限公司 Method for power-fail restarting
CN102572110A (en) * 2012-02-07 2012-07-11 深圳市金立通信设备有限公司 Smart phone power-down protection system and method
CN106557438A (en) * 2015-09-30 2017-04-05 中兴通讯股份有限公司 A kind of method of power down protection, device and electronic equipment
WO2017054487A1 (en) * 2015-09-30 2017-04-06 中兴通讯股份有限公司 Power-down protection method and apparatus, and electronic device
CN106886273A (en) * 2017-02-24 2017-06-23 济南浪潮高新科技投资发展有限公司 A kind of power-down protection circuit
CN107392066A (en) * 2017-07-19 2017-11-24 广东欧珀移动通信有限公司 Protect method, mobile terminal and the computer-readable recording medium of data safety
CN110032473A (en) * 2019-04-12 2019-07-19 惠州Tcl移动通信有限公司 Data guard method, device, electronic equipment and system

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
HONGBO YU 等: "Power-down Protection Technology in Embedded System", 2012 4TH INTERNATIONAL CONFERENCE ON INTELLIGENT HUMAN-MACHINE SYSTEMS AND CYBERNETICS, vol. 2, pages 179 - 182, XP032240841, DOI: 10.1109/IHMSC.2012.139 *
周玮;宋启祥;: "基于S3C2410芯片的掉电保护系统设计", 通化师范学院学报, vol. 37, no. 08, 20 August 2016 (2016-08-20), pages 20 - 22 *
周玮;宋启祥;: "基于S3C2410芯片的掉电保护系统设计", 通化师范学院学报, vol. 37, no. 08, pages 20 - 22 *

Similar Documents

Publication Publication Date Title
CN105916010B (en) A kind of standby and awakening method and device of smart television
EP2631736A1 (en) Sleep method, wake method and mobile terminal device
CN110908847A (en) Abnormity recovery method, system, electronic equipment and storage medium
CN108040292B (en) Television standby starting method, television and computer readable storage medium
WO2017045419A1 (en) Method and apparatus for controlling the powering-on of terminal
CN107193555A (en) Restarting method and device for electrical equipment
CN113703557B (en) Method for clearing CMOS information, electronic equipment and clearing chip
CN101661320A (en) Method for power-fail restarting
CN115658113A (en) Server self-starting method and device, readable storage medium and electronic equipment
CN113032788A (en) Firmware image switching method, device and medium in computer system
CN101873217B (en) Ethernet power supply equipment restart control method and device thereof
CN103763596B (en) A kind of state switching method and device
CN108540664B (en) Starting method and electronic equipment
CN108762789A (en) A kind of server node firmware update and relevant apparatus
CN103746835A (en) Data downloading method and apparatus
CN112579484A (en) Power-down state protection method and device for intelligent sound box and main board power supply circuit
CN112732305A (en) Intelligent device upgrading method and device, mobile terminal, intelligent device and medium
CN101320389B (en) File management method and apparatus
CN109933419B (en) Control method and device
CN108767344B (en) Method and device for optimizing power supply of intelligent sound equipment battery
WO2019227769A1 (en) Method and apparatus for controlling storage device, and electronic device
CN114816230A (en) Flash data storage method and device and household appliance
US20130061030A1 (en) System capable of booting through a universal serial bus device and method thereof
CN113866651B (en) Low-power detection method and device for remote controller and remote controller
CN108287670B (en) Method for protecting data during system shutdown and BMC

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