[go: up one dir, main page]

JP2014052847A - Fiscal printer and method for controlling fiscal printer - Google Patents

Fiscal printer and method for controlling fiscal printer Download PDF

Info

Publication number
JP2014052847A
JP2014052847A JP2012196927A JP2012196927A JP2014052847A JP 2014052847 A JP2014052847 A JP 2014052847A JP 2012196927 A JP2012196927 A JP 2012196927A JP 2012196927 A JP2012196927 A JP 2012196927A JP 2014052847 A JP2014052847 A JP 2014052847A
Authority
JP
Japan
Prior art keywords
fiscal
control
falsification
control program
storage unit
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
JP2012196927A
Other languages
Japanese (ja)
Inventor
Takeshi Wasamoto
剛 和佐本
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
Priority to JP2012196927A priority Critical patent/JP2014052847A/en
Priority to CN201310339390.0A priority patent/CN103679981B/en
Priority to BR102013028343-6A priority patent/BR102013028343A2/en
Publication of JP2014052847A publication Critical patent/JP2014052847A/en
Pending legal-status Critical Current

Links

Images

Landscapes

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

Abstract

【課題】フィスカル制御プログラムが改竄されていないことを確認する改竄確認制御プログラムが不正に読み出されることを防止することが可能なフィスカルプリンターを提案する。
【解決手段】フィスカルプリンター1は、フィスカル制御を行うフィスカル制御部21と、フィスカル制御を行うフィスカル制御プログラムが記憶される第1記憶部22と、フィスカル制御プログラムが改竄されていないことを確認する改竄確認制御を行う改竄確認制御部23と、改竄確認制御を行う改竄確認制御プログラムが記憶される第2記憶部24と、改竄確認制御プログラムの書換え制御を行う書換え制御部26と、書換え制御部26等へ電力を供給する電源27とを備えている。フィスカルメモリーに対する改竄行為が行われることが検知されると、書換え制御部26等に電力が供給されて、書換え制御部26が改竄確認制御プログラムを書き換える。
【選択図】図3
The present invention provides a fiscal printer capable of preventing a falsification confirmation control program for confirming that a fiscal control program has not been falsified from being read illegally.
A fiscal printer 1 includes a fiscal control unit 21 that performs fiscal control, a first storage unit 22 that stores a fiscal control program that performs fiscal control, and falsification that confirms that the fiscal control program has not been tampered with. A falsification confirmation control unit 23 that performs confirmation control, a second storage unit 24 that stores a falsification confirmation control program that performs falsification confirmation control, a rewrite control unit 26 that performs rewrite control of the falsification confirmation control program, and a rewrite control unit 26 And a power source 27 for supplying power to the power source. When it is detected that a falsification action is performed on the fiscal memory, power is supplied to the rewrite control unit 26 and the rewrite control unit 26 rewrites the falsification confirmation control program.
[Selection] Figure 3

Description

本発明は、フィスカルプリンターおよびフィスカルプリンターの制御方法に関する。   The present invention relates to a fiscal printer and a control method of a fiscal printer.

従来、販売取引に関するフィスカル情報を記憶する機能を備えるフィスカルプリンター
が知られている(たとえば、特許文献1参照)。特許文献1に記載のフィスカルプリンタ
ーは、フィスカル情報を記憶するフィスカルメモリーが実装されたフィスカル制御回路基
板を備えている。フィスカル制御回路基板には、フィスカルメモリーに対するデータの読
み書きを行うメインCPUが実装されている。メインCPUは、ROM等に記憶される所
定の制御プログラムにしたがって、フィスカルメモリーに対するデータの読み書きを実行
する。
2. Description of the Related Art Conventionally, a fiscal printer having a function of storing fiscal information related to sales transactions is known (for example, see Patent Document 1). The fiscal printer described in Patent Document 1 includes a fiscal control circuit board on which a fiscal memory that stores fiscal information is mounted. A main CPU that reads and writes data from and to the fiscal memory is mounted on the fiscal control circuit board. The main CPU reads / writes data from / to the fiscal memory according to a predetermined control program stored in the ROM or the like.

特開2010−134580号公報JP 2010-134580 A

近年、フィスカル制御回路基板のメインCPUが改竄された制御プログラムにしたがっ
て動作することを防止するため、フィスカルプリンターが起動するたびに、メインCPU
の制御プログラムの内容確認を義務付ける国も出始めている。改竄された制御プログラム
にしたがってメインCPUが動作することを防止するためには、制御プログラムが改竄さ
れていないことを確認する機能が必要になる。また、この機能を実現するためには、制御
プログラムが改竄されていないことを確認する改竄確認用の制御プログラムが必要になる
In recent years, every time a fiscal printer is started up, the main CPU of the fiscal control circuit board is prevented from operating according to a tampered control program.
Some countries are starting to require confirmation of the contents of their control programs. In order to prevent the main CPU from operating in accordance with the altered control program, a function for confirming that the control program has not been altered is required. Further, in order to realize this function, a tampering confirmation control program for confirming that the control program has not been tampered with is necessary.

また、改竄された改竄確認用の制御プログラムにしたがって、メインCPUの制御プロ
グラムの改竄確認が行われることを防止する必要もある。改竄された改竄確認用の制御プ
ログラムにしたがって、メインCPUの制御プログラムの改竄確認が行われることを防止
するためには、ROM等に記憶される改竄確認用の制御プログラムが不正に読み出される
のを防止することによって、改竄確認用の制御プログラムが入手されるのを防止すること
が好ましい。
It is also necessary to prevent the main CPU control program from being falsified in accordance with the falsification confirmation control program that has been falsified. In order to prevent the falsification confirmation of the control program of the main CPU according to the falsification confirmation control program that has been falsified, the falsification confirmation control program stored in the ROM or the like is illegally read out. It is preferable to prevent the falsification confirmation control program from being obtained.

そこで、本発明の課題は、フィスカル情報の書込み等を行うフィスカル制御プログラム
が改竄されていないことを確認する改竄確認制御プログラムが不正に読み出されることを
防止することが可能なフィスカルプリンターおよびフィスカルプリンターの制御方法を提
案することにある。
Accordingly, an object of the present invention is to provide a fiscal printer and a fiscal printer capable of preventing an unauthorized reading of a falsification confirmation control program for confirming that a fiscal control program for writing fiscal information has not been falsified. It is to propose a control method.

上記の課題を解決するため、本発明のフィスカルプリンターは、フィスカル情報が記憶
されるフィスカルメモリーと、少なくとも前記フィスカルメモリーへの前記フィスカル情
報の書込みを行うフィスカル制御を行うフィスカル制御部と、前記フィスカル制御を行う
フィスカル制御プログラムが記憶される第1記憶部と、前記第1記憶部に記憶されている
前記フィスカル制御プログラムが改竄されていないことを確認する改竄確認制御を行う改
竄確認制御部と、前記改竄確認制御を行う改竄確認制御プログラムが記憶される第2記憶
部と、前記フィスカルメモリーに対する改竄行為が行われることを検知する改竄検知機構
と、前記第2記憶部に記憶されている前記改竄確認制御プログラムを書き換える書換え制
御を行う書換え制御部と、前記書換え制御部および前記第2記憶部へ電力を供給する電源
と、を備え、前記フィスカルメモリーに対する前記改竄行為が行われることを前記改竄検
知機構が検知すると、前記書換え制御部および前記第2記憶部に前記電源から電力が供給
されて、前記書換え制御部が、前記第2記憶部に記憶されている前記改竄確認制御プログ
ラムを書き換えることを特徴とする。
In order to solve the above-described problem, a fiscal printer according to the present invention includes a fiscal memory in which fiscal information is stored, a fiscal control unit that performs at least fiscal control to write the fiscal information to the fiscal memory, and the fiscal control. A first storage unit storing a fiscal control program for performing falsification, a falsification confirmation control unit for performing falsification confirmation control for confirming that the fiscal control program stored in the first storage unit has not been falsified, and A second storage unit that stores a falsification confirmation control program for performing falsification confirmation control, a falsification detection mechanism that detects that a falsification act on the fiscal memory is performed, and the falsification confirmation stored in the second storage unit A rewrite control unit for performing a rewrite control for rewriting a control program; A power supply for supplying power to the replacement control unit and the second storage unit, and when the tampering detection mechanism detects that the tampering action is performed on the fiscal memory, the rewrite control unit and the second storage unit The power is supplied from the power source, and the rewrite control unit rewrites the falsification confirmation control program stored in the second storage unit.

また、上記の課題を解決するため、本発明のフィスカルプリンターの制御方法は、フィ
スカル情報が記憶されるフィスカルメモリーと、少なくとも前記フィスカルメモリーへの
前記フィスカル情報の書込みを行うフィスカル制御を行うフィスカル制御部と、前記フィ
スカル制御を行うフィスカル制御プログラムが記憶される第1記憶部と、前記第1記憶部
に記憶されている前記フィスカル制御プログラムが改竄されていないことを確認する改竄
確認制御を行う改竄確認制御部と、前記改竄確認制御を行う改竄確認制御プログラムが記
憶される第2記憶部と、前記フィスカルメモリーに対する改竄行為が行われることを検知
する改竄検知機構と、前記第2記憶部に記憶されている前記改竄確認制御プログラムを書
き換える書換え制御を行う書換え制御部と、前記書換え制御部および前記第2記憶部へ電
力を供給する電源と、を備えるフィスカルプリンターの制御方法であって、前記フィスカ
ルメモリーに対する前記改竄行為が行われることを前記改竄検知機構が検知すると、前記
書換え制御部および前記第2記憶部に前記電源から電力が供給されて、前記書換え制御部
が、前記第2記憶部に記憶されている前記改竄確認制御プログラムを書き換えることを特
徴とする。
In order to solve the above-described problem, a fiscal printer control method according to the present invention includes a fiscal memory in which fiscal information is stored, and a fiscal control unit that performs fiscal control for writing the fiscal information to at least the fiscal memory. A first storage unit storing a fiscal control program for performing the fiscal control, and a tampering confirmation control for performing tampering confirmation control for confirming that the fiscal control program stored in the first storage unit has not been tampered with A control unit, a second storage unit that stores a falsification confirmation control program for performing the falsification confirmation control, a falsification detection mechanism that detects that a falsification act on the fiscal memory is performed, and the second storage unit. Rewriting to rewrite the falsification confirmation control program A fiscal printer control method comprising: a control unit; and a power source that supplies power to the rewrite control unit and the second storage unit, wherein the tampering detection mechanism is configured to perform the tampering action on the fiscal memory. When detected, power is supplied from the power source to the rewrite control unit and the second storage unit, and the rewrite control unit rewrites the falsification confirmation control program stored in the second storage unit. To do.

本発明のフィスカルプリンターおよびフィスカルプリンターの制御方法では、フィスカ
ルメモリーに対する改竄行為が行われることを改竄検知機構が検知すると、書換え制御部
が、第2記憶部に記憶される改竄確認制御プログラムを書き換えている。すなわち、本発
明では、フィスカルメモリーに対する改竄行為に伴って、改竄確認制御プログラムが不正
に読み出されるおそれのある場合には、改竄確認制御プログラムが読み出されないように
、書換え制御部が改竄確認制御プログラムを書き換えている。そのため、本発明では、改
竄確認制御プログラムが不正に読み出されることを防止することが可能になる。
In the fiscal printer and the fiscal printer control method of the present invention, when the falsification detection mechanism detects that the falsification of the fiscal memory is performed, the rewrite control unit rewrites the falsification confirmation control program stored in the second storage unit. Yes. In other words, in the present invention, when there is a possibility that the falsification confirmation control program may be read illegally in accordance with the falsification action on the fiscal memory, the rewrite control unit prevents the falsification confirmation control program from being read out. Has been rewritten. Therefore, in the present invention, it is possible to prevent the falsification confirmation control program from being read illegally.

本発明において、前記書換え制御部は、前記改竄確認制御プログラムを消去する一定の
データを前記第2記憶部に書き込むことが好ましい。このように構成すると、書換え制御
部は、一定のデータを第2記憶部に書き込めば良いため、書換え制御部の制御が容易にな
る。
In the present invention, it is preferable that the rewrite control unit writes certain data for erasing the falsification confirmation control program in the second storage unit. If comprised in this way, since the rewriting control part should just write fixed data in a 2nd memory | storage part, control of a rewriting control part becomes easy.

本発明において、フィスカルプリンターは、前記改竄行為の発生日時を記憶可能なリア
ルタイムクロックを備え、前記リアルタイムクロックの出力信号のレベルは、前記フィス
カルプリンターがその製造工程を終了して完成した後であって、かつ、前記フィスカルプ
リンターの使用が開始された後に、前記改竄行為が行われることを前記改竄検知機構が検
知すると変化し、前記書換え制御部は、前記フィスカルメモリーに対する前記改竄行為が
行われることを前記改竄検知機構が検知し、かつ、前記リアルタイムクロックの出力信号
のレベルが変化すると、前記第2記憶部に記憶される前記改竄確認制御プログラムを書き
換えることが好ましい。このように構成すると、改竄行為が行われることを改竄検知機構
が検知したとしても、リアルタイムクロックの出力信号のレベルが変化しなければ、書換
え制御部は、第2記憶部に記憶される改竄確認制御プログラムを書き換えない。したがっ
て、たとえば、フィスカルプリンターの製造工程において、改竄確認制御プログラムが誤
って書き換えられてしまうのを防止することが可能になる。
In the present invention, the fiscal printer includes a real-time clock capable of storing the date and time of occurrence of the tampering action, and the level of the output signal of the real-time clock is after the fiscal printer has completed its manufacturing process and completed. And, when the tampering detection mechanism detects that the tampering action is performed after the use of the fiscal printer is started, the rewrite control unit changes that the tampering action is performed on the fiscal memory. When the tampering detection mechanism detects and the level of the output signal of the real time clock changes, it is preferable to rewrite the tampering confirmation control program stored in the second storage unit. With this configuration, even if the tampering detection mechanism detects that the tampering action is performed, if the level of the output signal of the real-time clock does not change, the rewrite control unit stores the tampering confirmation stored in the second storage unit Do not rewrite the control program. Therefore, for example, in the manufacturing process of the fiscal printer, it is possible to prevent the falsification confirmation control program from being rewritten accidentally.

本発明において、前記書換え制御部は、前記第2記憶部の先頭番地から前記改竄確認制
御プログラムを書き換えることが好ましい。一般に、フラッシュメモリー等の記憶部に記
憶される制御プログラムでは、記憶部の先頭番地側にベクターテーブル部等の重要なデー
タが書き込まれている。したがって、このように構成すると、改竄確認制御プログラムを
書き換える際の電源の残容量が少なくて、書換え制御部および第2記憶部に対する電源か
らの電力供給が短時間で途絶えたとしても、第2記憶部の先頭番地側の重要なデータを書
き換えることが可能になる。そのため、改竄確認制御プログラムを書き換える際の電源の
残容量が少なくて、書換え制御部および第2記憶部に対する電源からの電力供給が短時間
で途絶えたとしても、有意な改竄確認制御プログラムが不正に読み出されることを防止す
ることが可能になる。また、このように構成すると、電源の容量が小さくて、書換え制御
部および第2記憶部に対する電源からの電力供給が短時間で途絶えたとしても、第2記憶
部の先頭番地側の重要なデータを書き換えることが可能になる。したがって、電源の容量
を小さくしても、有意な改竄確認制御プログラムが不正に読み出されることを防止するこ
とが可能になる。
In the present invention, it is preferable that the rewrite control unit rewrites the falsification confirmation control program from the top address of the second storage unit. In general, in a control program stored in a storage unit such as a flash memory, important data such as a vector table unit is written on the head address side of the storage unit. Therefore, with this configuration, even if the remaining capacity of the power source when the falsification confirmation control program is rewritten is small and the power supply from the power source to the rewrite control unit and the second storage unit is interrupted in a short time, the second memory It becomes possible to rewrite important data on the head address side of the section. Therefore, even if the remaining capacity of the power supply when rewriting the falsification confirmation control program is small and the power supply from the power supply to the rewrite control unit and the second storage unit is interrupted in a short time, a significant falsification confirmation control program is illegally It becomes possible to prevent reading. Further, with this configuration, even if the power supply capacity is small and power supply from the power supply to the rewrite control unit and the second storage unit is interrupted in a short time, important data on the head address side of the second storage unit Can be rewritten. Therefore, even if the capacity of the power source is reduced, it is possible to prevent a significant tampering confirmation control program from being read illegally.

本発明において、フィスカルプリンターは、前記書換え制御部および前記第2記憶部が
接続されるスイッチを備え、前記電源は、バックアップ用の一次電池であり、前記書換え
制御部および前記第2記憶部は、前記スイッチを介して、前記電源に直接、接続されてい
ることが好ましい。すなわち、本発明において、書換え制御部および第2記憶部は、抵抗
等の電圧降下を生じさせる電子部品を介さずに、電源に接続されていることが好ましい。
このように構成すると、書換え制御部および第2記憶部に電源からの電圧を印加する際に
抵抗等による無駄な電圧降下が生じない。したがって、改竄確認制御プログラムを書き換
える際の電源の残容量が少なくても、書換え制御部および第2記憶部を動作させて、改竄
確認制御プログラムを書き換えることが可能になる。また、無駄な電圧降下が生じないた
め、電源の容量が小さくても、書換え制御部および第2記憶部を動作させて、改竄確認制
御プログラムを書き換えることが可能になる。すなわち、電源の容量を小さくしても、改
竄確認制御プログラムを書き換えて、改竄確認制御プログラムが不正に読み出されること
を防止することが可能になる。
In the present invention, the fiscal printer includes a switch to which the rewrite control unit and the second storage unit are connected, the power source is a primary battery for backup, and the rewrite control unit and the second storage unit are: It is preferable that the power source is directly connected to the power source via the switch. In other words, in the present invention, it is preferable that the rewrite control unit and the second storage unit are connected to a power source without using electronic components that cause a voltage drop such as resistance.
If comprised in this way, when applying the voltage from a power supply to the rewriting control part and the 2nd memory | storage part, a useless voltage drop by resistance etc. will not arise. Therefore, even if the remaining capacity of the power supply when rewriting the tampering confirmation control program is small, it becomes possible to rewrite the tampering confirmation control program by operating the rewrite control unit and the second storage unit. In addition, since a useless voltage drop does not occur, it is possible to rewrite the falsification confirmation control program by operating the rewrite control unit and the second storage unit even when the capacity of the power supply is small. That is, even if the capacity of the power supply is reduced, it is possible to rewrite the falsification confirmation control program and prevent the falsification confirmation control program from being read illegally.

本発明の実施の形態にかかるフィスカルプリンターの外観斜視図。1 is an external perspective view of a fiscal printer according to an embodiment of the present invention. 図1のフィスカルプリンターを異なる角度から示す外観斜視図。FIG. 2 is an external perspective view showing the fiscal printer of FIG. 1 from different angles. 図1のフィスカルプリンターのブロック図。The block diagram of the fiscal printer of FIG. 一次電池およびその周辺部の回路図。The circuit diagram of a primary battery and its peripheral part. MCUによる書換え制御の一例のフローチャート。The flowchart of an example of the rewriting control by MCU.

以下、図面を参照しながら、本発明を適用したフィスカルプリンターおよびフィスカル
プリンターの制御方法を説明する。
Hereinafter, a fiscal printer to which the present invention is applied and a control method of the fiscal printer will be described with reference to the drawings.

(フィスカルプリンターの構成)
図1は、本発明の実施の形態にかかるフィスカルプリンター1の外観斜視図である。図
2は、図1のフィスカルプリンター1を異なる角度から示す外観斜視図である。図3は、
図1のフィスカルプリンター1のブロック図である。図4は、一次電池27およびその周
辺部の回路図である。
(Fiscal printer configuration)
FIG. 1 is an external perspective view of a fiscal printer 1 according to an embodiment of the present invention. FIG. 2 is an external perspective view showing the fiscal printer 1 of FIG. 1 from different angles. FIG.
It is a block diagram of the fiscal printer 1 of FIG. FIG. 4 is a circuit diagram of the primary battery 27 and its peripheral part.

本形態のフィスカルプリンター1(以下、「プリンター1」とする。)は、POS端末
等に接続される会計用のプリンターである。プリンター1は、販売取引に関する印刷情報
をレシートに印刷して印刷後のレシートを発行する機能と、販売取引に関するフィスカル
情報を記憶して保持する機能とを備えている。このプリンター1は、プリンター本体2と
、プリンター本体2の底部に固定されるフィスカルモジュール3とを備えている。
A fiscal printer 1 (hereinafter referred to as “printer 1”) of this embodiment is a printer for accounting connected to a POS terminal or the like. The printer 1 has a function of printing print information related to sales transactions on a receipt and issuing a printed receipt, and a function of storing and holding fiscal information related to sales transactions. The printer 1 includes a printer main body 2 and a fiscal module 3 fixed to the bottom of the printer main body 2.

プリンター本体2の内部には、図示を省略する記録紙の収容部、記録紙搬送機構および
印刷ヘッド等が搭載されている。また、プリンター本体2は、プリンター本体2の上面の
前側に配置される開閉蓋4と、プリンター本体2の上面の後側に配置される開閉蓋5とを
備えている。開閉蓋4と開閉蓋5との間には、記録紙の幅方向に延びるレシート排出口6
が形成されている。レシート排出口6の側方には、スライドボタン7が配置されている。
スライドボタン7を操作すると、開閉蓋5のロックが外れて、開閉蓋5を開けることが可
能になる。また、開閉蓋5を開けると、記録紙の収納部が露出し、記録紙の交換等を行う
ことが可能になる。また、開閉蓋4を開けると、インクリボンの交換等を行うことが可能
になる。
Inside the printer main body 2, a recording paper storage unit, a recording paper transport mechanism, a print head, and the like (not shown) are mounted. The printer body 2 includes an opening / closing lid 4 disposed on the front side of the upper surface of the printer body 2 and an opening / closing lid 5 disposed on the rear side of the upper surface of the printer body 2. A receipt discharge port 6 extending in the width direction of the recording paper is provided between the opening / closing lid 4 and the opening / closing lid 5.
Is formed. A slide button 7 is disposed on the side of the receipt outlet 6.
When the slide button 7 is operated, the opening / closing lid 5 is unlocked and the opening / closing lid 5 can be opened. Further, when the opening / closing lid 5 is opened, the recording paper storage unit is exposed and the recording paper can be exchanged. When the opening / closing lid 4 is opened, the ink ribbon can be exchanged.

フィスカルモジュール3は、フィスカルメモリー基板10と、EJメモリー基板11と
、プリンター制御基板12と、フィスカル制御基板13とを備えている。フィスカルメモ
リー基板10、EJメモリー基板11、プリンター制御基板12およびフィスカル制御基
板13は、金属製の筺体14の内部に配置されている。筺体14は、ケース体15と、ケ
ース体15の開口部を覆うカバー部材16とから構成されている。また、フィスカルモジ
ュール3には、図示を省略するホストコンピューター等にフィスカルモジュール3を電気
的に接続するための各種のコネクター17が取り付けられている。
The fiscal module 3 includes a fiscal memory board 10, an EJ memory board 11, a printer control board 12, and a fiscal control board 13. The fiscal memory board 10, the EJ memory board 11, the printer control board 12, and the fiscal control board 13 are arranged inside a metal housing 14. The housing 14 includes a case body 15 and a cover member 16 that covers the opening of the case body 15. The fiscal module 3 is provided with various connectors 17 for electrically connecting the fiscal module 3 to a host computer (not shown).

フィスカルメモリー基板10には、フィスカル情報が記憶されるフィスカルメモリーが
実装されている。フィスカルメモリーは、フラッシュメモリーまたはOTP−ROM等で
ある。EJメモリー基板11には、レシートへの印刷情報が記憶されるEJ(電子ジャー
ナル)メモリーが実装されている。フィスカルメモリー基板10およびEJメモリー基板
11は、黒色のエポキシ樹脂によって覆われている。プリンター制御基板12には、プリ
ンター本体2の各機構を制御するためのプリンター制御用CPU18が実装されている。
A fiscal memory in which fiscal information is stored is mounted on the fiscal memory substrate 10. The fiscal memory is a flash memory or an OTP-ROM. The EJ memory board 11 is mounted with an EJ (electronic journal) memory in which printing information for receipts is stored. The fiscal memory substrate 10 and the EJ memory substrate 11 are covered with a black epoxy resin. A printer control CPU 18 for controlling each mechanism of the printer main body 2 is mounted on the printer control board 12.

フィスカル制御基板13には、フィスカル制御部としてのフィスカル制御用CPU21
と、第1記憶部としてのフラッシュメモリー22と、改竄確認制御部としてのプログラム
改竄確認用CPU23と、第2記憶部としてのフラッシュメモリー24と、RTC(リア
ルタイムクロック)25と、書換え制御部としてのMCU(メモリーコントロールユニッ
ト)26と、電源としてのバックアップ用の一次電池27と、リセット用IC28とが実
装されている。
The fiscal control board 13 has a fiscal control CPU 21 as a fiscal control unit.
A flash memory 22 as a first storage unit, a program falsification confirmation CPU 23 as a falsification confirmation control unit, a flash memory 24 as a second storage unit, an RTC (real time clock) 25, and a rewrite control unit An MCU (memory control unit) 26, a backup primary battery 27 as a power source, and a reset IC 28 are mounted.

フィスカル制御用CPU21は、フィスカルメモリーへのフィスカル情報の書込みおよ
びEJメモリーへの印刷情報の書込みを行うためのフィスカル制御等を行う。フラッシュ
メモリー22には、フィスカル制御用CPU21がフィスカル制御を行うためのフィスカ
ル制御プログラムが記憶されている。フィスカル制御用CPU21は、フラッシュメモリ
ー22に記憶されているフィスカル制御プログラムに基づいて、フィスカルメモリーへの
フィスカル情報の書込みおよびEJメモリーへの印刷情報の書込み等を行う。なお、本形
態のフラッシュメモリー22は、シリアルフラッシュメモリーである。
The fiscal control CPU 21 performs fiscal control for writing fiscal information into the fiscal memory and printing information into the EJ memory. The flash memory 22 stores a fiscal control program for the fiscal control CPU 21 to perform the fiscal control. The fiscal control CPU 21 writes fiscal information into the fiscal memory, print information into the EJ memory, and the like based on the fiscal control program stored in the flash memory 22. Note that the flash memory 22 of this embodiment is a serial flash memory.

プログラム改竄確認用CPU23は、フラッシュメモリー22に記憶されているフィス
カル制御プログラムが改竄されていないことを確認するための改竄確認制御を行う。フラ
ッシュメモリー24には、プログラム改竄確認用CPU23が改竄確認制御を行うための
改竄確認制御プログラムが記憶されている。プログラム改竄確認用CPU23は、フラッ
シュメモリー24に記憶されている改竄確認制御プログラムに基づいて、プリンター1が
起動するたびに、フラッシュメモリー22に記憶されているフィスカル制御プログラムと
、基本フィスカル制御プログラムとを比較する。また、プログラム改竄確認用CPU23
は、2つの制御プログラムの内容が一致しなければ、プリンター1を停止させ、2つの制
御プログラムの内容が一致すれば、プリンター1を動作可能な状態にする。なお、本形態
のフラッシュメモリー24は、パラレルフラッシュメモリーである。また、本形態では、
フラッシュメモリー24の先頭番地に記憶されているデータから始まる数バイトのデータ
によってベクターテーブル部が構成されている。
The program falsification confirmation CPU 23 performs falsification confirmation control for confirming that the fiscal control program stored in the flash memory 22 has not been falsified. The flash memory 24 stores a falsification confirmation control program for the program falsification confirmation CPU 23 to perform falsification confirmation control. Based on the falsification confirmation control program stored in the flash memory 24, the program falsification confirmation CPU 23 executes the fiscal control program stored in the flash memory 22 and the basic fiscal control program each time the printer 1 is activated. Compare. In addition, the program falsification confirmation CPU 23
If the contents of the two control programs do not match, the printer 1 is stopped. If the contents of the two control programs match, the printer 1 is made operable. Note that the flash memory 24 of the present embodiment is a parallel flash memory. In this embodiment,
The vector table portion is composed of several bytes of data starting from the data stored at the head address of the flash memory 24.

RTC25は、後述の改竄検知機構(図示省略)によって検知されるフィスカルメモリ
ーへの改竄行為の発生日時を記憶する機能を備えている。RTC25は、たとえば、矩形
波状のデジタル信号を出力する。RTC25の出力信号のレベルは、プリンター1がその
製造工程を終了して完成した後であって、かつ、プリンター1の使用が開始された後に、
フィスカルメモリーへの改竄行為を改竄検知機構が検知すると変化する。たとえば、RT
C25の出力信号のレベルは、フィスカルメモリーへの改竄行為を改竄検知機構が検知す
ると、ローレベルからハイレベルへ、あるいは、ハイレベルからローレベルへ切り替わる
The RTC 25 has a function of storing the date and time of occurrence of falsification to the fiscal memory detected by a falsification detection mechanism (not shown) described later. The RTC 25 outputs, for example, a rectangular wave digital signal. The level of the output signal of the RTC 25 is after the printer 1 has completed its manufacturing process and completed, and after the use of the printer 1 is started,
It changes when the tampering detection mechanism detects tampering with fiscal memory. For example, RT
The level of the output signal of C25 is switched from the low level to the high level or from the high level to the low level when the tampering detection mechanism detects the falsification action to the fiscal memory.

MCU26は、フラッシュメモリー24に記憶されている改竄確認制御プログラムを書
き換えるための書換え制御を行う。このMCU26は、書換え制御を行うための書換え制
御プログラムが記憶されたフラッシュメモリーを備えている。MCU26による書換え制
御の詳細については後述する。
The MCU 26 performs rewrite control for rewriting the falsification confirmation control program stored in the flash memory 24. The MCU 26 includes a flash memory in which a rewrite control program for performing rewrite control is stored. Details of the rewrite control by the MCU 26 will be described later.

一次電池27には、SRAM(スタティックランダムアクセスメモリー)等のバックア
ップ電力の供給が必要な各種の電子部品が接続されている。これらの電子部品は、抵抗2
9(図4参照)を介して一次電池27に接続されている。抵抗29は、一次電池27から
の突入電流によってこれらの電子部品が損傷するのを防止する機能を果たしている。
The primary battery 27 is connected to various electronic components such as SRAM (Static Random Access Memory) that need to be supplied with backup power. These electronic components have resistance 2
9 (see FIG. 4) is connected to the primary battery 27. The resistor 29 functions to prevent these electronic components from being damaged by the inrush current from the primary battery 27.

また、一次電池27には、スイッチ30を介して、フラッシュメモリー24、MCU2
6およびリセット用IC28が接続されている。フラッシュメモリー24、MCU26お
よびリセット用IC28は、スイッチ30を介して、一次電池27に直接、接続されてい
る。すなわち、フラッシュメモリー24、MCU26およびリセット用IC28は、電圧
降下を生じさせる抵抗等の電子部品を介さずに、一次電池27に直接、接続されている(
図4参照)。スイッチ30は、通常、フラッシュメモリー24、MCU26およびリセッ
ト用IC28と一次電池27との接続を遮断する開状態となっている。また、以下に説明
する改竄検知機構によってフィスカルメモリーに対する改竄行為が行われることが検知さ
れると、スイッチ30は、閉状態となって、フラッシュメモリー24、MCU26および
リセット用IC28と一次電池27とを接続し、フラッシュメモリー24、MCU26お
よびリセット用IC28へ一次電池27から電力が供給される。
Further, the primary battery 27 is connected to the flash memory 24, the MCU 2 via the switch 30.
6 and a reset IC 28 are connected. The flash memory 24, the MCU 26, and the reset IC 28 are directly connected to the primary battery 27 via the switch 30. That is, the flash memory 24, the MCU 26, and the reset IC 28 are directly connected to the primary battery 27 without passing through electronic components such as resistors that cause a voltage drop (
(See FIG. 4). The switch 30 is normally in an open state in which the connection between the flash memory 24, the MCU 26 and the reset IC 28 and the primary battery 27 is cut off. When it is detected by the tampering detection mechanism described below that tampering with the fiscal memory is performed, the switch 30 is closed, and the flash memory 24, the MCU 26, the reset IC 28, and the primary battery 27 are connected. Power is supplied from the primary battery 27 to the flash memory 24, MCU 26 and reset IC 28.

また、フィスカルモジュール3は、上述の構成に加えて、フィスカルメモリーに対する
改竄行為が行われることを検知するための改竄検知機構(図示省略)を備えている。この
改竄検知機構は、たとえば、プリンター本体2からフィスカルモジュール3が取り外され
るとともに、ケース体15からカバー部材16が取り外されたことを検知する。また、こ
の改竄検知機構は、たとえば、プリンター本体2からフィスカルモジュール3が取り外さ
れるとともに、筺体14にドリル等で孔が開けられたことを検知する。すなわち、改竄検
知機構は、プリンター本体2からフィスカルモジュール3が取り外されるとともに、ケー
ス体15からカバー部材16が取り外されたことを検知することで、あるいは、プリンタ
ー本体2からフィスカルモジュール3が取り外されるとともに、筺体14にドリル等で孔
が開けられたことを検知することで、フィスカルメモリーに対する改竄行為が行われるこ
とを検知する。
In addition to the above-described configuration, the fiscal module 3 includes a tampering detection mechanism (not shown) for detecting that tampering with the fiscal memory is performed. This tampering detection mechanism detects, for example, that the fiscal module 3 has been removed from the printer body 2 and that the cover member 16 has been removed from the case body 15. The tampering detection mechanism detects, for example, that the fiscal module 3 has been removed from the printer body 2 and that a hole has been opened in the housing 14 with a drill or the like. That is, the tampering detection mechanism detects that the fiscal module 3 has been removed from the printer body 2 and that the cover member 16 has been removed from the case body 15, or that the fiscal module 3 has been removed from the printer body 2. By detecting that a hole has been drilled in the housing 14 with a drill or the like, it is detected that the falsification of the fiscal memory is performed.

(MCUによる書換え制御)
図5は、MCU26による書換え制御の一例のフローチャートである。フィスカルモジ
ュール3では、フィスカルメモリーに対する改竄行為が行われることを改竄検知機構が検
知すると(ステップS1)、スイッチ30が閉じて、フラッシュメモリー24、MCU2
6およびリセット用IC28に一次電池27から電力が供給される(ステップS2)。す
ると、リセット用IC28から出力されたリセット信号がMCU26に入力される(ステ
ップS3)。
(Rewrite control by MCU)
FIG. 5 is a flowchart of an example of rewrite control by the MCU 26. In the fiscal module 3, when the falsification detection mechanism detects that the falsification of the fiscal memory is performed (step S1), the switch 30 is closed, and the flash memory 24, MCU2
6 and the reset IC 28 are supplied with power from the primary battery 27 (step S2). Then, the reset signal output from the reset IC 28 is input to the MCU 26 (step S3).

その後、MCU26は、RTC25の割込出力の状態を読む。すなわち、MCU26は
、RTC25の出力信号のレベルが変化しているか否かを確認する(ステップS4)。R
TC25の出力信号のレベルが変化している場合(ステップS4で“Yes”の場合)に
は、MCU26は、書換え制御プログラムにしたがって、フラッシュメモリー24に記憶
されている改竄確認制御プログラムを書き換える(ステップS5)。本形態では、ステッ
プS5において、MCU26は、改竄確認制御プログラムを消去するための一定のデータ
をフラッシュメモリー24に書き込む。また、ステップS5において、MCU26は、フ
ラッシュメモリー24の先頭番地から改竄確認制御プログラムを書き換える。
Thereafter, the MCU 26 reads the interrupt output status of the RTC 25. That is, the MCU 26 checks whether or not the level of the output signal of the RTC 25 has changed (step S4). R
If the level of the output signal of the TC 25 has changed (“Yes” in step S4), the MCU 26 rewrites the falsification confirmation control program stored in the flash memory 24 according to the rewrite control program (step S4). S5). In this embodiment, the MCU 26 writes certain data for erasing the falsification confirmation control program in the flash memory 24 in step S5. In step S <b> 5, the MCU 26 rewrites the falsification confirmation control program from the top address of the flash memory 24.

また、ステップS5において、MCU26は、フラッシュメモリー24に対してバイト
アクセスで4バイトのデータを送信し、フラッシュメモリー24の仕様に応じた所定の手
順でフラッシュメモリー24に記憶されている改竄確認制御プログラムを書き換える。た
とえば、ステップS5において、MCU26は、まず、アドレスバスへ「AAAh」をセ
ットし、データバスへ「AAh」をセットする。その後、MCU26は、アドレスバスへ
「555h」をセットし、データバスへ「55h」をセットする。その後、MCU26は
、アドレスバスへ「AAAh」をセットし、データバスへ「A0h」をセットする。その
後、MCU26は、アドレスバスへ「000h」をセットし、データバスへ「00h」を
セットする。その後、MCU26は、WE(ライト・イネーブル)端子をトグルさせる。
WE端子をトグルさせるたびに、フラッシュメモリー24にデータ「00h」が書き込ま
れる。すなわち、WE端子をトグルさせるたびに、フラッシュメモリー24に0データが
書き込まれる。
In step S5, the MCU 26 transmits 4-byte data to the flash memory 24 by byte access, and the falsification confirmation control program stored in the flash memory 24 in a predetermined procedure according to the specifications of the flash memory 24. Rewrite. For example, in step S5, the MCU 26 first sets “AAAh” to the address bus and sets “AAh” to the data bus. Thereafter, the MCU 26 sets “555h” to the address bus and sets “55h” to the data bus. Thereafter, the MCU 26 sets “AAAh” to the address bus and sets “A0h” to the data bus. Thereafter, the MCU 26 sets “000h” to the address bus and sets “00h” to the data bus. Thereafter, the MCU 26 toggles the WE (write enable) terminal.
Each time the WE terminal is toggled, data “00h” is written to the flash memory 24. That is, every time the WE terminal is toggled, 0 data is written in the flash memory 24.

ステップS5で、フラッシュメモリー24に記憶されている改竄確認制御プログラムが
書き換えられると、MCU26による書換え制御が終了する。また、RTC25の出力信
号のレベルが変化していない場合(ステップS4で“No”の場合)には、フラッシュメ
モリー24に記憶されている改竄確認制御プログラムが書き換えられることなく、MCU
26による書換え制御が終了する。
When the tampering confirmation control program stored in the flash memory 24 is rewritten in step S5, the rewrite control by the MCU 26 ends. If the level of the output signal of the RTC 25 has not changed (“No” in step S4), the falsification confirmation control program stored in the flash memory 24 is not rewritten and the MCU
The rewrite control by 26 is finished.

(本実施の形態の主な効果)
以上説明したように、本形態では、フィスカルメモリーに対する改竄行為が行われるこ
とを改竄検知機構が検知し、かつ、RTC25の出力信号のレベルが変化していると、M
CU26は、フラッシュメモリー24に記憶されている改竄確認制御プログラムを書き換
えている。すなわち、本形態では、フィスカルメモリーに対する改竄行為に伴って、改竄
確認制御プログラムが不正に読み出されるおそれのある場合には、改竄確認制御プログラ
ムが読み出されないように、MCU26が改竄確認制御プログラムを書き換えている。そ
のため、本形態では、改竄確認制御プログラムが不正に読み出されることを防止すること
が可能になる。
(Main effects of this embodiment)
As described above, in the present embodiment, when the tampering detection mechanism detects that a tampering action is performed on the fiscal memory and the level of the output signal of the RTC 25 changes, M
The CU 26 rewrites the falsification confirmation control program stored in the flash memory 24. In other words, in this embodiment, the MCU 26 rewrites the falsification confirmation control program so that the falsification confirmation control program is not read when there is a possibility that the falsification confirmation control program may be read illegally in association with the falsification of the fiscal memory. ing. Therefore, in this embodiment, it becomes possible to prevent the falsification confirmation control program from being read illegally.

なお、本形態の改竄確認制御プログラムの全データの書換えにかかる時間は、12秒程
度である。一方で、プリンター本体2からフィスカルモジュール3を取り外すとともに、
ケース体15からカバー部材16を取り外して、あるいは、筺体14にドリル等で孔を開
けて、フラッシュメモリー24を露出させるまでには、1分以上の時間がかかる。そのた
め、本形態では、改竄確認制御プログラムの書換えが行われる場合、通常、改竄確認制御
プログラムの全データが書き換えられる(すなわち、改竄確認制御プログラムの全データ
が消去される)。
Note that the time required for rewriting all data in the falsification confirmation control program of this embodiment is about 12 seconds. On the other hand, while removing the fiscal module 3 from the printer body 2,
It takes one minute or more to remove the cover member 16 from the case body 15 or to make a hole in the housing 14 with a drill or the like to expose the flash memory 24. Therefore, in this embodiment, when the falsification confirmation control program is rewritten, all data in the falsification confirmation control program is normally rewritten (that is, all data in the falsification confirmation control program is erased).

本形態では、MCU26は、改竄確認制御プログラムを消去するための一定のデータを
フラッシュメモリー24に書き込んでいる。すなわち、本形態では、MCU26は、改竄
確認制御プログラムを書き換えるために一定のデータをフラッシュメモリー24に書き込
めば良い。したがって、本形態では、MCU26の制御が容易になる。
In this embodiment, the MCU 26 writes certain data for erasing the falsification confirmation control program in the flash memory 24. That is, in this embodiment, the MCU 26 may write certain data into the flash memory 24 in order to rewrite the falsification confirmation control program. Therefore, in this embodiment, the MCU 26 can be easily controlled.

本形態では、MCU26は、RTC25の出力信号のレベルが変化しているときに、フ
ラッシュメモリー24に記憶されている改竄確認制御プログラムを書き換えている。すな
わち、本形態では、改竄行為が行われることを改竄検知機構が検知したとしても、RTC
25の出力信号のレベルが変化しなければ、MCU26は、フラッシュメモリー24に記
憶されている改竄確認制御プログラムを書き換えない。そのため、本形態では、たとえば
、プリンター1の製造工程において、改竄確認制御プログラムが誤って書き換えられてし
まうのを防止することが可能になる。
In this embodiment, the MCU 26 rewrites the falsification confirmation control program stored in the flash memory 24 when the level of the output signal of the RTC 25 is changing. That is, in this embodiment, even if the tampering detection mechanism detects that the tampering action is performed, the RTC
If the level of the output signal 25 does not change, the MCU 26 does not rewrite the tampering confirmation control program stored in the flash memory 24. Therefore, in this embodiment, for example, in the manufacturing process of the printer 1, it is possible to prevent the falsification confirmation control program from being rewritten accidentally.

本形態では、MCU26は、フラッシュメモリー24の先頭番地から改竄確認制御プロ
グラムを書き換えている。そのため、たとえば、MCU26による書換え制御を行う際の
一次電池27の残容量が少なくて、MCU26およびフラッシュメモリー24に対する一
次電池27からの電力供給が短時間で途絶えたとしても、フラッシュメモリー24のベク
ターテーブル部を書き換えることが可能になる。したがって、本形態では、MCU26に
よる書換え制御を行う際の一次電池27の残容量が少なくても、有意な改竄確認制御プロ
グラムが不正に読み出されることを防止することが可能になる。また、たとえば、一次電
池27の容量が小さくて、MCU26による書換え制御を行う際に、MCU26およびフ
ラッシュメモリー24に対する一次電池27からの電力供給が短時間で途絶えたとしても
、フラッシュメモリー24のベクターテーブル部を書き換えることが可能になる。したが
って、本形態では、一次電池27の容量を小さくしても、有意な改竄確認制御プログラム
が不正に読み出されることを防止することが可能になる。
In this embodiment, the MCU 26 rewrites the falsification confirmation control program from the head address of the flash memory 24. Therefore, for example, even if the remaining capacity of the primary battery 27 when performing rewrite control by the MCU 26 is small and the power supply from the primary battery 27 to the MCU 26 and the flash memory 24 is interrupted in a short time, the vector table of the flash memory 24 The part can be rewritten. Therefore, in this embodiment, even if the remaining capacity of the primary battery 27 when performing rewrite control by the MCU 26 is small, it is possible to prevent a significant tampering confirmation control program from being read illegally. Further, for example, when the capacity of the primary battery 27 is small and rewriting control by the MCU 26 is performed, even if the power supply from the primary battery 27 to the MCU 26 and the flash memory 24 is interrupted in a short time, the vector table of the flash memory 24 The part can be rewritten. Therefore, in this embodiment, even when the capacity of the primary battery 27 is reduced, it is possible to prevent a significant tampering confirmation control program from being read illegally.

本形態では、フラッシュメモリー24、MCU26およびリセット用IC28は、電圧
降下を生じさせる抵抗等の電子部品を介さずに、一次電池27に直接、接続されている。
そのため、本形態では、フラッシュメモリー24、MCU26およびリセット用IC28
に一次電池27からの電圧を印加する際に、抵抗等による無駄な電圧降下が生じない。し
たがって、本形態では、たとえば、MCU26による書換え制御を行う際の一次電池27
の残容量が少なくても、フラッシュメモリー24、MCU26およびリセット用IC28
を動作させて、MCU26による書換え制御を行うことが可能になる。また、本形態では
、抵抗等による無駄な電圧降下が生じないため、たとえば、一次電池27の容量が小さく
ても、MCU26による書換え制御を行うことが可能になる。すなわち、本形態では、一
次電池27の容量を小さくしても、フラッシュメモリー24、MCU26およびリセット
用IC28を動作させて、MCU26による書換え制御を行うことが可能になる。
In this embodiment, the flash memory 24, the MCU 26, and the reset IC 28 are directly connected to the primary battery 27 without using electronic components such as resistors that cause a voltage drop.
Therefore, in this embodiment, the flash memory 24, the MCU 26, and the reset IC 28
In addition, when the voltage from the primary battery 27 is applied, a wasteful voltage drop due to resistance or the like does not occur. Therefore, in this embodiment, for example, the primary battery 27 when performing rewrite control by the MCU 26.
Even if the remaining capacity of the flash memory 24 is small, the flash memory 24, the MCU 26, and the reset IC 28
The rewriting control by the MCU 26 can be performed by operating the. Further, in this embodiment, since a useless voltage drop due to resistance or the like does not occur, for example, even if the capacity of the primary battery 27 is small, the rewrite control by the MCU 26 can be performed. That is, in this embodiment, even if the capacity of the primary battery 27 is reduced, the flash memory 24, the MCU 26, and the reset IC 28 can be operated to perform rewrite control by the MCU 26.

(他の実施の形態)
上述した形態では、MCU26は、改竄確認制御プログラムを書き換える際に、改竄確
認制御プログラムを消去するための一定のデータをフラッシュメモリー24に書き込んで
いるが、改竄確認制御プログラムが書き換えられるのであれば、MCU26は、どのよう
なデータをフラッシュメモリー24に書き込んでも良い。また、上述した形態では、MC
U26は、フラッシュメモリー24の先頭番地から改竄確認制御プログラムを書き換えて
いるが、MCU26は、フラッシュメモリー24の任意の番地から改竄確認制御プログラ
ムを書き換えても良い。
(Other embodiments)
In the above-described form, the MCU 26 writes certain data for erasing the falsification confirmation control program in the flash memory 24 when rewriting the falsification confirmation control program, but if the falsification confirmation control program can be rewritten, The MCU 26 may write any data into the flash memory 24. In the above-described form, MC
Although the U 26 rewrites the falsification confirmation control program from the head address of the flash memory 24, the MCU 26 may rewrite the falsification confirmation control program from an arbitrary address of the flash memory 24.

上述した形態では、MCU26は、フィスカルメモリーに対する改竄行為が行われるこ
とを改竄検知機構が検知し、かつ、RTC25の出力信号のレベルが変化しているときに
、フラッシュメモリー24に記憶されている改竄確認制御プログラムを書き換えている。
しかし、MCU26は、フィスカルメモリーに対する改竄行為が行われることを改竄検知
機構が検知したときに、フラッシュメモリー24に記憶されている改竄確認制御プログラ
ムを書き換えても良い。
In the above-described form, the MCU 26 detects the tampering action on the fiscal memory by the tampering detection mechanism, and the tampering stored in the flash memory 24 when the level of the output signal of the RTC 25 changes. The confirmation control program is being rewritten.
However, the MCU 26 may rewrite the tampering confirmation control program stored in the flash memory 24 when the tampering detection mechanism detects that tampering with the fiscal memory is performed.

上述した形態では、改竄検知機構は、プリンター本体2からフィスカルモジュール3が
取り外されるとともに、ケース体15からカバー部材16が取り外されたこと、あるいは
、筺体14にドリル等で孔が開けられたことを検知することで、フィスカルメモリーに対
する改竄行為が行われることを検知している。しかし、改竄検知機構は、プリンター本体
2からフィスカルモジュール3が取り外されたことを検知することで、フィスカルメモリ
ーに対する改竄行為が行われることを検知しても良い。
In the above-described form, the tampering detection mechanism indicates that the fiscal module 3 has been removed from the printer body 2 and the cover member 16 has been removed from the case body 15 or that a hole has been drilled in the housing 14 with a drill or the like. By detecting this, it is detected that falsification of the fiscal memory is performed. However, the falsification detection mechanism may detect that the falsification of the fiscal memory is performed by detecting that the fiscal module 3 has been removed from the printer main body 2.

なお、上述した形態において、フィスカルメモリーに対する改竄行為が行われることを
改竄検知機構が検知し、かつ、RTC25の出力信号のレベルが変化しているときに、フ
ラッシュメモリー22に記憶されているフィスカル制御プログラムをMCU26が書き換
えても良い。
In the above-described embodiment, the fiscal control stored in the flash memory 22 is detected when the tampering detection mechanism detects that the manipulation of the fiscal memory is performed and the level of the output signal of the RTC 25 is changed. The MCU 26 may rewrite the program.

1・・・フィスカルプリンター、21・・・フィスカル制御用CPU(フィスカル制御
部)、22・・・フラッシュメモリー(第1記憶部)、23・・・プログラム改竄確認用
CPU(改竄確認制御部)、24・・・フラッシュメモリー(第2記憶部)、25・・・
RTC(リアルタイムクロック)、26・・・MCU(書換え制御部)、27・・・一次
電池(電源)、30・・・スイッチ
DESCRIPTION OF SYMBOLS 1 ... Fiscal printer, 21 ... Fiscal control CPU (Fiscal control part), 22 ... Flash memory (1st memory | storage part), 23 ... Program falsification confirmation CPU (falsification confirmation control part), 24... Flash memory (second storage unit), 25.
RTC (real time clock), 26 ... MCU (rewrite control unit), 27 ... primary battery (power supply), 30 ... switch

Claims (6)

フィスカル情報が記憶されるフィスカルメモリーと、
少なくとも前記フィスカルメモリーへの前記フィスカル情報の書込みを行うフィスカル
制御を行うフィスカル制御部と、
前記フィスカル制御を行うフィスカル制御プログラムが記憶される第1記憶部と、
前記第1記憶部に記憶されている前記フィスカル制御プログラムが改竄されていないこ
とを確認する改竄確認制御を行う改竄確認制御部と、
前記改竄確認制御を行う改竄確認制御プログラムが記憶される第2記憶部と、
前記フィスカルメモリーに対する改竄行為が行われることを検知する改竄検知機構と、
前記第2記憶部に記憶されている前記改竄確認制御プログラムを書き換える書換え制御
を行う書換え制御部と、
前記書換え制御部および前記第2記憶部へ電力を供給する電源と、を備え、
前記フィスカルメモリーに対する前記改竄行為が行われることを前記改竄検知機構が検
知すると、前記書換え制御部および前記第2記憶部に前記電源から電力が供給されて、前
記書換え制御部が、前記第2記憶部に記憶されている前記改竄確認制御プログラムを書き
換えることを特徴とするフィスカルプリンター。
Fiscal memory that stores fiscal information,
A fiscal control unit that performs fiscal control to write the fiscal information to at least the fiscal memory; and
A first storage unit storing a fiscal control program for performing the fiscal control;
A tampering confirmation control unit for performing tampering confirmation control for confirming that the fiscal control program stored in the first storage unit is not tampered;
A second storage unit for storing a falsification confirmation control program for performing the falsification confirmation control;
A tampering detection mechanism for detecting that tampering with the fiscal memory is performed;
A rewrite control unit for performing rewrite control for rewriting the falsification confirmation control program stored in the second storage unit;
A power source for supplying power to the rewrite control unit and the second storage unit,
When the tampering detection mechanism detects that the tampering action is performed on the fiscal memory, power is supplied from the power source to the rewrite control unit and the second storage unit, and the rewrite control unit stores the second memory. A fiscal printer, wherein the falsification confirmation control program stored in the unit is rewritten.
前記書換え制御部は、前記改竄確認制御プログラムを消去する一定のデータを前記第2
記憶部に書き込むことを特徴とする請求項1に記載のフィスカルプリンター。
The rewrite control unit receives certain data for erasing the falsification confirmation control program as the second data.
The fiscal printer according to claim 1, wherein the fiscal printer is written in a storage unit.
前記改竄行為の発生日時を記憶可能なリアルタイムクロックを備え、
前記リアルタイムクロックの出力信号のレベルは、前記フィスカルプリンターがその製
造工程を終了して完成した後であって、かつ、前記フィスカルプリンターの使用が開始さ
れた後に、前記改竄行為が行われることを前記改竄検知機構が検知すると変化し、
前記書換え制御部は、前記フィスカルメモリーに対する前記改竄行為が行われることを
前記改竄検知機構が検知し、かつ、前記リアルタイムクロックの出力信号のレベルが変化
すると、前記第2記憶部に記憶される前記改竄確認制御プログラムを書き換えることを特
徴とする請求項1または2に記載のフィスカルプリンター。
A real-time clock capable of storing the date and time of occurrence of the tampering action;
The level of the output signal of the real-time clock is that the falsification is performed after the fiscal printer is completed after completing its manufacturing process and after the use of the fiscal printer is started. Changes when the falsification detection mechanism detects,
The rewriting control unit is stored in the second storage unit when the tampering detection mechanism detects that the tampering action is performed on the fiscal memory and the level of the output signal of the real-time clock changes. The fiscal printer according to claim 1, wherein the falsification confirmation control program is rewritten.
前記書換え制御部は、前記第2記憶部の先頭番地から前記改竄確認制御プログラムを書
き換えることを特徴とする請求項1から3のいずれかに記載のフィスカルプリンター。
4. The fiscal printer according to claim 1, wherein the rewrite control unit rewrites the falsification confirmation control program from a head address of the second storage unit. 5.
前記書換え制御部および前記第2記憶部が接続されるスイッチを備え、
前記電源は、バックアップ用の一次電池であり、
前記書換え制御部および前記第2記憶部は、前記スイッチを介して、前記電源に直接、
接続されていることを特徴とする請求項1から4のいずれかに記載のフィスカルプリンタ
ー。
A switch to which the rewrite control unit and the second storage unit are connected;
The power source is a primary battery for backup,
The rewrite control unit and the second storage unit are directly connected to the power source via the switch.
The fiscal printer according to claim 1, wherein the fiscal printer is connected.
フィスカル情報が記憶されるフィスカルメモリーと、
少なくとも前記フィスカルメモリーへの前記フィスカル情報の書込みを行うフィスカル
制御を行うフィスカル制御部と、
前記フィスカル制御を行うフィスカル制御プログラムが記憶される第1記憶部と、
前記第1記憶部に記憶されている前記フィスカル制御プログラムが改竄されていないこ
とを確認する改竄確認制御を行う改竄確認制御部と、
前記改竄確認制御を行う改竄確認制御プログラムが記憶される第2記憶部と、
前記フィスカルメモリーに対する改竄行為が行われることを検知する改竄検知機構と、
前記第2記憶部に記憶されている前記改竄確認制御プログラムを書き換える書換え制御
を行う書換え制御部と、
前記書換え制御部および前記第2記憶部へ電力を供給する電源と、を備えるフィスカル
プリンターの制御方法であって、
前記フィスカルメモリーに対する前記改竄行為が行われることを前記改竄検知機構が検
知すると、前記書換え制御部および前記第2記憶部に前記電源から電力が供給されて、前
記書換え制御部が、前記第2記憶部に記憶されている前記改竄確認制御プログラムを書き
換えることを特徴とするフィスカルプリンターの制御方法。
Fiscal memory that stores fiscal information,
A fiscal control unit that performs fiscal control to write the fiscal information to at least the fiscal memory; and
A first storage unit storing a fiscal control program for performing the fiscal control;
A tampering confirmation control unit for performing tampering confirmation control for confirming that the fiscal control program stored in the first storage unit is not tampered;
A second storage unit for storing a falsification confirmation control program for performing the falsification confirmation control;
A tampering detection mechanism for detecting that tampering with the fiscal memory is performed;
A rewrite control unit for performing rewrite control for rewriting the falsification confirmation control program stored in the second storage unit;
A control method of a fiscal printer comprising: a power source that supplies power to the rewrite control unit and the second storage unit,
When the tampering detection mechanism detects that the tampering action is performed on the fiscal memory, power is supplied from the power source to the rewrite control unit and the second storage unit, and the rewrite control unit stores the second memory. A control method for a fiscal printer, wherein the falsification confirmation control program stored in the unit is rewritten.
JP2012196927A 2012-09-07 2012-09-07 Fiscal printer and method for controlling fiscal printer Pending JP2014052847A (en)

Priority Applications (3)

Application Number Priority Date Filing Date Title
JP2012196927A JP2014052847A (en) 2012-09-07 2012-09-07 Fiscal printer and method for controlling fiscal printer
CN201310339390.0A CN103679981B (en) 2012-09-07 2013-08-06 The control method of fiscal printer and fiscal printer
BR102013028343-6A BR102013028343A2 (en) 2012-09-07 2013-09-09 FISCAL PRINTER AND METHOD FOR CONTROLLING FISCAL PRINTER

Applications Claiming Priority (1)

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

Publications (1)

Publication Number Publication Date
JP2014052847A true JP2014052847A (en) 2014-03-20

Family

ID=50317397

Family Applications (1)

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

Country Status (3)

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

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6199049B1 (en) * 1998-09-30 2001-03-06 International Business Machines Corporation Verifiable electronic journal for a point of sale device and methods for using the same
US7877563B2 (en) * 2006-12-07 2011-01-25 International Business Machines Corporation Programmable memory device security
JP2011123781A (en) * 2009-12-14 2011-06-23 Seiko Epson Corp Electronic apparatus and method of controlling the same
BRPI1005607B1 (en) * 2009-12-17 2021-02-23 Seiko Epson Corporation electronic device and method to control electronic device
US20130293918A1 (en) * 2010-11-11 2013-11-07 Seiko Epson Corporation Fiscal Printer

Also Published As

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

Similar Documents

Publication Publication Date Title
CN101751731B (en) Fiscal printer
US8661270B2 (en) Electronic apparatus and method of controlling electronic apparatus
USRE47621E1 (en) Secure transaction microcontroller with secure boot loader
EP3050708B1 (en) Storage chip, imaging cartridge, method for changing a serial number and method of using storage chip
EP2361770A1 (en) Memory device, board, liquid container, host device, and system
CN101898463B (en) Anti-tamper device, method of controlling an anti-tamper device, and a fiscal printer using the same
CN107257737A (en) Printed material print cartridge
TWI585605B (en) Printing material cartridge
JP2006127648A (en) Nonvolatile storage device and electronic device
CN102592375B (en) Fiscal memory control method, fiscal control circuit board, and fiscal printer
JP2014052847A (en) Fiscal printer and method for controlling fiscal printer
US20110145658A1 (en) Electronic apparatus and method of controlling electronic apparatus
JP3758013B2 (en) Memory unit and ink cartridge
JP4053245B2 (en) Semiconductor memory device that can prevent unauthorized use
TW594971B (en) Electronic device, machine and system using the same
JP2008242907A (en) Fiscal unit, printer, fiscal unit control method and program
JP2011126149A (en) Electronic device and method of controlling electronic device
JP2011128830A (en) Electronic apparatus and method of controlling the same
JP2016163947A (en) Module and printer
JP2014052848A (en) Fiscal printer
JPH0334115B2 (en)
JPH04172582A (en) Electronic equipment
JPH01266695A (en) Power source control circuit for memory card
JP2016163946A (en) Module and printer
JPH03252786A (en) Ic card

Legal Events

Date Code Title Description
RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20150108