CN111628563A - Power-off protection method and power-off protection device for vending machine and vending machine - Google Patents

Power-off protection method and power-off protection device for vending machine and vending machine Download PDF

Info

Publication number
CN111628563A
CN111628563A CN202010334194.4A CN202010334194A CN111628563A CN 111628563 A CN111628563 A CN 111628563A CN 202010334194 A CN202010334194 A CN 202010334194A CN 111628563 A CN111628563 A CN 111628563A
Authority
CN
China
Prior art keywords
power supply
supply circuit
vending machine
main power
memory
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
CN202010334194.4A
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.)
Hefei Midea Intelligent Technologies Co Ltd
Original Assignee
Hefei Midea Intelligent Technologies 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 Hefei Midea Intelligent Technologies Co Ltd filed Critical Hefei Midea Intelligent Technologies Co Ltd
Priority to CN202010334194.4A priority Critical patent/CN111628563A/en
Publication of CN111628563A publication Critical patent/CN111628563A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J9/00Circuit arrangements for emergency or stand-by power supply, e.g. for emergency lighting
    • H02J9/04Circuit arrangements for emergency or stand-by power supply, e.g. for emergency lighting in which the distribution system is disconnected from the normal source and connected to a standby source
    • H02J9/06Circuit arrangements for emergency or stand-by power supply, e.g. for emergency lighting in which the distribution system is disconnected from the normal source and connected to a standby source with automatic change-over, e.g. UPS systems
    • H02J9/068Electronic means for switching from one power supply to another power supply, e.g. to avoid parallel connection
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J9/00Circuit arrangements for emergency or stand-by power supply, e.g. for emergency lighting
    • H02J9/04Circuit arrangements for emergency or stand-by power supply, e.g. for emergency lighting in which the distribution system is disconnected from the normal source and connected to a standby source
    • H02J9/06Circuit arrangements for emergency or stand-by power supply, e.g. for emergency lighting in which the distribution system is disconnected from the normal source and connected to a standby source with automatic change-over, e.g. UPS systems
    • H02J9/061Circuit arrangements for emergency or stand-by power supply, e.g. for emergency lighting in which the distribution system is disconnected from the normal source and connected to a standby source with automatic change-over, e.g. UPS systems for DC powered loads
    • YGENERAL 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
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02BCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO BUILDINGS, e.g. HOUSING, HOUSE APPLIANCES OR RELATED END-USER APPLICATIONS
    • Y02B70/00Technologies for an efficient end-user side electric power management and consumption
    • Y02B70/30Systems integrating technologies related to power network operation and communication or information technologies for improving the carbon footprint of the management of residential or tertiary loads, i.e. smart grids as climate change mitigation technology in the buildings sector, including also the last stages of power distribution and the control, monitoring or operating management systems at local level
    • YGENERAL 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
    • Y04INFORMATION OR COMMUNICATION TECHNOLOGIES HAVING AN IMPACT ON OTHER TECHNOLOGY AREAS
    • Y04SSYSTEMS INTEGRATING TECHNOLOGIES RELATED TO POWER NETWORK OPERATION, COMMUNICATION OR INFORMATION TECHNOLOGIES FOR IMPROVING THE ELECTRICAL POWER GENERATION, TRANSMISSION, DISTRIBUTION, MANAGEMENT OR USAGE, i.e. SMART GRIDS
    • Y04S20/00Management or operation of end-user stationary applications or the last stages of power distribution; Controlling, monitoring or operating thereof
    • Y04S20/20End-user application control systems

Landscapes

  • Business, Economics & Management (AREA)
  • Emergency Management (AREA)
  • Engineering & Computer Science (AREA)
  • Power Engineering (AREA)
  • Control Of Vending Devices And Auxiliary Devices For Vending Devices (AREA)

Abstract

The invention relates to the field of vending machines, and provides a power-off protection method and a power-off protection device for a vending machine and the vending machine, wherein the vending machine comprises a main power supply circuit and a standby power supply circuit, and the power-off protection method comprises the following steps: monitoring the power supply state of the main power supply circuit; determining that the main power supply circuit is powered off and the standby power supply circuit discharges to a controller and a memory of the vending machine; the controller sends the target data to the memory for storage. According to the power-off protection method of the vending machine, the power supply state of the main power supply circuit is monitored, standby power supply is automatically switched to when power is off, target data are stored, and accordingly list loss can be effectively prevented.

Description

Power-off protection method and power-off protection device for vending machine and vending machine
Technical Field
The invention relates to the technical field of vending machines, in particular to a power-off protection method and a power-off protection device of a vending machine and the vending machine.
Background
With the updated development of retail business, the arrangement range of vending machines is more and more extensive, and a considerable part of vending machines are arranged outdoors. The vending machine is basically powered on by mains supply, and when the power is cut off, if a user just purchases, the shopping data of the user disappears, and disputes between the user and the merchant are caused.
Disclosure of Invention
The present invention is directed to solving at least one of the problems of the prior art. Therefore, the invention provides a power-off protection method for a vending machine, which can effectively prevent the loss of bills by monitoring the power supply state of a main power supply circuit, automatically switching to standby power supply and storing target data when the power is off.
The invention further provides a power-off protection device of the vending machine.
The invention further provides the vending machine.
The invention further provides the electronic equipment.
The invention also proposes a non-transitory computer-readable storage medium.
According to a first aspect of the invention, a power-off protection method for a vending machine, the vending machine comprising a main power supply circuit and a standby power supply circuit, comprises: monitoring the power supply state of the main power supply circuit; determining that the main power supply circuit is powered off and the standby power supply circuit discharges to a controller and a memory of the vending machine; the controller sends the target data to the memory for storage.
The power-off protection method of the vending machine according to the embodiment of the invention further comprises the following steps: determining that the main power supply circuit is powered on; reading the saved target data from the memory; and executing subsequent actions corresponding to the target data based on the target data.
According to the power-off protection method of the vending machine, the monitoring of the power supply state of the main power supply circuit of the vending machine comprises the following steps: monitoring frequency information of the main power supply circuit; determining a power supply state of the main power supply circuit based on the frequency information.
According to the power-off protection method of the vending machine, the determining of the power supply state of the main power supply circuit based on the frequency information comprises the following steps: determining that the frequency information is not consistent with a preset frequency, and judging that the main power supply circuit is powered off; and determining that the frequency information is consistent with a preset frequency, and judging that the main power supply circuit is powered on.
According to the power-off protection method of the vending machine, the determining of the power supply state of the main power supply circuit based on the frequency information comprises the following steps: the power supply detection circuit of the vending machine outputs a low level signal to the controller, and the main power supply circuit is judged to be powered off; and the power supply detection circuit of the vending machine outputs a square wave signal to the controller and judges that the main power supply circuit is powered on.
According to the power-off protection method of the vending machine, the standby power supply circuit is a time-delay power-off circuit, and the time-delay power-off circuit is used for delaying the power-off of the controller and the memory when the main power supply circuit is determined to be powered off.
The power-off protection method of the vending machine according to the embodiment of the invention further comprises the following steps: and determining that the main power supply circuit is powered off, and sending an alarm signal to a server.
According to a second aspect of the invention, a power-off protection device for vending machines comprises: the power supply detection circuit is used for monitoring the power supply state of a main power supply circuit of the vending machine; and the standby power supply circuit is used for discharging to a controller and a memory of the vending machine when the main power supply circuit is determined to be powered off, and the controller sends the target data to the memory for storage.
According to the power-off protection device of the vending machine, the power supply detection circuit is a frequency detection circuit.
According to the power-off protection device of the vending machine provided by the embodiment of the invention, the frequency detection circuit comprises: the current limiting circuit comprises a first current limiting resistor, a second current limiting resistor and a rectifier diode; the anode of the photoelectric coupler is electrically connected with the live wire of the main power supply circuit through the first current-limiting resistor, the cathode of the photoelectric coupler is electrically connected with the zero line of the main power supply circuit through the rectifier diode, the emitter of the photoelectric coupler is grounded, and the collector of the photoelectric coupler is electrically connected with the input end of the controller through the second current-limiting resistor; and the capacitor is connected between the emitter and the collector of the photoelectric coupler in parallel.
According to the power-off protection device of the vending machine, the standby power supply circuit comprises a plurality of energy storage capacitors connected in parallel.
According to a third aspect of the embodiment of the invention, the vending machine comprises: a main power supply circuit; in the power-off protection device according to any one of the above embodiments, the power supply detection circuit is electrically connected to the main power supply circuit, and the standby power supply circuit is electrically connected to the main power supply circuit; the controller is electrically connected with the main power supply circuit and the standby power supply circuit; the memory is electrically connected with the main power supply circuit and the standby power supply circuit, and the memory is electrically connected with the controller.
An electronic device according to a fourth aspect of the present invention comprises a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor executes the program to implement the steps of the power-off protection method for vending machine as described in any of the above.
A non-transitory computer readable storage medium according to an embodiment of the fifth aspect of the present invention, having stored thereon a computer program which, when being executed by a processor, carries out the steps of the power down protection method for a vending machine as recited in any of the above-mentioned claims.
One or more technical solutions in the embodiments of the present invention have at least one of the following technical effects: by monitoring the power supply state of the main power supply circuit, the standby power supply is automatically switched to when the power is off, and the target data is stored, so that the list loss can be effectively prevented.
Furthermore, power supply monitoring can be realized based on frequency detection, and the application cost of the frequency detection is low, so that data loss caused by power failure can be prevented at the lowest cost, and the phenomenon of list loss is caused; in addition, the sensitivity of frequency detection is high, and power failure can be detected within the first time.
Additional aspects and advantages of the invention will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the invention.
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 some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a flow chart of a power down protection method for a vending machine according to one embodiment of the present invention;
FIG. 2 is a flow chart of a power down protection method for a vending machine according to another embodiment of the present invention;
FIG. 3 is a schematic structural diagram of a power outage protection device of a vending machine according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of a power supply detection circuit according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The embodiments of the present invention will be described in further detail with reference to the drawings and examples. The following examples are intended to illustrate the invention but are not intended to limit the scope of the invention.
In the description of the embodiments of the present invention, it should be noted that the terms "first" and "second" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance.
In the description of the embodiments of the present invention, it should be noted that, unless explicitly stated or limited otherwise, the terms "connected" and "connected" are to be interpreted broadly, and may be, for example, fixedly connected, detachably connected, or integrally connected; can be mechanically or electrically connected; may be directly connected or indirectly connected through an intermediate. Specific meanings of the above terms in the embodiments of the present invention can be understood in specific cases by those of ordinary skill in the art.
In the description herein, references to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of an embodiment of the invention. In this specification, the schematic representations of the terms used above are not necessarily intended to refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, various embodiments or examples and features of different embodiments or examples described in this specification can be combined and combined by one skilled in the art without contradiction.
The following describes a power-off protection method for a vending machine according to an embodiment of the present invention with reference to fig. 1 to 4, which can be used in a power-off situation of the vending machine during a shopping process.
As shown in fig. 1, the power-off protection method for vending machines according to the embodiment of the present invention includes steps S100 to S300.
And S100, monitoring the power supply state of a main power supply circuit of the vending machine.
It should be noted that the vending machine is usually supplied by the mains supply, that is, the main power supply circuit of the vending machine is connected to the mains supply, and for example, in continental china, the main power supply circuit of the vending machine is connected to the 220V and 50Hz alternating current.
In embodiments where the vending machine is normally mains powered, the purpose of this step is to monitor whether the mains is normally powered.
And S200, determining that the main power supply circuit is powered off, and discharging the standby power supply circuit of the vending machine to a controller and a memory of the vending machine.
It can be understood that the power supply state of the main power supply circuit is monitored to determine that the main power supply circuit of the vending machine is powered off, at the moment, the standby power supply circuit of the vending machine automatically enters a discharging working condition, and the standby power supply circuit discharges power to the controller and the memory of the vending machine.
The standby power supply circuit can maintain weak current power supply so as to ensure that the controller and the memory can keep a power-on state within a certain time and prevent data loss.
And step S300, the controller sends the target data to a memory for storage.
It is understood that the target data may be a record of all states before power failure, including current user information, commodity information, states of door locks, and other information for settlement.
According to the power-off protection method of the vending machine, the power supply state of the main power supply circuit is monitored, standby power supply is automatically switched to when power is off, target data are stored, and accordingly list loss can be effectively prevented.
The standby power supply circuit can be a time-delay power-off circuit, the time-delay power-off circuit is used for delaying the power-off of the controller and the memory when the main power supply circuit is determined to be powered off, and the memory can collect and store the operation data of the vending machine when the main power supply circuit is powered off by utilizing the time of the power-off delay. The standby power supply circuit can be electrically connected with the main power supply circuit, and when the main power supply circuit supplies power normally, the main power supply circuit charges the standby power supply circuit, so that the standby power supply circuit is kept in a normal full power state; when the main power supply circuit is powered off, the standby power supply circuit can work immediately. In this way, the need for replacement and maintenance of the backup power supply circuit can be eliminated.
In the related art, the power-down state is maintained by a backup battery, but the battery has a limited time for maintaining the power supply and is worn, and for an outdoor vending machine, the battery has a safety problem and is relatively high in maintenance cost. In the embodiment of the invention, the standby power supply circuit is charged through the main power supply circuit, and compared with a standby battery in the related technology, the design greatly reduces the use and maintenance cost.
In some embodiments, as shown in fig. 2, the power-off protection method of the embodiment of the present invention further includes: determining that a main power supply circuit is powered on; reading the saved target data from the memory; based on the target data, a subsequent action corresponding to the target data is performed.
The subsequent action may include settlement. In other words, when the power is turned on again, the controller reads the data from the memory again, and the settlement is completed.
In some embodiments, the monitoring the power supply state of the main power supply circuit of the vending machine in step S100 includes: monitoring frequency information of a main power supply circuit; based on the frequency information, a power supply state of the main power supply circuit is determined.
That is to say, the power failure protection method of the embodiment can realize power supply monitoring based on frequency detection, and the application cost of the frequency detection is low, so that data loss caused by power failure can be prevented at the lowest cost, and the phenomenon of list loss is caused.
In addition, the sensitivity of frequency detection is high, and power failure can be detected within the first time.
Thus, when the power is cut off, the frequency disappears, when the standby power supply circuit maintains weak current, the user information and the door lock state are saved in the memory, and when the power is re-turned on, the controller re-reads the data from the memory to complete settlement.
In an actual implementation, the step of determining the power supply state of the main power supply circuit based on the frequency information includes: determining that the frequency information is not consistent with a preset frequency, and judging that the main power supply circuit is powered off; and determining that the frequency information is consistent with the preset frequency, and judging that the main power supply circuit is powered on. Taking the continental area of China as an example, a main power supply circuit of the vending machine is connected with 220V/50Hz alternating current, and the preset frequency is 50 Hz.
In some embodiments, the step of determining the power state of the main power supply circuit based on the frequency information comprises: a power supply detection circuit of the vending machine outputs a low level signal to the controller to judge that the main power supply circuit is powered off; and a power supply detection circuit of the vending machine outputs a square wave signal to the controller and judges that the main power supply circuit is powered on. The hardware implementation of the method can refer to the circuit structure of fig. 3.
In some embodiments, the power-off protection method may further include: and determining that the main power supply circuit is powered off, and sending an alarm signal to the server.
In a practical implementation, the vending machine has a signal transceiver that sends an alarm signal to the server upon determining that the main power supply circuit is powered down. The signal transceiver may be a wireless or wired transceiver.
The following describes the power failure protection device of the vending machine according to the embodiment of the present invention, and the power failure protection device of the vending machine described below and the power failure protection method of the vending machine described above may be referred to correspondingly.
In some embodiments, as shown in fig. 3, the power-off protection device of the vending machine according to the embodiments of the present invention includes: a power supply detection circuit 510 and a backup power supply circuit 520.
The power supply detection circuit 510 is configured to monitor a power supply state of a main power supply circuit of the vending machine; the standby power supply circuit 520 is used for discharging power to the controller and the memory of the vending machine when the main power supply circuit is determined to be powered off, and the controller sends the target data to the memory for storage.
According to the power-off protection device of the vending machine, the power supply state of the main power supply circuit is monitored, standby power supply is automatically switched to when power is off, target data are stored, and the bill loss can be effectively prevented.
In some embodiments, the supply detection circuit is a frequency detection circuit. The application cost of frequency detection is low, so that data loss caused by power failure can be prevented at the lowest cost, and the phenomenon of ticket loss is caused. In addition, the sensitivity of frequency detection is high, and power failure can be detected within the first time.
As shown in fig. 4, the frequency detection circuit may include: the circuit comprises a first current limiting resistor R4, a second current limiting resistor R6, a rectifier diode D2, a photoelectric coupler IC1 and a capacitor C3.
The anode 1 of the photoelectric coupler IC1 is electrically connected with the live wire ACL of the main power supply circuit through a first current-limiting resistor R4, the cathode 2 of the photoelectric coupler IC1 is electrically connected with the zero wire ACN of the main power supply circuit through a rectifier diode D2, the emitter 3 of the photoelectric coupler IC1 is grounded GND, the collector 4 of the photoelectric coupler IC1 is electrically connected with the input end MCUinto of the controller MCU through a second current-limiting resistor R6, a capacitor C3 is connected between the emitter 3 and the collector 4 of the photoelectric coupler IC1 in parallel, and the collector 4 of the photoelectric coupler IC1 is also connected with a power supply through a third current-limiting resistor R5. The frequency detection circuit with the structural form is low in application cost.
The standby power supply circuit can be electrically connected with the main power supply circuit, and when the main power supply circuit supplies power normally, the main power supply circuit charges the standby power supply circuit, so that the standby power supply circuit is kept in a normal full power state; when the main power supply circuit is powered off, the standby power supply circuit can work immediately. In this way, the need for replacement and maintenance of the backup power supply circuit can be eliminated. In some embodiments, the backup power supply circuit includes a plurality of energy storage capacitors connected in parallel.
In the related art, the power-down state is maintained by a backup battery, but the battery has a limited time for maintaining the power supply and is worn, and for an outdoor vending machine, the battery has a safety problem and is relatively high in maintenance cost. In the embodiment of the invention, the standby power supply circuit is charged through the main power supply circuit, and compared with a standby battery in the related technology, the design greatly reduces the use and maintenance cost.
The invention also discloses a vending machine which can be an unmanned retail cabinet, an express delivery cabinet, a display cabinet and the like.
The vending machine of the embodiment of the invention comprises: the power supply circuit comprises a main power supply circuit, a power-off protection device, a controller and a memory.
The power-off protection device is the power-off protection device of any one of the embodiments, a power supply detection circuit of the power-off protection device is electrically connected with a main power supply circuit, and a standby power supply circuit of the power-off protection device is electrically connected with the main power supply circuit; the controller is electrically connected with the main power supply circuit and the standby power supply circuit; the memory is electrically connected with both the main power supply circuit and the standby power supply circuit, and the memory is electrically connected with the controller.
According to the vending machine provided by the embodiment of the invention, the power supply state of the main power supply circuit is monitored, the standby power supply is automatically switched to when the power is off, and the target data is stored, so that the bill loss can be effectively prevented.
The memory can be a charged erasable programmable read-only memory (EEPROM), and the memory can be a charged erasable programmable read-only memory inside the controller, so that the power consumption of the controller and the memory is low, and a standby power supply circuit is convenient to arrange.
Fig. 5 illustrates a physical structure diagram of an electronic device, which may include, as shown in fig. 5: a processor (processor)810, a communication Interface 820, a memory 830 and a communication bus 840, wherein the processor 810, the communication Interface 820 and the memory 830 communicate with each other via the communication bus 840. The processor 810 may invoke logic instructions in the memory 830 to perform a power down protection method for a vending machine, the method comprising: monitoring the power supply state of a main power supply circuit of the vending machine; determining that the main power supply circuit is powered off, and discharging a standby power supply circuit of the vending machine to a controller and a memory of the vending machine; the controller sends the target data to the memory for storage.
It should be noted that, when being implemented specifically, the electronic device in this embodiment may be a server, a PC, or other devices, as long as the structure includes the processor 810, the communication interface 820, the memory 830, and the communication bus 840 shown in fig. 5, where the processor 810, the communication interface 820, and the memory 830 complete mutual communication through the communication bus 840, and the processor 810 may call the logic instructions in the memory 830 to execute the above method. The embodiment does not limit the specific implementation form of the electronic device.
In addition, the logic instructions in the memory 830 may be implemented in software functional units and stored in a computer readable storage medium when the logic instructions are sold or used as independent products. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
Further, an embodiment of the present invention discloses a computer program product, the computer program product includes a computer program stored on a non-transitory computer readable storage medium, the computer program includes program instructions, when the program instructions are executed by a computer, the computer can execute the power-off protection method for a vending machine provided by the above-mentioned method embodiments, the method includes: monitoring the power supply state of a main power supply circuit of the vending machine; determining that the main power supply circuit is powered off, and discharging a standby power supply circuit of the vending machine to a controller and a memory of the vending machine; the controller sends the target data to the memory for storage.
In another aspect, an embodiment of the present invention further provides a non-transitory computer-readable storage medium, on which a computer program is stored, where the computer program is implemented by a processor to perform the power-off protection method for a vending machine provided in the foregoing embodiments, where the method includes: monitoring the power supply state of a main power supply circuit of the vending machine; determining that the main power supply circuit is powered off, and discharging a standby power supply circuit of the vending machine to a controller and a memory of the vending machine; the controller sends the target data to the memory for storage.
The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and 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.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. With this understanding in mind, the above-described technical solutions may be embodied in the form of a software product, which can be stored in a computer-readable storage medium such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in the embodiments or some parts of the embodiments.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.
The above embodiments are merely illustrative of the present invention and are not to be construed as limiting the invention. Although the present invention has been described in detail with reference to the embodiments, it should be understood by those skilled in the art that various combinations, modifications or equivalents may be made to the technical solution of the present invention without departing from the spirit and scope of the technical solution of the present invention, and the technical solution of the present invention is covered by the claims of the present invention.

Claims (14)

1. A power-off protection method for vending machines, characterized in that said vending machines comprise a main power supply circuit and a standby power supply circuit, said power-off protection method comprising:
monitoring the power supply state of the main power supply circuit;
determining that the main power supply circuit is powered off and the standby power supply circuit discharges to a controller and a memory of the vending machine;
the controller sends the target data to the memory for storage.
2. The power-off protection method for vending machine according to claim 1, further comprising:
determining that the main power supply circuit is powered on;
reading the saved target data from the memory;
and executing subsequent actions corresponding to the target data based on the target data.
3. The power-off protection method for vending machine according to claim 1 or 2, characterized in that said monitoring of the power supply status of the main power supply circuit of the vending machine comprises:
monitoring frequency information of the main power supply circuit;
determining a power supply state of the main power supply circuit based on the frequency information.
4. The power-off protection method for vending machine according to claim 3, wherein said determining the power supply status of the main power supply circuit based on the frequency information comprises:
determining that the frequency information is not consistent with a preset frequency, and judging that the main power supply circuit is powered off;
and determining that the frequency information is consistent with a preset frequency, and judging that the main power supply circuit is powered on.
5. The power-off protection method for vending machine according to claim 3, wherein said determining the power supply status of the main power supply circuit based on the frequency information comprises:
the power supply detection circuit of the vending machine outputs a low level signal to the controller, and the main power supply circuit is judged to be powered off;
and the power supply detection circuit of the vending machine outputs a square wave signal to the controller and judges that the main power supply circuit is powered on.
6. The power-off protection method for vending machine according to claim 1 or 2, wherein the standby power supply circuit is a time-delay power-off circuit for delaying the power-off of the controller and the memory upon determining that the main power supply circuit is powered off.
7. The power-off protection method for vending machine according to claim 1 or 2, characterized in that it further comprises:
and determining that the main power supply circuit is powered off, and sending an alarm signal to a server.
8. A power-off protection device for vending machines, comprising:
the power supply detection circuit is used for monitoring the power supply state of a main power supply circuit of the vending machine;
and the standby power supply circuit is used for discharging to a controller and a memory of the vending machine when the main power supply circuit is determined to be powered off, and the controller sends the target data to the memory for storage.
9. The power-off protection device for vending machine as recited in claim 8, wherein the power supply detection circuit is a frequency detection circuit.
10. The power down protection device for vending machine as recited in claim 9, wherein the frequency detection circuit comprises:
the current limiting circuit comprises a first current limiting resistor, a second current limiting resistor and a rectifier diode;
the anode of the photoelectric coupler is electrically connected with the live wire of the main power supply circuit through the first current-limiting resistor, the cathode of the photoelectric coupler is electrically connected with the zero line of the main power supply circuit through the rectifier diode, the emitter of the photoelectric coupler is grounded, and the collector of the photoelectric coupler is electrically connected with the input end of the controller through the second current-limiting resistor;
and the capacitor is connected between the emitter and the collector of the photoelectric coupler in parallel.
11. The power down protection device for vending machine as recited in claim 8, wherein the backup power supply circuit comprises a plurality of energy storage capacitors connected in parallel.
12. A vending machine, comprising:
a main power supply circuit;
the power down protection device of any of claims 8-11, the power supply detection circuit electrically connected to the main power supply circuit, the backup power supply circuit electrically connected to the main power supply circuit;
the controller is electrically connected with the main power supply circuit and the standby power supply circuit;
the memory is electrically connected with the main power supply circuit and the standby power supply circuit, and the memory is electrically connected with the controller.
13. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the steps of the power-off protection method of a vending machine according to any one of claims 1 to 7 are implemented when the processor executes said program.
14. A non-transitory computer readable storage medium, having stored thereon a computer program, characterized in that the computer program, when being executed by a processor, is adapted to carry out the steps of a power-off protection method for a vending machine according to any one of claims 1 to 7.
CN202010334194.4A 2020-04-24 2020-04-24 Power-off protection method and power-off protection device for vending machine and vending machine Pending CN111628563A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010334194.4A CN111628563A (en) 2020-04-24 2020-04-24 Power-off protection method and power-off protection device for vending machine and vending machine

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010334194.4A CN111628563A (en) 2020-04-24 2020-04-24 Power-off protection method and power-off protection device for vending machine and vending machine

Publications (1)

Publication Number Publication Date
CN111628563A true CN111628563A (en) 2020-09-04

Family

ID=72270856

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010334194.4A Pending CN111628563A (en) 2020-04-24 2020-04-24 Power-off protection method and power-off protection device for vending machine and vending machine

Country Status (1)

Country Link
CN (1) CN111628563A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112910075A (en) * 2021-01-21 2021-06-04 合肥美的智能科技有限公司 Power failure prompting method and device, retail device and readable storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US3562624A (en) * 1966-09-27 1971-02-09 Agie Ag Ind Elektronik Method and apparatus for influencing the output voltages of current supply installations
CN101841184A (en) * 2010-03-12 2010-09-22 英华达(南京)科技有限公司 Power supply switching device and method thereof
CN201697990U (en) * 2010-06-29 2011-01-05 威胜集团有限公司 Detecting circuit for power transmission and failure states of electric energy meter
CN102355048A (en) * 2011-09-19 2012-02-15 河北工业大学 Intelligent dual-power automatic transfer switch and running method
CN104834369A (en) * 2015-05-11 2015-08-12 北方信息控制集团有限公司 Power failure data protection device of real-time control system
CN107193360A (en) * 2017-06-20 2017-09-22 深圳市雷赛智能控制股份有限公司 Power failure protection method and master control device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US3562624A (en) * 1966-09-27 1971-02-09 Agie Ag Ind Elektronik Method and apparatus for influencing the output voltages of current supply installations
CN101841184A (en) * 2010-03-12 2010-09-22 英华达(南京)科技有限公司 Power supply switching device and method thereof
CN201697990U (en) * 2010-06-29 2011-01-05 威胜集团有限公司 Detecting circuit for power transmission and failure states of electric energy meter
CN102355048A (en) * 2011-09-19 2012-02-15 河北工业大学 Intelligent dual-power automatic transfer switch and running method
CN104834369A (en) * 2015-05-11 2015-08-12 北方信息控制集团有限公司 Power failure data protection device of real-time control system
CN107193360A (en) * 2017-06-20 2017-09-22 深圳市雷赛智能控制股份有限公司 Power failure protection method and master control device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
王其英: "《实用电源技术手册:UPS电源分册》", 30 June 2002 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112910075A (en) * 2021-01-21 2021-06-04 合肥美的智能科技有限公司 Power failure prompting method and device, retail device and readable storage medium
CN112910075B (en) * 2021-01-21 2024-03-12 合肥美的智能科技有限公司 Power outage prompting method and device, retail device and readable storage medium

Similar Documents

Publication Publication Date Title
KR101151050B1 (en) System for Electric Energy Management
CN104025421B (en) The method and apparatus of main selection logic in UPS parallel systems
CN103023100B (en) Electric bicycle storage battery management system and method based on Internet of Things
CN106372820A (en) Automatic payment reminding method and system
CN107590874A (en) Safety route inspection method and inspection mobile terminal
CN105703475A (en) Method and system of uninterrupted intelligent power supply of ATM
CN106199261B (en) Electric appliance Degree of Ageing Internet-based continues detection system and detection method
CN105761167A (en) Method for evaluating health status of transformer station secondary equipment
CN110739661A (en) overcurrent protection device and board card
CN107579861A (en) Website Usability alarm method, device and electronic equipment based on multi-line monitoring
CN107104479A (en) A kind of portable power source for portable power source lease service
CN207249075U (en) A kind of accumulator electric-quantity monitoring system of IDC stand-by power supplies
CN111628563A (en) Power-off protection method and power-off protection device for vending machine and vending machine
CN207318960U (en) Remote vehicle monitoring device and system
CN111211596B (en) Method and device for monitoring power utilization state of charging cabinet
CN113690969A (en) Sweeping robot, charging control method and device thereof, and storage medium
CN116331056A (en) Shared power conversion method, shared power conversion device and electronic equipment
CN105207367B (en) A kind of electric power remote monitoring and control system
CN109412819A (en) Method and device for warning device power down
CN105914876A (en) Electricity utilization inspection management system having electricity-stealing prevention function and management method thereof
CN103001323B (en) Relay and data processing method
CN106785124A (en) battery internet of things monitoring method and system
CN207719890U (en) A kind of integrated ups system of micromodule cabinet
CN115291120A (en) Battery metering system, electronic equipment and control method
CN108631438A (en) A kind of intelligent power control method and its intelligent power, cloud computing center based on cloud computing

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20200904