JP5532755B2 - Data processing apparatus, network system, and program - Google Patents

Data processing apparatus, network system, and program Download PDF

Info

Publication number
JP5532755B2
JP5532755B2 JP2009197610A JP2009197610A JP5532755B2 JP 5532755 B2 JP5532755 B2 JP 5532755B2 JP 2009197610 A JP2009197610 A JP 2009197610A JP 2009197610 A JP2009197610 A JP 2009197610A JP 5532755 B2 JP5532755 B2 JP 5532755B2
Authority
JP
Japan
Prior art keywords
response
data processing
communication
information
server device
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
Application number
JP2009197610A
Other languages
Japanese (ja)
Other versions
JP2011048713A (en
JP2011048713A5 (en
Inventor
正徳 国井
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.)
Casio Computer Co Ltd
Original Assignee
Casio Computer Co Ltd
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 Casio Computer Co Ltd filed Critical Casio Computer Co Ltd
Priority to JP2009197610A priority Critical patent/JP5532755B2/en
Publication of JP2011048713A publication Critical patent/JP2011048713A/en
Publication of JP2011048713A5 publication Critical patent/JP2011048713A5/en
Application granted granted Critical
Publication of JP5532755B2 publication Critical patent/JP5532755B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Cash Registers Or Receiving Machines (AREA)

Description

本発明は、データ処理装置、ネットワークシステム及びプログラムに関する。 The present invention relates to a data processing device , a network system, and a program.

従来、通信ネットワークを介してサーバ装置とデータ送受信を行うクライアント装置では、予め設定された時間を経過してもサーバ装置から応答がない場合にエラーと判定してセッションを終了するタイムアウト機能が設けられている。例えば、特許文献1には、複数のサーバ装置が存在する場合に、サーバ装置毎にタイムアウト時間を設定する情報処理端末が記載されている。また、特許文献2には、Webのタイムアウトをユーザに知らしめ、タイムアウト時間をユーザが変更できるようにしたクライアント端末が記載されている。   Conventionally, a client device that transmits and receives data to and from a server device via a communication network is provided with a time-out function that determines an error and terminates a session when no response is received from the server device even after a preset time has elapsed. ing. For example, Patent Document 1 describes an information processing terminal that sets a timeout time for each server device when there are a plurality of server devices. Patent Document 2 describes a client terminal that informs the user of a web timeout and allows the user to change the timeout period.

また、クライアント装置を通信ネットワークに接続するためのルータには、セキュリティを確保するため、予め設定した時間が経過するとサーバ装置との通信用ポートを閉じる動的フィルタリング機能が備えられている。   Also, a router for connecting a client device to a communication network has a dynamic filtering function for closing a communication port with a server device when a preset time has elapsed in order to ensure security.

特開2005−301913号公報JP 2005-301913 A 特開2003−141074号公報JP 2003-141074 A

ところで、ECR(Electronic Cash Resister)等の売上データ処理装置には、サーバ装置に対してPingコマンドによる確認パケットを送信し、サーバ装置からの応答時間をチェックする機能が設けられている。   By the way, a sales data processing device such as ECR (Electronic Cash Resister) is provided with a function of transmitting a confirmation packet by a Ping command to the server device and checking a response time from the server device.

Pingによる確認パケットを受信したサーバ装置は、通常すぐに応答を返す。そのため、売上データ処理装置の初期導入時のチェックでは、通信ネットワークの回線が正常であれば、ルータにおいて動的フィルタリング機能によりサーバ装置との通信用ポートが閉じられる前に応答を受信することができ、通信エラーとはならない。   The server device that has received the confirmation packet by Ping usually returns a response immediately. Therefore, in the check at the initial introduction of the sales data processing device, if the communication network line is normal, the response can be received before the communication port with the server device is closed by the dynamic filtering function in the router. No communication error will occur.

しかしながら、上述のチェックにおいて通信エラーとならなくても、実際の運用において売上データ処理装置とサーバ装置との間で通信を行うと、通信エラーとなることがあった。例えば、図1に示すように、売上データ処理装置に決済端末が接続され、サーバ装置(図1の情報センタサーバ)に決済サーバが接続され、決済端末と決済サーバとのデータ通信を売上データ処理装置及びサーバ装置を経由して行うような場合、サーバ装置と決済サーバとの間の通信時間の分だけ、サーバ装置からの応答時間が遅延することとなる。そうすると、ルータの設定によっては、サーバ装置との通信用ポートが開いている間にサーバ装置からの応答が返送されず、通信エラーが発生してしまうことがあった。   However, even if a communication error does not occur in the above check, a communication error may occur when communication is performed between the sales data processing device and the server device in actual operation. For example, as shown in FIG. 1, a payment terminal is connected to the sales data processing device, a payment server is connected to the server device (information center server in FIG. 1), and data communication between the payment terminal and the payment server is performed as sales data processing. When the processing is performed via the device and the server device, the response time from the server device is delayed by the communication time between the server device and the settlement server. Then, depending on the router setting, a response from the server device may not be returned while the communication port with the server device is open, and a communication error may occur.

本発明の課題は、初期導入時に、実際の運用時に想定されるサーバ装置からの応答時間に適応可能な通信環境であるか否かを確認できるようにすることである。 An object of the present invention, during initial introduction, is to be able to see whether it is adaptable communication environment the response time from the server device which is assumed when the actual operation.

上記課題を解決するため、請求項1に記載の発明は、通信ネットワークを介してサーバ装置とデータ送受信可能に接続されるデータ処理装置であって、前記サーバ装置と前記通信ネットワークを介してデータ送受信を行うための通信手段と、応答待ち時間を示す情報を含み、前記応答待ち時間の待機後に応答情報を送信することを前記サーバ装置に要求する要求情報を作成して前記通信手段により前記サーバ装置に送信する制御手段と、前記サーバ装置からの応答情報が所定時間内に前記通信手段により受信されたか否かを示す応答結果を出力する出力手段と、を備える。 In order to solve the above-described problem, the invention according to claim 1 is a data processing device connected to a server device via a communication network so as to be able to transmit and receive data, and transmits and receives data to and from the server device via the communication network. Communication information for performing the response, and information indicating the response waiting time, request information for requesting the server device to transmit the response information after waiting for the response waiting time is created, and the server device is configured by the communication means. And a control means for transmitting the response information , and an output means for outputting a response result indicating whether or not response information from the server device has been received by the communication means within a predetermined time.

本発明によれば、初期導入時に、実際の運用時に想定されるサーバ装置からの応答時間に適応可能な通信環境であるか否かを確認することが可能となる。 According to the present invention, during initial deployment, it is possible to confirm whether it is adaptable communication environment the response time from the server device which is assumed when the actual operation.

本発明の実施形態におけるネットワークシステムの全体構成例を示す図である。It is a figure which shows the example of whole structure of the network system in embodiment of this invention. 図1の売上データ処理装置の機能的構成を示すブロック図である。It is a block diagram which shows the functional structure of the sales data processing apparatus of FIG. 図1の情報センタサーバの機能的構成を示すブロック図である。It is a block diagram which shows the functional structure of the information center server of FIG. 図2のCPUにより実行されるネットワーク接続確認処理を示すフローチャートである。It is a flowchart which shows the network connection confirmation process performed by CPU of FIG. 図2のCPUにより実行される接続確認処理を示すフローチャートである。It is a flowchart which shows the connection confirmation process performed by CPU of FIG. 図2のCPUにより実行されるポート開き時間確認処理Aを示すフローチャートである。It is a flowchart which shows the port opening time confirmation process A performed by CPU of FIG. 図2の表示部に表示される応答WAIT時間入力画面の一例を示す図である。It is a figure which shows an example of the response WAIT time input screen displayed on the display part of FIG. 応答WAIT時間指定要求電文のデータ構造の一例を示す図である。It is a figure which shows an example of the data structure of a response WAIT time designation request message. 応答WAIT時間指定応答電文のデータ構造の一例を示す図である。It is a figure which shows an example of the data structure of a response WAIT time designation | designated response message. 図6のステップS207において出力される応答結果の一例を示す図である。It is a figure which shows an example of the response result output in step S207 of FIG. 図2のCPUにより実行されるポート開き時間確認処理Bを示すフローチャートである。It is a flowchart which shows the port opening time confirmation process B performed by CPU of FIG. 図11のステップS307において出力される応答結果の一例を示す図である。It is a figure which shows an example of the response result output in step S307 of FIG. 図3のCPUにおいて実行される電文応答処理を示すフローチャートである。It is a flowchart which shows the message | telegram response process performed in CPU of FIG.

以下、添付図面を参照して本発明に係る好適な実施形態を詳細に説明する。なお、本発明は、図示例に限定されるものではない。   Hereinafter, preferred embodiments of the present invention will be described in detail with reference to the accompanying drawings. The present invention is not limited to the illustrated example.

(ネットワークシステム100の構成)
図1は、本実施形態に係るネットワークシステム100の全体構成を示す図である。
ネットワークシステム100は、図1に示すように、決済端末5に接続された売上データ処理装置1と、決済サーバ4に接続された情報センタサーバ2と、Pingサーバ3と、を備えて構成されている。売上データ処理装置1は、通信ネットワークNを介して情報センタサーバ2及びPingサーバ3とデータ送受信可能に接続される。通信ネットワークNは、インターネット等の公衆回線である。売上データ処理装置1と通信ネットワークNとの間には、売上データ処理装置1を通信ネットワークNに接続するためのハブH及びルータRが設けられている。
なお、売上データ処理装置1の台数は特に限定されない。また、売上データ処理装置としては、キャッシュレジスタ,電子レジスタ,金銭登録機,POS(Point Of Sales)端末等が含まれる。
(Configuration of network system 100)
FIG. 1 is a diagram showing an overall configuration of a network system 100 according to the present embodiment.
As shown in FIG. 1, the network system 100 includes a sales data processing device 1 connected to a payment terminal 5, an information center server 2 connected to a payment server 4, and a Ping server 3. Yes. The sales data processing apparatus 1 is connected to the information center server 2 and the Ping server 3 through a communication network N so as to be able to transmit and receive data. The communication network N is a public line such as the Internet. Between the sales data processing apparatus 1 and the communication network N, a hub H and a router R for connecting the sales data processing apparatus 1 to the communication network N are provided.
The number of sales data processing devices 1 is not particularly limited. The sales data processing device includes a cash register, an electronic register, a cash register, a POS (Point Of Sales) terminal, and the like.

売上データ処理装置1は、顧客の購入商品の登録処理(購入商品の商品名称、売上個数、売上金額等の売上データ等の登録)を行い、売上データを情報センタサーバ2に送信する。また、売上データ処理装置1は決済端末5に接続されており、情報センタサーバ2に接続された決済サーバ4と決済端末5との間のデータ送受信を中継する。売上データ処理装置1と情報センタサーバ2との間は公衆回線である通信ネットワークNにより接続されているが、両者間の通信では顧客のクレジットカード情報や決済データ等の秘匿性の高い情報が送受信されるため、VPN(Virtual Private Network)等のトンネリングによる暗号化通信が行われる。   The sales data processing device 1 performs processing for registering the purchased product of the customer (registration of sales data such as the product name, the number of sales, and the sales amount of the purchased product), and transmits the sales data to the information center server 2. The sales data processing apparatus 1 is connected to the payment terminal 5 and relays data transmission and reception between the payment server 4 connected to the information center server 2 and the payment terminal 5. The sales data processing apparatus 1 and the information center server 2 are connected by a communication network N which is a public line, but highly confidential information such as customer credit card information and payment data is transmitted and received in the communication between the two. Therefore, encrypted communication by tunneling such as VPN (Virtual Private Network) is performed.

情報センタサーバ2は、各店舗に設置されている売上データ処理装置1を管理したり、売上データを集計したりするサーバ装置である。また、情報センタサーバ2は、決済サーバ4と専用線等により接続されており、売上データ処理装置1に接続された決済端末5と決済サーバ4とのデータ送受信を中継する。   The information center server 2 is a server device that manages the sales data processing device 1 installed in each store and totals sales data. The information center server 2 is connected to the payment server 4 through a dedicated line or the like, and relays data transmission / reception between the payment terminal 5 connected to the sales data processing apparatus 1 and the payment server 4.

Pingサーバ3は、売上データ処理装置1が通信ネットワークNを介してTCP/IPプロトコルのIPレベルで外部装置と通信可能か否かを確認するために設けられたサーバである。Pingサーバ3は、売上データ処理装置1からPingコマンドによる確認パケットを受信すると、応答パケットを作成し、売上データ処理装置1に送信する。   The Ping server 3 is a server provided for confirming whether the sales data processing apparatus 1 can communicate with an external apparatus at the IP level of the TCP / IP protocol via the communication network N. When the Ping server 3 receives the confirmation packet by the Ping command from the sales data processing apparatus 1, it creates a response packet and transmits it to the sales data processing apparatus 1.

決済サーバ4は、クレジット会社のサーバである。決済サーバ4は、決済端末5から送信される決済データ等に基づいて決済を行う。   The settlement server 4 is a credit company server. The settlement server 4 performs settlement based on the settlement data transmitted from the settlement terminal 5.

次に、ネットワークシステム100を構成する上記装置のうち、主要な装置の構成について詳細に説明する。   Next, the configuration of main devices among the above-described devices constituting the network system 100 will be described in detail.

(売上データ処理装置1の構成)
図2は、売上データ処理装置1の機能構成を示すブロック図である。図2に示すように、売上データ処理装置1は、CPU(Central Processing Unit)10、入力部11、表示部12、RAM(Random Access Memory)13、記憶部14、通信部15、印刷部16、ドロア17、接続部18、音声出力部19等を備えて構成され、各部はバス101を介して接続されている。
(Configuration of sales data processing apparatus 1)
FIG. 2 is a block diagram showing a functional configuration of the sales data processing apparatus 1. As shown in FIG. 2, the sales data processing apparatus 1 includes a CPU (Central Processing Unit) 10, an input unit 11, a display unit 12, a RAM (Random Access Memory) 13, a storage unit 14, a communication unit 15, a printing unit 16, A drawer 17, a connection unit 18, an audio output unit 19, and the like are provided, and each unit is connected via a bus 101.

CPU10は、記憶部14に記憶されているシステムプログラムを読み出し、RAM13のワークエリアに展開し、該システムプログラムに従って各部を制御する。また、CPU10は、記憶部14に記憶されている処理プログラム141を読み出してワークエリアに展開し、後述するネットワーク接続確認処理を始めとする各種処理を実行することで、
制御手段、第1制御手段として機能する。
The CPU 10 reads the system program stored in the storage unit 14, develops it in the work area of the RAM 13, and controls each unit according to the system program. Further, the CPU 10 reads out the processing program 141 stored in the storage unit 14 and develops it in the work area, and executes various processes including a network connection confirmation process described later.
It functions as a control means and a first control means.

入力部11は、電源キー、カーソルキー、文字、数字入力キー、クリアキー等の各種機能キー等を備えたレジ用のキーボードを含む構成である。入力部11は、オペレータによる各キーの操作信号をCPU10に出力する。また、入力部11は、商品に設けられたバーコードを読み取るバーコードリーダやバーコードスキャナ等を備える。   The input unit 11 includes a cash register keyboard having various function keys such as a power key, a cursor key, a character, a numeric input key, and a clear key. The input unit 11 outputs an operation signal for each key by the operator to the CPU 10. Further, the input unit 11 includes a barcode reader, a barcode scanner, or the like that reads a barcode provided on a product.

表示部12は、LCD(Liquid Crystal Display)や有機EL(Electro-Luminescence)ディスプレイ等により構成される。表示部12には、CPU10から入力される表示信号の指示に従って、各種画面を表示する。   The display unit 12 includes an LCD (Liquid Crystal Display), an organic EL (Electro-Luminescence) display, or the like. Various screens are displayed on the display unit 12 in accordance with instructions of display signals input from the CPU 10.

RAM13は、CPU10により記憶部14から読み出されたシステムプログラムや処理プログラム141、入力データ、出力データ、パラメータ等を一時的に格納するワークエリアを有する。   The RAM 13 has a work area for temporarily storing a system program and a processing program 141 read from the storage unit 14 by the CPU 10, input data, output data, parameters, and the like.

記憶部14は、半導体の不揮発性メモリ等により構成される。記憶部14は、CPU10で実行されるシステムプログラムや処理プログラム141、これらのプログラムの実行に必要なデータ等を記憶する。処理プログラム141には、後述するネットワーク接続確認処理を始めとする各種処理を実行するためのプログラムが含まれる。
これらのプログラムは、コンピュータ読み取り可能なプログラムコードの形態で記憶部14に格納されている。CPU10は、当該プログラムコードに従った動作を逐次実行する。
また、記憶部14は、CPU10が表示部12に各種画面表示を行わせるために必要な複数の画面表示情報を記憶している。
The storage unit 14 is configured by a semiconductor nonvolatile memory or the like. The storage unit 14 stores a system program executed by the CPU 10, a processing program 141, data necessary for executing these programs, and the like. The processing program 141 includes a program for executing various processes including a network connection confirmation process described later.
These programs are stored in the storage unit 14 in the form of computer-readable program codes. The CPU 10 sequentially executes operations according to the program code.
The storage unit 14 stores a plurality of pieces of screen display information necessary for the CPU 10 to cause the display unit 12 to display various screens.

通信部15は、TCP/IPプロトコルによる通信を行うためのネットワークカードを備え、通信ネットワークNに接続された外部装置とデータ送受信を行う。また、通信部15は、情報センタサーバ2とトンネリングによる暗号化通信を行うための暗号化装置を備える。通信部15は、通信手段、第1通信手段として機能する。   The communication unit 15 includes a network card for performing communication using the TCP / IP protocol, and performs data transmission / reception with an external device connected to the communication network N. The communication unit 15 includes an encryption device for performing encrypted communication with the information center server 2 by tunneling. The communication unit 15 functions as a communication unit and a first communication unit.

印刷部16は、例えば、サーマルプリンタ(感熱式プリンタ)であり、レシート用、ジャーナル用のロール紙(感熱紙)を有し、CPU10から入力される指示信号に従って、ロール紙に対して金額や売上データや情報センタサーバ2の応答結果等をプリントアウトする。   The printing unit 16 is, for example, a thermal printer (thermal printer), and has receipt and journal roll paper (thermal paper). According to an instruction signal input from the CPU 10, the amount of money and sales for the roll paper is obtained. Print out data and response results of the information center server 2.

ドロア17は、硬貨や紙幣等の現金を収納する引出しである。ドロア17は、CPU10の指示により、引出しが開けられる。   The drawer 17 is a drawer that stores cash such as coins and banknotes. The drawer 17 is opened by the instruction of the CPU 10.

接続部18は、図示しない決済端末5を売上データ処理装置1にシリアル接続するための接続端子を有し、決済端末5とのデータの送受信(入出力)を行う。   The connection unit 18 has a connection terminal for serially connecting the payment terminal 5 (not shown) to the sales data processing apparatus 1, and performs data transmission / reception (input / output) with the payment terminal 5.

音声出力部19は、D/A変換器、増幅器、スピーカ等を備えて構成される。音声出力部19は、CPU10から指示された音声データをD/A変換器によりアナログ信号に変換してスピーカにより音声出力する。   The audio output unit 19 includes a D / A converter, an amplifier, a speaker, and the like. The audio output unit 19 converts the audio data instructed from the CPU 10 into an analog signal by the D / A converter and outputs the audio through the speaker.

(情報センタサーバ2の構成)
図3は、情報センタサーバ2の機能的構成を示すブロック図である。図3に示すように、情報センタサーバ2は、CPU20、入力部21、表示部22、RAM23、記憶部24、通信部25等を備えて構成され、各部はバス26を介して接続されている。
(Configuration of information center server 2)
FIG. 3 is a block diagram showing a functional configuration of the information center server 2. As shown in FIG. 3, the information center server 2 includes a CPU 20, an input unit 21, a display unit 22, a RAM 23, a storage unit 24, a communication unit 25, and the like, and each unit is connected via a bus 26. .

CPU20は、記憶部24に記憶されているシステムプログラムを読み出し、RAM23のワークエリアに展開し、該システムプログラムに従って各部を制御する。また、CPU20は、記憶部24に記憶されている処理プログラム241を読み出してワークエリアに展開し、後述する電文応答処理を始めとする各種処理を実行することで、第2制御手段として機能する。   The CPU 20 reads the system program stored in the storage unit 24, develops it in the work area of the RAM 23, and controls each unit according to the system program. In addition, the CPU 20 functions as a second control unit by reading the processing program 241 stored in the storage unit 24, developing it in the work area, and executing various processes including a telegram response process described later.

入力部21は、カーソルキー、文字、数字入力キー及び各種機能キー等を備えたキーボードを含む構成である。入力部21は、操作者による各キーの押下入力を受け付けてその操作情報をCPU20に出力する。また、入力部21は、マウス等のポインティングデバイスを含み、位置入力を受け付けて操作情報としてCPU20に出力することとしてもよい。   The input unit 21 includes a keyboard having cursor keys, characters, numeric input keys, various function keys, and the like. The input unit 21 accepts pressing input of each key by the operator and outputs the operation information to the CPU 20. The input unit 21 may include a pointing device such as a mouse, and may receive a position input and output it to the CPU 20 as operation information.

表示部22は、LCD等により構成される。表示部22には、CPU20から入力される表示信号の指示に従って、各種画面を表示する。   The display unit 22 is configured by an LCD or the like. Various screens are displayed on the display unit 22 in accordance with instructions of display signals input from the CPU 20.

RAM23は、CPU20により記憶部24から読み出されたシステムプログラムや処理プログラム241、入力データ、出力データ、パラメータ等を一時的に格納するワークエリアを有する。   The RAM 23 has a work area for temporarily storing a system program and a processing program 241 read from the storage unit 24 by the CPU 20, input data, output data, parameters, and the like.

記憶部24は、HDD(Hard Disc Drive)等により構成される。記憶部24は、CPU20で実行されるシステムプログラムや処理プログラム241、これらのプログラムの実行に必要なデータ等を記憶する。処理プログラム241には、後述する電文応答処理を始めとする各種処理を実行するためのプログラムが含まれる。
これらのプログラムは、コンピュータ読み取り可能なプログラムコードの形態で記憶部24に格納されている。CPU20は、当該プログラムコードに従った動作を逐次実行する。
The storage unit 24 is configured by an HDD (Hard Disc Drive) or the like. The storage unit 24 stores a system program executed by the CPU 20, a processing program 241, data necessary for executing these programs, and the like. The processing program 241 includes a program for executing various processes including a message response process described later.
These programs are stored in the storage unit 24 in the form of computer-readable program codes. The CPU 20 sequentially executes operations according to the program code.

通信部25は、TCP/IPプロトコルによる通信を行うためのネットワークカードを備え、通信ネットワークNに接続された外部装置とデータ送受信を行う。また、通信部25は、売上データ処理装置1とトンネリングによる暗号化通信を行うための暗号化装置を備える。通信部25は、第2通信手段として機能する。   The communication unit 25 includes a network card for performing communication using the TCP / IP protocol, and performs data transmission / reception with an external device connected to the communication network N. The communication unit 25 includes an encryption device for performing encrypted communication with the sales data processing device 1 by tunneling. The communication unit 25 functions as a second communication unit.

(ネットワークシステム100の動作)
次に、ネットワークシステム100の動作について説明する。
図4は、売上データ処理装置1において実行されるネットワーク接続確認処理を示すフローチャートである。ネットワーク接続確認処理は、サービスマンによる売上データ処理装置1の初期導入時に、売上データ処理装置1の通信環境が情報センタサーバ2との間でデータ送受信が可能な環境であるか否かの確認を行うための処理である。ネットワーク接続確認処理は、入力部11によりネットワーク接続確認処理の実行が指示された際にCPU10と記憶部14に記憶されている処理プログラム141との協働により実行される。
(Operation of network system 100)
Next, the operation of the network system 100 will be described.
FIG. 4 is a flowchart showing network connection confirmation processing executed in the sales data processing apparatus 1. In the network connection confirmation process, when the sales data processing apparatus 1 is initially installed by a service person, it is confirmed whether or not the communication environment of the sales data processing apparatus 1 is an environment in which data transmission / reception with the information center server 2 is possible. It is a process for performing. The network connection confirmation process is executed in cooperation with the CPU 10 and the processing program 141 stored in the storage unit 14 when the input unit 11 instructs execution of the network connection confirmation process.

まず、CPU10が記憶部14に記憶されている画面表示情報を読み出し、読み出した画面表示情報に基づいて表示部12に表示信号を指示することで、接続確認メニュー画面が表示部12に表示される(ステップS1)。本実施形態において、接続確認メニューには、「1.接続確認」「2.ポート開き時間確認(手動)」「3.ポート開き時間確認(バッチ処理)」が含まれており、入力部11により番号を入力することで、所望の接続確認メニューを選択することができる。
「1.接続確認」が選択されると、接続確認処理(図5参照)が実行され、ハブHとのリンクアップ状態の確認、情報センタサーバ2と通信接続可能であるか否かの確認等が行われる。
「2.ポート開き時間確認(手動)」が選択されると、ポート開き時間確認処理A(図6参照)が実行され、ルータRにおける情報センタサーバ2との通信に使用される通信用ポートの開き時間の手動による確認が行われる。
「3.ポート開き時間確認(バッチ処理)」が選択されると、ポート開き時間確認処理B(図11参照)が実行され、ルータRにおける情報センタサーバ2との通信に使用される通信用ポートの開き時間の自動確認が行われる。
First, the CPU 10 reads the screen display information stored in the storage unit 14 and instructs the display unit 12 to display a display signal based on the read screen display information, whereby the connection confirmation menu screen is displayed on the display unit 12. (Step S1). In the present embodiment, the connection confirmation menu includes “1. Connection confirmation”, “2. Port opening time confirmation (manual)”, and “3. Port opening time confirmation (batch processing)”. By inputting the number, a desired connection confirmation menu can be selected.
When “1. Connection confirmation” is selected, a connection confirmation process (see FIG. 5) is executed, confirmation of the link up state with the hub H, confirmation of whether or not communication connection with the information center server 2 is possible, and the like. Is done.
When “2. Confirm port opening time (manual)” is selected, port opening time confirmation processing A (see FIG. 6) is executed, and the communication port used for communication with the information center server 2 in the router R is selected. A manual check of the opening time is performed.
When “3. Port open time confirmation (batch process)” is selected, port open time confirmation process B (see FIG. 11) is executed, and the communication port used for communication with the information center server 2 in the router R Automatic confirmation of the opening time of.

次いで、入力部11により「1.接続確認」が選択されたか否かが判断される(ステップS2)。「1.接続確認」が選択されたと判断されると(ステップS2;YES)、接続確認処理が実行される(ステップS3)。   Next, it is determined whether or not “1. Confirm connection” is selected by the input unit 11 (step S2). If it is determined that “1. Confirm connection” is selected (step S2; YES), a connection confirmation process is executed (step S3).

図5は、売上データ処理装置1において実行される接続確認処理を示すフローチャートである。接続確認処理は、CPU10と記憶部14に記憶されている処理プログラム141との協働により実行される。   FIG. 5 is a flowchart showing a connection confirmation process executed in the sales data processing apparatus 1. The connection confirmation process is executed in cooperation with the CPU 10 and the processing program 141 stored in the storage unit 14.

まず、ハブHとリンクアップ状態であるか(通信可能な状態であるか)否かの確認が行われる(ステップS101)。確認の結果、ハブHとリンクアップ状態であると判断されると(ステップS102;YES)、通信部15によりPingサーバ3に確認パケットが送信される(ステップS103)。
ステップS103においては、Pingコマンドによる確認パケット(ICMPパケット;echo request)が作成されてPingサーバ3に送信され、応答の要求が行われる。Pingサーバ3においては、確認パケットが受信されると、直ちに売上データ処理装置1に応答(echo reply)が送信される。売上データ処理装置1において、Pingサーバ3から正常に応答を受信できれば、通信ネットワークNの回線が正常であり、通信ネットワークNを介して外部装置との間で通信接続可能であることが確認できる。なお、売上データ処理装置1においては、確認パケット送信から応答受信までの時間がCPU10による内部クロックによりカウントされ、RAM13に記憶される。
First, it is confirmed whether or not the hub H is in a link-up state (communicable state) (step S101). As a result of the confirmation, if it is determined that the hub H is in a link-up state (step S102; YES), a confirmation packet is transmitted to the Ping server 3 by the communication unit 15 (step S103).
In step S103, a confirmation packet (ICMP packet; echo request) by the Ping command is created and transmitted to the Ping server 3, and a response request is made. When the confirmation packet is received, the ping server 3 immediately transmits an echo reply to the sales data processing apparatus 1. If the sales data processing apparatus 1 can normally receive a response from the Ping server 3, it can be confirmed that the line of the communication network N is normal and communication connection with an external apparatus is possible via the communication network N. In the sales data processing apparatus 1, the time from the confirmation packet transmission to the response reception is counted by the internal clock by the CPU 10 and stored in the RAM 13.

次いで、通信部15においてPingサーバ3から正常に応答が受信されたか否かが判断され(ステップS104)、Pingサーバ3から正常に応答が受信されたと判断されると(ステップS104;YES)、通信部15により情報センタサーバ2に確認パケットが送信される(ステップS105)。
ステップS105においては、通信部15においてPingコマンドによる確認パケットが作成され、通信部15の暗号化装置と情報センタサーバ2の通信部25の暗号化装置との間のトンネリングによる暗号化通信により確認パケット送信される。情報センタサーバ2の通信部25では、確認パケットが受信されると、直ちに応答が作成され、売上データ処理装置1に送信される(図13のステップT5、T6)。売上データ処理装置1において、情報センタサーバ2から正常に応答を受信できれば、情報センタサーバ2との間で通信接続が可能であることが確認できる。なお、売上データ処理装置1においては、確認パケット送信から応答受信までの時間がCPU10による内部クロックによりカウントされ、RAM13に記憶される。
Next, it is determined whether or not a response is normally received from the Ping server 3 in the communication unit 15 (step S104). If it is determined that a response is normally received from the Ping server 3 (step S104; YES), communication is performed. The confirmation packet is transmitted to the information center server 2 by the unit 15 (step S105).
In step S105, a confirmation packet by the Ping command is created in the communication unit 15, and the confirmation packet is obtained by encrypted communication by tunneling between the encryption device of the communication unit 15 and the encryption device of the communication unit 25 of the information center server 2. Sent. When the communication unit 25 of the information center server 2 receives the confirmation packet, a response is immediately created and transmitted to the sales data processing apparatus 1 (steps T5 and T6 in FIG. 13). If the sales data processing apparatus 1 can normally receive a response from the information center server 2, it can be confirmed that communication connection with the information center server 2 is possible. In the sales data processing apparatus 1, the time from the confirmation packet transmission to the response reception is counted by the internal clock by the CPU 10 and stored in the RAM 13.

確認パケットの送信後、所定時間が経過すると、接続確認結果の出力データが作成され、印刷部16等により出力され(ステップS106)、接続確認処理は終了する。接続確認結果は、具体的には、Pingサーバ3に確認パケットを送信してから応答が受信されるまでの応答時間、及び情報センタサーバ2との通信結果(情報センタサーバ2に確認パケットを送信してから応答が受信されるまでの応答時間、エラーが生じた場合には、エラーの内容等)が印刷部16によりレシート等の用紙上に印刷出力される。或いは、接続確認結果が表示部12に表示出力される。或いは、音声出力部19により音声出力される。なお、何れの方法により接続確認結果を出力するかは、ユーザの入力部11の操作により予め設定しておくことが可能である。   When a predetermined time elapses after the transmission of the confirmation packet, output data of a connection confirmation result is created and output by the printing unit 16 or the like (step S106), and the connection confirmation process ends. Specifically, the connection confirmation result is the response time from when the confirmation packet is transmitted to the Ping server 3 until the response is received, and the communication result with the information center server 2 (the confirmation packet is transmitted to the information center server 2). If an error occurs during the response time from when the response is received, the error content and the like are printed out on a sheet such as a receipt by the printing unit 16. Alternatively, the connection confirmation result is displayed on the display unit 12. Alternatively, the sound is output by the sound output unit 19. Note that it is possible to set in advance by the user's operation of the input unit 11 which method is used to output the connection confirmation result.

一方、ステップS102において、ハブHとリンクアップ状態ではないと判断された場合(ステップS102;NO)、又は、ステップS104においてPingサーバ3から正常に応答が受信されなかったと判断されると(ステップS104;NO)、回線異常である旨を示す接続確認結果が出力され(ステップS107)、接続確認処理は終了する。   On the other hand, if it is determined in step S102 that it is not in a link-up state with the hub H (step S102; NO), or if it is determined in step S104 that a response has not been normally received from the Ping server 3 (step S104). NO), a connection confirmation result indicating that the line is abnormal is output (step S107), and the connection confirmation process ends.

図4に戻り、ステップS2において「1.接続確認」が選択されていないと判断されると(ステップS2:N)、接続確認メニュー画面から「2.ポート開き時間確認(手動)」が選択されたか否かが判断される(ステップS4)。接続確認メニュー画面から「2.ポート開き時間確認(手動)」が選択されたと判断されると(ステップS4;YES)、ポート開き時間確認処理Aが実行される(ステップS5)。   Returning to FIG. 4, if it is determined in step S2 that “1. Confirm connection” is not selected (step S2: N), “2. Confirm port open time (manual)” is selected from the connection confirmation menu screen. It is determined whether or not (step S4). When it is determined that “2. Check port opening time (manual)” is selected from the connection confirmation menu screen (step S4; YES), port opening time confirmation processing A is executed (step S5).

ここで、上述のように、情報センタサーバ2は、接続確認処理において送信された確認パケットを受信すると直ちに売上データ処理装置1に応答を送信する。しかし、決済端末5と決済サーバ4との間のデータ送受信を売上データ処理装置1及び情報センタサーバ2で中継する場合には、情報センタサーバ2と決済サーバ4との間での通信時間だけ情報センタサーバ2からの応答に時間がかかる。そのため、接続確認処理で何ら問題がなくても、実際の運用においては、情報センタサーバ2から応答が返ってくる前にルータRのセキュリティ設定によって情報センタサーバ2との通信用ポートが閉じられてしまい、通信エラーとなってしまうことがある。
そこで、本実施形態では、従来からある「1.接続確認」の他、「2.ポート開き時間確認(手動)」、「3.ポート開き時間確認(バッチ処理)」の接続確認メニューが設けられている。
「2.ポート開き時間確認(手動)」又は「3.ポート開き時間確認(バッチ処理)」を選択することにより実行されるポート開き時間確認処理A又はポート開き時間確認処理Bは、情報センタサーバ2に対して、応答待ち時間(応答WAIT時間とよぶ)を手動又は自動により段階的に指定して応答要求を行い、情報センタサーバ2からの応答電文が通信部15により受信されたか否かの応答結果を出力する処理である。ポート開き時間確認処理A又はポート開き時間確認処理Bにより、ルータRにおける情報センタサーバ2との通信用ポートの開き時間を確認し、実際の運用に適応可能な通信環境が整っているかをチェックすることができる。
Here, as described above, the information center server 2 transmits a response to the sales data processing device 1 immediately after receiving the confirmation packet transmitted in the connection confirmation processing. However, when data transmission / reception between the settlement terminal 5 and the settlement server 4 is relayed by the sales data processing device 1 and the information center server 2, information is transmitted only for the communication time between the information center server 2 and the settlement server 4. It takes time to respond from the center server 2. Therefore, even if there is no problem in the connection confirmation processing, in actual operation, the communication port with the information center server 2 is closed by the security setting of the router R before the response is returned from the information center server 2. As a result, a communication error may occur.
Therefore, in this embodiment, in addition to the conventional “1. connection confirmation”, connection confirmation menus of “2. port opening time confirmation (manual)” and “3. port opening time confirmation (batch processing)” are provided. ing.
The port opening time confirmation processing A or the port opening time confirmation processing B executed by selecting “2. Port opening time confirmation (manual)” or “3. Port opening time confirmation (batch processing)” is the information center server 2, a response waiting time (referred to as a response WAIT time) is specified step by step manually or automatically, and a response message from the information center server 2 is received by the communication unit 15. This is a process for outputting a response result. The port opening time confirmation process A or the port opening time confirmation process B confirms the opening time of the communication port with the information center server 2 in the router R, and checks whether the communication environment that can be adapted to the actual operation is prepared. be able to.

図6は、売上データ処理装置1において実行されるポート開き時間確認処理Aを示すフローチャートである。ポート開き時間確認処理Aは、CPU10と記憶部14に記憶されている処理プログラム141との協働により実行される。   FIG. 6 is a flowchart showing the port opening time confirmation process A executed in the sales data processing apparatus 1. The port opening time confirmation process A is executed in cooperation with the CPU 10 and the processing program 141 stored in the storage unit 14.

まず、CPU10が記憶部14に記憶されている画面表示情報を読み出し、読み出した画面表示情報に基づいて表示部12に表示信号を指示することで、表示部12に応答WAIT時間入力画面121が表示される(ステップS201)。
図7に、応答WAIT時間入力画面121の一例を示す。図7に示すように、応答WAIT時間入力画面121には、応答WAIT時間入力欄121a、処理終了を指示するための「終了」キーが表示されている。
First, the CPU 10 reads the screen display information stored in the storage unit 14 and instructs the display unit 12 to display a display signal based on the read screen display information, whereby the response WAIT time input screen 121 is displayed on the display unit 12. (Step S201).
FIG. 7 shows an example of the response WAIT time input screen 121. As shown in FIG. 7, the response WAIT time input screen 121 displays a response WAIT time input field 121a and an “end” key for instructing the end of the process.

次いで、入力部11により終了キーが押下されたか否かが判断される(ステップS202)。入力部11により終了キーが押下されていないと判断されると(ステップS202;NO)、入力部11により応答WAIT時間入力欄121aから応答WAIT時間が入力されたか否かが判断される(ステップS203)。入力部11により応答WAIT時間入力欄121aから応答WAIT時間が入力されたと判断されると(ステップS203;YES)、入力された応答WAIT時間に基づいて、応答WAIT時間指定要求電文D1が作成される(ステップS204)。   Next, it is determined whether or not the end key is pressed by the input unit 11 (step S202). If it is determined by the input unit 11 that the end key has not been pressed (step S202; NO), it is determined whether or not the response WAIT time is input from the response WAIT time input field 121a by the input unit 11 (step S203). ). If it is determined by the input unit 11 that the response WAIT time has been input from the response WAIT time input field 121a (step S203; YES), a response WAIT time designation request message D1 is created based on the input response WAIT time. (Step S204).

図8は、応答WAIT時間指定要求電文D1のデータ構造の一例を示す図である。応答WAIT時間指定要求電文D1は、応答WAIT時間の待機後に応答電文を送信することを情報センタサーバ2に要求する電文である。図8に示すように、応答WAIT時間指定要求電文D1は、「電文共通ヘッダ部」と「データ部」により構成されている。電文共通ヘッダ部には、送信元IPアドレスやあて先IPアドレス、ポート番号等の、予め定められたヘッダ情報が格納される。データ部には、今回送信する電文が応答WAIT時間指定要求電文であることを示すコマンド、及び応答WAIT指定時間(秒)を示す数値が格納される。応答WAIT指定時間(秒)としては、入力部11により応答WAIT時間入力欄121aから入力された時間が格納される。   FIG. 8 is a diagram illustrating an example of the data structure of the response WAIT time designation request message D1. The response WAIT time designation request message D1 is a message that requests the information center server 2 to transmit a response message after waiting for the response WAIT time. As shown in FIG. 8, the response WAIT time designation request message D1 includes a “message common header portion” and a “data portion”. Predetermined header information such as a transmission source IP address, a destination IP address, a port number, and the like is stored in the message common header portion. The data part stores a command indicating that the message to be transmitted this time is a response WAIT time designation request message, and a numerical value indicating the response WAIT designation time (seconds). As the response WAIT designated time (seconds), the time input from the response WAIT time input field 121a by the input unit 11 is stored.

次いで、通信部15により情報センタサーバ2に対し、応答WAIT時間指定要求電文D1が送信される(ステップS205)。また、ステップS203で入力された応答WAIT時間に応じた所定時間(応答WAIT時間+α)が経過するまで、情報センタサーバ2からの応答WAIT時間指定応答電文D2(図9参照)の受信が待機される(ステップS206)。   Next, a response WAIT time designation request message D1 is transmitted from the communication unit 15 to the information center server 2 (step S205). Further, reception of a response WAIT time designation response message D2 (see FIG. 9) from the information center server 2 is waited until a predetermined time (response WAIT time + α) corresponding to the response WAIT time input in step S203 has elapsed. (Step S206).

図9は、応答WAIT時間指定応答電文D2のデータ構造の一例を示す図である。図9に示すように、応答WAIT時間指定応答電文D2は、「電文共通ヘッダ部」と「データ部」により構成されている。電文共通ヘッダ部には、送信元IPアドレスやあて先IPアドレス、ポート番号等の、予め定められたヘッダ情報が格納される。データ部には、今回送信する電文が応答WAIT時間指定応答電文であることを示すコマンド、情報センタサーバ2の状態を示すステータス、及び応答WAIT時間(情報センタサーバ2での待ち時間(秒))を示す数値が格納される。   FIG. 9 is a diagram illustrating an example of a data structure of the response WAIT time designation response message D2. As shown in FIG. 9, the response WAIT time designation response message D2 is composed of a “message common header part” and a “data part”. Predetermined header information such as a transmission source IP address, a destination IP address, a port number, and the like is stored in the message common header portion. The data portion includes a command indicating that the message to be transmitted this time is a response WAIT time designation response message, a status indicating the state of the information center server 2, and a response WAIT time (waiting time (seconds) in the information center server 2) Is stored.

応答WAIT時間指定要求電文D1を送信してから所定時間が経過すると、応答WAIT時間指定応答電文D2が通信部15により受信されたか否かを示す応答結果の出力データが作成され、印刷部16等により出力される(ステップS207)。   When a predetermined time has elapsed since the response WAIT time designation request message D1 has been transmitted, output data of a response result indicating whether or not the response WAIT time designation response message D2 has been received by the communication unit 15 is created, and the printing unit 16 or the like. (Step S207).

図10に、ステップS207における応答結果の出力の一例を示す。図10は、印刷部16によりレシート用紙に応答結果を印刷出力した場合の出力例を示すものである。図10に示すように、ステップS207において出力される応答結果は、「応答WAIT時間:1 OK」、「待ち時間:10 NG」のように、応答WAIT時間(秒)と、その応答WAIT時間を指定した場合に応答WAIT時間指定応答電文D2が受信できたか否かの結果を示す「OK」又は「NG」とにより構成される。応答結果は、図10に示すように印刷部16によりレシート等の用紙上に印刷出力される。或いは、表示部12に表示出力される。或いは、音声出力部19により音声出力される。なお、何れの方法により応答結果を出力するかは、入力部11の操作によりユーザが予め設定しておくことが可能である。応答結果を出力する際には、図10の出力例のように、情報センタサーバ2との通信に使用されるアプリケーションやネットワークアプリケーションのバージョン情報、売上データ処理装置1のIPアドレス、サブネットマスク、ゲートウェイ等の情報を併せて出力することとしてもよい。   FIG. 10 shows an example of the output of the response result in step S207. FIG. 10 shows an output example when the response result is printed out on the receipt paper by the printing unit 16. As shown in FIG. 10, the response result output in step S207 includes the response WAIT time (seconds) and its response WAIT time, such as “response WAIT time: 1 OK” and “waiting time: 10 NG”. When specified, it is composed of “OK” or “NG” indicating the result of whether or not the response WAIT time specification response message D2 has been received. The response result is printed out on a sheet such as a receipt by the printing unit 16 as shown in FIG. Alternatively, it is displayed on the display unit 12. Alternatively, the sound is output by the sound output unit 19. Note that the user can set in advance by which operation the response result is output by operating the input unit 11. When outputting the response result, as shown in the output example of FIG. 10, the version information of the application and network application used for communication with the information center server 2, the IP address, the subnet mask, and the gateway of the sales data processing device 1 Such information may be output together.

応答結果が出力されると、処理はステップS201に戻る。一方、ステップS202において、入力部11により終了キーが押下されたと判断されると(ステップS202;YES)、ポート開き時間確認処理Aは終了する。   When the response result is output, the process returns to step S201. On the other hand, when it is determined in step S202 that the end key has been pressed by the input unit 11 (step S202; YES), the port opening time confirmation process A ends.

図4に戻り、ステップS4において接続確認メニュー画面から「2.ポート開き時間確認(手動)」が選択されていないと判断された場合(ステップS4;NO)、即ち、「3.ポート開き時間確認(自動)」が選択された場合、ポート開き時間確認処理Bが実行される(ステップS6)。   Returning to FIG. 4, when it is determined in step S4 that “2. Check port opening time (manual)” is not selected from the connection confirmation menu screen (step S4; NO), that is, “3. Check port opening time”. If “automatic” is selected, the port opening time confirmation processing B is executed (step S6).

図11は、売上データ処理装置1において実行されるポート開き時間確認処理Bを示すフローチャートである。ポート開き時間確認処理Bは、CPU10と記憶部14に記憶されている処理プログラム141との協働により実行される。   FIG. 11 is a flowchart showing the port opening time confirmation process B executed in the sales data processing apparatus 1. The port opening time confirmation process B is executed in cooperation with the CPU 10 and the processing program 141 stored in the storage unit 14.

まず、変数nに0が格納されるとともに、変数Nに予め設定された秒数(ここでは、10とする)が格納される(ステップS301)。   First, 0 is stored in the variable n, and a predetermined number of seconds (here, 10) is stored in the variable N (step S301).

次いで、変数nが1インクリメントされ(ステップS302)、n>Nであるか否かが判断される(ステップS303)。n>Nではないと判断されると(ステップS303;NO)、n(秒)を応答WAIT時間として、応答WAIT時間指定要求電文D1(図8参照)が作成される(ステップS304)。   Next, the variable n is incremented by 1 (step S302), and it is determined whether n> N is satisfied (step S303). If it is determined that n> N is not satisfied (step S303; NO), a response WAIT time designation request message D1 (see FIG. 8) is created with n (seconds) as the response WAIT time (step S304).

次いで、通信部15により情報センタサーバ2に対し、応答WAIT時間指定要求電文D1が送信される(ステップS305)。また、応答WAIT時間nに応じて、所定時間(n+α)が経過するまで、情報センタサーバ2からの応答WAIT時間指定応答電文D2(図9参照)の受信が待機される(ステップS306)。   Next, the communication unit 15 transmits a response WAIT time designation request message D1 to the information center server 2 (step S305). Further, reception of a response WAIT time designation response message D2 (see FIG. 9) from the information center server 2 is waited until a predetermined time (n + α) elapses according to the response WAIT time n (step S306).

応答WAIT時間指定要求電文D1を送信してから所定時間(n+α)が経過すると、応答WAIT時間指定応答電文D2が通信部15により受信されたか否かを示す応答結果の出力データが作成され、印刷部16等により出力される(ステップS307)。   When a predetermined time (n + α) has elapsed since the response WAIT time designation request message D1 has been transmitted, output data of a response result indicating whether or not the response WAIT time designation response message D2 has been received by the communication unit 15 is created and printed. The data is output by the unit 16 or the like (step S307).

図12に、ステップS307における応答結果の出力の一例を示す。図12は、印刷部16によりレシート用紙に応答結果を印刷出力した場合の出力例を示すものである。図12に示すように、ステップS307において出力される応答結果は、「待ち時間:1 OK」又は「待ち時間:10 NG」のように、応答WAIT時間(秒)と、その応答WAIT時間を指定した場合に応答WAIT時間指定応答電文D2が受信できたか否かの結果を示す「OK」又は「NG」とにより構成される。応答結果は、図12に示すように印刷部16によりレシート等の用紙上に印刷出力される。或いは、表示部12に表示出力される。或いは、音声出力部19により音声出力される。なお、何れの方法により応答結果を出力するかは、入力部11の操作によりユーザが予め設定しておくことが可能である。応答結果を出力する際には、図12の出力例のように、情報センタサーバ2との通信に使用されるアプリケーションやネットワークアプリケーションのバージョン情報、売上データ処理装置1のIPアドレス、サブネットマスク、ゲートウェイ等の情報を併せて出力することとしてもよい。   FIG. 12 shows an example of the output of the response result in step S307. FIG. 12 shows an output example when the response result is printed out on the receipt paper by the printing unit 16. As shown in FIG. 12, the response result output in step S307 specifies the response WAIT time (seconds) and the response WAIT time, such as “waiting time: 1 OK” or “waiting time: 10 NG”. In this case, it is composed of “OK” or “NG” indicating the result of whether or not the response WAIT time designation response message D2 has been received. The response result is printed out on a sheet such as a receipt by the printing unit 16 as shown in FIG. Alternatively, it is displayed on the display unit 12. Alternatively, the sound is output by the sound output unit 19. Note that the user can set in advance by which operation the response result is output by operating the input unit 11. When outputting the response result, as shown in the output example of FIG. 12, the version information of the application and network application used for communication with the information center server 2, the IP address, the subnet mask, and the gateway of the sales data processing device 1 Such information may be output together.

応答結果が出力されると、処理はステップS302に戻る。一方、ステップS303において、n>Nであると判断されると(ステップS303;YES)、ポート開き時間確認処理Bは終了する。   When the response result is output, the process returns to step S302. On the other hand, if it is determined in step S303 that n> N (step S303; YES), the port opening time confirmation process B ends.

例えば、ポート開き時間確認処理Aによって図10に示す応答結果が出力された場合、又は、ポート開き時間確認処理Bによって図12に示す応答結果が出力された場合、ルータRは、情報センタサーバ2との通信のためのポートが4秒で閉じられるように設定されていることがわかる。そして、例えば、実際の運用時において、売上データ処理装置1と情報センタサーバ2との通信に10秒程度かかることが想定される場合、現状のルータRの設定では実際の運用時に情報センタサーバ2からの応答時間に適応できずに通信エラーとなることがわかる。そこで、このような場合、サービスマンは、ユーザに対し、予めルータRの設定を10秒+α以上に設定するように指示を行い、予めルータRの設定変更をさせることで、実際の運用時に通信エラーとなることを回避することができる。   For example, when the response result shown in FIG. 10 is output by the port opening time confirmation process A, or when the response result shown in FIG. 12 is output by the port opening time confirmation process B, the router R sends the information center server 2 It can be seen that the port for communication with is set to be closed in 4 seconds. For example, when it is assumed that communication between the sales data processing apparatus 1 and the information center server 2 takes about 10 seconds during actual operation, the information center server 2 is set during actual operation in the current setting of the router R. It can be seen that a communication error occurs without adapting to the response time from. Therefore, in such a case, the service person instructs the user to set the setting of the router R in advance to 10 seconds + α or more, and changes the setting of the router R in advance so that communication can be performed during actual operation. An error can be avoided.

次に、情報センタサーバ2における処理について説明する。
図13は、情報センタサーバ2において実行される電文応答処理を示すフローチャートである。電文応答処理は、通信部25により売上データ処理装置1から応答要求電文(確認パケット又は応答WAIT時間指定要求電文D1)が受信された際にCPU20と記憶部24に記憶されている処理プログラム241との協働により実行される。
Next, processing in the information center server 2 will be described.
FIG. 13 is a flowchart showing a telegram response process executed in the information center server 2. The electronic message response process includes a processing program 241 stored in the CPU 20 and the storage unit 24 when a response request message (confirmation packet or response WAIT time designation request message D1) is received from the sales data processing device 1 by the communication unit 25. It is executed by the cooperation.

まず、受信された電文が応答WAIT時間指定要求電文D1(図8参照)であるか否かが判断され、応答WAIT時間指定要求電文D1であると判断されると(ステップT1;YES)、応答WAIT時間指定要求電文D1で指定された時間だけ待機される(ステップT2)。次いで、応答WAIT時間指定応答電文D2(図9)が作成され(ステップT3)、作成された応答WAIT時間指定応答電文D2が通信部25により要求元の売上データ処理装置1に送信される(ステップT4)。そして、電文応答処理は終了する。   First, it is determined whether or not the received message is a response WAIT time designation request message D1 (see FIG. 8). If it is determined that the received message is a response WAIT time designation request message D1 (step T1; YES), a response is made. The system waits for the time designated by the WAIT time designation request message D1 (step T2). Next, a response WAIT time designation response message D2 (FIG. 9) is created (step T3), and the created response WAIT time designation response message D2 is transmitted by the communication unit 25 to the sales data processing apparatus 1 as the request source (step S3). T4). Then, the message response process ends.

一方、受信された電文が応答WAIT時間指定要求電文D1ではなく、Pingによる確認パケット(ICMPパケット)であると判断されると(ステップT1;NO)、直ちに応答(ICMPパケット)が作成され(ステップT5)、作成された確認パケットが通信部25によって売上データ処理装置に送信される(ステップT6)。そして、電文応答処理は終了する。   On the other hand, if it is determined that the received message is not a response WAIT time designation request message D1 but a confirmation packet (ICMP packet) by Ping (step T1; NO), a response (ICMP packet) is immediately created (step T5), the created confirmation packet is transmitted to the sales data processing device by the communication unit 25 (step T6). Then, the message response process ends.

以上説明したように、ネットワークシステム100によれば、売上データ処理装置1のCPU10は、予め定められた応答待ち時間の待機後に応答電文を送信することを情報センタサーバ2に要求する応答WAIT時間指定要求電文D1を作成して通信部15により情報センタサーバ2に送信し、情報センタサーバ2からの応答WAIT時間指定応答電文D2が所定時間内に通信部15により受信されたか否かを示す応答結果を印刷部16等により出力させる。   As described above, according to the network system 100, the CPU 10 of the sales data processing apparatus 1 specifies the response WAIT time for requesting the information center server 2 to transmit a response message after waiting for a predetermined response waiting time. A request message D1 is created and transmitted to the information center server 2 by the communication unit 15, and a response result indicating whether the response WAIT time designation response message D2 from the information center server 2 is received by the communication unit 15 within a predetermined time Is output by the printing unit 16 or the like.

従って、サービスマンやユーザは、応答結果を確認することで、売上データ処理装置1が接続される通信環境が実際の運用時に想定される情報センタサーバ2からの応答時間に適用可能な通信環境であるか否かを確認することが可能となる。また、実際の運用時に想定される情報センタサーバ2からの応答時間に適用可能な通信環境でない場合は、事前にルータRのポート開き時間の設定変更を行う等の対処を行うことで、実際の運用時の通信エラーを回避することが可能となる。   Accordingly, the service person or user confirms the response result, so that the communication environment to which the sales data processing apparatus 1 is connected can be applied to the response time from the information center server 2 assumed in actual operation. It is possible to confirm whether or not there is. If the communication environment is not applicable to the response time from the information center server 2 that is assumed during actual operation, it is necessary to take action such as changing the port opening time setting of the router R in advance. Communication errors during operation can be avoided.

また、ポート開き時間確認処理Aによれば、情報センタサーバ2の応答待ち時間は、入力部11により予め指定することができるので、サービスマン等が実際の運用時に想定した応答時間を効率的に指定して通信環境のチェックを行うことが可能となる。   Further, according to the port opening time confirmation process A, the response waiting time of the information center server 2 can be designated in advance by the input unit 11, so that the response time assumed by the service person or the like during actual operation can be efficiently obtained. It is possible to specify and check the communication environment.

また、ポート開き時間確認処理Bによれば、情報センタサーバ2の応答待ち時間は、予め定められているので、サービスマン等が待機時間を入力する操作を行うことなく、容易に通信環境のチェックを行うことが可能となる。   Further, according to the port opening time confirmation processing B, the response waiting time of the information center server 2 is determined in advance, so that it is possible to easily check the communication environment without performing an operation for inputting a waiting time by a service person or the like. Can be performed.

また、応答結果は、印刷部16、表示部12又は音声出力部19から出力できるので、応答結果を印刷物、表示部12における表示、又は音声により、容易に確認することができる。   In addition, since the response result can be output from the printing unit 16, the display unit 12, or the voice output unit 19, the response result can be easily confirmed by the printed matter, the display on the display unit 12, or the voice.

なお、上記実施形態における記述内容は、本発明に係るネットワークシステム100の好適な一例であり、これに限定されるものではない。
例えば、上記実施形態においては、情報センタサーバ2と通信ネットワークを介して接続される売上データ処理装置1に本発明を適用した場合を例にとり説明したが、これに限定されず、本発明はサーバ装置とデータ通信を行うデータ処理装置全般に適用可能である。
In addition, the description content in the said embodiment is a suitable example of the network system 100 which concerns on this invention, and is not limited to this.
For example, in the above embodiment, the case where the present invention is applied to the sales data processing apparatus 1 connected to the information center server 2 via the communication network has been described as an example. However, the present invention is not limited to this, and the present invention is not limited to this. The present invention can be applied to all data processing devices that perform data communication with devices.

その他、ネットワークシステム100を構成する各装置の細部構成及び細部動作に関しても、発明の趣旨を逸脱することのない範囲で適宜変更可能である。   In addition, the detailed configuration and detailed operation of each device constituting the network system 100 can be changed as appropriate without departing from the spirit of the invention.

100 ネットワークシステム
1 売上データ処理装置
10 CPU
11 入力部
12 表示部
13 RAM
14 記憶部
141 処理プログラム
15 通信部
16 印刷部
17 ドロア
18 接続部
19 音声出力部
101 バス
2 情報センタサーバ
20 CPU
21 入力部
22 表示部
23 RAM
24 記憶部
241 処理プログラム
25 通信部
26 バス
3 Pingサーバ
4 決済サーバ
5 決済端末
100 network system
1 Sales Data Processing Device 10 CPU
11 Input unit 12 Display unit 13 RAM
14 storage unit 141 processing program
15 Communication unit 16 Printing unit 17 Drawer 18 Connection unit 19 Audio output unit 101 Bus 2 Information center server 20 CPU
21 Input unit 22 Display unit 23 RAM
24 storage unit 241 processing program 25 communication unit 26 bus 3 ping server 4 payment server 5 payment terminal

Claims (7)

通信ネットワークを介してサーバ装置とデータ送受信可能に接続されるデータ処理装置であって、
前記サーバ装置と前記通信ネットワークを介してデータ送受信を行うための通信手段と、
応答待ち時間を示す情報を含み、前記応答待ち時間の待機後に応答情報を送信することを前記サーバ装置に要求する要求情報を作成して前記通信手段により前記サーバ装置に送信する制御手段と、
前記サーバ装置からの応答情報が所定時間内に前記通信手段により受信されたか否かを示す応答結果を出力する出力手段と、
を備えるデータ処理装置。
A data processing device connected to a server device via a communication network so that data can be transmitted and received,
A communication means for transmitting and receiving data to and from the server device via the communication network;
Control means including information indicating a response waiting time, creating request information for requesting the server apparatus to transmit response information after waiting for the response waiting time, and transmitting the request information to the server apparatus by the communication means;
Output means for outputting a response result indicating whether or not response information from the server device has been received by the communication means within a predetermined time;
A data processing apparatus comprising:
前記応答待ち時間を示す情報を入力するための入力手段を備え、
前記制御手段は、前記入力手段により入力された前記応答待ち時間を示す情報を含み、前記応答待ち時間の待機後に応答情報を送信することを前記サーバ装置に要求する要求情報を作成する請求項1に記載のデータ処理装置。
An input means for inputting information indicating the response waiting time;
2. The control unit includes information indicating the response waiting time input by the input unit, and creates request information for requesting the server device to transmit response information after waiting for the response waiting time. The data processing apparatus described in 1.
前記出力手段は、前記応答結果を用紙上に印刷出力する印刷手段である請求項1又は2に記載のデータ処理装置。   The data processing apparatus according to claim 1, wherein the output unit is a printing unit that prints out the response result on a sheet. 前記出力手段は、前記応答結果を表示出力する表示手段である請求項1又は2に記載のデータ処理装置。   The data processing apparatus according to claim 1, wherein the output unit is a display unit that displays and outputs the response result. 前記出力手段は、前記応答結果を音声出力する音声出力手段である請求項1又は2に記載のデータ処理装置。   The data processing apparatus according to claim 1, wherein the output unit is a voice output unit that outputs the response result as a voice. サーバ装置と、データ処理装置とが通信ネットワークを介してデータ送受信可能に接続されるネットワークシステムであって、
前記データ処理装置は、
前記サーバ装置と前記通信ネットワークを介してデータ送受信を行うための第1通信手段と、
応答待ち時間を示す情報を含み、前記応答待ち時間の待機後に応答情報を送信することを前記サーバ装置に要求する要求情報を作成して前記第1通信手段により前記サーバ装置に送信する第1制御手段と、
前記サーバ装置からの応答情報が所定時間内に前記第1通信手段により受信されたか否かを示す応答結果を出力する出力手段と、
を備え、
前記サーバ装置は、
通信ネットワークを介して前記データ処理装置とデータ送受信を行うための第2通信手段と、
前記第2通信手段により前記データ処理装置から受信された情報が前記応答待ち時間の待機後に応答情報を送信することを要求する要求情報であるか否かを判断し、前記要求情報であると判断した場合に、その要求情報において要求された待ち時間の待機後に、応答情報を作成して前記第2通信手段により前記データ処理装置に送信する第2制御手段と、
を備えるネットワークシステム。
A network system in which a server device and a data processing device are connected via a communication network so that data can be transmitted and received,
The data processing device includes:
First communication means for transmitting and receiving data to and from the server device via the communication network;
First control including information indicating a response waiting time, creating request information for requesting the server device to transmit response information after waiting for the response waiting time, and transmitting the request information to the server device by the first communication unit Means,
Output means for outputting a response result indicating whether or not response information from the server device has been received by the first communication means within a predetermined time;
With
The server device
Second communication means for transmitting and receiving data to and from the data processing device via a communication network;
It is determined whether information received from the data processing device by the second communication means is a request information that requests to transmit the response information after waiting before Ki応 answer latency is the request information A second control means for creating response information and transmitting the response information to the data processing device by the second communication means after waiting for the waiting time requested in the request information ,
A network system comprising:
通信ネットワークを介してサーバ装置に接続されるデータ処理装置に用いられるコンピュータを、
前記サーバ装置と前記通信ネットワークを介してデータ送受信を行うための通信手段、
応答待ち時間を示す情報を含み、前記応答待ち時間の待機後に応答情報を送信することを前記サーバ装置に要求する要求情報を作成して前記通信手段により前記サーバ装置に送信する制御手段、
前記サーバ装置からの応答情報が所定時間内に前記通信手段により受信されたか否かを示す応答結果を出力する出力手段、
として機能させるためのプログラム。
A computer used for a data processing device connected to a server device via a communication network,
A communication means for transmitting and receiving data to and from the server device via the communication network;
Control means including information indicating a response waiting time, creating request information for requesting the server device to transmit response information after waiting for the response waiting time, and transmitting the request information to the server device by the communication unit;
Output means for outputting a response result indicating whether or not response information from the server device has been received by the communication means within a predetermined time;
Program to function as.
JP2009197610A 2009-08-28 2009-08-28 Data processing apparatus, network system, and program Active JP5532755B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2009197610A JP5532755B2 (en) 2009-08-28 2009-08-28 Data processing apparatus, network system, and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2009197610A JP5532755B2 (en) 2009-08-28 2009-08-28 Data processing apparatus, network system, and program

Publications (3)

Publication Number Publication Date
JP2011048713A JP2011048713A (en) 2011-03-10
JP2011048713A5 JP2011048713A5 (en) 2012-08-16
JP5532755B2 true JP5532755B2 (en) 2014-06-25

Family

ID=43834940

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2009197610A Active JP5532755B2 (en) 2009-08-28 2009-08-28 Data processing apparatus, network system, and program

Country Status (1)

Country Link
JP (1) JP5532755B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6174623B2 (en) * 2013-03-01 2017-08-02 東芝テック株式会社 Sales data processing apparatus, program, and receipt information processing method
JP5739941B2 (en) 2013-03-01 2015-06-24 東芝テック株式会社 Sales data processing apparatus, program, and receipt information processing method

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH1051490A (en) * 1996-07-31 1998-02-20 Nippon Telegr & Teleph Corp <Ntt> Method and device for dummy answering
JP2005301913A (en) * 2004-04-15 2005-10-27 Sony Corp Communication system, information processing terminal and communication method
WO2007010593A1 (en) * 2005-07-15 2007-01-25 Fujitsu Limited Tcp session emulator

Also Published As

Publication number Publication date
JP2011048713A (en) 2011-03-10

Similar Documents

Publication Publication Date Title
US7460266B2 (en) Method of printing over a network
US8174713B2 (en) Image processing system with an information transmitting system, image processing device and data processing program therefor
JP5880401B2 (en) Communication apparatus and program
JP2007334411A (en) Control program and communication system
US20160286076A1 (en) Image forming apparatus
JP5532755B2 (en) Data processing apparatus, network system, and program
JP6380138B2 (en) Communication device
JP4038684B2 (en) Remote control system using Web and icons
JP6482284B2 (en) Information processing apparatus, policy management apparatus, security policy management method, computer program
JP2018032970A (en) Service providing system
JP2007268752A (en) Image forming device
CN114063940A (en) Image processing apparatus, control method, and non-transitory storage medium
JP2008269004A (en) Data processing apparatus, data processing method and computer program
JP2007090712A (en) Printing system
JP2007116668A (en) Authentication device, method and program
JP4548068B2 (en) Printing system
JP7404922B2 (en) Communication control device, communication control method, and program for communication control method
JP2014148063A (en) Image forming apparatus, and method for registering image forming apparatus
US12015745B2 (en) Image processing apparatus capable of shortening a waiting time in executing of cooperative processing in cooperation with a server, cooperative processing execution method, and cooperative processing execution program
CN115086383B (en) System, server device, and terminal device
JP7271997B2 (en) Information processing device and program
JP2024011761A (en) Data processing system, management device, relay device, managed device, data processing method, and data processing program
JP2005117321A (en) Apparatus and method for processing data and program
JP2016157334A (en) Printing system, printing output device, and authentication server
JP2024087489A (en) COMMUNICATION DEVICE, CONTROL METHOD, AND PROGRAM

Legal Events

Date Code Title Description
A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20120702

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20120702

RD02 Notification of acceptance of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7422

Effective date: 20120702

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20131129

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20140107

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20140227

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: 20140401

R150 Certificate of patent or registration of utility model

Ref document number: 5532755

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20140414