JP2018081352A - Meter reading system, meter reading method and meter reading program - Google Patents

Meter reading system, meter reading method and meter reading program Download PDF

Info

Publication number
JP2018081352A
JP2018081352A JP2016221363A JP2016221363A JP2018081352A JP 2018081352 A JP2018081352 A JP 2018081352A JP 2016221363 A JP2016221363 A JP 2016221363A JP 2016221363 A JP2016221363 A JP 2016221363A JP 2018081352 A JP2018081352 A JP 2018081352A
Authority
JP
Japan
Prior art keywords
meter
reading
session
value
server
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
JP2016221363A
Other languages
Japanese (ja)
Other versions
JP6791533B2 (en
Inventor
淳 瀧川
Atsushi Takigawa
淳 瀧川
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.)
NEC Platforms Ltd
Original Assignee
NEC Platforms Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NEC Platforms Ltd filed Critical NEC Platforms Ltd
Priority to JP2016221363A priority Critical patent/JP6791533B2/en
Publication of JP2018081352A publication Critical patent/JP2018081352A/en
Application granted granted Critical
Publication of JP6791533B2 publication Critical patent/JP6791533B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide a meter reading system capable of easily verifying the presence or absence of falsification of received meter reading data at a supplier side.SOLUTION: A reading meter 1 generates a meter reading data including a meter ID identifying the reading meter 1, a meter reading value indicating a supply amount for a consumer, and a hash value calculated based on the meter reading value and a preset meter session ID and transmits the meter reading data to a relay device 2. The relay device 2 encrypts the meter reading data and sends to a reading meter server 3. The reading meter server 3 decrypts the encrypted meter reading data, calculates a hash value as a verification value based on the obtained meter reading value by decrypting and a preset server session ID, compares the calculated hash value as the verification value and the obtained hash value by decrypting, and if both match, determines that the obtained meter reading value by decrypting is the correct meter reading value read by the reading meter 1.SELECTED DRAWING: Figure 1

Description

本発明は、検針システム、検針方法および検針プログラムに関し、特に、不正申告検知機能を備えた検針システム、検針方法および検針プログラムに関する。すなわち、本発明は、供給者と需要者と検針者とが存在し、供給者から需要者に対し、何らかの計量可能なサービスまたは供給物が提供され、提供されたサービスまたは供給物の供給量を検針者が供給者に対し申告する構成のシステムに利用することが可能である。ここで、需要者と検針者とが同一である場合にも、本発明は適用できる。   The present invention relates to a meter reading system, a meter reading method, and a meter reading program, and more particularly to a meter reading system, a meter reading method, and a meter reading program having an illegal report detection function. That is, according to the present invention, there are a supplier, a consumer, and a meter reader, and a certain service or supply that can be measured is provided from the supplier to the consumer, and the supply amount of the provided service or supply is reduced. It can be used for a system in which the meter reader reports to the supplier. Here, the present invention can also be applied when the consumer and the meter reader are the same.

例えば、本発明は、電気使用量の検針の他に、水道、ガスの検針にも利用することができ、また、使用した時間で料金が決定される駐車場や駐輪場の料金決済についても利用することが可能である。   For example, the present invention can be used not only for metering electricity usage but also for metering water and gas, and can also be used for settlement of charges in parking lots and bicycle parking lots where fees are determined by the time used. It is possible.

特許文献1の特開2009−32012号公報「電力量自動検針装置および自動検針システム」において、供給者に代わり、需要者が、自己所有の携帯電話端末を使用して、検針データを取得し、取得した該検針データを、公衆回線網を使用して、供給者に通知するという、自動検針システムに関する技術が開示されている。つまり、該特許文献1に記載の自動検針システムにおいては、供給者が雇用する検針作業員による電気使用量の検針作業を、需要者に担わせることにより、電気料金算出時の供給者側の負担を軽減することを目的にしている。   In Japanese Patent Application Laid-Open No. 2009-32012 “Automatic Electricity Metering Device and Automatic Metering System” of Patent Document 1, a consumer acquires meter reading data using a self-owned mobile phone terminal instead of a supplier, A technique related to an automatic meter reading system is disclosed in which the acquired meter reading data is notified to a supplier using a public network. In other words, in the automatic meter reading system described in Patent Document 1, the burden on the supplier side when calculating the electricity bill is made by letting the consumer perform the meter reading work of the electricity usage by the meter reading worker employed by the supplier. The purpose is to reduce.

該特許文献1に記載の自動検針システムにおいては、電気使用量を検針する電気メータ(検針メータ)と供給者所有の自動検針装置との間をいくつかの通信機および通信網を経由して接続している。ここで、いくつかの通信機および通信網とは、PLC(Power Line Communication:電力線通信)通信網、非接触型IC通信機(またはRFID(Radio Frequency Identifier)通信機とも言う)、携帯電話端末、携帯通信網、IP(Internet Protocol)網等を指している。そして、個々の通信機および通信網においては、検針データの信頼性を確保するために、伝送する検針データを暗号化し、秘匿性の高い通信が行われる。しかしながら、検針データが経由する通信機(例えば、携帯電話端末)では、暗号化された検針データが復号された状態になっている。このため、悪意を持つ需要者の場合、検針データを改ざんして、供給者に通知することが可能になっている。   In the automatic meter reading system described in Patent Document 1, an electric meter (meter meter) for measuring the amount of electricity used and an automatic meter reading device owned by a supplier are connected via some communication devices and communication networks. doing. Here, some communication devices and communication networks include a PLC (Power Line Communication) communication network, a contactless IC communication device (or RFID (Radio Frequency Identifier) communication device), a mobile phone terminal, It refers to a mobile communication network, an IP (Internet Protocol) network, and the like. And in each communication apparatus and a communication network, in order to ensure the reliability of meter-reading data, the meter-reading data to transmit are encrypted and highly confidential communication is performed. However, in a communication device (for example, a mobile phone terminal) through which meter-reading data passes, encrypted meter-reading data is in a decrypted state. For this reason, in the case of a malicious customer, it is possible to tamper with the meter reading data and notify the supplier.

特開2009−32012号公報JP 2009-32012 JP

前述したように、前記特許文献1に記載の自動検針システムにおいては、供給者に代わり、需要者が、当該需要者が所有する携帯電話端末を使用して、検針データを取得し、取得した該検針データを、公衆回線網を使用して、供給者に通知する仕組みを採用している。   As described above, in the automatic meter reading system described in Patent Document 1, a consumer acquires a meter reading data by using a mobile phone terminal owned by the consumer instead of a supplier. A system is adopted in which meter reading data is notified to the supplier using a public network.

以下に、該特許文献1に記載の自動検針システムにおける通信の信頼性について考察する。該自動検針システムを構成する通信機および通信網においては、前述のように、個々の通信機および通信網では、伝送する検針データに関し暗号化が適用され、秘匿性の高い通信が行われる。一方、検針データを取得する検針メータや検針データが経由する通信機では、前述したように、暗号化された検針データが復号された状態となっている。このため、前記特許文献1に記載の自動検針システムにおいては以下のような課題がある。   The communication reliability in the automatic meter reading system described in Patent Document 1 will be considered below. In the communication device and the communication network constituting the automatic meter reading system, as described above, encryption is applied to the meter reading data to be transmitted in each communication device and the communication network, and highly confidential communication is performed. On the other hand, in the meter reading meter for acquiring meter reading data and the communication device through which the meter reading data passes, as described above, the encrypted meter reading data is in a decrypted state. For this reason, the automatic meter reading system described in Patent Document 1 has the following problems.

第1の課題は、もし、悪意を持つ検針者や需要家が存在する場合、中継する通信機、すなわち、当該検針者や需要家の所有する検針メータや携帯通信端末において、電気料金が実際よりも低く請求されるように、検針した検針データや中継する検針データを改ざんして供給者に通知することが可能になっている、という点である。   The first problem is that if there is a malicious meter reader or customer, the electricity charge is actually higher in the relaying communication device, that is, the meter meter or portable communication terminal owned by the meter reader or customer. The meter reading data and the meter reading data to be relayed can be tampered with and notified to the supplier so that they can be charged as low as possible.

つまり、前記特許文献1に記載の自動検針システムは、善意の検針者による電気使用量の検針作業を前提としており、悪意のある検針者の存在を想定していない。ここで、検針者とは、検針作業を担う者を言う。検針者は需要者と同一である場合や、供給者と需要者以外の第三者が検針作業を請け負う場合もある。また、悪意のある検針者とは、実際の使用量よりも少ない使用量に低下させる等の不正な検針データを、供給者に対して送信する検針者のことを言う。   In other words, the automatic meter reading system described in Patent Document 1 is based on the premise of a meter reading operation for the amount of electricity used by a good-value meter reader, and does not assume the presence of a malicious meter reader. Here, the meter reading person means a person in charge of meter reading work. The meter reader may be the same as the consumer, or a third party other than the supplier and the consumer may undertake meter reading work. Further, the malicious meter reader refers to a meter reader who transmits illegal meter reading data to the supplier such as reducing the amount to be used less than the actual amount used.

また、第2の課題は、悪意のある検針者(需要家でもある場合を含む)が、検針データを不正に書き換える、または、捏造して、供給者に送信した場合、該供給者は、かかる不正な行為により改ざんされた不正検針データを受信しているか否かを検証することが不可能である、という点である。   Further, the second problem is that when a malicious meter reader (including a customer) rewrites or forges the meter reading data and transmits it to the supplier, the supplier takes such a measure. In other words, it is impossible to verify whether or not the illegal meter reading data altered by an illegal act is received.

(本発明の目的)
本発明は、かくのごとき検針システムの通信の信頼性に鑑みてなされたものであり、検針データの改ざんについて、供給者側で検針データの改ざんの有無を検証できるようにしている。
(Object of the present invention)
The present invention has been made in view of the reliability of communication of a meter reading system like this, and enables the supplier to verify whether or not the meter reading data has been tampered with when tampering with the meter reading data.

言い換えると、本発明において解決しようとする第1の課題は、受信した検針データの真偽検証を供給者側で行うことを可能にすることである。第2の課題は、受信した検針データが期待された送信者から送られた検針データか否かの真偽検証を供給者側で行うことを可能にすることである。さらには、第3の課題は、受信した検針データの真偽検証の供給者側の仕組みを安価に構築することを可能にすることである。   In other words, the first problem to be solved in the present invention is to enable the supplier side to verify the authenticity of the received meter reading data. The second problem is to enable the supplier to perform authenticity verification as to whether the received meter reading data is meter reading data sent from an expected sender. Furthermore, the third problem is to make it possible to construct a mechanism on the supplier side for authenticity verification of received meter-reading data at a low cost.

以上の課題を解決するために、本発明は、供給者側において、受信した検針データの改ざんの有無を容易に検証することを可能にする検針システム、検針方法および検針プログラムを提供することを、その目的としている。   In order to solve the above problems, the present invention provides a meter reading system, a meter reading method, and a meter reading program that enable a supplier to easily verify the presence or absence of falsification of received meter reading data. That is the purpose.

前述の課題を解決するため、本発明による検針システム、検針方法および検針プログラムは、主に、次のような特徴的な構成を採用している。   In order to solve the above-described problems, the meter reading system, the meter reading method, and the meter reading program according to the present invention mainly adopt the following characteristic configuration.

(1)本発明による検針システムは、
需要者への供給量の検針を行う検針メータと、該検針メータにより検針された検針値を管理する検針サーバと、前記検針メータと前記検針サーバとの間を転送するデータの中継を行う中継装置とを含んで構成される検針システムであって、
前記検針メータは、当該検針メータを特定するメータIDと、需要者に対する供給量を示す検針値と、前記検針値とあらかじめ設定したメータセッションIDとに基づいて計算したハッシュ値と、を含む検針データを作成して、前記中継装置に対して送信し、
前記検針データを受け取った前記中継装置は、受け取った前記検針データを前記検針サーバに対して送信し、
前記検針データを受け取った前記検針サーバは、前記検針データにおける検針値とあらかじめ設定したサーバセッションIDとに基づいてハッシュ値を検証値として計算し、該検証値として計算した該ハッシュ値を、前記検針データにおけるハッシュ値と比較し、両者が一致した場合、前記検針値を、前記検針メータが検針した正しい検針値であるものと判定する
ことを特徴とする。
(1) The meter reading system according to the present invention comprises:
A meter-reading meter that performs meter-reading of the amount supplied to the consumer, a meter-reading server that manages the meter-reading value read by the meter-reading meter, and a relay device that relays data transferred between the meter-reading meter and the meter-reading server A meter reading system comprising:
The meter-reading meter includes meter-metering data that includes a meter ID that identifies the meter-reading meter, a meter-reading value that indicates a supply amount to a consumer, and a hash value that is calculated based on the meter-reading value and a preset meter session ID. And transmit to the relay device,
The relay device that has received the meter-reading data transmits the received meter-reading data to the meter-reading server,
The meter-reading server that has received the meter-reading data calculates a hash value as a verification value based on the meter-reading value in the meter-reading data and a preset server session ID, and uses the hash value calculated as the verification value as the meter reading. Compared with the hash value in the data, if both match, the meter reading value is determined to be a correct meter reading value measured by the meter meter.

(2)本発明による検針方法は、
需要者への供給量の検針を行う検針メータと、該検針メータにより検針された検針値を管理する検針サーバと、前記検針メータと前記検針サーバとの間を転送するデータの中継を行う中継装置を含む検針システムにおける検針方法であって、
前記検針メータを特定するメータIDと、需要者に対する供給量を示す検針値と、前記検針値とあらかじめ設定したメータセッションIDとに基づいて計算したハッシュ値と、を含む検針データを作成する工程と、作成した該検針データを前記中継装置に対して送信する工程と、を前記検針メータで行い、
前記検針データを受け取り、受け取った前記検針データを前記検針サーバに対して送信する工程を前記中継装置で行い、
前記検針データを受け取り、前記検針データにおける検針値とあらかじめ設定したサーバセッションIDとに基づいてハッシュ値を検証値として計算する工程と、該検証値として計算した該ハッシュ値を、前記検針データにおけるハッシュ値と比較し、両者が一致した場合、前記検針値を前記検針メータが検針した正しい検針値であるものと判定する工程と、を前記検針サーバで行う
ことを特徴とする。
(2) The meter reading method according to the present invention includes:
A meter-reading meter that performs meter-reading of the amount supplied to the consumer, a meter-reading server that manages the meter-reading value read by the meter-reading meter, and a relay device that relays data transferred between the meter-reading meter and the meter-reading server A meter reading method in a meter reading system including
Creating meter-reading data including a meter ID for identifying the meter-reading meter, a meter-reading value indicating a supply amount to a consumer, and a hash value calculated based on the meter-reading value and a preset meter session ID; And performing the step of transmitting the created meter reading data to the relay device with the meter meter,
Receiving the meter-reading data and performing the step of transmitting the received meter-reading data to the meter-reading server in the relay device;
Receiving the meter-reading data, calculating a hash value as a verification value based on a meter-reading value in the meter-reading data and a preset server session ID, and calculating the hash value calculated as the verification value as a hash in the meter-reading data When the two values coincide with each other, the step of determining that the meter reading value is a correct meter reading value measured by the meter meter is performed by the meter reading server.

(3)本発明による検針プログラムは、
需要者への供給量の検針を行う検針メータと、該検針メータにより検針された検針値を管理する検針サーバと、前記検針メータと前記検針サーバとの間を転送するデータの中継を行う中継装置を少なくとも含む検針システムにおいて前記中継装置内のコンピュータによってプログラムとして実行される検針プログラムであって、
検針者からの起動指示があった際に起動して、前記検針メータに対して検針要求を送信する処理ステップと、
前記検針メータから、当該検針メータを特定するメータIDと、需要者に対する供給量を示す検針値と、前記検針値とあらかじめ設定したメータセッションIDとに基づいて計算したハッシュ値と、を含む検針データを受け取る処理ステップと、
前記検針メータから受け取った前記検針データに含まれている前記検針値を前記検針者に通知して承認を得る処理ステップと、
前記検針メータから受け取った前記検針データを前記検針サーバに対して送信する処理ステップと、
前記検針データを受け取った前記検針サーバにおいて、前記検針データにおけるハッシュ値に基づいて、前記検針データにおける検針値が、前記検針メータにより検針した正しい検針値であるか否かを検証した検証結果を送信してきた際に、送信されてきた該検針結果を受け取る処理ステップと、
前記検針サーバから受け取った前記検針結果を前記検針者に通知する処理ステップと
を有していることを特徴とする。
(3) The meter reading program according to the present invention is:
A meter-reading meter that performs meter-reading of the amount supplied to the consumer, a meter-reading server that manages the meter-reading value read by the meter-reading meter, and a relay device that relays data transferred between the meter-reading meter and the meter-reading server A meter reading program executed as a program by a computer in the relay device in a meter reading system including at least
A process step of starting when a start instruction is received from a meter reader and transmitting a meter reading request to the meter meter;
Meter reading data including a meter ID for identifying the meter reading meter from the meter reading meter, a meter reading value indicating a supply amount to a consumer, and a hash value calculated based on the meter reading value and a preset meter session ID. Receiving processing steps;
A processing step of notifying the meter reader of the meter reading value included in the meter reading data received from the meter meter and obtaining approval;
A step of transmitting the meter-reading data received from the meter-reading meter to the meter-reading server;
In the meter reading server that has received the meter reading data, based on the hash value in the meter reading data, transmits a verification result that verifies whether or not the meter reading value in the meter reading data is a correct meter reading value measured by the meter reading meter. A processing step of receiving the meter reading result transmitted when
And a processing step of notifying the meter reading person of the meter reading result received from the meter reading server.

本発明の検針システム、検針方法および検針プログラムによれば、以下のような効果を奏することができる。   According to the meter reading system, the meter reading method and the meter reading program of the present invention, the following effects can be obtained.

本発明においては、検針メータにおいて検針値とあらかじめ設定したメータセッションIDとからハッシュ値を生成し、また、検針メータから検針サーバに受け渡す検針データを、検針メータを特定するメータID、検針値の他に、生成した前記ハッシュ値を含む構成としている。そこで、本発明によれば、需要者への供給量の検針結果である検針値を管理する検針サーバにおいて、検針メータから受け取った検針値が正しいか否かの検証を行うことができる。つまり、本発明は、受信した検針データの改ざんの有無を供給者側において容易に検証することを可能にする検針システム、検針方法および検針プログラムを提供できる。   In the present invention, a hash value is generated from a meter reading value and a preset meter session ID in the meter reading meter, and meter reading data transferred from the meter reading meter to the meter reading server is a meter ID for specifying the meter meter, and a meter reading value. In addition, the generated hash value is included. Therefore, according to the present invention, it is possible to verify whether or not the meter reading value received from the meter meter is correct in the meter reading server that manages the meter reading value that is the meter reading result of the supply amount to the consumer. That is, the present invention can provide a meter reading system, a meter reading method, and a meter reading program that enable the supplier to easily verify whether or not the received meter reading data has been tampered with.

本発明による検針システムの検証のためのデータの流れと処理とを説明する説明図である。It is explanatory drawing explaining the flow and process of data for verification of the meter-reading system by this invention. 図1に示した検針システムの中継装置において検針値の改ざんが行われて、偽の検針値が検針サーバに送信された場合について説明するための説明図である。It is explanatory drawing for demonstrating the case where tampering of a meter-reading value is performed in the relay apparatus of the meter-reading system shown in FIG. 1, and a false meter-reading value is transmitted to the meter-reading server. 本発明による検針システムのシステム構成の一例を示すシステム構成図である。It is a system configuration figure showing an example of the system configuration of the meter-reading system by the present invention. 図3に一例として示した本発明による検針システムの基本動作の一例を示すフローチャートである。It is a flowchart which shows an example of the basic operation | movement of the meter-reading system by this invention shown as an example in FIG. 図3に一例として示した本発明による検針システムの検針に至るまでの全体の動作の一例を説明するフローチャートである。It is a flowchart explaining an example of the whole operation | movement to the meter-reading of the meter-reading system by this invention shown as an example in FIG. 図5に示したセッションID初期化シーケンスにおけるセッションID初期値生成動作の流れの一例を示すシーケンスチャートである。6 is a sequence chart illustrating an example of a flow of session ID initial value generation operation in the session ID initialization sequence illustrated in FIG. 5. 検針メータおよび検針サーバそれぞれに記憶されているセッションIDの更新動作の一例を説明する説明図である。It is explanatory drawing explaining an example of the update operation | movement of session ID memorize | stored in each meter-reading meter and meter-reading server. 図5に示した鍵交付シーケンスにおける鍵交付動作の流れの一例を示すシーケンスチャートである。It is a sequence chart which shows an example of the flow of the key grant operation | movement in the key grant sequence shown in FIG. 図5に示した検針シーケンスにおける検針動作の流れの一例を示すシーケンスチャートである。It is a sequence chart which shows an example of the flow of meter-reading operation | movement in the meter-reading sequence shown in FIG. 図5に示したセッションID初期化シーケンスにおけるセッションID初期値生成動作の流れの図6とは異なる第1の他の例を示すシーケンスチャートである。6 is a sequence chart showing a first other example different from FIG. 6 of the flow of the session ID initial value generation operation in the session ID initialization sequence shown in FIG. 5. 図5に示したセッションID初期化シーケンスにおけるセッションID初期値生成動作の流れの図6とは異なる第2の他の例を示すシーケンスチャートである。6 is a sequence chart showing a second other example different from FIG. 6 of the flow of the session ID initial value generation operation in the session ID initialization sequence shown in FIG. 5. 図5に示したセッションID初期化シーケンスにおけるセッションID初期値生成動作の流れの図6とは異なる第3の他の例を示すシーケンスチャートである。FIG. 10 is a sequence chart showing a third other example different from FIG. 6 of the flow of the session ID initial value generation operation in the session ID initialization sequence shown in FIG. 5.

以下、本発明による検針システム、検針方法および検針プログラムの好適な実施形態について添付図を参照して説明する。なお、以下の説明においては、本発明による検針システムおよび検針方法について説明するが、かかる検針方法をコンピュータにより実行可能なプログラムとして実施するようにしても良いし、あるいは、該プログラムをコンピュータにより読み取り可能な記録媒体に記録するようにしても良いことは言うまでもない。また、以下の各図面に付した図面参照符号は、理解を助けるための一例として各要素に便宜上付記したものであり、本発明を図示の態様に限定することを意図するものではないことも言うまでもない。   Hereinafter, preferred embodiments of a meter reading system, a meter reading method, and a meter reading program according to the present invention will be described with reference to the accompanying drawings. In the following description, a meter reading system and a meter reading method according to the present invention will be described. However, the meter reading method may be implemented as a program executable by a computer, or the program can be read by a computer. Needless to say, the data may be recorded on any recording medium. In addition, it is needless to say that the drawing reference numerals attached to the following drawings are added for convenience to the respective elements as an example for facilitating understanding, and are not intended to limit the present invention to the illustrated embodiments. Yes.

(本発明の特徴)
本発明の実施形態の説明に先立って、本発明の特徴についてその概要をまず説明する。本発明は、
需要者への供給量の検針を行う検針メータと、該検針メータにより検針された検針値を管理する検針サーバと、前記検針メータと前記検針サーバとの間を転送するデータの中継を行う中継装置とを含んで構成され、
前記検針メータは、当該検針メータを特定するメータIDと、需要者に対する供給量を示す検針値と、前記検針値とあらかじめ設定したメータセッションIDとに基づいて計算したハッシュ値と、を含む検針データを作成して、前記中継装置に対して送信し、
前記検針データを受け取った前記中継装置は、受け取った前記検針データをあらかじめ保持している秘密鍵を用いて暗号化して前記検針サーバに対して送信し、
暗号化された前記検針データを受け取った前記検針サーバは、暗号化された前記検針データを、あらかじめ保持している公開鍵を用いて復号し、さらに、暗号化された前記検針データを復号して得られた検針値とあらかじめ設定したサーバセッションIDとに基づいてハッシュ値を検証値として計算し、該検証値として計算した該ハッシュ値を、暗号化された前記検針データを復号して得られたハッシュ値と比較し、両者が一致した場合、暗号化された前記検針データを復号して得られた検針値が、前記検針メータが検針した正しい検針値であるものと判定する
ことを主要な特徴としている。
(Features of the present invention)
Prior to the description of the embodiments of the present invention, an outline of the features of the present invention will be described first. The present invention
A meter-reading meter that performs meter-reading of the amount supplied to the consumer, a meter-reading server that manages the meter-reading value read by the meter-reading meter, and a relay device that relays data transferred between the meter-reading meter and the meter-reading server And comprising
The meter-reading meter includes meter-metering data that includes a meter ID that identifies the meter-reading meter, a meter-reading value that indicates a supply amount to a consumer, and a hash value that is calculated based on the meter-reading value and a preset meter session ID. And transmit to the relay device,
The relay device that has received the meter-reading data encrypts the received meter-reading data using a secret key stored in advance and transmits the encrypted data to the meter-reading server,
The meter-reading server that has received the encrypted meter-reading data decrypts the encrypted meter-reading data using a public key held in advance, and further decrypts the encrypted meter-reading data. A hash value is calculated as a verification value based on the obtained meter reading value and a preset server session ID, and the hash value calculated as the verification value is obtained by decrypting the encrypted meter reading data. Compared with the hash value, if both match, it is determined that the meter reading value obtained by decrypting the encrypted meter reading data is the correct meter reading value measured by the meter meter. It is said.

而して、需要者への供給量の検針結果である検針値を管理する検針サーバにおいて、検針メータから受け取った検針値が正しいか否かの検証を行うことでき、検針メータからの検針データの転送ルートに介在する中継装置や公衆回線網において、該検針データに対する不正な改ざんの発生の有無を確認することができるという効果が得られる。   Thus, in the meter reading server that manages the meter reading value that is the meter reading result of the supply amount to the consumer, it is possible to verify whether or not the meter reading value received from the meter reading meter is correct, and the meter reading data from the meter reading meter There is an effect that it is possible to confirm whether or not the tampering with respect to the meter reading data has occurred in the relay device or the public line network intervening in the transfer route.

本発明の概要を、図を用いてさらに詳細に説明する。図1は、本発明による検針システムの検証のためのデータの流れと処理とを説明する説明図である。図1の図中および図1の説明に使う記号の意味について以下にまず説明する。   The outline of the present invention will be described in more detail with reference to the drawings. FIG. 1 is an explanatory diagram for explaining the data flow and processing for verification of the meter reading system according to the present invention. The meanings of symbols used in the description of FIG. 1 and the description of FIG. 1 will be described first.

(1)‘ハッシュ値(データ)’とは、カッコ内の‘データ’のハッシュ値を意味する。例えばハッシュ値(検針値)と書かれている場合は、検針値のハッシュ値を意味する。   (1) 'Hash value (data)' means a hash value of 'data' in parentheses. For example, a hash value (meter reading value) means a hash value of the meter reading value.

(2)記号‘|’は、左右に記載したデータの連結を意味する。例えばA|Bと書かれている場合は、データAとデータBとを連結することを意味する。   (2) The symbol “|” means the connection of the data described on the left and right. For example, when A | B is written, it means that data A and data B are connected.

(3)関数‘E(key, data)’は、カッコ内の第1番目に記載の暗号化鍵すなわちkeyを使用して、カッコ内の第2番目に記載のデータすなわちdataを暗号化、復号する関数を意味する。本来、暗号化と復号とは、反対の処理を表す言葉であるが、本発明においては、対称暗号化方式を用いることを前提にするため、前述の同じ関数‘E(key, data)’を用いて暗号化または復号の処理を行う。   (3) The function “E (key, data)” encrypts and decrypts the second data in parentheses, ie, data, using the first encryption key, ie, key, in parentheses. Means a function to Originally, encryption and decryption are terms representing the opposite processes. However, in the present invention, since it is assumed that a symmetric encryption method is used, the same function 'E (key, data)' described above is used. Used to perform encryption or decryption processing.

(4)秘密鍵は、検針データを中継する中継装置において暗号化のために用いる鍵である。   (4) The secret key is a key used for encryption in the relay device that relays the meter reading data.

(5)公開鍵は、検針データを収集する検針サーバにおいて復号のために用いる鍵である。   (5) The public key is a key used for decryption in the meter-reading server that collects meter-reading data.

(6)メータIDは、1ないし複数の検針メータそれぞれが検針する検針システムにおいて、検針サーバが個々の検針メータを識別するための識別情報である。   (6) The meter ID is identification information for the meter-reading server to identify each meter-reading meter in the meter-reading system in which one to a plurality of meter-reading meters measure each meter.

(7)検針値は、供給者が供給した供給量、言い換えると、需要者が使用した使用量を数値化したものである。例えば、検針メータが電力メータである場合には、検針値は、電力使用量である。また、電気料金のように使用時間帯に応じて電気料金が変わる場合、検針値は、使用時間帯と電気使用量とをまとめた数値となる。また、駐車場料金のように占有時間帯に応じて使用料金が変わるサービスの場合、検針値は、占有した時間帯および占有した時間をまとめた数値となる。   (7) The meter reading value is a numerical value of the supply amount supplied by the supplier, in other words, the usage amount used by the consumer. For example, when the meter-reading meter is a power meter, the meter-reading value is a power usage amount. In addition, when the electricity bill changes according to the usage time zone like the electricity bill, the meter reading value is a numerical value that summarizes the usage time zone and the amount of electricity used. Further, in the case of a service that changes the usage fee according to the occupied time zone, such as a parking lot fee, the meter reading value is a numerical value that summarizes the occupied time zone and the occupied time.

(8)セッションIDは、中継装置は知らない値であって、検針メータおよび検針サーバの2つの装置が知る値であり、検針メータおよび検針サーバのそれぞれにあらかじめ設定して記憶しておく。また、セッションIDの解読性を難しくするために、検針メータおよび検針サーバにおいて、あらかじめ決められた規則(例えば、あらかじめ定めた時間間隔ごとに更新するという規則)に基づき、セッションIDを更新する。なお、以下の説明においては、説明し易くするために、検針メータ側で記憶するセッションIDは、メータセッションID、検針サーバ側で記憶するセッションIDは、サーバセッションIDと記載することにする。検針メータ側の記憶領域に設定したメータセッションIDと、検針サーバ側の当該検針メータ用の記憶領域に設定したサーバセッションIDとは、原則として、同一の値に設定されるものである。   (8) The session ID is a value that the relay device does not know, and is a value known by the two devices of the meter-reading meter and the meter-reading server, and is set and stored in advance in each of the meter-reading meter and the meter-reading server. In addition, in order to make the session ID decipherable, the meter ID and the meter-reading server update the session ID based on a predetermined rule (for example, a rule that updates every predetermined time interval). In the following description, for ease of explanation, a session ID stored on the meter-reading meter side is described as a meter session ID, and a session ID stored on the meter-reading server side is described as a server session ID. In principle, the meter session ID set in the storage area on the meter-reading meter side and the server session ID set in the storage area for the meter-reading meter on the meter-reading server side are set to the same value.

(9)なお、図1の実線の四角ボックス内の文字列は、本検針システムを構成する装置の装置名を示す。また、破線の四角ボックス内の文字列は、各装置内で行われる処理の内容を示す。また、実線の矢印は、データの流れを示し、破線の矢印は、処理の流れを示している。   (9) In addition, the character string in the square box of the continuous line of FIG. 1 shows the apparatus name of the apparatus which comprises this meter-reading system. A character string in a broken-line square box indicates the contents of processing performed in each device. A solid line arrow indicates a data flow, and a broken line arrow indicates a processing flow.

次に、図1の説明図について概要を説明する。まず、図1に示すように、本発明による検針システムは、検針メータ1、中継装置2、検針サーバ3の3つの装置を少なくとも含んで構成される。   Next, the outline of the explanatory diagram of FIG. 1 will be described. First, as shown in FIG. 1, the meter reading system according to the present invention includes at least three devices: a meter reading meter 1, a relay device 2, and a meter reading server 3.

検針メータ1は、検針データを生成する。検針データは、図1に示すように、メータIDと検針値とハッシュ値とから構成される。ここで、ハッシュ値は、検針値とメータセッションIDとの結合値から求めた値である。該ハッシュ値は、図1のステップS1に示すように、検針メータ1においてハッシュ値計算を行って求められる。検針メータ1は、中継装置2に対し、前記検針データを送信する。   The meter-reading meter 1 generates meter-reading data. As shown in FIG. 1, the meter reading data includes a meter ID, a meter reading value, and a hash value. Here, the hash value is a value obtained from the combined value of the meter reading value and the meter session ID. The hash value is obtained by calculating a hash value in the meter-reading meter 1 as shown in step S1 of FIG. The meter-reading meter 1 transmits the meter-reading data to the relay device 2.

中継装置2は、暗号化処理を行う。該暗号化処理は、図1のステップS2に示すように、あらかじ保持している既知の秘密鍵を用い、かつ、暗号化関数‘E(秘密鍵、検針データ)’を用いて、検針メータ1から受け取った前記検針データの暗号化データを生成する。すなわち、以下の演算を行う。
暗号化データ
=E(秘密鍵、検針データ)
=E(秘密鍵、メータID|検針値|ハッシュ値(検針値|メータセッションID)
中継装置2は、検針サーバ3に対し、暗号化した前記暗号化データを送信する。
The relay device 2 performs an encryption process. As shown in step S2 of FIG. 1, the encryption process uses a known secret key held in advance and uses an encryption function 'E (secret key, meter reading data)' The encrypted data of the meter reading data received from 1 is generated. That is, the following calculation is performed.
Encrypted data = E (secret key, meter reading data)
= E (secret key, meter ID | meter reading value | hash value (meter reading value | meter session ID)
The relay device 2 transmits the encrypted data that has been encrypted to the meter-reading server 3.

検針サーバ3は、復号処理において、中継装置2から受け取った前記暗号化データの復号処理を行い、復号データを得る。該復号処理は、図1のステップS3に示すように、あらかじめ保持している既知の公開鍵を用い、以下の計算式に従って行う。
復号データ
=E(公開鍵、E(秘密鍵、検針データ))
=E(公開鍵、E(秘密鍵、メータID|検針値|ハッシュ値(検針値|メータセッションID))
=メータID|検針値|ハッシュ値(検針値|メータセッションID)
In the decryption process, the meter-reading server 3 decrypts the encrypted data received from the relay device 2 to obtain decrypted data. As shown in step S3 of FIG. 1, the decryption process is performed according to the following calculation formula using a known public key held in advance.
Decrypted data = E (public key, E (secret key, meter reading data))
= E (public key, E (secret key, meter ID) meter reading value | hash value (meter reading value | meter session ID))
= Meter ID | Meter reading value | Hash value (meter reading value | Meter session ID)

検針サーバ3において該復号処理が成功することにより、検針サーバ3が期待する中継装置2からの暗号化データであることが証明される。正当な暗号化データが得られたことが証明されると、検針サーバ3は、次に、前記復号処理より得られた検針値の検証を行う。   If the decryption process is successful in the meter reading server 3, it is proved that the data is the encrypted data from the relay device 2 expected by the meter reading server 3. If it is proved that valid encrypted data is obtained, the meter-reading server 3 next verifies the meter-reading value obtained by the decryption process.

まず、前記復号処理より得られたハッシュ値(検針値|メータセッションID)を被検証値とする。次に、検針サーバ3は、前記復号処理より得られたメータIDを用いて、検針サーバ3の記憶領域から、該メータIDに対応したサーバセッションIDを読み出す。次いで、検針サーバ3は、ハッシュ値計算を行う。検針サーバ3におけるハッシュ値計算は、図1のステップS4に示すように、復号結果の検針値とサーバセッションIDとを用いて、ハッシュ値(検針値|サーバセッションID)を計算する。そして、計算結果として得られたハッシュ値(検針値|サーバセッションID)を検証値とする。   First, a hash value (meter reading value | meter session ID) obtained by the decryption process is set as a value to be verified. Next, the meter reading server 3 reads the server session ID corresponding to the meter ID from the storage area of the meter reading server 3 using the meter ID obtained by the decoding process. Next, the meter reading server 3 performs a hash value calculation. The hash value calculation in the meter-reading server 3 calculates a hash value (meter-reading value | server session ID) using the meter-reading value and server session ID of the decoding result as shown in step S4 of FIG. Then, a hash value (meter reading value | server session ID) obtained as a calculation result is set as a verification value.

次に、検針サーバ3は、被検証値のハッシュ値(検針値|メータセッションID)と検証値のハッシュ値(検針値|サーバセッションID)とを用いた検証処理を行う。ここで、該検証処理は、図1のステップS5に示すように、被検証値と検証値とを比較し、検証結果を得る処理である。   Next, the meter reading server 3 performs a verification process using the hash value of the value to be verified (meter reading value | meter session ID) and the hash value of the verification value (meter reading value | server session ID). Here, the verification process is a process of obtaining a verification result by comparing the value to be verified with the verification value as shown in step S5 of FIG.

該検証処理において、被検証値=検証値の場合、復号結果の検針値に関する検証結果は真として得られる。一方、被検証値≠検証値の場合は、該検証結果は偽として得られる。以上が、本発明による検針システムの動作の概要である。   In the verification process, when the value to be verified = the verification value, the verification result regarding the meter reading value of the decoding result is obtained as true. On the other hand, when the value to be verified ≠ the verification value, the verification result is obtained as false. The above is the outline of the operation of the meter reading system according to the present invention.

次に、図2を用いて、検針値に改ざんが行われていた場合についてさらに説明する。図2は、図1に示した検針システムの中継装置2において検針値の改ざんが行われて、偽の検針値が検針サーバ3に送信された場合について説明するための説明図である。   Next, the case where the meter reading value has been tampered with will be further described with reference to FIG. FIG. 2 is an explanatory diagram for explaining a case where the meter reading value is falsified in the relay device 2 of the meter reading system shown in FIG. 1 and a false meter reading value is transmitted to the meter reading server 3.

図2の説明図のステップS2Aに示すように、中継装置2において、検針メータ1から受け取っていた検針値の改ざんが行われた場合、暗号化処理が行われる検針値が偽の検針値に書き換えられてしまう。つまり、次の式に示す暗号化処理が行われる。
E(秘密鍵、メータID|偽の検針値|ハッシュ値(検針値|メータセッションID)
As shown in step S2A of the explanatory diagram of FIG. 2, when the meter reading value received from the meter meter 1 is altered in the relay device 2, the meter reading value subjected to the encryption process is rewritten to a false meter reading value. It will be. That is, the encryption process shown in the following equation is performed.
E (secret key, meter ID | fake meter reading value | hash value (meter reading value | meter session ID)

ここで、中継装置2は、暗号化前のハッシュ値から、該ハッシュ値を算出するための検針値およびメータセッションIDを逆算することはできないため、暗号化前の偽の検針値の検証用としてのハッシュ値を生成して、偽の検針値に改ざんされているか否かを検証することは不可能である。   Here, since the relay apparatus 2 cannot reversely calculate the meter reading value and the meter session ID for calculating the hash value from the hash value before encryption, it is used for verification of the false meter reading value before encryption. It is impossible to verify whether or not the hash value has been altered to a fake meter reading value.

中継装置2から偽の検針値を含む暗号化データを受け取った検針サーバ3は、復号処理後のハッシュ値計算処理において、図2のステップS4Aに示すように、復号結果の偽の検針値とサーバセッションIDとを用いて、ハッシュ値(偽の検針値|サーバセッションID)を計算する。そして、計算結果として得られたハッシュ値(偽の検針値|サーバセッションID)を検証値とする。   The meter reading server 3 that has received the encrypted data including the false meter reading value from the relay device 2 in the hash value calculation process after the decryption process, as shown in step S4A of FIG. Using the session ID, a hash value (false meter reading value | server session ID) is calculated. Then, the hash value obtained as the calculation result (false meter reading value | server session ID) is set as the verification value.

その結果、検針サーバ3は、図2のステップS5Aに示すように、復号結果として得られた被検証値のハッシュ値(検針値|メータセッションID)と検証値のハッシュ値(偽の検針値|サーバセッションID)とを用いた検証処理を行うことになる。該検証処理においては、被検証値≠検証値の検証結果になるので、検針サーバ3が受け取った検針値は偽であることが検証される。以上が、検針値を改ざんした場合の本発明による検針システムの動作の概要である。   As a result, as shown in step S5A of FIG. 2, the meter-reading server 3 obtains the hash value of the value to be verified (meter-reading value | meter session ID) and the hash value of the verification value (false meter-reading value | The verification process using the server session ID) is performed. In the verification process, since the verification result is not equal to the verification value ≠ verification value, it is verified that the meter reading value received by the meter reading server 3 is false. The above is the outline of the operation of the meter reading system according to the present invention when the meter reading value is falsified.

(実施形態の構成例)
次に、本発明による検針システムのシステム構成の一例(本発明の実施形態の構成例)について、図3を参照して説明する。図3は、本発明による検針システムのシステム構成の一例を示すシステム構成図である。図3のシステム構成図に示すように、本発明による検針システムは、検針メータ1、中継装置2、公衆回線網4、検針サーバ3を少なくとも含んで構成される。
(Configuration example of embodiment)
Next, an example of the system configuration of the meter reading system according to the present invention (configuration example of the embodiment of the present invention) will be described with reference to FIG. FIG. 3 is a system configuration diagram showing an example of a system configuration of the meter reading system according to the present invention. As shown in the system configuration diagram of FIG. 3, the meter reading system according to the present invention includes at least a meter meter 1, a relay device 2, a public network 4, and a meter reading server 3.

検針メータ1は、需要者への供給量の検針を行う装置であって、供給者によりあらかじめ定めた一定期間の供給量を計測するための装置を指す。例えば、検針メータ1は、電気、ガス、水道等の供給量を計測する装置である。中継装置2は、検針メータ1と検針サーバ3との間を転送するデータの中継を行う装置であって、検針メータ1と検針サーバ3との間の通信を中継するための装置を指す。中継装置2は、例えば、検針メータ1からの検針値を読み取って、検針サーバ3に送信する機能を有する。なお、中継装置2の具体例としては、検針者6または設定作業者(図1には図示していない)が所有する携帯電話端末、スマートフォン等が挙げられる。   The meter-reading meter 1 is a device for measuring the amount of supply to a consumer, and refers to a device for measuring the amount of supply for a certain period of time predetermined by the supplier. For example, the meter-reading meter 1 is a device that measures the supply amount of electricity, gas, water and the like. The relay device 2 is a device that relays data transferred between the meter-reading meter 1 and the meter-reading server 3, and refers to a device that relays communication between the meter-reading meter 1 and the meter-reading server 3. For example, the relay device 2 has a function of reading a meter reading value from the meter meter 1 and transmitting it to the meter reading server 3. Specific examples of the relay device 2 include a mobile phone terminal, a smartphone, etc. owned by the meter reader 6 or a setting operator (not shown in FIG. 1).

また、公衆回線網4は、一般の公衆通信において利用される通信回線を指し、例えば、携帯電話回線やインターネット回線と呼ばれるデータ通信のための通信回線である。公衆回線網4は、それらの通信回線を複合した回線網でもよい。   The public line network 4 indicates a communication line used in general public communication, and is, for example, a communication line for data communication called a mobile phone line or an Internet line. The public line network 4 may be a line network that combines these communication lines.

検針サーバ3は、検針メータ1により検針された検針値を管理する装置であって、あらかじめ定めた周期で、定期的に、検針者6が検針値を収集するための装置を指す。   The meter-reading server 3 is a device that manages the meter-reading values read by the meter-reading meter 1 and refers to a device for the meter-reading person 6 to collect meter-reading values periodically at a predetermined cycle.

前述のように、検針者6は、中継装置2を使用して、検針作業を行う者を意味する。検針者6は、例えば、供給に対する対価を支払う需要者や、供給者が雇用する検針作業員等である。また、マンションや賃貸住宅の場合は、管理者が検針者6となる場合もある。なお、設定作業者(図3には図示していない)は、供給者が雇用する要員であり、中継装置2を使用して、セッションIDの初期値の設定動作を起動する作業を行う者を指す。セッションIDの初期値の設定動作を起動する作業を行う際に使用する中継装置2は、供給者または設定作業者が所有する装置である場合を含み、厳密には図3の検針者が所持する中継装置とは異なる。   As described above, the meter reading person 6 means a person who uses the relay device 2 to perform meter reading work. The meter reader 6 is, for example, a consumer who pays for the supply, a meter reading worker employed by the supplier, or the like. In the case of a condominium or a rental house, the manager may be the meter reader 6. Note that the setting operator (not shown in FIG. 3) is a person employed by the supplier, who uses the relay device 2 to perform an operation for starting the operation for setting the initial value of the session ID. Point to. The relay device 2 used when performing the operation for starting the operation for setting the initial value of the session ID includes the case where the device is owned by the supplier or the setting operator, strictly speaking, possessed by the meter reading person in FIG. It is different from the relay device.

検針メータ1と中継装置2との間の通信方法としては、一般に、近距離無線通信と呼ばれる無線技術を使用する。近距離無線通信とは、例えば、RFID(Radio Frequency Identifier)やNFC(Near Field Communication)と称される無線技術のことであり、互いの装置のアンテナ部を数cmの近距離まで近づけることにより無線通信を行うことが可能な通信などを指す。あるいは、検針メータ1と中継装置2との間の通信方法として、Bluetooth(登録商標)や無線LAN(Local Area Network)と称される数十mの距離まで無線通信を可能とする通信を用いても良い。   As a communication method between the meter-reading meter 1 and the relay apparatus 2, generally, the radio | wireless technique called near field communication is used. Short-range wireless communication is a wireless technology called RFID (Radio Frequency Identifier) or NFC (Near Field Communication), for example, and is wireless by bringing the antenna portions of each device close to a short distance of several centimeters. It refers to communications that can communicate. Alternatively, as a communication method between the meter-reading meter 1 and the relay device 2, communication capable of wireless communication up to a distance of several tens of meters called Bluetooth (registered trademark) or wireless LAN (Local Area Network) is used. Also good.

中継装置2を公衆回線網4に接続する手段としては、例えば、携帯電話通信回線が使用でき、また、無線LANも使用できる。   As a means for connecting the relay device 2 to the public line network 4, for example, a cellular phone communication line can be used, and a wireless LAN can also be used.

また、検針サーバ3を公衆回線網4に接続する手段としては、例えば、有線LANを使用する。無線通信技術を使用することも可能であるが、通信の安定性が高い方が良いので、有線LANの方が望ましい。   As a means for connecting the meter-reading server 3 to the public network 4, for example, a wired LAN is used. Although it is possible to use a wireless communication technology, a wired LAN is preferable because it is preferable that communication stability is high.

(実施形態の動作の説明)
次に、図3のシステム構成図に一例として示した本発明による検針システム(本発明の一実施形態)の動作の一例について説明する。まず、該検針システムの基本動作の概要を、図4のフローチャートを参照して説明する。図4は、図3に一例として示した本発明による検針システムの基本動作の一例を示すフローチャートである。
(Description of operation of embodiment)
Next, an example of the operation of the meter reading system according to the present invention (one embodiment of the present invention) shown as an example in the system configuration diagram of FIG. 3 will be described. First, the outline of the basic operation of the meter reading system will be described with reference to the flowchart of FIG. FIG. 4 is a flowchart showing an example of the basic operation of the meter reading system according to the present invention shown as an example in FIG.

図4のフローチャートに示すように、本発明による検針システムの基本動作は、セッションID初期化シーケンス(シーケンスSeq1)、鍵交付シーケンス(シーケンスSeq2)および検針シーケンス(シーケンスSeq3)の3つのシーケンスにより構成される。このうち、検針シーケンス(シーケンスSeq3)が本発明の特徴である検針値の検証を行うシーケンスである。セッションID初期化シーケンス(シーケンスSeq1)と秘密鍵交付シーケンス(シーケンスSeq2)とは、本発明に係る検針動作の特徴を実現するための前処理を行う重要なシーケンスである。   As shown in the flowchart of FIG. 4, the basic operation of the meter reading system according to the present invention is composed of three sequences: a session ID initialization sequence (sequence Seq1), a key distribution sequence (sequence Seq2), and a meter reading sequence (sequence Seq3). The Among these, the meter reading sequence (sequence Seq3) is a sequence for verifying the meter reading value, which is a feature of the present invention. The session ID initialization sequence (sequence Seq1) and the secret key issue sequence (sequence Seq2) are important sequences for performing preprocessing for realizing the characteristics of the meter reading operation according to the present invention.

次に、本発明による検針システムにおいて検針に至るまでの全体の動作の概要について、図5のフローチャートを参照して説明する。図5は、図3に一例として示した本発明による検針システムの検針に至るまでの全体の動作の一例を説明するフローチャートである。   Next, an outline of the entire operation up to the meter reading in the meter reading system according to the present invention will be described with reference to the flowchart of FIG. FIG. 5 is a flowchart for explaining an example of the entire operation up to the meter reading of the meter reading system according to the present invention shown as an example in FIG.

図5のフローチャートに示すように、本発明による検針システムの検針に至るまでの動作は、図4のフローチャートと同様の構成からなっており、セッションID初期化シーケンス(シーケンスSeq11)、鍵交付シーケンス(シーケンスSeq12)および検針シーケンス(シーケンスSeq13)の3つの工程を経ることにより、検針メータ1で検針した検針値が、検針サーバ3に受け渡されて、正しい検針値であるか否かが検証される。   As shown in the flowchart of FIG. 5, the operation up to the meter reading of the meter reading system according to the present invention has the same configuration as the flowchart of FIG. 4, and includes a session ID initialization sequence (sequence Seq11), a key grant sequence ( By passing through the three steps of sequence Seq12) and meter reading sequence (sequence Seq13), the meter reading value read by meter meter 1 is transferred to meter reading server 3 to verify whether or not it is a correct meter reading value. .

シーケンスSeq11のセッションID初期化シーケンスにおいては、あらかじめ定めた一定時間内に、検針メータ1および検針サーバ3に‘セッションID’と称する同じ値を設定する。ここで、‘セッションID’は、検針サーバ3が、検針メータ1から中継装置2、公衆回線網4を経由して受信した検針値の真偽検証を行うためのデータである。したがって、‘セッションID’は秘匿性を維持することが重要であるので、外部への漏洩を確実に防止することが必要である。   In the session ID initialization sequence of sequence Seq11, the same value called “session ID” is set in meter-reading meter 1 and meter-reading server 3 within a predetermined time. Here, 'session ID' is data for the meter reading server 3 to verify the authenticity of the meter reading value received from the meter meter 1 via the relay device 2 and the public line network 4. Therefore, since it is important to maintain the confidentiality of the “session ID”, it is necessary to reliably prevent leakage to the outside.

シーケンスSeq12の鍵交付シーケンスにおいては、まず、検針サーバ3が秘密鍵と公開鍵とを生成し、しかる後、検針サーバ3は、生成した秘密鍵を中継装置2に受け渡す。秘密鍵とは、秘密鍵暗号方式と呼ばれる方式で用いられる鍵であり、秘密鍵と公開鍵とが、暗号化と復号および復号と暗号化のそれぞれに使用することができる対称暗号化方式にて採用される鍵であることを意味している。   In the key issue sequence of sequence Seq12, first, the meter-reading server 3 generates a secret key and a public key, and then the meter-reading server 3 delivers the generated secret key to the relay device 2. A secret key is a key used in a method called a secret key encryption method, and is a symmetric encryption method in which a secret key and a public key can be used for encryption, decryption, decryption, and encryption, respectively. It means that it is a key to be adopted.

シーケンスSeq13の検針シーケンスにおいては、検針メータ1が計測した検針値を検針サーバ3に送信する。また、ここで言う検針値としては、供給を受けた日時、曜日、時間帯などの情報と紐付けされた情報のデータ群である場合もある。   In the meter reading sequence of sequence Seq13, the meter reading value measured by the meter meter 1 is transmitted to the meter reading server 3. In addition, the meter reading value referred to here may be a data group of information associated with information such as the date and time of supply, day of the week, and time zone.

次に、以下に詳細に説明する検針シーケンスにおいて使用する記号および名称について説明する。   Next, symbols and names used in the meter reading sequence described in detail below will be described.

(1)‘ハッシュ値(データ)’とは、前述したように、カッコ内の‘データ’のハッシュ値を意味する。例えばハッシュ値(検針値)と書かれている場合は、検針値のハッシュ値を意味する。   (1) 'Hash value (data)' means a hash value of 'data' in parentheses as described above. For example, a hash value (meter reading value) means a hash value of the meter reading value.

(2)記号‘|’は、前述したように、左右に記載したデータの連結を意味する。例えばA|Bと書かれている場合は、データAとデータBとを連結することを意味する。   (2) The symbol “|” means the connection of the data written on the left and right as described above. For example, when A | B is written, it means that data A and data B are connected.

(3)関数‘E(key, data)’は、前述したように、カッコ内の第1番目に記載の暗号化鍵すなわちkeyを使用して、カッコ内の第2番目に記載のデータすなわちdataを暗号化、復号する関数を意味する。本来、暗号化と復号とは、反対の処理を表す言葉であるが、本発明においては、前述したように、対称暗号化方式を用いることを前提にするため、前述の同じ関数‘E(key, data)’を用いて暗号化または復号の処理を行う。   (3) As described above, the function 'E (key, data)' uses the first encryption key or key in parentheses, and uses the second data or data in parentheses. Means a function to encrypt and decrypt. Originally, encryption and decryption are terms representing the opposite processes, but in the present invention, as described above, since it is assumed that a symmetric encryption method is used, the same function 'E (key , data) ′ to perform encryption or decryption processing.

(4)秘密鍵は、前述したように、データを中継する中継装置2において暗号化のために用いる鍵である。   (4) The secret key is a key used for encryption in the relay device 2 that relays data as described above.

(5)公開鍵は、前述したように、検針データを収集する検針サーバ3において復号のために用いる鍵である。   (5) The public key is a key used for decryption in the meter-reading server 3 that collects meter-reading data as described above.

(6)メータIDは、前述したように、複数の検針メータ1それぞれが検針する検針システムにおいて、検針サーバ3が個々の検針メータ1を識別するための識別情報である。   (6) As described above, the meter ID is identification information for the meter-reading server 3 to identify each meter-reading meter 1 in the meter-reading system in which each of the plurality of meter-reading meters 1 performs meter reading.

(7)検針値は、前述したように、供給者が供給した供給量、言い換えると、需要者が使用した使用量を数値化したものである。例えば、検針メータ1が電力メータである場合には、検針値は、電力使用量である。また、電気料金のように使用時間帯に応じて電気料金が変わる場合、検針値は、使用時間帯と電気使用量とをまとめた数値となる。また、駐車場料金のように占有時間帯に応じて使用料金が変わるサービスの場合、検針値は、占有した時間帯および占有した時間をまとめた数値となる。   (7) As described above, the meter reading value is a numerical value of the supply amount supplied by the supplier, in other words, the usage amount used by the consumer. For example, when the meter-reading meter 1 is a power meter, the meter-reading value is a power usage amount. In addition, when the electricity bill changes according to the usage time zone like the electricity bill, the meter reading value is a numerical value that summarizes the usage time zone and the amount of electricity used. Further, in the case of a service that changes the usage fee according to the occupied time zone, such as a parking lot fee, the meter reading value is a numerical value that summarizes the occupied time zone and the occupied time.

(8)セッションIDは、前述したように、秘匿性を維持するために、中継装置2は知らない値であって、検針メータ1および検針サーバ3が知る値であり、検針メータ1および検針サーバ3のそれぞれにあらかじめ設定して記憶しておく。また、セッションIDの解読性を難しくするために、検針メータ1および検針サーバ3において、あらかじめ決められた規則に基づき、セッションIDを更新する。なお、以下の説明においては、説明し易くするために、前述したように、検針メータ1側で記憶するセッションIDは、メータセッションID、検針サーバ3側で記憶するセッションIDは、サーバセッションIDと記載することにする。検針サーバ3側のサーバセッションIDは、対応する検針メータ1ごとに割り当てられた検針サーバ3の記憶領域それぞれに設定されて記憶される。ここで、検針メータ1側の記憶領域に設定したメータセッションIDと、検針サーバ3側の当該検針メータ用の記憶領域に設定したサーバセッションIDとは、原則として、同一の値に設定されるものである。   (8) As described above, the session ID is a value that the relay device 2 does not know in order to maintain confidentiality, and is a value that the meter reading meter 1 and the meter reading server 3 know, and the meter reading meter 1 and the meter reading server. 3 is set and stored in advance. Further, in order to make it difficult to read the session ID, the meter reading meter 1 and the meter reading server 3 update the session ID based on a predetermined rule. In the following description, for ease of explanation, as described above, the session ID stored on the meter-reading meter 1 side is the meter session ID, and the session ID stored on the meter-reading server 3 side is the server session ID. Will be described. The server session ID on the meter-reading server 3 side is set and stored in each storage area of the meter-reading server 3 assigned to each corresponding meter-reading meter 1. Here, in principle, the meter session ID set in the storage area on the meter-reading meter 1 side and the server session ID set in the storage area for the meter-reading meter on the meter-reading server 3 side are set to the same value in principle. It is.

次に、以下の説明において、各種データの表示に使用する記号について説明する。
(a)MIDは、検針メータ1を特定するメータIDを表す。
(b)MID’は、検針サーバ3が中継装置2を介して検針メータ1から受信した受信メータID(メータID(MID)に対応するデータ)を表す。
(c)SIDMは、検針メータ1が管理するセッションIDすなわちメータセッションIDの値を表す。
(d)SIDSは、検針サーバ3が管理するセッションIDすなわちサーバセッションIDの値を表す。
(e)Hmは、検針メータ1が計算した被検証用ハッシュ値(すなわち、図1にて説明したように、検針サーバ3における検証処理時の被検証値に該当するハッシュ値)を表す。
(f)Hm’は、検針サーバ3が中継装置2を介して検針メータ1から受信した受信被検証用ハッシュ値(被検証用ハッシュ値(Hm)に対応するデータ)を表す。
(g)Hsは、検針サーバ3が計算した検証用ハッシュ値(すなわち、図1にて説明したように、検針サーバ3における検証処理時の検証値に該当するハッシュ値)を表す。
(h)MVは、検針メータ1が計測したメータ値すなわち検針値を表す。
(i)MV’は、検針サーバ3が検針メータ1から受信した受信メータ値すなわち受信検針値(メータ値(MV)に対応するデータ)を表す。
(j)Erepは、中継装置2において検針メータ1から受信した検針データを暗号化した暗号化データを表す。
(k)E’repは、検針サーバ3が中継装置2から受信した受信暗号化データ(暗号化データ(Erep)に対応するデータ)を表す。
(l)KeySは、検針サーバ3が生成する秘密鍵を意味する。
(m)KeyPは、検針サーバ3が生成する公開鍵を意味する。
Next, in the following description, symbols used for displaying various data will be described.
(A) MID represents a meter ID that specifies the meter-reading meter 1.
(B) MID ′ represents the received meter ID (data corresponding to the meter ID (MID)) received from the meter-reading meter 1 by the meter-reading server 3 via the relay device 2.
(C) SIDM represents the session ID managed by the meter-reading meter 1, that is, the value of the meter session ID.
(D) SIDS represents the session ID managed by the meter-reading server 3, that is, the value of the server session ID.
(E) Hm represents a hash value for verification calculated by the meter-reading meter 1 (that is, a hash value corresponding to the value to be verified at the time of verification processing in the meter-reading server 3 as described in FIG. 1).
(F) Hm ′ represents a received hash value for verification (data corresponding to the hash value for verification (Hm)) received by the meter-reading server 3 from the meter-reading meter 1 via the relay device 2.
(G) Hs represents a verification hash value calculated by the meter-reading server 3 (that is, a hash value corresponding to a verification value at the time of verification processing in the meter-reading server 3 as described in FIG. 1).
(H) MV represents a meter value measured by the meter-reading meter 1, that is, a meter-reading value.
(I) MV ′ represents a received meter value received by the meter-reading server 3 from the meter-reading meter 1, that is, a received meter-reading value (data corresponding to the meter value (MV)).
(J) Erep represents encrypted data obtained by encrypting the meter reading data received from the meter meter 1 in the relay device 2.
(K) E′rep represents received encrypted data (data corresponding to the encrypted data (Erep)) received from the relay device 2 by the meter-reading server 3.
(L) KeyS means a secret key generated by the meter-reading server 3.
(M) KeyP means a public key generated by the meter-reading server 3.

次に、図5のフローチャートのシーケンスSeq11に示したセッションID初期化シーケンスにおけるセッションID初期値生成動作の流れの一例について、図6のシーケンスチャートを用いて説明する。図6は、セッションID初期化シーケンスにおけるセッションID初期値生成動作の流れの一例を示すシーケンスチャートであり、検針メータ1においてセッションIDの初期値を生成している場合についてその一例を示している。なお、図6には、検針システムを構成する公衆回線網4の記載は省略し、検針メータ1、中継装置2、検針サーバ3および設定作業者5それぞれにおける動作および作業の一例を示している。ここで、設定作業者5は、前述したように、供給者が雇用する要員であり、中継装置2を使用して、セッションIDの初期値の設定動作を起動する作業を行う者を指す。また、セッションIDの初期値の設定動作を起動する作業を行う際に使用する中継装置2は、前述したように、供給者または設定作業者が所有する装置である場合を含み、厳密には検針者が所持する中継装置とは異なる。   Next, an example of the flow of the session ID initial value generation operation in the session ID initialization sequence shown in the sequence Seq11 of the flowchart of FIG. 5 will be described using the sequence chart of FIG. FIG. 6 is a sequence chart showing an example of the flow of session ID initial value generation operation in the session ID initialization sequence, and shows an example of the case where the initial value of the session ID is generated in the meter-reading meter 1. In FIG. 6, the description of the public line network 4 constituting the meter reading system is omitted, and an example of operations and operations in the meter meter 1, the relay device 2, the meter reading server 3, and the setting operator 5 are shown. Here, as described above, the setting operator 5 is a person employed by the supplier, and refers to a person who uses the relay device 2 to perform an operation for starting the setting operation of the initial value of the session ID. Further, as described above, the relay device 2 used when performing the operation for starting the setting operation of the initial value of the session ID includes a case where the device is owned by the supplier or the setting operator, and strictly speaking, the meter reading is performed. It is different from the relay device owned by the person.

セッションID初期化シーケンスの目的は、前述したように、あらかじめ定めた一定時間内において、検針メータ1と検針サーバ3とのそれぞれにおいて管理する‘セッションID’と称する変数に同じ値を設定して、而して、検針値を検証することを可能にすることにある。また、‘セッションID’は、検針メータ1と検針サーバ3との2つの装置以外には知られてはならない値であるため、セッションIDの初期値設定の作業は、前述のように、供給者が管理する設定作業者5が実施する。また、セッションID初期化シーケンスにおいて設定作業者5が使用する中継装置は、検針に使用する中継装置2と同等の機能を有する装置を指す。   As described above, the purpose of the session ID initialization sequence is to set the same value for a variable called “session ID” managed in each of the meter-reading meter 1 and the meter-reading server 3 within a predetermined time period, Thus, it is possible to verify the meter reading value. In addition, since the “session ID” is a value that should not be known except by the two devices of the meter-reading meter 1 and the meter-reading server 3, the operation for setting the initial value of the session ID is performed as described above. The setting operator 5 managed by Further, the relay device used by the setting operator 5 in the session ID initialization sequence refers to a device having a function equivalent to that of the relay device 2 used for meter reading.

図6のシーケンスチャートにおいて、設定作業者5が、セッションID初期化起動を中継装置2に指示すると(シーケンスSeq21)、中継装置2は、セッションID初期化プログラムを起動する。セッションID初期化プログラムとは、図6の以下の動作の流れを制御するプログラムのことを言う。なお、起動とは、セッションID初期化プログラムの動作の契機を与えることを意味し、セッションID初期化プログラムは、例えば、中継装置2のCPU(Central Processing Unit)上で動作するアプリケーションなどにより実行される。   In the sequence chart of FIG. 6, when the setting operator 5 instructs the relay apparatus 2 to start session ID initialization (sequence Seq21), the relay apparatus 2 starts the session ID initialization program. The session ID initialization program refers to a program that controls the following operation flow of FIG. The activation means giving an opportunity for the operation of the session ID initialization program. The session ID initialization program is executed by, for example, an application that operates on the CPU (Central Processing Unit) of the relay device 2. The

中継装置2は、セッションID初期化プログラムの動作にしたがい、まず、検針メータ1に対して、セッションID初期化要求を送信する(シーケンスSeq22)。該セッションID初期化要求は、検針メータ1における次の動作となるセッションID初期値生成処理、メータセッションID初期化処理、メータセッションID初期化応答を行うきっかけとなる情報である。   Relay device 2 first transmits a session ID initialization request to meter-reading meter 1 in accordance with the operation of the session ID initialization program (sequence Seq22). The session ID initialization request is information that triggers a session ID initial value generation process, a meter session ID initialization process, and a meter session ID initialization response that are the next operations in the meter-reading meter 1.

中継装置2からのセッションID初期化要求を受け取った検針メータ1は、セッションID初期値生成において、セッションIDの初期値を生成する(シーケンスSeq23)。セッションIDの初期値の生成方法としては、例えば、検針メータ1に備えられているCPU等の演算部において乱数値を発生させ、発生した乱数値をセッションIDの初期値とするなどの方法がある。   The meter-reading meter 1 that has received the session ID initialization request from the relay device 2 generates an initial value of the session ID in the session ID initial value generation (sequence Seq23). As a method for generating the initial value of the session ID, for example, there is a method in which a random number value is generated in a calculation unit such as a CPU provided in the meter-reading meter 1 and the generated random value is used as the initial value of the session ID. .

しかる後、検針メータ1は、メータセッションID初期化において、前記セッションID初期値生成において生成されたセッションIDの初期値をセッションID変数として設定する(シーケンスSeq24)。この結果、該セッションIDの初期値は、メータセッションIDの初期値として記憶される。   Thereafter, in the meter session ID initialization, the meter-reading meter 1 sets the initial value of the session ID generated in the session ID initial value generation as a session ID variable (sequence Seq24). As a result, the initial value of the session ID is stored as the initial value of the meter session ID.

メータセッションID初期化の動作を終了すると、検針メータ1は、メータセッションID初期化応答において、検針メータ1から中継装置2に対して、前記セッションID初期値の動作により生成したセッションIDの初期値を送信する(シーケンスSeq25)。   When the meter session ID initialization operation is completed, the meter-reading meter 1 sends the initial value of the session ID generated from the meter-reading meter 1 to the relay device 2 by the operation of the session ID initial value in the meter session ID initialization response. Is transmitted (sequence Seq25).

中継装置2は、検針メータ1からメータセッションID初期化応答としてセッションID初期値を受け取ると、サーバセッションID初期化要求において、検針サーバ3に対して前記メータセッションID初期化応答として受信したセッションIDの初期値を送信する(シーケンスSeq26)。ここで、中継装置2は、前記メータセッションID初期化応答に含まれているセッションIDの初期値を該サーバセッションID初期化要求内に設定する動作を行うが、該セッションIDの初期値を中継装置2内に記憶して保持するような動作は行わない。   When the relay device 2 receives the session ID initial value from the meter-reading meter 1 as the meter session ID initialization response, the session ID received as the meter session ID initialization response from the meter-reading server 3 in the server session ID initialization request. Is transmitted (sequence Seq26). Here, the relay device 2 performs an operation of setting the initial value of the session ID included in the meter session ID initialization response in the server session ID initialization request, but relays the initial value of the session ID. The operation of storing and holding in the device 2 is not performed.

検針サーバ3は、中継装置2からサーバセッションID初期化要求としてセッションIDの初期値を受け取ると、サーバセッションID初期化を起動する。検針サーバ3は、サーバセッションID初期化において、前記サーバセッションID初期化要求で受信したセッションIDの初期値をセッションID変数として設定する(シーケンスSeq27)。この結果、該セッションIDの初期値は、サーバセッションIDの初期値として記憶される。つまり、検針サーバ3は、検針メータ1において記憶されているメータセッションIDの初期値の値と同一の値を、サーバセッションIDの初期値として保持する。また、該セッションIDの初期値の値は、検針メータ1と検針サーバ3との2つの装置が知っている値であるが、中継装置2等の他の装置には、全く判らない値である。   When the meter-reading server 3 receives the initial value of the session ID as a server session ID initialization request from the relay device 2, it starts server session ID initialization. In the server session ID initialization, the meter-reading server 3 sets the initial value of the session ID received by the server session ID initialization request as a session ID variable (sequence Seq27). As a result, the initial value of the session ID is stored as the initial value of the server session ID. That is, the meter reading server 3 holds the same value as the initial value of the meter session ID stored in the meter reading meter 1 as the initial value of the server session ID. The initial value of the session ID is a value known by two devices, the meter-reading meter 1 and the meter-reading server 3, but is a value that is not understood by other devices such as the relay device 2. .

しかる後、検針サーバ3は、サーバセッションID初期化応答において、中継装置2に対して、前記サーバセッションID初期化の動作完了を通知する(シーケンスSeq28)。該サーバセッションID初期化応答には、中継装置2が、検針サーバ3側のサーバセッションIDの初期化の動作が正しく実行されたか否かを判定するための情報を含んでいる。   Thereafter, the meter-reading server 3 notifies the relay device 2 of the completion of the server session ID initialization operation in a server session ID initialization response (sequence Seq28). The server session ID initialization response includes information for the relay device 2 to determine whether or not the operation of initializing the server session ID on the meter-reading server 3 side has been correctly executed.

ここで、図6に示すように、中継装置2は、シーケンスSeq22において、検針メータ1に対して、セッションID初期化要求を送信した際に、セッションIDタイマを起動している(シーケンスSeq29)。該セッションIDタイマは、中継装置2により管理されるタイマであり、メータセッションID初期化処理およびサーバセッションID初期化処理の双方があらかじめ定めた一定時間内に完了したか否かを判定するためのタイマである。   Here, as shown in FIG. 6, the relay device 2 starts a session ID timer when a session ID initialization request is transmitted to the meter-reading meter 1 in sequence Seq22 (sequence Seq29). The session ID timer is a timer managed by the relay device 2 for determining whether both the meter session ID initialization process and the server session ID initialization process are completed within a predetermined time. It is a timer.

中継装置2は、前記一定時間内に、検針サーバ3からサーバセッションID初期化応答を受け取ると、セッションIDタイマの計時動作を停止させる(シーケンスSeq30)。中継装置2は、メータセッションID初期化応答およびサーバセッションID初期化応答により、メータセッションID初期化処理およびサーバセッションID初期化処理が、前記一定時間内に正しく完了したこと確認できた場合、設定作業者5に対して、セッションID初期化完了通知を通知する(シーケンスSeq31)。該通知を行う方法としては、例えば、中継装置2に実装されるディスプレイやLED(Light Emitting Diode)等への出力を用いて視覚により確認する方法、スピーカへの音声出力を用いて聴覚により認識する方法、振動機能を用いて振動覚により認識する方法等が可能である。   When the relay device 2 receives a server session ID initialization response from the meter-reading server 3 within the predetermined time, the relay device 2 stops the timing operation of the session ID timer (sequence Seq30). When the relay device 2 confirms that the meter session ID initialization process and the server session ID initialization process are correctly completed within the predetermined time by the meter session ID initialization response and the server session ID initialization response, The operator 5 is notified of a session ID initialization completion notification (sequence Seq31). As a method of performing the notification, for example, a method of visually confirming using an output to a display mounted on the relay device 2 or an LED (Light Emitting Diode) or the like, or an auditory recognition using an audio output to a speaker A method, a method of recognizing by vibration sense using a vibration function, and the like are possible.

次に、検針メータ1および検針サーバ3それぞれに記憶されているセッションID(メータセッションIDおよびサーバセッションID)を更新する動作についてその一例を、図7の説明図を用いて説明する。   Next, an example of the operation of updating the session ID (meter session ID and server session ID) stored in the meter-reading meter 1 and the meter-reading server 3 will be described with reference to the explanatory diagram of FIG.

図7は、検針メータ1および検針サーバ3それぞれに記憶されているセッションIDの更新動作の一例を説明する説明図である。ここで、セッションIDとは、前述したように、検針メータ1側においてはメータセッションIDとして、検針サーバ3側においてはサーバセッションIDとして、更新可能な状態で記憶している変数のことを言う。   FIG. 7 is an explanatory diagram for explaining an example of the update operation of the session ID stored in each of the meter-reading meter 1 and the meter-reading server 3. Here, as described above, the session ID is a variable stored in an updatable state as a meter session ID on the meter-reading meter 1 side and as a server session ID on the meter-reading server 3 side.

図7に示すように、検針メータ1は、当該検針メータ1に内蔵する時計を用いて、更新期間としてあらかじめ設定される時間(T)が経過する都度、記憶しているメータセッションIDをあらかじめ定めた値ずつ更新する(シーケンスSeq42、Seq43)。一方、検針サーバ3は、当該検針サーバ3に内蔵する時計を用いて、更新期間としてあらかじめ設定される時間(T:検針メータ1側と同じ時間)が経過する都度、記憶しているメータセッションIDをあらかじめ定めた値ずつ更新する(シーケンスSeq52、Seq53)。ここで、該更新期間については、検針メータ1と検針サーバ3とで同じ時間として設定されている。例えば、該更新期間は、検針メータ1と検針サーバ3との双方で、午前0時や毎時0分などと、同じ時刻を更新期間として設定するようにすれば良い。他には、例えば、1時間毎や12時間毎のように、同じ時間間隔を更新期間として設定するようにしても良い。また、更新期間ごとに更新する値(あらかじめ定めた値)は、検針メータ1と検針サーバ3との双方で、同一の値を用いる。   As shown in FIG. 7, the meter-reading meter 1 uses a timepiece built in the meter-reading meter 1 to determine a meter session ID stored in advance every time (T) set in advance as an update period elapses. (Seq42, Seq43). On the other hand, the meter reading server 3 uses a clock built in the meter reading server 3 to store the meter session ID stored every time when a preset time (T: same time as the meter reading meter 1 side) elapses. Is updated by a predetermined value (sequence Seq52, Seq53). Here, the update period is set as the same time in the meter-reading meter 1 and the meter-reading server 3. For example, the update period may be set as the update period for both the meter-reading meter 1 and the meter-reading server 3 as the update period, such as midnight or 0 minutes per hour. Alternatively, the same time interval may be set as the update period, for example, every hour or every 12 hours. Further, the same value is used for both the meter-reading meter 1 and the meter-reading server 3 as the value (predetermined value) to be updated every update period.

次に、図5のフローチャートのシーケンスSeq12に示した鍵交付シーケンスにおける鍵交付動作の流れの一例について、図8のシーケンスチャートを用いて説明する。図8は、鍵交付シーケンスにおける鍵交付動作の流れの一例を示すシーケンスチャートであり、検針業務を司る検針者からの中継装置2に対する鍵交付指示に基づいて起動される。図8のフローチャートは、検針サーバ3において鍵(秘密鍵、公開鍵)を生成して、中継装置2に対して、生成した秘密鍵を交付する場合についてその一例を示している。なお、図8には、検針システムを構成する検針メータ1、公衆回線網4の記載は省略し、中継装置2、検針サーバ3および検針業務を司る検針者6それぞれにおける作業および動作の一例を示している。   Next, an example of the flow of the key issuing operation in the key issuing sequence shown in the sequence Seq12 of the flowchart of FIG. 5 will be described using the sequence chart of FIG. FIG. 8 is a sequence chart showing an example of the flow of a key delivery operation in the key delivery sequence, and is activated based on a key delivery instruction to the relay device 2 from a meter reader who performs meter reading work. The flowchart of FIG. 8 shows an example of a case where a key (secret key, public key) is generated in the meter-reading server 3 and the generated secret key is issued to the relay device 2. FIG. 8 omits the description of the meter-reading meter 1 and the public line network 4 constituting the meter-reading system, and shows an example of operations and operations in the relay device 2, the meter-reading server 3, and the meter-reading person 6 who controls meter-reading work. ing.

図8のシーケンスチャートにおいて、検針者6が、鍵交付起動を中継装置2に指示すると(シーケンスSeq61)、中継装置2は、鍵交付プログラムを起動する。鍵交付プログラムとは、図8の以下の動作の流れ(すなわち鍵要求から鍵記憶、鍵交付完了通知までの流れ)を制御するプログラムのことを言う。なお、起動とは、鍵交付プログラムの動作の契機を与えることを意味し、鍵交付プログラムは、例えば、中継装置2のCPU上で動作するアプリケーションなどにより実行される。   In the sequence chart of FIG. 8, when the meter reader 6 instructs the relay apparatus 2 to start key issuance (sequence Seq61), the relay apparatus 2 activates the key issuance program. The key distribution program refers to a program that controls the following operation flow of FIG. 8 (that is, the flow from key request to key storage and key distribution completion notification). The activation means giving an opportunity for the operation of the key distribution program, and the key distribution program is executed by, for example, an application operating on the CPU of the relay device 2.

中継装置2は、鍵交付プログラムの動作にしたがい、まず、検針サーバ3に対して、鍵交付要求を送信する(シーケンスSeq62)。該鍵交付要求は、検針サーバ3における次の動作となる鍵生成、鍵交付応答のきっかけとなる情報である。   Relay device 2 first transmits a key delivery request to meter-reading server 3 in accordance with the operation of the key delivery program (sequence Seq62). The key delivery request is information that triggers key generation and key delivery response, which are the next operations in the meter-reading server 3.

中継装置2からの鍵交付要求を受け取った検針サーバ3は、鍵生成処理を行う(シーケンスSeq63)。該鍵生成処理とは、鍵交付要求を送信した中継装置2に対応する公開鍵(KeyP)と秘密鍵(KeyS)とを生成する処理のことである。   The meter-reading server 3 that has received the key delivery request from the relay device 2 performs key generation processing (sequence Seq63). The key generation process is a process for generating a public key (KeyP) and a secret key (KeyS) corresponding to the relay apparatus 2 that has transmitted the key grant request.

検針サーバ3は、生成した公開鍵(KeyP)を記憶して保持するとともに、中継装置2に対して、鍵交付応答を送信する(シーケンスSeq64)。該鍵交付応答は、生成した秘密鍵(KeyS)を含む情報である。検針サーバ3からの鍵交付応答を受け取った中継装置2は、鍵記憶処理において、検針サーバ3から受け取った鍵交付応答に含まれている秘密鍵(KeyS)を記憶して保持する(シーケンスSeq65)。   Meter-reading server 3 stores and holds the generated public key (KeyP), and transmits a key delivery response to relay device 2 (sequence Seq64). The key delivery response is information including the generated secret key (KeyS). The relay device 2 that has received the key delivery response from the meter-reading server 3 stores and holds the secret key (KeyS) included in the key-delivery response received from the meter-reading server 3 in the key storage process (sequence Seq65). .

しかる後、中継装置2は、検針者6に対して、鍵交付完了通知を通知する(シーケンスSeq66)。該通知を行う方法としては、例えば、中継装置2に実装されるディスプレイやLED等への出力を用いて視覚により確認する方法、スピーカへの音声出力を用いて聴覚により認識する方法、振動機能を用いて振動覚により認識する方法等が可能である。   Thereafter, the relay device 2 notifies the meter reader 6 of a key delivery completion notification (sequence Seq66). As a method of performing the notification, for example, a method of visually confirming using an output to a display or LED mounted on the relay device 2, a method of recognizing by hearing using an audio output to a speaker, or a vibration function A method of recognizing by vibration sense can be used.

次に、図5のフローチャートのシーケンスSeq13に示した検針シーケンスにおける検針動作の流れの一例について、図9のシーケンスチャートを用いて説明する。図9は、検針シーケンスにおける検針動作の流れの一例を示すシーケンスチャートである。なお、図9には、検針システムを構成する公衆回線網4の記載は省略し、検針メータ1、中継装置2、検針サーバ3および検針業務を司る検針者6それぞれにおける作業および動作の一例を示している。また、図9において、実線矢印は、装置間の信号の流れを示し、破線矢印は、中継装置2と検針者6との間の情報の流れを示している。   Next, an example of the flow of the meter reading operation in the meter reading sequence shown in the sequence Seq13 of the flowchart of FIG. 5 will be described using the sequence chart of FIG. FIG. 9 is a sequence chart showing an example of the flow of the meter reading operation in the meter reading sequence. FIG. 9 omits the description of the public line network 4 constituting the meter reading system, and shows an example of operations and operations in the meter meter 1, the relay device 2, the meter reading server 3, and the meter reader 6 who performs meter reading work. ing. In FIG. 9, the solid line arrows indicate the signal flow between the apparatuses, and the broken line arrows indicate the information flow between the relay apparatus 2 and the meter reader 6.

図9のシーケンスチャートにおいて、検針者6が、検針プログラム起動を中継装置2に指示すると(シーケンスSeq71)、中継装置2は、検針プログラムを起動する。検針プログラムとは、図9の以下の動作の流れ(すなわち検針要求から検針検証、検針完了通知までの流れ)を制御するプログラムのことを言う。なお、起動とは、検針プログラムの動作の契機を与えることを意味し、検針プログラムは、例えば、中継装置2のCPU上で動作するアプリケーションなどにより実行される。   In the sequence chart of FIG. 9, when the meter reader 6 instructs the relay device 2 to start the meter reading program (sequence Seq71), the relay device 2 starts the meter reading program. The meter reading program refers to a program for controlling the following operation flow of FIG. 9 (that is, the flow from a meter reading request to meter reading verification to meter reading completion notification). The activation means giving an opportunity for the operation of the meter reading program, and the meter reading program is executed by, for example, an application that operates on the CPU of the relay device 2.

中継装置2は、検針プログラムの動作にしたがい、まず、検針メータ1に対して、検針要求を送信する(シーケンスSeq72)。該検針要求は、検針メータ1における次の動作となるサーバ検証用データ生成処理のきっかけとなる情報である。   According to the operation of the meter reading program, relay device 2 first transmits a meter reading request to meter meter 1 (sequence Seq72). The meter reading request is information that triggers server verification data generation processing that is the next operation in the meter reading meter 1.

中継装置2からの検証要求を受け取った検針メータ1は、サーバ検証用データ生成処理において、対象とする情報(すなわち検針値)の計測を行うとともに、サーバ検証用の被検証値として被検証用ハッシュ値(Hm)を生成する(シーケンスSeq73)。検針メータ1が計測した情報(すなわち検針値)は、メータ値(MV)として取得される。また、サーバ検証用の被検証値として生成した被検証用ハッシュ値(Hm)は、メータ値(MV)と検針メータ1が管理するセッションIDすなわちメータセッションID(SIDM)とを、ハッシュ計算(Hash Calculation)関数(H)を用いて、ハッシュ化することにより生成する。つまり、被検証用ハッシュ値(Hm)の算出式は、次の式(1)により与えられる。
Hm=H(SIDM|MV) …(1)
The meter-reading meter 1 that has received the verification request from the relay device 2 measures the target information (that is, the meter-reading value) in the server verification data generation process, and uses the hash to be verified as the value to be verified for server verification. A value (Hm) is generated (sequence Seq73). Information (that is, the meter reading value) measured by the meter meter 1 is acquired as a meter value (MV). The hash value for verification (Hm) generated as the value to be verified for server verification is a hash calculation (Hash) of the meter value (MV) and the session ID managed by the meter-reading meter 1, that is, the meter session ID (SIDM). It is generated by hashing using a (Calculation) function (H). That is, the calculation formula of the hash value for verification (Hm) is given by the following formula (1).
Hm = H (SIDM | MV) (1)

被検証用ハッシュ値(Hm)は、検針サーバ3が、検針メータ1から中継装置2、公衆回線網4を介して受信した検針データに不正なデータが含まれていないことを検証するときに使用される値(すなわち被検証値として用いられる値)である。また、ハッシュ計算(Hash Calculation)には、MD5(Message Digest 5)やSHA(Secure Hash Algorithm)シリーズと称されるハッシュ関数アルゴリズム等を用いる。   The hash value for verification (Hm) is used when the meter-reading server 3 verifies that the meter-reading data received from the meter-reading meter 1 via the relay device 2 and the public line network 4 does not contain illegal data. Value (that is, a value used as a value to be verified). For hash calculation, a hash function algorithm called MD5 (Message Digest 5) or SHA (Secure Hash Algorithm) series is used.

検針メータ1は、被検証用ハッシュ値(Hm)を生成すると、検針結果であるメータ値(MV)と生成した被検証用ハッシュ値(Hm)とを含んで構成される検針応答を、中継装置2に対して送信する(シーケンスSeq74)。つまり、該検針応答に含まれる検針データのデータ構成としては、次の式(2)に示すように、検針メータ1を特定するメータID(MID)、サーバ検証用の被検証値である被検証用ハッシュ値(Hm)、および、検針結果の検針値であるメータ値(MV)を少なくとも含んで構成される。
検針データ=MID|Hm|MV …(2)
When the meter-reading meter 1 generates the hash value for verification (Hm), the meter-reading response including the meter value (MV) as the meter-reading result and the generated hash value for verification (Hm) 2 (sequence Seq74). That is, as the data structure of the meter reading data included in the meter reading response, as shown in the following formula (2), a meter ID (MID) for specifying the meter meter 1 and a verified value that is a value to be verified for server verification And at least a meter value (MV) that is a meter reading value of the meter reading result.
Meter reading data = MID | Hm | MV (2)

中継装置2は、検針メータ1からの検針応答を受け取ると、検針者6に対して、検針結果である検針値の承認を求めるための検針値承認要求を通知する(シーケンスSeq75)。つまり、該検針値承認要求は、検針値であるメータ値(MV)を通知するものである。該通知を行う方法としては、例えば、中継装置2に実装されるディスプレイやLED等への出力を用いて視覚により確認する方法、スピーカへの音声出力を用いて聴覚により認識する方法、振動機能を用いて振動覚により認識する方法等が可能である。   When the relay device 2 receives the meter reading response from the meter reading meter 1, the relay device 2 notifies the meter reading person 6 of a meter reading value approval request for requesting the approval of the meter reading value as the meter reading result (sequence Seq75). In other words, the meter reading value approval request notifies the meter value (MV) which is the meter reading value. As a method of performing the notification, for example, a method of visually confirming using an output to a display or LED mounted on the relay device 2, a method of recognizing by hearing using an audio output to a speaker, or a vibration function A method of recognizing by vibration sense can be used.

検針者6は、中継装置2からの検針値承認要求を受け取ると、該検針値承認要求により通知されてきたメータ値(MV)を確認し、中継装置2に備えられた入力インタフェースを使用して、検針値承認応答を中継装置2に対して入力することにより、メータ値(MV)の承認を行う(シーケンスSeq76)。   Upon receiving the meter reading value approval request from the relay device 2, the meter reader 6 confirms the meter value (MV) notified by the meter reading value approval request, and uses the input interface provided in the relay device 2. Then, the meter value (MV) is approved by inputting a meter reading value approval response to the relay device 2 (sequence Seq76).

検針者6からの検針値承認応答を受け取ることにより、検針値の承認を得た中継装置2は、検針メータ1から送信されてきた検針応答に含まれる検針データの暗号化処理を行う(シーケンスSeq77)。該暗号化処理において、暗号化される検針データは、メータID(MID)、被検証用ハッシュ値(Hm)、メータ値(MV)を結合したデータであり、図5のシーケンスSeq12の鍵交付シーケンスにおいて記憶した秘密鍵(KeyS)を用いて暗号化される。すなわち、該暗号化処理により得られる暗号化データ(Erep)の算出式は、次の式(3)により与えられる。
Erep=E(KeyS,MID|Hm|MV) …(3)
なお、メータID(MID)は、検針メータ1を特定するデータであり、被検証用ハッシュ値(Hm)は、前述したように、検針値とメータセッションIDとの結合データのハッシュ化データであり、メータ値(MV)は、検針値である。
Receiving the meter reading value approval response from the meter reader 6, the relay device 2 that has obtained the approval of the meter reading value performs the process of encrypting the meter reading data included in the meter reading response transmitted from the meter meter 1 (sequence Seq77). ). In the encryption process, the meter reading data to be encrypted is data obtained by combining the meter ID (MID), the hash value for verification (Hm), and the meter value (MV), and the key issuing sequence of the sequence Seq12 in FIG. It is encrypted using the secret key (KeyS) stored in. That is, the calculation formula of the encrypted data (Erep) obtained by the encryption processing is given by the following formula (3).
Erep = E (KeyS, MID | Hm | MV) (3)
The meter ID (MID) is data for specifying the meter-reading meter 1, and the hash value for verification (Hm) is hashed data of the combined data of the meter-reading value and the meter session ID as described above. The meter value (MV) is a meter reading value.

しかる後、中継装置2は、検針サーバ3に対して、暗号化処理を行うことにより生成された暗号化データ(Erep)を含む検針通知を送信する(シーケンスSeq78)。つまり、該検針通知に含まれるデータは、メータID(MID)、被検証用ハッシュ値(Hm)、メータ値(MV)を暗号化した暗号化データ(Erep)である。   Thereafter, the relay device 2 transmits a meter reading notification including encrypted data (Erep) generated by performing the encryption process to the meter reading server 3 (sequence Seq78). That is, the data included in the meter reading notification is encrypted data (Erep) obtained by encrypting the meter ID (MID), the hash value for verification (Hm), and the meter value (MV).

検針サーバ3は、中継装置2からの暗号化データ(Erep)を含む前記検針通知を、受信暗号化データ(E’rep)を含む受信検針通知として受け取ると、復号処理において、受信した該受信検針通知に含まれている受信暗号化データ(E’rep)の復号を行う(シーケンスSeq79)。ここで、復号処理においては、当該検針サーバ3において作成してあらかじめ保存している公開鍵(KeyP)を用いて、受信暗号化データ(E’rep)の復号を行う。その結果、検針サーバ3における受信検針データとして、受信メータID(MID’)、受信被検証用ハッシュ値(Hm’)、受信メータ値(MV’)を得る。復号したそれぞれのデータは、中継装置2が暗号化データとして暗号化する前の検針データを構成するデータに対応している。すなわち、復号したそれぞれのデータは、メータID(MID)、被検証用ハッシュ値(Hm)、メータ値(MV)にそれぞれ対応したデータである。   When the meter-reading server 3 receives the meter-reading notification including the encrypted data (Erep) from the relay device 2 as the received meter-reading notification including the received encrypted data (E'rep), the received meter-reading received in the decryption process. The received encrypted data (E′rep) included in the notification is decrypted (sequence Seq79). Here, in the decryption process, the received encrypted data (E′rep) is decrypted using the public key (KeyP) created and stored in advance in the meter-reading server 3. As a result, a reception meter ID (MID ′), a reception-provided hash value (Hm ′), and a reception meter value (MV ′) are obtained as reception meter-reading data in the meter-reading server 3. Each decrypted data corresponds to data constituting meter-reading data before the relay device 2 encrypts the data as encrypted data. In other words, each decrypted data is data corresponding to a meter ID (MID), a hash value for verification (Hm), and a meter value (MV).

つまり、かくのごとき検針サーバ3の復号処理は、次の式(4)の計算式を用いて表すことができる。
E(KeyP,E’rep)=MID’|Hm’|MV’ …(4)
That is, the decoding process of the meter reading server 3 as described above can be expressed by using the following equation (4).
E (KeyP, E′rep) = MID ′ | Hm ′ | MV ′ (4)

検針サーバ3は、受信暗号化データ(E’rep)の復号処理を完了すると、次に、検証事前計算処理において、復号処理により得られた受信メータID(MID’)に対応するサーバセッションID(SIDS)を、検針サーバ3内の記憶領域から読み出す。さらに、検針サーバ3は、検証事前計算処理において、読み出したサーバセッションID(SIDS)と復号処理により得られた受信メータ値(MV’)とを結合し、その結合値のハッシュ化を行うことにより、サーバ検証用の検証値として検証用ハッシュ値(Hs)を求める(シーケンスSeq80)。検証用ハッシュ値(Hs)を求める計算式は、次の式(5)により与えられる。
Hs=H(SIDS|MV’) …(5)
After completing the decryption process of the received encrypted data (E′rep), the meter-reading server 3 next performs a server session ID (MID ′) corresponding to the received meter ID (MID ′) obtained by the decryption process in the verification precalculation process SIDS) is read from the storage area in the meter-reading server 3. Further, the meter-reading server 3 combines the read server session ID (SIDS) and the received meter value (MV ′) obtained by the decryption process and performs hashing of the combined value in the verification pre-calculation process. Then, a verification hash value (Hs) is obtained as a verification value for server verification (sequence Seq80). A calculation formula for obtaining the verification hash value (Hs) is given by the following formula (5).
Hs = H (SIDS | MV ′) (5)

しかる後、検針サーバ3は、検針値検証処理において、受信検針値である受信メータ値(MV’)の正常性の検証処理を行う(シーケンスSeq81)。該検証処理は、復号処理により得られた受信被検証用ハッシュ値(Hm’)と検証事前計算処理により得られた検証用ハッシュ値(Hs)とを比較することにより行われる。   Thereafter, the meter-reading server 3 performs normality verification processing of the reception meter value (MV ′) that is the received meter-reading value in the meter-reading value verification processing (sequence Seq81). The verification process is performed by comparing the received hash value for verification (Hm ′) obtained by the decryption process with the verification hash value (Hs) obtained by the verification pre-calculation process.

該比較により求められた比較結果に基づいて、以下の判定を行う。
(1)Hs=Hm’の場合
受信した受信メータ値(MV’)すなわち受信検針値は正しい検針値であると判定する。
(2)Hs≠Hm’の場合
受信した受信メータ値(MV’)すなわち受信検針値は不正な検針値であると判定する。
Based on the comparison result obtained by the comparison, the following determination is performed.
(1) When Hs = Hm ′ It is determined that the received meter value (MV ′), that is, the received meter reading value is a correct meter reading value.
(2) When Hs ≠ Hm ′ It is determined that the received meter value (MV ′), that is, the received meter reading value is an illegal meter reading value.

ここで、正しい検針値とは、期待される検針メータ1から送信されてきた検針値すなわちメータ値(MV)であることを意味する。また、受信した受信メータ値(MV’)すなわち受信検針値が正しい検針値であることが検証された場合には、検針サーバ3は、受信検針値すなわち受信メータ値(MV’)を受理する。一方、受信した受信メータ値(MV’)すなわち受信検針値が不正な検針値であることが検証された場合には、検針サーバ3は、受信検針値すなわち受信メータ値(MV’)を受理しない。ここで、受理とは、例えば、供給者が、需要者に対する料金徴収のための検針値として受信検針値すなわち受信メータ値(MV’)を使用することを意味している。   Here, the correct meter reading value means the meter reading value transmitted from the expected meter reading meter 1, that is, the meter value (MV). When it is verified that the received meter value (MV ′), that is, the received meter reading value is the correct meter value, the meter reading server 3 accepts the received meter value, that is, the received meter value (MV ′). On the other hand, if it is verified that the received meter value (MV ′), that is, the received meter reading value is an illegal meter value, the meter reading server 3 does not accept the received meter value, ie, the received meter value (MV ′). . Here, accepting means, for example, that the supplier uses a received meter reading value, that is, a received meter value (MV ′) as a meter reading value for collecting charges for a consumer.

次に、シーケンスSeq80およびシーケンスSeq81それぞれの検証事前計算処理および検針値検証処理の運用上の処理に関して、さらに、補足説明を行う。検針メータ1におけるメータセッションIDと検針サーバ3におけるサーバセッションIDとは、前述したように、本来、同じ値で変化することを前提にしているが、偶々、両者の値が一致しない場合が存在する。   Next, a supplementary explanation will be given regarding the operation in advance of the verification pre-calculation process and the meter reading value verification process of the sequence Seq80 and the sequence Seq81. As described above, the meter session ID in the meter-reading meter 1 and the server session ID in the meter-reading server 3 are originally assumed to change with the same value, but there are cases where the values do not coincide with each other by chance. .

両者の値が一致しない第1番目の場合としては、検針メータ1におけるメータセッションIDと検針サーバ3におけるサーバセッションIDとの設定のタイミングのずれのために、メータセッションIDとサーバセッションIDとの更新のタイミングがずれてしまい、偶々、両者でずれている時間帯において、検針シーケンスが動作した場合である。   In the first case where the values do not match, the meter session ID and the server session ID are updated due to the timing difference between the meter session ID in the meter-reading meter 1 and the server session ID in the meter-reading server 3. This is a case where the meter reading sequence is operated in a time zone in which the timing is shifted and the both are accidentally shifted.

両者の値が一致しない第2番目の場合としては、検針メータ1および検針サーバ3それぞれの装置の内部時計が刻む時間に小さな誤差が累積し、メータセッションIDとサーバセッションIDとの更新間隔の誤差が、メータセッションIDとサーバセッションIDとの値のずれとして影響する場合である。   In the second case where the values do not match, a small error accumulates in the time that the internal clocks of the meter reading meter 1 and the meter reading server 3 respectively divide, and the error in the update interval between the meter session ID and the server session ID However, this is a case where the difference between the meter session ID and the server session ID is affected.

このため、両者の値が一致しない場合があることを前提にして、検針サーバ3は対処する必要がある。まず、シーケンスSeq80の検証事前計算処理においては、記憶領域に記憶しているサーバセッションIDの他に、時間ずれを考慮したサーバセッションIDをあらかじめ定めた生成アルゴリズムに基づいて別途生成し、複数のサーバセッションIDそれぞれを用いて、サーバ検証用の検証値として複数の検証用ハッシュ値(Hs)を求める。   For this reason, it is necessary for the meter-reading server 3 to deal with it on the assumption that the two values may not match. First, in the verification pre-calculation process of the sequence Seq80, in addition to the server session ID stored in the storage area, a server session ID that takes time lag into consideration is separately generated based on a predetermined generation algorithm, and a plurality of servers Using each session ID, a plurality of verification hash values (Hs) are obtained as verification values for server verification.

次に、シーケンスSeq81の検針値検証処理においては、シーケンスSeq80の検証事前計算処理において得られた複数の検証用ハッシュ値(Hs)それぞれに対して受信被検証用ハッシュ値(Hm’)を比較する処理を行う。そして、複数の比較結果のうち、Hs=Hm’の関係が成立する検証用ハッシュ値(Hs)が存在する場合には、受信した受信メータ値(MV’)すなわち受信検針値は正しい検針値であると判定する。かかる処理を行うことにより、メータセッションIDとサーバセッションIDとの値が一致していない期間であっても、検針値の検証を行うことが可能になる。   Next, in the meter reading value verification process of sequence Seq81, the received verification hash value (Hm ′) is compared with each of the plurality of verification hash values (Hs) obtained in the verification pre-calculation process of sequence Seq80. Process. If there is a verification hash value (Hs) that satisfies the relationship of Hs = Hm ′ among the plurality of comparison results, the received meter value (MV ′), that is, the received metering value is the correct metering value. Judge that there is. By performing such processing, it is possible to verify the meter reading value even during a period in which the values of the meter session ID and the server session ID do not match.

また、Hs=Hm’の関係が成立する場合の検証用ハッシュ値(Hs)の生成に使用したサーバセッションIDを、時間ずれを補正したサーバセッションIDとして、該当するサーバセッションIDの記憶領域に再設定すれば良い。   Further, the server session ID used for generating the verification hash value (Hs) when the relationship of Hs = Hm ′ is established is re-stored in the storage area of the corresponding server session ID as the server session ID corrected for the time lag. Set it.

検針サーバ3は、シーケンスSeq81の検針値検証処理を完了すると、中継装置2に対して、検針通知応答を送信する(シーケンスSeq82)。該検針通知応答は、検針サーバ3における検針データの検証結果を通知するものである。中継装置2は、検針サーバ3からの検針通知応答を受け取ると、検針完了通知において、検針者6に対して、検針サーバ3から受け取った検証結果を通知する(シーケンスSeq83)。   When the meter reading server 3 completes the meter reading value verification process of the sequence Seq 81, the meter reading server 3 transmits a meter reading notification response to the relay device 2 (sequence Seq 82). The meter reading notification response notifies a result of verification of meter reading data in the meter reading server 3. When relay device 2 receives the meter reading notification response from meter reading server 3, relay device 2 notifies meter reading person 6 of the verification result received from meter reading server 3 in the meter reading completion notification (sequence Seq83).

(実施形態の効果の説明)
以上に詳細に説明したように、本実施形態による検針システムにおいては、次のような効果が得られる。
(Explanation of effect of embodiment)
As described in detail above, the following effects can be obtained in the meter reading system according to the present embodiment.

まず、本実施形態による検針システムにおいては、検針サーバ3において、検針値が正しいか否かの検証を行うことができるという効果が得られる。その理由は、図1のステップS1の検針メータ1におけるハッシュ値計算に示すように、検針メータ1において検針値とあらかじめ設定したメータセッションIDとからハッシュ値を生成するからである。そして、図1の検針メータ1が送信する検針データに示すように、検針メータ1から検針サーバ3に受け渡す検針データを、検針メータ1を特定するメータID、検針値の他に、生成した前記ハッシュ値を含む構成としているからである。さらに補足すれば、検針サーバ3は、前記検針データを受け取った際に、検針メータ1から送られてきた前記ハッシュ値を、検針メータ1から送られてきた検索値とあらかじめ設定したサーバセッションIDとに基づいて生成したハッシュ値と比較し、両者が一致するか否かを検証しているからである。   First, in the meter reading system according to the present embodiment, an effect that the meter reading server 3 can verify whether or not the meter reading value is correct is obtained. This is because, as shown in the hash value calculation in the meter reading meter 1 in step S1 of FIG. 1, the meter reading meter 1 generates a hash value from the meter reading value and a preset meter session ID. And as shown in the meter-reading data which the meter-reading meter 1 of FIG. 1 transmits, the meter-reading data delivered from the meter-reading meter 1 to the meter-reading server 3 other than meter ID and meter-reading value which specify the meter-reading meter 1 were produced | generated. This is because the hash value is included. In addition, when the meter reading server 3 receives the meter reading data, the meter reading server 3 uses the hash value sent from the meter reading meter 1 as the search value sent from the meter reading meter 1 and a preset server session ID. This is because it is verified whether or not they match with the hash value generated based on the above.

次に、検針データの暗号化処理を実施する装置に関して、検針システムの初期構築時の費用について検討を行う。検針者への応答性を損なうことなく、暗号アルゴリズムを実行するためには、高速な演算装置が必要であるが、一般的に、高速な演算装置は高価である。なお、検針者への応答性とは、検針者の操作に対する装置の応答性能を意味する。   Next, with regard to the device that performs the meter reading data encryption process, the cost for the initial construction of the meter reading system is examined. In order to execute the encryption algorithm without impairing the responsiveness to the meter reader, a high-speed arithmetic device is necessary, but in general, a high-speed arithmetic device is expensive. The responsiveness to the meter reader means the response performance of the device with respect to the operation of the meter reader.

例えば、本実施形態の場合とは異なり、検針メータ1側において暗号アルゴリズムを実行する場合、検針メータ1に高価な演算処理用の部品を使用することが必要になるので、検針メータ1の価格が高価になる。   For example, unlike the case of the present embodiment, when the encryption algorithm is executed on the meter-reading meter 1 side, it is necessary to use expensive arithmetic processing parts for the meter-reading meter 1, so that the price of the meter-reading meter 1 is low. It becomes expensive.

一方、本実施形態の場合のように、中継装置2において暗号アルゴリズムを実行する場合、携帯電話、スマートフォン等の装置からなる中継装置2には、既に高速な演算装置が備わっているので、暗号アルゴリズムの実行に高速な該演算装置を使用することが可能であり、検針システムの構築に関わる余分の費用は発生しない。なお、前記演算装置とは、CPU(Central Processing Unit)やFPGA(Field Programmable Gate Array)等の暗号化のための数値演算処理を実行することができる装置を意味する。   On the other hand, when the encryption algorithm is executed in the relay device 2 as in the case of the present embodiment, the relay device 2 composed of a device such as a mobile phone or a smartphone already has a high-speed arithmetic device. It is possible to use the high-speed computing device for the execution of the above, and there is no extra cost associated with the construction of the meter reading system. In addition, the said arithmetic unit means the apparatus which can perform the numerical calculation process for encryption, such as CPU (Central Processing Unit) and FPGA (Field Programmable Gate Array).

以上より、検針システムの初期構築時において、本実施形態の場合のように、中継装置2に暗号アルゴリズムを担当させる方が安価に検針システムを構築することができるという効果が得られる。   As described above, at the time of initial construction of the meter reading system, it is possible to construct the meter reading system at a lower cost if the relay device 2 takes charge of the encryption algorithm as in the case of the present embodiment.

次に、暗号化のアルゴリズム更新時の費用について検討を行う。将来、暗号化のアルゴリズムに脆弱性が見つかり、暗号アルゴリズムの更新が必要になる可能性がある。   Next, the cost for updating the encryption algorithm is examined. In the future, vulnerabilities may be found in the encryption algorithm and it may be necessary to update the encryption algorithm.

例えば、本実施形態の場合とは異なり、検針メータ1に暗号アルゴリズムのプログラムが実装されている場合、次のような問題がある。すなわち、検針システムの供給者または該供給者が管理する作業者が、各検針メータ1の設置場所に赴いて、その設置場所で、検針メータ1の暗号アルゴリズムに関わるファームウェアの書き換え作業を行うことが必要になる。   For example, unlike the case of the present embodiment, when a program of an encryption algorithm is installed in the meter-reading meter 1, there are the following problems. That is, a supplier of the meter reading system or an operator managed by the supplier visits the installation location of each meter meter 1 and rewrites firmware related to the encryption algorithm of the meter meter 1 at the installation location. I need it.

一方、本実施形態の場合のように、中継装置2において暗号アルゴリズム処理を行う場合は、中継装置2が新たな暗号アルゴリズムのプログラムを公衆回線網4経由でダウンロードしてインストールすれば、暗号アルゴリズムの更新を行うことが可能である。   On the other hand, when encryption algorithm processing is performed in the relay device 2 as in the present embodiment, if the relay device 2 downloads and installs a new encryption algorithm program via the public network 4, the encryption algorithm Updates can be made.

以上より、中継装置2において暗号アルゴリズム処理を実施する方が、検針メータ1よりも暗号アルゴリズムの更新の容易性を高くすることができるという効果が得られる。   As described above, it is possible to increase the ease of updating the cryptographic algorithm by performing the cryptographic algorithm processing in the relay device 2 as compared with the meter-reading meter 1.

検針データの暗号化処理を実施する装置に関する以上の検討結果より、本実施形態による検針システムにおいては、次のような2つの効果が同時に得られる。すなわち、中継装置2に暗号化処理を担当させる方が、検針メータ1に担当させるよりも、検針システムの初期構築コストを安価にし、かつ、暗号化処理の更新容易性が高いという2つの効果が得られる。   From the above examination results regarding the apparatus for performing the meter reading data encryption process, the meter reading system according to the present embodiment can obtain the following two effects simultaneously. That is, having the relay device 2 in charge of the encryption process has two effects that the initial construction cost of the meter reading system is lower and the encryption process is more easily updated than in the meter reading meter 1. can get.

さらには、一般的には、現状における最適な仕組みとして適用した信頼性対策であっても、将来的に脆弱性が高まってくる場合も想定され、機器やプログラムの更新を行う必要性が発生することもある。かくのごとき更新を行う際の費用は、供給者および需要者の負担となる。よって、本実施形態においては、検針システムに適用する検針プログラムをはじめとする中継装置2および検針サーバ3内の各プログラムについても、公衆回線網4経由で、新たなプログラムをダウンロードして入れ替えることにより、容易に更新することを可能にしている。   Furthermore, in general, even if reliability measures are applied as an optimal mechanism in the present situation, there is a possibility that vulnerabilities will increase in the future, and there is a need to update devices and programs. Sometimes. Costs for renewal such as this are borne by the supplier and the consumer. Accordingly, in the present embodiment, the relay device 2 and the programs in the meter reading server 3 including the meter reading program applied to the meter reading system are also downloaded and replaced via the public line network 4. Making it easy to update.

[本発明の他の実施形態]
次に、本発明による検針システムの他の実施形態について説明する。以下に記載の他の実施形態においては、検針システムのシステム構成は、前述した図3のシステム構成図と全く同様であり、図6に示したセッションID初期化シーケンスにおけるセッションID初期値生成動作に関する他の動作例について説明している。
[Other Embodiments of the Present Invention]
Next, another embodiment of the meter reading system according to the present invention will be described. In other embodiments described below, the system configuration of the meter reading system is exactly the same as the system configuration diagram of FIG. 3 described above, and relates to the session ID initial value generation operation in the session ID initialization sequence shown in FIG. Another operation example is described.

(第1の他の実施形態)
まず、セッションID初期化シーケンスにおけるセッションID初期値生成動作に関する第1の他の動作例について、図10のシーケンスチャートを用いて説明する。図10は、セッションID初期化シーケンスにおけるセッションID初期値生成動作の流れの図6とは異なる第1の他の例を示すシーケンスチャートである。図10に示す動作例は、図6の場合とは異なり、セッションID初期値生成を中継装置2において行う場合の具体例を示している。なお、図6の場合と同様、図10には、検針システムを構成する公衆回線網4の記載は省略し、検針メータ1、中継装置2、検針サーバ3およびセッションID初期化作業を行う設定作業者5それぞれにおける作業および動作を示している。
(First other embodiment)
First, a first other operation example related to the session ID initial value generation operation in the session ID initialization sequence will be described with reference to the sequence chart of FIG. FIG. 10 is a sequence chart showing a first other example different from FIG. 6 of the flow of the session ID initial value generation operation in the session ID initialization sequence. Unlike the case of FIG. 6, the operation example illustrated in FIG. 10 illustrates a specific example in the case where the session ID initial value generation is performed in the relay device 2. As in the case of FIG. 6, FIG. 10 omits the description of the public line network 4 that constitutes the meter reading system, and performs setting work for initializing the meter meter 1, the relay device 2, the meter reading server 3, and the session ID. The work and operation | movement in each person 5 are shown.

図10のシーケンスチャートにおいて、設定作業者5が、セッションID初期化起動を中継装置2に指示すると(シーケンスSeq21A)、中継装置2は、図6の場合と同様、セッションID初期化プログラムを起動する。セッションID初期化プログラムとは、図10の以下の動作の流れを制御するプログラムのことを言う。なお、起動とは、図6の場合と同様、セッションID初期化プログラムの動作の契機を与えることを意味し、セッションID初期化プログラムは、例えば、中継装置2のCPU上で動作するアプリケーションなどにより実行される。   In the sequence chart of FIG. 10, when the setting operator 5 instructs the relay apparatus 2 to start session ID initialization (sequence Seq21A), the relay apparatus 2 starts the session ID initialization program as in FIG. . The session ID initialization program refers to a program that controls the following operation flow of FIG. As in the case of FIG. 6, activation means giving an opportunity for the operation of the session ID initialization program. The session ID initialization program is executed by, for example, an application operating on the CPU of the relay device 2 or the like. Executed.

中継装置2は、セッションID初期化プログラムの動作にしたがい、まず、セッションID初期値生成において、セッションIDの初期値を生成する(シーケンスSeq22A)。セッションIDの初期値の生成方法としては、例えば、中継装置2に備えられているCPU等の演算部において乱数値を発生させ、発生した乱数値をセッションIDの初期値とするなどの方法がある。   In accordance with the operation of the session ID initialization program, relay device 2 first generates an initial value of a session ID in generating a session ID initial value (sequence Seq22A). As a method for generating the initial value of the session ID, for example, there is a method in which a random number value is generated in a calculation unit such as a CPU provided in the relay apparatus 2 and the generated random value is used as the initial value of the session ID. .

しかる後、中継装置2は、検針メータ1に対して、メータセッションID初期化要求を送信する(シーケンスSeq23A)。該メータセッションID初期化要求は、セッションID初期値生成処理において生成したセッションIDの初期値を、メータセッションIDの初期値として通知するものである。ここで、中継装置2は、前記セッションID初期化生成処理において生成したセッションIDの初期値を該メータセッションID初期化要求内および後述のサーバセッションID初期化要求内に設定する動作を行うが、その後は廃棄してしまい、該セッションIDの初期値を中継装置2内に記憶して保持するような動作は行わない。   Thereafter, relay device 2 transmits a meter session ID initialization request to meter-reading meter 1 (sequence Seq23A). The meter session ID initialization request notifies the initial value of the session ID generated in the session ID initial value generation process as the initial value of the meter session ID. Here, the relay device 2 performs an operation of setting an initial value of the session ID generated in the session ID initialization generation process in the meter session ID initialization request and a server session ID initialization request described later. Thereafter, the session ID is discarded, and an operation for storing and holding the initial value of the session ID in the relay apparatus 2 is not performed.

中継装置2からのメータセッションID初期化要求を受け取った検針メータ1は、メータセッションID初期値において、中継装置2から受け取ったセッションIDの初期値を、セッションID変数として設定する(シーケンスSeq24A)。この結果、該セッションIDの初期値は、メータセッションIDの初期値として記憶される。   The meter-reading meter 1 that has received the meter session ID initialization request from the relay device 2 sets the initial value of the session ID received from the relay device 2 as a session ID variable in the initial meter session ID value (sequence Seq24A). As a result, the initial value of the session ID is stored as the initial value of the meter session ID.

メータセッションID初期化の動作を終了すると、検針メータ1は、メータセッションID初期化応答を中継装置2に対して送信する(シーケンスSeq25A)。該メータセッションID初期化応答には、中継装置2において、検針メータ1側のメータセッションID初期化の動作が正しく実行されたか否かを判定するための情報が含まれている。   When the operation of initializing the meter session ID ends, the meter-reading meter 1 transmits a meter session ID initialization response to the relay device 2 (sequence Seq25A). The meter session ID initialization response includes information for determining whether or not the meter session ID initialization operation on the meter-reading meter 1 side is correctly executed in the relay device 2.

中継装置2は、検針メータ1からメータセッションID初期化応答を受け取ると、メータセッション初期化の動作が正しく実行されたことを確認した後、サーバセッションID初期化要求において、検針サーバ3に対して前記セッションID初期値生成において生成したセッションIDの初期値を送信する(シーケンスSeq26A)。   When the relay device 2 receives the meter session ID initialization response from the meter-reading meter 1, after confirming that the meter session initialization operation has been correctly executed, the relay device 2 responds to the meter-reading server 3 in the server session ID initialization request. The initial value of the session ID generated in the session ID initial value generation is transmitted (sequence Seq26A).

検針サーバ3は、中継装置2からサーバセッションID初期化要求としてセッションIDの初期値を受け取ると、図6の場合と同様、サーバセッションID初期化を起動する。検針サーバ3は、サーバセッションID初期化において、図6の場合と同様、前記サーバセッションID初期化要求で受信したセッションIDの初期値をセッションID変数として設定する(シーケンスSeq27A)。この結果、該セッションIDの初期値は、サーバセッションIDの初期値として記憶される。つまり、検針サーバ3は、検針メータ1において記憶されているメータセッションIDの初期値の値と同一の値を、サーバセッションIDの初期値として保持する。また、該セッションIDの初期値の値は、検針メータ1と中継装置2と検針サーバ3との3つの装置が知っている値であるが、セッションID初期化シーケンス以外で使用される中継装置2およびその他の装置には、全く判らない値である。   When the meter-reading server 3 receives the initial value of the session ID as a server session ID initialization request from the relay device 2, it starts server session ID initialization as in the case of FIG. In the server session ID initialization, the meter-reading server 3 sets the initial value of the session ID received by the server session ID initialization request as a session ID variable (sequence Seq27A) as in the case of FIG. As a result, the initial value of the session ID is stored as the initial value of the server session ID. That is, the meter reading server 3 holds the same value as the initial value of the meter session ID stored in the meter reading meter 1 as the initial value of the server session ID. Further, the initial value of the session ID is a value known by the three devices of the meter-reading meter 1, the relay device 2, and the meter-reading server 3, but the relay device 2 used outside the session ID initialization sequence. And for other devices, the value is completely unknown.

しかる後、検針サーバ3は、図6の場合と同様、サーバセッションID初期化応答において、中継装置2に対して、前記サーバセッションID初期化の動作完了を通知する(シーケンスSeq28A)。該サーバセッションID初期化応答には、中継装置2が、検針サーバ3側のサーバセッションIDの初期化の動作が正しく実行されたか否かを判定するための情報を含んでいる。   Thereafter, as in the case of FIG. 6, the meter-reading server 3 notifies the relay device 2 of the completion of the server session ID initialization operation in a server session ID initialization response (sequence Seq28A). The server session ID initialization response includes information for the relay device 2 to determine whether or not the operation of initializing the server session ID on the meter-reading server 3 side has been correctly executed.

ここで、図10に示すように、中継装置2は、シーケンスSeq22Aにおいて、セッションID初期値生成の動作を完了した際に、セッションIDタイマを起動している(シーケンスSeq29A)。該セッションIDタイマは、図6の場合と同様、中継装置2により管理されるタイマであり、メータセッションID初期化処理およびサーバセッションID初期化処理の双方があらかじめ定めた一定時間内に完了したか否かを判定するためのタイマである。   Here, as shown in FIG. 10, the relay device 2 starts the session ID timer when the operation of generating the session ID initial value is completed in the sequence Seq22A (sequence Seq29A). As in the case of FIG. 6, the session ID timer is a timer managed by the relay device 2. Whether the meter session ID initialization process and the server session ID initialization process are completed within a predetermined time. It is a timer for determining whether or not.

中継装置2は、前記一定時間内に、検針サーバ3からサーバセッションID初期化応答を受け取ると、図6の場合と同様、セッションIDタイマの計時動作を停止させる(シーケンスSeq30A)。中継装置2は、メータセッションID初期化応答およびサーバセッションID初期化応答により、メータセッションID初期化処理およびサーバセッションID初期化処理が、前記一定時間内に正しく完了したことを確認することができた場合、図6の場合と同様、設定作業者5に対して、セッションID初期化完了通知を通知する(シーケンスSeq31A)。該通知を行う方法としては、例えば、中継装置2に実装されるディスプレイやLED等への出力を用いて視覚により確認する方法、スピーカへの音声出力を用いて聴覚により認識する方法、振動機能を用いて振動覚により認識する方法等が可能である。   When the relay device 2 receives a server session ID initialization response from the meter-reading server 3 within the predetermined time, the relay device 2 stops the time counting operation of the session ID timer as in the case of FIG. 6 (sequence Seq30A). The relay device 2 can confirm that the meter session ID initialization process and the server session ID initialization process are correctly completed within the predetermined time by the meter session ID initialization response and the server session ID initialization response. In the same manner as in FIG. 6, the setting operator 5 is notified of a session ID initialization completion notification (sequence Seq31A). As a method of performing the notification, for example, a method of visually confirming using an output to a display or LED mounted on the relay device 2, a method of recognizing by hearing using an audio output to a speaker, or a vibration function A method of recognizing by vibration sense can be used.

(第2の他の実施形態)
次に、セッションID初期化シーケンスにおけるセッションID初期値生成動作に関する第2の他の動作例について、図11のシーケンスチャートを用いて説明する。図11は、セッションID初期化シーケンスにおけるセッションID初期値生成動作の流れの図6とは異なる第2の他の例を示すシーケンスチャートである。図11に示す動作例は、図6の場合とは異なり、セッションID初期値生成を検針サーバ3において行う場合の具体例を示している。なお、図6の場合と同様、図11には、検針システムを構成する公衆回線網4の記載は省略し、検針メータ1、中継装置2、検針サーバ3およびセッションID初期化作業を行う設定作業者5それぞれにおける作業および動作を示している。
(Second other embodiment)
Next, a second other operation example regarding the session ID initial value generation operation in the session ID initialization sequence will be described with reference to the sequence chart of FIG. FIG. 11 is a sequence chart showing a second other example different from FIG. 6 of the flow of the session ID initial value generation operation in the session ID initialization sequence. The operation example shown in FIG. 11 is a specific example in which the session ID initial value generation is performed in the meter-reading server 3 unlike the case of FIG. Similar to the case of FIG. 6, FIG. 11 omits the description of the public line network 4 constituting the meter-reading system, and the setting work for initializing the meter-reading meter 1, the relay device 2, the meter-reading server 3, and the session ID. The work and operation | movement in each person 5 are shown.

図11のシーケンスチャートにおいて、設定作業者5が、セッションID初期化起動を中継装置2に指示すると(シーケンスSeq21B)、中継装置2は、図6の場合と同様、セッションID初期化プログラムを起動する。セッションID初期化プログラムとは、図11の以下の動作の流れを制御するプログラムのことを言う。なお、起動とは、図6の場合と同様、セッションID初期化プログラムの動作の契機を与えることを意味し、セッションID初期化プログラムは、例えば、中継装置2のCPU上で動作するアプリケーションなどにより実行される。   In the sequence chart of FIG. 11, when the setting operator 5 instructs the relay apparatus 2 to start session ID initialization (sequence Seq21B), the relay apparatus 2 starts the session ID initialization program as in the case of FIG. . The session ID initialization program refers to a program that controls the following operation flow in FIG. As in the case of FIG. 6, activation means giving an opportunity for the operation of the session ID initialization program. The session ID initialization program is executed by, for example, an application operating on the CPU of the relay device 2 or the like. Executed.

中継装置2は、セッションID初期化プログラムの動作にしたがい、まず、検針サーバ3に対して、サーバセッションID初期化要求を送信する(シーケンスSeq22B)。該セッションID初期化要求は、検針サーバ3における次の動作となるサーバセッションID初期値生成処理、サーバセッションID初期化処理、サーバセッションID初期化応答を行うきっかけとなる情報である。   Relay device 2 first transmits a server session ID initialization request to meter-reading server 3 according to the operation of the session ID initialization program (sequence Seq22B). The session ID initialization request is information that triggers a server session ID initial value generation process, a server session ID initialization process, and a server session ID initialization response that are the next operations in the meter-reading server 3.

検針サーバ3は、中継装置2からのセッションID初期化要求を受け取ると、サーバセッションID初期値生成において、セッションIDの初期値を生成する(シーケンスSeq23B)。セッションIDの初期値の生成方法としては、例えば、検針サーバ3に備えられているCPU等の演算部において乱数値を発生させ、発生した乱数値をセッションIDの初期値とするなどの方法がある。   Upon receipt of the session ID initialization request from relay device 2, meter-reading server 3 generates an initial value of the session ID in the server session ID initial value generation (sequence Seq23B). As a method for generating the initial value of the session ID, for example, there is a method in which a random number value is generated in a calculation unit such as a CPU provided in the meter-reading server 3 and the generated random value is used as the initial value of the session ID. .

しかる後、検針サーバ3は、サーバセッションID初期化において、サーバセッションID初期値生成において生成したセッションIDの初期値を、セッションID変数の初期値として設定する(シーケンスSeq24B)。この結果、該セッションIDの初期値は、サーバセッションIDの初期値として記憶される。   Thereafter, in the server session ID initialization, the meter-reading server 3 sets the initial value of the session ID generated in the server session ID initial value generation as the initial value of the session ID variable (sequence Seq24B). As a result, the initial value of the session ID is stored as the initial value of the server session ID.

検針サーバ3は、サーバセッションID初期化の動作が完了すると、中継装置2に対して、サーバセッションID初期化応答を送信する(シーケンスSeq25B)。該サーバセッションID初期化応答は、サーバセッションID初期値生成において生成したセッションIDの初期値(すなわち、サーバセッションIDの初期値)を含む情報である。   Upon completion of the server session ID initialization operation, meter-reading server 3 transmits a server session ID initialization response to relay device 2 (sequence Seq25B). The server session ID initialization response is information including the initial value of the session ID generated in the server session ID initial value generation (that is, the initial value of the server session ID).

検針サーバ3からのサーバセッションID初期化応答を受け取った中継装置2は、検針メータ1に対して、メータセッションID初期化要求を送信する(シーケンスSeq26B)。該メータセッションID初期化要求は、検針サーバ3から受け取ったサーバセッションID初期化応答により通知されたセッションIDの初期値を含む情報である。ここで、中継装置2は、前記サーバセッションID初期化応答に含まれているセッションIDの初期値を該メータセッションID初期化要求内に設定する動作を行うが、該セッションIDの初期値を中継装置2内に記憶するような動作は行わない。   The relay device 2 that has received the server session ID initialization response from the meter-reading server 3 transmits a meter session ID initialization request to the meter-reading meter 1 (sequence Seq26B). The meter session ID initialization request is information including the initial value of the session ID notified by the server session ID initialization response received from the meter-reading server 3. Here, the relay device 2 performs the operation of setting the initial value of the session ID included in the server session ID initialization response in the meter session ID initialization request, but relays the initial value of the session ID. The operation of storing in the device 2 is not performed.

中継装置2からのメータセッションID初期化要求を受け取った検針メータ1は、図10の場合と同様、メータセッションID初期化において、中継装置2から受け取ったセッションIDの初期値を、セッションID変数として設定する(シーケンスSeq27B)。この結果、該セッションIDの初期値は、メータセッションIDの初期値として記憶される。つまり、検針メータ1は、検針サーバ3において記憶されているサーバセッションIDの初期値の値と同一の値を、メータセッションIDの初期値として保持する。また、該セッションIDの初期値の値は、検針サーバ3と検針メータ1との2つの装置が知っている値であるが、中継装置2等の他の装置には、全く判らない値である。   The meter-reading meter 1 that has received the meter session ID initialization request from the relay device 2 uses the initial value of the session ID received from the relay device 2 as the session ID variable in the meter session ID initialization as in the case of FIG. Set (sequence Seq27B). As a result, the initial value of the session ID is stored as the initial value of the meter session ID. That is, the meter-reading meter 1 holds the same value as the initial value of the server session ID stored in the meter-reading server 3 as the initial value of the meter session ID. In addition, the initial value of the session ID is a value known by two devices, the meter reading server 3 and the meter reading meter 1, but is not understood by other devices such as the relay device 2 at all. .

メータセッションID初期化の動作を終了すると、検針メータ1は、図10の場合と同様、メータセッションID初期化応答を中継装置2に対して送信する(シーケンスSeq28B)。該メータセッションID初期化応答には、中継装置2において、検針メータ1側のメータセッションID初期化の動作が正しく実行されたか否かを判定するための情報が含まれている。   When the meter session ID initialization operation is completed, the meter-reading meter 1 transmits a meter session ID initialization response to the relay device 2 as in the case of FIG. 10 (sequence Seq28B). The meter session ID initialization response includes information for determining whether or not the meter session ID initialization operation on the meter-reading meter 1 side is correctly executed in the relay device 2.

中継装置2は、検針メータ1からメータセッションID初期化応答を受け取ると、検針サーバ3に対してメータセッションID初期値完了通知を送信する(シーケンスSeq29B)。該メータセッションID初期値完了通知には、検針メータ1から受け取ったメータセッションID初期化応答に含まれていた、検針メータ1側のメータセッションID初期化の動作が正しく実行されたか否かを判定するための情報が含まれている。   When relay device 2 receives a meter session ID initialization response from meter-reading meter 1, relay device 2 transmits a meter session ID initial value completion notification to meter-reading server 3 (sequence Seq29B). The meter session ID initial value completion notification determines whether the meter session ID initialization operation on the meter meter 1 side included in the meter session ID initialization response received from the meter meter 1 has been executed correctly. Contains information to do.

ここで、図11に示すように、検針サーバ3は、シーケンスSeq23Bにおいて、サーバセッションID初期値生成の動作を完了した際に、セッションIDタイマを起動している(シーケンスSeq30B)。該セッションIDタイマは、図6の場合とは異なり、検針サーバ3により管理されるタイマであり、サーバセッションID初期化処理およびメータセッションID初期化処理の双方があらかじめ定めた一定時間内に完了したか否かを判定するためのタイマである。   Here, as shown in FIG. 11, the meter-reading server 3 starts the session ID timer when the operation of generating the server session ID initial value is completed in the sequence Seq23B (sequence Seq30B). Unlike the case of FIG. 6, the session ID timer is a timer managed by the meter-reading server 3, and both the server session ID initialization process and the meter session ID initialization process are completed within a predetermined time. It is a timer for determining whether or not.

検針サーバ3は、前記一定時間内に、中継装置2からメータセッションID初期化完了通知を受け取ると、セッションIDタイマの計時動作を停止させる(シーケンスSeq31B)。   When the meter-reading server 3 receives the meter session ID initialization completion notification from the relay device 2 within the predetermined time, the meter-reading server 3 stops the timing operation of the session ID timer (sequence Seq31B).

さらに、検針サーバ3は、サーバセッションID初期化処理およびメータセッションID初期化処理の双方があらかじめ定めた一定時間内に完了したことを確認することができた場合、中継装置2に対して、メータセッションID初期化完了通知応答を送信する(シーケンスSeq32B)。   Furthermore, when the meter reading server 3 can confirm that both the server session ID initialization process and the meter session ID initialization process are completed within a predetermined time, the meter reading server 3 Session ID initialization completion notification response is transmitted (sequence Seq32B).

中継装置2は、検針サーバ3からメータセッションID初期化完了通知応答を受け取ると、設定作業者5に対して、セッションID初期化完了通知を通知する(シーケンスSeq33B)。該通知を行う方法としては、例えば、中継装置2に実装されるディスプレイやLED等への出力を用いて視覚により確認する方法、スピーカへの音声出力を用いて聴覚により認識する方法、振動機能を用いて振動覚により認識する方法等が可能である。   When the relay device 2 receives the meter session ID initialization completion notification response from the meter-reading server 3, the relay device 2 notifies the setting operator 5 of a session ID initialization completion notification (sequence Seq33B). As a method of performing the notification, for example, a method of visually confirming using an output to a display or LED mounted on the relay device 2, a method of recognizing by hearing using an audio output to a speaker, or a vibration function A method of recognizing by vibration sense can be used.

(第3の他の実施形態)
次に、セッションID初期化シーケンスにおけるセッションID初期値生成動作に関する第3の他の動作例について、図12のシーケンスチャートを用いて説明する。図12は、セッションID初期化シーケンスにおけるセッションID初期値生成動作の流れの図6とは異なる第3の他の例を示すシーケンスチャートである。図12に示す動作例は、図6の場合とは異なり、メータセッションID初期化およびサーバセッション初期化の処理を検針メータ1および検針サーバ3それぞれにおいてあらかじめ定めた既知の値を用いて行う場合の具体例を示している。なお、図6の場合と同様、図12には、検針システムを構成する公衆回線網4の記載は省略し、検針メータ1、中継装置2、検針サーバ3およびセッションID初期化作業を行う設定作業者5それぞれにおける作業および動作を示している。
(Third other embodiment)
Next, a third other operation example regarding the session ID initial value generation operation in the session ID initialization sequence will be described with reference to the sequence chart of FIG. FIG. 12 is a sequence chart showing a third other example different from FIG. 6 of the flow of the session ID initial value generation operation in the session ID initialization sequence. The operation example shown in FIG. 12 is different from the case of FIG. 6 in the case where the meter session ID initialization process and the server session initialization process are performed using predetermined values determined in advance in the meter-reading meter 1 and the meter-reading server 3, respectively. A specific example is shown. Similar to the case of FIG. 6, FIG. 12 omits the description of the public line network 4 constituting the meter-reading system, and the setting work for initializing the meter-reading meter 1, the relay device 2, the meter-reading server 3, and the session ID. The work and operation | movement in each person 5 are shown.

図12のシーケンスチャートにおいて、設定作業者5が、セッションID初期化起動を中継装置2に指示すると(シーケンスSeq21C)、中継装置2は、図6の場合と同様、セッションID初期化プログラムを起動する。セッションID初期化プログラムとは、図12の以下の動作の流れを制御するプログラムのことを言う。なお、起動とは、図6の場合と同様、セッションID初期化プログラムの動作の契機を与えることを意味し、セッションID初期化プログラムは、例えば、中継装置2のCPU上で動作するアプリケーションなどにより実行される。   In the sequence chart of FIG. 12, when the setting operator 5 instructs the relay apparatus 2 to start session ID initialization (sequence Seq21C), the relay apparatus 2 starts the session ID initialization program as in the case of FIG. . The session ID initialization program refers to a program that controls the following operation flow of FIG. As in the case of FIG. 6, activation means giving an opportunity for the operation of the session ID initialization program. The session ID initialization program is executed by, for example, an application operating on the CPU of the relay device 2 or the like. Executed.

中継装置2は、セッションID初期化プログラムの動作にしたがい、まず、検針サーバ3に対して、サーバセッションID初期化要求を送信する(シーケンスSeq22C)。該サーバセッションID初期化要求は、検針サーバ3において次の動作となるサーバセッションID初期化処理、サーバセッションID初期化応答を行うきっかけとなる情報である。   In accordance with the operation of the session ID initialization program, relay device 2 first transmits a server session ID initialization request to meter-reading server 3 (sequence Seq22C). The server session ID initialization request is information that triggers a server session ID initialization process and a server session ID initialization response, which are the next operations in the meter-reading server 3.

検針サーバ3は、中継装置2からのサーバセッションID初期化要求を受け取ると、サーバセッションID初期化において、セッションIDの初期値としてあらかじめ定めた既知の値を、セッションID変数の初期値として設定する(シーケンスSeq23C)。この結果、該セッションIDの初期値は、サーバセッションIDの初期値として記憶される。   Upon receipt of the server session ID initialization request from the relay device 2, the meter-reading server 3 sets, as the initial value of the session ID variable, a known value predetermined as the initial value of the session ID in the server session ID initialization. (Sequence Seq23C). As a result, the initial value of the session ID is stored as the initial value of the server session ID.

検針サーバ3は、サーバセッションID初期化の動作が完了すると、中継装置2に対して、サーバセッションID初期化応答を送信する(シーケンスSeq24C)。該サーバセッションID初期化応答は、検針サーバ3においてサーバセッション初期化の動作が正常に実施されたか否かを中継装置2に対して通知するための情報を含んでいる。   When the operation of server session ID initialization is completed, meter-reading server 3 transmits a server session ID initialization response to relay device 2 (sequence Seq24C). The server session ID initialization response includes information for notifying the relay apparatus 2 whether or not the server session initialization operation has been normally performed in the meter-reading server 3.

中継装置2は、検針サーバ3から正常にサーバセッション初期化の動作が実施されたことを示すサーバセッションID初期化応答を受け取った場合、次に、検針メータ1に対して、メータセッションID初期化要求を送信する(シーケンスSeq25C)。該メータセッションID初期化要求は、検針メータ1において次の動作となるメータセッションID初期化処理、メータセッションID初期化応答を行うきっかけとなる情報である。   When the relay device 2 receives a server session ID initialization response indicating that the server session initialization operation has been normally performed from the meter-reading server 3, the relay device 2 then initializes the meter session ID to the meter-reading meter 1. A request is transmitted (sequence Seq25C). The meter session ID initialization request is information that triggers a meter session ID initialization process and a meter session ID initialization response that are the next operations in the meter-reading meter 1.

検針メータ1は、中継装置2からのメータセッションID初期化要求を受け取ると、メータセッションID初期化において、セッションIDの初期値としてあらかじめ定めた既知の値を、セッションID変数の初期値として設定する(シーケンスSeq26C)。この結果、該セッションIDの初期値は、メータセッションIDの初期値として記憶される。   Upon receipt of the meter session ID initialization request from the relay device 2, the meter-reading meter 1 sets a known value that is predetermined as the initial value of the session ID as the initial value of the session ID variable in the meter session ID initialization. (Sequence Seq26C). As a result, the initial value of the session ID is stored as the initial value of the meter session ID.

検針サーバ3は、メータセッションID初期化の動作が完了すると、中継装置2に対して、メータセッションID初期化応答を送信する(シーケンスSeq27C)。該メータセッションID初期化応答は、検針メータ1においてメータセッション初期化の動作が正常に実施されたか否かを中継装置2に対して通知するための情報を含んでいる。ここで、検針メータ1における前記既知の値は、検針サーバ3における前記既知の値と同一の値であり、メータセッションIDの初期値の値とサーバセッションIDの初期値の値とは、同一の値である。また、該既知の値、すなわち、メータセッションIDの初期値の値とサーバセッションIDの初期値の値とは、検針サーバ3と検針メータ1とのそれぞれの装置が知っている値であるが、中継装置2等の他の装置には、全く判らない値である。   When the meter session ID initialization operation is completed, meter-reading server 3 transmits a meter session ID initialization response to relay device 2 (sequence Seq27C). The meter session ID initialization response includes information for notifying the relay device 2 whether or not the meter session initialization operation has been normally performed in the meter-reading meter 1. Here, the known value in the meter-reading meter 1 is the same value as the known value in the meter-reading server 3, and the initial value of the meter session ID and the initial value of the server session ID are the same. Value. The known values, that is, the initial value of the meter session ID and the initial value of the server session ID are values known by the respective devices of the meter reading server 3 and the meter meter 1. This value is completely unknown to other devices such as the relay device 2.

ここで、図12に示すように、中継装置2は、シーケンスSeq22Cにおいて、サーバセッションID初期値要求の動作を完了した際に、セッションIDタイマを起動している(シーケンスSeq28C)。該セッションIDタイマは、図6の場合と同様、中継装置2により管理されるタイマであり、サーバセッションID初期化処理およびメータセッションID初期化処理の双方があらかじめ定めた一定時間内に完了したか否かを判定するためのタイマである。   Here, as shown in FIG. 12, the relay apparatus 2 starts the session ID timer when the operation of the server session ID initial value request is completed in the sequence Seq22C (sequence Seq28C). As in the case of FIG. 6, the session ID timer is a timer managed by the relay device 2, and whether both the server session ID initialization process and the meter session ID initialization process are completed within a predetermined time. It is a timer for determining whether or not.

中継装置2は、前記一定時間内に、検針メータ1からメータセッションID初期化応答を受け取ると、図6の場合と同様、セッションIDタイマの計時動作を停止させる(シーケンスSeq29C)。中継装置2は、サーバセッションID初期化応答およびメータセッションID初期化応答により、サーバセッションID初期化処理およびメータセッションID初期化処理が、前記一定時間内に正しく完了したことを確認することができた場合、図6の場合と同様、設定作業者5に対して、セッションID初期化完了通知を通知する(シーケンスSeq30C)。該通知を行う方法としては、例えば、中継装置2に実装されるディスプレイやLED等への出力を用いて視覚により確認する方法、スピーカへの音声出力を用いて聴覚により認識する方法、振動機能を用いて振動覚により認識する方法等が可能である。   When the relay device 2 receives a meter session ID initialization response from the meter-reading meter 1 within the predetermined time, the relay device 2 stops the session ID timer timing operation as in the case of FIG. 6 (sequence Seq29C). The relay device 2 can confirm that the server session ID initialization process and the meter session ID initialization process are correctly completed within the predetermined time by the server session ID initialization response and the meter session ID initialization response. In the same manner as in the case of FIG. 6, the setting operator 5 is notified of a session ID initialization completion notification (sequence Seq30C). As a method of performing the notification, for example, a method of visually confirming using an output to a display or LED mounted on the relay device 2, a method of recognizing by hearing using an audio output to a speaker, or a vibration function A method of recognizing by vibration sense can be used.

以上、本発明の好適な実施形態の構成を説明した。しかし、かかる実施形態は、本発明の単なる例示に過ぎず、何ら本発明を限定するものではないことに留意されたい。本発明の要旨を逸脱することなく、特定用途に応じて種々の変形変更が可能であることが、当業者には容易に理解できよう。   The configuration of the preferred embodiment of the present invention has been described above. However, it should be noted that such embodiments are merely examples of the present invention and do not limit the present invention in any way. Those skilled in the art will readily understand that various modifications and changes can be made according to a specific application without departing from the gist of the present invention.

1 検針メータ
2 中継装置
3 検針サーバ
4 公衆回線網
5 設定作業者
6 検針者
DESCRIPTION OF SYMBOLS 1 Meter-reading meter 2 Relay device 3 Meter-reading server 4 Public network 5 Setting operator 6 Meter-reading person

Claims (10)

需要者への供給量の検針を行う検針メータと、該検針メータにより検針された検針値を管理する検針サーバと、前記検針メータと前記検針サーバとの間を転送するデータの中継を行う中継装置とを含んで構成される検針システムであって、
前記検針メータは、当該検針メータを特定するメータIDと、需要者に対する供給量を示す検針値と、前記検針値とあらかじめ設定したメータセッションIDとに基づいて計算したハッシュ値と、を含む検針データを作成して、前記中継装置に対して送信し、
前記検針データを受け取った前記中継装置は、受け取った前記検針データを前記検針サーバに対して送信し、
前記検針データを受け取った前記検針サーバは、前記検針データにおける検針値とあらかじめ設定したサーバセッションIDとに基づいてハッシュ値を検証値として計算し、該検証値として計算した該ハッシュ値を、前記検針データにおけるハッシュ値と比較し、両者が一致した場合、前記検針値を、前記検針メータが検針した正しい検針値であるものと判定する
ことを特徴とする検針システム。
A meter-reading meter that performs meter-reading of the amount supplied to the consumer, a meter-reading server that manages the meter-reading value read by the meter-reading meter, and a relay device that relays data transferred between the meter-reading meter and the meter-reading server A meter reading system comprising:
The meter-reading meter includes meter-metering data that includes a meter ID that identifies the meter-reading meter, a meter-reading value that indicates a supply amount to a consumer, and a hash value that is calculated based on the meter-reading value and a preset meter session ID. And transmit to the relay device,
The relay device that has received the meter-reading data transmits the received meter-reading data to the meter-reading server,
The meter-reading server that has received the meter-reading data calculates a hash value as a verification value based on the meter-reading value in the meter-reading data and a preset server session ID, and uses the hash value calculated as the verification value as the meter reading. Compared with a hash value in data, if both match, the meter reading value is determined to be a correct meter reading value measured by the meter meter.
前記検針メータは、前記メータセッションIDを、あらかじめ定めた時間間隔ごとに、定期的に、あらかじめ定めた値ずつ更新して設定し直し、
前記検針サーバは、前記サーバセッションIDを、あらかじめ定めた前記時間間隔ごとに、定期的に、あらかじめ定めた前記値ずつ更新して設定し直す
ことを特徴とする請求項1に記載の検針システム。
The meter-reading meter updates and resets the meter session ID at predetermined time intervals, regularly at predetermined values,
The meter-reading system according to claim 1, wherein the meter-reading server periodically updates and sets the server session ID at the predetermined time interval by the predetermined value.
前記検針メータにあらかじめ設定した前記メータセッションIDと前記検針サーバにあらかじめ設定した前記サーバセッションIDとは、同一の値に設定することを特徴とする請求項1または2に記載の検針システム。   The meter reading system according to claim 1 or 2, wherein the meter session ID set in advance in the meter reading meter and the server session ID set in advance in the meter reading server are set to the same value. 前記中継装置は、設定作業者からのセッションID初期化の起動指示があった際に、初期化要求を前記検針メータに対して送信し、
前記初期化要求を受け取った前記検針メータは、セッションIDの初期値を生成し、生成した該セッションIDの初期値を、前記メータセッションIDの初期値として設定するとともに、前記中継装置を介して前記検針サーバに送信し、
前記セッションIDの初期値を受け取った前記検針サーバは、受け取った該セッションIDの初期値を前記サーバセッションIDの初期値として設定するか、
または、
前記中継装置は、設定作業者からのセッションID初期化の起動指示があった際に、初期化要求を前記検針サーバに対して送信し、
前記初期化要求を受け取った前記検針サーバは、セッションIDの初期値を生成し、生成した該セッションIDの初期値を、前記サーバセッションIDの初期値として設定するとともに、前記中継装置を介して前記検針メータに送信し、
前記セッションIDの初期値を受け取った前記検針メータは、受け取った該セッションIDの初期値を前記メータセッションIDの初期値として設定する
ことを特徴とする請求項1ないし3のいずれかに記載の検針システム。
The relay device transmits an initialization request to the meter-reading meter when there is a session ID initialization start instruction from a setting operator,
The meter-reading meter that has received the initialization request generates an initial value of a session ID, sets the generated initial value of the session ID as an initial value of the meter session ID, and transmits the initial value of the session ID via the relay device. Sent to the meter reading server,
The meter-reading server that has received the initial value of the session ID sets the received initial value of the session ID as the initial value of the server session ID,
Or
The relay device transmits an initialization request to the meter-reading server when there is a start instruction for session ID initialization from a setting operator,
The meter-reading server that has received the initialization request generates an initial value of a session ID, sets the generated initial value of the session ID as an initial value of the server session ID, and transmits the initial value of the session ID via the relay device. Sent to the meter meter,
The meter-reading meter which received the initial value of the session ID sets the received initial value of the session ID as an initial value of the meter session ID. system.
前記中継装置は、設定作業者からのセッションID初期化の起動指示があった際に、セッションIDの初期値を生成し、生成した該セッションIDの初期値を前記検針メータおよび前記検針サーバに送信し、
前記検針メータは、受け取った前記セッションIDの初期値を、前記メータセッションIDの初期値として設定し、
前記検針サーバは、受け取った前記セッションIDの初期値を、前記サーバセッションIDの初期値として設定する
ことを特徴とする請求項1ないし3のいずれかに記載の検針システム。
The relay device generates an initial value of a session ID when a setting operator gives an instruction to start session ID initialization, and transmits the generated initial value of the session ID to the meter-reading meter and the meter-reading server. And
The meter-reading meter sets the received initial value of the session ID as an initial value of the meter session ID,
The meter-reading system according to any one of claims 1 to 3, wherein the meter-reading server sets the received initial value of the session ID as an initial value of the server session ID.
前記中継装置は、設定作業者からのセッションID初期化の起動指示があった際に、初期化要求を、前記検針メータおよび前記検針サーバに送信し、
前記初期化要求を受け取った前記検針メータは、初期値としてあらかじめ定めた既知の値を、前記メータセッションIDの初期値として設定し、
前記初期化要求を受け取った前記検針サーバは、初期値としてあらかじめ定めた前記既知の値を、前記サーバセッションIDの初期値として設定する
ことを特徴とする請求項1ないし3のいずれかに記載の検針システム。
The relay device transmits an initialization request to the meter-reading meter and the meter-reading server when there is a start instruction for session ID initialization from a setting operator,
The meter-reading meter that has received the initialization request sets a known value predetermined as an initial value as an initial value of the meter session ID,
The meter-reading server that has received the initialization request sets the known value set in advance as an initial value as an initial value of the server session ID. Meter reading system.
前記中継装置は、受け取った前記検針データをあらかじめ保持している秘密鍵を用いて暗号化して前記検針サーバに対して送信し、
暗号化された前記検針データを受け取った前記検針サーバは、暗号化された前記検針データを、あらかじめ保持している公開鍵を用いて復号し、さらに、暗号化された前記検針データを復号して得られた検針値とあらかじめ設定したサーバセッションIDとに基づいてハッシュ値を検証値として計算し、該検証値として計算した該ハッシュ値を、暗号化された前記検針データを復号して得られたハッシュ値と比較し、両者が一致した場合、暗号化された前記検針データを復号して得られた検針値が、前記検針メータが検針した正しい検針値であるものと判定し、
前記中継装置は、検針者からの鍵交付の起動指示があった際に、鍵交付要求を前記検針サーバに対して送信し、
前記鍵交付要求を受け取った前記検針サーバは、要求元の前記中継装置に対応する公開鍵と秘密鍵とを生成して、生成した公開鍵を保持するとともに、生成した前記秘密鍵を要求元の前記中継装置に対して送信し、
前記秘密鍵を受け取った前記中継装置は、受け取った該秘密鍵を保持する
ことを特徴とする請求項1ないし6のいずれかに記載の検針システム。
The relay device encrypts the received meter reading data using a secret key stored in advance and transmits it to the meter reading server,
The meter-reading server that has received the encrypted meter-reading data decrypts the encrypted meter-reading data using a public key held in advance, and further decrypts the encrypted meter-reading data. A hash value is calculated as a verification value based on the obtained meter reading value and a preset server session ID, and the hash value calculated as the verification value is obtained by decrypting the encrypted meter reading data. Compared with the hash value, if both match, it is determined that the meter reading value obtained by decrypting the encrypted meter reading data is the correct meter reading value read by the meter meter,
The relay device transmits a key delivery request to the meter reading server when there is a key delivery start instruction from a meter reader.
The meter-reading server that has received the key grant request generates a public key and a secret key corresponding to the requesting relay device, holds the generated public key, and generates the secret key as a request source. Transmitted to the relay device,
The meter reading system according to claim 1, wherein the relay device that has received the secret key holds the received secret key.
需要者への供給量の検針を行う検針メータと、該検針メータにより検針された検針値を管理する検針サーバと、前記検針メータと前記検針サーバとの間を転送するデータの中継を行う中継装置を含む検針システムにおける検針方法であって、
前記検針メータを特定するメータIDと、需要者に対する供給量を示す検針値と、前記検針値とあらかじめ設定したメータセッションIDとに基づいて計算したハッシュ値と、を含む検針データを作成する工程と、作成した該検針データを前記中継装置に対して送信する工程と、を前記検針メータで行い、
前記検針データを受け取り、受け取った前記検針データを前記検針サーバに対して送信する工程を前記中継装置で行い、
前記検針データを受け取り、前記検針データにおける検針値とあらかじめ設定したサーバセッションIDとに基づいてハッシュ値を検証値として計算する工程と、該検証値として計算した該ハッシュ値を、前記検針データにおけるハッシュ値と比較し、両者が一致した場合、前記検針値を前記検針メータが検針した正しい検針値であるものと判定する工程と、を前記検針サーバで行う
ことを特徴とする検針方法。
A meter-reading meter that performs meter-reading of the amount supplied to the consumer, a meter-reading server that manages the meter-reading value read by the meter-reading meter, and a relay device that relays data transferred between the meter-reading meter and the meter-reading server A meter reading method in a meter reading system including
Creating meter-reading data including a meter ID for identifying the meter-reading meter, a meter-reading value indicating a supply amount to a consumer, and a hash value calculated based on the meter-reading value and a preset meter session ID; And performing the step of transmitting the created meter reading data to the relay device with the meter meter,
Receiving the meter-reading data and performing the step of transmitting the received meter-reading data to the meter-reading server in the relay device;
Receiving the meter-reading data, calculating a hash value as a verification value based on a meter-reading value in the meter-reading data and a preset server session ID, and calculating the hash value calculated as the verification value as a hash in the meter-reading data A meter reading method, wherein the meter reading server performs the step of determining that the meter reading value is a correct meter reading value obtained by the meter reading meter when the two values coincide with each other.
前記メータセッションIDを、あらかじめ定めた時間間隔ごとに、定期的に、あらかじめ定めた値ずつ更新して設定し直す工程を、前記検針メータでさらに行い、
前記サーバセッションIDを、あらかじめ定めた前記時間間隔ごとに、定期的に、あらかじめ定めた前記値ずつ更新して設定し直す工程を、前記検針サーバでさらに行う
ことを特徴とする請求項8に記載の検針方法。
The meter session ID is further updated with a predetermined value periodically at predetermined time intervals, and a step of resetting the meter session ID is further performed with the meter reading meter,
The said meter-reading server further performs the process which updates and resets the said server session ID by the said predetermined value regularly for every said predetermined time interval. Meter reading method.
需要者への供給量の検針を行う検針メータと、該検針メータにより検針された検針値を管理する検針サーバと、前記検針メータと前記検針サーバとの間を転送するデータの中継を行う中継装置を少なくとも含む検針システムにおいて前記中継装置内のコンピュータによってプログラムとして実行される検針プログラムであって、
検針者からの起動指示があった際に起動して、前記検針メータに対して検針要求を送信する処理ステップと、
前記検針メータから、当該検針メータを特定するメータIDと、需要者に対する供給量を示す検針値と、前記検針値とあらかじめ設定したメータセッションIDとに基づいて計算したハッシュ値と、を含む検針データを受け取る処理ステップと、
前記検針メータから受け取った前記検針データに含まれている前記検針値を前記検針者に通知して承認を得る処理ステップと、
前記検針メータから受け取った前記検針データを前記検針サーバに対して送信する処理ステップと、
前記検針データを受け取った前記検針サーバにおいて、前記検針データにおけるハッシュ値に基づいて、前記検針データにおける検針値が、前記検針メータにより検針した正しい検針値であるか否かを検証した検証結果を送信してきた際に、送信されてきた該検針結果を受け取る処理ステップと、
前記検針サーバから受け取った前記検針結果を前記検針者に通知する処理ステップと
を有していることを特徴とする検針プログラム。
A meter-reading meter that performs meter-reading of the amount supplied to the consumer, a meter-reading server that manages the meter-reading value read by the meter-reading meter, and a relay device that relays data transferred between the meter-reading meter and the meter-reading server A meter reading program executed as a program by a computer in the relay device in a meter reading system including at least
A process step of starting when a start instruction is received from a meter reader and transmitting a meter reading request to the meter meter;
Meter reading data including a meter ID for identifying the meter reading meter from the meter reading meter, a meter reading value indicating a supply amount to a consumer, and a hash value calculated based on the meter reading value and a preset meter session ID. Receiving processing steps;
A processing step of notifying the meter reader of the meter reading value included in the meter reading data received from the meter meter and obtaining approval;
A step of transmitting the meter-reading data received from the meter-reading meter to the meter-reading server;
In the meter reading server that has received the meter reading data, based on the hash value in the meter reading data, transmits a verification result that verifies whether or not the meter reading value in the meter reading data is a correct meter reading value measured by the meter reading meter. A processing step of receiving the meter reading result transmitted when
And a processing step of notifying the meter reader of the meter reading result received from the meter reading server.
JP2016221363A 2016-11-14 2016-11-14 Meter reading system, meter reading method and meter reading program Active JP6791533B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2016221363A JP6791533B2 (en) 2016-11-14 2016-11-14 Meter reading system, meter reading method and meter reading program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2016221363A JP6791533B2 (en) 2016-11-14 2016-11-14 Meter reading system, meter reading method and meter reading program

Publications (2)

Publication Number Publication Date
JP2018081352A true JP2018081352A (en) 2018-05-24
JP6791533B2 JP6791533B2 (en) 2020-11-25

Family

ID=62197136

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2016221363A Active JP6791533B2 (en) 2016-11-14 2016-11-14 Meter reading system, meter reading method and meter reading program

Country Status (1)

Country Link
JP (1) JP6791533B2 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110778221A (en) * 2019-10-24 2020-02-11 广东电网有限责任公司 Automatic meter searching method and auxiliary device for low-voltage distribution room
CN116582368A (en) * 2023-07-13 2023-08-11 中国矿业大学(北京) Network information security protection method and system
JP7489270B2 (en) 2020-09-01 2024-05-23 東洋計器株式会社 Transmitter installation method and installation work navigation program
JP7499696B2 (en) 2020-12-28 2024-06-14 三菱電機株式会社 Meter reading system and mobile terminal

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008234160A (en) * 2007-03-19 2008-10-02 Meiyu Techno Co Ltd Meter reader for meter inspection, handy terminal, and meter inspection system
WO2013076848A1 (en) * 2011-11-24 2013-05-30 三菱電機株式会社 Encrypted communication system, encrypted communication device, computer program, and encrypted communication method
WO2013175539A1 (en) * 2012-05-24 2013-11-28 富士通株式会社 Network system, node, and communication method
WO2014076911A1 (en) * 2012-11-13 2014-05-22 日本電気株式会社 Message authentication system and message authentication method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008234160A (en) * 2007-03-19 2008-10-02 Meiyu Techno Co Ltd Meter reader for meter inspection, handy terminal, and meter inspection system
WO2013076848A1 (en) * 2011-11-24 2013-05-30 三菱電機株式会社 Encrypted communication system, encrypted communication device, computer program, and encrypted communication method
WO2013175539A1 (en) * 2012-05-24 2013-11-28 富士通株式会社 Network system, node, and communication method
WO2014076911A1 (en) * 2012-11-13 2014-05-22 日本電気株式会社 Message authentication system and message authentication method

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110778221A (en) * 2019-10-24 2020-02-11 广东电网有限责任公司 Automatic meter searching method and auxiliary device for low-voltage distribution room
CN110778221B (en) * 2019-10-24 2023-05-02 广东电网有限责任公司 Automatic meter searching method and auxiliary device for low-voltage transformer area
JP7489270B2 (en) 2020-09-01 2024-05-23 東洋計器株式会社 Transmitter installation method and installation work navigation program
JP7499696B2 (en) 2020-12-28 2024-06-14 三菱電機株式会社 Meter reading system and mobile terminal
CN116582368A (en) * 2023-07-13 2023-08-11 中国矿业大学(北京) Network information security protection method and system
CN116582368B (en) * 2023-07-13 2023-09-22 中国矿业大学(北京) Network information security protection method and system

Also Published As

Publication number Publication date
JP6791533B2 (en) 2020-11-25

Similar Documents

Publication Publication Date Title
JP4671783B2 (en) Communications system
CN108737394A (en) Off-line verification system, barcode scanning equipment and server
CN107111515B (en) Internet of things platform, equipment and method
CN109155730A (en) Technology for device authorization
JP6791533B2 (en) Meter reading system, meter reading method and meter reading program
CN109639714A (en) A kind of Internet of Things identity registration and verification method based on block chain
RU2014129856A (en) SYSTEM AND METHOD OF DYNAMIC TEMPORARY RESOLUTION FOR PAYMENT IN PORTABLE COMMUNICATION DEVICE
CN103714640A (en) Method and system for sending transmission key
JP2012252580A (en) Power control device, power management device and power management system
CN112288434B (en) Privacy transaction method, device, zero knowledge proof system and privacy transaction architecture model
KR102017727B1 (en) Apparatus and method for managing metering infomation
CN110519274B (en) Block chain information transmission method, device, equipment and storage medium
JP2013179419A (en) Network system, certificate management method, and certificate management program
JPWO2007094035A1 (en) Device, verification server, information processing server, device registration server, and information processing method
CN110276170A (en) Method, equipment and the medium of works protection are carried out based on block chain
JP4918717B2 (en) Measuring device
JP2003256704A (en) Point generating device, portable terminal, point management server and point management system
JP2015130549A (en) System including meter for measuring consumption energy and management system for managing consumption energy
KR20100022625A (en) Security authentication system and method for remote measurement based on power line communication
JP4868322B2 (en) Information processing system and information processing method
KR20040044183A (en) Service execution module
KR101815236B1 (en) Payment system using one time barcode
KR101886653B1 (en) A method of processing card information for preventing re-use of card information, an appratus thereof and a method for operating financial server
KR20100136306A (en) System and method for registering otp creation condition for mobile settlement and recording medium
JP4499027B2 (en) Time audit server and time audit method

Legal Events

Date Code Title Description
A711 Notification of change in applicant

Free format text: JAPANESE INTERMEDIATE CODE: A712

Effective date: 20170713

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20191003

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20200811

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20200825

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20200925

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20201029

R150 Certificate of patent or registration of utility model

Ref document number: 6791533

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150