CN101025844A - Method for ensuring reliable data for tax-controlling device - Google Patents

Method for ensuring reliable data for tax-controlling device Download PDF

Info

Publication number
CN101025844A
CN101025844A CN 200610042477 CN200610042477A CN101025844A CN 101025844 A CN101025844 A CN 101025844A CN 200610042477 CN200610042477 CN 200610042477 CN 200610042477 A CN200610042477 A CN 200610042477A CN 101025844 A CN101025844 A CN 101025844A
Authority
CN
China
Prior art keywords
data
tax
independently
controlling device
guarantee
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
CN 200610042477
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.)
Shandong Yinbao Sci & Tech Development Co Ltd
Original Assignee
Shandong Yinbao Sci & Tech Development 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 Shandong Yinbao Sci & Tech Development Co Ltd filed Critical Shandong Yinbao Sci & Tech Development Co Ltd
Priority to CN 200610042477 priority Critical patent/CN101025844A/en
Publication of CN101025844A publication Critical patent/CN101025844A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Storage Device Security (AREA)

Abstract

This invention discloses a method to guarantee reliability of the data of a tax control device. The technical program is unique: two independent data storage chips (FLASH1, FLASH2) for data storage and backup of each other are sent in the device MCU, the important data is stored as two copies by each independent chips, and all data are check out by using CRC to test the accuracy. When damaged partly or wholly, an independent data storage chip can automatically read data of another one to ensure data reliability.

Description

A kind ofly can guarantee the reliable method of data for tax-controlling device
Technical field the present invention relates to the tax-controlling device technical field of memory, relates in particular to a kind ofly can guarantee the reliable method of data for tax-controlling device.
Background technology is widely used tax-control cash register, The Design of Tax Controled Device, fiscal printer, silver-colored tax all-in-one and data black box or the like tax-controlling device on market at present, though title is slightly variant, but its purposes all is the same, it all is the important tool of national collection, thereby the reliability of data for tax-controlling device becomes the vital performance index of tax-controlling device, also is country, enterprise, user's questions of common interest.For improving the reliability of data for tax-controlling device, those skilled in the art of the present technique are inquiring in earnest and are studying, wherein Chinese patent application number is: the disclosed technical scheme of 200410024296 patent of invention is exactly to adopt the method for software ECC verification dynamic assignment storage area to improve the reliability of data for tax-controlling device, present this method also is the method that everybody generally adopts, the method can guarantee the reliability of data for tax-controlling device to a great extent, but also have tangible weak point: after the FLASH physical damage of storage data, data will all be damaged (1); (2) because storage area is that dynamic assignment is not fixed, inquiry, analysis data will be searched the sector state mapping map earlier, and relatively how therefore trouble overcome the deficiency that prior art exists, guaranteeing the reliable of data for tax-controlling device, also is the problem that those skilled in the art of the present technique need to be resolved hurrily.
Summary of the invention goal of the invention of the present invention is to be to overcome the deficiencies in the prior art and a kind ofly backuping each other and set up checking data by two independent data storeies are set of providing can guarantee the method for data reliability.
Goal of the invention of the present invention is also by external and include battery and give data SRAM storage chip power supply mode, guarantees that data do not lose and guarantee the reliable method of data.
Goal of the invention of the present invention is achieved by following technical solution: a kind ofly can guarantee the reliable method of data for tax-controlling device, its special character be provided with on the central processing unit (MCU) at tax-controlling device two independently pin-saving chip (FLASH1, FLASH2) be used to store data and backup each other, important data each independently pin-saving chip respectively store two parts, total data is carried out verification with the CRC sign indicating number, detect the correctness of data; When one independently pin-saving chip partly or entirely damage, can read another independently data of pin-saving chip automatically, to guarantee the reliable of data.
For further realizing goal of the invention of the present invention, the reliable method of data for tax-controlling device that can guarantee of the present invention is: also be provided with on the central processing unit of tax-controlling device (MCU) two independently SRAM storage chip (SRAM1, SRAM2) be used to store data and backup each other, powered on moment in key carries out the signal blockade, read and write each sheet independently the SRAM storage chip must check password, even so that be interfered, can not destroy data wherein yet; Adopt different feed circuit to give two independently SRAM storage chip power supplies, external connection battery is given the power supply of SRAM1 storage chip, SRAM2 adopts the inner mode that contains battery to power, even external cell or feed circuit damage, still can guarantee that the data among the SRAM2 do not lose, make data true and reliable.
The present invention compared with prior art has following outstanding substantive distinguishing features and obvious improvement: the first since the present invention by be provided with two independently pin-saving chip be used to store data and backup each other, important data each independently pin-saving chip respectively store two parts, total data is carried out verification with the CRC sign indicating number, to detect the correctness of data, thereby guaranteed the reliable of data, compared with prior art, the reliability of data for tax-controlling device is further improved; Its two be the present invention also by on the central processing unit (MCU) of tax-controlling device, be provided with two independently SRAM storage chip (SRAM1, SRAM2) be used to store data and backup each other, powered on moment in key carries out the signal blockade, read and write each sheet independently the SRAM storage chip must check password, thereby guarantee that in read-write all can be by data during each data the CRC16 sign indicating number finds out correct data from 2 or 4 backed up data, not only data sector determines that read-write is fairly simple, and makes the reliability of data for tax-controlling device that sufficient safeguard measure arranged; It three is also to adopt external connection battery to give SRAM1 storage chip power supply in the technical scheme of the present invention, the SRAM2 storage chip is powered with internal cell, can guarantee so no matter which kind of feed circuit damages, all the time guaranteeing has one road feed circuit intact, guarantee that the data in the SRAM storage chip do not lose, data are true and reliable, so technical solutions according to the invention have application value preferably.
A kind of reliable method of data for tax-controlling device that can guarantee of description of drawings the present invention is provided by the following drawings.
Fig. 1 is a kind of block diagram that can guarantee the reliable method of data for tax-controlling device of the present invention.
Embodiment describes a kind of design proposal that can guarantee the reliable method of data for tax-controlling device of the present invention in detail below in conjunction with accompanying drawing.
Embodiment is a kind of to be guaranteed the reliable method of data for tax-controlling device (referring to accompanying drawing 1) it is to adopt following technical scheme: central processing unit 1 (MCU) bottom of tax-controlling device is connected with respectively separately independently by circuit that pin-saving chip 2 (FLASH1) and pin-saving chip 3 (FLASH2) are used to store data.In the program software of the central processing unit 1 (MCU) of tax-controlling device with two separately independently the data of pin-saving chip 2 (FLASH1) and pin-saving chip 3 (FLASH2) storage backup each other, important data each independently pin-saving chip respectively store two parts, total data is carried out verification with the CRC sign indicating number, to detect the correctness of data.When one independently pin-saving chip partly or entirely damage, can read another independently data of pin-saving chip automatically, to guarantee the reliable of data.Central processing unit 1 (MCU) top of tax-controlling device connects separately independently SRAM storage chip 4 (SRAM2) and storage chip 6 (SRAM1) by circuit, be used to store data and backup each other, powered on moment in key carries out the signal blockade, read and write each sheet independently the SRAM storage chip must check password, even be interfered, can not destroy data wherein yet; Adopt different feed circuit to give two independently SRAM storage chip power supplies, external connection battery 7 gives the SRAM1 storage chip 6 power supplies, SRAM2 storage chip 4 adopts the inner mode that contains battery 5 to power, even external cell or feed circuit damage, still can guarantee that the data among the SRAM2 do not lose, make data true and reliable.The specific implementation method is as follows:
(1) at system's powered on moment, block chip selection signal CS1, the CS2 of SRAM storage chip, make it can not be selected; Blocking WR3, WR4 makes it not accessed; WR1, WR2 are designed to the mode of password access, and necessary verification password has only password correctly just can carry out read or write operation before reading and writing data.
During (2) to data storage chip FLASH operation write operation, data are added that the CRC-16 verification writes among pin-saving chip 2 (FLASH1), 3 (FLASH2) simultaneously and check and write whether success, guarantee that data are correct in the process that writes by retaking of a year or grade; During reading of data, the correctness of coming recognition data by CRC-16 sign indicating number in the data is found out correct data from 2 or 4 backups.
When (3) writing the SRAM storage chip, check the password of SRAM storage chip earlier, with the same area of deposit data at different SRAM storage chips, operation locks after having write; During reading of data, the also first password of nuclear SRAM storage chip is found out correct data by CRC-16 sign indicating number in the data from 2 or 4 backups.
(4) external connection battery 7 powers to SRAM storage chip 6 (SRAM1), battery 5 power supplies are contained in storage chip 4 (SRAM2) storage chip inside, even external cell 7 or feed circuit damage like this, still can guarantee that the data in the SRAM storage chip do not lose, further improve the reliability of data for tax-controlling device.

Claims (2)

1, a kind ofly can guarantee the reliable method of data for tax-controlling device, it is characterized in that being provided with on the central processing unit (MCU) at tax-controlling device two independently pin-saving chip (FLASH1, FLASH2) be used to store data and backup each other, important data each independently pin-saving chip respectively store two parts, total data is carried out verification with the CRC sign indicating number, to detect the correctness of data; When one independently pin-saving chip partly or entirely damage, can read another independently data of pin-saving chip automatically, to guarantee the reliable of data.
2, according to claim 1ly can guarantee the reliable method of data for tax-controlling device, it is characterized in that on the central processing unit (MCU) of described tax-controlling device, also be provided with two independently SRAM storage chip (SRAM1, SRAM2) be used to store data and backup each other, powered on moment in key carries out the signal blockade, read and write each sheet independently the SRAM storage chip must check password, even so that be interfered, can not destroy data wherein yet; Adopt different feed circuit to give two independently SRAM storage chip power supplies, external connection battery is given the power supply of SRAM1 storage chip, SRAM2 adopts the inner mode that contains battery to power, even external cell or feed circuit damage, still can guarantee that the data among the SRAM2 do not lose, make data true and reliable.
CN 200610042477 2006-02-17 2006-02-17 Method for ensuring reliable data for tax-controlling device Pending CN101025844A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 200610042477 CN101025844A (en) 2006-02-17 2006-02-17 Method for ensuring reliable data for tax-controlling device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 200610042477 CN101025844A (en) 2006-02-17 2006-02-17 Method for ensuring reliable data for tax-controlling device

Publications (1)

Publication Number Publication Date
CN101025844A true CN101025844A (en) 2007-08-29

Family

ID=38744108

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 200610042477 Pending CN101025844A (en) 2006-02-17 2006-02-17 Method for ensuring reliable data for tax-controlling device

Country Status (1)

Country Link
CN (1) CN101025844A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102968861A (en) * 2010-03-10 2013-03-13 航天信息股份有限公司 Tax copying method
CN104407943A (en) * 2014-12-09 2015-03-11 武汉虹信通信技术有限责任公司 Method for self-diagnosis recovery of remote radio-frequency unit based on all-optical distribution system
CN105761390A (en) * 2014-12-16 2016-07-13 航天信息股份有限公司 Tax control module and fiscal cash register
CN110062008A (en) * 2019-05-21 2019-07-26 北京计算机技术及应用研究所 Phonautograph system optimization method for software under harsh temperature conditions

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102968861A (en) * 2010-03-10 2013-03-13 航天信息股份有限公司 Tax copying method
CN102968861B (en) * 2010-03-10 2015-07-15 航天信息股份有限公司 Tax copying method
CN104407943A (en) * 2014-12-09 2015-03-11 武汉虹信通信技术有限责任公司 Method for self-diagnosis recovery of remote radio-frequency unit based on all-optical distribution system
CN105761390A (en) * 2014-12-16 2016-07-13 航天信息股份有限公司 Tax control module and fiscal cash register
CN110062008A (en) * 2019-05-21 2019-07-26 北京计算机技术及应用研究所 Phonautograph system optimization method for software under harsh temperature conditions

Similar Documents

Publication Publication Date Title
CN100590606C (en) Data completeness protection method of flash storage
US8046645B2 (en) Bad block identifying method for flash memory, storage system, and controller thereof
CN102804146B (en) The system and method for the misdata in trace memory part
US7409623B2 (en) System and method of reading non-volatile computer memory
US8418030B2 (en) Storage system with data recovery function and method thereof
CN102890657B (en) The method that the reading and writing data of a kind of EEPROM of minimizing is made mistakes
CN100458693C (en) BIOS read-write memory SPD based computer system information conservation and read method
CN101599305B (en) Storage system with data repair function and data repair method thereof
CN101901169B (en) Scanner and method
CN103839591A (en) Automatic fault detection and fault-tolerant circuit of memory as well as control method
CN1932775A (en) Card reader testing system and method
CN105843558B (en) Handle the method and system of chronological file
CN102541676A (en) Method for detecting and mapping states of NAND FLASH
CN104240768A (en) Method for testing a memory and memory system
CN110459259A (en) Store test method, system and the storage medium of equipment write error error correcting capability
TWI486957B (en) Method, device and operating system for processing, using a nand flash memory burn data
CN101025844A (en) Method for ensuring reliable data for tax-controlling device
CN101567220A (en) Bad block identifying method, storage system and controller thereof for flash memory
CN109117383A (en) Method for managing flash memory module and flash memory controller
CN101699476A (en) Data processing method and device of smart cards
US20100318874A1 (en) Electronic memory device and method for error correcting thereof
CN110058973A (en) The test macro of data memory device and the test method of data memory device
CN110222035A (en) A kind of efficient fault-tolerance approach of database page based on exclusive or check and journal recovery
CN100456263C (en) Method for treating broken block when using flash memory in tax-controlled cashing machine
CN103165194A (en) Method and apparatus for rapid detection of large-capacity NOR Flash

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication