[go: up one dir, main page]

JP2023004019A - Data reference system, data reference device, data reference method, and data reference program - Google Patents

Data reference system, data reference device, data reference method, and data reference program Download PDF

Info

Publication number
JP2023004019A
JP2023004019A JP2021105474A JP2021105474A JP2023004019A JP 2023004019 A JP2023004019 A JP 2023004019A JP 2021105474 A JP2021105474 A JP 2021105474A JP 2021105474 A JP2021105474 A JP 2021105474A JP 2023004019 A JP2023004019 A JP 2023004019A
Authority
JP
Japan
Prior art keywords
request
response
data
unit
communication control
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.)
Granted
Application number
JP2021105474A
Other languages
Japanese (ja)
Other versions
JP7809458B2 (en
Inventor
直哉 大西
Naoya Onishi
拓紀 松山
Hiroki Matsuyama
博司 中谷
Hiroshi Nakatani
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.)
Toshiba Corp
Toshiba Infrastructure Systems and Solutions Corp
Original Assignee
Toshiba Corp
Toshiba Infrastructure Systems and Solutions 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 Toshiba Corp, Toshiba Infrastructure Systems and Solutions Corp filed Critical Toshiba Corp
Priority to JP2021105474A priority Critical patent/JP7809458B2/en
Publication of JP2023004019A publication Critical patent/JP2023004019A/en
Application granted granted Critical
Publication of JP7809458B2 publication Critical patent/JP7809458B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Devices For Checking Fares Or Tickets At Control Points (AREA)

Abstract

【課題】複数の要求を同時に処理すること。【解決手段】実施形態に係るデータ参照システムであって、データ参照装置と、データベース装置と、を備え、前記データ参照装置は、第1の参照要求パケットを受信した場合、第1の通信部に、前記第1の参照要求パケットに基づいて第1の参照要求を前記データベース装置に送信させ、前記第1の参照要求に応答した結果である第1の参照応答を受信させ、前記第1の参照応答を受信する前に第2の参照要求パケットを受信した場合に、第2の参照要求パケットに基づいて第2の参照要求を前記データベース装置に送信させ、前記第2の参照要求に応答した結果の第2の参照応答を受信させる第1の通信制御部を備える。【選択図】 図1A system and method for processing multiple requests simultaneously. A data reference system according to an embodiment, comprising a data reference device and a database device, wherein the data reference device, when receiving a first reference request packet, sends a causing the database device to transmit a first reference request based on the first reference request packet, receiving a first reference response that is a result of responding to the first reference request, and When a second reference request packet is received before a response is received, a second reference request is transmitted to the database device based on the second reference request packet, and a result of responding to the second reference request a first communication control unit configured to receive a second reference response from the [Selection diagram] Fig. 1

Description

本発明の実施形態は、データ参照システム、データ参照装置、データ参照方法、及びデータ参照プログラムに関する。 TECHNICAL FIELD Embodiments of the present invention relate to a data reference system, a data reference device, a data reference method, and a data reference program.

クライアントサーバシステムにおいて、短時間でデータベース上のデータを参照することが望まれている。例えば、有料道路におけるETCシステムにおいて、中央サーバで料金の計算をする場合、一定時間以内に中央サーバ側のデータベースから料金を参照し、クライアントである料金所装置に料金情報を送信する必要が有る。 In a client-server system, it is desired to refer to data on a database in a short time. For example, in an ETC system for toll roads, when the central server calculates tolls, it is necessary to refer to the tolls from the database on the central server side within a certain period of time and transmit the toll information to the client tollgate device.

特開2020-087337号公報JP 2020-087337 A

データベースサーバに複数回の参照要求を送信すると、データの参照に時間を要する。これは、多数のクライアントがデータベースサーバに記憶された複数のテーブルを参照するよう要求すると、1つ目のデータの参照に対する応答を待ってから次のデータの要求を行う必要が有るからである。この場合、データ参照に要する時間が大きくなり、多数のクライアントからの要求を処理することが出来ない。そのため、多数のクライアントからの要求を処理可能な手法が求められている。 If multiple reference requests are sent to the database server, it takes time to reference the data. This is because when many clients request to refer to multiple tables stored in the database server, it is necessary to wait for a response to the first data reference before requesting the next data. In this case, the time required for data reference increases, and requests from a large number of clients cannot be processed. Therefore, there is a demand for a technique that can process requests from a large number of clients.

また、一般的なRDB(Relational Data Base)では、複数テーブルを連結して参照することが出来るが、連結するテーブルのデータ量が大きい場合、連結処理に時間が掛かり、データの参照に時間を要する。また、データベースに要求するクエリと呼ばれる命令文が複雑化する。そのため、平易なクエリでデータを参照可能にすることも求められている。 Also, in a general RDB (Relational Data Base), multiple tables can be linked and referenced, but if the amount of data in the linked tables is large, the linking process will take time, and it will take time to refer to the data. . In addition, a statement called a query to request the database becomes complicated. Therefore, it is also required to be able to refer to data with a simple query.

実施形態に係るデータ参照システムは、データ参照装置と、前記データ参照装置に接続されたデータベース装置と、を備え、前記データ参照装置は、第1の参照要求パケットを受信した場合、第1の通信部に、前記第1の参照要求パケットに基づいて第1の参照要求を前記データベース装置に送信させ、前記第1の参照要求に応答した結果である第1の参照応答を受信させ、前記第1の参照応答を受信する前に第2の参照要求パケットを受信した場合に、第2の参照要求パケットに基づいて第2の参照要求を前記データベース装置に送信させ、前記第2の参照要求に応答した結果の第2の参照応答を受信させる第1の通信制御部を備え、前記データベース装置は、前記第1の参照要求及び前記第2の参照応答それぞれに対応する第1のテーブル及び第2のテーブルを参照して、前記第1の参照応答及び前記第2の参照応答を出力する要求処理部と、第2の通信部に、前記第1の参照応答及び前記第2の参照応答を前記データ参照装置に送信させる第2の通信制御部と、を備えるものである。 A data reference system according to an embodiment includes a data reference device and a database device connected to the data reference device, wherein the data reference device receives a first reference request packet, performs a first communication cause a unit to transmit a first reference request to the database device based on the first reference request packet, receive a first reference response as a result of responding to the first reference request, and causes the database device to transmit a second reference request based on the second reference request packet, and responds to the second reference request a first communication control unit configured to receive a second reference response as a result of the processing, wherein the database device includes a first table and a second table corresponding to the first reference request and the second reference response, respectively; a request processing unit that refers to a table and outputs the first reference response and the second reference response; and a second communication unit that transmits the first reference response and the second reference response to the data. and a second communication control unit that causes the reference device to transmit.

図1は、実施形態に係るデータ参照システムの概略構成の一例を示す図である。FIG. 1 is a diagram showing an example of a schematic configuration of a data reference system according to an embodiment. 図2は、実施形態に係るデータベース装置の構成例を示すブロック図である。FIG. 2 is a block diagram showing a configuration example of the database device according to the embodiment. 図3は、実施形態に係るデータ参照装置の構成例を示すブロック図である。FIG. 3 is a block diagram showing a configuration example of the data reference device according to the embodiment. 図4は、実施形態に係るクライアント装置の構成例を示すブロック図である。FIG. 4 is a block diagram illustrating a configuration example of a client device according to the embodiment; 図5は、図1に示されるデータ参照システムの処理手順の一例を示すシーケンス図である。FIG. 5 is a sequence diagram showing an example of a processing procedure of the data reference system shown in FIG. 1; 図6は、入力値Xから中間値Yを経由して出力値Zを出力する例を示す図である。FIG. 6 is a diagram showing an example of outputting an output value Z from an input value X via an intermediate value Y. FIG. 図7は、有料道路の料金収受システムにおける入力値Xから中間値Yを経由して出力値Zを出力する例を示す図である。FIG. 7 is a diagram showing an example of outputting an output value Z from an input value X via an intermediate value Y in a toll road toll collection system. 図8は、カードIDと入口IDとが組になったテーブルの例を示す図である。FIG. 8 is a diagram showing an example of a table in which card IDs and entrance IDs are paired. 図9は、入口ID-出口IDと通行料金とが組になったテーブルの例を示す図である。FIG. 9 is a diagram showing an example of a table in which an entrance ID-exit ID and a toll are combined. 図10は、図5に示すシーケン図のうちのステップST110A~ステップST117についてより詳細に示した図である。FIG. 10 shows in more detail steps ST110A to ST117 in the sequence diagram shown in FIG. 図11は、実施形態に係るデータ参照システムの概略構成の一例を示す図である。FIG. 11 is a diagram illustrating an example of a schematic configuration of a data reference system according to the embodiment; 図12は、路側装置のハードウェア構成の一例を示すブロック図である。FIG. 12 is a block diagram showing an example of the hardware configuration of the roadside device. 図13は、路側パケットの構成の一例を示す図である。FIG. 13 is a diagram showing an example of the configuration of a roadside packet. 図14は、路側応答パケットの構成の一例を示す図である。FIG. 14 is a diagram showing an example of the configuration of a roadside response packet. 図15は、図1に示されるデータ参照システムの処理手順の一例を示すシーケンス図である。15 is a sequence diagram showing an example of a processing procedure of the data reference system shown in FIG. 1; FIG. 図16は、各パケットのデータ構造の一例を示す図である。FIG. 16 is a diagram showing an example of the data structure of each packet. 図17は、ステップST301の処理によりデータ格納部13に記憶されたテーブルの一例を示す図である。FIG. 17 is a diagram showing an example of the table stored in the data storage section 13 by the process of step ST301. 図18は、ステップST315Bで参照する基本料金テーブルの一例を示す図である。FIG. 18 is a diagram showing an example of the basic charge table referred to in step ST315B. 図19は、ステップST315Cで参照する調整料金テーブルの一例を示す図である。FIG. 19 is a diagram showing an example of the adjustment fee table referred to in step ST315C.

以下、図面を参照しながらデータ参照システム、データ参照装置、データ参照方法、及びデータ参照プログラムについて詳細に説明する。なお、以下の実施形態では、同一の番号を付した部分については同様の動作を行うものとして、重ねての説明を省略する。 A data reference system, a data reference device, a data reference method, and a data reference program will be described in detail below with reference to the drawings. It should be noted that, in the following embodiments, the same numbered parts are assumed to perform the same operation, and redundant description will be omitted.

[第1の実施形態]
(構成)
図1は、実施形態に係るデータ参照システムの概略構成の一例を示す図である。
データ参照システムは、データベース装置10、データ参照装置20、及びクライアント装置40A、クライアント装置40B、・・・、クライアント装置Mを備える。ここで、Mは、1以上の任意の整数である。当該データ参照システムは、クライアントサーバ型のETCシステム、駅の改札システム、工場の制御監視システム等である。また、以下の説明において、クライアント装置40A、クライアント装置40B、・・・、クライアント装置40Mを区別する必要が無い場合、単にクライアント装置40と記載する。
[First Embodiment]
(Constitution)
FIG. 1 is a diagram showing an example of a schematic configuration of a data reference system according to an embodiment.
The data reference system includes a database device 10, a data reference device 20, a client device 40A, a client device 40B, . Here, M is any integer greater than or equal to 1. The data reference system is a client-server type ETC system, a station ticket gate system, a factory control and monitoring system, or the like. Further, in the following description, the client device 40A, the client device 40B, .

データ参照装置20は、クライアント装置40とネットワーク31を介して接続される。また、データ参照装置20は、データベース装置10と接続される。ここで、データベース装置10とは、有線又は無線で直接接続されても良いし、ネットワーク31を介して接続されても良い。また、データ参照装置20及びデータベース装置10は、同一の装置内に配置されても良い。このようにデータ参照装置20とクライアント装置40とを物理的に近くに設置して、データの送受信を行うことにより、広域に配置されたクライアント装置40からデータベース装置10に直接複数回アクセスするのに比べ、データの送受信を高速に行うことが出来る。 The data reference device 20 is connected to the client device 40 via the network 31 . Also, the data reference device 20 is connected to the database device 10 . Here, the database device 10 may be directly connected by wire or wirelessly, or may be connected via the network 31 . Also, the data reference device 20 and the database device 10 may be arranged in the same device. By placing the data reference device 20 and the client device 40 physically close to each other and transmitting and receiving data in this manner, it is possible to directly access the database device 10 multiple times from the client devices 40 located in a wide area. Data can be sent and received at high speed.

ここで、ネットワーク31は、典型的にはインターネットを含む通信網である。ネットワーク31は、典型的にはWAN(wide area network)を含む通信網である。ネットワーク31は、イントラネットなどのプライベートネットワークを含む通信網であっても良い。ネットワーク31は、LAN(local area network)を含む通信網であっても良い。また、ネットワーク31は、無線回線でも良いし有線回線でも良く、無線回線と有線回線とが混在していても良い。また、ネットワーク31は、専用線又は公衆携帯電話網などを含む通信網であっても良い。 Here, the network 31 is typically a communication network including the Internet. The network 31 is typically a communication network including a WAN (wide area network). Network 31 may be a communication network including a private network such as an intranet. The network 31 may be a communication network including a LAN (local area network). The network 31 may be a wireless line, a wired line, or a mixture of wireless and wired lines. Also, the network 31 may be a communication network including a dedicated line or a public mobile telephone network.

データベース装置10は、データベースを記憶するサーバなどの装置である。あるいは、データベース装置10は、仮想サーバであっても良い。例えば、データベース装置10は、PostgreSQL又はMySQL等のリレーショナルデータベース管理システムであっても良いし、Redis(Remote Dictionary Sever)又はMongodb等などのNoSQLのデータベースシステムであっても良い。また、データベース装置10及びデータ参照装置20は、協働して、クライアントサーバモデルにおけるサーバとして機能する。 The database device 10 is a device such as a server that stores a database. Alternatively, the database device 10 may be a virtual server. For example, the database device 10 may be a relational database management system such as PostgreSQL or MySQL, or a NoSQL database system such as Redis (Remote Dictionary Sever) or Mongodb. Also, the database device 10 and the data reference device 20 cooperate to function as a server in a client-server model.

データベース装置10は、接続受付部11と、要求処理部12と、データ格納部13を備える。 The database device 10 includes a connection reception unit 11 , a request processing unit 12 and a data storage unit 13 .

接続受付部11は、データ参照装置20の接続を受け付ける。要求処理部12は、データ参照装置20から送信されてきた要求を処理する。さらに、データ格納部13は、要求処理部12が各種処理を行う際に参照するデータが格納される。 The connection reception unit 11 receives connection of the data reference device 20 . The request processing unit 12 processes requests sent from the data reference device 20 . Further, the data storage unit 13 stores data referred to when the request processing unit 12 performs various processes.

データ参照装置20は、第1の接続部21A、第2の接続部21B、・・・、第Nの接続部21Nと、第1の要求送信部22A、第2の要求送信部22B、・・・、第Nの要求送信部22Nと、第1の応答受信部23A、第2の応答受信部23B、・・・、第Nの応答受信部23Nと、要求受信部24と、応答送信部25と、接続受付部26と、を備える。ここで、Nは、2以上の任意の整数である。 The data reference device 20 includes a first connection unit 21A, a second connection unit 21B, . , Nth request transmission unit 22N, first response reception unit 23A, second response reception unit 23B, . . . , Nth response reception unit 23N, request reception unit 24, and response transmission unit 25 , and a connection reception unit 26 . Here, N is any integer equal to or greater than 2.

第1の接続部21A、第2の接続部21B、・・・、及び第Nの接続部21Nは、区別する必要が無い場合、単に接続部21と記載する。同様に、第1の要求送信部22A、第2の要求送信部22B、・・・、及び第Nの要求送信部22Nも区別する必要が無い場合、単に要求送信部22と記載し、第1の応答受信部23A、第2の応答受信部23B、・・・、第Nの応答受信部23Nも区別する必要が無い場合、単に応答受信部23と記載する。 The first connection portion 21A, the second connection portion 21B, . Similarly, when there is no need to distinguish between the first request transmission unit 22A, the second request transmission unit 22B, . , the second response receiver 23B, .

接続部21は、データベース装置10に接続する際に使用する。要求送信部22は、データベース装置10に参照要求等を送信する際に用いられる。応答受信部23は、データベース装置10に要求した処理結果の情報を含む参照応答を受信する際に用いられる。要求受信部24は、クライアント装置40から要求を受信し、第1の要求送信部22A等に当該要求を送信する際に用いられる。応答送信部25は、応答受信部23から参照応答を受信し、クライアント装置40に当該参照応答を送信する際に用いられる。接続受付部26は、クライアント装置40との接続を受け付ける際に用いられる。 The connection unit 21 is used when connecting to the database device 10 . The request transmission unit 22 is used when transmitting a reference request or the like to the database device 10 . The response receiving unit 23 is used when receiving a reference response including information on the processing result requested from the database device 10 . The request reception unit 24 is used when receiving a request from the client device 40 and transmitting the request to the first request transmission unit 22A or the like. The response transmission unit 25 is used when receiving a reference response from the response reception unit 23 and transmitting the reference response to the client device 40 . The connection accepting unit 26 is used when accepting a connection with the client device 40 .

クライアント装置40は、接続部41と、データ参照要求部42と、データ応答受信部43とを備える。 The client device 40 includes a connection section 41 , a data reference request section 42 and a data response reception section 43 .

接続部41は、データ参照装置20にネットワーク31を介して接続する。データ参照要求部42は、データベース装置10に送信してもらうべき処理要求をデータ参照装置20に送信する。データ応答受信部43は、データ参照装置20から送信された処理応答を受信する。 The connection unit 41 connects to the data reference device 20 via the network 31 . The data reference request unit 42 transmits to the data reference device 20 a processing request to be transmitted to the database device 10 . The data response receiving section 43 receives the processing response transmitted from the data reference device 20 .

なお、以下の説明において、クライアント装置40からデータ参照装置20に送信する処理要求を参照要求パケットと称し、データ参照装置20からクライアント装置40に送信される当該要求パケットを処理した結果を含む処理応答を応答パケットと称する。 In the following description, a processing request transmitted from the client device 40 to the data reference device 20 is referred to as a reference request packet, and a processing response including the result of processing the request packet transmitted from the data reference device 20 to the client device 40 is referred to as a reference request packet. is called a response packet.

図2は、実施形態に係るデータベース装置10の構成例を示すブロック図である。
データベース装置10は、CPU(Central Processing Unit)やMPU(Micro Processing Unit)等のプロセッサ101を有する。そして、このプロセッサ101に対し、記憶部102、通信部103、入出力IF104が、バス105を介して接続されている。
FIG. 2 is a block diagram showing a configuration example of the database device 10 according to the embodiment.
The database device 10 has a processor 101 such as a CPU (Central Processing Unit) or an MPU (Micro Processing Unit). A storage unit 102 , a communication unit 103 and an input/output IF 104 are connected to the processor 101 via a bus 105 .

記憶部102は、記憶媒体として、例えば、EPROM(Erasable Programmable Read Only Memory)、HDD(Hard Disk Drive)、SSD(Solid Sate Drive)等の随時書込み及び読出しが可能な不揮発性メモリと、ROM(Read Only Memory)等の不揮発性メモリとを組み合わせて使用することが出来る。記憶部102は、プロセッサ101が各種処理を実行するために必要なプログラムを格納している。 The storage unit 102 includes storage media such as EPROM (Erasable Programmable Read Only Memory), HDD (Hard Disk Drive), SSD (Solid Sate Drive), and other non-volatile memories that can be written and read at any time, and ROM (Read Only Memory) or other non-volatile memory can be used in combination. The storage unit 102 stores programs necessary for the processor 101 to execute various processes.

さらに記憶部102は、記憶媒体として、例えば、HDD、メモリカード等の随時書込み及び読出しが可能な不揮発性メモリと、RAM(Random Access Memory)等の揮発性メモリと、を組み合わせて使用したストレージを含む。例えば、データ格納部13は、記憶部102の一部である。したがって、記憶部102は、プロセッサ101が参照するデータ等を記憶する。 Further, the storage unit 102 uses, as a storage medium, a combination of a non-volatile memory such as an HDD and a memory card that can be written and read at any time, and a volatile memory such as a random access memory (RAM). include. For example, the data storage unit 13 is part of the storage unit 102 . Therefore, the storage unit 102 stores data and the like that the processor 101 refers to.

通信部103は、1つ以上の有線又は無線の通信モジュールを含む通信インタフェースである。例えば、通信部103は、管理サーバ30と有線又は無線接続する通信モジュールを含む。通信部103は、プロセッサ101の通信制御部1011の制御の下、データ参照装置20等との間で通信を行い、各種情報を送受信することが出来るものであれば一般的な通信インタフェースで良い。 The communication unit 103 is a communication interface including one or more wired or wireless communication modules. For example, the communication unit 103 includes a communication module for wired or wireless connection with the management server 30 . The communication unit 103 may be a general communication interface as long as it can communicate with the data reference device 20 or the like under the control of the communication control unit 1011 of the processor 101 and transmit and receive various information.

入出力インタフェース104は、入力部及び表示部が接続されている(なお、図2では、入出力IFとして示される)。 An input unit and a display unit are connected to the input/output interface 104 (indicated as an input/output IF in FIG. 2).

入力部は、例えば、マイク等の音声データを受信するデバイス、又は静電方式又は圧力方式を採用した入力検知シートにより、データベース装置10を管理する管理者によって入力された文字データを認識するデバイスである。 The input unit is, for example, a device that receives voice data such as a microphone, or a device that recognizes character data input by an administrator who manages the database device 10 using an input detection sheet that employs an electrostatic method or a pressure method. be.

表示部は、例えば液晶、有機EL(Electro Luminescence)、等を使用した表示デバイスであり、プロセッサ101から出力された信号に応じた音声、文字、及び画像等を表示する。 The display unit is, for example, a display device using liquid crystal, organic EL (Electro Luminescence), etc., and displays voice, characters, images, etc. according to the signal output from the processor 101 .

また、プロセッサ101は、要求処理部12及び通信制御部1011を備える。
通信制御部1011は、通信部103を通じて、データ参照装置20と各種情報を送受信する。
The processor 101 also includes a request processing unit 12 and a communication control unit 1011 .
The communication control unit 1011 transmits and receives various information to and from the data reference device 20 through the communication unit 103 .

図3は、実施形態に係るデータ参照装置20の構成例を示すブロック図である。
図3に示すようにデータ参照装置20は、CPUやMPU等のプロセッサ201を有する。そして、このプロセッサ201に対し、記憶部202、通信部203、入出力インタフェース204が、バス205を介して接続されている。
FIG. 3 is a block diagram showing a configuration example of the data reference device 20 according to the embodiment.
As shown in FIG. 3, the data reference device 20 has a processor 201 such as a CPU or MPU. A storage unit 202 , a communication unit 203 and an input/output interface 204 are connected to the processor 201 via a bus 205 .

記憶部202は、記憶媒体として、例えば、EPROM、HDD、SSD等の随時書込み及び読出しが可能な不揮発性メモリと、ROM等の不揮発性メモリとを組み合わせて使用することが出来る。記憶部202は、プロセッサ201が各種処理を実行するために必要なプログラムを格納している。 The storage unit 202 can use, as a storage medium, a combination of a non-volatile memory such as an EPROM, HDD, SSD, etc., which can be written and read at any time, and a non-volatile memory such as a ROM. The storage unit 202 stores programs necessary for the processor 201 to execute various processes.

さらに記憶部202は、記憶媒体として、例えば、HDD、メモリカード等の随時書込み及び読出しが可能な不揮発性メモリと、RAM等の揮発性メモリと、を組み合わせて使用したストレージを含む。記憶部202は、顔データベース、運賃情報、媒体から読取られた各種情報、及び設置された駅の情報等を記憶している。 Further, the storage unit 202 includes, as a storage medium, a storage that uses a combination of a non-volatile memory such as an HDD and a memory card that can be written and read at any time, and a volatile memory such as a RAM. The storage unit 202 stores a face database, fare information, various information read from the medium, information on the installed station, and the like.

通信部203は、1つ以上の有線又は無線の通信モジュールを含む通信インタフェースである。例えば、通信部203は、データベース装置10及びクライアント装置40と有線又は無線接続する通信モジュールを含む。通信部203は、通信制御部2011の制御の下、データベース装置10及びクライアント装置40等との間で通信を行い、各種情報を送受信することが出来るものであれば一般的な通信インタフェースで良い。 The communication unit 203 is a communication interface including one or more wired or wireless communication modules. For example, the communication unit 203 includes a communication module for wired or wireless connection with the database device 10 and the client device 40 . Under the control of the communication control unit 2011, the communication unit 203 may be a general communication interface as long as it can communicate with the database device 10, the client device 40, and the like, and transmit and receive various types of information.

また、接続部21、要求送信部22、応答受信部23、要求受信部24、応答送信部25、及び接続受付部26は、通信部203に含まれて良い。 Also, the connection unit 21 , the request transmission unit 22 , the response reception unit 23 , the request reception unit 24 , the response transmission unit 25 , and the connection reception unit 26 may be included in the communication unit 203 .

入出力インタフェース204には、入力部及び表示部が接続されている(なお、図3では、入出力IFとして示されている)。 An input unit and a display unit are connected to the input/output interface 204 (indicated as an input/output IF in FIG. 3).

入力部は、例えば、マイク等の音声データを受信するデバイス、又は静電方式又は圧力方式を採用した入力検知シートにより、データ参照装置20を管理する管理者によって入力された文字データを認識するデバイスである。 The input unit is, for example, a device that receives voice data such as a microphone, or a device that recognizes character data input by an administrator who manages the data reference device 20 by an input detection sheet that employs an electrostatic method or a pressure method. is.

表示部は、例えば液晶、有機EL、等を使用した表示デバイスであり、プロセッサ201から出力された信号に応じた音声、文字、及び画像等を表示する。 The display unit is a display device using liquid crystal, organic EL, or the like, for example, and displays voice, characters, images, and the like according to the signal output from the processor 201 .

プロセッサ201は、通信制御部2011を備える。
通信制御部2011は、通信部203を通じて、データベース装置10及びクライアント装置40と各種情報を送受信する。
The processor 201 has a communication control section 2011 .
The communication control unit 2011 transmits and receives various information to and from the database device 10 and the client device 40 through the communication unit 203 .

図4は、実施形態に係るクライアント装置40の構成例を示すブロック図である。
図4に示すようにクライアント装置40は、CPUやMPU等のプロセッサ401を有する。そして、このプロセッサ401に対し、記憶部402、通信部403、入出力インタフェース404が、バス405を介して接続されている。
FIG. 4 is a block diagram showing a configuration example of the client device 40 according to the embodiment.
As shown in FIG. 4, the client device 40 has a processor 401 such as a CPU or MPU. A storage unit 402 , a communication unit 403 and an input/output interface 404 are connected to the processor 401 via a bus 405 .

記憶部402は、記憶媒体として、例えば、EPROM、HDD、SSD等の随時書込み及び読出しが可能な不揮発性メモリと、ROM等の不揮発性メモリとを組み合わせて使用することが出来る。記憶部402は、プロセッサ401が各種処理を実行するために必要なプログラムを格納している。 The storage unit 402 can use, as a storage medium, a combination of a non-volatile memory such as an EPROM, HDD, SSD, etc., which can be written and read at any time, and a non-volatile memory such as a ROM. The storage unit 402 stores programs necessary for the processor 401 to execute various processes.

さらに記憶部402は、記憶媒体として、例えば、HDD、メモリカード等の随時書込み及び読出しが可能な不揮発性メモリと、RAM等の揮発性メモリと、を組み合わせて使用したストレージを含む。記憶部402は、顔データベース、運賃情報、媒体から読取られた各種情報、及び設置された駅の情報等を記憶している。 Further, the storage unit 402 includes, as a storage medium, a storage that uses a combination of a non-volatile memory such as an HDD and a memory card that can be written and read at any time, and a volatile memory such as a RAM. The storage unit 402 stores a face database, fare information, various information read from the medium, information on the installed station, and the like.

通信部403は、1つ以上の有線又は無線の通信モジュールを含む通信インタフェースである。例えば、通信部403は、データ参照装置20と有線又は無線接続する通信モジュールを含む。通信部403は、通信制御部4011の制御の下、データ参照装置20等との間で通信を行い、各種情報を送受信することが出来るものであれば一般的な通信インタフェースで良い。 The communication unit 403 is a communication interface including one or more wired or wireless communication modules. For example, the communication unit 403 includes a communication module that connects with the data reference device 20 by wire or wirelessly. The communication unit 403 may be a general communication interface as long as it can communicate with the data reference device 20 or the like under the control of the communication control unit 4011 and transmit and receive various information.

また、接続部41、データ参照要求部42、及びデータ応答受信部43は、通信部403に含まれて良い。 Also, the connection unit 41 , the data reference request unit 42 , and the data response reception unit 43 may be included in the communication unit 403 .

入出力インタフェース404には、入力部及び表示部が接続されている(なお、図4では、入出力IFとして示されている)。 An input unit and a display unit are connected to the input/output interface 404 (indicated as an input/output IF in FIG. 4).

入力部は、例えば、マイク等の音声データを受信するデバイス、又は静電方式又は圧力方式を採用した入力検知シートにより、クライアント装置40を管理する管理者によって入力された文字データを認識するデバイスである。 The input unit is, for example, a device that receives voice data such as a microphone, or a device that recognizes character data input by an administrator who manages the client device 40 using an input detection sheet that employs an electrostatic method or a pressure method. be.

表示部は、例えば液晶、有機EL、等を使用した表示デバイスであり、プロセッサ401から出力された信号に応じた音声、文字、及び画像等を表示する。 The display unit is a display device using liquid crystal, organic EL, or the like, for example, and displays sounds, characters, images, and the like according to signals output from the processor 401 .

プロセッサ401は、通信制御部4011を備える。
通信制御部4011は、通信部403を通じて、データ参照装置20と各種情報を送受信する。
The processor 401 has a communication control section 4011 .
The communication control unit 4011 transmits and receives various information to and from the data reference device 20 through the communication unit 403 .

(動作)
図5は、図1に示されるデータ参照システムの処理手順の一例を示すシーケンス図である。データベース装置10、データ参照装置20、及びクライアント装置40のプロセッサ101、プロセッサ201、及びプロセッサ401がそれぞれ記憶部102、記憶部202、及び記憶部402に格納されたプログラムを読み出して実行することにより、このシーケンスの動作が実現される。
(motion)
FIG. 5 is a sequence diagram showing an example of a processing procedure of the data reference system shown in FIG. 1; By the processors 101, 201, and 401 of the database device 10, the data reference device 20, and the client device 40 reading and executing the programs stored in the storage units 102, 202, and 402, respectively, This sequence of operations is implemented.

データ参照装置20の通信制御部2011は、接続部21を用いてデータベース装置10に接続要求のパケットを送信する(ステップST101)。通信制御部2011は、データベース装置10との接続を確立するため、接続部21を用いて接続要求を含むパケットをデータベース装置10に送信する。ここで、接続部21が複数、例えば、図1に示すようにN個有る場合、通信制御部2011は、第1の接続部21A、第2の接続部21B、・・・、第Nの接続部21Nそれぞれから接続要求のパケットを送信する。 The communication control unit 2011 of the data reference device 20 transmits a connection request packet to the database device 10 using the connection unit 21 (step ST101). The communication control unit 2011 uses the connection unit 21 to transmit a packet including a connection request to the database device 10 in order to establish connection with the database device 10 . Here, when there are a plurality of connection units 21, for example, N as shown in FIG. A connection request packet is transmitted from each of the units 21N.

データベース装置10の通信制御部1011は、接続受付を行う(ステップST102)。通信制御部1011は、接続受付部11を通じて接続要求を受信する。そして、当該要求に応じて、各接続部21と接続するための受付を行う。接続の受付は、例えば、TCP/IPによる接続受付でも良いし、UDP/IP等によって独自に実装した接続受付でも良い。 The communication control unit 1011 of the database device 10 accepts connection (step ST102). Communication control unit 1011 receives a connection request through connection reception unit 11 . Then, in response to the request, reception for connection with each connection unit 21 is performed. The reception of connection may be, for example, connection reception by TCP/IP, or connection reception independently implemented by UDP/IP or the like.

通信制御部1011は、接続応答をデータ参照装置20に送信する(ステップST103)。通信制御部1011は、接続受付に基づいてデータ参照装置20との接続を確立することを決定する。そして、通信制御部1011は、接続受付部11を通じて、接続を確立することを示す接続応答をデータ参照装置20に送信する。ここで、複数の接続部21から接続要求を受信した場合、各接続部21に接続応答を送信する。 Communication control section 1011 transmits a connection response to data reference device 20 (step ST103). The communication control unit 1011 determines to establish a connection with the data reference device 20 based on the connection acceptance. Then, the communication control unit 1011 transmits a connection response indicating establishment of connection to the data reference device 20 through the connection reception unit 11 . Here, when receiving connection requests from a plurality of connection units 21 , a connection response is transmitted to each connection unit 21 .

通信制御部2011は、データベース装置10との接続を確立する(ステップST104)。通信制御部2011は、各接続部21を通じて、接続応答を受信する。そして、通信制御部2011は、各接続応答に基づいて各接続部21に対してデータベース装置10との接続を確立する。 Communication control section 2011 establishes a connection with database device 10 (step ST104). The communication control section 2011 receives the connection response through each connection section 21 . Then, the communication control unit 2011 establishes a connection with the database device 10 for each connection unit 21 based on each connection response.

次に、クライアント装置40Aの通信制御部4011は、データ参照装置20に接続要求のパケットを送信する(ステップST105A)。通信制御部4011は、データ参照装置20との接続を確立するため、接続部41を用いて接続要求を含むパケットをデータ参照装置20に送信する。 Next, the communication control unit 4011 of the client device 40A transmits a connection request packet to the data reference device 20 (step ST105A). The communication control unit 4011 uses the connection unit 41 to transmit a packet including a connection request to the data reference device 20 in order to establish connection with the data reference device 20 .

データ参照装置20の通信制御部2011は、接続受付を行う(ステップST106A)。通信制御部2011は、接続受付部26を通じて接続要求を受信する。そして、当該要求に応じて、接続部41と接続するための受付を行う。接続の受付は、例えば、TCP/IPによる接続受付でも良いし、UDP/IP等によって独自に実装した接続受付でも良い。 Communication control section 2011 of data reference device 20 accepts connection (step ST106A). Communication control unit 2011 receives a connection request through connection reception unit 26 . Then, in response to the request, reception for connection with the connection unit 41 is performed. The reception of connection may be, for example, connection reception by TCP/IP, or connection reception independently implemented by UDP/IP or the like.

通信制御部2011は、接続応答をクライアント装置40Aに送信する(ステップST107A)。通信制御部2011は、接続受付に基づいてクライアント装置40Aとの接続を確立することを決定する。そして、通信制御部2011は、接続受付部26を通じて、接続を確立することを示す接続応答をクライアント装置40Aに送信する。 Communication control section 2011 transmits a connection response to client device 40A (step ST107A). The communication control unit 2011 determines to establish a connection with the client device 40A based on the connection acceptance. Then, the communication control unit 2011 transmits a connection response indicating establishment of connection to the client device 40A through the connection reception unit 26. FIG.

通信制御部4011は、データ参照装置20との接続を確立する(ステップST108A)。通信制御部4011は、接続部41を通じて、接続応答を受信する。そして、通信制御部4011は、接続応答に基づいて接続部41に対してデータ参照装置20との接続を確立する。 Communication control section 4011 establishes a connection with data reference device 20 (step ST108A). Communication control unit 4011 receives the connection response through connection unit 41 . Then, the communication control unit 4011 establishes a connection with the data reference device 20 to the connection unit 41 based on the connection response.

接続が確立された後、通信制御部2011は、要求受信部24及び応答送信部25に接続情報を送信する。接続情報は、例えば、データ参照装置20のオペレーティングシステムが管理するソケットディスクリプタ、クライアント装置40AのIPアドレスとポート番号の組等で良い。 After the connection is established, the communication control section 2011 transmits connection information to the request receiving section 24 and the response transmitting section 25 . The connection information may be, for example, a socket descriptor managed by the operating system of the data reference device 20, a set of the IP address and port number of the client device 40A, or the like.

クライアント装置40Bとデータ参照装置20との接続を確立するステップST105B~ステップST108Bは、クライアント装置40Aとデータ参照装置20との接続を確立するステップST105A~ステップST108と同様なため、ここでの説明を省略する。また、図5では、クライアント装置40A及びクライアント装置40Bの接続のみを示しているが、データ参照装置20との接続するクライアント装置40は、任意の数で良い。すなわち、クライアント装置40Aのみがデータ参照装置20と接続を確立しても良いし、M個のクライアント装置40が接続を確立しても良い。 Steps ST105B to ST108B for establishing a connection between the client device 40B and the data reference device 20 are the same as steps ST105A to ST108 for establishing a connection between the client device 40A and the data reference device 20. omitted. Also, although FIG. 5 shows only the connections between the client device 40A and the client device 40B, the number of client devices 40 connected to the data reference device 20 may be arbitrary. That is, only the client device 40A may establish connection with the data reference device 20, or M client devices 40 may establish connection.

また、データ参照装置20とデータベース装置10との接続の確立(ステップST101~ステップST104)とクライアント装置40とデータ参照装置20との接続の確立(ステップST105~ステップST108)は、順序を入れ替えても良い。すなわち、この2つの接続の確立は、順序を問わない。 Further, the establishment of the connection between the data reference device 20 and the database device 10 (steps ST101 to ST104) and the establishment of the connection between the client device 40 and the data reference device 20 (steps ST105 to ST108) may be reversed. good. That is, the order of establishing these two connections does not matter.

次に、クライアント装置40Aの通信制御部4011は、第1の参照要求パケットを出力する(ステップST109A)。ここで、第1の参照要求パケットは、データ参照装置20及びデータベース装置10によって処理されるべき情報である。例えば、データベース装置10は、第1の参照要求パケットに含まれる情報に基づいてデータ格納部13に格納されたテーブルを参照する。 Next, communication control section 4011 of client device 40A outputs a first reference request packet (step ST109A). Here, the first reference request packet is information to be processed by the data reference device 20 and the database device 10 . For example, the database device 10 refers to the table stored in the data storage unit 13 based on the information included in the first reference request packet.

通信制御部4011は、出力された第1の参照要求パケットをデータ参照装置20に送信する(ステップST110A)。通信制御部4011は、通信部403を通じて、出力された第1の参照要求パケットをデータ参照装置20に送信する。第1の参照要求パケットは、最初に参照すべき情報のみを含んでいても良いし、最初に参照すべき情報、2番目に参照すべき情報等、任意の数のデータベース装置10によって参照すべき情報を含んでいても良い。図5の例では、最初に参照すべき情報のみ、又は最初に参照すべき情報及び2番目に参照すべき情報を含むものとする。 Communication control section 4011 transmits the output first reference request packet to data reference device 20 (step ST110A). The communication control unit 4011 transmits the output first reference request packet to the data reference device 20 through the communication unit 403 . The first reference request packet may contain only the information to be referred to first, the information to be referred to first, the information to be referred to second, etc., which should be referred to by an arbitrary number of database devices 10. May contain information. In the example of FIG. 5, only information to be referred to first, or information to be referred to first and information to be referred second are included.

データ参照装置20の通信制御部2011は、第1の参照要求をデータベース装置10に送信する(ステップST111A)。通信制御部2011は、要求受信部24を通じて、第1の参照要求パケットを受信する。そして、通信制御部2011は、第1の要求送信部22Aを通じて、第1の参照要求パケットのうち、最初のデータベース装置10での参照に必要な情報を含む第1の参照要求を送信する。 Communication control section 2011 of data reference device 20 transmits a first reference request to database device 10 (step ST111A). The communication controller 2011 receives the first reference request packet through the request receiver 24 . Then, the communication control unit 2011 transmits the first reference request including the information necessary for the first reference in the database device 10 out of the first reference request packet through the first request transmission unit 22A.

データベース装置10の要求処理部12は、参照処理を行う(ステップST112A)。通信制御部1011は、通信部103を通じて第1の参照要求を受信し、受信した第1の参照要求を要求処理部12に出力する。要求処理部12は、第1の参照要求に従って、データ格納部13に記憶されたデータを参照して第1の参照応答を出力する。例えば、要求処理部12は、第1の参照要求に含まれる情報に対応するテーブルをデータ格納部13から取得する。取得したテーブルは、当該情報から1つの参照応答を取得可能なテーブルである。すなわち、要求処理部12は、第1の参照要求に基づいて第1の参照応答を通信制御部1011に出力する。 The request processing unit 12 of the database device 10 performs reference processing (step ST112A). The communication control unit 1011 receives the first reference request through the communication unit 103 and outputs the received first reference request to the request processing unit 12 . The request processing unit 12 refers to the data stored in the data storage unit 13 according to the first reference request and outputs a first reference response. For example, the request processing unit 12 acquires from the data storage unit 13 the table corresponding to the information included in the first reference request. The acquired table is a table from which one reference response can be acquired from the information. That is, the request processing unit 12 outputs the first reference response to the communication control unit 1011 based on the first reference request.

通信制御部1011は、第1の参照応答をデータ参照装置20に送信する(ステップST113A)。通信制御部1011は、通信部103を通じて、出力された第1の参照応答をデータ参照装置20に送信する。 Communication control section 1011 transmits the first reference response to data reference device 20 (step ST113A). The communication control unit 1011 transmits the output first reference response to the data reference device 20 through the communication unit 103 .

通信制御部2011は、第3の参照要求をデータベース装置10に送信する(ステップST114A)。通信制御部2011は、応答受信部23を通じて、第3の参照応答を受信する。そして、通信制御部2011は、要求送信部22を通じて、参照要求パケットのうち2番目に参照すべき情報及び第1の参照応答を含む第3の参照要求をデータベース装置10に送信する。 Communication control section 2011 transmits a third reference request to database device 10 (step ST114A). Communication control section 2011 receives the third reference response through response receiving section 23 . Then, the communication control unit 2011 transmits a third reference request including the second reference information and the first reference response in the reference request packet to the database device 10 through the request transmission unit 22 .

データベース装置10の要求処理部12は、参照処理を行う(ステップST115A)。通信制御部1011は、通信部103を通じて第3の参照要求を受信し、受信した第3の参照要求を要求処理部12に出力する。要求処理部12は、第3の参照要求に従って、データ格納部13に記憶されたデータを参照して第3の参照応答を出力する。例えば、要求処理部12は、第3の参照要求に含まれる情報に対応するテーブルをデータ格納部13から取得する。取得したテーブルは、当該情報から1つの参照応答を取得可能なテーブルである。すなわち、要求処理部12は、第3の参照要求に基づいて第3の参照応答を通信制御部1011に出力する。 The request processing unit 12 of the database device 10 performs reference processing (step ST115A). The communication control unit 1011 receives the third reference request through the communication unit 103 and outputs the received third reference request to the request processing unit 12 . The request processing unit 12 refers to the data stored in the data storage unit 13 according to the third reference request and outputs a third reference response. For example, the request processing unit 12 acquires from the data storage unit 13 the table corresponding to the information included in the third reference request. The acquired table is a table from which one reference response can be acquired from the information. That is, the request processing unit 12 outputs the third reference response to the communication control unit 1011 based on the third reference request.

通信制御部1011は、第3の参照応答をデータ参照装置20に送信する(ステップST116A)。通信制御部1011は、通信部103を通じて、出力された第3の参照応答をデータ参照装置20に送信する。 Communication control section 1011 transmits the third reference response to data reference device 20 (step ST116A). The communication control unit 1011 transmits the output third reference response to the data reference device 20 through the communication unit 103 .

通信制御部2011は、第3の参照応答を応答パケットとしてクライアント装置40Aに送信する(ステップST117A)。通信制御部2011は、応答受信部23を通じて、第3の参照応答を受信する。そして、通信制御部2011は、応答送信部25を通じて、第3の参照応答を応答パケットとしてクライアント装置40に送信する。 Communication control section 2011 transmits the third reference response as a response packet to client device 40A (step ST117A). Communication control section 2011 receives the third reference response through response receiving section 23 . Then, the communication control unit 2011 transmits the third reference response as a response packet to the client device 40 through the response transmission unit 25 .

また、ステップST105B~ステップST117Bはそれぞれ、ステップST105A~ステップST117Aと同様の動作のため、説明を省略する。 Further, steps ST105B to ST117B are the same as steps ST105A to ST117A, respectively, so description thereof will be omitted.

ここで、図5に示すように、第1の参照要求をデータベース装置10に送信した後、第1の参照応答を受信する前に第2の参照要求パケットを受信した場合に、通信制御部2011は、要求送信部22を用いて、第2の参照要求パケットに基づいて第2の参照要求をデータベースに送信する。すなわち、第1の参照応答を受信するのを待つこと無く第2の参照要求をデータベース装置10に送信することが出来る。これにより、複数の要求を同時に処理することが可能になるため、任意の単位時間当たりの要求処理数であるスループットを大きくすることが出来る。 Here, as shown in FIG. 5, when the second reference request packet is received after the first reference request is transmitted to the database device 10 and before the first reference response is received, the communication control unit 2011 uses the request transmitting unit 22 to transmit the second reference request to the database based on the second reference request packet. That is, the second reference request can be sent to the database device 10 without waiting for the reception of the first reference response. As a result, it becomes possible to process a plurality of requests simultaneously, so that the throughput, which is the number of requests processed per arbitrary unit time, can be increased.

図6は、入力値Xから中間値Yを経由して出力値Zを出力する例を示す図である。図6は、ステップST111A~ステップST116Aまでの処理を一般的に示した図である。 FIG. 6 is a diagram showing an example of outputting an output value Z from an input value X via an intermediate value Y. FIG. FIG. 6 is a diagram generally showing the processing from step ST111A to step ST116A.

図6に示すように、クライアント装置40の通信制御部4011は、要求パケットである入力Xをデータ参照装置20に送信する。そして、データ参照装置20の通信制御部2011は、要求パケットのうちの最初の参照処理に必要な情報(図6の例では、入力値X)を含む第1の参照要求をデータベース装置10に送信する。要求処理部12は、入力値Xと中間値Y1とが組になったテーブルを参照し、中間値Y1を出力する。そして、通信制御部1011は、当該中間値Y1を含む第1の参照応答をデータ参照装置20に送信する。通信制御部2011は、中間値Y1を含む第3の参照要求をデータベース装置10に送信する。要求処理部12は、当該中間値Y1と中間値Y2とが組になったテーブルを参照して中間値Y2を出力する。そして、通信制御部1011は、当該中間値Y2を含む第3の参照応答をデータ参照装置20に送信する。このように、参照要求、参照処理、及び参照応答を複数回、例えば、N回繰り返す。ここで、Nは、2以上の任意の整数値である。そして、通信制御部1011は、N回繰り返した中間値YN、すなわち出力値Zを含む第Nの参照応答をデータ参照装置20に送信する。そして、通信制御部2011は、出力値Zを含む応答パケットをクライアント装置40に送信する。 As shown in FIG. 6 , the communication control unit 4011 of the client device 40 transmits an input X, which is a request packet, to the data reference device 20 . Then, the communication control unit 2011 of the data reference device 20 transmits to the database device 10 a first reference request including information (input value X in the example of FIG. 6) necessary for the first reference process in the request packet. do. The request processing unit 12 refers to a table in which the input value X and the intermediate value Y1 are combined, and outputs the intermediate value Y1. Then, the communication control unit 1011 transmits the first reference response including the intermediate value Y1 to the data reference device 20. FIG. The communication control unit 2011 transmits to the database device 10 a third reference request including the intermediate value Y1. The request processing unit 12 refers to a table in which the intermediate value Y1 and the intermediate value Y2 are paired and outputs the intermediate value Y2. Then, the communication control unit 1011 transmits a third reference response including the intermediate value Y2 to the data reference device 20. FIG. In this way, reference request, reference processing, and reference response are repeated multiple times, for example, N times. Here, N is any integer value of 2 or more. Then, the communication control unit 1011 transmits the intermediate value YN repeated N times, that is, the Nth reference response including the output value Z to the data reference device 20 . The communication control unit 2011 then transmits a response packet including the output value Z to the client device 40 .

図7は、有料道路の料金収受システムにおける入力値Xから中間値Yを経由して出力値Zを出力する例を示す図である。
図7(a)に示すように、参照要求パケットは、カードID及び出口料金所に設置された路側装置の識別子である出口IDを含む。カードIDは、例えば、車両の車載器に挿入されたETCカードのカードIDである。そして、例えば、入口料金所等に配置された路側装置(クライアント装置40)が車載器と通信することにより、取得可能である。通信制御部4011は、図7(b)に示すように、クライアント装置40から受信した参照要求パケットのうちの最初の参照処理に必要なカードIDを含む第1の参照要求をデータベース装置10に送信する。要求処理部12は、図7(c)に示すように、カードIDと入口IDとが組になったテーブルを参照して入口IDを含む第1の参照応答を出力する。ここで、入口IDは、車両が有料道路に進入した料金所に設置された路側装置(クライアント装置40)から取得したものであり、事前にデータベース装置10の記憶部102に記憶されているものとする。
FIG. 7 is a diagram showing an example of outputting an output value Z from an input value X via an intermediate value Y in a toll road toll collection system.
As shown in FIG. 7A, the reference request packet includes a card ID and an exit ID, which is an identifier of the roadside device installed at the exit toll gate. The card ID is, for example, the card ID of the ETC card inserted into the onboard equipment of the vehicle. For example, the information can be acquired by a roadside device (client device 40) placed at an entrance tollgate or the like, communicating with the vehicle-mounted device. The communication control unit 4011, as shown in FIG. 7B, transmits to the database device 10 a first reference request including the card ID required for the first reference process in the reference request packet received from the client device 40. do. The request processing unit 12 outputs a first reference response including the entrance ID by referring to a table in which card IDs and entrance IDs are paired, as shown in FIG. 7(c). Here, the entrance ID is obtained from the roadside device (client device 40) installed at the toll booth where the vehicle enters the toll road, and is stored in the storage unit 102 of the database device 10 in advance. do.

図8は、カードIDと入口IDとが組になったテーブルの例を示す図である。
図8に示すように、例えば、カードIDが000001である場合、カードID000001を車載器に挿入した車両は、入口IDが1001である料金所から有料道路に入場したことを示す。
FIG. 8 is a diagram showing an example of a table in which card IDs and entrance IDs are paired.
As shown in FIG. 8, for example, when the card ID is 000001, the vehicle with the card ID 000001 inserted into the on-vehicle device enters the toll road through the toll gate with the entrance ID 1001. FIG.

通信制御部2011は、図7(d)に示すように、第1の参照応答に含まれる入口ID及び要求パケットに含まれる出口IDを組み合わせた第3の参照要求(入口ID-出口ID)をデータベース装置10に送信する。要求処理部12は、図7(e)に示すように、入口ID-出口IDと通行料金とが組になったテーブルを参照して第3の参照応答を出力する。 As shown in FIG. 7(d), the communication control unit 2011 generates a third reference request (entrance ID−exit ID) by combining the entrance ID included in the first reference response and the exit ID included in the request packet. Send to the database device 10 . As shown in FIG. 7(e), the request processing unit 12 refers to the table in which the entrance ID-exit ID and the toll are combined, and outputs the third reference response.

図9は、入口ID-出口IDと通行料金とが組になったテーブルの例を示す図である。 FIG. 9 is a diagram showing an example of a table in which an entrance ID-exit ID and a toll are combined.

図9に示すように、例えば、経路を示す入口ID-出口IDが1001-1002である場合、通行料金は、500円であることを示す。 As shown in FIG. 9, for example, when the entrance ID-exit ID indicating the route is 1001-1002, the toll is 500 yen.

そして、通信制御部2011は、図7(f)に示すように、通行料金を含む応答パケットをクライアント装置40に送信する。 Then, the communication control unit 2011 transmits a response packet including the toll to the client device 40, as shown in FIG. 7(f).

図10は、図5に示すシーケン図のうちのステップST110A~ステップST117についてより詳細に示した図である。 FIG. 10 shows in more detail steps ST110A to ST117 in the sequence diagram shown in FIG.

通信制御部2011は、第1の参照要求パケットを受信する(ステップST201A)。通信制御部2011は、データ参照装置20の要求受信部24を通じて、要求パケットを受信する。ここで、例えば、第1の参照要求パケットは、図7に示したように、カードID及び出口IDを含む。 Communication control section 2011 receives the first reference request packet (step ST201A). The communication control unit 2011 receives request packets through the request reception unit 24 of the data reference device 20 . Here, for example, the first reference request packet includes card ID and exit ID as shown in FIG.

通信制御部2011は、第1の要求送信部22Aに第1の参照要求パケットを転送する(ステップST202A)。 Communication control section 2011 transfers the first reference request packet to first request transmission section 22A (step ST202A).

通信制御部2011は、第1の参照要求をデータベース装置10に送信する(ステップST203A)。通信制御部2011は、第1の要求送信部22Aを通じて、第1の参照要求パケットに含まれるカードIDを含む第1の参照要求をデータベース装置10に送信する。 Communication control section 2011 transmits the first reference request to database device 10 (step ST203A). The communication control unit 2011 transmits the first reference request including the card ID included in the first reference request packet to the database device 10 through the first request transmission unit 22A.

通信制御部2011は、第1の要求送信部22Aから次要求用データを第2の要求送信部22Bに転送する(ステップST204A)。通信制御部2011は、第2の要求送信部22Bで用いるデータとして、要求パケットに含まれる出口IDを含む次要求用データを第2の要求送信部22Bに転送する。 Communication control section 2011 transfers the next request data from first request transmission section 22A to second request transmission section 22B (step ST204A). The communication control unit 2011 transfers the next request data including the exit ID included in the request packet to the second request transmission unit 22B as data used by the second request transmission unit 22B.

要求処理部12は、参照処理を行う(ステップST205A)。通信制御部1011は、通信部103を通じて、第1の参照要求を受信する。そして、通信制御部1011は、受信した第1の参照要求を要求処理部12に出力する。要求処理部12は、第1の参照要求及びデータ格納部13に格納されたテーブルを用いて参照処理を行う。例えば、要求処理部12は、カードIDと出口IDとが組になったテーブルを参照してカードIDに対応した出口IDを取得する。そして、要求処理部12は、入口IDを含む第1の参照応答を出力する。 The request processing unit 12 performs reference processing (step ST205A). Communication control section 1011 receives the first reference request through communication section 103 . The communication control unit 1011 then outputs the received first reference request to the request processing unit 12 . The request processing unit 12 performs reference processing using the first reference request and the table stored in the data storage unit 13 . For example, the request processing unit 12 acquires an exit ID corresponding to the card ID by referring to a table in which card IDs and exit IDs are paired. The request processing unit 12 then outputs a first reference response including the entrance ID.

通信制御部1011は、通信部103を通じて、第1の参照応答を第1の応答受信部23Aに送信する(ステップST206)。 Communication control section 1011 transmits the first reference response to first response receiving section 23A through communication section 103 (step ST206).

通信制御部2011は、第1の応答受信部23Aを用いて次要求用データを転送する(ステップST207A)。通信制御部2011は、第2の要求送信部22Bで用いるデータとして、第1の参照応答(入口ID)を含む次要求用データを第2の要求送信部22Bに転送する。 Communication control section 2011 transfers next request data using first response receiving section 23A (step ST207A). The communication control unit 2011 transfers next request data including the first reference response (entrance ID) to the second request transmission unit 22B as data used by the second request transmission unit 22B.

通信制御部2011は、第3の参照要求をデータベース装置10に送信する(ステップST208A)。通信制御部2011は、第2の要求送信部22Bを通じて、第1の要求送信部22Aから受信した出口ID及び第1の応答受信部23Aから受信した入口IDを含む第3の参照要求をデータベース装置10に送信する。 Communication control section 2011 transmits a third reference request to database device 10 (step ST208A). The communication control unit 2011 transmits a third reference request including the exit ID received from the first request transmission unit 22A and the entrance ID received from the first response reception unit 23A to the database device through the second request transmission unit 22B. Send to 10.

要求処理部12は、参照処理を行う(ステップST209A)。通信制御部1011は、通信部103を通じて、第3の参照要求を受信する。そして、通信制御部1011は、受信した第3の参照要求を要求処理部12に出力する。要求処理部12は、第3の参照要求及びデータ格納部13に格納されたテーブルを用いて参照処理を行う。例えば、要求処理部12は、入口ID及び出口IDと通行料金とが組になったテーブルを参照して入口IDに対応する入口料金所から出口IDに対応する出口料金所までの通行料金を取得する。そして、要求処理部12は、通行料金を含む第2の参照応答を出力する。 The request processing unit 12 performs reference processing (step ST209A). Communication control section 1011 receives the third reference request through communication section 103 . The communication control unit 1011 then outputs the received third reference request to the request processing unit 12 . The request processing unit 12 performs reference processing using the third reference request and the table stored in the data storage unit 13 . For example, the request processing unit 12 acquires the toll from the entrance toll gate corresponding to the entrance ID to the exit toll gate corresponding to the exit ID by referring to a table in which the entrance ID, the exit ID, and the toll are combined. do. The request processing unit 12 then outputs a second reference response including the toll.

通信制御部1011は、通信部103を通じて、第3の参照応答を第2の応答受信部23Bに送信する(ステップST210A)。 Communication control section 1011 transmits the third reference response to second response receiving section 23B through communication section 103 (step ST210A).

通信制御部2011は、応答送信部25に応答用データを転送する(ステップST211A)。通信制御部2011は、第2の応答受信部23Bを通じて、第3の参照応答を受信する。そして、通信制御部2011は、第2の応答受信部23Bを通じて、当該参照応答(通行料金)を含む応答用データを応答送信部25に送信する。 Communication control section 2011 transfers the response data to response transmission section 25 (step ST211A). The communication control unit 2011 receives the third reference response through the second response reception unit 23B. Then, the communication control unit 2011 transmits response data including the reference response (toll) to the response transmission unit 25 through the second response reception unit 23B.

通信制御部2011は、応答送信部25を通じて、応答パケットをクライアント装置40に送信する(ステップST2012A)。通信制御部2011は、応答送信部25を通じて、応答用データを受信する。そして、通信制御部2011は、応答送信部25を通じて、応答用データを含む応答パケットをクライアント装置40に送信する。 Communication control section 2011 transmits the response packet to client device 40 through response transmission section 25 (step ST2012A). The communication control unit 2011 receives response data through the response transmission unit 25 . The communication control unit 2011 then transmits a response packet including response data to the client device 40 through the response transmission unit 25 .

ステップST201B~ステップST212Bは、ステップST201A~ステップST212Aと同様の動作であるため、説明を省略する。 Since steps ST201B to ST212B are the same operations as steps ST201A to ST212A, description thereof will be omitted.

ここで、データベース装置10は、参照要求を受信すると参照処理を開始し、応答パケットをデータ参照装置20に送信する。当該処理は、FIFO(First-In First-Out)又はキューのように受信したデータ順に処理する方式である。 Here, upon receiving the reference request, the database device 10 starts reference processing and transmits a response packet to the data reference device 20 . The processing is a method of processing in order of received data like FIFO (First-In First-Out) or queue.

また、図10で示すように、第1の参照要求をデータベース装置10に送信した後、第1の参照応答を受信する前に第2の参照要求パケットを受信した場合に、通信制御部2011は、要求送信部22を用いて、第2の参照要求パケットに基づいて第2の参照要求をデータベースに送信する。すなわち、第1の参照応答を受信するのを待つこと無く第2の参照要求をデータベース装置10に送信することが出来る。これにより、複数の要求を同時に処理することが可能になるため、任意の単位時間当たりの要求処理数であるスループットを大きくすることが出来る。 Also, as shown in FIG. 10, when the second reference request packet is received after the first reference request is transmitted to the database device 10 and before the first reference response is received, the communication control unit 2011 , the request transmitting unit 22 is used to transmit the second reference request to the database based on the second reference request packet. That is, the second reference request can be sent to the database device 10 without waiting for the reception of the first reference response. As a result, it becomes possible to process a plurality of requests simultaneously, so that the throughput, which is the number of requests processed per arbitrary unit time, can be increased.

また、通信制御部2011は、複数のCPUを備え、通信部203を通じて、複数のCPUのうちの第1のCPUを用いて前記第1の参照要求を前記データベース装置10に送信し、前記複数のCPUのうちの第2のCPUを用いて前記第2の参照要求を前記データベース装置10に送信することも可能である。すなわち、各処理を複数のCPUのうちの1つによって処理させることにより、参照要求の送信及び参照応答の受信を並列に行うことが出来る。 Further, the communication control unit 2011 includes a plurality of CPUs, transmits the first reference request to the database device 10 using a first CPU among the plurality of CPUs through the communication unit 203, and It is also possible to send the second reference request to the database device 10 using a second CPU among the CPUs. In other words, sending reference requests and receiving reference responses can be performed in parallel by causing each process to be performed by one of the plurality of CPUs.

(第1の実施形態の作用効果)
以上説明した実施形態によれば、データ参照システムにおいて、クライアント装置40とデータベース装置10の間にデータ参照装置20を配置する。そして、第1の参照要求をデータベース装置10に送信した後、第1の参照応答を受信する前に第2の参照要求パケットを受信した場合に、通信制御部2011は、要求送信部22を用いて、第2の参照要求パケットに基づいて第2の参照要求をデータベースに送信する。これにより、複数の要求を同時に処理することが可能になるため、任意の単位時間当たりの要求処理数であるスループットを大きくすることが出来る。
(Action and effect of the first embodiment)
According to the embodiments described above, the data reference device 20 is arranged between the client device 40 and the database device 10 in the data reference system. After transmitting the first reference request to the database device 10, if the second reference request packet is received before receiving the first reference response, the communication control unit 2011 uses the request transmission unit 22 to and transmits a second reference request to the database based on the second reference request packet. As a result, it becomes possible to process a plurality of requests simultaneously, so that the throughput, which is the number of requests processed per arbitrary unit time, can be increased.

[第2の実施形態]
(構成)
図11は、実施形態に係るデータ参照システムの概略構成の一例を示す図である。
第1の実施形態と異なる点は、データ参照装置20が登録用接続部27及び登録送信部28を備える点、及びクライアント装置40が、入口料金所装置81、経路装置82、及び出口料金所装置83になっている点である。また、以下において、入口料金所装置81、経路装置82、及び出口料金所装置83を総称して路側装置80と総称する。
[Second embodiment]
(Constitution)
FIG. 11 is a diagram illustrating an example of a schematic configuration of a data reference system according to the embodiment;
The difference from the first embodiment is that the data reference device 20 includes a registration connection unit 27 and a registration transmission unit 28, and the client device 40 includes an entrance toll gate device 81, a route device 82, and an exit toll gate device. The point is that it is 83. In the following description, the entrance tollgate device 81, the route device 82, and the exit tollgate device 83 are collectively referred to as the roadside device 80. FIG.

登録用接続部27及び登録送信部28は、通信部203に含まれる。登録用接続部27は、データベース装置10にデータを登録するための接続を行う。また登録送信部28は、データベース装置10にデータを登録するパケットを送信する。 The registration connection unit 27 and the registration transmission unit 28 are included in the communication unit 203 . The registration connection unit 27 makes a connection for registering data in the database device 10 . The registration transmission unit 28 also transmits a packet for registering data in the database device 10 .

入口料金所装置81は、上位通信部84、制御部85、車両通信部86を備える。経路装置82及び出口料金所装置83も入口料金所装置81と同様に上位通信部84等を備えるが、図11では、省略している。 The entrance toll gate device 81 includes a host communication section 84 , a control section 85 and a vehicle communication section 86 . The route device 82 and the exit toll gate device 83 are also equipped with a host communication unit 84 and the like like the entrance toll gate device 81, but they are omitted in FIG.

図12は、路側装置80のハードウェア構成の一例を示すブロック図である。
路側装置80は、CPUやMPU等のプロセッサ801を有する。そして、このプロセッサ801に対し、記憶部802、通信部803、入出力IF804、車両検知部805、カメラ806、及びゲート807が、バス808を介して接続されている。また、プロセッサ801は、制御部85及び通信制御部8011を備える。
FIG. 12 is a block diagram showing an example of the hardware configuration of the roadside device 80. As shown in FIG.
The roadside device 80 has a processor 801 such as a CPU or MPU. A storage unit 802 , a communication unit 803 , an input/output IF 804 , a vehicle detection unit 805 , a camera 806 and a gate 807 are connected to the processor 801 via a bus 808 . The processor 801 also includes a control section 85 and a communication control section 8011 .

記憶部802は、記憶媒体として、例えば、EPROM、HDD、SSD等の随時書込み及び読出しが可能な不揮発性メモリと、ROM等の不揮発性メモリとを組み合わせて使用することが出来る。記憶部802は、プロセッサ801が各種処理を実行するために必要なプログラムを格納している。 The storage unit 802 can use, as a storage medium, a combination of a non-volatile memory such as an EPROM, HDD, SSD, etc., which can be written and read at any time, and a non-volatile memory such as a ROM. The storage unit 802 stores programs necessary for the processor 801 to execute various processes.

さらに記憶部802は、記憶媒体として、例えば、HDD、メモリカード等の随時書込み及び読出しが可能な不揮発性メモリと、RAM(Random Access Memory)等の揮発性メモリとを組み合わせて使用したストレージを含む。記憶部802は、プロセッサ801がプログラムを実行して各種処理を行う過程で取得及び生成されたデータを記憶することが可能である。 Further, the storage unit 802 includes, as a storage medium, for example, a storage that uses a combination of a non-volatile memory that can be written and read at any time, such as an HDD and a memory card, and a volatile memory such as a RAM (Random Access Memory). . The storage unit 802 can store data acquired and generated while the processor 801 executes the program and performs various processes.

通信部803は、上位通信部84、車両通信部86を備える。そして、通信部803は、通信制御部8011の制御の下、各装置と接続し、各種情報を送受信する。 The communication unit 803 includes an upper communication unit 84 and a vehicle communication unit 86 . Under the control of the communication control unit 8011, the communication unit 803 connects with each device and transmits and receives various information.

上位通信部84は、上位装置としてのデータ参照装置20と通信するための通信インタフェースである。例えば、上位通信部84は、ネットワーク31を通じて、データ参照装置20と無線接続する通信モジュールを含む。すなわち、上位通信部84は、通信制御部8011の制御の下、データ参照装置20との間で通信を行い、各種情報を送受信することが出来るものであれば一般的な通信部で良い。 The host communication unit 84 is a communication interface for communicating with the data reference device 20 as a host device. For example, the upper communication unit 84 includes a communication module that wirelessly connects with the data reference device 20 through the network 31 . That is, the upper communication unit 84 may be a general communication unit as long as it can communicate with the data reference device 20 under the control of the communication control unit 8011 and transmit and receive various information.

車両通信部86は、車両に搭載する車載器と無線通信する通信インタフェースである。車両通信部86は、路側装置80に接近する車両(すなわち有料道路に入場又は出場しようとする車両)に搭載された車載器と無線通信する。車両通信部86は、車載器と無線通信することにより、車載器に挿入されたETCカードのカード番号であるカードID及び有効期限を含む契約情報を取得しても良い。なお、車両通信部86は、車載器との通信により、車載器ID、車両の車種を示す車種情報、ナンバープレートについての情報等を含む各種情報を取得しても良いのは勿論である。すなわち、車両通信部86は、通信制御部8011の制御の下、車載器との間で通信を行い、各種情報を送受信することが出来るものであれば一般的な通信部で良い。 The vehicle communication unit 86 is a communication interface that wirelessly communicates with a vehicle-mounted device. The vehicle communication unit 86 wirelessly communicates with a vehicle-mounted device mounted on a vehicle approaching the roadside device 80 (that is, a vehicle about to enter or exit a toll road). The vehicle communication unit 86 may acquire the contract information including the card ID, which is the card number of the ETC card inserted in the vehicle-mounted device, and the expiration date, by wirelessly communicating with the vehicle-mounted device. The vehicle communication unit 86 may, of course, acquire various types of information including an on-board device ID, vehicle type information indicating the type of vehicle, information on a license plate, and the like, through communication with the on-board device. That is, the vehicle communication unit 86 may be a general communication unit as long as it can communicate with the vehicle-mounted device under the control of the communication control unit 8011 and transmit and receive various information.

入出力インタフェース804は、表示部及びスピーカ等を備える。表示部は、制御部85の制御の下、車両を運転する利用者等に通行料金を表示することが可能である。またスピーカは、制御部85の制御の下、例えば、車両を所定のレーンに音声によって誘導することが可能である。 The input/output interface 804 includes a display unit, a speaker, and the like. Under the control of the control unit 85, the display unit can display the toll to the user driving the vehicle. Further, the speaker can guide the vehicle to a predetermined lane by voice under the control of the control unit 85, for example.

車両検知部805は、車両が路側装置80に接近してきたことを検知する。例えば、車両検知部805は、制御部85の制御の下、レーザ光を照射し、車両等の物体で反射されるレーザ光の反射光を検知する。また、例えば、ループ式の車両検知部805は、可能な料金所の各レーンに進入する前の道路等に埋め込まれたループコイルを備える。車両検知部805は、制御部85の制御の下、車両がループコイル上を通り過ぎる際のインダクタンスの変化に基づいて車両を検知する。また、車両検知部805は、車両の挙動を自動で検知することが可能である。例えば、レーダー式の検知部は、レーダーの反射時のドップラー効果を利用して車速を測定する。 The vehicle detection unit 805 detects that a vehicle has approached the roadside device 80 . For example, the vehicle detection unit 805 emits laser light under the control of the control unit 85 and detects reflected light of the laser light reflected by an object such as a vehicle. Also, for example, the loop-type vehicle detection unit 805 includes a loop coil embedded in the road or the like before entering each lane of a possible toll booth. A vehicle detection unit 805 detects a vehicle based on a change in inductance when the vehicle passes over the loop coil under the control of the control unit 85 . Also, the vehicle detection unit 805 can automatically detect the behavior of the vehicle. For example, a radar detector measures vehicle speed using the Doppler effect when reflected by radar.

カメラ806は、制御部85の制御の下、車両を撮影し、撮影画像を出力する。また、カメラ806は、制御部85の制御の下、車両を継続的に撮影した撮影画像を出力しても良い。 The camera 806 photographs the vehicle under the control of the control unit 85 and outputs the photographed image. Under the control of the control unit 85, the camera 806 may output captured images of the vehicle continuously captured.

ゲート807は、料金所からの車両の有料道路への入場又は出場を制御する。ゲート807は、制御部85の制御の下、料金所の通路に設けられた発進制御バーを開閉する。例えば、ゲート807は、車両を一時停止させる場合あるいは車両の通行(入場又は出場)を不可とする場合、発進制御バーを閉じて車両の通行を物理的に阻止する。また、ゲート807は、車両の通行(入場又は出場)を許可する場合、発進制御バーを開放して車両の通過を許可する。 Gate 807 controls the entry or exit of vehicles from the toll booth to the toll road. The gate 807 opens and closes a start control bar provided in the passage of the toll gate under the control of the control unit 85 . For example, the gate 807 closes the start control bar to physically block vehicle traffic when temporarily stopping the vehicle or disallowing vehicle traffic (entrance or exit). In addition, the gate 807 permits passage of the vehicle by opening the start control bar when permitting passage (entrance or exit) of the vehicle.

また、路側装置80が経路装置82である場合、ゲート807は、設置しなくて良い。 Also, when the roadside device 80 is the route device 82, the gate 807 does not have to be installed.

入口料金所装置81及び経路装置82の通信制御部8011は、車両検知部805によって車両の通過を検知した場合、車両通信部86を用いて車両の車載器と各種情報を送受信する。そして、通信制御部8011は、得られた情報に基づいて路側通知パケットを生成し、上位通信部84を通じてデータ参照装置20に送信する。 When the vehicle detection unit 805 detects the passage of the vehicle, the communication control unit 8011 of the entrance toll gate device 81 and the route device 82 uses the vehicle communication unit 86 to transmit and receive various information to and from the onboard equipment of the vehicle. Then, the communication control unit 8011 generates a roadside notification packet based on the obtained information, and transmits it to the data reference device 20 through the upper communication unit 84 .

また、出口料金所装置83の通信制御部8011は、車両検知部805により車両の通過を検知した場合、車両通信部86を用いて車両の車載器と各種情報を送受信する。そひて、通信制御部8011は、得られた情報に基づいて路側通知パケットを生成し、上位通信部84を通じてデータ参照装置20に送信する。さらに、通信制御部8011は、上位通信部84を通じて路側応答パケットをデータ参照装置20から受信する。制御部85は、路側応答パケットの内容に応じて入出力インタフェース804を用いて通行料金を表示し、ゲート807を制御をする。 When the vehicle detection unit 805 detects the passage of the vehicle, the communication control unit 8011 of the exit toll gate device 83 uses the vehicle communication unit 86 to transmit and receive various information to and from the on-board device of the vehicle. Then, the communication control unit 8011 generates a roadside notification packet based on the obtained information and transmits it to the data reference device 20 through the upper communication unit 84 . Furthermore, the communication control unit 8011 receives a roadside response packet from the data reference device 20 through the upper communication unit 84 . The control unit 85 displays the toll using the input/output interface 804 according to the content of the roadside response packet, and controls the gate 807 .

図13は、路側パケットの構成の一例を示す図であり、図14は、路側応答パケットの構成の一例を示す図である。 FIG. 13 is a diagram showing an example of the configuration of a roadside packet, and FIG. 14 is a diagram showing an example of the configuration of a roadside response packet.

路側パケットは、カードID 90、路側装置を識別する路側装置ID 91、及びパケット種別92を備える。パケット種別92は、例えば、入口料金所装置81、経路装置82、及び出口料金所装置83を車両が通過したことを区別する情報を含む。 A roadside packet comprises a card ID 90 , a roadside device ID 91 for identifying the roadside device, and a packet type 92 . The packet type 92 includes, for example, information for distinguishing that the vehicle has passed through the entrance toll gate device 81, the route device 82, and the exit toll gate device 83. FIG.

路側応答パケットは、カードID 90、路側装置を識別する路側装置ID 91、パケット種別92、及び通行料金93を備える。また、路側パケットは、時刻情報や異常判定のグラフ等各種情報を含んでも良い。 The roadside response packet includes a card ID 90 , a roadside device ID 91 for identifying the roadside device, a packet type 92 , and a toll 93 . In addition, the roadside packet may include various information such as time information and a graph of abnormality determination.

(動作)
図15は、図1に示されるデータ参照システムの処理手順の一例を示すシーケンス図である。データベース装置10、データ参照装置20、及び路側装置80のプロセッサ101、プロセッサ201、及びプロセッサ801がそれぞれ記憶部102、記憶部202、及び記憶部802に格納されたプログラムを読み出して実行することにより、このシーケンスの動作が実現される。
(motion)
15 is a sequence diagram showing an example of a processing procedure of the data reference system shown in FIG. 1; FIG. By the processors 101, 201, and 801 of the database device 10, the data reference device 20, and the roadside device 80 reading and executing the programs stored in the storage units 102, 202, and 802, respectively, This sequence of operations is implemented.

入口料金所装置81の制御部85は、車両の通過を検知する(ステップST301)。制御部85は、車両検知部805を用いて、入口料金所に入場する車両を検知する。そして、通信制御部8011は、車両通信部86を用いて、車両と通信し、車両に配置された車載器に挿入されたETCカードのカードID等を取得する。 The controller 85 of the entrance tollgate device 81 detects the passage of the vehicle (step ST301). The control unit 85 uses the vehicle detection unit 805 to detect vehicles entering the entrance tollgate. Then, the communication control unit 8011 uses the vehicle communication unit 86 to communicate with the vehicle, and acquires the card ID and the like of the ETC card inserted in the vehicle-mounted device arranged in the vehicle.

制御部85は、路側通知パケットを出力する(ステップST302)。制御部85は、取得したカードID、入口料金所装置81を識別する入口ID、及びパケット種別を含む路側通知パケットを出力する。パケット種別は、車両が入口料金所装置81を通過したことを示す情報を含む。 Control section 85 outputs a roadside notification packet (step ST302). The control unit 85 outputs a roadside notification packet containing the acquired card ID, the entrance ID for identifying the entrance toll booth device 81, and the packet type. The packet type includes information indicating that the vehicle has passed through the entrance tollgate device 81 .

通信制御部8011は、上位通信部84を通じて、路側通知パケットをデータ参照装置20に送信する(ステップST303)。 The communication control section 8011 transmits the roadside notification packet to the data reference device 20 through the upper communication section 84 (step ST303).

通信制御部2011は、通信部203を通じて、登録要求を送信する(ステップST304)。通信制御部2011は、通信部203を通じて路側通知パケットを受信する。そして、プロセッサ201は、路側通知パケットに含まれるパケット種別から路側通知パケットが入口料金所装置81から送信されたものであると判断する。プロセッサ201は、路側通知パケットに含まれるカードID及び入口IDを含む登録要求を出力する。そして、通信制御部2011は、登録送信部28を通じて、登録要求をデータベース装置10に送信する。 Communication control section 2011 transmits a registration request through communication section 203 (step ST304). The communication control unit 2011 receives the roadside notification packet through the communication unit 203 . Then, the processor 201 determines that the roadside notification packet is transmitted from the entrance tollgate device 81 based on the packet type included in the roadside notification packet. The processor 201 outputs a registration request including the card ID and entrance ID included in the roadside notification packet. The communication control unit 2011 then transmits the registration request to the database device 10 through the registration transmission unit 28 .

図16は、各パケットのデータ構造の一例を示す図である。
図16(a)は、登録要求のデータ構造の一例を示す図である。図16(a)に示すように、登録要求は、カードID及び入口IDを含む。また、登録要求は、これのデータに限られず、任意のデータを含んで良いのは勿論である。
FIG. 16 is a diagram showing an example of the data structure of each packet.
FIG. 16(a) is a diagram showing an example of the data structure of a registration request. As shown in FIG. 16(a), the registration request includes the card ID and entrance ID. Also, the registration request is not limited to this data, and may of course include arbitrary data.

要求処理部12は、登録処理を行う(ステップST305)。通信制御部1011は、通信部103を通じて登録要求を受信する。そして、要求処理部12は、登録要求に含まれるカードIDと入口IDとが組となるテーブルとしてデータ格納部13に記憶する登録処理を行う。 The request processing unit 12 performs registration processing (step ST305). Communication control section 1011 receives the registration request through communication section 103 . Then, the request processing unit 12 performs registration processing to store in the data storage unit 13 a table in which the card ID and the entrance ID included in the registration request are combined.

その後、車両が入口料金所から入場して有料道を走行し、経路装置82を通過する。
経路装置82の制御部85は、車両の通過を検知する(ステップST306)。制御部85は、車両検知部805を用いて、経路装置82を通過する車両を検知する。そして、通信制御部8011は、車両通信部86を用いて、車両と通信し、車両に配置された車載器に挿入されたETCカードのカードID等を取得する。
After that, the vehicle enters from the entrance toll gate, travels on the toll road, and passes through the route device 82. - 特許庁
The control unit 85 of the route device 82 detects passage of the vehicle (step ST306). The control unit 85 uses the vehicle detection unit 805 to detect vehicles passing through the routing device 82 . Then, the communication control unit 8011 uses the vehicle communication unit 86 to communicate with the vehicle, and acquires the card ID and the like of the ETC card inserted in the vehicle-mounted device arranged in the vehicle.

制御部85は、路側通知パケットを出力する(ステップST307)。制御部85は、取得したカードID、経路装置82を識別する経路ID、及びパケット種別を含む路側通知パケットを出力する。パケット種別は、車両が経路装置82を通過したことを示す情報を含む。 The control section 85 outputs a roadside notification packet (step ST307). The control unit 85 outputs a roadside notification packet containing the acquired card ID, the route ID for identifying the route device 82, and the packet type. The packet type includes information indicating that the vehicle has passed through routing device 82 .

通信制御部8011は、上位通信部84を通じて、路側通知パケットをデータ参照装置20に送信する(ステップST308)。 The communication control section 8011 transmits the roadside notification packet to the data reference device 20 through the upper communication section 84 (step ST308).

通信制御部2011は、通信部203を通じて、登録要求を送信する(ステップST309)。通信制御部2011は、通信部203を通じて路側通知パケットを受信する。そして、プロセッサ201は、路側通知パケットに含まれるパケット種別から路側通知パケットが経路装置82から送信されたものであると判断する。プロセッサ201は、路側通知パケットに含まれるカードID及び経路IDを含む登録要求を出力する。そして、通信制御部2011は、登録送信部28を通じて、登録要求をデータベース装置10に送信する。 Communication control section 2011 transmits a registration request through communication section 203 (step ST309). The communication control unit 2011 receives the roadside notification packet through the communication unit 203 . Then, the processor 201 determines that the roadside notification packet has been transmitted from the routing device 82 based on the packet type contained in the roadside notification packet. The processor 201 outputs a registration request including the card ID and route ID included in the roadside notification packet. The communication control unit 2011 then transmits the registration request to the database device 10 through the registration transmission unit 28 .

図16(b)は、登録要求のデータ構造の一例を示す図である。図16(b)に示すように、登録要求は、カードID及び経路IDを含む。また、登録要求は、これのデータに限られず、任意のデータを含んで良いのは勿論である。 FIG. 16(b) is a diagram showing an example of the data structure of a registration request. As shown in FIG. 16(b), the registration request includes card ID and route ID. Also, the registration request is not limited to this data, and may of course include arbitrary data.

要求処理部12は、登録処理を行う(ステップST310)。通信制御部1011は、通信部103を通じて登録要求を受信する。そして、要求処理部12は、登録要求に含まれるカードIDと入口IDとが組になっているテーブルに経路IDを新たに加えたテーブルをデータ格納部13に記憶する登録処理を行う。 The request processing unit 12 performs registration processing (step ST310). Communication control section 1011 receives the registration request through communication section 103 . Then, the request processing unit 12 performs a registration process of storing, in the data storage unit 13, a table in which the route ID is newly added to the table in which the card ID and the entrance ID included in the registration request are paired.

図17は、ステップST301の処理によりデータ格納部13に記憶されたテーブルの一例を示す図である。図17に示すように、カードIDに対応した入口IDと経路IDとが参照可能なテーブルになっている。 FIG. 17 is a diagram showing an example of the table stored in the data storage section 13 by the process of step ST301. As shown in FIG. 17, the entrance ID and the route ID corresponding to the card ID are in a referable table.

その後、有料道路から退場するため出口料金所を通過しようとする。
出口料金所装置83制御部85は、車両の通過を検知する(ステップST311)。制御部85は、車両検知部805を用いて、経路装置82を通過する車両を検知する。そして、通信制御部8011は、車両通信部86を用いて、車両と通信し、車両に配置された車載器に挿入されたETCカードのカードID等を取得する。
It then attempts to pass through the exit toll booth to exit the toll road.
The exit tollgate device 83 control unit 85 detects the passage of the vehicle (step ST311). The control unit 85 uses the vehicle detection unit 805 to detect vehicles passing through the routing device 82 . Then, the communication control unit 8011 uses the vehicle communication unit 86 to communicate with the vehicle, and acquires the card ID and the like of the ETC card inserted in the vehicle-mounted device arranged in the vehicle.

制御部85は、路側通知パケットを出力する(ステップST312)。制御部85は、取得したカードID、出口料金所装置83を識別する出口ID、及びパケット種別を含む路側通知パケットを出力する。パケット種別は、車両が出口料金所装置83を通過したことを示す情報を含む。 The control unit 85 outputs a roadside notification packet (step ST312). The control unit 85 outputs a roadside notification packet including the acquired card ID, the exit ID for identifying the exit toll booth device 83, and the packet type. The packet type includes information indicating that the vehicle has passed the exit tollgate device 83 .

通信制御部8011は、上位通信部84を通じて、路側通知パケットをデータ参照装置20に送信する(ステップST313)。 The communication control section 8011 transmits the roadside notification packet to the data reference device 20 through the upper communication section 84 (step ST313).

通信制御部2011は、通信部203を通じて、第1の参照要求を送信する(ステップST314A)。通信制御部2011は、通信部203を通じて路側通知パケットを受信する。そして、プロセッサ201は、路側通知パケットに含まれるパケット種別から路側通知パケットが出口料金所装置83から送信されたものであると判断する。プロセッサ201は、路側通知パケットに含まれるカードIDを含む第1の参照要求を出力する。そして、通信制御部2011は、第1の要求送信部22Aを通じて、第1の参照要求を送信する。 Communication control section 2011 transmits the first reference request through communication section 203 (step ST314A). The communication control unit 2011 receives the roadside notification packet through the communication unit 203 . Then, the processor 201 determines that the roadside notification packet is transmitted from the exit tollgate device 83 based on the packet type included in the roadside notification packet. The processor 201 outputs a first reference request including the card ID included in the roadside notification packet. The communication control unit 2011 then transmits the first reference request through the first request transmission unit 22A.

図16(c)は、第1の参照要求のデータ構造の一例を示す図である。図16(c)に示すように、第1の参照要求は、カードIDを含む。また、第1の参照要求は、カードIDのみに限られず、任意のデータを含んで良いのは勿論である。 FIG. 16(c) is a diagram showing an example of the data structure of the first reference request. As shown in FIG. 16(c), the first reference request includes the card ID. Also, the first reference request is not limited to the card ID, and may of course include arbitrary data.

データベース装置10の要求処理部12は、参照処理を行う(ステップST315A)。通信制御部1011は、通信部103を通じて第1の参照要求を受信し、受信した第1の参照要求を要求処理部12に出力する。要求処理部12は、第1の参照要求に含まれるカードIDに従って、データ格納部13に記憶されたデータを参照して第1の参照応答を出力する。例えば、要求処理部12は、第1の参照要求に含まれる情報に対応するテーブルをデータ格納部13から取得する。取得したテーブルは、例えば、カードIDに関連付けられたテーブルである。要求処理部12は、取得したテーブルからカードIDと組になっている情報である入口ID及び経路IDを取得し、取得した情報を含む第1の参照応答を出力する。 The request processing unit 12 of the database device 10 performs reference processing (step ST315A). The communication control unit 1011 receives the first reference request through the communication unit 103 and outputs the received first reference request to the request processing unit 12 . The request processing unit 12 refers to the data stored in the data storage unit 13 according to the card ID included in the first reference request and outputs a first reference response. For example, the request processing unit 12 acquires from the data storage unit 13 the table corresponding to the information included in the first reference request. The acquired table is, for example, a table associated with card IDs. The request processing unit 12 acquires the entrance ID and the route ID, which are information paired with the card ID, from the acquired table, and outputs a first reference response including the acquired information.

図16(d)は、第1の参照応答のデータ構造の一例を示す図である。図16(d)に示すように、第1の参照応答は、入口ID及び経路IDを含む。 FIG. 16D is a diagram showing an example of the data structure of the first reference response. As shown in FIG. 16(d), the first reference response includes an entrance ID and a route ID.

通信制御部1011は、第1の参照応答をデータ参照装置20に送信する(ステップST316A)。通信制御部1011は、通信部103を通じて、出力された第1の参照応答をデータ参照装置20に送信する。 Communication control section 1011 transmits the first reference response to data reference device 20 (step ST316A). The communication control unit 1011 transmits the output first reference response to the data reference device 20 through the communication unit 103 .

通信制御部2011は、第2の参照要求をデータベース装置10に送信する(ステップST314B)。通信制御部2011は、応答受信部23を通じて、第1の参照応答を受信する。そして、通信制御部2011は、要求送信部22を通じて、路側通知パケットに含まれる出口ID及び第1の参照応答に含まれる入口IDを含む第2の参照要求をデータベース装置10に送信する。 Communication control section 2011 transmits the second reference request to database device 10 (step ST314B). Communication control section 2011 receives the first reference response through response receiving section 23 . Then, the communication control unit 2011 transmits a second reference request including the exit ID included in the roadside notification packet and the entrance ID included in the first reference response to the database device 10 through the request transmission unit 22 .

図16(e)は、第2の参照要求のデータ構造の一例を示す図である。図16(e)に示すように、第2の参照要求は、入口ID及び出口ID含む。また、第2の参照要求は、これらの情報に限られず、任意のデータを含んで良いのは勿論である。 FIG. 16E is a diagram showing an example of the data structure of the second reference request. As shown in FIG. 16(e), the second reference request includes an entrance ID and an exit ID. Also, the second reference request is not limited to these pieces of information, and may of course include arbitrary data.

データベース装置10の要求処理部12は、参照処理を行う(ステップST315B)。通信制御部1011は、通信部103を通じて第2の参照要求を受信し、受信した第2の参照要求を要求処理部12に出力する。要求処理部12は、第2の参照要求に含まれる入口ID及び出口IDと組になった通行料金のテーブルを参照して通行料金を含む第2の参照応答を出力する。すなわち、要求処理部12は、第2の参照要求に基づいて第2の参照応答を通信制御部1011に出力する。 The request processing unit 12 of the database device 10 performs reference processing (step ST315B). The communication control unit 1011 receives the second reference request through the communication unit 103 and outputs the received second reference request to the request processing unit 12 . The request processing unit 12 refers to the toll table paired with the entrance ID and the exit ID included in the second reference request, and outputs a second reference response including the toll. That is, the request processing unit 12 outputs the second reference response to the communication control unit 1011 based on the second reference request.

図18は、ステップST315Bで参照する基本料金テーブルの一例を示す図である。図18に示すように、要求処理部12は、入口IDと出口IDに対応する基本通行料金を取得可能である。 FIG. 18 is a diagram showing an example of the basic charge table referred to in step ST315B. As shown in FIG. 18, the request processing unit 12 can acquire the basic toll corresponding to the entrance ID and the exit ID.

また、図16(f)は、第2の参照応答のデータ構造の一例を示す図である。図16(f)に示すように、第2の参照応答は、基本通行料金を含む。また、第2の参照応答は、基本通行料金のみに限られず、任意のデータを含んで良いのは勿論である。 Also, FIG. 16(f) is a diagram showing an example of the data structure of the second reference response. As shown in FIG. 16(f), the second reference response includes the basic toll. Also, the second reference response is not limited to the basic toll, and may of course include any data.

通信制御部1011は、第2の参照応答をデータ参照装置20に送信する(ステップST316B)。通信制御部1011は、通信部103を通じて、出力された第2の参照応答をデータ参照装置20に送信する。 Communication control section 1011 transmits the second reference response to data reference device 20 (step ST316B). The communication control unit 1011 transmits the output second reference response to the data reference device 20 through the communication unit 103 .

通信制御部2011は、第3の参照要求をデータベース装置10に送信する(ステップST314C)。通信制御部2011は、応答受信部23を通じて、第2の参照応答を受信する。そして、通信制御部2011は、要求送信部22を通じて、第1の参照応答に含まれる経路IDを含む第3の参照要求をデータベース装置10に送信する。 Communication control section 2011 transmits a third reference request to database device 10 (step ST314C). Communication control section 2011 receives the second reference response through response receiving section 23 . Then, the communication control unit 2011 transmits a third reference request including the path ID included in the first reference response to the database device 10 through the request transmission unit 22 .

図16(g)は、第2の参照要求のデータ構造の一例を示す図である。図16(g)に示すように、第3の参照要求は、経路ID含む。また、第3の参照要求は、経路IDに限られず、任意のデータを含んで良いのは勿論である。 FIG. 16(g) is a diagram showing an example of the data structure of the second reference request. As shown in FIG. 16(g), the third reference request includes the route ID. Also, the third reference request is not limited to the route ID, and may of course include arbitrary data.

データベース装置10の要求処理部12は、参照処理を行う(ステップST315C)。通信制御部1011は、通信部103を通じて第2の参照要求を受信し、受信した第2の参照要求を要求処理部12に出力する。要求処理部12は、第3の参照要求に含まれる経路IDと組になった変動料金のテーブルを参照して調整通行料金を含む第3の参照応答を出力する。すなわち、要求処理部12は、第3の参照要求に基づいて第3の参照応答を通信制御部1011に出力する。 Request processing unit 12 of database device 10 performs reference processing (step ST315C). The communication control unit 1011 receives the second reference request through the communication unit 103 and outputs the received second reference request to the request processing unit 12 . The request processing unit 12 refers to the variable toll table paired with the route ID included in the third reference request, and outputs a third reference response including the adjusted toll. That is, the request processing unit 12 outputs the third reference response to the communication control unit 1011 based on the third reference request.

図19は、ステップST315Cで参照する調整料金テーブルの一例を示す図である。図19に示すように、要求処理部12は、経路IDに対応する変動料金を取得可能である。例えば、経路IDが5001である場合、通行料金が100円のマイナスになることを示している。 FIG. 19 is a diagram showing an example of the adjustment fee table referred to in step ST315C. As shown in FIG. 19, the request processing unit 12 can acquire the variable charge corresponding to the route ID. For example, when the route ID is 5001, it indicates that the toll is minus 100 yen.

また、図16(h)は、第3の参照応答のデータ構造の一例を示す図である。図16(h)に示すように、第3の参照応答は、調整通行料金を含む。また、第3の参照応答は、基本通行料金のみに限られず、任意のデータを含んで良いのは勿論である。 Also, FIG. 16(h) is a diagram showing an example of the data structure of the third reference response. As shown in FIG. 16(h), the third reference response contains the adjusted toll. Also, the third reference response is not limited to the basic toll, and may of course include arbitrary data.

通信制御部1011は、第3の参照応答をデータ参照装置20に送信する(ステップST316C)。通信制御部1011は、通信部103を通じて、出力された第2の参照応答をデータ参照装置20に送信する。 Communication control section 1011 transmits the third reference response to data reference device 20 (step ST316C). The communication control unit 1011 transmits the output second reference response to the data reference device 20 through the communication unit 103 .

ここで、ステップST314C~ステップST316Cは、車両が複数の経路装置82を通過した場合、通過した回数分繰り返しても良い。また、基本料金テーブルや調整料金テーブルは、車種ごとに設定されていても良いし、時間帯ごとに設定されていても良いし、車載器のバージョンごとに設定されていても良い。調整料金テーブルは、天候や実施中のイベント、道路工事や通行止めの状況等に応じて設定されていても良い。 Here, steps ST314C to ST316C may be repeated for the number of times the vehicle has passed through a plurality of routing devices 82 . Further, the basic charge table and the adjustment charge table may be set for each vehicle type, for each time period, or for each version of the vehicle-mounted device. The adjustment fee table may be set according to the weather, ongoing events, road construction and traffic closures, and the like.

プロセッサ201は、通行料金を計算する(ステップST317)。通信制御部2011は、第3の応答受信部23Cを通じて第3の参照応答を受信する。そして、プロセッサ201は、第2の参照応答及び第3の参照応答に含まれる基本通行料金及び調整通行料金に基づいて請求通行料金を決定する。 Processor 201 calculates the toll (step ST317). The communication control unit 2011 receives the third reference response through the third response receiving unit 23C. Processor 201 then determines a billable toll based on the base toll and adjusted toll included in the second referral response and the third referral response.

プロセッサ201は、路側応答パケットを送信する(ステップST318)。プロセッサ201は、決定した請求通行料金を含む路側応答パケットを出力する。そして、通信制御部2011は、応答送信部25を通じて、出口料金所装置83に路側応答パケットを送信する。 Processor 201 transmits a roadside response packet (step ST318). The processor 201 outputs a roadside response packet containing the determined billed toll. The communication control unit 2011 then transmits the roadside response packet to the exit tollgate device 83 through the response transmission unit 25 .

制御部85は、請求通行料金を提示する(ステップST319)。通信制御部8011は、上位通信部84を通じて路側応答パケットを受信する。そして、制御部85は、入出力インタフェース804の表示部を用いて請求通行料金を表示する。 The control unit 85 presents the billed toll (step ST319). The communication control unit 8011 receives the roadside response packet through the upper communication unit 84 . Then, the control unit 85 uses the display unit of the input/output interface 804 to display the billed toll.

制御部85は、ゲート807を制御する(ステップST320)。制御部85は、路側応答パケットに基づいてゲート807を制御する。例えば、車両の通行を許可する時、ゲート807の発進制御バーを開き、車両の通行を許可する。 Control unit 85 controls gate 807 (step ST320). The control unit 85 controls the gate 807 based on the roadside response packet. For example, when permitting the passage of vehicles, the start control bar of the gate 807 is opened to permit the passage of vehicles.

ここで、図15では、簡単化のため、入口料金所装置81、経路装置82、及び出口料金所装置83から送信される路側通知パケットは、1台の車両についてのみ示している。しかしながら、各車両に対応した複数の路側通知パケットが有るのは勿論である。そのため、第2の実施形態でも第1の実施形態と同様に、データ参照装置20は、参照要求をデータベース装置10に送信した後、参照応答を受信する前に別の参照要求を受信したとしても当該別の参照要求をデータベース装置10に送信することが可能であるのは勿論である。 Here, in FIG. 15, for the sake of simplification, the roadside notification packets transmitted from the entrance toll gate device 81, the route device 82, and the exit toll gate device 83 are shown for only one vehicle. However, it goes without saying that there are a plurality of roadside notification packets corresponding to each vehicle. Therefore, in the second embodiment, as in the first embodiment, even if the data reference device 20 receives another reference request after transmitting the reference request to the database device 10 and before receiving the reference response, Of course, it is possible to send the other reference request to the database device 10 .

また、通信制御部2011は、複数のCPUを備え、通信部203を通じて、複数のCPUのうちの第1のCPUを用いて前記第1の参照要求を前記データベース装置10に送信し、前記複数のCPUのうちの第2のCPUを用いて前記第2の参照要求を前記データベース装置10に送信することも可能である。すなわち、各処理を複数のCPUのうちの1つによって処理させることにより、参照要求の送信及び参照応答の受信を並列に行うことが出来る。 Further, the communication control unit 2011 includes a plurality of CPUs, transmits the first reference request to the database device 10 using a first CPU among the plurality of CPUs through the communication unit 203, and It is also possible to send the second reference request to the database device 10 using a second CPU among the CPUs. That is, by causing each process to be processed by one of the plurality of CPUs, transmission of reference requests and reception of reference responses can be performed in parallel.

(第2の実施形態作用効果)
以上説明した実施形態によれば、データ参照システムにおいて、路側装置80とデータベース装置10の間にデータ参照装置20を配置する。そして、第1の参照要求をデータベース装置10に送信した後、第1の参照応答を受信する前に第2の参照要求パケットを受信した場合に、通信制御部2011は、要求送信部22を用いて、第2の参照要求パケットに基づいて第2の参照要求をデータベースに送信する。これにより、複数の要求を同時に処理することが可能になるため、任意の単位時間当たりの要求処理数であるスループットを大きくすることが出来る。
(Action and effect of the second embodiment)
According to the embodiment described above, the data reference device 20 is arranged between the roadside device 80 and the database device 10 in the data reference system. After transmitting the first reference request to the database device 10, if the second reference request packet is received before receiving the first reference response, the communication control unit 2011 uses the request transmission unit 22 to and transmits a second reference request to the database based on the second reference request packet. As a result, it becomes possible to process a plurality of requests simultaneously, so that the throughput, which is the number of requests processed per arbitrary unit time, can be increased.

[他の実施形態]
なお、この発明は上記実施形態に限定されるものでは無い。例えば、実施形態では、
第1の参照応答をデータ参照装置20が受信するまでに1つの参照要求パケットを受信した場合について説明したが、1つに限られない。したがって、参照応答を受信する前に、複数の参照要求パケットを受信した場合、データ参照装置20は、複数の参照要求をデータベース装置10に送信しても良い。
[Other embodiments]
In addition, this invention is not limited to the said embodiment. For example, in an embodiment,
Although the case where one reference request packet is received until the data reference device 20 receives the first reference response has been described, the number is not limited to one. Therefore, when receiving a plurality of reference request packets before receiving a reference response, the data reference device 20 may transmit a plurality of reference requests to the database device 10 .

本発明のいくつかの実施形態を説明したが、これらの実施形態は、例として提示したものであり、発明の範囲を限定することは意図していない。これら新規な実施形態は、その他の様々な形態で実施されることが可能であり、発明の要旨を逸脱しない範囲で、種々の省略、置き換え、変更を行うことが出来る。これら実施形態やその変形は、発明の範囲や要旨に含まれるとともに、特許請求の範囲に記載された発明とその均等の範囲に含まれる。 While several embodiments of the invention have been described, these embodiments have been presented by way of example and are not intended to limit the scope of the invention. These novel embodiments can be implemented in various other forms, and various omissions, replacements, and modifications can be made without departing from the scope of the invention. These embodiments and modifications thereof are included in the scope and gist of the invention, and are included in the scope of the invention described in the claims and equivalents thereof.

10…データベース装置
11…接続受付部
12…要求処理部
13…データ格納部
101…プロセッサ
102…記憶部
103…通信部
104…入出力インタフェース
105…バス
1011…通信制御部
20…データ参照装置
21…接続部
22…要求送信部
23…応答受信部
24…要求受信部
25…応答送信部
26…接続受付部
27…登録用接続部
28…登録送信部
201…プロセッサ
202…記憶部
203…通信部
204…入出力インタフェース
205…バス
210…プロセッサ
2011…通信制御部
30…管理サーバ
31…ネットワーク
40…クライアント装置
41…接続部
42…データ参照要求部
43…データ応答受信部
401…プロセッサ
402…記憶部
403…通信部
404…入出力インタフェース
405…バス
4011…通信制御部
80…路側装置
81…入口料金所装置
82…経路装置
83…出口料金所装置
84…上位通信部
85…制御部
86…車両通信部
801…プロセッサ
802…記憶部
803…通信部
804…入出力インタフェース
805…車両検知部
806…カメラ
807…ゲート
808…バス
8011…通信制御部
90…カードID
91…路側装置ID
92…パケット種別
93…通行料金
DESCRIPTION OF SYMBOLS 10... Database apparatus 11... Connection reception part 12... Request processing part 13... Data storage part 101... Processor 102... Storage part 103... Communication part 104... Input/output interface 105... Bus 1011... Communication control part 20... Data reference device 21... Connection unit 22 Request transmission unit 23 Response reception unit 24 Request reception unit 25 Response transmission unit 26 Connection reception unit 27 Registration connection unit 28 Registration transmission unit 201 Processor 202 Storage unit 203 Communication unit 204 Input/output interface 205 Bus 210 Processor 2011 Communication control unit 30 Management server 31 Network 40 Client device 41 Connection unit 42 Data reference request unit 43 Data response reception unit 401 Processor 402 Storage unit 403 Communication unit 404 Input/output interface 405 Bus 4011 Communication control unit 80 Roadside device 81 Entrance tollgate device 82 Route device 83 Exit tollgate device 84 Host communication unit 85 Control unit 86 Vehicle communication unit 801... Processor 802... Storage unit 803... Communication unit 804... Input/output interface 805... Vehicle detection unit 806... Camera 807... Gate 808... Bus 8011... Communication control unit 90... Card ID
91 Roadside device ID
92...Packet type 93...Toll

Claims (13)

データ参照装置と、
前記データ参照装置に接続されたデータベース装置と、
を備え、
前記データ参照装置は、
第1の参照要求パケットを受信した場合、第1の通信部に、前記第1の参照要求パケットに基づいて第1の参照要求を前記データベース装置に送信させ、前記第1の参照要求に応答した結果である第1の参照応答を受信させ、前記第1の参照応答を受信する前に第2の参照要求パケットを受信した場合に、第2の参照要求パケットに基づいて第2の参照要求を前記データベース装置に送信させ、前記第2の参照要求に応答した結果の第2の参照応答を受信させる第1の通信制御部を備え、
前記データベース装置は、
前記第1の参照要求及び前記第2の参照応答それぞれに対応する第1のテーブル及び第2のテーブルを参照して、前記第1の参照応答及び前記第2の参照応答を出力する要求処理部と、
第2の通信部に、前記第1の参照応答及び前記第2の参照応答を前記データ参照装置に送信させる第2の通信制御部と、
を備える、データ参照システム。
a data reference device;
a database device connected to the data reference device;
with
The data reference device is
causing the first communication unit to transmit a first reference request to the database device based on the first reference request packet when the first reference request packet is received, and responding to the first reference request; A first reference response that is a result is received, and if a second reference request packet is received before the first reference response is received, a second reference request is generated based on the second reference request packet. A first communication control unit that causes the database device to transmit and receives a second reference response as a result of responding to the second reference request,
The database device
A request processing unit that refers to a first table and a second table corresponding to the first reference request and the second reference response, respectively, and outputs the first reference response and the second reference response. When,
a second communication control unit that causes a second communication unit to transmit the first reference response and the second reference response to the data reference device;
A data reference system comprising:
前記第1の通信制御部は、第1の通信部に、前記第1の参照応答に基づく第3の参照要求を前記データベース装置に送信させ、
前記要求処理部は、前記第3の参照要求に対応する第3のテーブルを参照して、第3の参照応答を出力し、
前記第2の通信制御部は、第2の通信部に、前記第3の参照応答を前記データ参照装置に送信させる、請求項1に記載のデータ参照システム。
The first communication control unit causes the first communication unit to transmit a third reference request based on the first reference response to the database device,
the request processing unit refers to a third table corresponding to the third reference request and outputs a third reference response;
2. The data reference system according to claim 1, wherein said second communication control section causes said second communication section to transmit said third reference response to said data reference device.
前記第3の参照要求は、前記第1の参照要求パケットにさらに基づく、請求項2に記載のデータ参照システム。 3. The data referencing system of claim 2, wherein said third referral request is further based on said first referral request packet. 前記第1の参照応答は、中間値であり、前記第3の参照応答は、出力値である、請求項2又は3に記載のデータ参照システム。 4. A data referencing system according to claim 2 or 3, wherein said first reference response is an intermediate value and said third reference response is an output value. 前記第1の参照要求パケットは、有料道路上の出口料金所装置から受信し、車載器に挿入されたETCカードのカードID及び前記出口料金所装置のIDを含み、前記第1の参照要求は、前記カードIDを含み、前記第1の参照応答は、入口料金所に配置された入口料金所装置のIDを含み、前記第3の参照要求は、前記出口料金所装置のID及び前記入口料金所装置のIDを含み、前記第3の参照応答は、前記入口料金所装置から前記出口料金所装置までの通行料金を含む、請求項2乃至4のいずれか1項に記載のデータ参照システム。 The first reference request packet is received from an exit tollgate device on a toll road and includes a card ID of an ETC card inserted in a vehicle-mounted device and an ID of the exit tollgate device, and the first reference request is , the card ID, the first reference response includes the ID of the entrance toll booth device located at the entrance toll booth, the third reference request includes the ID of the exit toll booth device and the entrance toll 5. The data reference system according to any one of claims 2 to 4, wherein said third reference response includes an ID of a toll gate device, and said third reference response includes a toll from said entrance toll gate device to said exit toll gate device. 前記第1の通信制御部は、前記第1の通信部に、前記第3の参照応答に基づく第4の参照要求を前記データベース装置に送信させ、
前記要求処理部は、前記第4の参照要求に対応する第4のテーブルを参照して、第4の参照応答を出力し、
前記第2の通信制御部は、第2の通信部に、前記第4の参照応答を前記データ参照装置に送信させる、請求項2に記載のデータ参照システム。
The first communication control unit causes the first communication unit to transmit a fourth reference request based on the third reference response to the database device,
the request processing unit refers to a fourth table corresponding to the fourth reference request and outputs a fourth reference response;
3. The data reference system according to claim 2, wherein said second communication control section causes said second communication section to transmit said fourth reference response to said data reference device.
前記第1の参照要求パケットは、有料道路上に出口料金所装置から受信し、車載器に挿入されたETCカードのカードID及び前記出口料金所装置のIDを含み、前記第1の参照要求は、前記カードIDを含み、前記第1の参照応答は、入口料金所に配置された入口料金所装置のID及び前記車載器が通過した経路装置のIDを含み、前記第3の参照要求は、前記出口料金所装置のID及び前記入口料金所装置のIDを含み、前記第3の参照応答は、前記入口料金所装置から前記出口料金所装置までの基本通行料金を含み、前記第4の参照要求は、前記経路装置のIDを含み、前記第4の参照応答は、調整通行料金を含む、請求項6に記載のデータ参照システム。 The first reference request packet is received from an exit tollgate device on a toll road and includes a card ID of an ETC card inserted in a vehicle-mounted device and an ID of the exit tollgate device, and the first reference request is , the card ID is included, the first reference response includes the ID of the entrance tollgate device arranged at the entrance tollgate and the ID of the route device through which the on-vehicle device has passed, and the third reference request includes: the ID of the exit toll booth device and the ID of the entrance toll booth device, the third reference response comprising a basic toll from the entrance toll booth device to the exit toll booth device, and the fourth reference 7. The data referencing system of claim 6, wherein the request includes an ID of the routing device and the fourth referral response includes an adjusted toll. 前記第1のテーブルは、前記第1の参照要求と第1の参照応答とが組になったテーブルであり、前記第2のテーブルは、前記第2の参照要求と前記第2の参照応答とが組になったテーブルである、請求項1乃至5のいずれか1項に記載のデータ参照システム。 The first table is a table in which the first reference request and the first reference response are combined, and the second table is a table in which the second reference request and the second reference response are combined. 6. A data referencing system according to any one of claims 1 to 5, wherein is a paired table. 前記データ参照装置と前記データベース装置は、直接接続される、請求項1乃至6のいずれか1項に記載のデータ参照システム。 7. The data reference system according to claim 1, wherein said data reference device and said database device are directly connected. 前記第1の通信制御部は、複数のCPUを備え、第1の通信部に、前記複数のCPUのうちの第1のCPUを用いて前記第1の参照要求を前記データベース装置に送信させ、前記複数のCPUのうちの第2のCPUを用いて前記第2の参照要求を前記データベース装置に送信させる、請求項1乃至7のいずれか1項に記載のデータ参照システム。 The first communication control unit comprises a plurality of CPUs, and causes the first communication unit to transmit the first reference request to the database device using a first CPU among the plurality of CPUs; 8. The data reference system according to any one of claims 1 to 7, wherein a second CPU among said plurality of CPUs is used to transmit said second reference request to said database device. 第1の参照要求パケットを受信した場合、第1の通信部に、前記第1の参照要求パケットに基づいて第1の参照要求をデータベース装置に送信させ、前記第1の参照要求に応答した結果の第1の参照応答を受信させ、前記第1の参照応答を受信する前に第2の参照要求パケットを受信した場合に、第2の参照要求パケットに基づいて第2の参照要求を前記データベース装置に送信させ、前記第2の参照要求に応答した結果の第2の参照応答を受信させる第1の通信制御部を備える、データ参照装置。 When the first reference request packet is received, the first communication unit is caused to transmit the first reference request to the database device based on the first reference request packet, and the result of responding to the first reference request and if a second reference request packet is received before receiving the first reference response, a second reference request is sent to the database based on the second reference request packet A data reference device comprising a first communication control unit that causes the device to transmit and receive a second reference response as a result of responding to the second reference request. データ参照装置によって実行されるデータ参照方法であって、
第1の参照要求パケットを受信した場合、前記第1の参照要求パケットに基づいて第1の参照要求をデータベース装置に送信することと、
前記第1の参照要求に応答した結果の第1の参照応答を受信することと、
前記第1の参照応答を受信する前に第2の参照要求パケットを受信した場合に、第2の参照要求パケットに基づいて第2の参照要求を前記データベース装置に送信することと、前記第2の参照要求に応答した結果の第2の参照応答を受信することと、
を備える、データ参照方法。
A data reference method performed by a data reference device,
transmitting a first reference request to a database device based on the first reference request packet when a first reference request packet is received;
receiving a first referral response resulting from responding to the first referral request;
transmitting a second reference request to the database device based on the second reference request packet when a second reference request packet is received before receiving the first reference response; receiving a second referral response resulting from responding to the referral request of
A data reference method comprising:
請求項12に記載のデータ参照方法を前記データ参照装置のプロセッサによって実行させるデータ参照プログラム。 13. A data reference program causing a processor of said data reference device to execute the data reference method according to claim 12.
JP2021105474A 2021-06-25 2021-06-25 Data referencing system, data referencing device, data referencing method, and data referencing program Active JP7809458B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2021105474A JP7809458B2 (en) 2021-06-25 2021-06-25 Data referencing system, data referencing device, data referencing method, and data referencing program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2021105474A JP7809458B2 (en) 2021-06-25 2021-06-25 Data referencing system, data referencing device, data referencing method, and data referencing program

Publications (2)

Publication Number Publication Date
JP2023004019A true JP2023004019A (en) 2023-01-17
JP7809458B2 JP7809458B2 (en) 2026-02-02

Family

ID=85101070

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2021105474A Active JP7809458B2 (en) 2021-06-25 2021-06-25 Data referencing system, data referencing device, data referencing method, and data referencing program

Country Status (1)

Country Link
JP (1) JP7809458B2 (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11161683A (en) * 1997-09-24 1999-06-18 Fujitsu Ltd Information search method, information search system, and search management device for the system
JP2001101221A (en) * 1999-10-01 2001-04-13 Ntt Data Corp Database access method and method
US20040030739A1 (en) * 2002-08-06 2004-02-12 Homayoun Yousefi'zadeh Database remote replication for multi-tier computer systems by homayoun yousefi'zadeh
JP2004164321A (en) * 2002-11-13 2004-06-10 Hitachi Ltd Fee calculation method
JP2011003198A (en) * 2003-08-06 2011-01-06 Panasonic Corp Method, server, and client used in client-server distributed system
JP2012003437A (en) * 2010-06-16 2012-01-05 Nippon Telegr & Teleph Corp <Ntt> Push type information distribution system and push type information distribution method
WO2013129061A1 (en) * 2012-02-28 2013-09-06 日本電気株式会社 Control system for simultaneous number of connections, control server for simultaneous number of connections, control method for simultaneous number of connections and control program for simultaneous number of connections
WO2016132433A1 (en) * 2015-02-16 2016-08-25 三菱電機株式会社 Data management device, data management method, and data management program
JP2020087337A (en) * 2018-11-30 2020-06-04 株式会社東芝 Toll processing system, central device, exit tollgate apparatus and toll processing method

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11161683A (en) * 1997-09-24 1999-06-18 Fujitsu Ltd Information search method, information search system, and search management device for the system
JP2001101221A (en) * 1999-10-01 2001-04-13 Ntt Data Corp Database access method and method
US20040030739A1 (en) * 2002-08-06 2004-02-12 Homayoun Yousefi'zadeh Database remote replication for multi-tier computer systems by homayoun yousefi'zadeh
JP2004164321A (en) * 2002-11-13 2004-06-10 Hitachi Ltd Fee calculation method
JP2011003198A (en) * 2003-08-06 2011-01-06 Panasonic Corp Method, server, and client used in client-server distributed system
JP2012003437A (en) * 2010-06-16 2012-01-05 Nippon Telegr & Teleph Corp <Ntt> Push type information distribution system and push type information distribution method
WO2013129061A1 (en) * 2012-02-28 2013-09-06 日本電気株式会社 Control system for simultaneous number of connections, control server for simultaneous number of connections, control method for simultaneous number of connections and control program for simultaneous number of connections
WO2016132433A1 (en) * 2015-02-16 2016-08-25 三菱電機株式会社 Data management device, data management method, and data management program
JP2020087337A (en) * 2018-11-30 2020-06-04 株式会社東芝 Toll processing system, central device, exit tollgate apparatus and toll processing method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
合田 和生ほか: "アウトオブオーダ型データベースエンジンOoODEの試作とその実行挙動", 第5回データ工学と情報マネジメントに関するフォーラム (第11回日本データベース学会年次大会), JPN6025033521, 31 May 2013 (2013-05-31), pages 1 - 6, ISSN: 0005671205 *

Also Published As

Publication number Publication date
JP7809458B2 (en) 2026-02-02

Similar Documents

Publication Publication Date Title
KR102061264B1 (en) Unexpected incident detecting system using vehicle position information based on C-ITS
KR20010024706A (en) Method for automatic debiting of tolls for vehicles
CN107016741A (en) ETC system and ETC service authentication methods
US20170330389A1 (en) Incoming and outgoing vehicle management method and incoming and outgoing vehicle management system based on vehicle number and vehicle type identified therefrom
US8843390B2 (en) Multi-lane free flow electronic toll collection system and on board unit thereof
CN113096150A (en) Method and system for generating travel track, storage medium and electronic device
KR102142392B1 (en) Real-time vehicle management system and method on toll road
JP2023004019A (en) Data reference system, data reference device, data reference method, and data reference program
KR20210117637A (en) Method for video monitoring for vehicle and human auto detection based on deep learning and Data transmission method using the same
RU149201U1 (en) COMPLEX OF PICTURE AND VIDEO FIXATION OF VIOLATIONS OF ROAD TRAFFIC AND PARKING RULES
KR101671904B1 (en) System for tracing vehicle using blackbox for vehicle
KR100895954B1 (en) Electronic toll collection system and method using wireless LAN and license plate recognition technology
CN112562381A (en) Bus taking management system
CN117058777A (en) Vehicle charging methods, systems, edge servers and devices
EP3843047B1 (en) Vehicle information acquisition apparatus, vehicle information acquisition system, vehicle information acquisition method, and vehicle information acquisition program
CN108320339A (en) For the method, apparatus of vehicle charging, equipment, system and storage medium
KR20030035258A (en) ETC system and the method to support multiple vehicles access and services using active DSRC
JP6843965B2 (en) Vehicle management system, in-vehicle device, vehicle management method, program
CN114724290A (en) Vehicle management method and device
CN105096608A (en) Method, device and system for improving identification accuracy of license plates
JP2021162877A (en) On-vehicle device and tailgating driving recording method
JP7631082B2 (en) Information processing system, management server, information processing method, and information processing program
GB2582059A (en) Method and system for data collection in a road network
CN113920605B (en) Highway free flow charging data processing and verifying method and device
KR102672135B1 (en) A location-based breaker management method for multiple membership parking lots

Legal Events

Date Code Title Description
RD01 Notification of change of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7421

Effective date: 20230105

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20240314

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20250312

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20250325

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20250523

A711 Notification of change in applicant

Free format text: JAPANESE INTERMEDIATE CODE: A712

Effective date: 20250523

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20250826

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20251027

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20260121

R150 Certificate of patent or registration of utility model

Ref document number: 7809458

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150