CN2852489Y - Power-off protection circuit of tax-controlled cash register - Google Patents
Power-off protection circuit of tax-controlled cash register Download PDFInfo
- Publication number
- CN2852489Y CN2852489Y CN 200520036593 CN200520036593U CN2852489Y CN 2852489 Y CN2852489 Y CN 2852489Y CN 200520036593 CN200520036593 CN 200520036593 CN 200520036593 U CN200520036593 U CN 200520036593U CN 2852489 Y CN2852489 Y CN 2852489Y
- Authority
- CN
- China
- Prior art keywords
- tax
- cash register
- power supply
- connects
- power
- 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.)
- Expired - Fee Related
Links
Landscapes
- Cash Registers Or Receiving Machines (AREA)
- Power Sources (AREA)
Abstract
The utility model discloses a power-off protection circuit of a tax-controlled cash register. A 5V voltage output end of a switching power supply is connected with a power supply input end of a tax-controlled cash register system; a 12V voltage output end of the switching power supply is respectively connected with power supply input ends of a printer of the tax-controlled cash register and the tax-controlled cash register system. A voltage regulator circuit is arranged between the 12V voltage output end of the switching power supply and the power supply input end of the tax-controlled cash register system; accumulators are connected between the 12V voltage output end of the switching power supply and the power supply input ends of the tax-controlled cash register system and the printer of the tax-controlled cash register; the accumulators are controlled by a discharge circuit and a switching circuit. The power-off protection circuit of a tax-controlled cash register of the utility model causes the tax-controlled cash register to ensure the accuracy and the integrity of user information and data by adding a spare power supply on power-off protection when the tax-controlled cash register encounters sudden power-off. The utility model provides powerful guarantee for the security and the seriousness of the tax-controlled cash register, and is mainly used for the tax-controlled cash registers.
Description
Technical field
The utility model relates to tax-control cash register, especially a kind of tax-control cash register power-off protecting circuit.
Background technology
Operation task to some data; must under continual situation, finish; printing invoice as tax-control cash register; yet power supply is stable to be the basic guarantee that the tax control cash receiving function is finished printing invoice smoothly; but; if sudden power in print procedure; will there be certain defective in the integrality aspect that invoice data is printed; this just requires under the situation of sudden power; guarantee the tax-supervise system sign indicating number integrality and this moment tax-control cash register to the integrality of storage data; for this reason, we have designed a kind of tax-control cash register power-off protecting circuit.
Summary of the invention
The purpose of this utility model provides a kind of when meeting with sudden power, can guarantee the tax-control cash register power-off protecting circuit of the accuracy and the integrality of user profile and data.
In order to achieve the above object; the utility model adopts following technical scheme: a kind of tax-control cash register power-off protecting circuit; comprise Switching Power Supply; the 5V voltage output end of described Switching Power Supply connects the power input of system of tax-supervising cash register; the 12V voltage output end of described Switching Power Supply connects the power input of tax-control cash register printer and system of tax-supervising cash register respectively; between the power input of the 12V of Switching Power Supply voltage output end and system of tax-supervising cash register, voltage stabilizing circuit is arranged; be connected with storage battery between the power input of Switching Power Supply 12V voltage output end and system of tax-supervising cash register and tax-control cash register printer, this storage battery is by discharge loop and switching circuit control.
Described discharge loop is made of resistance, electric capacity, and wherein an end of electric capacity is connected with the 12V voltage output end of Switching Power Supply and the positive pole of storage battery, and the other end of electric capacity connects the negative pole and the ground connection of storage battery; One end of resistance is connected with the 12V voltage output end of Switching Power Supply, and the other end of resistance connects the base stage of second triode in the switching circuit.
Described switching circuit is made of first triode, second triode, wherein the emitter of first triode connects the positive pole of storage battery, the collector electrode of first triode connects the input of voltage stabilizing circuit and the output of Switching Power Supply 12V voltage, and the base stage of first triode connects the collector electrode of second triode and the positive pole of storage battery; The base stage of second triode connects resistance, the grounded emitter of second triode and the negative pole that connects storage battery.
Described voltage stabilizing circuit adopts chip 7805, and the input of this chip connects the output of Switching Power Supply 12V voltage, and the output of this chip connects the power input of system of tax-supervising cash register.
The power input that connects system of tax-supervising cash register in this programme owing to the 5V voltage output end of Switching Power Supply, this 5V voltage can directly provide operating voltage to system of tax-supervising cash register, the 12V voltage output end of Switching Power Supply connects the power input of tax-control cash register printer and system of tax-supervising cash register respectively, between the power input of the 12V of Switching Power Supply voltage output end and system of tax-supervising cash register, voltage stabilizing circuit is arranged, this 12V voltage can provide operating voltage directly for the tax-control cash register printer, simultaneously, when running into unexpected power failure, this 12V voltage step-down also can provide the operating voltage of certain hour after for 5V voltage to system of tax-supervising cash register.Between the power input of Switching Power Supply 12V voltage output end and system of tax-supervising cash register, be connected with storage battery, simultaneously also be connected same storage battery with the power input of tax-control cash register printer at Switching Power Supply 12V voltage output end, like this, when running into unexpected power-off condition, this storage battery can be the printer and the system of tax-supervising cash register emergency service of tax-control cash register simultaneously.Thereby this scheme has adopted the protection scheme of 3 grades of power supplies: at first the 5V voltage by Switching Power Supply output provides system works voltage, and other one group of 11V voltage output provides to be used to printer; When system power supply meets with sudden power, then slow than 5V voltage owing to the 12V electric voltage dropping if this moment, printer was not printed action when supply voltage begins to descend, its output is system's power supply via taking over 5V output group after 7805 voltage stabilizings; When meeting with worst case, by chance also in work, then the switch of being made up of BG1, BG2 will be opened standby battery group BT1 to printer when both cutting off the power supply, and this battery pack can offer the emergency service of printer and system's short time.The parameter of the discharge loop that can be made of this time of delay C1, R4 is by test and test is concrete determines.In order to improve power-efficient, load capacity, we have selected the supply power mode of Switching Power Supply for use in this programme, relative linear power supply, and Switching Power Supply can provide long power-on time when outage.The utility model tax-control cash register power-off protecting circuit makes tax-control cash register take certain measure on power-off protection; guaranteed to the full extent that by adding back-up source this machine is when meeting with sudden power; the accuracy of user profile and data and integrality are for the fail safe and the seriousness of tax-control cash register provides sound assurance.And under the situation of sudden power, back-up source starts, the electric energy of back-up source can provide greater than the electric energy guarantee of finishing the maximum duration that these required by task want, even when printing invoice under the situation of sudden power, also can guarantee the tax-supervise system sign indicating number integrality and this moment machine to the integrality of storage data.
Description of drawings
Fig. 1 is a circuit diagram of the present utility model.
Embodiment
The circuit structure of the utility model tax-control cash register power-off protecting circuit is as shown in Figure 1: a kind of tax-control cash register power-off protecting circuit; comprise Switching Power Supply; the 5V voltage output end of described Switching Power Supply connects the power input of system of tax-supervising cash register; the 12V voltage output end of described Switching Power Supply connects the power input of tax-control cash register printer and system of tax-supervising cash register respectively; between the power input of the 12V of Switching Power Supply voltage output end and system of tax-supervising cash register, voltage stabilizing circuit is arranged; be connected with storage battery between the power input of Switching Power Supply 12V voltage output end and system of tax-supervising cash register and tax-control cash register printer, this storage battery is by discharge loop and switching circuit control.Described discharge loop is made of resistance R 4, capacitor C 1, and wherein an end of capacitor C 1 is connected with the 12V voltage output end of Switching Power Supply and the positive pole of storage battery BT1, and the other end of capacitor C 1 connects negative pole and the ground connection of storage battery BT1; One end of resistance R 4 is connected with the 12V voltage output end of Switching Power Supply, and the other end of resistance R 4 connects the base stage of the second triode BG2 in the switching circuit.Described switching circuit is made of the first triode BG1, the second triode BG2, wherein the emitter of the first triode BG1 connects the positive pole of storage battery BT1, the collector electrode of the first triode BG1 connects the input of voltage stabilizing circuit IC1 and the output of Switching Power Supply 12V voltage, and the base stage of the first triode BG1 connects the collector electrode of the second triode BG2 and the positive pole of storage battery BT1; The base stage of the second triode BG2 connects the grounded emitter of resistance R 4, the second triode BG2 and the negative pole that connects storage battery BT1.Described voltage stabilizing circuit IC1 adopts chip 7805, and the input of this chip connects the output of Switching Power Supply 12V voltage, and the output of this chip connects the power input of system of tax-supervising cash register.
The utility model is to come like this tax-control cash register is realized power-off protecting circuit, and this scheme has adopted the protection scheme of 3 grades of power supplies:
At first the 5V voltage by Switching Power Supply output provides system works voltage, and other one group of 11V voltage output provides to be used to printer.
When system power supply meets with sudden power, then slow than 5V voltage owing to the 12V electric voltage dropping if this moment, printer was not printed action when supply voltage begins to descend, its output is system's power supply via taking over 5V output group after 7805 voltage stabilizings.
When meeting with worst case, by chance also in work, then the switch of being made up of BG1, BG2 will be opened standby battery group BT1 to printer when both cutting off the power supply, and this battery pack can offer the emergency service of printer and system's short time.The parameter of the discharge loop that can be made of this time of delay C1, R4 is by test and test is concrete determines.
The power-off protection of others is as follows:
1, the power-off protection in the invoice distribution procedure:
When the user buys a/d, need the file data in the subscriber card is sent in the corresponding units of tax-control cash register, to finish the distribute work of invoice.
Do not take any protection strategy if in the process of distribution invoice outage takes place, the invoice information that will cause the user to buy is lost.For this reason, we have utilized the interim backup file in the invoice distribution, and promptly the file indications is the fail safe that the file of EF07 (H) guarantees this process.
Simultaneously, our power-off signal of on hardware circuit, designing.After the civil power power down, Mcu can receive this signal, can guarantee to stop program before critical workflow, guarantees the complete reliable of data.
If in the process of distribution invoice sudden power has taken place, at first, stand-by power supply can start, and guarantees finishing smoothly of this process, the about 3 second time of the longest needs of this process.
If power down in distribution procedure, then the machine invoice volume that will pass through to be write down is counted the comparison that matches of information and temporary file.If the data of storing in data and the machine in the card are inconsistent, continue from card, to read invoice information, guarantee this information integrity.
2, the power-off protection in the initialization procedure:
In initialization, most critical be protection after the MAC2 verification is legal, PIN deposits and puts the sign that succeeds in registration.If be provided with at registered symbol, and PIN will cause the failure of this registration, and this card can not be registered once more when not write down by cash register.We adopt the power down sign to solve this problem, and a power down flag bit is set in EEPROM, if if find to fall electricity in the last time registration, read relevant information to tax-control cash register from tax-controlling card, subscriber card in registration, proceed registration again.
This process can't cause a card of registering or use other people Cali " to deceive " purpose that machine reaches registration with the mode of power down.Because use the card that does not have registration, this card of tax control opportunity discovery is not registered and is refused to draw a bill; If use other people card, can't be by the inspection process of PIN.
Simultaneously, our power-off signal of on hardware circuit, designing.After the civil power power down, Mcu can receive this signal, can guarantee to stop program before critical workflow, guarantees the complete reliable of data.
If power down takes place MCU with the PIN write storage unit time, our back-up source also can guarantee writing of data.Registration process probably needs 3 second time, and stand-by power supply will guarantee finishing of this process as far as possible.
3, the power-off protection in print procedure:
In printing, what we will protect is the tax-supervise system sign indicating number.Because there is not the invoice of printing false-proof tax control sign indicating number not come into force in actual use, but the invoice of the tax-supervise system sign indicating number of having been got, and it is used that card can be considered to again.
At this situation, the safeguard measure that we adopt is: use stand-by power supply, guarantee that the printing of tax-supervise system sign indicating number is finished, guarantee to finish obtaining and storage work of tax-supervise system sign indicating number by software flow in the shortest time simultaneously.
We just reached before printing false-proof tax control sign indicating number, and stored this data at this machine, sent the printing of printer afterwards, in the worst case, above 3 step work electric energy that can provide by reserve battery fully finish.
Like this, take out, but do not have enough time to print, cause invalidated ticket with regard to having guaranteed that the tax-supervise system sign indicating number can not cause because of outage.Perhaps print the tax-supervise system sign indicating number and do not finished data recording.
4, the power-off protection in declaring flow process:
In aggregation process, what we will protect is to gather sign.Be written into if gather sign, and program is not finished smoothly.Then can cause the mistake of combined data.Finished by subscriber card owing to gather operation, we have only the externally supply of back-up source, to avoid the appearance of this situation.
Simultaneously, our power-off signal of on hardware circuit, designing.After the civil power power down, Mcu can receive this signal, can guarantee to stop program before critical workflow, guarantees the complete reliable of data.
Whole process of declaring approximately needs 3 second time, and we adopt stand-by power supply to guarantee carrying out smoothly of this process.
In sum, by the method that hardware and software combines, we have guaranteed the stable operation of tax control machine to the full extent.Protect the complete of data in the key operation, realized power-down protection.
Claims (4)
1; a kind of tax-control cash register power-off protecting circuit; it is characterized in that: comprise Switching Power Supply; the 5V voltage output end of described Switching Power Supply connects the power input of system of tax-supervising cash register; the 12V voltage output end of described Switching Power Supply connects the power input of tax-control cash register printer and system of tax-supervising cash register respectively; between the power input of the 12V of Switching Power Supply voltage output end and system of tax-supervising cash register, voltage stabilizing circuit is arranged; be connected with storage battery between the power input of Switching Power Supply 12V voltage output end and system of tax-supervising cash register and tax-control cash register printer, this storage battery is by discharge loop and switching circuit control.
2, tax-control cash register power-off protecting circuit according to claim 1, it is characterized in that: discharge loop is made of resistance (R4), electric capacity (C1), wherein an end of electric capacity (C1) is connected with the 12V voltage output end of Switching Power Supply and the positive pole of storage battery (BT1), and the other end of electric capacity (C1) connects the negative pole and the ground connection of storage battery (BT1); One end of resistance (R4) is connected with the 12V voltage output end of Switching Power Supply, and the other end of resistance (R4) connects the base stage of second triode (BG2) in the switching circuit.
3, tax-control cash register power-off protecting circuit according to claim 1, it is characterized in that: switching circuit is made of first triode (BG1), second triode (BG2), wherein the emitter of first triode (BG1) connects the positive pole of storage battery (BT1), the collector electrode of first triode (BG1) connects the input of voltage stabilizing circuit (IC1) and the output of Switching Power Supply 12V voltage, and the base stage of first triode (BG1) connects the collector electrode of second triode (BG2) and the positive pole of storage battery (BT1); The base stage of second triode (BG2) connects resistance (R4), the grounded emitter of second triode (BG2) and the negative pole that connects storage battery (BT1).
4, tax-control cash register power-off protecting circuit according to claim 1; it is characterized in that: voltage stabilizing circuit (IC1) adopts chip 7805; the input of this chip connects the output of Switching Power Supply 12V voltage, and the output of this chip connects the power input of system of tax-supervising cash register.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 200520036593 CN2852489Y (en) | 2005-12-21 | 2005-12-21 | Power-off protection circuit of tax-controlled cash register |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 200520036593 CN2852489Y (en) | 2005-12-21 | 2005-12-21 | Power-off protection circuit of tax-controlled cash register |
Publications (1)
Publication Number | Publication Date |
---|---|
CN2852489Y true CN2852489Y (en) | 2006-12-27 |
Family
ID=37586444
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN 200520036593 Expired - Fee Related CN2852489Y (en) | 2005-12-21 | 2005-12-21 | Power-off protection circuit of tax-controlled cash register |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN2852489Y (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104139525A (en) * | 2014-07-08 | 2014-11-12 | 燕山大学 | 3D printer power-off protection system and implementation method thereof |
CN105599467A (en) * | 2014-11-14 | 2016-05-25 | 株式会社理光 | Image forming apparatus |
WO2019100655A1 (en) * | 2017-11-24 | 2019-05-31 | 平安科技(深圳)有限公司 | Method and apparatus for constructing invoice requisition anomalies, computer device and storage medium |
-
2005
- 2005-12-21 CN CN 200520036593 patent/CN2852489Y/en not_active Expired - Fee Related
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104139525A (en) * | 2014-07-08 | 2014-11-12 | 燕山大学 | 3D printer power-off protection system and implementation method thereof |
CN105599467A (en) * | 2014-11-14 | 2016-05-25 | 株式会社理光 | Image forming apparatus |
CN105599467B (en) * | 2014-11-14 | 2018-07-06 | 株式会社理光 | Image forming apparatus |
WO2019100655A1 (en) * | 2017-11-24 | 2019-05-31 | 平安科技(深圳)有限公司 | Method and apparatus for constructing invoice requisition anomalies, computer device and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101710253B (en) | Deep-sleep method of embedded system | |
CN102081577B (en) | Data storage structure of Flash memory and data manipulation mode thereof | |
US7409623B2 (en) | System and method of reading non-volatile computer memory | |
CN102541676B (en) | Method for detecting and mapping states of NAND FLASH | |
CN201269902Y (en) | Break-down detection circuit for electronic electrical energy meter | |
CN104699413B (en) | Data managing method, memory storage apparatus and memorizer control circuit unit | |
CN101567220B (en) | The bad block identifying method of flash memory, stocking system and controller thereof | |
CN1831786A (en) | Data completeness protection method of flash storage | |
CN109189605A (en) | A kind of power-off protection of solid state disk method | |
CN1761925A (en) | Mobile equipment with time control for DRM schemes | |
CN101901169A (en) | Scanner and method | |
CN2852489Y (en) | Power-off protection circuit of tax-controlled cash register | |
TWI470432B (en) | Electronic system and flash memory managing method thereof | |
US20090193221A1 (en) | Method and apparatus for memory management in a non-volatile memory system using a block table | |
CN103135735A (en) | Power down protection control method and system | |
JP2010160654A (en) | Cache memory backup device, method and program | |
CN100339828C (en) | Method and device for realizing rapid start | |
CN114236461B (en) | Electric quantity calibration method, electronic equipment and storage medium | |
CN102789813B (en) | Method and device for controlling use of non-least significant bit page in storage device | |
CN100442317C (en) | Tax controlled cash register | |
CN104834610A (en) | Magnetic disk power-down protection circuit and method | |
Xiang et al. | A reliable B-tree implementation over flash memory | |
CN108052456B (en) | Electric quantity data storage method and system and electric quantity data storage equipment | |
CN1534426A (en) | Storage device/semiconductor processing system | |
CN104115116A (en) | Systems and methods for managing data in a device for hibernation states |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
C17 | Cessation of patent right | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20061227 Termination date: 20121221 |