JP2014115803A - Information processor, control method of information processor, and program - Google Patents

Information processor, control method of information processor, and program Download PDF

Info

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
Application number
JP2012269091A
Other languages
Japanese (ja)
Inventor
雄史 ▲高▼見澤
Yuji Takamizawa
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 JP2012269091A priority Critical patent/JP2014115803A/en
Publication of JP2014115803A publication Critical patent/JP2014115803A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Stored Programmes (AREA)

Abstract

PROBLEM TO BE SOLVED: To appropriately restrict rewriting of firmware in accordance with a state of an information processor.SOLUTION: A fiscal printer 16 has such a configuration that processing relating to fiscal data cannot be executed before storage of a taxpayer identification number data D1 into a taxpayer identification number storage area 50b being a storage area where data is written and then the written data cannot be rewritten, while the processing relating to fiscal data can be executed after the storage of the data D1, and the fiscal printer 16 is provided with a dip switch 35 for switching between a state for allowing transition to a firmware rewriting mode and a state for inhibiting the transition. In response to an instruction for transition to the firmware rewriting mode, it is determined whether the taxpayer identification number data D1 is stored or not, and the transition of the fiscal printer 16 to the firmware rewriting mode is made regardless of the state of the dip switch 35 if the taxpayer identification number data D1 is not stored.

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).

特開平05−120567号公報Japanese Patent Laid-Open No. 05-120567

上述した情報処理装置のように、フィスカルデータを記憶するものでは、装置の基本制御プログラムであるファームウェアの不正な書き換えは、フィスカルデータの改ざん、その他のフィスカルデータに係る不正につながるため、これを防止する必要がある。一方で、情報処理装置の出荷前の製造段階では、プログラム修正やテストに対応するため、容易にファームウェアの書き換えを行えるようにしたいとするニーズがある。
本発明は、上述した事情に鑑みてなされたものであり、情報処理装置の状況に応じて、ファームウェアの書き換えを適切に制限することを目的とする。
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.

本実施形態に係る情報処理システムの構成を示す図である。It is a figure which shows the structure of the information processing system which concerns on this embodiment. フィスカルプリンターの動作を示すフローチャートである。It is a flowchart which shows operation | movement of a fiscal printer.

以下、図面を参照して本発明の実施形態について説明する。
図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 information processing system 1 according to the present embodiment.
As shown in FIG. 1, the information processing system 1 includes a fiscal printer 16 (information processing device). The fiscal printer 16 includes a host computer 15 (external device) and a fiscal data reading device 40 (external device). Can be connected.
The fiscal printer 16 issues a receipt under the control of the host computer 15 and stores fiscal data input from the host computer 15.
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 fiscal printer 16 is a receipt issued at the checkout counter of the store at the time of customer accounting, and the subtotal amount T1 for each purchased product (the unit price and the purchase price of each product) Amount calculated by product of quantity), total amount T2 (amount calculated by sum of subtotal amount T1), and payment amount T3 (total amount T2 is added to taxes such as consumption tax) Is recorded).

図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 fiscal printer 16 includes three substrates: a management substrate 20 (circuit substrate), a printer substrate 21, and a sub substrate 22.
The management board 20 includes a main control unit 25 (control unit), a PC connector 26a, a fiscal connector 26b, a communication IC 27, a ROM 28, an SRAM 29, an RTC 30, an EJ memory 31, and an EJ memory control unit 32. A buffer IC 33, a DIP switch 35, and a communication module 37 are mounted.
The main control unit 25 centrally controls each unit of the fiscal printer 16 and includes a CPU and other peripheral circuits. The PC connector 26 a is a connector to which the host computer 15 is connected during normal use of the fiscal printer 16. The host computer 15 outputs a control command for causing the fiscal printer 16 to perform an operation related to the receipt issuance via the PC connector 26a, and outputs daily sales data 53 described later as fiscal information. The fiscal connector 26b is a connector to which the fiscal data reading device 40 is connected. The fiscal data reading device 40 is a device for reading data stored in the EJ memory 31 and the fiscal memory 50, which will be described later, and has obtained special permission from, for example, a person related to a national organization (government, etc.). Only a person can have it. The host computer 15 described above is maintained connected to the PC connector 26a. However, unlike the host computer 15, the fiscal data reading device 40 is connected to the fiscal connector 26b each time data is read. The
The communication IC 27 is connected to the PC connector 26a and the fiscal connector 26b, and transmits / receives data to / from the host computer 15 and the fiscal data reading device 40 under the control of the main control unit 25. The ROM 28 is a rewritable memory such as an EEPROM and stores various data for the main control unit 25 to perform various controls in a nonvolatile manner so as to be rewritable. The ROM 28 stores firmware that is a basic control program of the fiscal printer 16 so that it can be loaded. The SRAM 29 is a volatile memory that functions as a work area for the CPU of the main control unit 25, and temporarily stores various data. The RTC 30 (Real-time clock) outputs data indicating the current date and time (year / month / day, time) to the main control unit 25. The SRAM 29 and the RTC 30 are supplied with backup power from the battery 34 even when the power of the fiscal printer 16 is turned off.

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 EJ memory 31 is a NAND flash memory and can store a large amount of data. In particular, in the present embodiment, the EJ memory 31 is an MLC type NAND flash memory. As is well known, an MLC type NAND flash memory can be increased in capacity at a lower cost than an SLC type. Therefore, as will be apparent later, as a memory for storing the write receipt data 54 that may frequently cause processing related to writing, and that the size of the stored data may increase rapidly. Is suitable.
In the EJ memory 31, the storage area in which the write receipt data 54 and the data associated therewith are written can be rewritten after the data is written by software and / or hardware means. It functions as a memory that cannot be used. That is, data can be written only once to the area indicated by one address on the storage area. As a result, the fiscal data written in the EJ memory 31 is prevented from being edited later, and the fiscal data stored in the EJ memory 31 is prevented from being falsified. The EJ memory control unit 32 includes a CPU, and reads, writes, and erases data with respect to the EJ memory 31 under the control of the main control unit 25. The buffer IC 33 controls a buffer provided to improve the efficiency of reading and writing data to the EJ memory 31.
The EJ memory 31, the EJ memory control unit 32, and the buffer IC 33 are sealed to the management board 20 by an epoxy resin, and the EJ memory 31 is physically removed from the management board 20. The data stored in is prevented from being falsified.

ディップスイッチ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 dip switch 35 is a switch for switching between a state in which the shift to the mode for rewriting the firmware stored in the ROM 28 is permitted and a state in which the transition is not permitted. Here, if the firmware is rewritten illegally, there is a possibility that the written receipt data 54 or the daily sales data 53 may be falsified or otherwise illegal. Further, since the firmware is a group of programs for realizing the basic functions of the fiscal printer 16, if the firmware is not rewritten normally, the fiscal printer 16 may be adversely affected. Based on this, the fiscal printer 16 according to the present embodiment has a mode for rewriting firmware (hereinafter referred to as “firmware rewriting mode”) as an operation mode, and only when the mode is shifted to the mode. The firmware can be rewritten. The dip switch 35 is a switch for switching between a state where the transition to the firmware rewriting mode is permitted and a state where the transition is not permitted. Specifically, when the DIP switch 35 is turned on, a predetermined signal is input to a predetermined port of the CPU of the main control unit 25, and a transition to the firmware rewriting mode is permitted, and the OFF state is set. In this case, the shift to the firmware rewriting mode is not permitted.
Here, the management board 20 is a circuit board provided in the case of the apparatus main body of the fiscal printer 16, and in order to expose the management board 20, it is necessary to remove the case. In particular, in the present embodiment, when the case is removed by unauthorized means, this is detected, and corresponding processing, for example, the fiscal printer 16 is not operated thereafter, or information to that effect is sent to the host computer 15, The data is output to the fiscal data reading device 40 or output to an external server device via the communication module 37. As a configuration for detecting that the case is removed by unauthorized means, for example, when a hole is drilled in the case with a drill or the like, the energization of a part of the signal line stretched around the case is cut off, and the main control unit There are a configuration in which a signal to that effect is input to a port of 25 CPUs, and a configuration in which vibration or tilt exceeding a threshold is detected by a vibration sensor, tilt sensor or the like. Thereby, unauthorized access to the management board 20 is suppressed.
The dip switch 35 is provided on the back side of the management board 20 and is difficult to physically access, for example, a place where the management board 20 is exposed only after the management board 20 is removed by an appropriate procedure. As a result, a third party who does not have specialized knowledge regarding the fiscal printer 16 is prevented from switching the dip switch 35 for an unauthorized purpose, and the operation mode is rewritten by the third party for an unauthorized purpose. Rewriting firmware after switching to the mode is suppressed.
The communication module 37 is a module for communicating with an external device such as a server device managed by the government or the like via a network such as a telephone network or the Internet. The standard for communication with an external device may be anything such as a GPRS standard.

また、プリンター基板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 printer control unit 45 is mounted on the printer substrate 21, and the printer control unit 45 controls the recording mechanism 46 based on a control command output from the host computer 15 and issues a receipt.
The recording mechanism 46 includes a thermal head 46a that records an image by applying heat to the printing surface of the roll paper, a transport mechanism 46b that transports the roll paper, a cutting mechanism 46c that cuts the roll paper at a predetermined position, and the like. Under the control of the printer control unit 45, these mechanisms and devices are operated to issue a receipt.
The printer board 21 is provided with a printer-side connector 42, and the management board 20 is provided with a management-side connector 43. By connecting the printer-side connector 42 and the management-side connector 43, management is performed. The substrate 20 and the printer substrate 21 are connected.
In this embodiment, when a receipt is issued, first, the host computer 15 connected to the fiscal printer 16 generates a control command and outputs the generated control command to the main control unit 25 via the PC connector 26a. The main control unit 25 to which the control command is input outputs the input control command to the printer control unit 45.

サブ基板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 fiscal memory 50 and a fiscal memory control unit 51 are mounted on the sub-board 22.
The fiscal memory 50 is a so-called serial flash memory using an element employing a serial bus. As is well known, the serial flash memory is characterized in that the stored data is more reliable and the number of times data can be written is larger than that of the NAND flash memory.
Fiscal memory 50 stores fiscal writing date / time data 52 and daily sales data 53, which will be described later.
In the fiscal memory 50, it is a storage area in which daily sales data 53 and data associated therewith are written. The daily sales data storage area 50a and the taxpayer number storage area 50b function as a memory in which the written data cannot be rewritten after writing the data by software and / or hardware means. . That is, data can be written only once to the area indicated by one address on the storage area. Thereby, the fiscal data written in the fiscal memory 50 is prevented from being edited later, and the fiscal data stored in the fiscal memory 50 is prevented from being falsified.
The fiscal memory control unit 51 includes a CPLD (Complex programmable logic device) which is a device in which a programmable logic circuit is written, and reads / writes data from / to the fiscal memory 50 under the control of the main control unit 25. .
The fiscal memory 50 and the fiscal memory control unit 51 are sealed to the sub-board 22 by an epoxy resin. For example, the fiscal memory 50 is physically removed from the sub-board 22 and then stored in the fiscal memory 50. Tampering with stored data is prevented.

次いで、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 EJ memory 31 and the daily sales data 53 stored in the fiscal memory 50 will be described. As described above, these data correspond to fiscal data.
The write receipt data 54 is data indicating information recorded on a receipt issued by the fiscal printer 16 and is data predetermined as data to be stored. For example, on the receipt, for each product purchased by the customer, information indicating the product, information indicating the unit price of the product, information indicating the number of the product purchased, information indicating the purchase price of each product, all products In the case where information indicating the total purchase price is recorded, and data indicating these information is predetermined as data to be stored, the data indicating these information corresponds to the write receipt data 54 .
As described above, in the present embodiment, when a receipt is issued by the fiscal printer 16, a control command is generated by the host computer 15, this control command is output to the main control unit 25, and the control command is further transmitted to the main control unit. 25 to the printer control unit 45. At that time, the main control unit 25 extracts information to be stored as the write receipt data 54 from the control command, generates the write receipt data 54 based on the extracted information, and generates the generated write receipt data 54. Is stored in the EJ memory 31 by controlling the EJ memory control unit 32.
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 fiscal printer 16 according to the present embodiment records the subtotal amount T1, the total amount T2, and the payment amount T3. At least these three pieces of information are extracted from the command and stored in the EJ memory 31 as write receipt data 54.

ここで、メイン制御部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 main control unit 25 writes the write receipt data 54 in the EJ memory 31, the main control unit 25 acquires data indicating the current date and time (date + time) from the RTC 30, and indicates the date based on the acquired data. The EJ writing date / time data 55 is generated, and the writing receipt data 54 and the EJ writing date / time data 55 are written in association with each other. That is, each of the write receipt data 54 is stored in the EJ memory 31 in association with the EJ write date / time data 55 which is data indicating the date / time written in the EJ memory 31.
Furthermore, when writing the write receipt data 54, the main control unit 25 obtains a hash value based on a predetermined hash function using the write receipt data 54 as original data, and the obtained hash value is unique to the fiscal printer 16. The EJ digital signature 56 as a digital signature is generated by encrypting with the private key, and the write receipt data 54 and the EJ digital signature 56 are written in association with each other. That is, each of the write receipt data 54 is stored in the EJ memory 31 in association with the EJ digital signature 56 generated based on each data.
An apparatus (for example, a server apparatus managed by the government) that examines and inspects fiscal data stored in the fiscal data reading device 40 and other fiscal printers 16, when each fiscal printer 16 generates the EJ digital signature 56. And a public key corresponding to the secret key of each fiscal printer 16, and the write receipt data 54 received from a certain fiscal printer 16 and the corresponding EJ digital signature 56. Based on the above, it is possible to detect alteration of the written receipt data 54.
Note that one reason for storing the EJ writing date / time data 55 and the writing receipt data 54 in association with each other is that, depending on the country, this is required by law or regulation.

日計売上データ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 fiscal printer 16. In the present embodiment, “one day” is a period from opening to closing in a store to which the information processing system 1 is applied.
That is, the total data is data related to information obtained by totaling the accounting information (sales amount) included in the receipt.
The host computer 15 controls the fiscal printer 16 for each transaction performed at the checkout counter and issues a receipt, and cumulatively stores the sales amount for each transaction (= payment amount T3 in the receipt). Then, after closing the store, the host computer 15 is based on the sales amount for each transaction stored cumulatively at a predetermined timing (for example, when a person in charge has instructed or at a predetermined time). The total sales for “one day” related to the corresponding fiscal printer 16 are calculated, and the daily sales data 53 is generated based on the calculated total sales. The generated daily sales data 53 is stored in the main control unit 25. Output. When the daily sales data 53 is input, the main control unit 25 controls the fiscal memory control unit 51 to write the daily sales data 53 into a predetermined storage area of the fiscal memory 50.
Here, when writing the daily sales data 53 to the fiscal memory 50, the main control unit 25 causes the RTC 30 to output data indicating the current date and time, and acquires and acquires the date and time of writing based on this data. The daily sales data 53 is written in the fiscal memory 50 in a state where the fiscal writing date / time data 52 (aggregated data), which is data indicating the date / time, and the daily sales data 53 are associated with each other. That is, each of the daily sales data 53 is stored in the fiscal memory 50 in association with the fiscal writing date / time data 52 which is data indicating the date / time written in the fiscal memory 50.
Further, when writing the daily sales data 53, the main control unit 25 generates a fiscal digital signature 58 that is a digital signature based on the daily sales data 53, and generates the daily sales data 53 and the fiscal digital signature 58. Write in association. That is, each of the daily sales data 53 is stored in the fiscal memory 50 in association with the fiscal digital signature 58 generated based on each data.
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 digital signature 56, but they may be different. Good.
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 host computer 15 includes a host control unit 44. The host control unit 44 includes a CPU, ROM, RAM, and other peripheral circuits, and centrally controls each unit of the host computer 15, and includes an application execution unit 44a and a printer driver execution unit 44b. Yes.
The application execution unit 44a reads out and executes an application program stored in a predetermined storage unit included in the host computer 15, thereby generating application output data including information to be recorded in a receipt to be issued. The output data is output to the printer driver execution unit 44b. For example, the application execution unit 44a specifies a product code of a product purchased by a customer based on an input value from a bar code reader (not shown), accesses a predetermined database, and uses the product code to Various information including the subtotal amount, the total amount, and the payment amount are acquired by acquiring the unit price and the product name, and the application output data is generated based on the acquired information.
The printer driver execution unit 44b reads out and executes a printer driver stored in a predetermined storage unit included in the host computer 15, thereby executing a command of the fiscal printer 16 based on the application output data input from the application execution unit 44a. In accordance with the specification, a control command for causing the fiscal printer 16 to perform a series of operations related to the receipt issuance is generated and output to the fiscal printer 16.
The control command includes, for example, a command for instructing start of image recording, a command for instructing to drive the thermal head 46a, a command for instructing to feed a roll paper by a predetermined amount in the transport direction, and a cutting mechanism 46c. Various commands such as a command for instructing cutting of the roll paper are included.

ところで、上述したように、本実施形態に係るフィスカルプリンター16は、動作モードとして、ファームウェア書換モードを備えており、当該モードに移行している間でのみ、ファームウェアの書き換えが可能となっている。そして、ファームウェア書換モードへの移行を許可する状態と、許可しない状態とを切り替えるディップスイッチ35が管理基板20に実装されており、ファームウェア書換モードへの移行を許可する状態の場合にのみ、ファームウェア書換モードへの移行が可能である。このディップスイッチ35は、上述したように、専門的な知識を有さない第三者がアクセスし難い場所に設けられており、第三者による不正の目的でのファームウェアの書き換えが効果的に抑制されている。
このように、フィスカルプリンター16は、店舗等に設置され、フィスカルデータに係る処理を実行する装置として機能している状況では、ファームウェアの不正な書き換えが的確に防止されている。
一方で、フィスカルプリンター16は、その出荷前の製造段階では、プログラム修正やテストに対応するため、容易にファームウェアの書き換えを行えるようにしたいとするニーズがある。仮に、製造段階において、ファームウェアの書き換えを行なう度に、ディップスイッチ35を切り替えを要することとした場合、ディップスイッチ35は、アクセスしがたい場所に設けられているため、製造段階における効率的な作業を阻害するからである。
以上を踏まえ、フィスカルプリンター16は、以下の処理を実行する。
By the way, as described above, the fiscal printer 16 according to the present embodiment has a firmware rewrite mode as an operation mode, and the firmware can be rewritten only during the transition to the mode. Then, the dip switch 35 for switching between the state permitting the transition to the firmware rewriting mode and the state not permitting is mounted on the management board 20, and the firmware rewriting is performed only when the transition to the firmware rewriting mode is permitted. Transition to mode is possible. As described above, the dip switch 35 is provided in a place that is difficult for a third party who does not have specialized knowledge to access, and effectively prevents the third party from rewriting firmware for illegal purposes. Has been.
As described above, in the situation where the fiscal printer 16 is installed in a store or the like and functions as a device that executes processing related to fiscal data, unauthorized rewriting of firmware is accurately prevented.
On the other hand, the fiscal printer 16 has a need to be able to easily rewrite firmware in order to cope with program correction and testing in the manufacturing stage before shipment. If it is necessary to switch the dip switch 35 every time the firmware is rewritten in the manufacturing stage, the dip switch 35 is provided in a place that is difficult to access, so that efficient work in the manufacturing stage is possible. It is because it inhibits.
Based on the above, the fiscal printer 16 executes the following processing.

まず、本実施形態に係るフィスカルプリンター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 fiscal printer 16 according to the present embodiment is installed in a store or the like and functions as an apparatus that performs processing related to fiscal data will be described. Performing this work is a prerequisite for the operation of the fiscal printer 16 described later.
The fiscal printer 16 according to the present embodiment is an apparatus assumed to be installed in the following countries and regions. That is, a unique taxpayer number is assigned by a government or other organization related to the country or region, and data indicating the given taxpayer number (predetermined information; hereinafter referred to as “taxpayer number data D1”). The law (for example, the so-called fiscal law) or the like determines that the fiscal printer 16 can execute processing related to fiscal data including storage of fiscal data only when it is stored in the fiscal printer 16. Country, region. This taxpayer number is given only to legitimate fiscal printers 16 that meet the standards set by the government and the like.
Then, after the fiscal printer 16 is shipped, a taxpayer number is given by the government or other organization before it is installed in a store or the like and functions as a device that performs processing related to fiscal data. Taxpayer number data related to the given taxpayer number is a taxpayer number storage area formed in the fiscal memory 50 under the control of the host computer 15, the fiscal data reading device 40, a server device managed by the government, etc. 50b.
In this way, the fiscal printer 16 stores the taxpayer number data D1 after shipping and before use in the store. In other words, the fiscal printer 16 is in a manufacturing stage before shipping. In this case, the taxpayer number is not given by the government or the like, and therefore the taxpayer number data D1 is not stored in the taxpayer number storage area 50b.
When the host computer 15 instructs the issuance of receipt or storage of fiscal data, the main control unit 25 of the fiscal printer 16 determines whether or not the taxpayer number data D1 is stored in the taxpayer number storage area 50b. If it is determined and not stored, the processing is not executed. With such a configuration, the fiscal printer 16 is prevented from executing processing related to fiscal data when the taxpayer number data D1 is not stored.
As described above, the taxpayer number storage area 50b is a storage area in which the written data cannot be rewritten after the data is written by software and / or hardware. For this reason, once the taxpayer number data D1 is written in the taxpayer number storage area 50b, the data cannot be modified. In this embodiment, the taxpayer number data D1 is not stored in a dedicated memory, but is stored in the fiscal memory 50 that stores the daily sales data 53. Accordingly, the taxpayer ID data D1 can be appropriately stored in the storage area where the written data cannot be rewritten after the data is written, using the existing fiscal memory 50.
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 fiscal printer 16, particularly the operation when an instruction to shift to the firmware rewriting mode is given.
First, the main control unit 25 of the fiscal printer 16 gives an instruction to shift to the firmware rewriting mode from an external device such as the host computer 15, the fiscal data reading device 40, or a server device capable of communication via the communication module 37. It is monitored whether or not a specific control command to be input is input (step SA1).
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 DIP switch 35 is appropriately switched and a specific control command is input from an external device, and the position of the DIP switch 35 is known. Even a third party who does not know the data structure of the specific control command, the rule of the parameter, etc. cannot rewrite the firmware, and can more effectively suppress the illegal rewriting of the firmware.
When a specific control command is input (step SA1: YES), the main control unit 25 determines whether or not the taxpayer number data D1 is stored in the taxpayer number storage area 50b (step SA2).
When the taxpayer number data D1 is not stored in the taxpayer number storage area 50b (step SA2: NO), the main control unit 25 shifts the operation mode to the firmware rewrite mode (step SA3).
As described above, in this embodiment, when the taxpayer number data D1 is not stored, the state of the dip switch 35 is not determined, that is, regardless of the state of the dip switch 35, the shift to the firmware rewriting mode is performed. In response to the instruction, the firmware rewrite mode is entered. This is due to the following reason.
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 fiscal printer 16, and the fiscal printer 16 performs processing related to the fiscal data at a store or the like. It is not the situation that is functioning as. In other words, the fiscal printer 16 is in a situation including a manufacturing stage before shipment. Under such circumstances, since the situation such as falsification of fiscal data cannot occur, in the fiscal printer 16 according to the present embodiment, regardless of the state of the dip switch 35, in response to an instruction to shift to the firmware rewriting mode, Shifting to the firmware rewrite mode, the work efficiency in the manufacturing stage is greatly improved.

一方、ステップ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 number storage area 50b (step SA2: YES), the main control unit 25 determines whether or not the dip switch 35 is on. (Step SA4).
When the dip switch 35 is turned on (step SA4: YES), the main control unit 25 shifts the operation mode to the firmware rewriting mode (step SA3). As described above, since the dip switch 35 is provided at a position where it is difficult for a third party who does not have specialized knowledge about the fiscal printer 16 to operate, the firmware rewrite mode is maintained with the dip switch 35 turned on. When there is an input of a specific control command for instructing the transition to, there is a very high probability that the firmware is properly rewritten by a person having a legitimate authority.
On the other hand, when it is determined in step SA4 that the dip switch 35 is not on (step SA4: NO), the main control unit 25 ends the process without shifting the operation mode to the firmware rewriting mode (step SA5). . This appropriately prevents a third party who cannot switch the DIP switch 35 from rewriting the firmware for an unauthorized purpose.

以上説明したように、本実施形態に係るフィスカルプリンター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 number storage area 50b, which is a storage area in which the written data cannot be rewritten after the data is written). Before the predetermined information) is stored, the processing related to the fiscal data is impossible to execute. On the other hand, after the taxpayer number data D1 is stored, the processing related to the fiscal data can be executed. . In addition, the management board 20 of the fiscal printer 16 is provided with a dip switch 35 for switching between a state where the shift to the firmware rewriting mode is permitted and a state where the shift is not permitted. Then, the main control unit 25 of the fiscal printer 16 determines whether or not the taxpayer number data D1 is stored in the taxpayer number storage area 50b when there is an instruction to shift to the firmware rewriting mode. If not stored, the operation mode is shifted to the firmware rewriting mode regardless of the state of the dip switch 35.
According to this configuration, in a situation where the fiscal printer 16 functions as a device that performs processing related to fiscal data in a store or the like, the switch to the firmware rewriting mode is permitted by switching the dip switch 35. Only in this case, it is possible to shift to the firmware rewriting mode, and it is possible to suppress unauthorized rewriting of firmware. In addition, in a situation where the fiscal printer 16 is not functioning as a device that performs processing related to fiscal data, including the manufacturing stage, the firmware rewriting mode can be entered regardless of the state of the dip switch 35. Can be easily rewritten, and work efficiency can be improved in the manufacturing stage. That is, firmware rewriting can be appropriately restricted according to the status of the fiscal printer 16.
Further, since the taxpayer number data D1 is stored in the taxpayer number storage area 50b, which is a storage area in which the written data cannot be rewritten after the data is written, the fiscal printer 16 temporarily performs processing related to the fiscal data. After functioning as a device, it is possible to enter the firmware rewrite mode only when the switch to the firmware rewrite mode is permitted by switching the DIP switch 35, and the illegal rewriting of the firmware can be performed more effectively. Can be suppressed.

また、本実施形態では、ディップスイッチ35は、装置本体のケース内に設けられた管理基板20(制御回路)に実装されている。より具体的には、ディップスイッチ35は、管理基板20の裏側であって、物理的なアクセスが非常にしにくい場所、例えば、管理基板20を適切な手順によって取り外して初めて露出する場所等に設けられている。
これにより、フィスカルプリンター16に関する専門的な知識を有さない第三者が不正の目的で、ディップスイッチ35を切り替えることが抑制されており、第三者が不正の目的で、動作モードをファームウェア書換モードへ移行させた上でファームウェアの書き換えを行なうことが抑制されている。すなわち、上記構成によれば、装置本体のケースを取り外した上で、回路基板を露出して初めてディップスイッチ35を操作できる。これにより、専門的な知識を有していない第三者がディップスイッチ35を操作することを抑制でき、より効果的にファームウェアの不正な書き換えを抑制できる。
In the present embodiment, the dip switch 35 is mounted on the management board 20 (control circuit) provided in the case of the apparatus main body. More specifically, the dip switch 35 is provided on the back side of the management board 20 and is difficult to physically access, for example, a place where the management board 20 is exposed only after the management board 20 is removed by an appropriate procedure. ing.
As a result, a third party who does not have specialized knowledge regarding the fiscal printer 16 is prevented from switching the dip switch 35 for an unauthorized purpose, and the operation mode is rewritten by the third party for an unauthorized purpose. Rewriting firmware after switching to the mode is suppressed. That is, according to the above configuration, the dip switch 35 can be operated only after the circuit board is exposed after removing the case of the apparatus main body. Thereby, it is possible to suppress a third party who does not have specialized knowledge from operating the DIP switch 35, and to more effectively prevent unauthorized rewriting of the firmware.

また、本実施形態では、フィスカルデータとしての日計売上データ53が記憶されるメモリーであるフィスカルメモリー50に、納税者番号データD1が記憶される。
この構成によれば、フィスカルデータ、及び、納税者番号データD1の双方が、データの書き込み後、書き込んだデータの書き換えができない記憶領域に記憶されるため、それぞれについて専用の記憶領域を設ける場合と比較してコストを削減しつつ、双方のデータが後に改ざんされることを防止できる。
In the present embodiment, the taxpayer number data D1 is stored in the fiscal memory 50, which is a memory in which daily sales data 53 as fiscal data is stored.
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 DIP switch 35 is appropriately switched and a specific control command is input from an external device, and the position of the DIP switch 35 is known. Even a third party who does not know the data structure of the specific control command, the rule of the parameter, etc. cannot rewrite the firmware, and can more effectively suppress the illegal rewriting of the firmware.

なお、上述した実施の形態は、あくまでも本発明の一態様を示すものであり、本発明の範囲内で任意に変形および応用が可能である。
例えば、上述した実施形態では、フィスカル情報(フィスカルデータ)として、書込レシートデータ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 SYMBOLS 1 ... Information processing system, 15 ... Host computer (external device), 16 ... Fiscal printer (information processing apparatus), 20 ... Management board, 25 ... Main control part (control part), 35 ... Dip switch (switch), 37 ... Communication module 40 ... Fiscal data reading device (external device) 50 ... Fiscal memory (storage area) 50b ... Taxpayer number storage area (storage area) 53 ... Daily sales data (Fiscal data) 54 ... Writing Receipt data (Fiscal data), D1... Taxpayer number data (predetermined information).

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.
前記スイッチは、装置本体のケース内に設けられた回路基板に実装されたディップスイッチであることを特徴とする請求項1に記載の情報処理装置。   The information processing apparatus according to claim 1, wherein the switch is a dip switch mounted on a circuit board provided in a case of the apparatus main body. 前記記憶領域には、前記フィスカルデータが記憶されることを特徴とする請求項1又は2に記載の情報処理装置。   The information processing apparatus according to claim 1, wherein the fiscal data is stored in the storage area. 前記ファームウェアの書き換えを行うモードへの移行の指示は、接続された外部機器からの特定の制御コマンドによって行われることを特徴とする請求項1ないし3のいずれかに記載の情報処理装置。   4. The information processing apparatus according to claim 1, wherein an instruction to shift to a mode for rewriting the firmware is given by a specific control command from a connected external device. フィスカルデータを記憶し、データの書き込み後、書き込んだデータの書き換えができない記憶領域を備える情報処理装置の制御方法であって、
前記記憶領域に所定の情報が記憶される前は、前記フィスカルデータに係る処理を実行不可能とする一方、前記所定の情報が記憶された後は、前記フィスカルデータに係る処理を実行可能な構成とし、ファームウェアの書き換えを行うモードへの移行を許可する状態と、許可しない状態とを切り替えるスイッチを設けた上で、
前記ファームウェアの書き換えを行うモードへの移行の指示があった場合、前記記憶領域に前記所定の情報が記憶されているか否か判別し、記憶されていない場合は、前記スイッチの状態にかかわらず、前記ファームウェアの書き換えを行うモードに移行する
ことを特徴とする情報処理装置の制御方法。
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.
JP2012269091A 2012-12-10 2012-12-10 Information processor, control method of information processor, and program Pending JP2014115803A (en)

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)

* Cited by examiner, † Cited by third party
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

Cited By (2)

* Cited by examiner, † Cited by third party
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