CN103679981A - Finance printer and control method thereof - Google Patents

Finance printer and control method thereof Download PDF

Info

Publication number
CN103679981A
CN103679981A CN201310339390.0A CN201310339390A CN103679981A CN 103679981 A CN103679981 A CN 103679981A CN 201310339390 A CN201310339390 A CN 201310339390A CN 103679981 A CN103679981 A CN 103679981A
Authority
CN
China
Prior art keywords
control
financial
distort
control program
storage part
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.)
Granted
Application number
CN201310339390.0A
Other languages
Chinese (zh)
Other versions
CN103679981B (en
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.)
Seiko Epson Corp
Original Assignee
Seiko Epson Corp
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 Seiko Epson Corp filed Critical Seiko Epson Corp
Publication of CN103679981A publication Critical patent/CN103679981A/en
Application granted granted Critical
Publication of CN103679981B publication Critical patent/CN103679981B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Accessory Devices And Overall Control Thereof (AREA)
  • Cash Registers Or Receiving Machines (AREA)

Abstract

The invention provides a finance printer and a control method thereof, and refers to the finance printer capable of preventing a tamper confirmation control program from being improperly read out, and the tamper confirmation control program can ensure a finance control program from being tampered; the finance printer (1) comprises: a finance control portion (21) for finance control; a first memory portion (22) for storing the finance control program used for finance control; a tamper confirmation control portion (23) used for tamper confirmation control, so the finance control program is ensured not to be tampered; a second memory portion (24) for storing the tamper confirmation control program used for tamper confirmation control; a rewrite control portion (26) for rewrite control of tamper confirmation control program; a power source (27) for providing power for the rewrite control portion, and the like. If tamper condition to the finance memory is detected, then power is supplied to the rewrite control portion (26), and the rewrite control portion (26) can rewrite the tamper confirmation control program.

Description

The control method of fiscal printer and fiscal printer
Technical field
The present invention relates to the control method of fiscal printer and fiscal printer.
Background technology
Known a kind of fiscal printer (for example,, with reference to patent documentation 1) that possesses the function of the storage financial information relevant to sales transactions in the prior art.The fiscal printer that patent documentation 1 is recorded possesses the financial control circuit substrate of the financial storer that storage financial information has been installed.The host CPU that financial storer is carried out to the read-write of data is installed on financial control circuit substrate.Host CPU is carried out the read-write to the data of financial storer according to the regulation control program being stored in ROM etc.
Patent documentation 1: TOHKEMY 2010-134580 communique
In recent years, in order to prevent that the host CPU of financial control circuit substrate from moving according to the control program being tampered, some country has started regulation must carry out the content check of the control program of host CPU when starting fiscal printer.In order to prevent that host CPU from moving according to the control program being tampered, need for confirming the function that control program is not tampered.In addition,, in order to realize this function, need to distort confirmation control program for what confirm that control program is not tampered.
In addition, also need to prevent according to distorting of being tampered confirm with control program carry out host CPU control program distort confirmation.For prevent according to distorting of being tampered confirm with control program carry out host CPU control program distort confirmation, preferably by preventing from being stored in distorting in ROM etc., confirm with control program by improper situation of reading, thereby preventing from distorting confirms the obtained situation of use control program.
Summary of the invention
Therefore, problem of the present invention is to propose the control method of a kind of fiscal printer and fiscal printer, can prevent distorting of carrying out that situation that the financial control program of writing of financial information etc. is not tampered confirms to confirm that control program read by improper.
In order to solve above-mentioned problem, fiscal printer of the present invention, is characterized in that, financial storer, and it stores financial information; Financial control portion, it carries out financial control, and this financial control is at least carried out described financial information writing to described financial storer; The 1st storage part, the financial control program of described financial control is carried out in its storage; Distort confirmation control part, it is distorted and confirms to control, and this is distorted to confirm to control and confirms to be stored in the situation that the described financial control program in described the 1st storage part is not tampered; The 2nd storage part, its storage distort described in carrying out confirm to control distort confirmation control program; Distort testing agency, it detects the situation that described financial storer is carried out to tampering; Rewrite control part, it rewrites controls, this rewriting control rewriting be stored in described the 2nd storage part described in distort confirmation control program; And power supply, it supplies with electric power to described rewriting control part and described the 2nd storage part, if described in distort testing agency and detect the situation that described financial storer is carried out to described tampering, from described power supply to described rewriting control part and described the 2nd storage part supply with electric power, described rewriting control part rewrite be stored in described the 2nd storage part described in distort confirmation control program.
In addition, in order to solve above-mentioned problem, the control method of fiscal printer of the present invention, is characterized in that, financial storer, and it stores financial information; Financial control portion, it carries out financial control, and this financial control is at least carried out described financial information writing to described financial storer; The 1st storage part, the financial control program of described financial control is carried out in its storage; Distort confirmation control part, it is distorted and confirms to control, and this is distorted to confirm to control and confirms to be stored in the situation that the described financial control program in described the 1st storage part is not tampered; The 2nd storage part, its storage distort described in carrying out confirm to control distort confirmation control program; Distort testing agency, it detects the situation that described financial storer is carried out to tampering; Rewrite control part, it rewrites controls, this rewriting control rewriting be stored in described the 2nd storage part described in distort confirmation control program; And power supply, it supplies with electric power to described rewriting control part and described the 2nd storage part, if described in distort testing agency and detect the situation that described financial storer is carried out to described tampering, from described power supply to described rewriting control part and described the 2nd storage part supply with electric power, described rewriting control part rewrite be stored in described the 2nd storage part described in distort confirmation control program.
In the control method of fiscal printer of the present invention and fiscal printer, if distort testing agency, detect the situation of financial storer being carried out to tampering, rewrite control part and rewrite to be stored in and distort confirmation control program in the 2nd storage part.That is, in the present invention, be accompanied by the tampering of financial storer likely to be caused distort and confirm in situation that control program read wrongly, rewrite control part and rewrite and distort confirmation control program, so that cannot read, distort confirmation control program.Thereby, in the present invention, can prevent from distorting and confirm that control program is read wrongly.
In the present invention, preferred described rewriting control part confirms that by distorting described in deletion the fixed data of control program writes described the 2nd storage part.By adopting this formation, owing to rewriting control part as long as fixed data is write to the 2nd storage part, the control of therefore rewriting control part becomes easy.
In the present invention, preferably fiscal printer also possesses: real-time clock, and it can store generation date and the time of described tampering; If finish and after the use that completes its manufacturing process and described fiscal printer started in described fiscal printer, described in distort testing agency and detect described tampering and carried out, the level of the output signal of described real-time clock changes; If described in distort testing agency and detect the level that described financial storer is carried out to the situation of described tampering and the output signal of described real-time clock variation has occurred, described rewriting control part rewrite be stored in described the 2nd storage part described in distort confirmation control program.By adopting this formation, even if distort testing agency, detect tampering and carried out, if the level of the output signal of real-time clock does not change, rewrite control part and just do not rewrite to be stored in and distort confirmation control program in the 2nd storage part.Therefore, for example, in the manufacturing process of fiscal printer, can prevent from distorting and confirm that control program is rewritten mistakenly.
In the present invention, preferred described rewriting control part is distorted confirmation control program from the start address of described the 2nd storage part described in rewriting.Generally speaking, in the control program in being stored in the storage parts such as flash memory, in the important data such as start address sidelights on incoming vector table portion of storage part.Therefore, by adopting this formation, even if the residual capacity of power supply when confirmation control program is distorted in rewriting is few, cause supplying with from power supply to the electric power of rewriting control part and the 2nd storage part and interrupt at short notice, also can rewrite the important data of the start address side of the 2nd storage part.Thereby, even if the residual capacity of power supply when confirmation control program is distorted in rewriting is few, cause supplying with from power supply to the electric power of rewriting control part and the 2nd storage part and interrupt at short notice, also can prevent from distorting confirmation control program and deliberately and wrongly be read.In addition, by adopting this formation, even if the capacity of power supply is little, cause supplying with at short notice and interrupting to the electric power of rewriting control part and the 2nd storage part from power supply, also can rewrite the important data of the start address side of the 2nd storage part.Therefore,, even if reduce the capacity of power supply, also can prevent from distorting and confirm that control program deliberately and is wrongly read.
In the present invention, preferably fiscal printer also possesses: switch, and it connects described rewriting control part and described the 2nd storage part; Described power supply is standby one-shot battery; Described rewriting control part and described the 2nd storage part are directly connected to described power supply via described switch.That is, in the present invention, preferably rewrite control part and the 2nd storage part in the situation that be not connected to power supply via the electronic unit of the generation pressure drops such as resistance.By adopting this formation, when rewriting control part and the 2nd storage part and apply the voltage from power supply, the useless pressure drop that can not have a resistance etc. and to cause.Therefore, even if the residual capacity of power supply when confirmation control program is distorted in rewriting is few, also can make to rewrite control part and the 2nd storage part work, to rewrite, distort confirmation control program.In addition, owing to can not producing useless pressure drop, even if therefore the capacity of power supply is little, also can make to rewrite control part and the 2nd storage part work, to rewrite, distort confirmation control program.That is, even if reduce the capacity of power supply, also can rewrite and distort confirmation control program, to prevent from distorting, confirm that control program is read wrongly.
Accompanying drawing explanation
Fig. 1 is the stereoscopic figure of the related fiscal printer of embodiments of the present invention.
Fig. 2 is the stereoscopic figure of the fiscal printer of presentation graphs 1 from different perspectives.
Fig. 3 is the block diagram of the fiscal printer of Fig. 1.
Fig. 4 is the circuit diagram of one-shot battery and peripheral part thereof.
Fig. 5 is the process flow diagram of the example controlled of the rewriting carried out of MCU.
Embodiment
Below, with reference to accompanying drawing, to having applied the control method of fiscal printer of the present invention and fiscal printer, describe.
The formation of fiscal printer
Fig. 1 is the stereoscopic figure of the related fiscal printer of embodiments of the present invention 1.Fig. 2 is the stereoscopic figure of the fiscal printer 1 of presentation graphs 1 from different perspectives.Fig. 3 is the block diagram of the fiscal printer 1 of Fig. 1.Fig. 4 is the circuit diagram of one-shot battery 27 and peripheral part thereof.
The fiscal printer 1 of the manner (being made as below " printer 1 ") is the checkout printer being connected with POS terminal etc.Printer 1 possess the printing information relevant to sales transactions is printed onto on receipt and distribution printing after the function of receipt and the function of storage the maintenance financial information relevant with sales transactions.This printer 1 possesses printer main body 2 and is fixed on the fiscal module 3 of the bottom of printer main body 2.
In the inside of printer main body 2, be equipped with and omit accommodation section, the recording chart conveying mechanism of illustrated recording chart and print first-class.In addition, printer main body 2 possesses: open-close lid 4, and it is configured in the front side of the upper surface of printer main body 2; With open-close lid 5, it is configured in the rear side of the upper surface of printer main body 2.Between open-close lid 4 and open-close lid 5, be formed with the receipt escape hole 6 extending along the Width of recording chart.In the side of receipt escape hole 6, dispose sliding button 7.If operation sliding button 7, removes the locking of open-close lid 5, thereby can open open-close lid 5.In addition, if open open-close lid 5, the accommodation section that can expose recording chart, thus can carry out replacing of recording chart etc.In addition,, if open open-close lid 4, can carry out the replacing of ink ribbon etc.
Fiscal module 3 possesses financial storer substrate 10, EJ storer substrate 11, printer control substrate 12 and financial control substrate 13.Finance storer substrate 10, EJ storer substrate 11, printer control substrate 12 and financial control substrate 13 are configured in the inside of metal framework 14.Framework 14 consists of the coating member 16 of the peristome of housing 15 and covering shell 15.In addition, the various connectors 17 that omit on illustrated main frame etc. for fiscal module 3 is electrically connected in fiscal module 3, have been assembled.
The financial storer of storage financial information is installed on financial storer substrate 10.Finance storer is flash memory or OTP-ROM etc.Memory print is installed on EJ storer substrate 11 to EJ (electronics day-to-day account) storer of the printing information on receipt.Finance storer substrate 10 and EJ storer substrate 11 are covered by the epoxy resin of black.At printer, control on substrate 12 the printer control CPU18 for each mechanism of printer main body 2 is controlled is installed.
CPU21 for financial control as financial control portion is installed on financial control substrate 13, as the flash memory 22 of the 1st storage part, distort and confirm with CPU23, flash memory 24 as the 2nd storage part, RTC (real-time clock) 25, as the MCU (memory control unit) 26 of rewriting control part, as standby one-shot battery 27 and the reset IC28 of power supply as distorting the program of confirming control part.
Financial control is carried out financial control etc. with CPU21, and this financial control is for carrying out to writing of the financial information of financial storer and writing to the printing information of EJ storer.In flash memory 22, store financial control and with CPU21, carry out the financial control program of financial control.Financial control is the financial control program based on being stored in flash memory 22 with CPU21, carry out to the financial information of financial storer write and to writing of the printing information of EJ storer etc.In addition, the flash memory 22 of the manner is serial flash.
Program is distorted and is confirmed to distort and to confirm to control with CPU23, and this is distorted and confirms to control situation about not being tampered for confirming to be stored in the financial control program of flash memory 22.In flash memory 24, have program stored therein distort confirm with CPU23 distort confirm to control distort confirmation control program.Program is distorted and is confirmed based on being stored in, in flash memory 24, to distort confirmation control program with CPU23, when starting printer 1, is relatively stored in financial control program in flash memory 22 and financial control program substantially.In addition, if the content of two control programs is inconsistent, program is distorted and is confirmed with CPU23, printer 1 to be stopped, if the content of two control programs is consistent, program is distorted and confirmed to make printer 1 become the state that can work with CPU23.In addition, the flash memory 24 of the manner is paralleling flash memory.In addition,, in the manner, the data of the several bytes that started by the data from being stored in the start address of flash memory 24 form vector table portion.
RTC25 possesses storage and distorts by described later that testing agency's (omit diagram) is detected carries out the generation date of tampering and the function of time to financial storer.RTC25 for example exports the wavy digital signal of rectangle.If after printer 1 finishes and the use that completes its manufacturing process and printer 1 started, distort testing agency and detect the tampering to financial storer, the level of the output signal of RTC25 changes.For example, if distort testing agency, detect the tampering to financial storer, the level of the output signal of RTC25 is switched to high level or is switched to low level from high level from low level.
MCU26 rewrites control, this rewriting control for rewrite be stored in flash memory 24 distort confirmation control program.This MCU26 possesses and has stored for rewriting the flash memory of the rewrite control program of controlling.By describing in the back the rewriting that MCU26 carries out in detail, control.
One-shot battery 27 is connecting the required various electronic units of supply standby power such as SRAM (static random access memory).These electronic units are connected with one-shot battery 27 via resistance 29 (with reference to Fig. 4).The following function of resistance 29 performance, that is: prevent from causing these electronic units impaired because of the dash current from one-shot battery 27.
In addition, on one-shot battery 27, via switch 30, flash memory 24, MCU26 and reset IC28 have been connected.Flash memory 24, MCU26 and reset are directly connected to one-shot battery 27 via switch 30 with IC28.That is, flash memory 24, MCU26 and reset with IC28 not via producing the electronic units such as resistance of pressure drop but be directly connected to (with reference to Fig. 4) on one-shot battery 27.Switch 30 is conventionally in cutting off flash memory 24, MCU26 and resetting by the open mode being connected between IC28 and one-shot battery 27.In addition, if detect the situation of financial storer being carried out to tampering by the testing agency of distorting illustrating below, switch 30 becomes closure state, connect flash memory 24, MCU26 and reset with IC28 and one-shot battery 27, and from one-shot battery 27 to flash memory 24, MCU26 and reset supply with electric power with IC28.
In addition, fiscal module 3, except above-mentioned structure, also possesses testing agency's of distorting (omitting diagram), for detection of financial storer being carried out to the situation of tampering.This is distorted testing agency and for example detects the situation that unloads fiscal module 3 and unload coating member 16 from housing 15 from printer main body 2.In addition, this is distorted testing agency and unloads fiscal module 3 and framework 14, utilize drilling machine etc. to open the situation in hole such as detecting from printer main body 2.; distorting testing agency unloads fiscal module 3 and from housing 15, unloads the situation of coating member 16 by detecting from printer main body 2; or by detecting from printer main body 2, unload fiscal module 3 and framework 14, utilize drilling machine etc. to open the situation in hole, thereby detect, financial storer is carried out to tampering.
The rewriting that MCU carries out is controlled
Fig. 5 is the process flow diagram of the example controlled of the rewriting carried out of MCU26.In fiscal module 3, if distort testing agency, detect financial storer is carried out to tampering (step S1), Closing Switch 30, from one-shot battery 27 to flash memory 24, MCU26 and reset and supply with electric power (step S2) with IC28.So, from resetting, by the reset signal of IC28 output, be input to MCU26 (step S3).
Then, MCU26 reads the state of the interrupt output of RTC25.That is, MCU26 confirms whether the level of the output signal of RTC25 variation (step S4) has occurred.In the situation (be the situation of "Yes" in step S4) that has occurred to change at the level of the output signal of RTC25, MCU26 rewrites to be stored according to rewrite control program and distorting confirmation control program (step S5) in flash memory 24.In the manner, in step S5, MCU26 writes for deleting and distorts the fixed data of confirming control program to flash memory 24.In addition,, in step S5, MCU26 rewrites and distorts confirmation control program from the start address of flash memory 24.
In addition, in step S5, MCU26 sends the data of 4 bytes to flash memory 24 in the mode of byte access, and according to the regulation order accordingly of the specification with flash memory 24, rewrites to be stored in and distorts confirmation control program in flash memory 24.For example, in step S5, first MCU26 is to address bus setting " AAAh ", to data bus setting " AAh ".Then, MCU26 is to address bus setting " 555h ", to data bus setting " 55h ".Then, MCU26 is to address bus setting " AAAh ", to data bus setting " A0h ".Then, MCU26 is to address bus setting " 000h ", to data bus setting " 00h ".Then, MCU26 triggers WE (allowing to write) terminal.When WE terminal is triggered, data writing in flash memory 24 " 00h ".That is,, when WE terminal is triggered, in flash memory 24, write 0 data.
In step S5, if rewrite, be stored in and distort confirmation control program in flash memory 24, the rewriting that MCU26 carries out is controlled and is finished.In addition, in the situation (being the situation of "No" in step S4) not changing at the level of the output signal of RTC25, do not rewrite to be stored in and distort confirmation control program in flash memory 24, but finish the rewriting that MCU26 carries out, control.
The main effect of present embodiment
As described above, in the manner, if distort testing agency, detect the level that financial storer is carried out to the output signal of tampering and RTC25 variation has occurred, MCU26 rewrites to be stored in and distorts confirmation control program in flash memory 24.That is, in the manner, in the situation that be accompanied by the tampering of financial storer likely to be caused reading wrongly distort, confirm control program, MCU26 rewrites and distorts confirmation control program, so that cannot read, distorts confirmation control program.Thereby, in the manner, can prevent from distorting confirmation control program and be read by improper.
In addition, the required time of rewriting of distorting the total data of confirming control program of the manner is about 12 seconds.On the other hand, until unload fiscal module 3 and unload coating member 16 or utilize the perforates such as drilling machine that flash memory 24 is exposed from housing 15 from printer main body 2, need 1 minute above time framework 14.Thereby in the manner, in the situation that carried out distorting the rewriting of confirming control program, the total data of conventionally distorting confirmation control program is rewritten (that is, distort and confirm that the total data of control program is deleted).
In the manner, MCU26 writes for deleting and distorts the fixed data of confirming control program to flash memory 24.That is, in the manner, MCU26 distorts confirmation control program in order to rewrite, as long as fixed data is write to flash memory 24.Therefore,, in the manner, it is easy that the control of MCU26 becomes.
In the manner, if the level of the output signal of RTC25 changes, MCU26 rewrites to be stored in and distorts confirmation control program in flash memory 24.That is, in the manner, even if distort testing agency, detect and carried out tampering, if the level of the output signal of RTC25 does not change, MCU26 just can not rewrite to be stored in and distort confirmation control program in flash memory 24.Thereby, in the manner, for example, in the manufacturing process of printer 1, can prevent from distorting and confirm that control program is rewritten mistakenly.
In the manner, MCU26 rewrites and distorts confirmation control program from the start address of flash memory 24.Thereby, even if the residual capacity of the one-shot battery 27 when for example MCU26 rewrites control is few, cause from one-shot battery 27 to MCU26 and the electric power of flash memory 24 supply interruption at short notice, the vector table portion that also can rewrite flash memory 24.Therefore,, in the manner, even if the residual capacity of the one-shot battery 27 when MCU26 rewrites control is few, also can prevent from deliberately and wrongly reading the situation of confirming control program of distorting.In addition, even if for example the capacity of one-shot battery 27 is little and cause rewriting while controlling from one-shot battery 27 to MCU26 and the electric power of flash memory 24 is supplied with and interrupted at short notice, the vector table portion that also can rewrite flash memory 24 at MCU26.Therefore,, in the manner, even if reduce the capacity of one-shot battery 27, also can prevent from deliberately and wrongly reading the situation of confirming control program of distorting.
In the manner, flash memory 24, MCU26 and reset with IC28 not via producing the electronic units such as resistance of pressure drop but be connected directly on one-shot battery 27.Thereby, in the manner, to flash memory 24, MCU26 and reset while applying the voltage from one-shot battery 27 with IC28, the useless pressure drop that can not have a resistance etc. and to cause.Therefore, in the manner, even if the residual capacity of the one-shot battery 27 when for example MCU26 rewrites control is few, also can make IC28 work for flash memory 24, MCU26 and reset, to carry out the rewriting of MCU26, control.In addition,, in the manner, the useless pressure drop causing owing to can not having a resistance etc., therefore, even if for example the capacity of one-shot battery 27 is little, also can carries out the rewriting of MCU26 and control.That is, in the manner, even if reduce the capacity of one-shot battery 27, also can make flash memory 24, MCU26 and reset with IC28 work, to carry out the rewriting of MCU26, controlling.
Other embodiments
In above-mentioned mode, MCU26 has write for deleting and has distorted the fixed data of confirming control program to flash memory 24 when confirmation control program is distorted in rewriting, as long as but can rewrite and distort confirmation control program, MCU26 can write any data to flash memory 24.In addition, in above-mentioned mode, MCU26 has rewritten and has distorted confirmation control program from the start address of flash memory 24, but MCU26 also can rewrite and distort confirmation control program from the arbitrary address of flash memory 24.
In above-mentioned mode, when distorting testing agency when detecting the level that financial storer is carried out to the output signal of tampering and RTC25 variation having occurred, MCU26 has rewritten to be stored in and has distorted confirmation control program in flash memory 24.But, also can detecting when financial storer is carried out to the situation of tampering distorting testing agency, MCU26 rewrites to be stored in and distorts confirmation control program in flash memory 24.
In above-mentioned mode, distort testing agency and unload fiscal module 3 and unload the situation of coating member 16 or framework 14, utilize drilling machine etc. to open the situation in hole by detecting from housing 15 by detecting from printer main body 2, thereby detected the situation of financial storer being carried out to tampering.But, distort testing agency and also can, by detecting the situation that unloads fiscal module 3 from printer main body 2, detect the situation of financial storer being carried out to tampering.
In addition, in above-mentioned mode, when distorting testing agency when detecting the level that financial storer is carried out to the situation of tampering and the output signal of RTC25 variation having occurred, MCU26 also can rewrite the financial control program being stored in flash memory 22.
Symbol description
1 ... fiscal printer, 21 ... CPU for financial control (financial control portion), 22 ... flash memory (the 1st storage part), 23 ... program is distorted and is confirmed with CPU (distort and confirm control part), 24 ... flash memory (the 2nd storage part), 25 ... RTC (real-time clock), 26 ... MCU (rewriting control part), 27 ... one-shot battery (power supply), 30 ... switch.

Claims (6)

1. a fiscal printer, is characterized in that, possesses:
Finance storer, it stores financial information;
Financial control portion, it carries out financial control, and this financial control is at least carried out described financial information writing to described financial storer;
The 1st storage part, the financial control program of described financial control is carried out in its storage;
Distort confirmation control part, it is distorted and confirms to control, and this is distorted to confirm to control and confirms to be stored in the situation that the described financial control program in described the 1st storage part is not tampered;
The 2nd storage part, its storage distort described in carrying out confirm to control distort confirmation control program;
Distort testing agency, it detects the situation that described financial storer is carried out to tampering;
Rewrite control part, it rewrites controls, this rewriting control rewriting be stored in described the 2nd storage part described in distort confirmation control program; With
Power supply, it supplies with electric power to described rewriting control part and described the 2nd storage part,
If described in distort testing agency and detect the situation that described financial storer is carried out to described tampering, from described power supply to described rewriting control part and described the 2nd storage part supply with electric power, described rewriting control part rewrite be stored in described the 2nd storage part described in distort confirmation control program.
2. fiscal printer according to claim 1, is characterized in that,
Described rewriting control part writes and distorts the fixed data of confirming control program described in deletion to described the 2nd storage part.
3. fiscal printer according to claim 1 and 2, is characterized in that,
Described fiscal printer also possesses: real-time clock, and it can store generation date and the time of described tampering,
If finish and after the use that completes its manufacturing process and described fiscal printer started in described fiscal printer, described in distort testing agency and detect the situation of carrying out described tampering, the level of the output signal of described real-time clock changes,
If described in distort testing agency and detect the situation that described financial storer is carried out to described tampering, and the level of the output signal of described real-time clock changes, described rewriting control part rewrite be stored in described the 2nd storage part described in distort confirmation control program.
4. according to the fiscal printer described in any one in claims 1 to 3, it is characterized in that,
Described rewriting control part is distorted confirmation control program from the start address of described the 2nd storage part described in rewriting.
5. according to the fiscal printer described in any one in claim 1 to 4, it is characterized in that,
Described fiscal printer also possesses: switch, and it connects described rewriting control part and described the 2nd storage part,
Described power supply is standby one-shot battery,
Described rewriting control part and described the 2nd storage part are directly connected in described power supply via described switch.
6. a control method for fiscal printer, is characterized in that, described fiscal printer possesses:
Finance storer, it stores financial information;
Financial control portion, it carries out financial control, and this financial control is at least carried out described financial information writing to described financial storer;
The 1st storage part, the financial control program of described financial control is carried out in its storage;
Distort confirmation control part, it is distorted and confirms to control, and this is distorted to confirm to control and confirms to be stored in the situation that the described financial control program in described the 1st storage part is not tampered;
The 2nd storage part, its storage distort described in carrying out confirm to control distort confirmation control program;
Distort testing agency, it detects the situation that described financial storer is carried out to tampering;
Rewrite control part, it rewrites controls, this rewriting control rewriting be stored in described the 2nd storage part described in distort confirmation control program; With
Power supply, it supplies with electric power to described rewriting control part and described the 2nd storage part,
If described in distort testing agency and detect the situation that described financial storer is carried out to described tampering, from described power supply to described rewriting control part and described the 2nd storage part supply with electric power, described rewriting control part rewrite be stored in described the 2nd storage part described in distort confirmation control program.
CN201310339390.0A 2012-09-07 2013-08-06 The control method of fiscal printer and fiscal printer Expired - Fee Related CN103679981B (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
JP2012196927A JP2014052847A (en) 2012-09-07 2012-09-07 Fiscal printer and method for controlling fiscal printer
JP2012-196927 2012-09-07

Publications (2)

Publication Number Publication Date
CN103679981A true CN103679981A (en) 2014-03-26
CN103679981B CN103679981B (en) 2016-04-20

Family

ID=50317397

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310339390.0A Expired - Fee Related CN103679981B (en) 2012-09-07 2013-08-06 The control method of fiscal printer and fiscal printer

Country Status (3)

Country Link
JP (1) JP2014052847A (en)
CN (1) CN103679981B (en)
BR (1) BR102013028343A2 (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2000019387A1 (en) * 1998-09-30 2000-04-06 International Business Machines Corporation Verifiable electronic journal for a point of sale device and methods for using the same
CN101196854A (en) * 2006-12-07 2008-06-11 国际商业机器公司 Method and system for programmable memory device security
CN102096779A (en) * 2009-12-14 2011-06-15 精工爱普生株式会社 Electronic apparatus and method of controlling electronic apparatus
CN102103776A (en) * 2009-12-17 2011-06-22 精工爱普生株式会社 Electronic apparatus and method of controlling electronic apparatus
CN102568121A (en) * 2010-11-11 2012-07-11 精工爱普生株式会社 Fiscal printer

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2000019387A1 (en) * 1998-09-30 2000-04-06 International Business Machines Corporation Verifiable electronic journal for a point of sale device and methods for using the same
CN101196854A (en) * 2006-12-07 2008-06-11 国际商业机器公司 Method and system for programmable memory device security
CN102096779A (en) * 2009-12-14 2011-06-15 精工爱普生株式会社 Electronic apparatus and method of controlling electronic apparatus
CN102103776A (en) * 2009-12-17 2011-06-22 精工爱普生株式会社 Electronic apparatus and method of controlling electronic apparatus
CN102568121A (en) * 2010-11-11 2012-07-11 精工爱普生株式会社 Fiscal printer

Also Published As

Publication number Publication date
CN103679981B (en) 2016-04-20
BR102013028343A2 (en) 2017-07-04
JP2014052847A (en) 2014-03-20

Similar Documents

Publication Publication Date Title
US9645546B2 (en) Storage chip, imaging cartridge, method of changing serial number and method of using storage chip
US8661270B2 (en) Electronic apparatus and method of controlling electronic apparatus
RU2428743C2 (en) Fiscal printer
JP4106156B2 (en) Stencil printing machine
CN112192961B (en) Identification data switching method, equipment, consumable chip, consumable box and medium
CN103660583A (en) Data rewriting device for consumable chip and working method of data rewriting device
JP2011005853A (en) Irregularity prevention device, method of controlling irregularity prevention device, and fiscal printer to which method is applied
CN102381036B (en) Consumable chip, consumable container and data writing method for consumable chip
CN102112959B (en) Replaceable printer component including a memory updated atomically
CN101204884A (en) Chip, ink stone and manufacture method of ink stone
WO2016115985A1 (en) Imaging box chip, and reading and writing method for ink volume information about chip response imaging apparatus
CN103679981A (en) Finance printer and control method thereof
CN112824105B (en) Data processing method of consumable chip, consumable and imaging equipment
US20110145658A1 (en) Electronic apparatus and method of controlling electronic apparatus
JP2003122646A (en) Ic card and memory access control method for ic card
JP5510249B2 (en) Method for issuing IC card with display function, method for displaying IC card with display function, and IC card with display function
JP2761990B2 (en) Data protection device for electronic equipment
CN112527341A (en) Vehicle machine system upgrading method, vehicle machine system and computer storage medium
KR20030065223A (en) Host equipped with stabilizing function for flash memory and the method thereof
JP2015191395A (en) Electronic information storage medium, information processing method and information processing program
JP2011128830A (en) Electronic apparatus and method of controlling the same
JP2000194946A (en) Memory unit and ink cartridge
JP2012101378A (en) Fiscal information method for preserving of fiscal printer, and fiscal printer
JP3495439B2 (en) Operation history data storage device
JP2011126149A (en) Electronic device and method of controlling electronic device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20160420

CF01 Termination of patent right due to non-payment of annual fee