JP2014052847A - Fiscal printer and method for controlling fiscal printer - Google Patents
Fiscal printer and method for controlling fiscal printer Download PDFInfo
- 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
Links
- 238000000034 method Methods 0.000 title claims description 10
- 238000012790 confirmation Methods 0.000 claims abstract description 103
- 230000009471 action Effects 0.000 claims abstract description 16
- 230000007246 mechanism Effects 0.000 claims description 31
- 238000001514 detection method Methods 0.000 claims description 30
- 238000004519 manufacturing process Methods 0.000 claims description 5
- 230000006870 function Effects 0.000 description 7
- 238000010586 diagram Methods 0.000 description 4
- 239000000758 substrate Substances 0.000 description 3
- 230000008859 change Effects 0.000 description 2
- 230000002093 peripheral effect Effects 0.000 description 2
- 230000000694 effects Effects 0.000 description 1
- 239000003822 epoxy resin Substances 0.000 description 1
- 239000002184 metal Substances 0.000 description 1
- 229920000647 polyepoxide Polymers 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 230000007723 transport mechanism Effects 0.000 description 1
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が改竄確認制御プログラムを書き換える。
【選択図】図3The 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
近年、フィスカル制御回路基板のメイン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.
以下、図面を参照しながら、本発明を適用したフィスカルプリンターおよびフィスカル
プリンターの制御方法を説明する。
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
It is a block diagram of the
本形態のフィスカルプリンター1(以下、「プリンター1」とする。)は、POS端末
等に接続される会計用のプリンターである。プリンター1は、販売取引に関する印刷情報
をレシートに印刷して印刷後のレシートを発行する機能と、販売取引に関するフィスカル
情報を記憶して保持する機能とを備えている。このプリンター1は、プリンター本体2と
、プリンター本体2の底部に固定されるフィスカルモジュール3とを備えている。
A fiscal printer 1 (hereinafter referred to as “
プリンター本体2の内部には、図示を省略する記録紙の収容部、記録紙搬送機構および
印刷ヘッド等が搭載されている。また、プリンター本体2は、プリンター本体2の上面の
前側に配置される開閉蓋4と、プリンター本体2の上面の後側に配置される開閉蓋5とを
備えている。開閉蓋4と開閉蓋5との間には、記録紙の幅方向に延びるレシート排出口6
が形成されている。レシート排出口6の側方には、スライドボタン7が配置されている。
スライドボタン7を操作すると、開閉蓋5のロックが外れて、開閉蓋5を開けることが可
能になる。また、開閉蓋5を開けると、記録紙の収納部が露出し、記録紙の交換等を行う
ことが可能になる。また、開閉蓋4を開けると、インクリボンの交換等を行うことが可能
になる。
Inside the printer
Is formed. A
When the
フィスカルモジュール3は、フィスカルメモリー基板10と、EJメモリー基板11と
、プリンター制御基板12と、フィスカル制御基板13とを備えている。フィスカルメモ
リー基板10、EJメモリー基板11、プリンター制御基板12およびフィスカル制御基
板13は、金属製の筺体14の内部に配置されている。筺体14は、ケース体15と、ケ
ース体15の開口部を覆うカバー部材16とから構成されている。また、フィスカルモジ
ュール3には、図示を省略するホストコンピューター等にフィスカルモジュール3を電気
的に接続するための各種のコネクター17が取り付けられている。
The
フィスカルメモリー基板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
フィスカル制御基板13には、フィスカル制御部としてのフィスカル制御用CPU21
と、第1記憶部としてのフラッシュメモリー22と、改竄確認制御部としてのプログラム
改竄確認用CPU23と、第2記憶部としてのフラッシュメモリー24と、RTC(リア
ルタイムクロック)25と、書換え制御部としてのMCU(メモリーコントロールユニッ
ト)26と、電源としてのバックアップ用の一次電池27と、リセット用IC28とが実
装されている。
The
A
フィスカル制御用CPU21は、フィスカルメモリーへのフィスカル情報の書込みおよ
びEJメモリーへの印刷情報の書込みを行うためのフィスカル制御等を行う。フラッシュ
メモリー22には、フィスカル制御用CPU21がフィスカル制御を行うためのフィスカ
ル制御プログラムが記憶されている。フィスカル制御用CPU21は、フラッシュメモリ
ー22に記憶されているフィスカル制御プログラムに基づいて、フィスカルメモリーへの
フィスカル情報の書込みおよびEJメモリーへの印刷情報の書込み等を行う。なお、本形
態のフラッシュメモリー22は、シリアルフラッシュメモリーである。
The
プログラム改竄確認用CPU23は、フラッシュメモリー22に記憶されているフィス
カル制御プログラムが改竄されていないことを確認するための改竄確認制御を行う。フラ
ッシュメモリー24には、プログラム改竄確認用CPU23が改竄確認制御を行うための
改竄確認制御プログラムが記憶されている。プログラム改竄確認用CPU23は、フラッ
シュメモリー24に記憶されている改竄確認制御プログラムに基づいて、プリンター1が
起動するたびに、フラッシュメモリー22に記憶されているフィスカル制御プログラムと
、基本フィスカル制御プログラムとを比較する。また、プログラム改竄確認用CPU23
は、2つの制御プログラムの内容が一致しなければ、プリンター1を停止させ、2つの制
御プログラムの内容が一致すれば、プリンター1を動作可能な状態にする。なお、本形態
のフラッシュメモリー24は、パラレルフラッシュメモリーである。また、本形態では、
フラッシュメモリー24の先頭番地に記憶されているデータから始まる数バイトのデータ
によってベクターテーブル部が構成されている。
The program
If the contents of the two control programs do not match, the
The vector table portion is composed of several bytes of data starting from the data stored at the head address of the
RTC25は、後述の改竄検知機構(図示省略)によって検知されるフィスカルメモリ
ーへの改竄行為の発生日時を記憶する機能を備えている。RTC25は、たとえば、矩形
波状のデジタル信号を出力する。RTC25の出力信号のレベルは、プリンター1がその
製造工程を終了して完成した後であって、かつ、プリンター1の使用が開始された後に、
フィスカルメモリーへの改竄行為を改竄検知機構が検知すると変化する。たとえば、RT
C25の出力信号のレベルは、フィスカルメモリーへの改竄行為を改竄検知機構が検知す
ると、ローレベルからハイレベルへ、あるいは、ハイレベルからローレベルへ切り替わる
。
The
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
一次電池27には、SRAM(スタティックランダムアクセスメモリー)等のバックア
ップ電力の供給が必要な各種の電子部品が接続されている。これらの電子部品は、抵抗2
9(図4参照)を介して一次電池27に接続されている。抵抗29は、一次電池27から
の突入電流によってこれらの電子部品が損傷するのを防止する機能を果たしている。
The
9 (see FIG. 4) is connected to the
また、一次電池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
6 and a
(See FIG. 4). The
また、フィスカルモジュール3は、上述の構成に加えて、フィスカルメモリーに対する
改竄行為が行われることを検知するための改竄検知機構(図示省略)を備えている。この
改竄検知機構は、たとえば、プリンター本体2からフィスカルモジュール3が取り外され
るとともに、ケース体15からカバー部材16が取り外されたことを検知する。また、こ
の改竄検知機構は、たとえば、プリンター本体2からフィスカルモジュール3が取り外さ
れるとともに、筺体14にドリル等で孔が開けられたことを検知する。すなわち、改竄検
知機構は、プリンター本体2からフィスカルモジュール3が取り外されるとともに、ケー
ス体15からカバー部材16が取り外されたことを検知することで、あるいは、プリンタ
ー本体2からフィスカルモジュール3が取り外されるとともに、筺体14にドリル等で孔
が開けられたことを検知することで、フィスカルメモリーに対する改竄行為が行われるこ
とを検知する。
In addition to the above-described configuration, the
(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
6 and the
その後、MCU26は、RTC25の割込出力の状態を読む。すなわち、MCU26は
、RTC25の出力信号のレベルが変化しているか否かを確認する(ステップS4)。R
TC25の出力信号のレベルが変化している場合(ステップS4で“Yes”の場合)に
は、MCU26は、書換え制御プログラムにしたがって、フラッシュメモリー24に記憶
されている改竄確認制御プログラムを書き換える(ステップS5)。本形態では、ステッ
プS5において、MCU26は、改竄確認制御プログラムを消去するための一定のデータ
をフラッシュメモリー24に書き込む。また、ステップS5において、MCU26は、フ
ラッシュメモリー24の先頭番地から改竄確認制御プログラムを書き換える。
Thereafter, the
If the level of the output signal of the
また、ステップ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
Each time the WE terminal is toggled, data “00h” is written to the
ステップS5で、フラッシュメモリー24に記憶されている改竄確認制御プログラムが
書き換えられると、MCU26による書換え制御が終了する。また、RTC25の出力信
号のレベルが変化していない場合(ステップS4で“No”の場合)には、フラッシュメ
モリー24に記憶されている改竄確認制御プログラムが書き換えられることなく、MCU
26による書換え制御が終了する。
When the tampering confirmation control program stored in the
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
The
なお、本形態の改竄確認制御プログラムの全データの書換えにかかる時間は、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
It takes one minute or more to remove the
本形態では、MCU26は、改竄確認制御プログラムを消去するための一定のデータを
フラッシュメモリー24に書き込んでいる。すなわち、本形態では、MCU26は、改竄
確認制御プログラムを書き換えるために一定のデータをフラッシュメモリー24に書き込
めば良い。したがって、本形態では、MCU26の制御が容易になる。
In this embodiment, the
本形態では、MCU26は、RTC25の出力信号のレベルが変化しているときに、フ
ラッシュメモリー24に記憶されている改竄確認制御プログラムを書き換えている。すな
わち、本形態では、改竄行為が行われることを改竄検知機構が検知したとしても、RTC
25の出力信号のレベルが変化しなければ、MCU26は、フラッシュメモリー24に記
憶されている改竄確認制御プログラムを書き換えない。そのため、本形態では、たとえば
、プリンター1の製造工程において、改竄確認制御プログラムが誤って書き換えられてし
まうのを防止することが可能になる。
In this embodiment, the
If the level of the
本形態では、MCU26は、フラッシュメモリー24の先頭番地から改竄確認制御プロ
グラムを書き換えている。そのため、たとえば、MCU26による書換え制御を行う際の
一次電池27の残容量が少なくて、MCU26およびフラッシュメモリー24に対する一
次電池27からの電力供給が短時間で途絶えたとしても、フラッシュメモリー24のベク
ターテーブル部を書き換えることが可能になる。したがって、本形態では、MCU26に
よる書換え制御を行う際の一次電池27の残容量が少なくても、有意な改竄確認制御プロ
グラムが不正に読み出されることを防止することが可能になる。また、たとえば、一次電
池27の容量が小さくて、MCU26による書換え制御を行う際に、MCU26およびフ
ラッシュメモリー24に対する一次電池27からの電力供給が短時間で途絶えたとしても
、フラッシュメモリー24のベクターテーブル部を書き換えることが可能になる。したが
って、本形態では、一次電池27の容量を小さくしても、有意な改竄確認制御プログラム
が不正に読み出されることを防止することが可能になる。
In this embodiment, the
本形態では、フラッシュメモリー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
Therefore, in this embodiment, the
In addition, when the voltage from the
Even if the remaining capacity of the
The rewriting control by the
(他の実施の形態)
上述した形態では、MCU26は、改竄確認制御プログラムを書き換える際に、改竄確
認制御プログラムを消去するための一定のデータをフラッシュメモリー24に書き込んで
いるが、改竄確認制御プログラムが書き換えられるのであれば、MCU26は、どのよう
なデータをフラッシュメモリー24に書き込んでも良い。また、上述した形態では、MC
U26は、フラッシュメモリー24の先頭番地から改竄確認制御プログラムを書き換えて
いるが、MCU26は、フラッシュメモリー24の任意の番地から改竄確認制御プログラ
ムを書き換えても良い。
(Other embodiments)
In the above-described form, the
Although the
上述した形態では、MCU26は、フィスカルメモリーに対する改竄行為が行われるこ
とを改竄検知機構が検知し、かつ、RTC25の出力信号のレベルが変化しているときに
、フラッシュメモリー24に記憶されている改竄確認制御プログラムを書き換えている。
しかし、MCU26は、フィスカルメモリーに対する改竄行為が行われることを改竄検知
機構が検知したときに、フラッシュメモリー24に記憶されている改竄確認制御プログラ
ムを書き換えても良い。
In the above-described form, the
However, the
上述した形態では、改竄検知機構は、プリンター本体2からフィスカルモジュール3が
取り外されるとともに、ケース体15からカバー部材16が取り外されたこと、あるいは
、筺体14にドリル等で孔が開けられたことを検知することで、フィスカルメモリーに対
する改竄行為が行われることを検知している。しかし、改竄検知機構は、プリンター本体
2からフィスカルモジュール3が取り外されたことを検知することで、フィスカルメモリ
ーに対する改竄行為が行われることを検知しても良い。
In the above-described form, the tampering detection mechanism indicates that the
なお、上述した形態において、フィスカルメモリーに対する改竄行為が行われることを
改竄検知機構が検知し、かつ、RTC25の出力信号のレベルが変化しているときに、フ
ラッシュメモリー22に記憶されているフィスカル制御プログラムをMCU26が書き換
えても良い。
In the above-described embodiment, the fiscal control stored in the
1・・・フィスカルプリンター、21・・・フィスカル制御用CPU(フィスカル制御
部)、22・・・フラッシュメモリー(第1記憶部)、23・・・プログラム改竄確認用
CPU(改竄確認制御部)、24・・・フラッシュメモリー(第2記憶部)、25・・・
RTC(リアルタイムクロック)、26・・・MCU(書換え制御部)、27・・・一次
電池(電源)、30・・・スイッチ
DESCRIPTION OF
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.
記憶部に書き込むことを特徴とする請求項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.
き換えることを特徴とする請求項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記憶部は、前記スイッチを介して、前記電源に直接、
接続されていることを特徴とする請求項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.
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)
| 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 |
-
2012
- 2012-09-07 JP JP2012196927A patent/JP2014052847A/en active Pending
-
2013
- 2013-08-06 CN CN201310339390.0A patent/CN103679981B/en not_active Expired - Fee Related
- 2013-09-09 BR BR102013028343-6A patent/BR102013028343A2/en not_active Application Discontinuation
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 |