JP4517930B2 - Sales data processing apparatus and program - Google Patents
Sales data processing apparatus and program Download PDFInfo
- Publication number
- JP4517930B2 JP4517930B2 JP2005126981A JP2005126981A JP4517930B2 JP 4517930 B2 JP4517930 B2 JP 4517930B2 JP 2005126981 A JP2005126981 A JP 2005126981A JP 2005126981 A JP2005126981 A JP 2005126981A JP 4517930 B2 JP4517930 B2 JP 4517930B2
- Authority
- JP
- Japan
- Prior art keywords
- file
- data
- sales data
- ecr
- command
- 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.)
- Active
Links
- 238000012545 processing Methods 0.000 title claims description 85
- 230000004044 response Effects 0.000 claims description 31
- 230000005540 biological transmission Effects 0.000 claims description 29
- 238000012546 transfer Methods 0.000 claims description 19
- 238000007689 inspection Methods 0.000 claims description 7
- 238000000034 method Methods 0.000 description 83
- 230000008569 process Effects 0.000 description 82
- 230000002776 aggregation Effects 0.000 description 15
- 238000004220 aggregation Methods 0.000 description 15
- 230000004913 activation Effects 0.000 description 14
- 238000004364 calculation method Methods 0.000 description 11
- 238000006243 chemical reaction Methods 0.000 description 11
- 238000004891 communication Methods 0.000 description 10
- 238000010586 diagram Methods 0.000 description 9
- 238000013480 data collection Methods 0.000 description 6
- 238000013500 data storage Methods 0.000 description 6
- 230000006870 function Effects 0.000 description 6
- 238000001810 electrochemical catalytic reforming Methods 0.000 description 5
- 238000004458 analytical method Methods 0.000 description 3
- 238000012423 maintenance Methods 0.000 description 3
- 238000007726 management method Methods 0.000 description 3
- 238000012986 modification Methods 0.000 description 3
- 230000004048 modification Effects 0.000 description 3
- 230000002159 abnormal effect Effects 0.000 description 2
- 239000004973 liquid crystal related substance Substances 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 239000004065 semiconductor Substances 0.000 description 2
- 230000008859 change Effects 0.000 description 1
- 238000013481 data capture Methods 0.000 description 1
- 238000012217 deletion Methods 0.000 description 1
- 230000037430 deletion Effects 0.000 description 1
- 238000003825 pressing Methods 0.000 description 1
- 230000007704 transition Effects 0.000 description 1
Images
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Description
本発明は、FTP(File Transfer Protocol)プロトコルを用いてサーバ装置とファイルデータの送受信を行う売上データ処理装置及びプログラムに関する。 The present invention relates to a sales data processing apparatus and program for transmitting / receiving file data to / from a server apparatus using an FTP (File Transfer Protocol) protocol.
従来、ECR(電子式キャッシュレジスタ)やPOS端末等のデータ処理装置の売上データをデータセンタ等にあるサーバに収集し、収集した売上データを集計処理する販売管理システムが提案されている。例えば、特許文献1においては、LANを介して複数のPOS端末から売上データを収集して記憶し、収集した売上データを集計処理するFTPサーバに送信する販売管理支援装置が記載されている。
ところで、従来、ECRとサーバとの間のデータ送受信は、専用のツールやプロトコルを用いて行っているが、機能を拡張したりメンテナンスを行ったりする場合にはECRとサーバの双方に変更を入れる必要があり、拡張性やメンテナンスの容易性に問題があった。
一方で、ECRとサーバとの間でのデータ送受信をFTPのような汎用プロトコルを用いて行うと、汎用プロトコルでは互いが有するファイルデータをそのまま送受信するだけであるため、受信側でデータ形式の合わないデータが書き込まれてしまうという問題があった。また、ECRには、図5に示す部門ファイル231のように、設定データと、売上データ等の演算データとが混在したファイルが存在するが、FTP等の汎用プロトコルではファイル単位での送受信のみが可能であるため、例えば、サーバ側がECRから部門ファイルの演算データのみを受信したり、サーバ側からECRに部門ファイルの設定データのみを送信して部門ファイル内の設定データのみを書き換えさせたりといった処理を行わせることができないという問題があった。
Conventionally, data transmission / reception between the ECR and the server is performed using a dedicated tool or protocol. However, when the function is expanded or maintenance is performed, both the ECR and the server are changed. There was a problem in scalability and ease of maintenance.
On the other hand, if data transmission / reception between the ECR and the server is performed using a general-purpose protocol such as FTP, the general-purpose protocol simply transmits / receives the file data of each other as it is, so the data format on the receiving side matches. There was a problem that no data was written. Further, the ECR includes a file in which setting data and operation data such as sales data are mixed like a
本発明の課題は、汎用的なプロトコルを用いてサーバ装置から売上データ処理装置の売上データの読み出しや設定データの書き込みができるようにすることである。 An object of the present invention is to enable reading of sales data and setting data of a sales data processing apparatus from a server apparatus using a general-purpose protocol .
本発明は、サーバ装置との間でファイル転送用プロトコルを用いてファイルの送受信を行う売上データ処理装置であって、前記売上データを格納する格納手段と、前記サーバ装置からファイル転送用プロトコルを用いて送信されてきた、売上データを取得するコマンド及びファイルを受信する受信手段と、前記サーバ装置より送信された点検若しくは精算モードを示す動作モードを記憶する記憶手段と、前記売上データを取得するコマンドを受信した際に、前記記憶手段内の点検若しくは精算モードに応じて、且つ前記サーバ装置からファイル転送用プロトコルを用いて送信されてきたファイルの名称に基づくファイル形式で前記格納されている売上データを読み出す読出手段と、前記読み出した売上データを前記サーバ装置へ送信する送信手段とを備えたことを特徴としている。 The present invention relates to a sales data processing apparatus for sending and receiving files using the file transfer protocol between the server device, a storage means for storing the sales data, using the file transfer protocol from the server apparatus A command for acquiring the sales data, a receiving unit for receiving the sales data and the file, a storage unit for storing an operation mode indicating the check or settlement mode transmitted from the server device, and a command for acquiring the sales data. when receiving, in response to the inspection or settlement mode in said storage means, said stored and the name of the file that has been transmitted by using a file transfer protocol from the server apparatus in a file format rather based Reading means for reading sales data, and transmission for transmitting the read sales data to the server device It is characterized in that a stage.
本発明によれば、サーバ装置との間でファイル転送用プロトコルを用いてファイルの送受信を行う売上データ処理装置であって、前記サーバ装置からファイル転送用プロトコルを用いて売上データを取得するコマンド及びファイルを受信した際に、サーバ装置から送信され記憶されていた点検若しくは精算モードに応じて、且つ前記サーバ装置からファイル転送用プロトコルを用いて送信されてきたファイルの名称に基づくファイル形式で前記格納されている売上データを読み出して前記サーバ装置へ送信するので、サーバ装置はファイル転送用プロトコルを用いて所定のファイルデータを送信することにより、売上データ処理装置に対して、点検若しくは精算モードを指定して所定のファイル形式で売上データ処理装置内の売上データを適宜取得することができる。 According to the present invention, there is provided a sales data processing apparatus for sending and receiving files using the file transfer protocol between the server device, the command to acquire the sales data using the file transfer protocol from the server apparatus and upon receiving the file, in accordance with the inspection or settlement mode it has been transmitted and stored from the server device, and wherein the name of the file that has been transmitted by using a file transfer protocol from the server device in a file format rather based Since the stored sales data is read and transmitted to the server device , the server device transmits a predetermined file data using a file transfer protocol, so that the sales data processing device can be checked or settled. To specify the sales data in the sales data processing device in the specified file format. It can be acquired.
以下、図を参照して、本発明の実施形態を詳細に説明する。
まず、構成を説明する。
Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings.
First, the configuration will be described.
図1は、本実施の形態におけるECRシステム100の全体構成を示す図である。図1に示すように、ECRシステム100は、PC(Personal Computer)1とマスタECR2aとがLAN(Local Area Network)、WAN(Wide Area Network)、インターネット等の通信ネットワークN1を介してデータ送受信可能に接続され、マスタECR2aとスレーブECR2bとが店舗内部に構築されたLAN等の内部ネットワークN2を介してデータ送受信可能に接続されて構成されている。なお、各装置の台数は、特に限定されない。また、PC1とマスタECR2aとの接続、及びマスタECR2aとスレーブECR2bとの接続は、有線接続であってもよいし無線接続であってもよい。
FIG. 1 is a diagram showing an overall configuration of an
PC1は、通信ネットワークN1を介して単数或いは複数店舗のマスタECR2aに接続され、マスタECR2aから店舗の売上データ(例えば、商品の売上個数、売上金額のデータ等)を収集し、売上高の算出や顧客販売動向の経営分析等を行うサーバである。
マスタECR2aは、オペレータの操作に基づいて商品取引の登録処理、点検処理、精算処理、各種設定処理等を行うとともに、店舗内の各スレーブECR2bから売上データの収集を行い、店舗内の売上集計を行うデータ処理装置である。また、マスタECR2aは、FTP変換処理部20を有し、FTPプロトコルによりPC1から送信されるコマンドに応じた処理を実行する。
スレーブECR2bは、操作担当者の操作に基づいて商品取引の登録処理、点検処理、精算処理、各種設定処理等を行うとともに、マスタECR2aからの要求に応じて売上データの送信等を行う。
The PC 1 is connected to the master ECR 2a of one or a plurality of stores via the communication network N1, collects store sales data (for example, data on the number of products sold, sales amount data, etc.) from the master ECR 2a, and calculates sales. It is a server that performs management analysis of customer sales trends.
The master ECR 2a performs product transaction registration processing, inspection processing, checkout processing, various setting processing, etc. based on the operation of the operator, collects sales data from each
The slave ECR 2b performs merchandise transaction registration processing, inspection processing, settlement processing, various setting processing, and the like based on the operation of the operator, and transmits sales data in response to a request from the master ECR 2a.
以下、ECRシステム100を構成する各装置について説明する。
まず、PC1について説明する。
図2は、PC1の機能的構成を示すブロック図である。図2に示すように、PC1は、CPU11、入力装置12、RAM13、伝送制御部14、表示装置15、記録媒体16aを有する記録装置16を備えて構成され、各装置及び各部はバス17により接続されている。
Hereinafter, each device constituting the
First, the PC 1 will be described.
FIG. 2 is a block diagram showing a functional configuration of the
CPU(Central Processing Unit )11は、記録装置16に記憶されているシステムプログラムを読み出し、RAM13内に形成されたワークエリアに展開し、該システムプログラムに従ってPC1内の各装置及び各部を制御する。また、CPU11は、記録装置16に記憶されている各種処理プログラムを読み出してワークエリアに展開して実行し、ECRシステム100における売上高の算出等の各種処理を実行する。
A CPU (Central Processing Unit) 11 reads a system program stored in the recording device 16, develops it in a work area formed in the
また、CPU11は、記憶装置16に記憶されているFTPサーバプログラムを読み出してワークエリアに展開し、マスタECR2aとFTPプロトコルに基づくファイルデータの送受信を行う。
In addition, the
入力装置12は、文字/英数字入力キー、カーソルキー、及び各種機能キー等を備えたキーボードと、ポインティングデバイスであるマウスと、を備えて構成され、キーボードで押下操作されたキーの押下信号とマウスによる操作信号とを、入力信号としてCPU11に出力する。
The
RAM(Random Access Memory)13は、CPU11によって実行される各種プログラム及びこれらプログラムに係るデータを一時的に記憶するワークエリアを形成する。
A RAM (Random Access Memory) 13 forms a work area for temporarily storing various programs executed by the
伝送制御部14は、モデム、ターミナルアップアダプタ又はLANアダプタ等により構成され、通信ネットワークN1に接続されたマスタECR2aとの間でデータ送受信を行うためのインターフェースである。
The
表示装置15は、LCD(Liquid Crystal Display)やCRT(Cathode Ray Tube)等により構成され、CPU11から入力される表示信号の指示に従って、各種画面を表示する。
The display device 15 is configured by an LCD (Liquid Crystal Display), a CRT (Cathode Ray Tube), or the like, and displays various screens according to instructions of a display signal input from the
記録装置16は、プログラム、データ等が予め記憶された記録媒体16aを有し、記録媒体16aは、磁気的、光学的記録媒体、若しくは半導体等の不揮発性メモリで構成されている。記録媒体16aは、記録装置16に固定的に設けたもの、若しくは着脱自在に装着するものであり、PC1に対応するシステムプログラム、FTPサーバプログラム、各種処理プログラム、これらのプログラムで利用する各種データ等を記憶する。 The recording device 16 includes a recording medium 16a in which programs, data, and the like are stored in advance, and the recording medium 16a is configured by a magnetic, optical recording medium, or a nonvolatile memory such as a semiconductor. The recording medium 16a is fixedly attached to the recording device 16 or is detachably mounted. The system program corresponding to the PC 1, the FTP server program, various processing programs, various data used in these programs, etc. Remember.
次に、マスタECR2aについて説明する。
図3は、マスタECR2aの機能的構成を示すブロック図である。図3に示すように、マスタECR2aは、CPU21、入力装置22、RAM23、伝送制御部24、表示装置25、印刷装置26、記録媒体27aを有する記録装置27、ドロア28等を備えて構成され、各装置及び各部はバス29により接続されている。
Next, the master ECR 2a will be described.
FIG. 3 is a block diagram showing a functional configuration of the master ECR 2a. As shown in FIG. 3, the master ECR 2a includes a
CPU21は、記録装置27に記憶されているシステムプログラムを読み出し、RAM23内に形成されたワークエリアに展開し、該システムプログラムに従ってECR2の各装置、各部を制御する。また、CPU21は、記録装置27に記憶されているメイン処理プログラム、登録処理プログラム、集計処理プログラム各種FTP変換処理プログラム(PUT処理プログラム、GET処理プログラム、CD処理プログラム、DIR処理プログラム)を始めとする各種処理プログラムを読み出してワークエリアに展開し、後述するメイン処理(図9参照)、登録処理(図10参照)、集計処理(図12参照)、PUT処理(図11参照)、GET(図13参照)、CD処理(図14参照)、DIR処理(図15参照)を始めとする各種処理を実行する。
The
CPU21は、各種FTP変換処理プログラムとの協働によるソフトウエア処理によりFTP変換処理部20を実現する。
The
また、CPU21は、記憶装置27に記憶されているFTPクライアントプログラムを読み出してワークエリアに展開して実行し、PC1とFTPプロトコルに基づくファイルデータの送受信を行う。
In addition, the
入力装置22は、モードキー、テンキー/ファンクションキー及びクラークキー等を備え、各キー操作に応じた操作信号をCPU21に出力する。
モードキーは、売上データを登録する登録モード、返品戻し処理を行う戻しモード、登録された売上データを点検する点検モード(以下、Xモードという)、登録された売上データを読み出すとともに設定データを除く売上データをリセットする精算モード(以下、Zモードという)、マスタECR2a及びスレーブECR2bの各種環境設定を行う設定モード(以下、AUTOPGMモードという)、各動作モードを終了し、動作停止するOFFモードのうち、所望のモードを指定するためのキーである。
テンキー/ファンクションキーは、数値を入力するためのテンキー、文字を入力するための文字キー、各種機能を指示するためのファンクションキーにより構成されている。
クラークキーは、マスタECR2aを操作する操作担当者を区別するためのキーである。
The
The mode key includes a registration mode for registering sales data, a return mode for performing returned goods return processing, an inspection mode for inspecting registered sales data (hereinafter referred to as X mode), reading out registered sales data and excluding setting data Settlement mode for resetting sales data (hereinafter referred to as “Z mode”), setting mode for setting various environments of the master ECR 2a and slave ECR 2b (hereinafter referred to as “AUTOPGM mode”), and the OFF mode for ending each operation mode and stopping the operation This is a key for designating a desired mode.
The numeric keypad / function key includes a numeric keypad for inputting numerical values, a character key for inputting characters, and a function key for instructing various functions.
The clerk key is a key for distinguishing an operator in charge of operating the master ECR 2a.
RAM23は、CPU21により実行されるシステムプログラム、各種処理プログラム、各処理において処理中のデータ、処理結果などを一時的に格納するワークエリアを形成する。また、RAM23は、図3に示すように、締め処理された一取引の取引合計金額データを一時的に格納する一取引合計メモリを有する。
The
また、RAM23は、登録に基づく売上データ、売上データを集計した集計データ及び各種設定データ等の各種ファイルデータを格納する格納手段としてのファイル格納メモリを有する。ファイル格納メモリには、図4に示すように、例えば、固定合計器ファイル230、商品の部門別に売上データを格納する部門ファイル231、商品別に売上データを格納するPLU(Price Look Up)ファイル232、売上明細のデータを格納するIDC(Item Data Capture;単品収集)ファイル233、マスタECR2a及び各スレーブECR2bの売上データの集計結果を格納する集計ファイル(例えば、各ECRの部門ファイルを集計した部門集計ファイル等)234、各種設定データを格納する全体設定ファイル235等が格納されている。また、ファイル格納メモリには、集計処理等のJOBにエラーが生じたときにエラーコードを格納するレスポンスファイル236等を有している。
The
以下、ファイル格納メモリに格納されるファイルの一例として、部門ファイル231、集計ファイル234、レスポンスファイル236について図を参照して説明する。
図5は、部門ファイル231のデータ格納例を模式的に示す図である。図5に示すように、部門ファイル231は、部門種別の文字列(キャラクタ)データを格納するキャラクタ領域(以下、フィールド)と、単価データを格納する単価フィールドと、売上個数のデータを格納する売上個数フィールドと、売上金額のデータを格納する売上金額フィールドとを有し、各部門に対するキャラクタ、単価、売上個数及び売上金額を対応付けて1レコードとして格納する。各フィールドのデータは、図5に示すように、固定長であり、データの桁数で格納すべきフィールドを識別することが可能となっている。キャラクタフィールド及び単価フィールドに格納されるデータは、予め定められた設定データであり、売上個数フィールド及び売上金額フィールドに格納されるデータは、該当する部門の商品が登録される毎に累計加算される演算データ(合計器)である。
Hereinafter, as an example of files stored in the file storage memory, a
FIG. 5 is a diagram schematically illustrating a data storage example of the
図6は、集計ファイル234の一例として部門集計ファイルのデータ格納例を模式的に示す図である。図6に示すように、部門集計ファイルは、通信ネットワークN2に接続された全てのECRにおける各部門ファイル231の売上個数のデータをレコード毎に集計した結果を格納する売上個数フィールドと、通信ネットワークN2に接続された全てのECRにおける各部門ファイル231の売上金額のデータをレコード毎に集計した結果を格納する売上個数フィールドを有する。
FIG. 6 is a diagram schematically illustrating a data storage example of a department total file as an example of the
ここで、マスタECR2a及び各スレーブECR2bに格納される同一名称のファイルにおいて、各フィールドの位置関係及び対応する各フィールドの桁数は同一である。また、マスタECR2a及び各スレーブECR2bに格納される同一名称のファイルにおいて、各レコードの格納領域は対応している。例えば、マスタECR2aに格納されている部門ファイル231において、図5に示すように「部門01」に関するデータが1レコード目であれば、全てのスレーブECR2bにおいても「部門01」に関するデータが1レコード目に格納されている。また、各ECRのそれぞれのファイルを集計した集計ファイルにおいても各レコードの格納領域は対応している。例えば、部門ファイル231の各レコードと部門集計ファイルの各レコードは対応しており、部門集計ファイルの1レコード目には全ECRの部門ファイル231の1レコード目を集計した結果が格納される。
Here, in the file having the same name stored in the
集計ファイル234としては、その他、例えば各ECRの固定合計器230を集計した固定合計器集計ファイル、各ECRのPLUファイル232を集計したPLU集計ファイル、売上金額を時間帯別に集計する時間帯ファイル等が挙げられる。
As the
なお、ファイル格納メモリの各ファイルのデータは、図5の部門ファイル231で説明したのと同様に全て固定長であり、データの桁数により各ファイル内で格納すべきフィールドを識別することが可能となっている。
Note that the data of each file in the file storage memory has a fixed length as described for the
図7は、レスポンスファイル236のデータ格納例を示す模式図である。レスポンスファイル236は、各ジョブ(以下、JOB)の起動結果を示すデータを格納するものであり、JOB毎に生成される。例えば、図7は、図12に示す集計処理のJOB起動結果を格納するレスポンスファイル236であり、異常終了した各ECRを識別するためのECRidと、そのECRで発生したエラーの種類を示すエラーコード(例えば、登録操作中でデータ送信不可能であれば「00」等)を対応付けて記憶する。なお、本実施の形態においては、JOBが異常終了したときのみをJOB起動結果として格納することとするが、JOBが正常終了したことを示す正常コードを設け、正常及び異常の双方の結果をレスポンスファイル236に格納するようにしてもよい。
FIG. 7 is a schematic diagram illustrating a data storage example of the
また、RAM23は、後述するCD処理(図14参照)で指定されるFPTモードの種別(Xモード、Zモード、AUTOPGMモード、JOBモード、モード指定なし)を格納するFTPモード格納メモリを有している。FTPモードとは、FTPプロトコルに基づきPC1から受信したコマンドに対する処理(後述するGET処理(図13参照)等)を行う際に適用する動作モードである。
Further, the
また、RAM23は、DIR(ディレクトリ)テーブルを格納している。このDIRテーブルは、図8に示すように、RAM23のファイル格納メモリに格納された各ファイルの内容が、各FTPモードにおいてPC1からアクセス(読み出し及び/又は書き込み)可能な内容であるか否かを一覧にしたテーブルである。DIRテーブルに示すように、各ファイルのファイル内容により各FTPモードにおいてPC1からアクセス可能なファイルが予め定められている。AUTOPGMモードでは、ファイル内容に設定データが含まれるファイルにアクセス可能である。Xモードでは、ファイル内容に演算データが含まれるファイルにアクセス可能である。Zモードでは、ゼロクリア可能な演算データが含まれるファイルにアクセス可能である。JOBモード(詳細後述)では、レスポンスファイル236のみアクセス可能である。
The
なお、DIRテーブルの内容は、CPU21により、時間帯により書き換えられる。例えば、午前中は単価データの変更ができない場合、午前中はDIRテーブルにおいてAUTOPGMモードで部門ファイル231及びPLUファイル232へのアクセスは不可能と書き換えられ、アクセスが不可能であることが表示される。また、営業時間中はPC1からの精算を受け付けない場合、所定の時間帯になるまでZモードでの各ファイルへのアクセスは不可能と書き換えられ、アクセスが不可能であることが表示される。
The contents of the DIR table are rewritten by the
さらに、RAM23には、後述するGET処理で転送待ちの変換データを一時的に格納する転送待ちメモリ、入力装置22のクラークキーの操作に応じて、現在の操作担当者の担当者コードを格納する担当者メモリ等を有する。
Further, the
図3に戻り、伝送制御部24は、受信手段及び送信手段として、モデム、ターミナルアップアダプタ又はLANアダプタ等により構成され、通信ネットワークN1を介してPC1とデータ送受信を行うための第1のI/F(インターフェース)と、LANアダプタ等により構成され、通信ネットワークN2を介して各スレーブECR2bとデータ送受信を行うための第2のI/F(インターフェース)とを有している。
Returning to FIG. 3, the
表示装置25は、LCD(Liquid Crystal Display)等により構成され、CPU21から入力される各種指示に従って各種演算結果、プログラム内容、設定ガイダンス等の表示を行う。
The
印刷装置26は、例えば、サーマルプリンタであり、レシート用、ジャーナル用(商品登録内容の記録用)のロール紙を有し、CPU21から入力される指示に従って、各ロール紙に対して各種売上データ、小計データ等の金額データを売上明細として印刷する。
The
記録装置27は、プログラムやデータ等が予め記憶された記録媒体27aを有し、この記録媒体は磁気的、光学的記録媒体、若しくは半導体等の不揮発性メモリで構成されている。記録媒体27aは、記録装置27に固定的に設けたもの、若しくは着脱自在に装着するものであり、マスタECR2aに対応するシステムプログラム、FTPクライアントプログラム、マスタ処理プログラム、登録処理プログラム、集計処理プログラム、各種FTP変換処理プログラムをはじめとする各種処理プログラム、これらのプログラムで利用する各種データ等を予め記憶する。
The
ドロア28は、現金を収納する引出しである。
The
スレーブECR2bの機能的構成は、上述したマスタECR2aと同様であるので同一の構成要素には同一の符号を付し、その説明は省略する。なお、本実施の形態において、スレーブECR2bはPC1とのファイル転送を実施しないため、記録装置27にFTPクライアントプログラム及びFTP変換処理プログラムを記憶している必要はなく、また、伝送制御部24に通信ネットワークN1に接続するためのインターフェースを備えてなくてもよい。
Since the functional configuration of the
次に、本実施形態の動作について説明する。
図9は、マスタECR2aのCPU21により実行されるメイン処理を示すフローチャートである。当該処理は、マスタECR2aの電源ON時にCPU21と記録装置27に記憶されているメイン処理プログラムとの協働によるソフトウエア処理により実現される処理である。
Next, the operation of this embodiment will be described.
FIG. 9 is a flowchart showing main processing executed by the
入力装置22のモードキーにより登録モードが指定され、登録モードで入力が行われると(ステップS1)、図10に示す登録処理が実行される(ステップS2)。
When the registration mode is designated by the mode key of the
図10は、マスタECR2aのCPU21により実行される登録処理を示すフローチャートである。当該処理は、マスタECR2aのCPU21と記録装置27に記憶されている登録処理プログラムとの協働によるソフトウエア処理により実現される処理である。
FIG. 10 is a flowchart showing a registration process executed by the
まず、入力装置22により入力が行われると、当該入力が商品登録の指示であるか否かが判断され、商品登録の指示であると判断された場合(ステップT1;YES)、この商品登録が一取引の最初の商品登録であるか否かが判断され、一取引の最初の商品登録であると判断された場合は(ステップT2;YES)、RAM23の一取引合計メモリがクリアされる(ステップT3)。次いで、固定合計器ファイル230、部門ファイル231、PLUファイル232等の各種売上データファイルが更新され(ステップT4)、商品の名称(商品コード)、金額等の商品データが印刷装置26によりレシート及びジャーナルに印刷されるとともに、表示装置25に表示され(ステップT5)、商品の金額がRAM23の一取引合計メモリに加算され(ステップT6)、処理はステップT1に戻る。
First, when an input is performed by the
一方、ステップT1において入力装置22からの入力が商品登録の指示ではないと判断されると(ステップT1;NO)、当該入力が締め処理の指示であるか否かが判断され、締め処理の指示であると判断された場合は(ステップT7;YES)、締め処理が実行される(ステップT8)。即ち、一取引合計メモリに格納されている一取引合計金額が読み出され、表示装置25に表示される。また、受領金額に基づき、つり銭金額の算出等も行われる。締め処理が終了すると、印刷装置26によりレシートが発行され(ステップT9)、処理は図9のステップS1に戻る。
On the other hand, if it is determined in step T1 that the input from the
図9のステップS1において、入力装置22により登録モードでの入力が行われず(ステップS1;NO)、その他の動作モードでの入力が行われた場合(ステップS3;YES)、入力に基づき他の動作モードでの処理が実行される(ステップS4)。 In step S1 of FIG. 9, when input in the registration mode is not performed by the input device 22 (step S1; NO) and input is performed in another operation mode (step S3; YES), another input is performed based on the input. Processing in the operation mode is executed (step S4).
一方、登録モードでの入力及び他のモードでの入力がなく、非処理状態である場合(ステップS3;NO)、伝送制御部24を介してPC1からFTPプロトコルに基づきコマンドが受信されたか否かが判断され、受信されていなければ(ステップS5;NO)、処理はステップS1に戻る。PC1からのコマンドが受信されたと判断された場合(ステップS5;YES)、受信されたコマンドが判断され、受信されたコマンドがPUTコマンドであると判断されると(ステップS6;YES)、図11に示すPUT処理が実行され(ステップS7)、処理はステップS1に戻る。
On the other hand, if there is no input in the registration mode and no input in the other mode and it is in the non-processing state (step S3; NO), whether or not a command is received from the
受信されたコマンドがPUTコマンドではなく(ステップS6;NO)、GETコマンドであると判断されると(ステップS8;YES)、図13 に示すGET処理が実行され(ステップS9)、処理はステップS1に戻る。 If it is determined that the received command is not a PUT command (step S6; NO) and is a GET command (step S8; YES), the GET process shown in FIG. 13 is executed (step S9), and the process proceeds to step S1. Return to.
受信されたコマンドがGETコマンドではなく(ステップS8;NO)、CDコマンドであると判断されると(ステップS10;YES)、図14に示すCD処理が実行され(ステップS11)、処理はステップS1に戻る。 If it is determined that the received command is not a GET command (step S8; NO) and is a CD command (step S10; YES), the CD process shown in FIG. 14 is executed (step S11), and the process is step S1. Return to.
受信されたコマンドがCDコマンドではなく(ステップS10;NO)、DIRコマンドであると判断されると(ステップS12;YES)、図15 に示すDIR処理が実行され(ステップS13)、処理はステップS1に戻る。 If it is determined that the received command is not a CD command (step S10; NO) and is a DIR command (step S12; YES), the DIR process shown in FIG. 15 is executed (step S13), and the process proceeds to step S1. Return to.
受信されたコマンドがDIRコマンドではないと判断されると(ステップS12;YES)、受信された他コマンドに応じた処理が実行され(ステップS14)、処理はステップS1に戻る。 If it is determined that the received command is not a DIR command (step S12; YES), processing according to the received other command is executed (step S14), and the processing returns to step S1.
以下、PC1からのFTPプロトコルに基づくコマンドに応じて実行されるPUT処理、GET処理、CD処理、DIR処理のそれぞれについて説明する。
〔PUT処理〕
まず、PUT処理について説明する。
図11は、マスタECR2aのCPU21により実行されるPUT処理を示すフローチャートである。当該処理は、マスタECR2aのCPU21と記録装置27に記憶されているPUT処理プログラムとの協働によるソフトウエア処理により実現される処理である。
Hereinafter, each of PUT processing, GET processing, CD processing, and DIR processing executed in response to a command based on the FTP protocol from the
[PUT processing]
First, the PUT process will be described.
FIG. 11 is a flowchart showing a PUT process executed by the
まず、PC1よりPUTコマンドとともに受信されたファイルデータの内容が解析され(ステップP1)、解析の結果、受信されたファイルデータの内容がJOB起動コマンドであると判断された場合(ステップP2;YES)、受信されたファイル内のコマンドの種類が判別され(ステップP3)、判別されたコマンドの種類に応じた処理(JOB)が起動され(ステップP4)、処理は図4のステップS1に戻る。
First, the content of the file data received together with the PUT command from the
例えば、PC1から「PUT JOBSEND.TXT」というファイルが受信され、その内容を解析した結果、「J 21 X 11 REPORT」という固定合計器ファイル230の集計処理を示すJOB起動コマンドであった場合、固定合計器ファイル230の集計処理が起動される。このように、PC1側からFTPプロトコルによりJOB起動コマンドを記述したファイルデータをECR2aに送信することにより、PC1からECR2aにJOB起動をかけることが可能となる。
For example, if a file called “PUT JOBSEND.TXT” is received from
図12は、JOB起動コマンドにより起動される処理の一例として、集計処理を示すフローチャートである。
まず、集計タイミングであるか否かが判断され(ステップT11)、集計タイミングである場合(ステップT11;YES)、各スレーブECR2bからコマンドで指定されたファイルの売上データが収集され、累計加算される(ステップT12)。より詳細には、各スレーブECR2bに対して、JOB起動コマンドにより指定されたファイル(例えば、上述の「J 21 X 11 REPORT」の場合は、固定合計器ファイル230)の売上データの収集コマンドが送信される。各スレーブECR2bにおいては、売上データの収集コマンドが受信されると、指定されたファイルから売上データが読み出されてマスタECR2aに送信され、読み出された売上データが指定されたファイルから消去(ゼロクリア)される。各スレーブECR2bから指定されたファイルの売上データが受信されると、受信された売上データ及びマスタECR2aの指定されたファイルの売上データが集計ファイル234の対応するフィールドに累計加算される。
FIG. 12 is a flowchart showing a counting process as an example of a process activated by a JOB activation command.
First, it is determined whether or not it is the aggregation timing (step T11). If it is the aggregation timing (step T11; YES), the sales data of the file designated by the command is collected from each
売上データの集計が正常終了すると(ステップT13;YES)、本処理は終了する。何れかのスレーブECR2bの電源がOFFであったり、登録処理中であったり又は通信エラーが生じたり等により、売上データが受信できず売上データの集計が異常終了した場合(ステップT13;NO)、RAM23のレスポンスファイル236に異常終了したスレーブECR2bの識別コード(id)及び異常状態に応じたエラーコードが格納され(ステップT14)、本処理は終了する。
When the aggregation of sales data ends normally (step T13; YES), this process ends. If any of the
一方、集計タイミングではない場合(例えば、営業時間中である場合等)には(ステップT11;NO)、集計タイミングではないことを示すエラーコードがレスポンスファイル236に格納され(ステップT15)、本処理は終了する。 On the other hand, when it is not the aggregation timing (for example, during business hours) (step T11; NO), an error code indicating that it is not the aggregation timing is stored in the response file 236 (step T15). Ends.
なお、PC1から起動可能なJOBは、上述の集計処理のほかに、例えば、操作者の登録を受け付けなくするZロック処理、Zロックを解除するZロック解除処理、バッチメンテナンス処理、自動的に電源をON/OFFするオートパワーON/OFF処理等を行うことができる。
JOBs that can be started from the
図11に戻り、ステップP1における解析の結果、受信されたファイル内容がJOB起動コマンドではないと判断された場合(ステップP2;NO)、受信されたファイルデータのファイル名称から、受信されたファイルデータの書き込み先となるファイルが判別され(ステップP5)、受信されたファイル内のデータ内容から受信されたデータを書き込むフィールドが判別され(ステップP6)、受信されたファイル内のデータが予め定められたECR形式のデータに変換され(ステップP7)、RAM23のワークエリアに一時記憶される(ステップP8)。例えば、PC1から部門ファイルのファイル名称「FILE005.txt」をファイル名称とするファイルが受信された場合、ファイル名称に基づいて、書き込み先のファイル名称がRAM23に格納されている部門ファイル「FILE005.DAT」、であり、テキストデータからバイナリデータへの変換が必要であることが判別される。また、受信したファイル内の各データの内容、具体的には各データの長さ、データの種類(キャラクタか数字データか等)に基づき各データを書き込むフィールドが決定される。
Returning to FIG. 11, when it is determined that the received file content is not a JOB start command as a result of the analysis in step P1 (step P2; NO), the received file data from the file name of the received file data. Is determined (step P5), the field to which the received data is written is determined from the data content in the received file (step P6), and the data in the received file is predetermined. The data is converted into ECR format data (step P7) and temporarily stored in the work area of the RAM 23 (step P8). For example, when a file having the file name “FILE005.txt” of the department file is received from the
変換後、ステップP5、6で判別された書き込み先ファイルの書き込み先フィールドに、RAM23に一時記憶された変換データが書き込まれるとともに(ステップP9)、RAM23に一時記憶された変換データが伝送制御部24の第2のI/Fを介して、各スレーブECR2bに対し、書き込み先ファイル及びフィールドを識別可能に送信され(ステップP10)、処理は図9のステップS1に戻る。
After the conversion, the conversion data temporarily stored in the
上記のように、PC1側からFTPプロトコルによるPUTコマンドを用いて、マスタECR2aに対し、マスタECR2a及びスレーブECR2bに格納されたファイルに書き込むべきデータ(例えば、設定データ等)を送信することにより、ECR側でECR形式のデータに変換し、書き込むべき領域、すなわち、書き込むべきファイル名称及びフィールドを判断して書き込むので、PC1からFTP等の汎用プロトコルを用いて容易にマスタECR2a及びスレーブECR2bに設定データの書き込みを行うことが可能となる。
As described above, the ECR is transmitted from the
〔GET処理〕
次に、GET処理について説明する。
図13は、マスタECR2aのCPU21により実行されるGET処理を示すフローチャートである。当該処理は、マスタECR2aのCPU21と記録装置27に記憶されているGET処理プログラムとの協働によるソフトウエア処理により実現される処理である。
[GET processing]
Next, the GET process will be described.
FIG. 13 is a flowchart showing the GET process executed by the
ここで、GETコマンドは、PC1側からマスタECR2aに格納されているファイルデータを取得したい場合に送信するコマンドであり、マスタECR2a側においては、予めPC1からCDコマンドによりFTPモードが指定されていれば、PC1から要求されたファイルのうちFTPモードに応じたデータを送信することができる。
Here, the GET command is a command that is transmitted when it is desired to acquire file data stored in the
まず、PC1よりGETコマンドとともに受信されたファイル名称を示すデータの内容が判別されるとともに(ステップG1)、FTPモード格納メモリに記憶されているFTPモードが判別される(ステップG2)。FTPモード格納メモリには、PC1から送信されるCDコマンドにより指定されたFTPモードを示すデータが格納されている(図14参照)。ステップG2において判別されたFTPモードがXモード又はZモードである場合(ステップG3;YES)、RAM23のファイル格納メモリに格納されているファイルのうち、ステップG1で判別されたファイル名称のファイルに演算データが格納されているか否かが判断され、演算データが格納されている場合(ステップG4;YES)、判別されたファイルから演算データが読み出されてワークエリアに一時記憶され(ステップG5)、処理はステップG14に移行する。
First, the content of the data indicating the file name received from the
ステップG4において、ステップG1で判別されたファイル名称のファイルに演算データが格納されていないと判断された場合(ステップG4;NO)、モードエラーであることを示すファイルが作成されワークエリアに一時記憶され(ステップG6)、処理はステップG14に移行する。 In step G4, when it is determined that the operation data is not stored in the file having the file name determined in step G1 (step G4; NO), a file indicating a mode error is created and temporarily stored in the work area. (Step G6), the process proceeds to Step G14.
ステップG2において判別されたFTPモードがXモードでもZモードでもない場合(ステップG3;NO)、FTPモードがAUTOPGMモードであるか否かが判別され、AUTOPGMモードである場合(ステップG7;YES)、ステップG1で判別されたファイル名称のファイルに設定データが格納されているか否かが判断され、設定データが格納されている場合(ステップG8;YES)、判別されたファイルから設定データが読み出されてワークエリアに一時記憶され(ステップG9)、処理はステップG14に移行する。 If the FTP mode determined in step G2 is neither the X mode nor the Z mode (step G3; NO), it is determined whether the FTP mode is the AUTOPGM mode, and if the FTP mode is the AUTOPGM mode (step G7; YES). It is determined whether or not the setting data is stored in the file having the file name determined in step G1, and when the setting data is stored (step G8; YES), the setting data is read from the determined file. Is temporarily stored in the work area (step G9), and the process proceeds to step G14.
一方、ステップG8において、ステップG1で判別されたファイル名称のファイルに設定データが格納されていないと判断された場合(ステップG8;NO)、モードエラーであることを示すファイルが作成されワークエリアに一時記憶され(ステップS10)、処理はステップG14に移行する。 On the other hand, if it is determined in step G8 that the setting data is not stored in the file having the file name determined in step G1 (step G8; NO), a file indicating a mode error is created in the work area. Temporarily stored (step S10), the process proceeds to step G14.
一方、ステップG2において判別されたFTPモードがAUTOPGMモードでなく(ステップG7;NO)JOBモードである場合(ステップG11;YES)、レスポンスファイル361が読み出され(ステップG12)、処理はステップG14に移行する。 On the other hand, when the FTP mode determined in step G2 is not the AUTOTOPM mode (step G7; NO) and the JOB mode (step G11; YES), the response file 361 is read (step G12), and the process proceeds to step G14. Transition.
一方、ステップG2において判別されたFTPモードがJOBモードではない場合(ステップG11;NO)、すなわち、モード指定なしである場合、ステップG1で判別されたファイル名称のファイルから全データが読み出されてワークエリアに一時記憶され、処理はステップG14に移行する。 On the other hand, if the FTP mode determined in step G2 is not the JOB mode (step G11; NO), that is, if no mode is specified, all data is read from the file having the file name determined in step G1. The data is temporarily stored in the work area, and the process proceeds to step G14.
ステップG14においては、ワークエリアに読み出されたデータがPC1から指定されたファイル形式に変換され、RAM23の転送エリアに格納される(ステップG15)。PC1から指定されたファイル形式は、GETコマンドとともに受信されたファイル名称を示すデータの識別子で判断される。例えば、「GET FILE05.TXT」が受信された場合、読み出されたデータがテキスト形式のファイルに変換される。そして、伝送制御部24の第1のI/Fを介して転送エリアに格納されているファイルデータがPCに送信される(ステップG16)。FTPモードがZモードである場合には(ステップG17;YES)、さらに、ステップG5で読み出された演算データが記憶されていた元ファイルからその演算データがゼロクリア(消去)されることにより精算が行われ(ステップG18)、処理は図9のステップS1に戻る。
In step G14, the data read to the work area is converted into a file format designated by the
上記のように、GET処理では、操作者がPC1側から取得したいファイルの名称及び形式を指定することで、PC1において取得したいデータを所望のファイル形式で受信することが可能となる。また、予めFTPモードを指定しておけば、ユーザが必要なデータ(例えば、売上データ等の演算データのみ等)を選んで受信することが可能となる。例えば、「GET FILE05.TXT」を指定した場合、予めFTPモードをX又はZモードにしておけば、図5に示す部門ファイル231の演算データ、すなわち、売上個数及び売上金額のみをPC側で取得可能となり、予めFTPモードをAUTOPGMモードにしておけば、図5に示す部門ファイル231の設定データ、すなわち、キャラクタ及び単価のみをPC1側で取得可能となる。また、FTPモードをZモードにし、例えば、部門集計ファイルの売上データ等を指定すれば、PC1側からその売上データを精算してPC1側に収集させることが可能となる。
As described above, in the GET process, it is possible for the operator to receive the data to be acquired in the desired file format by specifying the name and format of the file to be acquired from the
〔CD処理〕
次に、CD処理について説明する。
図14は、マスタECR2aのCPU21により実行されるCD処理を示すフローチャートである。当該処理は、マスタECR2aのCPU21と記録装置27に記憶されているCD処理プログラムとの協働によるソフトウエア処理により実現される処理である。
[CD processing]
Next, CD processing will be described.
FIG. 14 is a flowchart showing a CD process executed by the
PC1からCDコマンド及びFTPモードの種別を示すデータが受信されると、受信された動作モードの名称がRAM23のFTPモード格納メモリに記憶され(ステップC1)、処理は図9のステップS1に戻る。
When the CD command and data indicating the type of FTP mode are received from the
RAM23のFTP格納メモリに記憶されたFTPモードは、PC1から受信した他コマンドに対する処理を行う際に参照され、このFTPモードに応じた処理が実行される。
例えば、PC1より「CD AUTOPGM」というCDコマンド及びFTPモードを示すデータが受信された場合、FTPモード格納メモリに「AUTOPGM」を示すデータが記憶される。これにより、上述したGET処理では、指定されたファイル名称のファイルの設定データのみを読み出してPC1に送信するという、設定モードに応じた処理を行うことが可能となる。
The FTP mode stored in the FTP storage memory of the
For example, when a CD command “CD AUTOPGM” and data indicating the FTP mode are received from the
次に、DIR処理について説明する。
図15は、マスタECR2aのCPU21により実行されるDIR処理を示すフローチャートである。当該処理は、マスタECR2aのCPU21と記録装置27に記憶されているDIR処理プログラムとの協働によるソフトウエア処理により実現される処理である。
Next, the DIR process will be described.
FIG. 15 is a flowchart showing the DIR process executed by the
PC1から、RAM23のファイル格納メモリのディレクトリを閲覧するためDIRコマンドが受信されると、RAM23に格納されているDIRテーブルが参照され(ステップD1)、DIRテーブルに基づき、ファイル格納メモリに格納されている各ファイルのファイルデータが各FTPモードでアクセス可能な内容であるか否かにより分類され、FTPモード別に、そのモードでアクセス可能なファイル名称のデータを格納する仮想ディレクトリが作成される(ステップD2)。次いで、FTPモード格納メモリに記憶されている現在のFTPモードに対応する仮想ディレクトリ内のファイル名称のデータがPC1で出力可能な形式に変換される(ステップD3)。そして、伝送制御部24の第1のI/Fを介してその変換されたデータがPC1に送信され(ステップD4)、処理は図9のステップ1に戻る。
When a DIR command is received from the
なお、CDコマンドによりFTPモードが指定されずにDIRコマンドが受信された場合は、図16(a)に示すように、ステップD3において、ステップD2で作成された仮想ディレクトリの一覧を示すデータがPC1で出力可能な形式に変換され、PC1に送信される。
When the DIR command is received without specifying the FTP mode by the CD command, as shown in FIG. 16A, in step D3, data indicating a list of virtual directories created in step D2 is PC1. Is converted into a format that can be output by the
PC1側では、DIRコマンドによりマスタECR2aの現在のFTPモードでアクセス可能なファイルのファイル名称のデータを取得することができるので、表示装置やプリンタ等で受信したデータを出力することにより、PC1の操作者は、マスタECR2aの現在のFTPモードでアクセス可能なファイル名称の一覧を閲覧することが可能となる。
On the
例えば、図16(b)に示すように、PC1からCDコマンドでAUTOPGMモードを指定した後にDIRコマンドを送信すると、AUTOPGMモードでアクセス可能なファイル名称の一覧を表示することが可能となる。同様にして、Xモード、Zモード、JOBモードでアクセス可能なファイル名称の一覧を表示することが可能となる。
For example, as shown in FIG. 16B, when the DIR command is transmitted from the
〔FTPコマンドを用いた処理シーケンス例〕
以下、図17を参照してFTPプロトコルによるコマンドの送受信を用いたPC1とマスタECR2aとの処理シーケンスの一例について説明する。図17においては、PC1からCDコマンドによりマスタECR2aにFTPモードを指定し、DIRコマンドにより、指定したFTPモードでアクセス可能なファイル名の一覧を取得して表示し、GETコマンドによりファイル名称を指定することにより、指定されたファイルの内容を取得して表示するシーケンスである。
[Example of processing sequence using FTP command]
Hereinafter, an example of a processing sequence between the
PC1において、操作者により入力装置12を介してCDコマンド及びFTPモードが入力されると(ステップA1)、入力されたCDコマンド及びFTPモードのデータがマスタECR2aに送信される(ステップA2)。
In the
マスタECR2aにおいては、伝送制御部24の第1のI/Fを介してCDコマンドが受信されると(ステップA3)、図14で説明したCD処理が実行され、CDコマンドとともに受信されたFTPモードのデータがFTPモード格納メモリに記憶される(ステップA4)。
In the
マスタECR2のFTPモードを変更させた後、PC1において、操作者により入力装置12を介してDIRコマンドが入力されると(ステップA5)、伝送制御部14を介してマスタECR2aにDIRコマンドが送信される(ステップA6)。
After changing the FTP mode of the master ECR2, when the DIR command is input by the operator via the
マスタECR2aにおいては、伝送制御部24の第1のI/Fを介してDIRコマンドが受信されると(ステップA7)、図15に示すDIR処理が実行され、FTPモード格納メモリに記憶されているFTPモードでアクセス可能なファイル名称のデータが作成され、PC1に送信される(ステップA8)。
In the
PC1においては、マスタECR2aからファイル名称のデータが受信されると(ステップA9)、表示装置15に、ファイル名称の一覧が表示される(ステップA10)。操作者により入力装置12を介してGETコマンド及びファイル名称が入力されると(ステップA11)、入力されたGETコマンド及びファイル名称のデータがマスタECR2aに対して送信される(ステップA12)。
In PC1, when file name data is received from
マスタECR2aにおいて、GETコマンド及びファイル名称のデータが受信されると(ステップA13)、図13で説明したGET処理が実行され、GETコマンドとともに受信されたファイル名称に対応するファイルからFTPモードに応じたデータが読み出され、指定されたファイル形式のファイルデータに変換され、PC1に送信される(ステップA14)。
When the
PC1において、ファイルデータが受信されると(ステップA15)、ファイルデータの内容が表示装置15に表示される(ステップA15)。 When the file data is received in the PC 1 (step A15), the contents of the file data are displayed on the display device 15 (step A15).
以上の手順により、PC1側からマスタECR2aの必要なファイルデータを取得して表示装置15に表示させることができる。
With the above procedure, necessary file data of the
〔集計処理起動時のマスタECR2aとスレーブECR2bのシーケンス例〕
PC1からPUTコマンドにより各種ファイルの集計処理起動が受信された場合、マスタECR2aはスレーブECR2bから売上データを収集する必要がある。図18は、PC1からマスタECR2aに対してPUTコマンドにより集計処理起動が行われた際の、PC1、マスタECR2a及びスレーブECR2b間の処理シーケンスの一例を示すものである。以下、図18の処理シーケンスについて説明する。なお、スレーブECR2bは1台として図示するが、マスタECR2aは、通信ネットワークN2に接続された各スレーブECR2bと同様のシーケンスを行う。
[Sequence example of
When the activation processing of various files is received from the
PC1において、操作者により入力装置12を介して集計処理起動コマンド、すなわち、PUTコマンド及び集計処理起動コマンドが格納された起動用ファイルの名称が入力されると(ステップB1)、PUTコマンド及び入力された名称の起動用ファイルのデータが、マスタECR2aに送信される(ステップB2)。
In the
マスタECR2aにおいては、伝送制御部24の第1のI/Fを介してPUTコマンド及び起動用ファイルが受信されると(ステップB3)、図11で説明したPUT処理が実行され、起動用ファイル内で指定されたファイルの集計処理が起動され(ステップB4)、現在集計処理可能なタイミングであるか否かが判断される(ステップB5)。例えば、所定の時刻、例えば、店舗が閉店して締めが終了する時刻になるまでは、集計処理は起動不可能となっている。集計処理可能なタイミングでなければ(ステップB6;YES)、その旨を示すエラーコードがレスポンスファイル236に記憶される。集計可能なタイミングである場合(ステップB5;YES)、スレーブECR2bに対して、指定されたファイルの売上データ収集コマンドが送信される(ステップB7)。
In the
スレーブECR2bにおいて、マスタECR2aから売上データ収集コマンドが受信されると(ステップB8)、売上データの送信が可能な状態であるか否かが判断され、送信可能である場合(ステップB9;YES)、マスタECR2aに指定されたファイルの売上データが送信され、そのファイルの売上データがゼロクリアされて精算が行われる(ステップB10)。売上データの送信が不可能な状態(例えば、電源がOFF状態、登録操作中状態)である場合(ステップB9;NO)、状態に応じたエラーコードがマスタECR2aに対して送信される(ステップB11)。
When the
マスタECR2aにおいて、売上データが正常に受信されると(ステップB12;YES)、受信された売上データが指定されたファイルに対応する集計ファイルおいて累計加算される(ステップB13)。売上データが正常に受信されず、エラーコードが受信された場合(ステップB12;NO)、送信元のスレーブID及び受信されたエラーコードがレスポンスファイル236に記憶される(ステップB14)。
When the sales data is normally received in the
PC1から処理結果受信コマンド、すなわち、GETコマンド及びレスポンスファイルのファイル名称が入力されると(ステップB15)、マスタECR2aに対しGETコマンド及びレスポンスファイルのファイル名称のデータが送信される(ステップB16)。
When the processing result reception command, that is, the GET command and the file name of the response file are input from the PC 1 (step B15), the data of the GET command and the file name of the response file are transmitted to the
マスタECR2aにおいて、PC1からGETコマンド及びレスポンスファイルのファイル名称のデータが受信されると(ステップB17)、GET処理が行われ、レスポンスファイル236が読み出され、PC1で出力可能な形式に変換され、PC1に送信される(ステップB18)。
In the
PC1においては、レスポンスファイル236が受信されると、表示装置15に表示される(ステップB19)。レスポンスファイルにエラーコードが含まれていなければ(ステップB20;NO)、本処理は終了する。エラーコードが含まれている場合には(ステップB20;YES)、マスタECR2aに対し、エラーコードに対応するスレーブECR2bへの再度の売上データ収集処理の起動コマンドをデータとする起動用ファイルが生成され、PUTコマンドとともに送信される(ステップB21)。
In PC1, when
マスタECR2aにおいて、PC1からPUTコマンド及び起動用ファイルのデータが受信されると(ステップB22)、起動用ファイルの内容に基づき、スレーブECR2bに対して再度売上データ収集コマンドが送信される(ステップB23)。スレーブECR2bにおいて、売上収集コマンドが受信されると、ステップB8からの処理が再度実行される。
When the
以上のシーケンスにより、PC1は、マスタECR2aに対し、エラーのスレーブECR2bがなくなるまで、繰り返しデータ収集を行わせることが可能となる。
With the above sequence, the
〔変形例〕
図19は、上述した一連の処理の変形例として、FTPによりPC1からマスタECR2aに対してJOB起動コマンドを送信した際に、マスタECR2aにおいて、マスタECR2aの現在の操作担当者が、JOBの実行を許可された担当者であるか否かを判別する担当者判別手段を追加し、許可された担当者でなければPC1からのJOB起動をエラーとするシーケンスを示すものである。
[Modification]
FIG. 19 shows a modification of the series of processes described above. When a JOB start command is transmitted from the
PC1において、操作者により入力装置12を介してJOB起動コマンド、すなわち、PUTコマンド及びJOB起動コマンドが格納されたファイルの名称が入力されると(ステップE1)、PUTコマンド及び入力された名称の起動用ファイルのデータが、マスタECR2aに送信される(ステップE2)。
In the
マスタECR2aにおいては、伝送制御部24の第1のI/Fを介してPUTコマンド及び起動用ファイルが受信されると(ステップE3)、現在のマスタECR2aにおける操作担当者(クラークキーで指定され、担当者メモリに担当者コードが記憶されている操作担当者)が起動用ファイルにより指定されたJOBの実行を許可された担当者であるか否かが判断され、指定されたJOBの実行が許可された担当者である場合(ステップE4;YES)、起動用ファイルのコマンドに従ってJOBが起動される(ステップE5)。現在の操作担当者が起動用ファイルにより指定されたJOBの実行を許可された担当者ではない場合(ステップE4;NO)、レスポンスファイル236に担当者エラーを示すエラーコードが格納される(ステップE6)。
In the
PC1において、操作者から入力装置12を介して処理結果受信コマンド、すなわち、GETコマンド及びレスポンスファイルのファイル名称が入力されると(ステップE7)、マスタECR2aに対しGETコマンド及びレスポンスファイルのファイル名称のデータが送信される(ステップE8)。
When the processing result reception command, that is, the GET command and the file name of the response file are input from the operator via the
マスタECR2aにおいて、PC1からのGETコマンド及びレスポンスファイルのファイル名称のデータが受信されると(ステップE9)、GET処理が実行され、レスポンスファイル236が読み出され、PC1で出力可能な形式に変換され、PC1に送信される(ステップE10)。
When the
PC1においては、レスポンスファイル236が受信されると、レスポンスファイルの内容が表示装置15に表示され(ステップE11)、本処理は終了する。
In the
上記のシーケンスにより、マスタECR2a側の操作担当者が、例えば店舗責任者等、PC1から指定されたJOBの実行を許可された担当者である場合にのみJOBを実行させることが可能となり、一般の店員等による誤操作によるJOBの不正終了等を防止し、マスタECR2a内のデータのセキュリティを確保することが可能となる。なお、上記変形例では、JOB起動コマンドが受信された際に担当者が許可された担当者であるか否かを判別することとしたが、売上データの消去(クリア)の伴うZモードへの移行が指示された際に、同様にして担当者の制限を行っても良い。
With the above sequence, it becomes possible to execute a job only when the person in charge of operation on the
以上説明したように、本発明に係るマスタECR2aによれば、PC1から送信されてきたファイル名称を示すデータを受信すると、受信したファイル名称のデータを判別し、その判別されたファイル名称に応じたデータをRAM23のファイル格納メモリから読み出し、読み出したデータを受信されたファイル名称により指定された形式のファイルデータに変換し、この変換されたファイルデータをサPC1に送信する。従って、PC1側においては、マスタECR2aから取得したいデータのファイル名称を送信するだけで、マスタECR2aのファイル格納メモリに格納されている、送信したファイル名称に応じたデータを、PC1で指定したデータ形式で受信することが可能となる。
As described above, according to the
また、マスタECR2aは、当該マスタECR2aが非処理状態であるときに、PC1から送信されたファイル名称に応じたデータのファイル格納メモリからの読み出しを行うので、データ処理中の未確定データをPC1に送信してしまうなどのエラーを防止することができる。
In addition, when the
また、マスタECR2aによれば、PC1からFTPプロトコルに基づく通信時におけるマスタECR2aの動作モードを指定するコマンドが受信された際に、判別されたファイル名称に応じたファイルデータの中から指定された動作モードに応じたデータのみを読み出し、この読み出したデータをファイル名称により指定された形式のファイルデータに変換してPC1に送信する。従って、PC1側で指定したファイルデータの中から動作モードに応じた必要なデータのみを取得することが可能となる。
Further, according to the
また、マスタECR2aによれば、PC1側からZモードを指定して、売上データのファイル名称を送信することで、その売上データを取得するとともにマスタECR2aにその売上データを精算させることが可能となる。
Further, according to the
また、マスタECR2aによれば、マスタECR2aにおける操作担当者が精算を許可された担当者であるか否かを判別し、許可された担当者である場合に精算を行うことが可能となるので、データのセキュリティを確保することができる。
In addition, according to the
また、マスタECR2aによれば、PC1から送信されてきたファイルデータを受信し、受信したファイルデータのファイル名称及びデータ内容を判別し、受信されたファイル内のデータのそれぞれを、ファイル格納メモリにおける判別されたファイル名称及びデータ内容に対応する領域に、予め定められたECR形式に変換して書き込む。従って、PC1から送信されてきたファイルデータを、マスタECR2aで定められた適切な形式で適切な領域に書き込むことが可能となる。
Further, according to the
また、マスタECR2aによれば、非処理状態であるときに、受信されたファイルデータの書き込みを行うので、マスタECR2aにおける他の処理中にエラーが生じることを防止することができる。
Further, according to the
なお、上記実施の形態における記述内容は、本発明に係るECRシステム100の好適な一例であり、これに限定されるものではない。
In addition, the description content in the said embodiment is a suitable example of the
例えば、上記実施の形態においては、予めFPTモードを指定しておけば、GET処理において、受信されたファイル名称に対応するファイルデータのなかから指定されたFPTモードに応じたデータのみが読み出されることとしたが、例えば、PC1からファイル名称を指定するときに、ファイル名称に所望のデータを示す識別符号を付加して送信し、マスタECR2a側では、PC1から受信したファイル名称に対応するファイルから識別符号に応じたデータのみを読み出してPC1に送信するようにしてもよい。例えば、ファイル名称として「FILE005X.TXT」が指定された場合、部門ファイル231(FILE005.DAT)のうち、Xモードでアクセス可能な売上個数及び売上金額のデータのみをPC1に送信するようにしてもよい。
For example, in the above embodiment, if the FPT mode is designated in advance, only data corresponding to the designated FPT mode is read from the file data corresponding to the received file name in the GET process. However, for example, when a file name is designated from the
また、上記実施の形態においては、本発明のデータ処理装置をECRとして説明したが、複数のPOS端末を備えるPOSシステムのサーバとPOS端末との間でのファイルデータの送受信を行う際に本発明を適用するようにしてもよい。 In the above embodiment, the data processing apparatus of the present invention has been described as ECR. However, when file data is transmitted and received between a POS system server having a plurality of POS terminals and a POS terminal, the present invention is used. May be applied.
その他、ECRシステム100の細部構成及び細部動作に関しても、本発明の趣旨を逸脱することのない範囲で適宜変更可能である。
In addition, the detailed configuration and detailed operation of the
100 ECRシステム
1 PC
2a マスタECR
2b スレーブECR
11 CPU
12 入力装置
13 RAM
14 伝送制御部
15 表示装置
16 記録装置
16a 記録媒体
17 バス
21 CPU
22 入力装置
23 RAM
24 伝送制御部
25 表示装置
26 印刷装置
27 記録装置
27a 記録媒体
28 ドロア
29 バス
100
2a Master ECR
2b Slave ECR
11 CPU
12
14 Transmission Control Unit 15 Display Device 16 Recording Device 16a Recording Medium 17
22
24
Claims (4)
前記売上データを格納する格納手段と、
前記サーバ装置からファイル転送用プロトコルを用いて売上データを取得するコマンド及びファイルを受信する受信手段と、
前記サーバ装置より送信された点検若しくは精算モードを示す動作モードを記憶する記憶手段と、
前記売上データを取得するコマンドを受信した際に、前記記憶手段内の点検若しくは精算モードに応じて、且つ前記サーバ装置からファイル転送用プロトコルを用いて送信されてきたファイルの名称に基づくファイル形式で前記格納されている売上データを読み出す読出手段と、
前記読み出した売上データを前記サーバ装置へ送信する送信手段と
を備えたことを特徴とする売上データ処理装置。 A sales data processing device that transmits and receives files using a file transfer protocol with a server device,
Storage means for storing the sales data;
A receiving unit for receiving a command and a file for obtaining sales data using a file transfer protocol from the server device;
Storage means for storing an operation mode indicating a check or settlement mode transmitted from the server device;
Wherein upon receiving a command to the sales data obtaining, in response to said inspection or settlement mode in the storage means, and wherein based rather on the name of the file that has been transmitted by using a file transfer protocol from the server file Reading means for reading the stored sales data in a format ;
A sales data processing apparatus comprising: a transmission unit configured to transmit the read sales data to the server apparatus.
前記読出手段は、前記操作担当者が前記精算を許可された担当者である場合に、前記精算を行うことを特徴とする請求項2に記載の売上データ処理装置。 A person-in-charge determining means for determining whether or not the person in charge of operation in the sales data processing apparatus is a person in charge who is permitted to perform the settlement;
3. The sales data processing apparatus according to claim 2, wherein the reading unit performs the payment when the person in charge of operation is a person in charge who is permitted to perform the payment.
前記売上データを格納する格納手段、
前記サーバ装置からファイル転送用プロトコルを用いて売上データを取得するコマンド及びファイルを受信する受信手段、
前記サーバ装置より送信された点検若しくは精算モードを示す動作モードを記憶する記憶手段、
前記売上データを取得するコマンドを受信した際に、前記記憶手段内の点検若しくは精算モードに応じて、且つ前記サーバ装置からファイル転送用プロトコルを用いて送信されてきたファイルの名称に基づくファイル形式で前記格納されている売上データを読み出す読出手段、
前記読み出した売上データを前記サーバ装置へ送信する送信手段
として機能させるためのプログラム。 A sales data processing computer that sends and receives files to and from a server device using a file transfer protocol ;
Storage means for storing the sales data;
A receiving means for receiving a command and a file for acquiring sales data using a file transfer protocol from the server device;
Storage means for storing an operation mode indicating a check or settlement mode transmitted from the server device;
Wherein upon receiving a command to the sales data obtaining, in response to said inspection or settlement mode in the storage means, and wherein based rather on the name of the file that has been transmitted by using a file transfer protocol from the server file A reading means for reading out the stored sales data in a format ;
A program for causing the read sales data to function as transmission means for transmitting to the server device.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2005126981A JP4517930B2 (en) | 2005-04-25 | 2005-04-25 | Sales data processing apparatus and program |
US11/408,227 US8447655B2 (en) | 2005-04-25 | 2006-04-20 | Data processing apparatus |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2005126981A JP4517930B2 (en) | 2005-04-25 | 2005-04-25 | Sales data processing apparatus and program |
Publications (3)
Publication Number | Publication Date |
---|---|
JP2006302213A JP2006302213A (en) | 2006-11-02 |
JP2006302213A5 JP2006302213A5 (en) | 2010-01-21 |
JP4517930B2 true JP4517930B2 (en) | 2010-08-04 |
Family
ID=37470393
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2005126981A Active JP4517930B2 (en) | 2005-04-25 | 2005-04-25 | Sales data processing apparatus and program |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP4517930B2 (en) |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2001014285A (en) * | 1999-04-28 | 2001-01-19 | Fujitsu Ltd | Data transfer management system, data transfer system, transfer history collection device, and recording medium |
JP2001243545A (en) * | 2000-03-01 | 2001-09-07 | Sharp Corp | Key entry device and sales managing device |
JP2003067847A (en) * | 2001-08-22 | 2003-03-07 | Sharp Corp | Device for supporting sales management and system for sales management |
JP2003067844A (en) * | 2001-08-22 | 2003-03-07 | Sharp Corp | Device for supporting sales management |
JP2004133717A (en) * | 2002-10-11 | 2004-04-30 | Toshiba Tec Corp | Product sales data processing device |
JP2004272534A (en) * | 2003-03-07 | 2004-09-30 | Casio Comput Co Ltd | Sales data processing device and program |
JP2004289739A (en) * | 2003-03-25 | 2004-10-14 | Yamaha Corp | Parameter setting method for network apparatus, parameter setting apparatus and program |
JP2004326700A (en) * | 2003-04-28 | 2004-11-18 | Toshiba Tec Corp | Product sales data processing device |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH06168170A (en) * | 1992-11-27 | 1994-06-14 | Tokyo Electric Co Ltd | Data transfer processor |
JP3257102B2 (en) * | 1992-12-11 | 2002-02-18 | カシオ計算機株式会社 | Sales data processing device |
JPH1011380A (en) * | 1996-06-27 | 1998-01-16 | Tec Corp | Terminal managing device |
-
2005
- 2005-04-25 JP JP2005126981A patent/JP4517930B2/en active Active
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2001014285A (en) * | 1999-04-28 | 2001-01-19 | Fujitsu Ltd | Data transfer management system, data transfer system, transfer history collection device, and recording medium |
JP2001243545A (en) * | 2000-03-01 | 2001-09-07 | Sharp Corp | Key entry device and sales managing device |
JP2003067847A (en) * | 2001-08-22 | 2003-03-07 | Sharp Corp | Device for supporting sales management and system for sales management |
JP2003067844A (en) * | 2001-08-22 | 2003-03-07 | Sharp Corp | Device for supporting sales management |
JP2004133717A (en) * | 2002-10-11 | 2004-04-30 | Toshiba Tec Corp | Product sales data processing device |
JP2004272534A (en) * | 2003-03-07 | 2004-09-30 | Casio Comput Co Ltd | Sales data processing device and program |
JP2004289739A (en) * | 2003-03-25 | 2004-10-14 | Yamaha Corp | Parameter setting method for network apparatus, parameter setting apparatus and program |
JP2004326700A (en) * | 2003-04-28 | 2004-11-18 | Toshiba Tec Corp | Product sales data processing device |
Also Published As
Publication number | Publication date |
---|---|
JP2006302213A (en) | 2006-11-02 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP2011134159A (en) | Sales data processing system and program | |
CN107133828B (en) | Bill server and control method thereof, electronic bill system and terminal device | |
CN112561607B (en) | Data management system, data management device and storage medium | |
JP4517931B2 (en) | Sales data processing apparatus and program | |
JP4517932B2 (en) | Sales data processing apparatus and program | |
US8447655B2 (en) | Data processing apparatus | |
JP4517930B2 (en) | Sales data processing apparatus and program | |
JP5454031B2 (en) | Information processing apparatus, information processing method, and information processing program | |
JP6872065B2 (en) | Sales data processing equipment and programs | |
JP6754915B1 (en) | Receipt data management device and its program, and receipt data management method | |
JP2010157067A (en) | Device, method and program for managing document | |
JP5359151B2 (en) | Sales data processing apparatus and program | |
JP6930006B2 (en) | Receipt data management device and its program, and receipt data management method | |
JP2021152722A (en) | Privilege management device and control program therefor, privilege management method | |
JP7041221B2 (en) | Electronic receipt system | |
JP2015022349A (en) | Store server and program for store server | |
JP2014167830A (en) | Commercial transaction processor and receipt detail retrieval program | |
JP7229301B2 (en) | Product data processing device and program | |
JP3873572B2 (en) | Copy apparatus and computer-readable recording medium | |
JP2013030095A (en) | Commodity sales data processor and receipt details retrieval program | |
JP6936662B2 (en) | Inspection status acquisition device, inspection status acquisition method, and program | |
JP2004326591A (en) | Merchandise ordering device, control method, and program | |
JP2021131747A (en) | Information processor and control program for the same | |
JP6382389B2 (en) | Information processing apparatus and information processing program | |
JP2021182434A (en) | Information terminal and program therefor |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20080327 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20091130 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20100119 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20100317 |
|
TRDD | Decision of grant or rejection written | ||
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20100427 |
|
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20100510 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20130528 Year of fee payment: 3 |
|
R150 | Certificate of patent or registration of utility model |
Ref document number: 4517930 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20130528 Year of fee payment: 3 |