JP6168650B2 - Information processing system and information processing method - Google Patents

Information processing system and information processing method Download PDF

Info

Publication number
JP6168650B2
JP6168650B2 JP2013073798A JP2013073798A JP6168650B2 JP 6168650 B2 JP6168650 B2 JP 6168650B2 JP 2013073798 A JP2013073798 A JP 2013073798A JP 2013073798 A JP2013073798 A JP 2013073798A JP 6168650 B2 JP6168650 B2 JP 6168650B2
Authority
JP
Japan
Prior art keywords
communication
command
card
state
information processing
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
JP2013073798A
Other languages
Japanese (ja)
Other versions
JP2014199484A (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.)
Nidec Sankyo Corp
Original Assignee
Nidec Sankyo Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nidec Sankyo Corp filed Critical Nidec Sankyo Corp
Priority to JP2013073798A priority Critical patent/JP6168650B2/en
Publication of JP2014199484A publication Critical patent/JP2014199484A/en
Application granted granted Critical
Publication of JP6168650B2 publication Critical patent/JP6168650B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Computer And Data Communications (AREA)

Description

本発明は、アプリケーションプログラム(ソフトウェア)が有する複数のプロセスによる処理を実行する情報処理システム及び情報処理方法に関する。   The present invention relates to an information processing system and an information processing method for executing processing by a plurality of processes included in an application program (software).

アプリケーションプログラム(ソフトウェア)が有する複数のプロセスによる処理を実行する情報処理システムとして、例えば、従来から、金融機関のATMなどで使用されるカード状媒体処理システムが知られている。   As an information processing system that executes processing by a plurality of processes included in an application program (software), for example, conventionally, a card-like medium processing system used in an ATM of a financial institution is known.

このカード状媒体処理システムに用いられるカード状媒体処理装置は、カード状媒体に対して所定の処理を実行し又はカード状媒体を収納する複数のユニット(例えばカードリーダやカードスタック部など)と、複数のユニット間においてカード状媒体を搬送する搬送手段と、制御手段(メイン制御基板)と、を有しており、カード状媒体に対して所定の処理を実行するカードリーダだけでなく、カード状媒体発行機能を付加するために、多数のカード状媒体を重ねてストックしておくカードスタック(ホッパ)としても使用されている(特許文献1参照)。   A card-like medium processing apparatus used in the card-like medium processing system performs a predetermined process on the card-like medium or stores a plurality of units (for example, a card reader or a card stack unit) that stores the card-like medium; It has a conveying means for conveying a card-like medium between a plurality of units, and a control means (main control board), and it is not only a card reader that executes a predetermined process on the card-like medium, but also a card-like medium. In order to add a medium issuing function, it is also used as a card stack (hopper) in which a large number of card-like media are stacked and stocked (see Patent Document 1).

特開2008−052527号公報JP 2008-052527 A

さらに、このようなカード状媒体処理装置において、制御手段は、上位装置からプログラム実行コマンドを受信したとき、制御手段内のパラメータ記憶部に記憶されたパラメータを参照して、プロセスを実行する。   Further, in such a card-like medium processing apparatus, when the control means receives a program execution command from the host apparatus, the control means executes a process with reference to the parameters stored in the parameter storage unit in the control means.

図10に示すカード状媒体処理システムは、上位装置2とカード発行機3とが通信ライン4を通じて接続されている。上位装置2は、複数のプロセス1,2,3と、これら複数のプロセスがアクセス可能な排他権記録用共有メモリ10と、RS-232Cインターフェースと、を有している。プロセス1,2は機器制御用プロセスであり、プロセス1はカード発行機能を制御するプロセス、プロセス2はカード状媒体に対して所定の処理を実行するカードリーダを制御するプロセスである。プロセス3は状態監視用プロセスであり、機器制御用プロセスの実行動作における状態を監視している。各々のプロセス1,2,3は、アプリケーションプログラムと通信ミドルウェアを備えている。   In the card-like medium processing system shown in FIG. 10, the host device 2 and the card issuing machine 3 are connected through a communication line 4. The host device 2 includes a plurality of processes 1, 2, and 3, an exclusive right recording shared memory 10 accessible by the plurality of processes, and an RS-232C interface. Processes 1 and 2 are device control processes, process 1 is a process for controlling a card issuing function, and process 2 is a process for controlling a card reader that executes predetermined processing on a card-like medium. Process 3 is a state monitoring process, and monitors the state in the execution operation of the device control process. Each process 1, 2, and 3 includes an application program and communication middleware.

各プロセス1,2,3は、各々が独自かつ非同期に実行しており、互いに排他制御する機能を有している。すなわち、各プロセス1,2,3は、それぞれにアプリケーションプログラムや通信ミドルウェアや排他権記録用共有メモリ10にアクセスして情報処理を行い、排他権記録用共有メモリ10へのアクセスは、各プロセス1,2,3が取り決められた排他制御に従うことで競合が発生しないようにしている。例えば、機器制御用プロセス1は、排他制御によって、機器制御用プロセス2、状態監視用プロセス3からのアクセスが排他される。   Each of the processes 1, 2, and 3 is executed independently and asynchronously, and has a function of performing exclusive control on each other. That is, each of the processes 1, 2, and 3 accesses the application program, the communication middleware, and the exclusive right recording shared memory 10 to perform information processing, and the exclusive right recording shared memory 10 is accessed by each process 1. , 2 and 3 follow the exclusive control negotiated so that contention does not occur. For example, the device control process 1 is exclusively accessed by the device control process 2 and the state monitoring process 3 by exclusive control.

このような構成によれば、排他権記録用共有メモリ10をプロセス1,2に対して割り付け/解除するアタッチ/デタッチの動作時に、プロセス1,2の実行状態を管理するオペレーティングシステム(OS)のサービスを利用するが、実際にプロセス1,2間でデータの送受信をする時は、プロセス1,2のいずれか一方が送信データを排他権記録用共有メモリ10に書き込み、そのいずれか他方が排他権記録用共有メモリ10に書き込まれている送信データを読み出す。   According to such a configuration, the operating system (OS) that manages the execution state of the processes 1 and 2 at the time of the attach / detach operation that allocates / releases the exclusive right recording shared memory 10 to / from the processes 1 and 2. Service is used, but when data is actually sent and received between processes 1 and 2, either process 1 or 2 writes the transmission data to shared memory 10 for recording exclusive rights, and the other is exclusive. The transmission data written in the right recording shared memory 10 is read.

しかしながら、図10に示すように、上位装置2とカード発行機3(デバイス)とが通信ライン4により接続されている場合、デバイスとの基本通信機能を提供してデバイスを制御する既存の制御ソフトウェアの制約上、上位装置2が有する複数のプロセス(プロセス1,プロセス2,・・・)のうち、例えば、プロセス1がカード発行機3にアクセスして、プロセス1の有するカード発行制御用アプリケーションが実行されているときは、他のプロセス2,プロセス3はカード発行機3にアクセスすることができず、それぞれの有するアプリケーションを実行することができない。   However, as shown in FIG. 10, when the host device 2 and the card issuing machine 3 (device) are connected by the communication line 4, existing control software that provides a basic communication function with the device and controls the device Of the plurality of processes (process 1, process 2,...) Possessed by the host device 2, for example, the process 1 accesses the card issuing machine 3, and the card issuance control application possessed by the process 1 is When being executed, the other processes 2 and 3 cannot access the card issuing machine 3 and cannot execute the respective applications.

図11を参照して詳述すると、上位装置2は、まず、各機器制御プロセスを実行するためのプロセス排他権を取得して(ステップS1)、排他権の確認を行う(ステップS2)。ステップS2における排他権の確認は、排他権記録用共有メモリ10を参照することによって行うことができ、プロセス1以外の他のプロセスが排他権を取得している場合は、他のプロセスが終了するまでプロセス排他権を取得(維持)し続け、プロセス1の排他権が確認できて取得成功と判断された場合は、プロセス1のコマンドを発行して(ステップS3)、カード発行機3を動作させて、レスポンスを受信する(ステップS4)。その後、プロセス1の排他権を破棄して(ステップS5)、本サブルーチンを終了する。   More specifically with reference to FIG. 11, the host device 2 first acquires a process exclusive right for executing each device control process (step S1), and confirms the exclusive right (step S2). The confirmation of the exclusive right in step S2 can be performed by referring to the exclusive right recording shared memory 10, and when another process other than the process 1 has acquired the exclusive right, the other process ends. The process exclusive right is continuously acquired (maintained), and if the exclusive right of process 1 can be confirmed and it is determined that the acquisition is successful, the command of process 1 is issued (step S3), and the card issuing machine 3 is operated. The response is received (step S4). Thereafter, the exclusive right of process 1 is discarded (step S5), and this subroutine is terminated.

このため、複数のプロセスのうちどれを実行するかは、排他権取得の有無によって制約されており、1のプロセスが実行されてデバイスアクセスを行っているときは、他のプロセスを実行するためのデバイスアクセスをすることができないという問題点がある。   For this reason, which of the plurality of processes is executed is restricted by whether or not the exclusive right is acquired. When one process is executed and a device is accessed, the other process is executed. There is a problem that the device cannot be accessed.

また、このようなデバイスアクセスの制約から、1のプロセスが実行後に他のプロセスを実行する場合や、実行中のプロセスに割り込ませて他のプロセスを実行する場合は、実行中のプロセスの通信ポートを遮断して他のプロセスの通信ポートを開設する必要がある。このため、通信ポートの遮断/開設が頻発し、処理時間が多くかかってしまうという問題点がある。   Also, due to device access restrictions, when one process executes another process after execution, or when executing another process by interrupting the executing process, the communication port of the executing process It is necessary to open the communication port of other processes by blocking. For this reason, there is a problem that the communication port is frequently shut down / opened, and it takes a long processing time.

本発明は、このような点に鑑みてなされたものであり、その目的は、上位装置とデバイスとの間で通信を確立させて複数のプロセスを実行することが可能であるとともに、各プロセスの処理時間を短くすることが可能な情報処理システム及び情報処理方法置を提供することにある。   The present invention has been made in view of the above points, and an object of the present invention is to establish communication between a host device and a device and execute a plurality of processes. An object of the present invention is to provide an information processing system and an information processing method apparatus capable of shortening the processing time.

以上のような課題を解決するために、本発明は、以下のものを提供する。   In order to solve the above problems, the present invention provides the following.

(1) 上位装置と、前記上位装置からの指令に従って処理を実行するデバイスと、が接続された情報処理システムにおいて、前記上位装置は、所定の動作処理を行うための複数のアプリケーションプログラムが格納され、各アプリケーションプログラムに従って前記デバイスが動作する複数の機器制御プロセスと、前記上位装置と前記デバイスとの間で通信制御を行うためのアプリケーションプログラムが格納され、このアプリケーションプログラムに従って前記上位装置と前記デバイスとの間で通信を確立する通信制御プロセスと、を実行する機能を有し、前記デバイスは、前記上位装置との通信を介して各機器制御プロセスが有する所定の動作処理を実行するものであって、前記通信制御プロセスは、前記デバイスとの通信を確立した状態で、前記複数の機器制御プロセスとのプロセス間通信を行うことを特徴とする情報処理システム。 (1) In an information processing system in which a host device and a device that executes processing in accordance with a command from the host device are connected, the host device stores a plurality of application programs for performing predetermined operation processing. A plurality of device control processes in which the device operates according to each application program, and an application program for performing communication control between the host device and the device, and the host device and the device according to the application program has a function of executing a communication control process for establishing communications between said device is for executing a predetermined operation process with each device control process via the communication with the host system The communication control process establishes communication with the device. And performing inter-process communication with the plurality of device control processes .

本発明によれば、複数の機器制御プロセスと通信制御プロセスとを実行する機能を有する上位装置がデバイスとの通信を確立した状態で、各機器制御プロセスが有する所定の動作処理をデバイスが実行することができることから、通信ポートの遮断/開設を逐一行う必要がなく、結果的に各機器制御プロセスの処理時間を短くすることができる。   According to the present invention, a device executes a predetermined operation process of each device control process in a state where a host device having a function of executing a plurality of device control processes and a communication control process has established communication with the device. Therefore, it is not necessary to block / open the communication port one by one, and as a result, the processing time of each device control process can be shortened.

(2) 前記上位装置は、前記デバイスの状態を監視するための状態監視用アプリケーションプログラムが格納され、この状態監視用アプリケーションプログラムに従って前記デバイスの状態を監視する状態監視プロセスを実行する機能を有するものであって、前記通信制御プロセスは、前記デバイスとの通信を確立した状態で、前記状態監視プロセスとのプロセス間通信を行い、前記状態監視プロセスと前記複数の機器制御プロセスの各々とを交互に実行することを特徴とする情報処理システム。 (2) the host system, the state monitoring application program for monitoring the status of the device is stored, which has a function of executing a state monitoring process to monitor the state of the device in accordance with the status monitoring application program The communication control process performs inter-process communication with the state monitoring process in a state where communication with the device is established , and alternately performs the state monitoring process and each of the plurality of device control processes. An information processing system characterized by executing.

本発明によれば、デバイスの状態を監視する状態監視プロセスと複数の機器制御プロセスの各々とを交互に実行することから、いつでもデバイスの状態を把握することができるとともに、通信ポートの遮断/開設を逐一行うことなくデバイスの状態を監視することができることから、デバイスの状態をタイムラグなく把握することができる。   According to the present invention, since the state monitoring process for monitoring the state of the device and each of the plurality of device control processes are alternately executed, the state of the device can be grasped at any time, and the communication port is blocked / opened. Since it is possible to monitor the state of the device without performing each step one by one, it is possible to grasp the state of the device without time lag.

(3) 通信制御プロセスは、状態監視プロセスが発行する状態通知コマンドと複数の機器制御プロセスの各々が発行する動作コマンドとを交互にデバイスに送信することを特徴とする情報処理システム。   (3) The information processing system, wherein the communication control process alternately transmits a status notification command issued by the status monitoring process and an operation command issued by each of the plurality of device control processes to the device.

本発明によれば、状態通知コマンドと動作コマンドとを交互に通信制御プロセスによってデバイスに送信することから、いつでもデバイスの状態を把握することができるとともに、通信ポートの遮断/開設を逐一行うことなくデバイスの状態を監視することができることから、デバイスの状態をタイムラグなく把握することができる。   According to the present invention, since the status notification command and the operation command are alternately transmitted to the device by the communication control process, the device status can be grasped at any time, and the communication port is not blocked / opened one by one. Since the state of the device can be monitored, the state of the device can be grasped without time lag.

(4) 前記上位装置は、前記状態通知コマンドを格納する状態通知用FIFOバッファと前記動作コマンドを格納する機器制御用FIFOバッファとを備えていることを特徴とする情報処理システム。   (4) The information processing system, wherein the host device includes a status notification FIFO buffer for storing the status notification command and a device control FIFO buffer for storing the operation command.

本発明によれば、各FIFOバッファに格納されたコマンドの処理により、いつでもデバイスの状態を把握することができるとともに、通信ポートの遮断/開設を逐一行うことなくデバイスの状態を監視することができることから、デバイスの状態をタイムラグなく把握することができる。   According to the present invention, it is possible to grasp the state of the device at any time by processing the command stored in each FIFO buffer, and to monitor the state of the device without sequentially shutting down / opening the communication port. Therefore, it is possible to grasp the state of the device without time lag.

(5) 通信は、RS−232C方式であることを特徴とする情報処理システム。   (5) An information processing system characterized in that communication is an RS-232C system.

本発明によれば、複数のプロセスからのアクセスには対応していないRS−232C方式の通信回線であっても、各機器制御プロセスを通信制御プロセスで集約して、各機器制御プロセスが有する所定の動作処理をデバイスが実行することから、通信ポートの遮断/開設を逐一行う必要がなく、結果的に各機器制御プロセスの処理時間を短くすることができる。   According to the present invention, even in the case of an RS-232C communication line that does not support access from a plurality of processes, the device control processes are aggregated by the communication control process, and each device control process has a predetermined Since the device executes the above operation processing, it is not necessary to block / open the communication port one by one, and as a result, the processing time of each device control process can be shortened.

(6) 上位装置と前記上位装置からの指令に従って処理を実行するデバイスとの通信を介して所定の機器制御を実行する情報処理方法であって、前記上位装置と前記デバイスとの間で通信制御を行うためのアプリケーションプログラムに従って前記上位装置と前記デバイスとの間で通信を確立する通信制御プロセスを前記上位装置に実行させ、所定の動作処理を行うための各アプリケーションプログラムに従って前記デバイスを動作する機器制御プロセスを順に前記上位装置に実行させるものであって、前記通信制御プロセスは、前記デバイスとの通信を確立した状態で、前記複数の機器制御プロセスとのプロセス間通信を行うことを特徴とする情報処理方法。 (6) through the communication with the device for executing processing according to the instruction of the host device from the host device An information processing method for executing predetermined device control, communication control between said upper Device equipment for operating the device the host system and a communication control process of establishing communication with the device is executed on the host system, in accordance with each application program for performing a predetermined operation process according to an application program for It is one to execute the control process sequentially to the host system, the communication control process, while establishing communication with the device, and performs inter-process communication with the plurality of device control process Information processing method.

本発明によれば、通信制御プロセスを実行して上位装置とデバイスとの通信を確立した状態で、各機器制御プロセスが有する所定の機器制御プロセスを実行することができることから、通信ポートの遮断/開設を逐一行う必要がなく、結果的に各機器制御プロセスの処理時間を短くすることができる。   According to the present invention, since a predetermined device control process included in each device control process can be executed in a state in which communication between the host device and the device is established by executing the communication control process, It is not necessary to open each one step by step, and as a result, the processing time of each device control process can be shortened.

(7) 前記通信制御プロセスは、前記デバイスの状態を監視するための状態監視用アプリケーションプログラムに従って前記デバイスの状態を監視する状態監視プロセスを、前記デバイスとの通信を確立した状態で、前記状態監視プロセスとのプロセス間通信を行い、前記状態監視プロセスと前記複数の機器制御プロセスの各々とを交互に実行させることを特徴とする情報処理方法。 (7) The communication control process, the state monitoring process to monitor the state of the device according to the state monitoring the application program for monitoring the status of the device, while establishing communication with the device, the status monitoring the information processing method characterized by perform interprocess communication with a process to execute the each of the plurality of device control process and the state monitoring process alternately.

本発明によれば、デバイスの状態を監視する状態監視プロセスは、機器制御プロセスに優先して実行することから、いつでもデバイスの状態を把握することができるとともに、通信ポートの遮断/開設を逐一行うことなくデバイスの状態を監視することができることから、デバイスの状態をタイムラグなく把握することができる。   According to the present invention, the status monitoring process for monitoring the status of the device is executed in preference to the device control process, so that the status of the device can be grasped at any time and the communication port is blocked / opened one by one. Since the device status can be monitored without any problem, the device status can be grasped without time lag.

(8) 通信制御プロセスは、状態監視プロセスが発行する状態通知コマンドと複数の機器制御プロセスの各々が発行する動作コマンドとを交互にデバイスに送信することを特徴とする情報処理方法。   (8) An information processing method, wherein the communication control process alternately transmits a status notification command issued by the status monitoring process and an operation command issued by each of the plurality of device control processes to the device.

本発明によれば、状態通知コマンドと動作コマンドとを交互に通信制御プロセスによってデバイスに送信することから、いつでもデバイスの状態を把握することができるとともに、通信ポートの遮断/開設を逐一行うことなくデバイスの状態を監視することができることから、デバイスの状態をタイムラグなく把握することができる。   According to the present invention, since the status notification command and the operation command are alternately transmitted to the device by the communication control process, the device status can be grasped at any time, and the communication port is not blocked / opened one by one. Since the state of the device can be monitored, the state of the device can be grasped without time lag.

(9) 前記上位装置は、前記状態通知コマンドを格納する状態通知用FIFOバッファと前記動作コマンドを格納する機器制御用FIFOバッファとを備えていることを特徴とする情報処理方法。   (9) The information processing method, wherein the host device includes a status notification FIFO buffer for storing the status notification command and a device control FIFO buffer for storing the operation command.

本発明によれば、各FIFOバッファに格納されたコマンドの処理により、いつでもデバイスの状態を把握することができるとともに、通信ポートの遮断/開設を逐一行うことなくデバイスの状態を監視することができることから、デバイスの状態をタイムラグなく把握することができる。   According to the present invention, it is possible to grasp the state of the device at any time by processing the command stored in each FIFO buffer, and to monitor the state of the device without sequentially shutting down / opening the communication port. Therefore, it is possible to grasp the state of the device without time lag.

本発明に係る情報処理システム及び情報処理方法は、上位装置の複数の機器制御プロセスが通信制御プロセスによってデバイスとの通信を確立していることから、各機器制御プロセスを実行するたびに通信の遮断/開設を繰り返す必要がないため、各機器制御プロセスの処理時間を短くすることができる。   In the information processing system and the information processing method according to the present invention, since a plurality of device control processes of the host device establish communication with a device through the communication control process, communication is interrupted every time each device control process is executed. / Because it is not necessary to repeat the establishment, the processing time of each device control process can be shortened.

また、本発明に係る情報処理システム及び情報処理方法は、状態監視プロセスが発行する状態通知コマンドと複数の機器制御プロセスの各々が発行する動作コマンドとを並列に処理し、命令電文を交互にデバイスに送信することから、いつでもデバイスの状態を把握することができるとともに、通信ポートの遮断/開設を逐一行うことなくデバイスの状態を監視することができることから、デバイスの状態をタイムラグなく把握することができる。   In addition, the information processing system and the information processing method according to the present invention process in parallel the status notification command issued by the status monitoring process and the operation command issued by each of the plurality of device control processes, and alternately generate command messages. Because it is possible to grasp the device status at any time and monitor the device status without shutting down / opening the communication port one by one, it is possible to grasp the device status without time lag. it can.

本発明の原理構成を示すブロック図である。It is a block diagram which shows the principle structure of this invention. 本発明の実施の形態に係る情報処理方法を示すフローチャートである。It is a flowchart which shows the information processing method which concerns on embodiment of this invention. 本発明の実施の形態に係る情報処理方法を示すフローチャートである。It is a flowchart which shows the information processing method which concerns on embodiment of this invention. 本発明の実施の形態に係る情報処理システムのハードウェア構成図である。It is a hardware block diagram of the information processing system which concerns on embodiment of this invention. 本発明の実施の形態に係る情報処理システムのプロセス間の関係を示す概略図である。It is the schematic which shows the relationship between the processes of the information processing system which concerns on embodiment of this invention. 本発明の実施の形態に係る情報処理方法を示すフローチャートである。It is a flowchart which shows the information processing method which concerns on embodiment of this invention. 本発明の実施の形態に係る情報処理方法を示すフローチャートである。It is a flowchart which shows the information processing method which concerns on embodiment of this invention. 本発明の実施の形態に係る情報処理方法を示すフローチャートである。It is a flowchart which shows the information processing method which concerns on embodiment of this invention. 本発明の実施の形態に係る情報処理方法を示す時間状態図である。It is a time state figure showing the information processing method concerning an embodiment of the invention. 従来の情報処理システムのソフトウェア構成図である。It is a software block diagram of the conventional information processing system. 従来の情報処理方法を示すフローチャートである。It is a flowchart which shows the conventional information processing method.

以下、本発明を実施するための最良の形態について、図面を参照しながら説明する。   The best mode for carrying out the present invention will be described below with reference to the drawings.

[原理構成]
本発明の原理構成について、図1に基づいて説明する。
[Principle configuration]
The principle configuration of the present invention will be described with reference to FIG.

図1に示す情報処理システム1の上位装置2は、機器制御用コマンド発行プロセス群として機器制御プロセスPC1,PC2,・・・を実行する機能を有し、状態監視用コマンド発行プロセス群として状態監視プロセスPCWを実行する機能を有し、さらに、これら機器制御用コマンド発行プロセス群及び状態監視用コマンド発行プロセス群との間でコマンドの送信とレスポンスの受信を行う通信制御プロセスPを実行する機能を有している。 The host device 2 of the information processing system 1 shown in FIG. 1 has a function of executing device control processes P C1 , P C2 ,... As a device control command issuing process group, and as a state monitoring command issuing process group. has the ability to perform status monitoring process P CW, further, the communication control process P S for transmitting and receiving the response command between these device control command issue process group and condition monitoring commands issued process group Has the function to execute.

通信制御プロセスPは、カード状媒体処理装置としてのカード発行機3との間で情報のやりとりを制御するものであり、アプリケーションプログラムを実体処理する機器制御用スレッドと、状態監視用スレッドと、を形成している。機器制御用スレッドは機器制御用FIFOバッファを備え、状態監視用スレッドは状態通知用FIFOバッファを備えている。 Communication control process P S is for controlling the exchange of information with the card issuing machine 3 as a card-shaped medium processing apparatus, the device control thread that entity processing application program, and the thread status monitoring, Is forming. The device control thread includes a device control FIFO buffer, and the state monitoring thread includes a state notification FIFO buffer.

排他権記録用共有メモリ10は、割込み処理は必要とせず、機器制御用スレッドと状態監視スレッドとの2つのスレッドを切り換える処理である。換言すれば、複数のスレッド或いは複数のプロセスの優先順位を設定し制御するというよりは、機器制御用スレッドと状態監視用スレッドとを単に切り替えるものとして機能している。   The exclusive right recording shared memory 10 is a process of switching between two threads, ie, a device control thread and a state monitoring thread, without requiring an interrupt process. In other words, rather than setting and controlling the priorities of multiple threads or multiple processes, it functions as simply switching between a device control thread and a state monitoring thread.

なお、プロセスは、実行中のプログラムの1つのインスタンスであり、独立した動作空間(利用者空間)を持つプロセスという実行単位で動作し、一般に複数のプログラムを平行して動作させるため、プロセスという実行単位が同時に複数存在できるようにしている。このため、プロセスは、他のプロセス間とのデータのやり取りが不可能な構造である。一方、スレッドは、プログラム内の単一の実行経路であり、使用可能なスレッドにタイム・スライスを割り振るオペレーティング・システム・スケジューラの制御下で、1つのプロセス内で順次に実行されることから、他のスレッド間とのデータのやり取りが可能な構造である。各スレッドが一つのプロセスに関連している必要があるため、マルチスレッディングである場合には、各プロセスが、同じアドレス空間とスタック領域とを共有する複数のスレッドを含むようにすることができる。   Note that a process is an instance of a program being executed, operates in an execution unit called a process having an independent operation space (user space), and generally executes a plurality of programs in parallel. Multiple units can exist at the same time. Therefore, the process has a structure in which data cannot be exchanged with other processes. A thread, on the other hand, is a single execution path within a program that runs sequentially within a process under the control of the operating system scheduler that allocates time slices to available threads. It is a structure that can exchange data between threads. Since each thread needs to be associated with one process, in the case of multithreading, each process can include multiple threads that share the same address space and stack area.

図2は、原理構成に示す機器制御用スレッドと排他権記録用共有メモリと通信制御部との間における動作手順である。     FIG. 2 shows an operation procedure among the device control thread, the exclusive right recording shared memory, and the communication control unit shown in the principle configuration.

上位装置2は、まず、機器制御用電文変換部における未実行の命令電文の有無を確認し(ステップS301)、その有無を判断する(ステップS302)。ここで、命令電文無しと判定した場合は命令電文が来るまで処理を繰り返す一方、命令電文有りと判定した場合は、スレッド排他権を取得(維持)し続け(ステップS303)、スレッド排他権が確認できて取得成功と判断された場合は(ステップS304)、待機中の命令電文を送信する(ステップS305)。待機中の命令電文を送信してレスポンス応答を受信すると(ステップS306)、スレッド排他権を破棄して(ステップS307)、本サブルーチンを終了する。なお、状態監視用スレッドにてスレッド排他権の取得中である場合は、ステップS303及びS304の処理を繰り返す。   The host device 2 first checks whether there is an unexecuted command message in the device control message converter (step S301), and determines whether it is present (step S302). If it is determined that there is no instruction message, the process is repeated until an instruction message arrives. On the other hand, if it is determined that there is an instruction message, the thread exclusive right is continuously acquired (maintained) (step S303), and the thread exclusive right is confirmed. If it is determined that the acquisition is successful (step S304), a waiting command message is transmitted (step S305). When a waiting instruction message is transmitted and a response response is received (step S306), the thread exclusive right is discarded (step S307), and this subroutine is terminated. If the thread for exclusive use is being acquired by the state monitoring thread, the processes in steps S303 and S304 are repeated.

次に、図3は、原理構成に示す状態監視用スレッドと排他権記録用共有メモリ10と通信制御部11との間における動作手順である。   Next, FIG. 3 shows an operation procedure among the state monitoring thread, the exclusive right recording shared memory 10 and the communication control unit 11 shown in the principle configuration.

上位装置2は、まず、状態監視用電文変換部における未実行の命令電文の有無を確認し(ステップS401)、その有無を判断する(ステップS402)。ここで、命令電文無しと判定した場合は命令電文が来るまで処理を繰り返す一方、命令電文有りと判定した場合は、スレッド排他権を取得(維持)し続け(ステップS403)、スレッド排他権が確認できて取得成功と判断された場合は(ステップS404)、待機中の命令電文を送信する(ステップS405)。待機中の命令電文を送信してレスポンス応答を受信すると(ステップS406)、スレッド排他権を破棄して(ステップS407)、本サブルーチンを終了する。なお、状態監視用スレッドにてスレッド排他権の取得中である場合は、ステップS403及びS404の処理を繰り返す。   First, the host device 2 confirms the presence or absence of an unexecuted command message in the status monitoring message conversion unit (step S401), and determines the presence or absence (step S402). If it is determined that there is no instruction message, the process is repeated until an instruction message arrives. On the other hand, if it is determined that there is an instruction message, the thread exclusive right is continuously acquired (maintained) (step S403), and the thread exclusive right is confirmed. If it is determined that the acquisition is successful (step S404), a waiting command message is transmitted (step S405). When a waiting command message is transmitted and a response response is received (step S406), the thread exclusive right is discarded (step S407), and this subroutine is terminated. If the thread for exclusive use is being acquired by the state monitoring thread, the processes in steps S403 and S404 are repeated.

[ハードウェア構成]
図4は、本発明の実施の形態に係る情報処理システムのハードウェア構成図である。
[Hardware configuration]
FIG. 4 is a hardware configuration diagram of the information processing system according to the embodiment of the present invention.

情報処理システム1は、下位に接続される各種のデバイスを制御する上位装置2と、上位装置2によって制御され各種の機能を実現するデバイスとしてのカード発行機3と、がRS−232Cでの通信を行う通信ライン4を通じて接続されている。   In the information processing system 1, a host device 2 that controls various devices connected to a lower level, and a card issuing machine 3 as a device that is controlled by the host device 2 and realizes various functions, communicate with each other via RS-232C. Are connected through a communication line 4 for performing

上位装置2は、BUS(バス)を介して各種の機器が接続されており、CPU21と、ROM22と、RAM23と、表示部24と、通信インターフェース25と、HDD26と、が主に接続されている。   Various devices are connected to the host device 2 via a BUS (bus), and a CPU 21, a ROM 22, a RAM 23, a display unit 24, a communication interface 25, and an HDD 26 are mainly connected. .

CPU21は、各種のソフトウェアが実行され、上位装置2内の各部の情報のやり取りが正しく行なわれているか監視したり、或いは各部の動作開始や停止のタイミングを指示したりするように全体の流れを制御している。   The CPU 21 monitors the overall flow so that various types of software are executed to monitor whether information is correctly exchanged between the respective units in the higher-level device 2, or the operation start and stop timings of the respective units are instructed. I have control.

ROM22は、制御プログラム等が格納されている読み出し専用メモリである。   The ROM 22 is a read-only memory that stores a control program and the like.

RAM23は、CPU21がプログラムを実行するための作業領域を備えるランダムアクセスメモリである。本実施形態では、HDD20から読み出された基本ソフトウェア(OS)のほか、OSの下で実行されるアプリケーションプログラムや、上位装置2とカード発行機3との間で通信制御を行うためのアプリケーションプログラムや、APIとプログラミングインターフェースとが互いに共通する関数を一時的に記憶する。共通する関数(共通API群)としては、カード発行機3等のデバイスとの通信を確立する「open」処理、デバイスとの通信を遮断する「close」処理等の各種関数がある。   The RAM 23 is a random access memory including a work area for the CPU 21 to execute a program. In this embodiment, in addition to the basic software (OS) read from the HDD 20, an application program executed under the OS, and an application program for performing communication control between the higher-level device 2 and the card issuing machine 3. In addition, the API and the programming interface temporarily store a common function. The common functions (common API group) include various functions such as “open” processing for establishing communication with a device such as the card issuing machine 3 and “close” processing for blocking communication with the device.

また、RAM23には、2つのFIFO(First In First Out)バッファ領域が設けられており、本実施の形態では、機器制御プロセス用FIFOと、状態監視プロセス用FIFOと、分けて形成されている。詳細は後述するが、各FIFOは、実行コマンドを時系列的に格納し、CPU21によって順次読み出して電文変換部に送出している。   The RAM 23 is provided with two FIFO (First In First Out) buffer areas. In the present embodiment, the device control process FIFO and the state monitoring process FIFO are separately formed. As will be described in detail later, each FIFO stores execution commands in time series, and sequentially reads them out by the CPU 21 and sends them to the message conversion unit.

表示部24は、表示装置及びタッチパネルを有している。表示装置は、操作方法や操作ボタン等を表示する際に使用し、タッチパネルは使用者がデータ等を入力等する際に使用する。   The display unit 24 includes a display device and a touch panel. The display device is used when displaying operation methods, operation buttons, and the like, and the touch panel is used when the user inputs data and the like.

通信インターフェース25は、CPU21からの命令に基づいて様々な処理が実行されるカード発行機3と上位装置2とを接続するものであり、カード発行機3とはRS−232Cケーブルの通信ライン4でシリアル接続されている。   The communication interface 25 connects the card issuer 3 that executes various processes based on instructions from the CPU 21 and the host device 2. The card issuer 3 is connected to the communication line 4 of the RS-232C cable. Serial connection.

HDD26は、記録媒体としてハードディスクを用いており、基本ソフトウェア(OS),アプリケーションプログラム,(通信)ミドルウェア,ドライバ等の各種プログラムが記憶されている。   The HDD 26 uses a hard disk as a recording medium, and stores various programs such as basic software (OS), application programs, (communication) middleware, and drivers.

カード発行機3は、RS−232Cでの通信を行う通信インターフェース31と、CPU、メモリ等を内部に備え、カード発行機3全体を制御する制御部32と、リーダライタ33と、カードをリーダライタ33に供給するカードホッパー34と、使用後のカードが回収されるカード回収庫35と、これらに+24V電圧を供給する電源36と、を備えている。このような構成を備えたカード発行機3はカードの発行と回収を行なっているが、公知のものと同様であるので、ここでの詳細は説明を省略する。   The card issuing machine 3 includes a communication interface 31 that performs communication using RS-232C, a CPU, a memory, and the like, and a control unit 32 that controls the entire card issuing machine 3, a reader / writer 33, and a card as a reader / writer. 33, a card hopper 34 to be supplied to 33, a card collection box 35 for collecting used cards, and a power source 36 for supplying a + 24V voltage thereto. Although the card issuing machine 3 having such a configuration issues and collects cards, it is the same as a publicly known one, and the details thereof are omitted here.

図5は、本発明の実施の形態に係る情報処理システムのプロセス間の関係を示す概略図(ソフトウェア構成図)である。   FIG. 5 is a schematic diagram (software configuration diagram) showing a relationship between processes of the information processing system according to the embodiment of the present invention.

図4のHDD26には、コンピュータでプログラムなどを動作させる際、CPUが実行するひとまとまりの処理の単位で複数のプロセスが形成されている。具体的には、機器制御用コマンド発行プロセス群として機器制御プロセスPC1,PC2,・・・を実行する機能を有し、通信制御プロセスPを実行する機能を有し、さらに、状態監視用コマンド発行プロセス群として状態監視プロセスPCWを実行する機能を有する。各プロセスには、そのプロセスを実行するためのアプリケーション及び通信用ミドルウェアを有する。また、上位装置2とカード発行機3との通信は、RS−232Cインターフェース25に接続されたRS−232Cケーブルの通信ライン4によって、通信制御プロセスPを実行することによって命令送信と返答が行われる。 In the HDD 26 of FIG. 4, a plurality of processes are formed in a unit of processing executed by the CPU when a program or the like is operated by a computer. Specifically, the device control command issuing process group has a function of executing the device control processes P C1 , P C2 ,..., A function of executing the communication control process P S , and status monitoring And a function for executing the state monitoring process PCW as a command issuing process group. Each process has an application and middleware for communication for executing the process. The communication with the host device 2 and the card issuing machine 3, the row replies instruction transmitted by the communication line 4 of the connected RS-232C cable to RS-232C interface 25 executes communication control processes P S Is called.

機器制御用コマンド発行プロセス群は、複数の機器制御プロセスPC1,PC2,・・・を構成している。具体的には、複数の機器制御プロセスPC1,PC2は、所定の動作処理を行うための複数のアプリケーションプログラムと通信用ミドルウェアがそれぞれ構成されている。 The device control command issuing process group includes a plurality of device control processes P C1 , P C2,. Specifically, each of the plurality of device control processes P C1 and P C2 includes a plurality of application programs and communication middleware for performing predetermined operation processing.

本実施形態では、機器制御プロセスPC1は磁気・ICリードライトにおける制御を行う磁気・ICリードライト制御用アプリケーションプログラム、通信制御プロセスPとのプロセス間通信を行うための通信用ミドルウェアを主な構成としている。別の機器制御プロセスPC2はカード発行機を制御するカード発行制御用アプリケーションプログラム、通信制御プロセスPとの通信を行うための通信用ミドルウェアを主な構成としている。 In this embodiment, the device control process P C1 is the main communication middleware for performing interprocess communication Magnetic · IC read write control application program for controlling the magnetic · IC read-write, a communication control process P S It is configured. Another device control process P C2 are card issue control application program for controlling the card issuing machine, a communication middleware for communicating with the communication control process P S and main components.

状態監視用コマンド発行プロセス群は、状態監視プロセスPCWから構成されている。本実施形態では、状態監視プロセスPCWは、カード発行機3の状態を監視するための状態監視用アプリケーションプログラム、通信制御プロセスPとのプロセス間通信を行うための通信ミドルウェアを有している。 The state monitoring command issuing process group includes a state monitoring process PCW . In the present embodiment, the state monitoring process P CW has a communication middleware for performing status monitoring application program for monitoring the status of the card issuing machine 3, the inter-process communication between the communication control process P S .

カード発行機3の状態としては、例えば、カード発行機3全体の状態(電源ON/OFF・通信ケーブルオンライン/オフライン・デバイスビジー(機器制御処理実行中)か否か)、リーダライタ3の状態としては、カード搬送路(常に機能しているか否か)、カード状態(装置内部にカードが存在する・排出口に存在する・ジャム状態・存在しない)、シャッタ状態(閉じている/開いている・シャッタがジャム状態)、などである。   Examples of the state of the card issuing machine 3 include the state of the card issuing machine 3 as a whole (power ON / OFF, communication cable online / offline, device busy (device control processing is being executed)), and the state of the reader / writer 3. Is the card transport path (whether it is always functioning), card status (card is present inside the device, jammed / not present at the outlet), shutter status (closed / open) The shutter is jammed).

通信制御用プロセスPは、複数の機器制御プロセスPC1,PC2及び状態監視プロセスPCWからのコマンドを受けて各プロセスを実行させるローカルサーバアプリケーションプログラム40、通信制御部11を制御しRS−232Cインターフェース25との通信を行うための通信用ミドルウェア41、また、図示していないが、各種コマンドを発行機命令電文へ変換するためのドライバを主な構成としている。 Communication control process P S controls the plurality of device control process P C1, P C2 and condition monitoring process P a local server application program 40 which receives a command from the CW to perform each process, the communication control unit 11 RS- The communication middleware 41 for performing communication with the 232C interface 25 and a driver for converting various commands into an issuing machine command message, which are not shown, are mainly configured.

ローカルサーバアプリケーション40は、機器制御用コマンド受付API(アプリケーションプログラムインターフェース)と状態監視用コマンド受付APIとを有している。また、通信用ミドルウェア41は、機器制御用コマンド受付APIと状態監視用コマンド受付APIとを有しており、各APIからのコマンドを格納する機器制御用FIFOバッファと状態通知用FIFOバッファとを有している。なお、通信制御用コマンド発行プロセス群は、機器制御用コマンド発行プロセス群及び状態監視用コマンド発行プロセス群とは異なり、機器制御用スレッド及び状態監視用スレッドの構成が形成されている(図1参照)。   The local server application 40 has a device control command reception API (application program interface) and a state monitoring command reception API. The communication middleware 41 includes a device control command reception API and a state monitoring command reception API, and includes a device control FIFO buffer and a state notification FIFO buffer for storing commands from the APIs. doing. Unlike the device control command issuing process group and the state monitoring command issuing process group, the communication control command issuing process group has a configuration of a device control thread and a state monitoring thread (see FIG. 1). ).

通信制御用プロセスPsは、複数の機器制御プロセスPC1,PC2及び状態監視プロセスPCWに先立ち起動され、ローカルサーバアプリケーション40が有する機器制御用コマンド受付APIにて、複数の機器制御プロセスPC1,PC2から発行される機器制御用コマンドを受付け可能な状態にして待機する。また、ローカルサーバアプリケーション40が有する状態監視用コマンド受付APIにて、状態監視プロセスPCWから発行される状態監視用コマンドを受付け可能な状態にして待機する。そして、通信制御用プロセスPsが起動した後、複数の機器制御プロセスPC1,PC2及び状態監視プロセスPCWが順に起動される。 The communication control process Ps is started prior to the plurality of device control processes P C1 and P C2 and the state monitoring process P CW , and the plurality of device control processes P C1 are executed by the device control command reception API of the local server application 40. , and waits in the ready accept device control commands issued from P C2. Further, the state monitoring command reception API of the local server application 40 is set in a state where it can accept the state monitoring command issued from the state monitoring process PCW and stands by. Then, after the communication control process Ps is activated, a plurality of device control processes PC1 , PC2 and a state monitoring process PCW are activated in order.

複数の機器制御プロセスPC1,PC2が起動した場合、複数の機器制御プロセスPC1,PC2に存在する通信用ミドルウェアと通信制御用プロセスPのローカルサーバアプリケーション40に存在する機器制御用コマンド受付APIとが接続され、通信制御プロセスPへ機器制御用コマンドを発行することが可能となる。 If multiple device control process P C1, P C2 is started, the command for device control that is present in the local server application 40 of the plurality of device control process P C1, process communication controller and a communication middleware present in P C2 P S a reception API is connected, it is possible to issue device control commands to the communication control process P S.

一方、状態監視プロセスPCWが起動した場合、状態監視プロセスPCWに存在する通信用ミドルウェアと通信制御用プロセスPのローカルサーバアプリケーション40に存在する状態監視用コマンド受付APIとが接続され、通信制御プロセスPへ状態監視用コマンドを発行することが可能となる。 On the other hand, when the state monitoring process P CW is started, the state monitoring process state monitoring commands accepted API present in the local server application 40 of the communication middleware for communication control process P S present in the P CW are connected, the communication it is possible to issue a status monitoring command to the control process P S.

このように、通信制御プロセスPsへの機器制御コマンド及び状態監視用コマンドの発行は、プロセス間通信を利用して行われる。   As described above, the device control command and the state monitoring command are issued to the communication control process Ps using inter-process communication.

プロセス間通信を行う通信制御プロセスPsは、機器制御用コマンド受付API、機器制御用FIFOバッファ、状態通知用コマンド受付API、状態通知用FIFOバッファ、発行機命令のための機器制御用電文変換部、状態監視用電文変換部で構成されている。   A communication control process Ps that performs inter-process communication includes a device control command reception API, a device control FIFO buffer, a status notification command reception API, a status notification FIFO buffer, a device control message conversion unit for issuing machine commands, It consists of a status monitoring message converter.

通信用ミドルウェア41が有する機器制御用コマンド受付APIは、ローカルサーバアプリケーション40が有する機器制御用コマンド受付APIにて受取った機器制御用コマンドをミドルウェアにて受信する。   The device control command reception API included in the communication middleware 41 receives the device control command received by the device control command reception API included in the local server application 40 using the middleware.

機器制御用FIFOバッファは、通信用ミドルウェアが有する機器制御用コマンド受付APIで受取った機器制御用コマンドを順番に保存していく。機器制御用FIFOバッファでは、先に到達した機器制御用コマンドの順に機器制御用電文変換部へ送り出されるFIFO(First In First Out)形式となっている。   The device control FIFO buffer sequentially stores the device control commands received by the device control command reception API of the communication middleware. The device control FIFO buffer has a FIFO (First In First Out) format that is sent to the device control message conversion unit in the order of the device control commands that have arrived first.

通信用ミドルウェア41が有する状態監視用コマンド受付APIは、ローカルサーバアプリケーション40が有する状態監視用コマンド受付APIにて受取った状態監視用コマンドをミドルウェアにて受信する。   The state monitoring command reception API of the communication middleware 41 receives the state monitoring command received by the state monitoring command reception API of the local server application 40 using the middleware.

状態監視用FIFOバッファは、通信用ミドルウェアが有する状態監視用コマンド受付APIで受取った状態監視用コマンドを順番に保存していく。状態監視用FIFOバッファでは、先に到達した状態監視用コマンドの順に状態監視用電文変換部へ送り出されるFIFO形式となっている。なお、各々のFIFOバッファへ各コマンドを保存していくことをキューイングという。   The status monitoring FIFO buffer sequentially stores the status monitoring commands received by the status monitoring command reception API of the communication middleware. The status monitoring FIFO buffer has a FIFO format that is sent to the status monitoring message conversion unit in the order of the status monitoring commands that have arrived first. Note that storing each command in each FIFO buffer is called queuing.

機器制御用FIFOバッファの送り出し口に位置する機器制御用電文変換部は、機器制御用FIFOバッファから送り出される機器制御用コマンドを、カード発行機3に送信するための命令電文に変換を行う。なお、機器制御用コマンドは、複数の命令電文から構成されているため、この電文変換部では、1つの機器制御用コマンドから、複数の命令電文へと変換され、変換された複数の命令電文は、順番に送信制御部へ送られる。   The device control message conversion unit located at the sending port of the device control FIFO buffer converts the device control command sent from the device control FIFO buffer into a command message for sending to the card issuing machine 3. Since the device control command is composed of a plurality of command messages, in this message conversion unit, one device control command is converted into a plurality of command messages, and the converted command messages are Are sequentially sent to the transmission control unit.

また、状態監視用FIFOバッファの送り出し口に位置する状態監視用電文変換部は、状態監視用FIFOバッファから送り出される状態監視用コマンドを、カード発行機3に送信するための命令電文に変換を行う。本実施例では、1つの状態監視用コマンドを電文変換部にて変換した場合、1つの命令電文が生成される。ここで変換された1つの命令電文は送信制御部へと送られる。   The status monitoring message conversion unit located at the sending port of the status monitoring FIFO buffer converts the status monitoring command sent from the status monitoring FIFO buffer into a command message for sending to the card issuing machine 3. . In the present embodiment, when one state monitoring command is converted by the message conversion unit, one command message is generated. One command message converted here is sent to the transmission control unit.

これら一連の機器制御用コマンドの電文変換処理と状態監視用コマンドの電文変換処理は並行して行われる。   The series of device conversion command message conversion processing and status monitoring command message conversion processing are performed in parallel.

通信制御部11は、機器制御用FIFOバッファの送り出し口に位置する機器制御用電文変換部から送られる命令電文と、状態監視用FIFOバッファの送り出し口に位置する状態監視用電文変換部から送られる命令電文とを、交互にカード発行機3へ送信していく。
例えば、状態監視用FIFOバッファに先行し、機器制御用FIFOバッファに機器制御用コマンドが到達した場合は、まず、電文変換部にて変換された命令電文の1つをカード発行機3へ送信する。この間に状態監視用FIFOバッファに状態通知コマンドが到達している場合は、状態通知コマンドを電文変換部にて変換し、この命令電文をカード発行機3へ送信する。送信が完了した後、再び機器制御用FIFOバッファからの変換処理に処理を戻し、残りの命令電文の1つを送信する。
The communication control unit 11 is sent from the command message sent from the device control message conversion unit located at the sending port of the device control FIFO buffer and from the status monitoring message conversion unit located at the sending port of the status monitoring FIFO buffer. The command message is sent to the card issuing machine 3 alternately.
For example, when a device control command arrives at the device control FIFO buffer preceding the state monitoring FIFO buffer, first, one of the command messages converted by the message conversion unit is transmitted to the card issuing machine 3. . If the status notification command has reached the status monitoring FIFO buffer during this period, the status notification command is converted by the message conversion unit, and this command message is transmitted to the card issuing machine 3. After the transmission is completed, the process is returned to the conversion process from the device control FIFO buffer, and one of the remaining command messages is transmitted.

このように、機器制御用FIFOバッファと状態監視用FIFOバッファの双方にコマンドが存在する場合は、交互に1つの命令電文を送信していく。なお、片方のFIFOバッファにのみコマンドが存在する場合は、他方の存在しないFIFOバッファからの電文変換処理へ処理を移すことなく、存在するFIFOバッファからの電文変換処理が優先的に行われる。   As described above, when a command exists in both the device control FIFO buffer and the state monitoring FIFO buffer, one command message is alternately transmitted. When a command exists only in one FIFO buffer, the message conversion process from the existing FIFO buffer is preferentially performed without moving the process to the message conversion process from the FIFO buffer that does not exist in the other FIFO buffer.

図6は、本発明の実施の形態に係る情報処理システムの起動時の動作手順を示すフローチャートである。   FIG. 6 is a flowchart showing an operation procedure at the time of starting the information processing system according to the embodiment of the present invention.

システムの起動開始の手順は、まず、通信制御プロセスPを起動し、RS−232C通信を開設する(ステップS101)。これらの開設・起動結果を判断し(ステップS102)、成功と判定した場合には、状態監視プロセスPCWを起動し、通信制御プロセスPと開設する一方(ステップS103)、失敗と判定した場合には、本サブルーチンを終了する。 Procedure for system start-up, start the communication control process P S, to open the RS-232C communication (step S101). Determining these open-activation results (step S102), when it is determined that successful, starts the state monitoring process P CW, while establishing a communication control process P S (step S103), if it is determined fail This subroutine is finished.

ステップS103における起動・接続結果を判断し(ステップS104)、成功と判定した場合には、機器制御プロセスPC1を起動し、通信制御プロセスPと接続する一方(ステップS105)、失敗と判定した場合には、本サブルーチンを終了する。 Determining the activation and connection result in step S103 (step S104), and when it is determined that successful activates the device control process P C1, while connected to the communication control process P S (step S105), determines fails In this case, this subroutine is terminated.

ステップS105における起動・接続結果を判断し(ステップS106)、成功と判定した場合には、起動完了してコマンド待ち状態となる一方、失敗と判定した場合には、本サブルーチンを終了する。   The activation / connection result in step S105 is determined (step S106). If it is determined to be successful, the activation is completed and the command is waited. If it is determined to be unsuccessful, this subroutine is terminated.

次に、本発明の実施の形態に係る情報処理方法を、図7〜図9を用いて説明する。図7及び図8に示す情報処理方法は、動作処理の一例としてのカード排出処理の動作手順である。   Next, an information processing method according to an embodiment of the present invention will be described with reference to FIGS. The information processing method shown in FIGS. 7 and 8 is an operation procedure of card ejection processing as an example of operation processing.

まず、情報処理システム1がカード発行取引開始の状態にある場合、入力画面にてICカードへの記録情報を入力する(ステップS501)。これは、情報処理システム1の上位装置2の表示部24にて、ユーザが表示装置の入力画面にカードへの記録情報を入力する。   First, when the information processing system 1 is in a state of starting a card issuance transaction, information recorded on the IC card is input on the input screen (step S501). In the display unit 24 of the host device 2 of the information processing system 1, the user inputs information recorded on the card on the input screen of the display device.

ユーザがカード発行ボタンを押すことにより、HDD20やROM22に記憶されているプログラムやデータをCPU21からの命令に従ってRAM23上に読み出し、インターフェース24にRS−232Cケーブルの通信ライン4で接続されているカード発行機3をAPIを使用して制御することにより、各アプリケーションの動作が開始される。   When the user presses the card issuance button, the program and data stored in the HDD 20 and ROM 22 are read onto the RAM 23 in accordance with an instruction from the CPU 21, and the card issuance connected to the interface 24 via the communication line 4 of the RS-232C cable. The operation of each application is started by controlling the machine 3 using the API.

次いで、状態監視用アプリケーションにて、状態通知コマンドを発行し、カード発行機3の状態を把握する(ステップS502、S503)。発行された状態通知コマンドは、通信用ミドルウェアで変換されて、通信制御プロセスPに入力され、コマンドが所定の電文に変換される。例えば、格納されているカードが切れた状態等、何らかの不具合でエラーが発生した場合には、異常と判定し(ステップS503)、異常が発生したことを表示装置の画面に表示(通知)する(ステップS521)。一方、カード発行機状態が正常と判定すると(ステップS503)、カード発行制御用アプリケーションを起動して「1−1 カード発行コマンド」を発行する(ステップS504)。 Next, the status monitoring application issues a status notification command to grasp the status of the card issuing machine 3 (steps S502 and S503). Issued status notification command is converted by the communication middleware, is inputted to the communication control process P S, the command is converted into a predetermined message. For example, when an error occurs due to some trouble such as a state in which the stored card is cut, it is determined as abnormal (step S503), and the occurrence of the abnormality is displayed (notified) on the screen of the display device ( Step S521). On the other hand, if it is determined that the card issuing machine state is normal (step S503), the card issuing control application is activated to issue a “1-1 card issuing command” (step S504).

次いで、状態監視用アプリケーションを起動して「2−1 状態通知コマンド」を発行し、カード位置を把握する(ステップS505)。カード位置の状態判断において(ステップS506)、カードリーダ内にカードが無いと判定すると、ステップS505の処理に戻る。また、カード位置の状態判断において(ステップS506)、カードリーダ内でカードジャム等による異常が発生していると判定すると、異常状態を通知する(ステップS521)。一方、カード位置の状態判断において(ステップS506)、カードリーダ内にカードが有ると判定すると、磁気・ICリードライト制御用アプリケーションにて「1−2 IC活性化コマンド」を発行する(ステップS507)。   Next, the status monitoring application is activated to issue a “2-1 status notification command” to grasp the card position (step S505). If it is determined in the card position state determination (step S506) that there is no card in the card reader, the process returns to step S505. If it is determined in the card position state determination (step S506) that an abnormality due to a card jam or the like has occurred in the card reader, the abnormal state is notified (step S521). On the other hand, if it is determined in the card position state determination (step S506) that there is a card in the card reader, a “1-2 IC activation command” is issued by the magnetic / IC read / write control application (step S507). .

次いで、状態監視用アプリケーションを起動して「2−2状態通知コマンド」を発行し、ステップS507にて発行された「1−2 IC活性化コマンド」に基づくIC活性化状態を把握する(ステップS508)。IC活性化の状態判断において(ステップS509)、ICカードが非活性化状態であると判定すると、ステップS508の処理に戻る。また、IC活性化の状態判断において(ステップS509)、カードリーダ内にICカードが無い等による異常が発生していると判定すると、異常状態を通知する(ステップS521)。一方、ICカードが活性化状態であると判定すると、磁気・ICリードライト制御用アプリケーションにて「1−3 IC通信コマンド」を発行し(ステップS510)、同じく磁気・ICリードライト制御用アプリケーションにて「1−4 IC非活性化コマンド」を発行する(ステップS511)。   Next, the status monitoring application is activated to issue a “2-2 status notification command”, and the IC activation status based on the “1-2 IC activation command” issued in step S507 is grasped (step S508). ). In the IC activation state determination (step S509), if it is determined that the IC card is in an inactive state, the process returns to step S508. If it is determined in the IC activation state determination (step S509) that an abnormality has occurred due to the absence of an IC card in the card reader, the abnormal state is notified (step S521). On the other hand, if it is determined that the IC card is in an activated state, the magnetic / IC read / write control application issues “1-3 IC communication command” (step S510), and the magnetic / IC read / write control application Then, “1-4 IC deactivation command” is issued (step S511).

次いで、状態監視用アプリケーションにて「2−3 状態通知コマンド」を発行し、ステップS511にて発行された「1−4 IC非活性化コマンド」に基づくIC活性化状態を把握する(ステップS512)。IC活性化の状態判断において(ステップS513)、ICカードが活性化状態であると判定すると、ステップS512の処理に戻る。また、IC活性化の状態判断において(ステップS513)、ICカードとの通信ができない等による異常が発生していると判定すると、異常状態を通知する(ステップS521)。一方、ICカードが非活性化状態であると判定すると、カード発行制御用アプリケーションにて「1−5 カード排出コマンド」を発行する(ステップS514)。   Next, a “2-3 state notification command” is issued by the state monitoring application, and an IC activation state based on the “1-4 IC deactivation command” issued in step S511 is grasped (step S512). . If it is determined in the IC activation state determination (step S513) that the IC card is in the activated state, the process returns to step S512. Further, in the determination of the IC activation state (step S513), if it is determined that an abnormality has occurred due to the inability to communicate with the IC card, the abnormal state is notified (step S521). On the other hand, if it is determined that the IC card is in an inactive state, a “1-5 card ejection command” is issued by the card issuance control application (step S514).

次いで、状態監視用アプリケーションにて「2−4 状態通知コマンド」を発行し、ステップS514にて発行された「1−5 カード排出コマンド」に基づくカード位置を把握する(ステップS515)。カード位置の状態判断において(ステップS516)、カードリーダ内にカードが有ると判定すると、ステップS515の処理に戻る。また、カード位置の状態判断において(ステップS516)、カードリーダ内でカードジャム等による異常が発生していると判定すると、異常状態を通知する(ステップS521)。また、カード位置の状態判断において(ステップS516)、カードリーダ内にカードが無いと判定すると、ステップS520の処理に進む。一方、カード位置の状態判断において(ステップS516)、ゲート口にカードが有ると判定すると、ユーザに対してカードを抜き取るよう表示画面に通知する(ステップS517)。   Next, a “2-4 status notification command” is issued by the status monitoring application, and the card position based on the “1-5 card ejection command” issued in step S514 is grasped (step S515). If it is determined in the card position state determination (step S516) that there is a card in the card reader, the process returns to step S515. If it is determined in the card position state determination (step S516) that an abnormality due to a card jam or the like has occurred in the card reader, the abnormal state is notified (step S521). If it is determined in the card position state determination (step S516) that there is no card in the card reader, the process proceeds to step S520. On the other hand, if it is determined in the card position state determination (step S516) that there is a card at the gate port, the display screen is notified to the user to remove the card (step S517).

次いで、状態監視用アプリケーションにて「2−4 状態通知コマンド」を発行し、カード位置を把握する(ステップS518)。カード位置の状態判断において(ステップS519)、カードリーダ内にカードが有ると判定すると、ステップS518の処理に戻る。また、カード位置の状態判断において(ステップS519)、カードリーダ内でカードジャム等による異常が発生していると判定すると、異常状態を通知する(ステップS521)。一方、カード位置の状態判断において(ステップS519)、正常にカードが発行されたことを画面に通知する(ステップS520)。   Next, the “2-4 status notification command” is issued by the status monitoring application to grasp the card position (step S518). If it is determined in the card position state determination (step S519) that there is a card in the card reader, the process returns to step S518. If it is determined in the card position state determination (step S519) that an abnormality due to a card jam or the like has occurred in the card reader, the abnormal state is notified (step S521). On the other hand, in determining the status of the card position (step S519), the screen is notified that the card has been normally issued (step S520).

以上のステップS520又はステップS521の処理を経て、本サブルーチンは終了する。   The subroutine is completed through the processing in step S520 or step S521 described above.

上記の処理において、機器制御プロセスPC1,PC2で発行された各コマンドは、通信制御プロセスPのローカルサーバアプリケーションプログラム内の機器制御用コマンド受付APIに順次送信され、それらは時系列的に順次、通信用ミドルウェアの機器制御用コマンド受付APIに送信され、それらは時系列的に順次、機器制御用FIFOバッファへキューイングされる。機器制御用FIFOバッファ内に格納されたコマンドは、所定のタイミングにより、先に格納された順番ごとに機器制御用電文変換部に送信され、機器制御用電文変換部は、受信した順番ごとにカード発行機3の命令電文に変換し、通信制御部11に送信する。なお、命令電文への変換は、1つのコマンドに対して複数の電文に変換され、例えば、「1−1カード発行コマンド」を発行機命令電文へ変換する場合は、「1−1−1Status request」、「1−1−2Card set」となる。 In the above-described processing, each command issued by the device control process P C1, P C2, sequentially sent to the device control command receiving API in the local server application program of the communication control process P S, they chronologically The data is sequentially transmitted to the device control command reception API of the communication middleware, and they are queued sequentially to the device control FIFO buffer in time series. The commands stored in the device control FIFO buffer are transmitted to the device control message conversion unit in the order stored earlier at a predetermined timing, and the device control message conversion unit receives the card for each received order. It is converted into a command message of the issuing machine 3 and transmitted to the communication control unit 11. Note that the conversion to an instruction message is converted into a plurality of messages for one command. For example, when converting “1-1 card issue command” to an issuer instruction message, “1-1-1 Status request” is used. "," 1-1-2 Card set ".

一方、上記の処理において、機器制御コマンドの処理の実行と並行して、状態監視プロセスPCWの状態監視用アプリケーションプログラムによって定期的に発行された状態通知コマンドが通信用ミドルウェアによって通信制御プロセスPに送信され、状態監視用コマンド受付APIで受付けられた状態通知コマンドが状態通知用FIFOバッファへキューイングされる。具体的には、CPU21からの命令により、状態監視プロセスPCWでは、状態監視用アプリケーションプログラムにより、定期的(常時一定間隔で)に状態通知コマンドが発行され、状態監視プロセスPCWで発行された状態通知コマンドは、通信制御プロセスPsのローカルサーバアプリケーションプログラム内の状態監視用コマンド受付APIに順次送信される。ローカルサーバアプリケーションプログラム内の状態監視用コマンド受付APIにて受取られた各コマンドは、順次、通信用ミドルウェアの状態監視用コマンド受付APIに送信され、状態監視用コマンド受付APIで受付けられた状態通知コマンドが機器制御用FIFOバッファへキューイングされる。状態通知用FIFOバッファは、状態監視用コマンド受付APIで受信されたコマンドを時系列的に順次書き込んで格納する。状態通知用FIFOバッファ内に格納された状態通知コマンドは、所定のタイミングにより、先に格納された順番ごとに、状態監視用電文変換部に送信され、送信制御部11に送信する。なお、命令電文への変換は、例えば、「2−1状態通知コマンド」を発行機命令電文へ変換する場合は、「2−1Status request」となる。 On the other hand, in the above-described processing, in parallel with the execution of the processing of the device control command, status monitoring process P state by the state monitoring application program issued regularly in CW notification command communication control process by the communication middleware P S The status notification command received by the status monitoring command reception API is queued in the status notification FIFO buffer. Specifically, by a command from the CPU 21, the state monitoring process P CW, the status monitoring application programs, issues a status notification command periodically (at all times constant intervals), issued in the state monitoring process P CW The status notification command is sequentially transmitted to the status monitoring command reception API in the local server application program of the communication control process Ps. Each command received by the status monitoring command reception API in the local server application program is sequentially transmitted to the status monitoring command reception API of the communication middleware, and the status notification command received by the status monitoring command reception API Are queued in the device control FIFO buffer. The status notification FIFO buffer sequentially writes and stores the commands received by the status monitoring command reception API. The status notification commands stored in the status notification FIFO buffer are transmitted to the status monitoring message conversion unit and transmitted to the transmission control unit 11 in the order stored in advance at a predetermined timing. The conversion to the command message is, for example, “2-1 Status request” when the “2-1 status notification command” is converted to the issuing machine command message.

以上において、通信制御部11が受信したコマンドは、通信インターフェース25及び通信ケーブル4を介して、カード発行機3に送信される。このようにして変換された電文は通信制御部11によってカード発行機3に送信され、磁気・ICカード発行機3において、状態通知コマンドと機器制御コマンドとが交互に実行されることとなる。   In the above, the command received by the communication control unit 11 is transmitted to the card issuing machine 3 via the communication interface 25 and the communication cable 4. The message thus converted is transmitted to the card issuing machine 3 by the communication control unit 11, and the magnetic / IC card issuing machine 3 executes the status notification command and the device control command alternately.

ここで、機器制御用FIFOバッファと状態通知用FIFOバッファとに格納されたコマンドを電文変換する場合には、それらを交互に行っている。具体的には、機器制御用FIFOバッファにキューイングされたコマンドを発行機命令電文へ変換している時は、状態通知用FIFOバッファにキューイングされたコマンドを発行機命令電文へ変換していない。逆に、状態通知用FIFOバッファにキューイングされたコマンドを発行機命令電文へ変換している時は、機器制御用FIFOバッファにキューイングされたコマンドを発行機命令電文へ変換しない。   Here, when the commands stored in the device control FIFO buffer and the status notification FIFO buffer are converted into messages, they are alternately performed. Specifically, when a command queued in the device control FIFO buffer is converted to an issuer command message, the command queued in the status notification FIFO buffer is not converted to an issuer command message. . Conversely, when a command queued in the status notification FIFO buffer is converted into an issuer command message, the command queued in the device control FIFO buffer is not converted into an issuer command message.

また、状態通知コマンドと機器制御コマンドとが交互に実行されるため、例えば、「1−1カード発行コマンド」が「2−1状態通知コマンド」よりも先にFIFOバッファに到達していても、変換された発行機命令電文は、「1−1−1Status request」、「2−1Status request」、「1−1−2Card set」の順に実行されるため、結果、「1−1カード発行コマンド」の実行結果が通知される前に、「2−1状態通知コマンド」の実行結果が通知されることになる。つまり、機器制御用コマンドが複数の発行機命令電文へ変換をしなくてはならないコマンドであった場合であっても、機器制御用コマンドの実行結果を待つことなく、状態通知コマンドの結果を通知することができる。   Further, since the status notification command and the device control command are executed alternately, for example, even if the “1-1 card issue command” has reached the FIFO buffer before the “2-1 status notification command”, Since the converted issuer command message is executed in the order of “1-1-1 Status request”, “2-1 Status request”, “1-1-2 Card set”, the result is “1-1 card issue command”. Before the execution result is notified, the execution result of the “2-1 status notification command” is notified. In other words, even if the device control command is a command that must be converted into multiple issuing machine command messages, the result of the status notification command is notified without waiting for the execution result of the device control command. can do.

図9は、本発明の実施の形態に係る情報処理方法を示す時間状態図であり、カード排出のコマンドの動作処理を説明するための図である。なお、この動作処理は、図8におけるステップS514以降の処理に対応するものである。   FIG. 9 is a time state diagram showing the information processing method according to the embodiment of the present invention, and is a diagram for explaining the operation processing of the card ejection command. This operation process corresponds to the process after step S514 in FIG.

機器制御プロセスPC2ではカード発行制御用アプリケーションにてカード排出コマンドを発行すると(図8のステップS514参照)、当該コマンドを受信した通信制御プロセスPではカード発行機3に対して「Card carry - Eject」を指令し、カードがゲートに移動される(図8のステップS515〜S516参照)。カードがゲートに移動され、カードが抜き取られてカードがゲートに無しという状態を把握すると(図8のステップS517〜S520参照)、通信制御プロセスPでは機器制御プロセスPC2に対して「カード排出完了通知」を送り、カード排出コマンドの動作処理は終了する。 When you issue the card ejection command in device control process P C2 in the card issuing control applications (see step S514 in FIG. 8), "Card carry the communication control process P S in the card issuing machine 3 has received the command - Eject "is commanded, and the card is moved to the gate (see steps S515 to S516 in FIG. 8). Card is moved to the gate, when it is withdrawn card card to grasp the state that no gate (see step S517~S520 of FIG. 8), "card ejection to the communication control process P S in the device control process P C2 A “completion notice” is sent, and the card discharge command operation process ends.

このような処理の間、状態監視プロセスPCWは、カード発行機3の状態を監視しており、通信制御プロセスPとの間で状態通知コマンドの発行と状態通知の処理を行っている(図8のステップSS515,S518参照)。また、カード発行機3は、カード位置の状態判定をしており(図8のステップS516,S519参照)、通信制御プロセスPからの「Status request」を受けて、カードがゲートに移動される、カードがゲートに有る、カードがゲートに無いという位置状態に応じた応答をする。 During such processing, the state monitoring process P CW is performed monitors the status of the card issuing machine 3, the process of issuing the status notification command and status notifications with the communication control process P S ( (See steps SS515 and S518 in FIG. 8). Moreover, the card issuing machine 3 has a state determination of the card position (see step S516, S519 of FIG. 8), receives the "Status request" from the communication control process P S, it is moved card gate A response is made according to the position state that the card is at the gate and the card is not at the gate.

なお、図8に示すカード排出の動作処理はICカードが非活性化状態である場合のものであるが、ICカードが活性化状態にある場合にカード排出コマンドが発行された場合には、図9に示すように、カード発行機3は通信制御プロセスPからの「IC contact - Release」を受けてICカードを非活性化することにより、カード排出の動作処理を行うこともできる。 Note that the card ejection operation process shown in FIG. 8 is for the case where the IC card is in an inactive state, but when the card ejection command is issued when the IC card is in an activated state, FIG. as shown in 9, the card issuing machine 3 from the communication control process P S - can also be carried out by deactivating the IC card receives a "IC contact Release", the operation process of the card ejection.

[本実施の形態の主な効果]
以上説明したように、本発明の実施の形態によれば、上位装置2は、機器制御用コマンドを発行する複数の機器制御プロセスPC1,PC2、状態通知コマンドを発行する状態監視プロセスPCW、カード発行機3との通信を行う通信制御プロセスPを実行する機能を有し、通信制御プロセスPがデバイスにアクセスして通信を確立した状態において、各機器制御プロセスPC1,PC2が順番に実行されることから、各機器制御プロセスを実行するたびに通信の遮断/開設を繰り返す必要がないため、各機器制御プロセスの処理時間を短くすることができる。また、状態監視プロセスは、複数の機器制御プロセスPC1,PC2に優先して実行されることから、通信の遮断/開設を行うことなくいつでもデバイスの状態を把握することができる。
[Main effects of this embodiment]
As described above, according to the embodiment of the present invention, the host device 2 includes the plurality of device control processes P C1 and P C2 that issue device control commands and the state monitoring process P CW that issues status notification commands. has the function of communicating control process P S communicating with the card issuing machine 3, in a state where the communication control process P S has established communications with access devices, each device control process P C1, P C2 Are executed in order, it is not necessary to repeat the interruption / opening of communication every time each device control process is executed, so that the processing time of each device control process can be shortened. Further, since the state monitoring process is executed in preference to the plurality of device control processes P C1 and P C2 , it is possible to grasp the state of the device at any time without blocking / opening communication.

さらに、上位装置とデバイスとが単一の通信ラインを通じて接続されても、通信制御プロセスPがデバイスにアクセスして通信を確立した状態に上位装置とデバイスとの間で通信を確立させて複数の機器制御プロセスを実行することができる。 Moreover, also the upper device and the device is connected through a single communication line, to establish communication with a host device and a device in a state where the communication control process P S has established communications with access devices plurality The device control process can be executed.

また、上位装置2からは、今どこでカードが止まっているのか分からない。そこで、カード排出コマンドが完了していない状態でも、状態通知コマンドを発行して実行すればカード位置がわかり、カードが排出口にあればユーザに取り忘れのアラームを鳴らす事もでき、装置内部で停滞していればメンテナンス業者に通知する事も可能である。   Further, the host device 2 does not know where the card is stopped. Therefore, even if the card ejection command has not been completed, issuing the status notification command and executing it will tell you the card position, and if the card is in the ejection slot, you can sound an alarm that the user has forgotten to remove. If it is stagnant, it is possible to notify the maintenance company.

[他の実施形態]
なお、デバイスとしての磁気・ICカード発行機3は一例であって、これ以外にもプリンタやバーコードリーダ等の各種のデバイスを個別に又は複合的に構成することもできる。また、本発明の実施の形態によれば、通信としてRS−232C方式を用いたが、USB方式等の他の方式にも応用可能である。
[Other embodiments]
The magnetic / IC card issuer 3 as an example is an example, and various devices such as a printer and a barcode reader can be individually or combined. Further, according to the embodiment of the present invention, the RS-232C system is used for communication, but the present invention can also be applied to other systems such as a USB system.

本発明は、上位装置とデバイスとの間で通信を確立させて機器制御プロセスを短い時間で実行することのできる情報処理システム及び情報処理方法として有用である。   INDUSTRIAL APPLICABILITY The present invention is useful as an information processing system and information processing method that can establish communication between a host device and a device and execute a device control process in a short time.

1 情報処理システム
2 上位装置
3 カード発行機
4 通信ライン
10 排他権記録用共有メモリ
11 通信制御部
DESCRIPTION OF SYMBOLS 1 Information processing system 2 Host apparatus 3 Card issuing machine 4 Communication line 10 Exclusive record recording shared memory 11 Communication control part

Claims (9)

上位装置と、前記上位装置からの指令に従って処理を実行するデバイスと、が接続された情報処理システムにおいて、
前記上位装置は、
所定の動作処理を行うための複数のアプリケーションプログラムが格納され、各アプリケーションプログラムに従って前記デバイスが動作する複数の機器制御プロセスと、
前記上位装置と前記デバイスとの間で通信制御を行うためのアプリケーションプログラムが格納され、このアプリケーションプログラムに従って前記上位装置と前記デバイスとの間で通信を確立する通信制御プロセスと、
を実行する機能を有し、
前記デバイスは、前記上位装置との通信を介して各機器制御プロセスが有する所定の動作処理を実行するものであって、
前記通信制御プロセスは、前記デバイスとの通信を確立した状態で、前記複数の機器制御プロセスとのプロセス間通信を行うことを特徴とする情報処理システム。
In an information processing system in which a host device and a device that executes processing according to a command from the host device are connected,
The host device is
A plurality of application programs for performing predetermined operation processing are stored, and a plurality of device control processes in which the device operates according to each application program,
An application program for performing communication control between the host device and the device is stored, and a communication control process for establishing communication between the host device and the device according to the application program,
Has the function to execute
The device executes predetermined operation processing included in each device control process via communication with the host device ,
The information processing system , wherein the communication control process performs inter-process communication with the plurality of device control processes in a state where communication with the device is established .
前記上位装置は、前記デバイスの状態を監視するための状態監視用アプリケーションプログラムが格納され、この状態監視用アプリケーションプログラムに従って前記デバイスの状態を監視する状態監視プロセスを実行する機能を有するものであって、
前記通信制御プロセスは、前記デバイスとの通信を確立した状態で、前記状態監視プロセスとのプロセス間通信を行い、前記状態監視プロセスと前記複数の機器制御プロセスの各々とを交互に実行することを特徴とする請求項1記載の情報処理システム。
The host system, the state monitoring application program for monitoring the status of the device is stored, it has a function to perform a condition monitoring process to monitor the state of the device in accordance with the status monitoring application program ,
The communication control process performs inter-process communication with the state monitoring process in a state where communication with the device is established , and alternately executes the state monitoring process and each of the plurality of device control processes. The information processing system according to claim 1.
前記通信制御プロセスは、前記状態監視プロセスが発行する状態通知コマンドと前記複数の機器制御プロセスの各々が発行する動作コマンドとを交互に前記デバイスに送信することを特徴とする請求項2記載の情報処理システム。   3. The information according to claim 2, wherein the communication control process alternately transmits a status notification command issued by the status monitoring process and an operation command issued by each of the plurality of device control processes to the device. Processing system. 前記上位装置は、前記状態通知コマンドを格納する状態通知用FIFOバッファと前記動作コマンドを格納する機器制御用FIFOバッファとを備えていることを特徴とする請求項3記載の情報処理システム。   4. The information processing system according to claim 3, wherein the host device includes a status notification FIFO buffer for storing the status notification command and a device control FIFO buffer for storing the operation command. 前記通信は、RS−232C方式であることを特徴とする請求項1から4のいずれか記載の情報処理システム。   The information processing system according to claim 1, wherein the communication is an RS-232C system. 上位装置と前記上位装置からの指令に従って処理を実行するデバイスとの通信を介して所定の機器制御を実行する情報処理方法であって、
前記上位装置と前記デバイスとの間で通信制御を行うためのアプリケーションプログラムに従って前記上位装置と前記デバイスとの間で通信を確立する通信制御プロセスを前記上位装置に実行させ、
所定の動作処理を行うための各アプリケーションプログラムに従って前記デバイスを動作する機器制御プロセスを順に前記上位装置に実行させるものであって、
前記通信制御プロセスは、前記デバイスとの通信を確立した状態で、前記複数の機器制御プロセスとのプロセス間通信を行うことを特徴とする情報処理方法。
An information processing method for executing predetermined device control via communication between a host device and a device that executes processing according to a command from the host device,
A communication control process for establishing communications between said host device device in accordance with an application program for controlling communication between the between the host system device to execute the host device,
Be one order to be executed on the host system device control process for operating the device according to the application program for performing a predetermined operation process,
The information processing method , wherein the communication control process performs inter-process communication with the plurality of device control processes in a state where communication with the device is established .
前記通信制御プロセスは、前記デバイスの状態を監視するための状態監視用アプリケーションプログラムに従って前記デバイスの状態を監視する状態監視プロセスを、前記デバイスとの通信を確立した状態で、前記状態監視プロセスとのプロセス間通信を行い、前記状態監視プロセスと前記複数の機器制御プロセスの各々とを交互に実行させることを特徴とする請求項6記載の情報処理方法。 Wherein the communication control process, the state monitoring process to monitor the state of the device according to the state monitoring the application program for monitoring the status of the device, while establishing communication with the device, and the state monitoring process The information processing method according to claim 6 , wherein inter-process communication is performed to alternately execute the state monitoring process and each of the plurality of device control processes. 前記通信制御プロセスは、前記状態監視プロセスが発行する状態通知コマンドと前記複数の機器制御プロセスの各々が発行する動作コマンドとを交互に前記デバイスに送信することを特徴とする請求項7記載の情報処理方法。   8. The information according to claim 7, wherein the communication control process alternately transmits a status notification command issued by the status monitoring process and an operation command issued by each of the plurality of device control processes to the device. Processing method. 前記上位装置は、前記状態通知コマンドを格納する状態通知用FIFOバッファと前記動作コマンドを格納する機器制御用FIFOバッファとを備えていることを特徴とする請求項8記載の情報処理方法。   9. The information processing method according to claim 8, wherein the host device includes a status notification FIFO buffer for storing the status notification command and a device control FIFO buffer for storing the operation command.
JP2013073798A 2013-03-29 2013-03-29 Information processing system and information processing method Active JP6168650B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2013073798A JP6168650B2 (en) 2013-03-29 2013-03-29 Information processing system and information processing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2013073798A JP6168650B2 (en) 2013-03-29 2013-03-29 Information processing system and information processing method

Publications (2)

Publication Number Publication Date
JP2014199484A JP2014199484A (en) 2014-10-23
JP6168650B2 true JP6168650B2 (en) 2017-07-26

Family

ID=52356368

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2013073798A Active JP6168650B2 (en) 2013-03-29 2013-03-29 Information processing system and information processing method

Country Status (1)

Country Link
JP (1) JP6168650B2 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2020009015A (en) * 2018-07-04 2020-01-16 日本電産サンキョー株式会社 Information processing system, information processing unit, and information processing method
JP7303061B2 (en) 2019-01-10 2023-07-04 モベンシス株式会社 Motion control program, motion control method and motion control device
JP7303132B2 (en) * 2019-01-10 2023-07-04 モベンシス株式会社 Motion control program, motion control method and motion control device
JP7303131B2 (en) 2019-01-23 2023-07-04 モベンシス株式会社 Motion control program, motion control method and motion control device

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH02210567A (en) * 1989-02-10 1990-08-21 Tohoku Nippon Denki Software Kk Input/output control system
JPH03242748A (en) * 1990-02-21 1991-10-29 Nec Corp General bus control system
JPH052468A (en) * 1991-02-13 1993-01-08 Oki Electric Ind Co Ltd Buffer memory management system
JP2005309511A (en) * 2004-04-16 2005-11-04 Canon Inc Information processor, status acquisition method and program
JP4725955B2 (en) * 2005-06-30 2011-07-13 株式会社リコー Information processing apparatus, message management method, program, and storage medium

Also Published As

Publication number Publication date
JP2014199484A (en) 2014-10-23

Similar Documents

Publication Publication Date Title
JP6168650B2 (en) Information processing system and information processing method
KR100456180B1 (en) A peripheral device and control method thereof
EP3190509B1 (en) Network system
JP6406466B1 (en) Control device, control method, and control program
JP2006285810A5 (en)
TWI484346B (en) Network adaptor optimization and interrupt reduction
WO2019006902A1 (en) Goods inventory method and system
EP2904765B1 (en) Method and apparatus using high-efficiency atomic operations
JP3282599B2 (en) Command queue controller
JP5987797B2 (en) Information processing apparatus and program
CN101256540B (en) Method and system for directly starting setting of interrupting initiative right
US20130185726A1 (en) Method for Synchronous Execution of Programs in a Redundant Automation System
CN101329580A (en) A task management control apparatus and method
CN103995789A (en) Direct memory access achievement system and method
KR102211200B1 (en) Dual PLC Control System Based on Multi Core Processor
JP2016091179A (en) Central monitoring control system, server device, method for creating detection information, and detection information creation program
CN107590100A (en) A kind of internuclear data interactive method of polycaryon processor
JP2006172218A (en) Computer system and system monitoring program
TW436718B (en) Factory automation data management system and method
JP2010258549A (en) Power source management program and power source management system
JP2003067014A (en) Communication system in monitoring system
JP4961015B2 (en) Automatic transaction apparatus, automatic transaction apparatus control program, recording medium, and automatic transaction apparatus control method
JP2007072980A (en) Computer control system
WO2016151654A1 (en) Parallel processing system
JP5844134B2 (en) Multiprocessor device and control method of multiprocessor device

Legal Events

Date Code Title Description
RD01 Notification of change of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7421

Effective date: 20150609

RD02 Notification of acceptance of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7422

Effective date: 20150622

RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20150622

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20160205

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20161124

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20161207

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20170205

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20170623

R150 Certificate of patent or registration of utility model

Ref document number: 6168650

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150