JP2014115803A - Information processor, control method of information processor, and program - Google Patents
Information processor, control method of information processor, and program Download PDFInfo
- Publication number
- JP2014115803A JP2014115803A JP2012269091A JP2012269091A JP2014115803A JP 2014115803 A JP2014115803 A JP 2014115803A JP 2012269091 A JP2012269091 A JP 2012269091A JP 2012269091 A JP2012269091 A JP 2012269091A JP 2014115803 A JP2014115803 A JP 2014115803A
- Authority
- JP
- Japan
- Prior art keywords
- data
- fiscal
- firmware
- stored
- mode
- 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
Images
Landscapes
- Stored Programmes (AREA)
Abstract
Description
本発明は、フィスカルデータを記憶する情報処理装置、当該情報処理装置の制御方法、及び、当該情報処理装置を制御するためのプログラムに関する。 The present invention relates to an information processing apparatus that stores fiscal data, a control method for the information processing apparatus, and a program for controlling the information processing apparatus.
従来、商品を販売等する店舗に設けられ、取引に関する情報(売上に関する情報や、課税に関する情報等)を含むフィスカルデータを記憶する情報処理装置(電子式キャッシュレジスター、レシート用のプリンター)が知られている(例えば、特許文献1参照)。 Conventionally, an information processing apparatus (electronic cash register, receipt printer) that is provided in a store that sells products and stores fiscal data including information on transactions (information on sales, information on taxation, etc.) is known. (For example, refer to Patent Document 1).
上述した情報処理装置のように、フィスカルデータを記憶するものでは、装置の基本制御プログラムであるファームウェアの不正な書き換えは、フィスカルデータの改ざん、その他のフィスカルデータに係る不正につながるため、これを防止する必要がある。一方で、情報処理装置の出荷前の製造段階では、プログラム修正やテストに対応するため、容易にファームウェアの書き換えを行えるようにしたいとするニーズがある。
本発明は、上述した事情に鑑みてなされたものであり、情報処理装置の状況に応じて、ファームウェアの書き換えを適切に制限することを目的とする。
In cases where fiscal data is stored, such as the information processing device described above, unauthorized rewriting of the firmware, which is the basic control program of the device, will lead to tampering with fiscal data, and other fraud related to fiscal data, thus preventing this. There is a need to. On the other hand, at the manufacturing stage before shipping of the information processing apparatus, there is a need to be able to easily rewrite firmware in order to cope with program correction and testing.
The present invention has been made in view of the above-described circumstances, and an object thereof is to appropriately limit firmware rewriting according to the status of an information processing apparatus.
上記目的を達成するために、本発明は、フィスカルデータを記憶する情報処理装置であって、データの書き込み後、書き込んだデータの書き換えができない記憶領域を備え、前記記憶領域に所定の情報が記憶される前は、前記フィスカルデータに係る処理を実行不可能とする一方、前記所定の情報が記憶された後は、前記フィスカルデータに係る処理を実行可能な構成とし、ファームウェアの書き換えを行うモードへの移行を許可する状態と、許可しない状態とを切り替えるスイッチを設け、前記ファームウェアの書き換えを行うモードへの移行の指示があった場合、前記記憶領域に前記所定の情報が記憶されているか否か判別し、記憶されていない場合は、前記スイッチの状態にかかわらず、前記ファームウェアの書き換えを行うモードに移行することを特徴とする。
この構成によれば、情報処理装置がフィスカルデータに係る処理を行う装置として機能している状況では、スイッチの切り替えによってファームウェアの書き換えを行うモードへの移行を許可する状態となっている場合にのみ、ファームウェアの書き換えを行うモードへの移行が可能となり、ファームウェアの不正な書き換えを抑制できる。その上で、製造段階を含む、情報処理装置がフィスカルデータに係る処理を行なう装置として機能していない状況では、スイッチの状態にかかわらず、ファームウェアの書き換えを行うモードへ移行できるため、製造段階におけるファームウェアの容易な書き換えを実現でき、製造段階における作業の効率化を実現できる。すなわち、情報処理装置の状況に応じて、ファームウェアの書き換えを適切に制限できる。さらに、所定の情報は、データの書込み後、書き込んだデータの書き換えができない記憶領域に記憶されるため、一旦、情報処理装置がフィスカルデータに係る処理を行なう装置として機能した後は、スイッチの切り替えによってファームウェアの書き換えを行うモードへの移行を許可する状態となっている場合にのみ、ファームウェアの書き換えを行うモードへの移行が可能となり、より効果的にファームウェアの不正な書き換えを抑制できる。
In order to achieve the above object, the present invention is an information processing apparatus for storing fiscal data, comprising a storage area in which the written data cannot be rewritten after the data is written, and predetermined information is stored in the storage area. Before the processing is performed, the processing related to the fiscal data is disabled. On the other hand, after the predetermined information is stored, the processing related to the fiscal data is performed and the firmware is rewritten. If a switch for switching between a state that permits the transition of the firmware and a state that does not permit the transition is provided and there is an instruction to transition to the mode for rewriting the firmware, whether or not the predetermined information is stored in the storage area If it is determined and not stored, the firmware is rewritten regardless of the state of the switch. Characterized in that row.
According to this configuration, in a situation where the information processing device functions as a device that performs processing related to fiscal data, only when the switch to the mode for rewriting firmware is permitted by switching the switch. Therefore, it is possible to shift to a mode for rewriting firmware, and it is possible to suppress unauthorized rewriting of firmware. In addition, in a situation where the information processing device does not function as a device that performs processing related to fiscal data, including the manufacturing stage, it is possible to shift to a mode for rewriting firmware regardless of the state of the switch. Firmware can be easily rewritten, and work efficiency in the manufacturing stage can be improved. That is, firmware rewriting can be appropriately restricted according to the status of the information processing apparatus. Furthermore, since the predetermined information is stored in a storage area in which the written data cannot be rewritten after the data is written, once the information processing device functions as a device for performing processing related to the fiscal data, the switch is switched. Thus, only when it is in a state of permitting the transition to the mode for rewriting the firmware, the mode can be shifted to the mode for rewriting the firmware, and unauthorized rewriting of the firmware can be suppressed more effectively.
また、本発明は、前記スイッチは、装置本体のケース内に設けられた回路基板に実装されたディップスイッチであることを特徴とする。
この構成によれば、装置本体のケースを取り外した上で、回路基板を露出して初めてディップスイッチを操作できる。これにより、専門的な知識を有していない第三者がディップスイッチを操作することを抑制でき、より効果的にファームウェアの不正な書き換えを抑制できる。
In the invention, it is preferable that the switch is a dip switch mounted on a circuit board provided in a case of the apparatus main body.
According to this configuration, the dip switch can be operated only after the circuit board is exposed after removing the case of the apparatus main body. As a result, it is possible to prevent a third party who does not have specialized knowledge from operating the dip switch, and to more effectively prevent unauthorized rewriting of the firmware.
また、本発明は、前記記憶領域には、前記フィスカルデータが記憶されることを特徴とする。
ここで、フィスカルデータは、改ざんされることを防止しなければならないデータである。そして、上記構成によれば、フィスカルデータ、及び、所定の情報の双方が、データの書き込み後、書き込んだデータの書き換えができない記憶領域に記憶されるため、それぞれについて専用の記憶領域を設ける場合と比較してコストを削減しつつ、双方のデータが後に改ざんされることを防止できる。
Further, the present invention is characterized in that the fiscal data is stored in the storage area.
Here, fiscal data is data that must be prevented from being tampered with. And according to the said structure, since both fiscal data and predetermined information are memorize | stored in the memory area which cannot rewrite the written data after data writing, the case where a dedicated memory area is provided for each It is possible to prevent both data from being falsified later while reducing the cost.
また、本発明は、前記ファームウェアの書き換えを行うモードへの移行の指示は、接続された外部機器からの特定の制御コマンドによって行われることを特徴とする。
この構成によれば、スイッチの適切な切り換え、及び、外部機器からの特定の制御コマンドの入力があって初めて、ファームウェアの書き換えを行なうモードへの移行が可能となり、より効果的にファームウェアの不正な書き換えを抑制できる。
In addition, the present invention is characterized in that an instruction to shift to the firmware rewriting mode is issued by a specific control command from a connected external device.
According to this configuration, it is possible to shift to a firmware rewriting mode only when there is an appropriate switch switch and a specific control command is input from an external device. Rewriting can be suppressed.
また、上記目的を達成するために、本発明は、フィスカルデータを記憶し、データの書き込み後、書き込んだデータの書き換えができない記憶領域を備える情報処理装置の制御方法であって、前記記憶領域に所定の情報が記憶される前は、前記フィスカルデータに係る処理を実行不可能とする一方、前記所定の情報が記憶された後は、前記フィスカルデータに係る処理を実行可能な構成とし、ファームウェアの書き換えを行うモードへの移行を許可する状態と、許可しない状態とを切り替えるスイッチを設けた上で、前記ファームウェアの書き換えを行うモードへの移行の指示があった場合、前記記憶領域に前記所定の情報が記憶されているか否か判別し、記憶されていない場合は、前記スイッチの状態にかかわらず、前記ファームウェアの書き換えを行うモードに移行することを特徴とする。
この制御方法によれば、情報処理装置がフィスカルデータに係る処理を行う装置として機能している状況では、スイッチの切り替えによってファームウェアの書き換えを行うモードへの移行を許可する状態となっている場合にのみ、ファームウェアの書き換えを行うモードへの移行が可能となり、ファームウェアの不正な書き換えを抑制できる。その上で、製造段階を含む、情報処理装置がフィスカルデータに係る処理を行なう装置として機能していない状況では、スイッチの状態にかかわらず、ファームウェアの書き換えを行うモードへ移行できるため、製造段階におけるファームウェアの容易な書き換えを実現でき、製造段階における作業の効率化を実現できる。すなわち、情報処理装置の状況に応じて、ファームウェアの書き換えを適切に制限できる。さらに、所定の情報は、データの書込み後、書き込んだデータの書き換えができない記憶領域に記憶されるため、一旦、情報処理装置がフィスカルデータに係る処理を行なう装置として機能した後は、スイッチの切り替えによってファームウェアの書き換えを行うモードへの移行を許可する状態となっている場合にのみ、ファームウェアの書き換えを行うモードへの移行が可能となり、より効果的にファームウェアの不正な書き換えを抑制できる。
In order to achieve the above object, the present invention is a method for controlling an information processing apparatus comprising a storage area that stores fiscal data and cannot rewrite the written data after the data is written. Before the predetermined information is stored, the process related to the fiscal data cannot be executed.On the other hand, after the predetermined information is stored, the process related to the fiscal data can be executed. Provided with a switch that switches between a state that permits a transition to a mode for rewriting and a state that does not permit a transition, and when there is an instruction to transition to a mode for rewriting the firmware, It is determined whether or not information is stored, and if it is not stored, regardless of the switch state, the firmware Characterized in that it shifts to the mode in which the place of trees.
According to this control method, in a situation where the information processing device functions as a device that performs processing related to fiscal data, when switching to a mode for rewriting firmware by switching a switch is permitted. Only, it is possible to shift to a mode in which firmware is rewritten, and unauthorized rewriting of firmware can be suppressed. In addition, in a situation where the information processing device does not function as a device that performs processing related to fiscal data, including the manufacturing stage, it is possible to shift to a mode for rewriting firmware regardless of the state of the switch. Firmware can be easily rewritten, and work efficiency in the manufacturing stage can be improved. That is, firmware rewriting can be appropriately restricted according to the status of the information processing apparatus. Furthermore, since the predetermined information is stored in a storage area in which the written data cannot be rewritten after the data is written, once the information processing device functions as a device for performing processing related to the fiscal data, the switch is switched. Thus, only when it is in a state of permitting the transition to the mode for rewriting the firmware, the mode can be shifted to the mode for rewriting the firmware, and unauthorized rewriting of the firmware can be suppressed more effectively.
また、上記目的を達成するために、本発明は、フィスカルデータを記憶し、データの書き込み後、書き込んだデータの書き換えができない記憶領域を備え、前記記憶領域に所定の情報が記憶される前は、前記フィスカルデータに係る処理を実行不可能とする一方、前記所定の情報が記憶された後は、前記フィスカルデータに係る処理を実行可能な構成とし、ファームウェアの書き換えを行うモードへの移行を許可する状態と、許可しない状態とを切り替えるスイッチを設けた情報処理装置を制御する制御部により実行されるプログラムであって、前記制御部に、前記ファームウェアの書き換えを行うモードへの移行の指示があった場合、前記記憶領域に前記所定の情報が記憶されているか否か判別させ、記憶されていない場合は、前記スイッチの状態にかかわらず、前記ファームウェアの書き換えを行うモードに移行させることを特徴とする。
このプログラムによれば、情報処理装置がフィスカルデータに係る処理を行う装置として機能している状況では、スイッチの切り替えによってファームウェアの書き換えを行うモードへの移行を許可する状態となっている場合にのみ、ファームウェアの書き換えを行うモードへの移行が可能となり、ファームウェアの不正な書き換えを抑制できる。その上で、製造段階を含む、情報処理装置がフィスカルデータに係る処理を行なう装置として機能していない状況では、スイッチの状態にかかわらず、ファームウェアの書き換えを行うモードへ移行できるため、製造段階におけるファームウェアの容易な書き換えを実現でき、製造段階における作業の効率化を実現できる。すなわち、情報処理装置の状況に応じて、ファームウェアの書き換えを適切に制限できる。さらに、所定の情報は、データの書込み後、書き込んだデータの書き換えができない記憶領域に記憶されるため、一旦、情報処理装置がフィスカルデータに係る処理を行なう装置として機能した後は、スイッチの切り替えによってファームウェアの書き換えを行うモードへの移行を許可する状態となっている場合にのみ、ファームウェアの書き換えを行うモードへの移行が可能となり、より効果的にファームウェアの不正な書き換えを抑制できる。
In order to achieve the above object, the present invention includes a storage area that stores fiscal data and cannot rewrite the written data after the data is written, and before the predetermined information is stored in the storage area. The processing relating to the fiscal data is made impossible to execute, and after the predetermined information is stored, the processing relating to the fiscal data is configured to be executable, and the transition to the mode for rewriting the firmware is permitted. Is a program executed by a control unit that controls an information processing apparatus provided with a switch for switching between a state to be enabled and a state not to be permitted, and the control unit is instructed to enter a mode for rewriting the firmware. If the predetermined information is stored in the storage area, it is determined whether or not the predetermined information is stored. Regardless of state, characterized in that shifting to a mode for rewriting the firmware.
According to this program, in the situation where the information processing device functions as a device that performs processing related to fiscal data, only when the switch to the mode for rewriting firmware is permitted by switching the switch. Therefore, it is possible to shift to a mode for rewriting firmware, and it is possible to suppress unauthorized rewriting of firmware. In addition, in a situation where the information processing device does not function as a device that performs processing related to fiscal data, including the manufacturing stage, it is possible to shift to a mode for rewriting firmware regardless of the state of the switch. Firmware can be easily rewritten, and work efficiency in the manufacturing stage can be improved. That is, firmware rewriting can be appropriately restricted according to the status of the information processing apparatus. Furthermore, since the predetermined information is stored in a storage area in which the written data cannot be rewritten after the data is written, once the information processing device functions as a device for performing processing related to the fiscal data, the switch is switched. Thus, only when it is in a state of permitting the transition to the mode for rewriting the firmware, the mode can be shifted to the mode for rewriting the firmware, and unauthorized rewriting of the firmware can be suppressed more effectively.
本発明によれば、情報処理装置の状況に応じて、ファームウェアの書き換えを適切に制限できる。 According to the present invention, firmware rewriting can be appropriately restricted according to the status of the information processing apparatus.
以下、図面を参照して本発明の実施形態について説明する。
図1は、本実施形態に係る情報処理システム1の構成を示す図である。
図1に示すように、情報処理システム1は、フィスカルプリンター16(情報処理装置)を備えており、このフィスカルプリンター16にホストコンピューター15(外部機器)、及び、フィスカルデータ読出装置40(外部機器)が接続可能な構成となっている。
フィスカルプリンター16は、ホストコンピューター15の制御の下、レシートを発行すると共に、ホストコンピューター15から入力されたフィスカルデータを記憶する。
フィスカルデータとは、商品等の販売取引に関する情報(売上に関する情報や課税額等に関する情報)であって、記憶すべき情報として予め定められた情報のことである。このフィスカル情報は、例えば、政府等の国家機関による店舗からの税金の徴収に際し、国家機関が当該店舗における取引の実態を把握するために参照する情報として利用される。本実施形態では、フィスカルデータとして、後述する書込レシートデータ54、及び、日計売上データ53の2種類のデータが存在する。
なお、以下の説明では、フィスカルプリンター16が出力するレシートは、店舗のレジカウンターにおいて顧客による会計に際して発行されるレシートであり、購入した商品ごとの小計金額T1(商品ごとに、商品の単価と購入数量の積によって算出される金額。)と、合計金額T2(小計金額T1の和によって算出される金額。)、及び、支払金額T3(合計金額T2に消費税等の税を加味して算出される金額。)が記録されているものとする。
Hereinafter, embodiments of the present invention will be described with reference to the drawings.
FIG. 1 is a diagram illustrating a configuration of an
As shown in FIG. 1, the
The
Fiscal data is information relating to sales transactions of products (information relating to sales, information relating to taxable amount, etc.), which is information predetermined as information to be stored. This fiscal information is used, for example, as information to be referred to by the national institution for grasping the actual state of the transaction at the store when the national institution such as the government collects taxes from the store. In the present embodiment, there are two types of fiscal data: write receipt data 54, which will be described later, and daily sales data 53.
In the following explanation, the receipt output by the
図1に示すように、フィスカルプリンター16は、管理基板20(回路基板)、プリンター基板21、及び、サブ基板22の3つの基板を備えている。
管理基板20には、メイン制御部25(制御部)と、PCコネクター26aと、フィスカルコネクター26bと、通信IC27と、ROM28と、SRAM29と、RTC30と、EJメモリー31と、EJメモリー制御部32と、バッファーIC33と、ディップスイッチ35と、通信モジュール37と、が実装されている。
メイン制御部25は、フィスカルプリンター16の各部を中枢的に制御するものであり、CPUやその他の周辺回路を備えている。PCコネクター26aは、フィスカルプリンター16の通常使用時においてホストコンピューター15が接続されるコネクターである。ホストコンピューター15は、PCコネクター26aを介してフィスカルプリンター16にレシートの発行に係る動作を行わせる制御コマンドを出力し、また、フィスカル情報として、後述する日計売上データ53を出力する。フィスカルコネクター26bは、フィスカルデータ読出装置40が接続されるコネクターである。フィスカルデータ読出装置40とは、後述するEJメモリー31や、フィスカルメモリー50に記憶されたデータを読み出すための装置であり、例えば国家機関(政府等)に係る者等の、特別な許可を得た者だけが所持し得る。上述したホストコンピューター15はPCコネクター26aに接続された状態が維持されるが、フィスカルデータ読出装置40は、ホストコンピューター15と異なり、データの読み出しが行われる際に、都度、フィスカルコネクター26bに接続される。
通信IC27は、PCコネクター26a及びフィスカルコネクター26bに接続され、メイン制御部25の制御の下、ホストコンピューター15や、フィスカルデータ読出装置40との間でデータの送受信を行う。ROM28は、EEPROM等のデータの書き換えが可能なメモリーであり、メイン制御部25が各種制御を行うための各種データを不揮発的に、書き換え可能に記憶する。ROM28には、フィスカルプリンター16の基本制御プログラムであるファームウェアがロード可能に記憶されている。SRAM29は、メイン制御部25のCPUのワークエリアとして機能する揮発性のメモリーであり、各種データを一時的に記憶する。RTC30(Real-time clock:リアルタイムクロック)は、現在日時(年月日、時刻)を示すデータをメイン制御部25に出力する。これらSRAM29、RTC30には、フィスカルプリンター16の電源がオフされた場合であっても、電池34からバックアップ用の電力が供給される。
As shown in FIG. 1, the
The
The
The
EJメモリー31は、NAND型フラッシュメモリーであり、大容量のデータを記憶可能である。特に、本実施形態では、EJメモリー31は、MLCタイプのNAND型フラッシュメモリーである。周知の通り、MLCタイプのNAND型フラッシュメモリーは、SLCタイプのものと比較して、低コストで大容量化が可能である。従って、後に明らかとなるとおり、頻繁に書込みに係る処理が発生する可能性があり、かつ、記憶されるデータのサイズが増大するペースが速い可能性がある書込レシートデータ54を記憶するメモリーとして適している。
EJメモリー31において、書込レシートデータ54及びこれに付随するデータが書き込まれる記憶領域は、ソフトウェア的、及び/又は、ハードウェア的な手段によって、データの書き込み後、当該書き込まれたデータの書き換えができないメモリーとして機能する。すなわち、記憶領域上の1つのアドレスが指し示す領域に対して1度しかデータを書き込めない。これにより、EJメモリー31に書き込まれたフィスカルデータが後から編集されることが防止され、EJメモリー31に記憶されたフィスカルデータ対する改ざんが防止されている。EJメモリー制御部32は、CPUを備え、メイン制御部25の制御の下、EJメモリー31に対してデータの読み書き、消去を行う。バッファーIC33は、EJメモリー31に対するデータの読み出し、書き込みの効率を向上するために設けられたバッファーを制御する。
これらEJメモリー31、EJメモリー制御部32、及び、バッファーIC33は、エポキシ樹脂によって管理基板20に封止されており、EJメモリー31が管理基板20から物理的に取り外された上で、EJメモリー31に記憶されたデータが改ざんされることが防止されている。
The
In the
The
ディップスイッチ35は、ROM28に記憶されているファームウェアの書き換えを行うモードへの移行を許可する状態と、許可しない状態とを切り替えるスイッチである。ここで、ファームウェアが不正に書き換えられると、書込レシートデータ54や、日計売上データ53の改ざんや、その他の不正につながる可能性がある。また、ファームウェアは、フィスカルプリンター16の基本的な機能を実現するためのプログラム群であるため、ファームウェアの書き換えが正常に行なわれなかった場合、フィスカルプリンター16に多大な悪影響を及ぼす可能性がある。これを踏まえ、本実施形態に係るフィスカルプリンター16では、動作モードとして、ファームウェアの書き換えを行なうモード(以下、「ファームウェア書換モード」という。)を設けており、当該モードに移行している場合にのみ、ファームウェアの書き換えを実行可能な構成となっている。そして、ディップスイッチ35は、ファームウェア書換モードへの移行を許可する状態と、許可しない状態とを切り替えるためのスイッチである。具体的には、ディップスイッチ35がオンされている場合には、メイン制御部25のCPUの所定のポートに所定の信号が入力されて、ファームウェア書換モードへの移行を許可する状態となり、オフの場合には、ファームウェア書換モードへの移行を許可しない状態となる。
ここで、管理基板20は、フィスカルプリンター16の装置本体のケース内に設けられた回路基板であり、当該管理基板20を露出するためには、ケースを取り外す必要がある。特に、本実施形態では、不正な手段でケースが取り外された場合、そのことを検出し、対応する処理、例えば、フィスカルプリンター16を以後動作させなくしたり、その旨の情報をホストコンピューター15や、フィスカルデータ読出装置40に出力したり、通信モジュール37を介して外部のサーバー装置に出力する構成となっている。不正な手段でケースが取り外されことを検出する構成として、例えば、ドリル等でケースに穴が開けられた場合、ケースに張り巡らされた信号線の一部の通電が遮断されて、メイン制御部25のCPUのポートにその旨の信号が入力される構成や、振動センサー、傾きセンサー等により閾値以上の振動や傾きを検出する構成がある。これにより、管理基板20に対する不正なアクセスが抑制されている。
そして、ディップスイッチ35は、管理基板20の裏側であって、物理的なアクセスが非常にしにくい場所、例えば、管理基板20を適切な手順によって取り外して初めて露出する場所等に設けられている。これにより、フィスカルプリンター16に関する専門的な知識を有さない第三者が不正の目的で、ディップスイッチ35を切り替えることが抑制されており、第三者が不正の目的で、動作モードをファームウェア書換モードへ移行させた上でファームウェアの書き換えを行なうことが抑制されている。
通信モジュール37は、電話網やインターネット等のネットワークを介して、政府等が管理するサーバー装置等の外部機器通信するためのモジュールである。外部機器との通信するときの規格は、GPRSの規格等、何であってもよい。
The
Here, the
The
The
また、プリンター基板21には、プリンター制御部45が実装されており、プリンター制御部45は、ホストコンピューター15が出力した制御コマンドに基づいて、記録機構46を制御して、レシートを発行する。
記録機構46は、ロール紙の印刷面に熱を与えることにより画像を記録するサーマルヘッド46aや、ロール紙を搬送する搬送機構46b、所定の位置でロール紙を切断する切断機構46c等を備えており、プリンター制御部45の制御の下、これら機構や装置を動作させて、レシートを発行する。
プリンター基板21には、プリンター側コネクター42が設けられ、管理基板20には、管理側コネクター43が設けられており、これらプリンター側コネクター42と、管理側コネクター43とが接続されることにより、管理基板20と、プリンター基板21とが接続される。
本実施形態では、レシートの発行に際し、まず、フィスカルプリンター16に接続されたホストコンピューター15が、制御コマンドを生成し、生成した制御コマンドをPCコネクター26aを介してメイン制御部25に出力する。制御コマンドが入力されたメイン制御部25は、入力された制御コマンドをプリンター制御部45に出力する。
In addition, a
The
The
In this embodiment, when a receipt is issued, first, the
サブ基板22には、フィスカルメモリー50と、フィスカルメモリー制御部51とが実装されている。
フィスカルメモリー50は、シリアルバスを採用した素子を利用した、いわゆるシリアルフラッシュメモリーである。周知の通り、シリアルフラッシュメモリーは、NAND型フラッシュメモリーと比較して、記憶したデータの信頼性が高く、かつ、データの書込み可能回数が多い、という特徴がある。
フィスカルメモリー50には、フィスカル書込日時データ52、及び、日計売上データ53が記憶されるが、これらについては後述する。
フィスカルメモリー50において、日計売上データ53及びこれに付随するデータが書き込まれる記憶領域である。日計売上データ記憶領域50a、及び、納税者番号記憶領域50bは、ソフトウェア的、及び/又は、ハードウェア的な手段によって、データの書き込み後、当該書き込まれたデータの書き換えができないメモリーとして機能する。すなわち、記憶領域上の1つのアドレスが指し示す領域に対して1度しかデータを書き込めない。これにより、フィスカルメモリー50に書き込まれたフィスカルデータが後から編集されることが防止され、フィスカルメモリー50に記憶されたフィスカルデータ対する改ざんが防止されている。
フィスカルメモリー制御部51は、プログラム可能な論理回路を書き込んだデバイスであるCPLD(Complex programmable logic device)を備え、メイン制御部25の制御の下、フィスカルメモリー50に対してデータの読み書き、消去を行う。
これらフィスカルメモリー50、及び、フィスカルメモリー制御部51は、エポキシ樹脂によってサブ基板22に封止されており、例えば、フィスカルメモリー50がサブ基板22から物理的に取り外された上で、フィスカルメモリー50に記憶されたデータが改ざんされることが防止されている。
A
The
In the
The fiscal
The
次いで、EJメモリー31に記憶される書込レシートデータ54、及び、フィスカルメモリー50に記憶される日計売上データ53について説明する。上述したように、これらデータは、フィスカルデータに該当する。
書込レシートデータ54とは、フィスカルプリンター16によって発行されるレシートに記録される情報を示すデータであって、記憶すべきデータとして予め定められているデータのことである。例えば、レシートに、顧客が購入した商品毎に、商品を示す情報や、商品の単価を示す情報、当該商品を購入した個数を示す情報、各商品の購入に係る代金を示す情報、全ての商品の総購入代金を示す情報等が記録されている場合であって、これら情報を示すデータが記憶すべきデータとして予め定められている場合、これら情報を示すデータが書込レシートデータ54に該当する。
上述したように、本実施形態では、フィスカルプリンター16によってレシートを発行する場合、ホストコンピューター15によって制御コマンドが生成され、この制御コマンドがメイン制御部25に出力され、さらに、制御コマンドがメイン制御部25からプリンター制御部45に出力される。その際、メイン制御部25は、制御コマンドから、書込レシートデータ54として記憶すべき情報を抽出し、抽出したこれら情報に基づいて書込レシートデータ54を生成し、生成した書込レシートデータ54を、EJメモリー制御部32を制御して、EJメモリー31に記憶する。
本実施形態では、書込レシートデータ54には、レシートにおける小計金額T1と、合計金額T2と、支払金額T3が含まれている。すなわち、上述したように、本実施形態に係るフィスカルプリンター16が発行するレシートには、小計金額T1と、合計金額T2、及び、支払金額T3が記録されているが、メイン制御部25は、制御コマンドから、少なくともこれら3つの情報を抽出し、書込レシートデータ54としてEJメモリー31に記憶する。
Next, the write receipt data 54 stored in the
The write receipt data 54 is data indicating information recorded on a receipt issued by the
As described above, in the present embodiment, when a receipt is issued by the
In the present embodiment, the written receipt data 54 includes a subtotal amount T1, a total amount T2, and a payment amount T3 in the receipt. That is, as described above, the receipt issued by the
ここで、メイン制御部25は、EJメモリー31に書込レシートデータ54を書き込む際、RTC30から現在日時(日付+時刻)を示すデータを取得し、取得したデータに基づいて日時を示すデータであるEJ書込日時データ55を生成し、書込レシートデータ54と、EJ書込日時データ55とを対応付けて書き込む。つまり、書込レシートデータ54のそれぞれは、EJメモリー31に書き込まれた日時を示すデータであるEJ書込日時データ55と対応づけてEJメモリー31に記憶される。
さらに、メイン制御部25は、書込レシートデータ54を書き込む際、書込レシートデータ54を元データとして、所定のハッシュ関数に基づいて、ハッシュ値を求め、求めたハッシュ値をフィスカルプリンター16固有の秘密鍵で暗号化することによりデジタル署名たるEJデジタル署名56を生成し、書込レシートデータ54と、EJデジタル署名56とを対応付けて書き込む。つまり、書込レシートデータ54のそれぞれは、各データに基づいて生成されるEJデジタル署名56と対応付けてEJメモリー31に記憶される。
フィスカルデータ読出装置40や、その他のフィスカルプリンター16に記憶されたフィスカルデータの調査、検査を行う装置(例えば、政府が管理するサーバー装置)は、各フィスカルプリンター16がEJデジタル署名56を生成する際に使用するハッシュ関数を管理すると共に、各フィスカルプリンター16の秘密鍵に対応する公開鍵を管理しており、ある1のフィスカルプリンター16から受信した書込レシートデータ54と、対応するEJデジタル署名56とに基づいて、書込レシートデータ54に対する改ざんを検出可能である。
なお、EJ書込日時データ55と、書込レシートデータ54とを対応づけて記憶する1つの理由は、国によっては、法律や、規則によりそのことが義務づけられているからである。
Here, when the
Furthermore, when writing the write receipt data 54, the
An apparatus (for example, a server apparatus managed by the government) that examines and inspects fiscal data stored in the fiscal
Note that one reason for storing the EJ writing date /
日計売上データ53とは、フィスカルプリンター16によるレシートの発行が行われた会計によって得た「1日」の総売上のことである。「1日」とは、本実施形態では、情報処理システム1が適用された店舗における開店から閉店までの期間のことである。
つまり、集計データは、レシートに含まれる会計情報(売上金額)を集計した情報に関するデータである。
ホストコンピューター15は、レジカウンターにおいて行われる会計ごとにフィスカルプリンター16を制御してレシートを発行すると共に、会計ごとの売上金額(=レシートにおける支払金額T3)を累積的に記憶する。そして、ホストコンピューター15は、店舗の閉店後、所定のタイミング(例えば、担当者の指示があったタイミングや、所定の時刻に至ったタイミング)で、累積的に記憶した会計ごとの売上金額に基づいて、対応するフィスカルプリンター16に係る「1日」における総売上を計算し、計算した総売上に基づいて、日計売上データ53を生成し、生成した日計売上データ53をメイン制御部25に出力する。日計売上データ53が入力されると、メイン制御部25は、フィスカルメモリー制御部51を制御し、フィスカルメモリー50の所定の記憶領域に日計売上データ53を書き込む。
ここで、メイン制御部25は、フィスカルメモリー50に日計売上データ53を書き込む際、RTC30に現在日時を示すデータを出力させ、このデータに基づいて、書き込みを行った日時を取得し、取得した日時を示すデータであるフィスカル書込日時データ52(集計データ)と、日計売上データ53とを対応づけた状態で、フィスカルメモリー50に日計売上データ53を書き込む。つまり、日計売上データ53のそれぞれは、フィスカルメモリー50に書き込まれた日時を示すデータであるフィスカル書込日時データ52と対応づけてフィスカルメモリー50に記憶される。
さらに、メイン制御部25は、日計売上データ53を書き込む際、日計売上データ53に基づいて、デジタル署名たるフィスカルデジタル署名58を生成し、日計売上データ53と、フィスカルデジタル署名58とを対応付けて書き込む。つまり、日計売上データ53のそれぞれは、各データに基づいて生成されるフィスカルデジタル署名58と対応付けてフィスカルメモリー50に記憶される。
本例では、フィスカルデジタル署名58を生成する際に使用するハッシュ関数、及び、秘密鍵は、EJデジタル署名56を生成する際に使用するものと同一であるものとするが、別々であってもよい。
このように、本実施形態では、フィスカル書込日時データ52と、日計売上データ53とを対応づけて記憶するが、これは、国によっては、法律や、規則によりそのことが義務づけられているからである。
The daily sales data 53 is the total sales of “1 day” obtained by the accounting in which the receipt is issued by the
That is, the total data is data related to information obtained by totaling the accounting information (sales amount) included in the receipt.
The
Here, when writing the daily sales data 53 to the
Further, when writing the daily sales data 53, the
In this example, the hash function and secret key used when generating the fiscal digital signature 58 are the same as those used when generating the EJ
As described above, in the present embodiment, the fiscal writing date / time data 52 and the daily sales data 53 are stored in association with each other, but this is required by law or regulation in some countries. Because.
一方、ホストコンピューター15は、ホスト制御部44を備えている。ホスト制御部44は、CPUや、ROM、RAM、その他の周辺回路を備え、ホストコンピューター15の各部を中枢的に制御するものであり、アプリケーション実行部44a、及び、プリンタードライバー実行部44bを備えている。
アプリケーション実行部44aは、ホストコンピューター15が備える所定の記憶部に記憶されたアプリケーションプログラムを読み出して実行することにより、発行するレシートに記録すべき情報を含んだアプリ出力データを生成し、生成したアプリ出力データをプリンタードライバー実行部44bに出力する。例えば、アプリケーション実行部44aは、図示せぬバーコードリーダーからの入力値に基づいて、顧客が購入した商品の商品コードを特定するとともに、所定のデータベースにアクセスし、商品コードを利用して当該商品の単価や、商品名を取得する等して、上述した小計金額、合計金額、及び、支払金額を含む各種情報を取得し、取得した情報に基づいて、アプリ出力データを生成する。
プリンタードライバー実行部44bは、ホストコンピューター15が備える所定の記憶部に記憶されたプリンタードライバーを読み出して実行することにより、アプリケーション実行部44aから入力されたアプリ出力データに基づいて、フィスカルプリンター16のコマンド仕様に準拠して、フィスカルプリンター16にレシートの発行に係る一連の動作を行わせる制御コマンドを生成し、フィスカルプリンター16に出力する。
制御コマンドには、例えば、画像の記録の開始を指示するコマンドや、サーマルヘッド46aを駆動させることを指示するコマンド、ロール紙を搬送方向に所定量だけ送ることを指示するコマンド、切断機構46cによりロール紙の切断を指示するコマンド等の各種コマンドが含まれている。
On the other hand, the
The
The printer
The control command includes, for example, a command for instructing start of image recording, a command for instructing to drive the
ところで、上述したように、本実施形態に係るフィスカルプリンター16は、動作モードとして、ファームウェア書換モードを備えており、当該モードに移行している間でのみ、ファームウェアの書き換えが可能となっている。そして、ファームウェア書換モードへの移行を許可する状態と、許可しない状態とを切り替えるディップスイッチ35が管理基板20に実装されており、ファームウェア書換モードへの移行を許可する状態の場合にのみ、ファームウェア書換モードへの移行が可能である。このディップスイッチ35は、上述したように、専門的な知識を有さない第三者がアクセスし難い場所に設けられており、第三者による不正の目的でのファームウェアの書き換えが効果的に抑制されている。
このように、フィスカルプリンター16は、店舗等に設置され、フィスカルデータに係る処理を実行する装置として機能している状況では、ファームウェアの不正な書き換えが的確に防止されている。
一方で、フィスカルプリンター16は、その出荷前の製造段階では、プログラム修正やテストに対応するため、容易にファームウェアの書き換えを行えるようにしたいとするニーズがある。仮に、製造段階において、ファームウェアの書き換えを行なう度に、ディップスイッチ35を切り替えを要することとした場合、ディップスイッチ35は、アクセスしがたい場所に設けられているため、製造段階における効率的な作業を阻害するからである。
以上を踏まえ、フィスカルプリンター16は、以下の処理を実行する。
By the way, as described above, the
As described above, in the situation where the
On the other hand, the
Based on the above, the
まず、本実施形態に係るフィスカルプリンター16が店舗等に設置され、フィスカルデータに係る処理を行なう装置として機能する前に行なわれる作業について説明する。当該作業が行なわれることが、後に説明するフィスカルプリンター16の動作の前提条件となる。
本実施形態に係るフィスカルプリンター16は、以下の国、地域に設置されることが想定された装置である。すなわち、国、地域に係る政府、その他の機関によって、固有の納税者番号が付与され、付与された納税者番号を示すデータ(所定の情報。以下、「納税者番号データD1」という。)がフィスカルプリンター16に記憶されている場合にのみ、当該フィスカルプリンター16が、フィスカルデータの記憶を含むフィスカルデータに係る処理を実行できる旨の定めが法律(例えば、いわゆるフィスカル法)等によって決められている国、地域である。この納税者番号は、政府等が定める基準に適合した適法なフィスカルプリンター16のみに付与される。
そして、フィスカルプリンター16が出荷された後、店舗等に設置されてフィスカルデータに係る処理を行なう装置として機能する前に、政府、その他の機関により納税者番号が付与される。付与された納税者番号に係る納税者番号データは、ホストコンピューター15や、フィスカルデータ読出装置40、政府等が管理するサーバー装置等の制御の下、フィスカルメモリー50に形成された納税者番号記憶領域50bに記憶される。
このように、フィスカルプリンター16には、出荷後、店舗において使用される前に、納税者番号データD1が記憶されるが、このことを換言すれば、フィスカルプリンター16が出荷前の製造段階にある場合は、政府等により納税者番号が付与されておらず、従って、納税者番号記憶領域50bに納税者番号データD1が記憶されていない、ということになる。
フィスカルプリンター16のメイン制御部25は、ホストコンピューター15によってレシートの発行や、フィスカルデータの記憶が指示された場合は、納税者番号記憶領域50bに納税者番号データD1が記憶されているか否かを判別し、記憶されていない場合は、処理を実行しない構成となっている。このような構成により、納税者番号データD1が記憶されていない状態で、フィスカルプリンター16がフィスカルデータに係る処理を実行することが防止されている。
上述したように、納税者番号記憶領域50bは、ソフトウェア的、及び/又は、ハードウェア的な手段によって、データの書き込み後、当該書き込まれたデータの書き換えができない記憶領域である。このため、一旦、納税者番号記憶領域50bに納税者番号データD1が書き込まれた後は、当該データの改変を行なうことはできない。また、本実施形態では、納税者番号データD1を専用のメモリーに記憶するのではなく、日計売上データ53を記憶するフィスカルメモリー50に記憶する。これにより、既設のフィスカルメモリー50を利用して、納税者番号データD1を、データの書き込み後、書き込んだデータの書き換えができない記憶領域に適切に記憶させることができる。
なお、納税者番号データD1を、このような書き換えが不可能な記憶領域に記憶すべき旨が、法律等により定められている場合もある。
First, an operation performed before the
The
Then, after the
In this way, the
When the
As described above, the taxpayer
In some cases, it is stipulated by law or the like that the taxpayer number data D1 should be stored in such a non-rewritable storage area.
図2は、フィスカルプリンター16の動作、特に、ファームウェア書換モードへの移行が指示された場合の動作を示すフローチャートである。
まず、フィスカルプリンター16のメイン制御部25は、ホストコンピューター15や、フィスカルデータ読出装置40、通信モジュール37を介した通信が可能なサーバー装置等の外部の機器から、ファームウェア書換モードへの移行を指示する特定の制御コマンドが入力されたか否かを監視する(ステップSA1)。
このように、本実施形態では、ファームウェア書換モードへの移行の指示は、接続された外部機器からの制御コマンドによって行なわれる。この構成のため、ディップスイッチ35の適切な切り換え、及び、外部機器からの特定の制御コマンドの入力があって初めて、ファームウェアの書き換えを行なうモードへの移行が可能となり、ディップスイッチ35の位置を知っている第三者であっても、上記特定の制御コマンドのデータ構造や、パラメーターの規則等を知らない者は、ファームウェアの書き換えを行えず、より効果的にファームウェアの不正な書き換えを抑制できる。
特定の制御コマンドの入力があった場合(ステップSA1:YES)、メイン制御部25は、納税者番号記憶領域50bに納税者番号データD1が記憶されているか否かを判別する(ステップSA2)。
納税者番号記憶領域50bに納税者番号データD1が記憶されていない場合(ステップSA2:NO)、メイン制御部25は、動作モードを、ファームウェア書換モードへ移行する(ステップSA3)。
このように、本実施形態では、納税者番号データD1が記憶されていない場合は、ディップスイッチ35の状態を判別することなく、すなわち、ディップスイッチ35の状態にかかわらず、ファームウェア書換モードへの移行の指示に応じて、ファームウェア書換モードに移行する。これは、以下の理由による。
すなわち、納税者番号データD1が記憶されていない、ということは、上述したとおり、フィスカルプリンター16に納税者番号が付与されておらず、フィスカルプリンター16が店舗等においてフィスカルデータに係る処理を行なう装置として機能している状況ではない、ということである。換言すれば、フィスカルプリンター16は、出荷前の製造段階を含む状況にある。このような状況下では、フィスカルデータの改ざんといった事態は生じ得ないため、本実施形態に係るフィスカルプリンター16では、ディップスイッチ35の状態にかかわらず、ファームウェア書換モードへの移行の指示に応じて、ファームウェア書換モードに移行し、これにより、製造段階における作業の大幅な効率化を図っている。
FIG. 2 is a flowchart showing the operation of the
First, the
As described above, in this embodiment, the instruction to shift to the firmware rewriting mode is issued by the control command from the connected external device. Because of this configuration, it is possible to shift to the mode for rewriting firmware only when the
When a specific control command is input (step SA1: YES), the
When the taxpayer number data D1 is not stored in the taxpayer
As described above, in this embodiment, when the taxpayer number data D1 is not stored, the state of the
That is, the fact that the taxpayer number data D1 is not stored means that, as described above, the taxpayer number is not assigned to the
一方、ステップSA2において、納税者番号記憶領域50bに納税者番号データD1が記憶されていると判別した場合(ステップSA2:YES)、メイン制御部25は、ディップスイッチ35がオンか否か判別する(ステップSA4)。
ディップスイッチ35がオンされている場合は(ステップSA4:YES)、メイン制御部25は、動作モードをファームウェア書換モードへ移行する(ステップSA3)。上述したように、ディップスイッチ35は、フィスカルプリンター16に関する専門的な知識を有さない第三者が操作し難い位置に設けられているため、ディップスイッチ35がオンされた状態で、ファームウェア書換モードへの移行を指示する特定の制御コマンドの入力があった場合は、正当な権限を有する者によって正当にファームウェアの書き換えが行なわれようとしている蓋然性が非常に高い。
一方、ステップSA4において、ディップスイッチ35がオンではないと判別した場合(ステップSA4:NO)、メイン制御部25は、動作モードをファームウェア書換モードへ移行することなく(ステップSA5)、処理を終了する。これにより、ディップスイッチ35の切り替えを行えない第三者が不正の目的を持ってファームウェアの書き換えを行なうことが適切に防止される。
On the other hand, when it is determined in step SA2 that the taxpayer number data D1 is stored in the taxpayer
When the
On the other hand, when it is determined in step SA4 that the
以上説明したように、本実施形態に係るフィスカルプリンター16(情報処理装置)は、データの書き込み後、書き込んだデータの書き換えができない記憶領域である納税者番号記憶領域50bに納税者番号データD1(所定の情報)が記憶される前は、フィスカルデータに係る処理を実行不可能とする一方、納税者番号データD1が記憶された後は、フィスカルデータに係る処理を実行可能な構成となっている。また、フィスカルプリンター16の管理基板20には、ファームウェア書換モードへの移行を許可する状態と、許可しない状態とを切り替えるディップスイッチ35が実装されている。そして、フィスカルプリンター16のメイン制御部25は、ファームウェアの書き換えを行うモードへの移行の指示があった場合、納税者番号記憶領域50bに納税者番号データD1が記憶されているか否か判別し、記憶されていない場合は、ディップスイッチ35の状態にかかわらず、動作モードをファームウェア書換モードへ移行する。
この構成によれば、フィスカルプリンター16が店舗等においてフィスカルデータに係る処理を行う装置として機能している状況では、ディップスイッチ35の切り替えによってファームウェア書換モードへの移行を許可する状態となっている場合にのみ、ファームウェア書換モードへの移行が可能となり、ファームウェアの不正な書き換えを抑制できる。その上で、製造段階を含む、フィスカルプリンター16がフィスカルデータに係る処理を行なう装置として機能していない状況では、ディップスイッチ35の状態にかかわらず、ファームウェア書換モードへ移行できるため、製造段階におけるファームウェアの容易な書き換えを実現でき、製造段階における作業の効率化を実現できる。すなわち、フィスカルプリンター16の状況に応じて、ファームウェアの書き換えを適切に制限できる。
さらに、納税者番号データD1は、データの書込み後、書き込んだデータの書き換えができない記憶領域である納税者番号記憶領域50bに記憶されるため、一旦、フィスカルプリンター16がフィスカルデータに係る処理を行なう装置として機能した後は、ディップスイッチ35の切り替えによってファームウェア書換モードへの移行を許可する状態となっている場合にのみ、ファームウェア書換モードへの移行が可能となり、より効果的にファームウェアの不正な書き換えを抑制できる。
As described above, the fiscal printer 16 (information processing apparatus) according to the present embodiment stores the taxpayer number data D1 (in the taxpayer
According to this configuration, in a situation where the
Further, since the taxpayer number data D1 is stored in the taxpayer
また、本実施形態では、ディップスイッチ35は、装置本体のケース内に設けられた管理基板20(制御回路)に実装されている。より具体的には、ディップスイッチ35は、管理基板20の裏側であって、物理的なアクセスが非常にしにくい場所、例えば、管理基板20を適切な手順によって取り外して初めて露出する場所等に設けられている。
これにより、フィスカルプリンター16に関する専門的な知識を有さない第三者が不正の目的で、ディップスイッチ35を切り替えることが抑制されており、第三者が不正の目的で、動作モードをファームウェア書換モードへ移行させた上でファームウェアの書き換えを行なうことが抑制されている。すなわち、上記構成によれば、装置本体のケースを取り外した上で、回路基板を露出して初めてディップスイッチ35を操作できる。これにより、専門的な知識を有していない第三者がディップスイッチ35を操作することを抑制でき、より効果的にファームウェアの不正な書き換えを抑制できる。
In the present embodiment, the
As a result, a third party who does not have specialized knowledge regarding the
また、本実施形態では、フィスカルデータとしての日計売上データ53が記憶されるメモリーであるフィスカルメモリー50に、納税者番号データD1が記憶される。
この構成によれば、フィスカルデータ、及び、納税者番号データD1の双方が、データの書き込み後、書き込んだデータの書き換えができない記憶領域に記憶されるため、それぞれについて専用の記憶領域を設ける場合と比較してコストを削減しつつ、双方のデータが後に改ざんされることを防止できる。
In the present embodiment, the taxpayer number data D1 is stored in the
According to this configuration, both the fiscal data and the taxpayer ID data D1 are stored in a storage area in which the written data cannot be rewritten after the data is written. It is possible to prevent both data from being falsified later while reducing the cost.
また、本実施形態では、ファームウェア書換モードへの移行の指示は、接続された外部機器からの制御コマンドによって行われる。
この構成のため、ディップスイッチ35の適切な切り換え、及び、外部機器からの特定の制御コマンドの入力があって初めて、ファームウェアの書き換えを行なうモードへの移行が可能となり、ディップスイッチ35の位置を知っている第三者であっても、上記特定の制御コマンドのデータ構造や、パラメーターの規則等を知らない者は、ファームウェアの書き換えを行えず、より効果的にファームウェアの不正な書き換えを抑制できる。
In the present embodiment, the instruction to shift to the firmware rewriting mode is issued by a control command from the connected external device.
Because of this configuration, it is possible to shift to the mode for rewriting firmware only when the
なお、上述した実施の形態は、あくまでも本発明の一態様を示すものであり、本発明の範囲内で任意に変形および応用が可能である。
例えば、上述した実施形態では、フィスカル情報(フィスカルデータ)として、書込レシートデータ54と、フィスカル書込日時データ52とを例示したが、フィスカル情報がこれらデータに限られないことは言うまでもない。また例えば、図1に示す各機能ブロックはハードウェアとソフトウェアの協働により任意に実現可能であり、特定のハードウェア構成を示唆するものではない。また、各機能ブロックの機能を、外部接続される別の装置に持たせるようにしてもよく、また、説明した各種動作について、外部接続される記憶媒体に記憶させたプログラムを実行することにより、実行するようにしてもよい。
The above-described embodiment is merely an aspect of the present invention, and can be arbitrarily modified and applied within the scope of the present invention.
For example, in the above-described embodiment, the write receipt data 54 and the fiscal writing date / time data 52 are exemplified as the fiscal information (fiscal data), but it goes without saying that the fiscal information is not limited to these data. Further, for example, each functional block shown in FIG. 1 can be arbitrarily realized by cooperation of hardware and software, and does not suggest a specific hardware configuration. In addition, the function of each functional block may be provided in another externally connected device, and for the various operations described, by executing a program stored in an externally connected storage medium, You may make it perform.
1…情報処理システム、15…ホストコンピューター(外部機器)、16…フィスカルプリンター(情報処理装置)、20…管理基板、25…メイン制御部(制御部)、35…ディップスイッチ(スイッチ)、37…通信モジュール、40…フィスカルデータ読出装置(外部機器)、50…フィスカルメモリー(記憶領域)、50b…納税者番号記憶領域(記憶領域)、53…日計売上データ(フィスカルデータ)、54…書込レシートデータ(フィスカルデータ)、D1…納税者番号データ(所定の情報)。
DESCRIPTION OF
Claims (6)
データの書き込み後、書き込んだデータの書き換えができない記憶領域を備え、
前記記憶領域に所定の情報が記憶される前は、前記フィスカルデータに係る処理を実行不可能とする一方、前記所定の情報が記憶された後は、前記フィスカルデータに係る処理を実行可能な構成とし、
ファームウェアの書き換えを行うモードへの移行を許可する状態と、許可しない状態とを切り替えるスイッチを設け、
前記ファームウェアの書き換えを行うモードへの移行の指示があった場合、前記記憶領域に前記所定の情報が記憶されているか否か判別し、記憶されていない場合は、前記スイッチの状態にかかわらず、前記ファームウェアの書き換えを行うモードに移行する
ことを特徴とする情報処理装置。 An information processing apparatus for storing fiscal data,
After writing data, it has a storage area that can not be rewritten,
A configuration in which the processing related to the fiscal data cannot be executed before the predetermined information is stored in the storage area, and the processing related to the fiscal data can be executed after the predetermined information is stored age,
A switch is provided to switch between a state that allows transition to a mode for rewriting firmware and a state that does not allow
When there is an instruction to shift to the mode for rewriting the firmware, it is determined whether or not the predetermined information is stored in the storage area, and if not, regardless of the state of the switch, An information processing apparatus that shifts to a mode for rewriting the firmware.
前記記憶領域に所定の情報が記憶される前は、前記フィスカルデータに係る処理を実行不可能とする一方、前記所定の情報が記憶された後は、前記フィスカルデータに係る処理を実行可能な構成とし、ファームウェアの書き換えを行うモードへの移行を許可する状態と、許可しない状態とを切り替えるスイッチを設けた上で、
前記ファームウェアの書き換えを行うモードへの移行の指示があった場合、前記記憶領域に前記所定の情報が記憶されているか否か判別し、記憶されていない場合は、前記スイッチの状態にかかわらず、前記ファームウェアの書き換えを行うモードに移行する
ことを特徴とする情報処理装置の制御方法。 A method of controlling an information processing apparatus having a storage area that stores fiscal data and cannot rewrite the written data after the data is written,
A configuration in which the processing related to the fiscal data cannot be executed before the predetermined information is stored in the storage area, and the processing related to the fiscal data can be executed after the predetermined information is stored And after providing a switch that switches between a state that allows transition to a mode for rewriting firmware and a state that does not allow
When there is an instruction to shift to the mode for rewriting the firmware, it is determined whether or not the predetermined information is stored in the storage area, and if not, regardless of the state of the switch, A control method for an information processing apparatus, wherein the mode is changed to a mode in which the firmware is rewritten.
前記制御部に、
前記ファームウェアの書き換えを行うモードへの移行の指示があった場合、前記記憶領域に前記所定の情報が記憶されているか否か判別させ、記憶されていない場合は、前記スイッチの状態にかかわらず、前記ファームウェアの書き換えを行うモードに移行させる
ことを特徴とするプログラム。 While storing fiscal data, and having a storage area in which the written data cannot be rewritten after the data is written, the processing related to the fiscal data is made impossible before the predetermined information is stored in the storage area. After the predetermined information is stored, the processing related to the fiscal data is configured to be executed, and a switch is provided to switch between a state in which the transition to the mode for rewriting the firmware is permitted and a state in which the firmware is not permitted. A program executed by a control unit that controls the information processing apparatus,
In the control unit,
When there is an instruction to shift to the mode for rewriting the firmware, it is determined whether or not the predetermined information is stored in the storage area, and if not, regardless of the state of the switch, A program for shifting to a mode for rewriting the firmware.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2012269091A JP2014115803A (en) | 2012-12-10 | 2012-12-10 | Information processor, control method of information processor, and program |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2012269091A JP2014115803A (en) | 2012-12-10 | 2012-12-10 | Information processor, control method of information processor, and program |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2014115803A true JP2014115803A (en) | 2014-06-26 |
Family
ID=51171742
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2012269091A Pending JP2014115803A (en) | 2012-12-10 | 2012-12-10 | Information processor, control method of information processor, and program |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2014115803A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2016015020A (en) * | 2014-07-02 | 2016-01-28 | 株式会社デンソー | Microcomputer and security setting system |
JP2018081543A (en) * | 2016-11-17 | 2018-05-24 | セイコーエプソン株式会社 | Display device, head-mounted display device, control method for display device, and program |
-
2012
- 2012-12-10 JP JP2012269091A patent/JP2014115803A/en active Pending
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2016015020A (en) * | 2014-07-02 | 2016-01-28 | 株式会社デンソー | Microcomputer and security setting system |
JP2018081543A (en) * | 2016-11-17 | 2018-05-24 | セイコーエプソン株式会社 | Display device, head-mounted display device, control method for display device, and program |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8339632B2 (en) | Fiscal printer | |
JP2014115803A (en) | Information processor, control method of information processor, and program | |
RU2302660C1 (en) | Fiscal recorder | |
RU2207617C1 (en) | Method and electronic cryptographic module for information protection and authenticity control | |
US20110145658A1 (en) | Electronic apparatus and method of controlling electronic apparatus | |
JP2012162011A (en) | Recording device, control method of recording device, and program | |
CN103824028B (en) | The control method of information processor and information processor | |
JP2008242907A (en) | Fiscal unit, printer, control method of fiscal unit, and program | |
JP5464052B2 (en) | Authentication processing apparatus, authentication processing method, authentication processing program, processing system, and automatic teller machine | |
JP2017037508A (en) | Information processor, and control method of information processor | |
JP2014103435A (en) | Information processing device, control method of information processing device, and program | |
JP2014102536A (en) | Information processing device, control method of information processing device, and program | |
JP2017033492A (en) | Information processing apparatus, information processing system, and control method of information processing apparatus | |
JP2007264815A (en) | System, method and program for providing maintenance information | |
JP2014102535A (en) | Information processing device, control method of information processing device, and program | |
JP2014102534A (en) | Information processing device, control method of information processing device, and program | |
US20230393973A1 (en) | Apparatus and method for obtaining data associated with a processing circuitry, apparatus and method for sending a request for data erasure | |
JP5402598B2 (en) | Authentication processing apparatus, authentication processing method, authentication processing program, processing system, and automatic teller machine | |
JP5464053B2 (en) | Authentication processing apparatus, authentication processing method, authentication processing program, processing system, and automatic teller machine | |
JP2022067721A (en) | Ic card, logging information processing method of ic card, and program | |
WO2020235172A1 (en) | Control device, data disabling program and control system | |
US10657268B2 (en) | Information processing apparatus, information processing method, and non-transitory computer readable medium to verify validity of backup data | |
JP5293113B2 (en) | SEMICONDUCTOR DEVICE, SEMICONDUCTOR DEVICE CONTROL METHOD, AND SEMICONDUCTOR DEVICE CONTROL PROGRAM | |
JP2524321Y2 (en) | IC card | |
JP2014026493A (en) | Recording device, control method for recording device, and program |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
RD04 | Notification of resignation of power of attorney |
Free format text: JAPANESE INTERMEDIATE CODE: A7424 Effective date: 20150108 |