JP7457540B2 - Fare collection system - Google Patents

Fare collection system Download PDF

Info

Publication number
JP7457540B2
JP7457540B2 JP2020041047A JP2020041047A JP7457540B2 JP 7457540 B2 JP7457540 B2 JP 7457540B2 JP 2020041047 A JP2020041047 A JP 2020041047A JP 2020041047 A JP2020041047 A JP 2020041047A JP 7457540 B2 JP7457540 B2 JP 7457540B2
Authority
JP
Japan
Prior art keywords
information
boarding
fare
stop
payment
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
JP2020041047A
Other languages
Japanese (ja)
Other versions
JP2021144320A (en
Inventor
貴仁 立川
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Lecip Holdings Corp
Original Assignee
Lecip Holdings Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Lecip Holdings Corp filed Critical Lecip Holdings Corp
Priority to JP2020041047A priority Critical patent/JP7457540B2/en
Publication of JP2021144320A publication Critical patent/JP2021144320A/en
Application granted granted Critical
Publication of JP7457540B2 publication Critical patent/JP7457540B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は、乗合車両の利用者から当該車両の利用運賃を収受する運賃収受システムに関するものである。なお、乗合車両には、路線バス、路面電車、トロリーバス等の乗合バスや鉄道等が含まれる。 TECHNICAL FIELD The present invention relates to a fare collection system for collecting a fare for a shared vehicle from a user of the vehicle. Note that the shared vehicles include shared buses such as route buses, streetcars, and trolleybuses, and trains.

乗車券の代わりに、スマートフォン等の携帯情報端末装置を鉄道駅の自動改札機にかざすことにより改札から入場したり出場したりすることを可能にする技術、つまり乗車券のデジタルチケットに関する技術が下記特許文献1に開示されている。デジタルチケットは、入場券や引換券等の一定の権利を電子化したものであり、電子チケットと呼ばれる場合もある。 The technology that allows people to enter and exit through automatic ticket gates at train stations by holding a mobile information terminal device such as a smartphone over a ticket gate instead of a train ticket, that is, the technology related to digital tickets, is described below. It is disclosed in Patent Document 1. A digital ticket is a computerized form of certain rights such as an admission ticket or an exchange ticket, and is sometimes called an electronic ticket.

特開2018-147270号公報Japanese Patent Application Publication No. 2018-147270

デジタルチケットの典型的な例は、エンコードされたコード(例えば、QRコード(登録商標)やバーコード)を紙等に印刷したりスマートフォン等の携帯情報端末装置の画面に表示させたりして、それを当該コード用のリーダで読み取ることで入場券や引換券等の一定の権利を確認する。これを鉄道駅の自動改札機に適用した場合には、特許文献1に開示されている交通システムのタイプαの自動改札機のように、改札機自体にリーダの機能を持たせる必要がある(特許文献1;段落0011等)。そのため、システム導入時等の設備コストが増大するおそれがある。 A typical example of a digital ticket is an encoded code (e.g., QR code (registered trademark) or barcode) printed on paper or displayed on the screen of a mobile information terminal device such as a smartphone. By reading the code with a reader for that code, certain rights such as admission tickets and exchange tickets can be confirmed. When this is applied to automatic ticket gates at railway stations, it is necessary to provide the ticket gate itself with a reader function, as in the type α automatic ticket gate of the transportation system disclosed in Patent Document 1 ( Patent Document 1; paragraph 0011, etc.). Therefore, there is a possibility that equipment costs at the time of system introduction etc. will increase.

また、特許文献1の交通システムは、鉄道駅の自動改札機に関するものであり、自動改札機は駅構内に設けられる。そのため、入場駅に設けられる自動改札機とセンタサーバ装置との間や、出場駅に設けられる自動改札機と決済サーバ装置との間は、有線通信回線で接続することが比較的容易である。ところが、このような交通システムの技術を路線バスの運賃収受システムに導入しようとすると、路線バスに搭載された運賃箱とセンタサーバ装置や決済サーバ装置との間は、無線通信回線で接続せざるを得ない。車載の運賃箱はそれ自体が移動するからである。無線通信回線は、有線通信回線に比べて利用料金が桁違いに高額であり、運用コストの問題が設備コスト以上にシステム導入の障害になり易い。 Further, the transportation system of Patent Document 1 relates to an automatic ticket gate at a railway station, and the automatic ticket gate is provided within the station premises. Therefore, it is relatively easy to connect via wired communication lines between the automatic ticket gate provided at the entry station and the center server device, and between the automatic ticket gate provided at the exit station and the payment server device. However, when attempting to introduce such transportation system technology into the fare collection system of route buses, the fare box installed on the route bus and the center server device and payment server device must be connected via wireless communication lines. I don't get it. This is because the on-vehicle fare box itself moves. Wireless communication lines are orders of magnitude more expensive to use than wired communication lines, and operational costs are more likely to become an obstacle to system introduction than equipment costs.

本発明は、上述した課題を解決するためになされたものであり、設備コストや運用コストの増大を抑制しつつもデジタルチケットによる決済を可能にし得る運賃収受システムを提供することを目的とする。 The present invention has been made in order to solve the above-mentioned problems, and aims to provide a fare collection system that can enable payment using digital tickets while suppressing increases in equipment costs and operational costs. .

上記目的を達成するため、特許請求の範囲の請求項1に記載された運賃収受システムは、乗合車両の利用者から当該車両の利用運賃を収受する運賃収受システムであって、前記車両内の乗車口付近に設けられる乗車情報提供装置と、前記車両内の降車口付近に設けられる降車情報提供装置と、前記車両が停留所に停車した前記停留所に対応する情報であってそれぞれの停留所ごとに異なる停留所情報を停車するごとに前記乗車情報提供装置および前記降車情報提供装置に出力させる制御装置と、前記車両外に設けられて前記利用運賃を収受する電子決済に関する情報処理を行う決済サーバ装置と、前記利用者が所持して前記乗車情報提供装置および前記降車情報提供装置から出力される前記停留所情報を取得可能かつ前記決済サーバ装置に対し無線通信回線を介して情報通信可能な携帯情報端末装置と、を含み、前記携帯情報端末装置は、前記利用者の乗車時に前記乗車情報提供装置から出力された乗車時の前記停留所情報(以下、請求項1~5において「乗車停留所情報」という)を取得し、前記利用者の降車時に前記降車情報提供装置から出力された降車時の前記停留所情報(以下、請求項1~5において「降車停留所情報」という)を取得し、前記乗車停留所情報に含まれる前記乗車時の停留所に対応した整理券番号と前記降車停留所情報に含まれる前記整理券番号に対応した運賃データとに基づいて得られた前記利用運賃に関する利用運賃情報を前記決済サーバ装置に送信し、前記決済サーバ装置は、前記携帯情報端末装置から送信された前記利用運賃情報に基づいて前記電子決済に関する情報処理を行うことを技術的特徴とする。 In order to achieve the above object, the fare collection system recited in claim 1 is a fare collection system that collects the fare for use of a shared vehicle from the user of the vehicle, and a boarding information providing device provided near the exit; an alighting information providing device provided near the exit in the vehicle; and information corresponding to the stop at which the vehicle stopped, which is different for each stop. a control device that outputs information to the boarding information providing device and the getting off information providing device each time the vehicle stops; a payment server device that is installed outside the vehicle and performs information processing regarding electronic payment for collecting the fare; a portable information terminal device that is carried by a user and is capable of acquiring the stop information output from the boarding information providing device and the getting off information providing device, and is capable of communicating information to the payment server device via a wireless communication line; , the portable information terminal device acquires the stop information at the time of boarding (hereinafter referred to as "boarding stop information" in claims 1 to 5) output from the boarding information providing device when the user boards the board. , acquires the stop information at the time of alighting (hereinafter referred to as "alighting stop information" in claims 1 to 5) output from the alighting information providing device when the user alights, and acquires the alighting stop information included in the boarding stop information. transmitting usage fare information regarding the usage fare obtained based on the numbered ticket number corresponding to the stop at the time of boarding and fare data corresponding to the numbered ticket number included in the alighting stop information to the payment server device; A technical feature of the payment server device is that the payment server device performs information processing regarding the electronic payment based on the usage fare information transmitted from the mobile information terminal device.

請求項1に記載の運賃収受システムの発明では、乗車情報提供装置、降車情報提供装置、制御装置、決済サーバ装置および携帯情報端末装置が当該システムを構成する。携帯情報端末装置は、利用者の乗車時に乗車情報提供装置から出力された乗車停留所情報を取得し、利用者の降車時に降車情報提供装置から出力された降車停留所情報を取得し、乗車停留所情報に含まれる乗車時の停留所に対応した整理券番号と降車停留所情報に含まれるこの整理券番号に対応した運賃データとに基づいて得られた利用運賃に関する利用運賃情報を決済サーバ装置に送信し、決済サーバ装置は、携帯情報端末装置から送信された利用運賃情報に基づいて電子決済に関する情報処理を行う。制御装置は、典型的には、例えば、乗合車両内の既存設備として存在する運賃箱、運賃表示器や車内放送装置等の車載機器を構成する制御装置が用いられる。また、決済サーバ装置も、既存設備のものが使用できる。携帯情報端末装置は、当該乗合車両の利用者が所持するものである。なお、制御装置は、それ自体を単体で設けてもよい。 In the invention of the fare collection system according to claim 1, the boarding information providing device, the alighting information providing device, the control device, the payment server device, and the portable information terminal device constitute the system. The mobile information terminal device acquires the boarding stop information output from the boarding information providing device when the user gets on the train, acquires the alighting stop information output from the boarding information providing device when the user gets off, and uses the boarding stop information as the boarding stop information. The usage fare information regarding the usage fare obtained based on the numbered ticket number corresponding to the included boarding stop and the fare data corresponding to this numbered ticket number included in the alighting stop information is sent to the payment server device, and the payment is made. The server device performs information processing regarding electronic payment based on usage fare information transmitted from the mobile information terminal device. Typically, the control device is a control device constituting on-vehicle equipment such as a fare box, a fare display, or an in-vehicle broadcasting device existing as existing equipment in a shared vehicle. Furthermore, existing equipment can be used as the payment server device. The portable information terminal device is owned by the user of the shared vehicle. Note that the control device itself may be provided alone.

このため、運賃収受システムを構成するうえで、新規に必要になるものは乗車情報提供装置と降車情報提供装置である。また、利用運賃に関する利用運賃情報を得る情報処理や、決済サーバ装置との通信処理は、利用者が所持する携帯情報端末装置が行う。これにより、乗合車両に搭載された制御装置、乗車情報提供装置や降車情報提供装置は、利用運賃情報を得る情報処理を行ったり、決済サーバ装置との通信処理を行ったりする必要がないので、これらの制御装置等に演算処理能力が高いマイクロコンピュータや記憶容量が大きなメモリ等を設ける必要もない。また通信コストの増加もない。 Therefore, in configuring the fare collection system, what is newly required is a boarding information providing device and an alighting information providing device. Further, information processing for obtaining usage fare information regarding usage fares and communication processing with the payment server device are performed by a mobile information terminal device owned by the user. As a result, the control device, boarding information providing device, and alighting information providing device installed in the shared vehicle do not need to perform information processing to obtain usage fare information or perform communication processing with the payment server device. There is no need to provide these control devices with a microcomputer with high arithmetic processing capacity or a memory with a large storage capacity. Also, there is no increase in communication costs.

また、決済サーバ装置と無線通信回線を介して情報通信を行うのは、専ら携帯情報端末装置であり、乗合車両に設けられた、乗車情報提供装置、降車情報提供装置および制御装置は、決済サーバ装置と直接、情報通信を行わない。つまり、乗合車両を運行する事業者等は、運賃収受システムの運用においては決済サーバ装置との間において無線通信回線を利用する必要がない。これにより、車載の乗車情報提供装置、降車情報提供装置や制御装置が無線通信回線を使用する場合に比べて通信コストが大幅に減少する。 Furthermore, it is exclusively the mobile information terminal device that communicates information with the payment server device via the wireless communication line, and the boarding information providing device, the alighting information providing device, and the control device installed in the shared vehicle are connected to the payment server device. Do not communicate information directly with the device. In other words, businesses operating shared vehicles do not need to use a wireless communication line with the payment server device when operating the fare collection system. As a result, communication costs are significantly reduced compared to the case where the in-vehicle boarding information providing device, the alighting information providing device, and the control device use wireless communication lines.

また、特許請求の範囲の請求項2に記載された運賃収受システムは、請求項1に記載の運賃収受システムにおいて、前記乗車情報提供装置から出力される前記乗車停留所情報および前記降車情報提供装置から出力される前記降車停留所情報は、それぞれ時間の経過とともに変化し、かつ、出力時刻の時間情報が少なくとも含まれていることを技術的特徴とする。 The fare collection system described in claim 2 of the present patent application has a technical feature in that, in the fare collection system described in claim 1, the boarding stop information output from the boarding information providing device and the alighting stop information output from the alighting information providing device each change over time and include at least time information on the output time.

請求項2に記載の運賃収受システムの発明では、乗車停留所情報や降車停留所情報は、それぞれ時間の経過とともに変化し、これらの停留所情報が出力された時刻の時間情報が少なくとも含まれているため、この出力時刻の時間情報とこれらの停留所情報の取得時の時間情報とを比較することで、例えば、取得した乗車停留所情報や降車停留所情報が乗車情報提供装置や降車情報提供装置から乗車時や降車時以前の過去に出力されたものであるか否かを判定することが可能になる。なお、停留所情報の取得時の時間情報は、例えば、当該携帯情報端末装置が有する時計機能から得たり、乗車情報提供装置や降車情報提供装置が有する時計機能から得たりする。 In the invention of the fare collection system according to claim 2, the boarding stop information and the alighting stop information change over time, and include at least time information of the time when these stop information was output. By comparing the time information of this output time and the time information at the time of acquisition of these stop information, for example, the acquired boarding stop information and alighting stop information can be transmitted from the boarding information providing device or the alighting information providing device to the boarding and alighting information. It becomes possible to determine whether the output was output in the past before that time. Note that the time information at the time of acquiring the stop information is obtained, for example, from the clock function of the mobile information terminal device, or from the clock function of the boarding information providing device or the getting off information providing device.

これにより、取得した乗車停留所情報や降車停留所情報が、例えば、その日前のものであった場合には、本来であれば、乗車時または降車時に乗車停留所情報や降車停留所情報を取得すべきところを、当該利用者が予め準備した古い乗車停留所情報や降車停留所情報を意図的に携帯情報端末装置で取得した蓋然性が高いため、このような不正使用の有無を判定することが可能になる。 As a result, if the acquired boarding stop information and alighting stop information are from the previous day, for example, the boarding stop information and alighting stop information that should have been acquired at the time of boarding or alighting will be changed. Since there is a high probability that the user intentionally acquired the old boarding stop information and alighting stop information prepared in advance with the mobile information terminal device, it is possible to determine whether such unauthorized use has occurred.

また、特許請求の範囲の請求項3に記載された運賃収受システムは、請求項1または2に記載の運賃収受システムにおいて、前記乗車情報提供装置から出力される前記乗車停留所情報および前記降車情報提供装置から出力される前記降車停留所情報は、暗号化されており、前記携帯情報端末装置は、暗号化された前記乗車停留所情報および前記降車停留所情報を所定の暗号鍵で復号して前記整理券番号と前記運賃データを取得することを技術的特徴とする Further, in the fare collection system according to claim 1 or 2, the fare collection system according to claim 3 provides the boarding stop information and the alighting information output from the boarding information providing device. The alighting stop information output from the device is encrypted, and the portable information terminal device decodes the encrypted boarding stop information and the alighting stop information using a predetermined encryption key to obtain the ticket number. The technical feature is to obtain the above-mentioned fare data .

請求項3に記載の運賃収受システムの発明では、乗車情報提供装置から出力される乗車停留所情報および降車情報提供装置から出力される降車停留所情報は、暗号化されているため、乗車停留所情報や降車停留所情報を不正に生成されることを防止可能にしている。携帯情報端末装置は、暗号化された乗車停留所情報および降車停留所情報を所定の暗号鍵で復号して整理券番号と運賃データを取得する。これにより、乗車停留所情報および降車停留所情報が暗号化されていても、携帯情報端末装置はこれらの情報から整理券番号と運賃データを取得して利用運賃に関する利用運賃情報を得ることが可能になる。 In the invention of the fare collection system according to claim 3, since the boarding stop information outputted from the boarding information providing device and the alighting stop information outputted from the boarding information providing device are encrypted, boarding stop information and alighting stop information output from the boarding information providing device are encrypted. This makes it possible to prevent stop information from being generated illegally. The portable information terminal device decrypts the encrypted boarding stop information and alighting stop information using a predetermined encryption key to obtain a ticket number and fare data. As a result, even if boarding stop information and alighting stop information are encrypted, the mobile information terminal device can obtain the ticket number and fare data from this information and obtain usage fare information regarding the usage fare. .

また、特許請求の範囲の請求項4に記載された運賃収受システムは、請求項1~3のいずれか一項に記載の運賃収受システムにおいて、前記携帯情報端末装置は、前記降車停留所情報および前記乗車停留所情報に基づいて、前記決済サーバ装置への前記利用運賃情報の送信が完了しなかった場合または前記電子決済に関する情報処理を行うことができなかった場合には、所定の未了情報を前記車両の乗務員に告知可能に出力し、または、前記決済サーバ装置への前記利用運賃情報の送信が完了した場合または前記電子決済に関する情報処理を行うことができた場合には、所定の完了情報を前記車両の乗務員に告知可能に出力することを技術的特徴とする。 The fare collection system described in claim 4 of the claims has a technical feature that, in the fare collection system described in any one of claims 1 to 3, the mobile information terminal device outputs predetermined incomplete information so as to be notified to the driver of the vehicle when the transmission of the fare information to the payment server device has not been completed or the information processing related to the electronic payment cannot be completed based on the alighting stop information and the boarding stop information, or outputs predetermined completion information so as to be notified to the driver of the vehicle when the transmission of the fare information to the payment server device has been completed or the information processing related to the electronic payment can be completed.

請求項4に記載の運賃収受システムの発明では、携帯情報端末装置は、降車停留所情報および乗車停留所情報に基づいて、決済サーバ装置への利用運賃情報の送信が完了しなかった場合または前記電子決済に関する情報処理を行うことができなかった場合には、所定の未了情報を車両の乗務員に告知可能に出力する。これにより、乗務員は、当該利用者の運賃収受が済んでいないことを知ることができるので、当該利用者に対して事後精算処理等が必要であることを説明する等の適切な乗客対応が可能になる。また、決済サーバ装置への利用運賃情報の送信が完了した場合または前記電子決済に関する情報処理を行うことができた場合には、所定の完了情報を車両の乗務員に告知可能に出力する。これにより、乗務員は、当該利用者の利用運賃収受が済んだことを知ることができるので、当該利用者には事後精算処理等の説明が不要であることを把握することが可能になる。 In the invention of the fare collection system according to claim 4, the mobile information terminal device determines whether the transmission of the usage fare information to the payment server device is not completed based on the alighting stop information and the boarding stop information, or when the electronic payment is completed. If the information processing cannot be performed, predetermined incomplete information is outputted so as to be notified to the vehicle crew. This allows the crew to know that the fare has not been collected for the user in question, allowing them to respond appropriately to the passenger, such as explaining to the user that post-payment processing is required. become. Further, when the transmission of the fare information to the payment server device is completed or when the information processing regarding the electronic payment can be performed, predetermined completion information is outputted so as to be notified to the crew of the vehicle. This allows the crew member to know that the user's fare has been collected, so that the crew member can understand that there is no need to explain the post-payment process, etc. to the user.

また、特許請求の範囲の請求項5に記載された運賃収受システムは、請求項1~4のいずれか一項に記載の運賃収受システムにおいて、前記携帯情報端末装置は、前記利用者の降車時において、前記無線通信回線を介した情報通信を行わないように当該携帯情報端末装置が設定されている場合には、所定の通信不能情報を前記車両の乗務員に告知可能に出力することを技術的特徴とする。 Further, in the fare collection system according to claim 5, in the fare collection system according to any one of claims 1 to 4, the mobile information terminal device , if the mobile information terminal device is set not to communicate information via the wireless communication line, technical regulations require that predetermined communication failure information be outputted in a manner that can be notified to the crew of the vehicle. Features.

請求項5に記載の運賃収受システムの発明では、携帯情報端末装置は、利用者の降車時において、無線通信回線を介した情報通信を行わないように当該携帯情報端末装置が設定されている場合(例えば、当該携帯情報端末装置が「機内モード」に設定されている場合)には、所定の通信不能情報を車両の乗務員に告知可能に出力する。これにより、乗務員は、無線通信回線を介して、携帯情報端末装置が決済サーバ装置に利用運賃情報を送信したり他のサーバ装置等に乗車停留所情報や降車停留所情報を送信したりすることができない状態であることを把握できるので、例えば、当該利用者に対して機内モードを解除するように促すことが可能になる。したがって、機内モードに起因した携帯情報端末装置による決済サーバ装置への利用運賃情報の送信未了を防ぐことができる。 In the invention of the fare collection system according to claim 5, when the portable information terminal device is set so as not to perform information communication via the wireless communication line when the user gets off the train, (For example, when the mobile information terminal device is set to "in-flight mode"), predetermined communication failure information is outputted so as to be notified to the vehicle crew. As a result, the crew member cannot allow the mobile information terminal device to send fare information to the payment server device or send boarding stop information or alighting stop information to other server devices, etc. via the wireless communication line. Since the current status can be recognized, it becomes possible, for example, to prompt the user to cancel airplane mode. Therefore, it is possible to prevent incomplete transmission of fare information from the mobile information terminal device to the payment server device due to the in-flight mode.

本発明の運賃収受システムでは、乗合車両に搭載された制御装置、乗車情報提供装置や降車情報提供装置は、利用運賃に関する利用運賃情報を得る情報処理を行ったり、決済サーバ装置との通信処理を行ったりする必要がないので、これらの制御装置等に演算処理能力が高いマイクロコンピュータや大容量メモリ等を設ける必要もない。また通信コストの増加もない。したがって、設備コストの増大を抑制しつつもデジタルチケットによる決済を可能にすることができる。 In the fare collection system of the present invention, the control device, boarding information providing device, and disembarking information providing device installed in the public vehicle do not need to perform information processing to obtain fare information related to the fare used, or communication processing with the payment server device, so there is no need to provide these control devices with microcomputers with high computing power or large-capacity memories. There is also no increase in communication costs. Therefore, it is possible to enable payment using digital tickets while suppressing increases in equipment costs.

本発明の一実施形態に係る運賃収受システムの構成例を示す説明図である。1 is an explanatory diagram showing a configuration example of a fare collection system according to an embodiment of the present invention. 本実施形態の運賃収受システムを構成する乗車表示端末および降車表示端末の外観構成例を示す斜視図である。FIG. 2 is a perspective view showing an example of the external appearance of a boarding display terminal and a getting off board display terminal that constitute the fare collection system of the present embodiment. データカセットに格納されている運賃三角表データの一例を示す説明図である。It is an explanatory view showing an example of triangular fare table data stored in a data cassette. 本実施形態の運賃収受システムを構成するホスト機器の制御ユニットにより実行される停留所情報等送出処理の流れを示すフローチャートである。It is a flowchart which shows the flow of the stop information etc. transmission process performed by the control unit of the host device which comprises the fare collection system of this embodiment. 乗車表示端末や降車表示端末の制御ユニットにより実行されるコード出力処理の流れを示すフローチャートである。It is a flowchart which shows the flow of the code output process performed by the control unit of a boarding display terminal and alighting display terminal. 本実施形態の運賃収受システムを構成するスマートフォンの制御ユニットにより実行される運賃精算処理の流れを示すフローチャートである。10 is a flowchart showing the flow of the fare settlement process executed by the control unit of the smartphone constituting the fare collection system of this embodiment. 図6に表されているコード取得処理の流れを示すフローチャートである。7 is a flowchart showing the flow of the code acquisition process shown in FIG. 6. 図7に表されている無線送信処理の流れを示すフローチャートである。8 is a flowchart showing the flow of the wireless transmission process shown in FIG. 7. 本実施形態の運賃収受システムを構成する管理サーバにより実行される停留所情報等記録処理の流れを示すフローチャートである。It is a flowchart which shows the flow of the stop information etc. recording process performed by the management server which comprises the fare collection system of this embodiment. 本実施形態の運賃収受システムを構成する決済サーバにより実行される運賃決済処理の流れを示すフローチャートである。It is a flowchart showing the flow of fare payment processing executed by the payment server configuring the fare collection system of this embodiment. ホスト機器、乗車表示端末、降車表示端末、スマートフォン、管理サーバおよび決済サーバにより、利用者が路線バスに乗車して降車するまでの間において実行される各処理の一連の流れを示すシーケンス図である。FIG. 2 is a sequence diagram showing a series of processes executed by the host device, the boarding display terminal, the alighting display terminal, the smartphone, the management server, and the payment server from when the user gets on the bus to when the user gets off the bus. . スマートフォンの画面表示の例であり、図12(A)は選択メニュー表示処理における表示例を表したもの、図12(B)はコード情報取込処理における表示例を表したものである。These are examples of screen displays of a smartphone, with FIG. 12(A) showing a display example in the selection menu display process, and FIG. 12(B) showing a display example in the code information importing process. スマートフォンの画面表示の例であり、図13(A)は乗車時のコード取得処理において機内モード状態であると判定した場合の表示例を表したものであり、図13(B)は降車時のコード取得処理において機内モード状態であると判定した場合の表示例を表したものである。These are examples of smartphone screen displays. Figure 13(A) shows an example of the display when it is determined that the airplane mode is in the code acquisition process when getting on the train, and Figure 13(B) shows the display when getting off the train. This is a display example when it is determined that the airplane mode is present in the code acquisition process. 図3に示す運賃三角表データに基づいて利用運賃が求められることを表した説明図である。FIG. 4 is an explanatory diagram showing how a fare is calculated based on the fare triangular table data shown in FIG. 3 . スマートフォンの画面表示の例であり、図14(A)は処理結果告知処理における決済完了の表示例を表したもの、図14(B)は処理結果告知処理における決済未了の表示例を表したものである。These are examples of screen displays on a smartphone. Figure 14(A) shows an example of a payment completion display in the processing result notification process, and Figure 14(B) shows an example of a payment incomplete display in the processing result notification process. It is something.

以下、本発明の運賃収受システムの実施形態について図を参照して説明する。 Hereinafter, embodiments of the fare collection system of the present invention will be described with reference to the drawings.

本発明の運賃収受システムの一実施形態は、路線バス(以下「バス」という)90を利用する乗客(以下「利用者」という)から利用運賃を収受する運賃収受システム10であり、利用者が携帯情報端末装置としてスマートフォン50を所持していることを前提とするものである。利用者のスマートフォン50には、後述する運賃精算用のアプリケーションプログラム(以下「運賃精算アプリ」という)がインストールされてる。 One embodiment of the fare collection system of the present invention is a fare collection system 10 that collects fares from passengers (hereinafter referred to as "users") who use a route bus (hereinafter referred to as "bus") 90. This assumes that a smartphone 50 is possessed as a portable information terminal device. An application program for fare settlement (hereinafter referred to as "fare settlement application"), which will be described later, is installed on the user's smartphone 50.

図1に示すように、本実施形態のバス90は、ワンマン運行方式であり、利用者が後方の乗車口91から乗車した後、前方の降車口93から降車する際に利用運賃を支払う「後乗り前降り後払い方式」を採用している。「後乗り前降り後払い方式」は、運賃後払い方式の一態様であり、典型的には、距離に応じて金額が増加する運賃体系を採る。そのため、利用運賃の取得には、例えば、後述する運賃三角表データが用いられる。 As shown in FIG. 1, the bus 90 of this embodiment is a one-man operation system, in which the user gets on the bus from the rear entrance 91 and then pays the fare when getting off from the front exit 93. The train uses a pay-before-boarding, deferred-pay method. The ``post-boarding, pre-disembarking, deferred payment system'' is a form of deferred fare payment system, and typically adopts a fare system in which the amount increases depending on the distance. Therefore, to obtain the usage fare, for example, triangular fare table data, which will be described later, is used.

このバス90には、降車口93付近に利用者が現金やICカードで利用運賃の支払いを行うことが可能な運賃箱が設けられている。本実施形態では、この運賃箱がホスト機器40の役割を果たす。ホスト機器40は、バス90に搭載される機器装置であれば、このような運賃箱のほかに、例えば、利用者に乗車区間に対応した運賃を表示する運賃表示器、次の停留所名等を車内に放送する車内放送装置や、車外に向けて当該バス90の行き先等を表示する行先表示装置の操作盤等の車載機器でもよい。 The bus 90 is provided with a fare box near the exit 93 where passengers can pay their fares with cash or IC cards. In this embodiment, the fare box serves as the host device 40. In addition to such a fare box, the host device 40 may be any device mounted on the bus 90, such as an on-board device such as a fare display that displays to passengers the fare corresponding to the boarding section, an on-board public address device that broadcasts the name of the next stop, etc., inside the vehicle, or a destination display device control panel that displays the destination of the bus 90, etc., to the outside of the vehicle.

運賃収受システム10は、乗車表示端末20、降車表示端末30、ホスト機器40、スマートフォン50、管理サーバ60、決済サーバ70等により構成されている。これらのうち、乗車表示端末20、降車表示端末30およびホスト機器40は、バス90に搭載されており、スマートフォン50は利用者が所持している。管理サーバ60および決済サーバ70は、例えば、バス90の運行事業者の社屋内に収容されている。これらのサーバ60,70は、他の事業者が管理するレンタルサーバを利用していてもよい。 The fare collection system 10 includes a boarding display terminal 20, an alighting display terminal 30, a host device 40, a smartphone 50, a management server 60, a payment server 70, and the like. Of these, the boarding display terminal 20, the alighting display terminal 30, and the host device 40 are mounted on the bus 90, and the smartphone 50 is carried by the user. The management server 60 and the payment server 70 are housed, for example, within the company premises of the bus 90 operating company. These servers 60 and 70 may use rental servers managed by other businesses.

管理サーバ60や決済サーバ70は、例えば、図略のインターネット接続事業者(ISP)を介してインターネットNに接続されている。また、スマートフォン50は、移動体通信事業者(MNO)が管理する基地局80等を介してインターネットNに接続されている。インターネットNは、データを伝送する情報通信回線網の一例であり、インターネットプロトコルを使用してコンピュータを相互接続するコンピュータネットワークである。なお、スマートフォン50と管理サーバ60の間およびスマートフォン50と決済サーバ70の間でデータ通信可能であれば、インターネットN以外の情報通信回線網でもよい。 The management server 60 and the payment server 70 are connected to the Internet N via, for example, an unillustrated Internet service provider (ISP). Furthermore, the smartphone 50 is connected to the Internet N via a base station 80 or the like managed by a mobile network operator (MNO). The Internet N is an example of an information communication network that transmits data, and is a computer network that interconnects computers using Internet protocols. Note that any information communication network other than the Internet N may be used as long as data communication is possible between the smartphone 50 and the management server 60 and between the smartphone 50 and the payment server 70.

図1および図2に示すように、乗車表示端末20は、主に、制御ユニット21、表示ユニット23、照明ユニット25、通信ユニット27等により構成されており、本実施形態では、例えば、バス90の乗車口91付近に設けられる握り棒Pに取り付けられている。乗車表示端末20の外観は、例えば、制御ユニット21等を収容する矩形箱形状のハウジングと、このハウジング前面に設けられる表示ユニット23の矩形状の液晶表示パネルと、により構成されている。 As shown in FIGS. 1 and 2, the boarding display terminal 20 mainly includes a control unit 21, a display unit 23, a lighting unit 25, a communication unit 27, and the like. It is attached to a grip bar P provided near the entrance 91 of the vehicle. The appearance of the ride display terminal 20 is composed of, for example, a rectangular box-shaped housing that houses the control unit 21 and the like, and a rectangular liquid crystal display panel of the display unit 23 provided on the front surface of the housing.

制御ユニット21は、後述するホスト機器40の制御ユニット41とほぼ同様に、MPU、メモリ(DRAM、ROM)、インタフェース等により構成されるコントローラであり、本実施形態では、表示ユニット23、照明ユニット25や通信ユニット27等が接続されている。メモリのROMには、表示ユニット23、照明ユニット25や通信ユニット27をMPUが制御可能に構成される所定のシステムプログラムや、後述のコード出力処理200をMPUが実行可能に構成されるコード出力プログラム等が格納されている。 The control unit 21 is a controller composed of an MPU, a memory (DRAM, ROM), an interface, etc., almost like the control unit 41 of the host device 40 described later. , a communication unit 27, etc. are connected thereto. The ROM of the memory stores a predetermined system program that allows the MPU to control the display unit 23, lighting unit 25, and communication unit 27, and a code output program that allows the MPU to execute code output processing 200, which will be described later. etc. are stored.

表示ユニット23は、表示デバイスとして液晶表示パネルや電子ペーパを備えたディスプレィ装置であり、制御ユニット21に対して、例えば、液晶映像パラレルインタフェースやLVDS(Low voltage differential signaling)インタフェースやSPI(Serial Peripheral Interface)等を介して接続されている。画面のサイズは、後述する二次元コードDCを十分に表示可能な大きさ、例えば、横縦比率が4:3のスクエア型の場合には5~6インチに設定され、また横縦比率が16:9のワイド型の場合には6~7インチに設定されている。 The display unit 23 is a display device equipped with a liquid crystal display panel or electronic paper as a display device, and is connected to the control unit 21 by, for example, a liquid crystal video parallel interface, an LVDS (Low voltage differential signaling) interface, or an SPI (Serial Peripheral Interface). ) etc. The screen size is set to be large enough to display the two-dimensional code DC described later, for example, in the case of a square type with an aspect ratio of 4:3, the screen size is set to 5 to 6 inches, and if the aspect ratio is 16 :9 wide type is set to 6 to 7 inches.

照明ユニット25は、表示ユニット23を照らす面発光可能な照明デバイスであり、例えば、光源はLEDや有機EL等である。照明ユニット25は、シリアルインタフェースやGPIO(General-purpose input/output)インタフェースを介して制御ユニット21に接続されており、制御ユニット21により発光のオンオフや輝度が制御され得るように構成されている。例えば、表示ユニット23の表示デバイスが液晶表示パネルである場合には、照明ユニット25は表示ユニット23の裏側に設けられる。また、表示デバイスが電子ペーパである場合には、照明ユニット25は、表示ユニット23の表側に設けられる。 The lighting unit 25 is a lighting device that can emit surface light to illuminate the display unit 23, and the light source is, for example, an LED, an organic EL, or the like. The lighting unit 25 is connected to the control unit 21 via a serial interface or a GPIO (General-purpose input/output) interface, and is configured such that the control unit 21 can control the on/off of light emission and the brightness. For example, when the display device of the display unit 23 is a liquid crystal display panel, the lighting unit 25 is provided on the back side of the display unit 23. Further, when the display device is electronic paper, the lighting unit 25 is provided on the front side of the display unit 23.

本実施形態では、乗車表示端末20は表示ユニット23を照らす照明ユニット25を備えることから、例えば、夜間等、乗車表示端末20の周囲が暗い環境になっても表示ユニット23に表示される二次元コードDCを照明ユニット25が照らすことが可能になる。そのため、スマートフォン50による二次元コードDCの取り込み場面において、カメラ55による二次元コードDCの画像撮影の成功率を高めることが可能になる。 In this embodiment, the boarding display terminal 20 is equipped with an illumination unit 25 that illuminates the display unit 23. Therefore, even if the boarding display terminal 20 is surrounded by a dark environment, such as at night, the illumination unit 25 can illuminate the two-dimensional code DC displayed on the display unit 23. This makes it possible to increase the success rate of capturing an image of the two-dimensional code DC by the camera 55 when the two-dimensional code DC is captured by the smartphone 50.

通信ユニット27は、有線通信回線15を介して制御ユニット21がホスト機器40とデータ通信可能に構成されるシリアル通信装置である。本実施形態では、ホスト機器40、乗車表示端末20、降車表示端末30等の間をマルチドロップで接続可能なRS-458に準拠したものを使用しているが、ホスト機器40と乗車表示端末20の間やホスト機器40と降車表示端末30の間をそれぞれPP(Point to Point)接続する場合には、例えば、カレントループやRS-422に準拠したものを用いてもよい。また、Ethernetに準拠したLANを用いてホスト機器40、乗車表示端末20、降車表示端末30等を接続してもよい。 The communication unit 27 is a serial communication device that allows the control unit 21 to communicate data with the host device 40 via the wired communication line 15. In this embodiment, an RS-458 compliant device is used that allows multi-drop connection between the host device 40, the boarding display terminal 20, the boarding display terminal 30, etc. When making PP (Point to Point) connections between the host device 40 and the alighting display terminal 30, for example, current loop or RS-422 compliant devices may be used. Further, the host device 40, the boarding display terminal 20, the disembarking display terminal 30, etc. may be connected using an Ethernet-compliant LAN.

本実施形態では、このような通信ユニット27および有線通信回線15を介してホスト機器40から乗車表示端末20に対して、表示や照明に関する制御コマンドや後述する停留所情報等が送られて来る。また乗車開扉信号も送られて来る。乗車開扉信号は、バス90の乗車扉を開くタイミングで他の車載機器(不図示)から送出される信号で乗車扉開閉装置(不図示)に開扉を指示するものである。また、バス90の乗車扉を閉じるために他の車載機器から乗車扉開閉装置に送出されて閉扉を指示する乗車閉扉信号が乗車表示端末20に送られる場合もある。 In this embodiment, the host device 40 sends control commands related to display and lighting, stop information, etc. to be described later, to the boarding display terminal 20 via the communication unit 27 and the wired communication line 15. A boarding door opening signal is also sent. The boarding door opening signal is a signal sent from another vehicle-mounted device (not shown) at the timing when the boarding door of the bus 90 is opened, and is a signal that instructs the boarding door opening/closing device (not shown) to open the boarding door. Further, in order to close the boarding door of the bus 90, a boarding door close signal that is sent from another vehicle-mounted device to the boarding door opening/closing device and instructing the boarding door to close may be sent to the boarding display terminal 20.

なお、破線で表されている符号17は、手動で操作する押しボタン(以下「停留所送りボタン」という)をバス90の乗務員(運転士)が操作するごとに当該押しボタンから出力される停留所送り信号であり、歩進信号と呼ばれる場合もある。停留所送り信号17は、バス90の走行に伴って次に停車を予定する停留所(以下「次停留所」という)に合わせて、運賃表示器、車内放送装置、運賃箱等の車載機器の制御を進めるトリガ信号のことである。停留所送り信号17により得られる情報のことを「停留所送り情報」という。 The dashed line reference number 17 denotes a stop-send signal that is output from a manually operated push button (hereinafter referred to as the "stop-send button") each time the crew member (driver) of the bus 90 operates the button, and is sometimes called a proceeding signal. The stop-send signal 17 is a trigger signal that advances the control of on-board equipment such as the fare display, on-board public address system, and fare box in accordance with the next stop (hereinafter referred to as the "next stop") at which the bus 90 is scheduled to stop as it travels. The information obtained by the stop-send signal 17 is referred to as "stop-send information."

なお、このような乗務員(運転士)が手動で操作する停留所送りボタンに代えて、GPS(Global Positioning System)により当該バス90の走行位置を把握して自動的に停留所送り情報を出力するものを用いてもよい。これにより、乗務員(運転士)による停留所送りボタンの操作忘れによる停留所送り情報の出力抜けが発生しないため、乗車表示端末20や降車表示端末30に後述する二次元コードDCが表示されない事態を防ぐことが可能になる。 In addition, instead of such a stop sending button that is manually operated by a crew member (driver), there is a button that uses GPS (Global Positioning System) to grasp the running position of the bus 90 and automatically outputs the stop sending information. May be used. This prevents the output of the stop sending information from being omitted due to the crew member (driver) forgetting to operate the stop sending button, thereby preventing a situation in which the two-dimensional code DC described later is not displayed on the boarding display terminal 20 or the getting off display terminal 30. becomes possible.

また、制御ユニット21、表示ユニット23、照明ユニット25および通信ユニット27には、ハウジング内に設けられる図略の電源ユニットからそれぞれの駆動電力が供給されている。そのため、図2には図示されていないが、乗車表示端末20には、有線通信回線15と電源ラインのワイヤハーネスが接続されている。また、有線通信回線15は、Bluetooth(登録商標)やZigBee(登録商標)等の無線規格に準拠した無線通信回線に代えてもよい。この場合には、通信ユニット27は、Bluetooth(登録商標)やZigBee(登録商標)等に対応したものに置き換える必要がある。 The control unit 21, display unit 23, lighting unit 25, and communication unit 27 are each supplied with driving power from a power supply unit (not shown) provided within the housing. Therefore, although not shown in FIG. 2, a wire harness for the wired communication line 15 and the power supply line is connected to the boarding display terminal 20. The wired communication line 15 may be replaced with a wireless communication line that complies with wireless standards such as Bluetooth (registered trademark) or ZigBee (registered trademark). In this case, the communication unit 27 needs to be replaced with one that is compatible with Bluetooth (registered trademark), ZigBee (registered trademark), or the like.

降車表示端末30は、例えば、バス90の降車口93付近に設けられる握り棒P等に取り付けられており、乗車表示端末20と同様にハードウェアが構成されている。つまり、降車表示端末30は、主に、制御ユニット31、表示ユニット33、照明ユニット35、通信ユニット37等により構成されており、前述した乗車表示端末20の、制御ユニット21、表示ユニット23、照明ユニット25、通信ユニット27にそれぞれ対応する。そのため、ここでは制御ユニット31等の構成や接続関係の説明を省略する。 The disembarking display terminal 30 is attached, for example, to a grip P provided near the disembarking entrance 93 of the bus 90, and has the same hardware configuration as the boarding display terminal 20. In other words, the disembarking display terminal 30 is mainly composed of a control unit 31, a display unit 33, a lighting unit 35, a communication unit 37, etc., which correspond to the control unit 21, display unit 23, lighting unit 25, and communication unit 27 of the boarding display terminal 20 described above, respectively. Therefore, a description of the configuration and connection relationships of the control unit 31, etc. will be omitted here.

なお、降車表示端末30はバス90の降車口93付近に設けられているため、バス90の降車扉を開くタイミングで他の車載機器(不図示)から、降車扉信号が送られて来る。降車扉信号は、降車扉開閉装置に開扉を指示する信号である。また、降車口93付近の運賃箱に当該利用者が見ることのできる小型ディスプレィが設けられている場合には、この小型ディスプレィを降車表示端末30に代えて使用してもよい。この場合には、降車表示端末30のハードウェアが削減でき、設備コストをさらに減らすことが可能になる。 Note that since the alighting display terminal 30 is provided near the alighting gate 93 of the bus 90, an alighting door signal is sent from another vehicle-mounted device (not shown) at the timing when the alighting door of the bus 90 is opened. The exit door signal is a signal that instructs the exit door opening/closing device to open the door. Further, if a small display that the user can see is provided in the fare box near the exit 93, this small display may be used in place of the exit display terminal 30. In this case, the hardware of the alighting display terminal 30 can be reduced, making it possible to further reduce equipment costs.

ホスト機器40は、本実施形態では運賃箱がこれに相当する。そのため、制御ユニット41は運賃箱の制御ユニットが、また通信ユニット47は運賃箱の通信ユニットが、それぞれその役割を担う。なお、ホスト機器40は、このように既存の運賃箱等を用いることなく、既存の運賃箱等に関係なくホスト機器40自体を単独で新規に設けてもよい。 In this embodiment, the host device 40 corresponds to a fare box. Therefore, the control unit 41 serves as a control unit for the fare box, and the communication unit 47 serves as a communication unit for the fare box. Note that the host device 40 may be newly installed independently without using an existing fare box or the like as described above, regardless of the existing fare box or the like.

制御ユニット41は、運賃箱に設けられている運賃収受機構の駆動ユニット、運賃三角表データ等が書き込まれたデータカセット、ICカードリーダライタ、ディスプレィ等の各種ユニット46や、通信ユニット47等を制御するコントローラであり、MPU42、メモリ43、入出力インタフェース44、図略の時計ユニット等から構成されている。MPU42は、各種ユニット46等を制御する演算処理装置であり、システムバス45等を介して、メモリ43や入出力インタフェース44等と接続されている。 The control unit 41 controls various units 46 such as a drive unit of the fare collection mechanism provided in the fare box, a data cassette in which fare triangular table data, etc. are written, an IC card reader/writer, a display, a communication unit 47, etc. The controller is composed of an MPU 42, a memory 43, an input/output interface 44, a clock unit (not shown), and the like. The MPU 42 is an arithmetic processing unit that controls various units 46 and the like, and is connected to the memory 43, the input/output interface 44, and the like via the system bus 45 and the like.

メモリ43は、半導体記憶装置であり、MPU42が使用する主記憶空間を構成するものである。本実施形態では、プログラム領域を担うROMとワーク領域やデータ領域に割り当てられるDRAMとにより構成されている。本実施形態では、ROMには、各種ユニット46を制御するシステムプログラムや、後述する停留所情報等送出処理100を可能にする停留所情報等送出プログラム等、各種の制御プログラムが格納されている。 The memory 43 is a semiconductor storage device, and constitutes a main storage space used by the MPU 42. In this embodiment, it is configured by a ROM that serves as a program area and a DRAM that is allocated to a work area and a data area. In this embodiment, the ROM stores various control programs such as a system program for controlling the various units 46 and a stop information etc. sending program that enables the stop information etc. sending process 100 described later.

なお、データカセットのメモリには、運賃三角表データのほかに、その系統番号、事業者名称、営業所名称、車両番号等が書き込まれているため、例えば、バス90の運行路線が変更されるごとにその運行路線に対応したものに取り替えられる。運賃三角表データの例は、図3に図示されている。 In addition, in addition to the fare triangular table data, the data cassette memory has its system number, operator name, business office name, vehicle number, etc., so, for example, if the route of bus 90 is changed. Each time, it is replaced with one that corresponds to that route. An example of fare triangular table data is illustrated in FIG.

入出力インタフェース44は、制御ユニット41の周辺装置に対して、シリアルやパラレルのデータのやり取りを仲介する入出力インタフェース装置である。本実施形態では、各種ユニット46や通信ユニット47等と接続可能に構成されている。入出力インタフェース44は、各種ユニット46を駆動するドライバ回路を備えている場合もある。 The input/output interface 44 is an input/output interface device that mediates the exchange of serial and parallel data with peripheral devices of the control unit 41. In this embodiment, it is configured to be connectable to various units 46, a communication unit 47, etc. The input/output interface 44 may also be equipped with a driver circuit that drives the various units 46.

通信ユニット47は、有線通信回線15を介して制御ユニット41が乗車表示端末20や降車表示端末30とデータ通信可能に構成されるシリアル通信装置であり、これらの通信ユニット27,37であるスレーブに対してホストとして機能するものである。本実施形態では、RS-458に準拠したものを使用しており、ホスト機器40、乗車表示端末20、降車表示端末30等の間を有線通信回線15でマルチドロップ接続している。通信プロトコルは、ホスト機器40を含めて有線通信回線15に接続されている乗車表示端末20、降車表示端末30等をIDで識別可能なものを使用している。 The communication unit 47 is a serial communication device that allows the control unit 41 to communicate data with the boarding display terminal 20 and the disembarking display terminal 30 via the wired communication line 15. It functions as a host for the host. In this embodiment, a device based on RS-458 is used, and a multi-drop connection is made between the host device 40, the boarding display terminal 20, the getting off display terminal 30, etc. using the wired communication line 15. A communication protocol is used that allows the boarding display terminal 20, the boarding display terminal 30, etc. connected to the wired communication line 15, including the host device 40, to be identified by ID.

スマートフォン50は、利用者が所有(所持)する携帯情報端末装置であり、「携帯型情報端末」や「携帯端末」と呼ばれる場合もある。スマートフォン50は、一般に市販されているものであり、制御ユニット51(MPU、メモリ等)、無線ユニット52、表示ユニット53、カメラ55、メモリカード、バッテリ等により構成され、これらが厚さ数ミリ程度の薄板状のケース内に収容されている。 The smartphone 50 is a portable information terminal device owned (possessed) by a user, and is sometimes called a "portable information terminal" or a "mobile terminal." The smartphone 50 is generally commercially available and is composed of a control unit 51 (MPU, memory, etc.), a wireless unit 52, a display unit 53, a camera 55, a memory card, a battery, etc., and is approximately several millimeters thick. It is housed in a thin plate-like case.

なお、このようなスマートフォン50の代わりに、画面サイズが8~10インチの表示ユニットを有するデータ通信可能なタブレットタイプのパーソナルコンピュータ(以下「タブレット」という)を利用者が所持していてもよい。また、スマートフォンやタブレットでなく、携帯情報端末装置として、一般に市販されているカメラ付きの携帯電話装置(カメラ付き携帯)を利用者が所持していてもよい。 Note that instead of such a smartphone 50, the user may have a tablet-type personal computer (hereinafter referred to as a "tablet") that has a display unit with a screen size of 8 to 10 inches and is capable of data communication. Further, instead of a smartphone or a tablet, the user may have a generally commercially available mobile phone device with a camera (mobile phone with a camera) as a mobile information terminal device.

本実施形態では、スマートフォン50は、例えば、Android(登録商標)やiOS(登録商標)等のOS(基本ソフトウェア)で制御ユニット51が動作しており、後述する運賃精算処理300を実行する運賃精算アプリもこれらのOS上で動作可能に構成されている。スマートフォン50のOSはAndroid(登録商標)やiOS(登録商標)以外のものでもよいが、その場合には運賃精算アプリもそのOS上で動作するように対応させる必要がある。無線ユニット52は、移動体通信事業者(MNO)の無線通信回線85を介してデータ通信や音声通信可能に構成されている。 In the present embodiment, the smartphone 50 has a control unit 51 running on an OS (basic software) such as Android (registered trademark) or iOS (registered trademark), and performs fare settlement processing 300 to be described later. Applications are also configured to be able to run on these OSs. The OS of the smartphone 50 may be one other than Android (registered trademark) or iOS (registered trademark), but in that case, the fare adjustment application must also be adapted to operate on that OS. The wireless unit 52 is configured to be capable of data communication and voice communication via a wireless communication line 85 of a mobile network operator (MNO).

カメラ55は、CCDやCMOS等の固体撮像素子を備えたものであり、スマートフォン50の裏側にレンズを有し、乗車表示端末20や降車表示端末30に表示された二次元コードDCの画像を撮影可能に構成されている。カメラ55で撮影した画像データは、制御ユニット51で情報処理することが可能であり、本実施形態では、運賃精算アプリによりデコードして二次元コードDCに埋め込まれた情報を取得可能にしている。なお、タブレットの場合は、表示ユニットの画面サイズが異なる以外はスマートフォン50とほぼ同様に構成される。 The camera 55 is equipped with a solid-state imaging element such as a CCD or CMOS, has a lens on the back of the smartphone 50, and is configured to be able to capture an image of the two-dimensional code DC displayed on the boarding display terminal 20 or the disembarking display terminal 30. The image data captured by the camera 55 can be processed by the control unit 51, and in this embodiment, the information embedded in the two-dimensional code DC can be obtained by decoding it using the fare adjustment app. Note that in the case of a tablet, the configuration is almost the same as the smartphone 50, except for the screen size of the display unit.

管理サーバ60および決済サーバ70は、いずれも、主に、制御装置、データベース装置、ネットワーク機器等から構成されているファイルサーバである。制御装置は、データベース装置やネットワーク機器に接続されてこれらを制御する情報処理装置であり、例えば、サーバコンピュータがこれに相当する。データベース装置は、記憶容量が数100TB(テラバイト)クラスの大容量情報記憶媒体である。ネットワーク機器は、例えば、インターネットNに接続されている。 Both the management server 60 and the payment server 70 are file servers mainly composed of a control device, a database device, network equipment, and the like. The control device is an information processing device that is connected to and controls a database device and network equipment, and corresponds to, for example, a server computer. A database device is a large-capacity information storage medium with a storage capacity of several hundred TB (terabytes). The network device is connected to the Internet N, for example.

管理サーバ60と決済サーバ70のハードウェアの相違は、例えば、制御装置の処理速度やデータベース装置の記憶容量になるが、基本的には両サーバ60,70はハードウェア的にはほぼ同様に構成される。ソフトウェア的には、管理サーバ60の場合、例えば、後述する停留所情報等記録処理をその制御装置が実行可能な停留所情報等記録プログラムが、当該制御装置のハードディスク装置等に格納される。また、決済サーバ70の場合には、例えば、後述する運賃決済処理をその制御装置が実行可能な運賃決済プログラムが、当該制御装置のハードディスク装置等に格納される。 The differences in the hardware between the management server 60 and the payment server 70 are, for example, the processing speed of the control device and the storage capacity of the database device, but basically the hardware of both servers 60, 70 is configured in almost the same way. In terms of software, in the case of the management server 60, for example, a bus stop information recording program that enables the control device to execute the bus stop information recording process described below is stored in the hard disk drive of the control device. Also, in the case of the payment server 70, for example, a fare payment program that enables the control device to execute the fare payment process described below is stored in the hard disk drive of the control device.

このため、本実施形態では、管理サーバ60と決済サーバ70を別体に構成したが、これらのサーバ60,70を同じサーバで構成してもよい。即ち、管理サーバ60に決済サーバ70の機能を持たせたり、決済サーバ70に管理サーバ60を機能を持たせたりしてもよい。この場合には、単一のサーバが備える制御装置のハードディスク装置等に停留所情報等記録プログラムや運賃決済プログラムが格納される。 Therefore, in this embodiment, the management server 60 and the payment server 70 are configured separately, but these servers 60 and 70 may be configured as the same server. That is, the management server 60 may have the function of the payment server 70, or the payment server 70 may have the function of the management server 60. In this case, a stop information recording program and a fare payment program are stored in a hard disk device or the like of a control device provided in a single server.

このように乗車表示端末20、降車表示端末30、ホスト機器40、スマートフォン50、管理サーバ60や決済サーバ70を構成することによって、本実施形態の運賃収受システム10では、図11に表したシーケンス図のように、利用者Mがバス90に乗車して降車するまでの間において、停留所情報等送出処理100、コード出力処理200、運賃精算処理300等の各処理を行う。 By configuring the boarding display terminal 20, the disembarking display terminal 30, the host device 40, the smartphone 50, the management server 60, and the payment server 70 in this manner, the fare collection system 10 of this embodiment performs various processes such as bus stop information sending process 100, code output process 200, and fare settlement process 300 from the time user M boards the bus 90 until he disembarks, as shown in the sequence diagram in Figure 11.

なお、利用者Mは、運賃収受システム10を利用するための事前準備として、例えば、運賃精算処理300を当該利用者Mのスマートフォン50において実行し得る運賃精算アプリをバス90の運行事業者やスマートフォン用のアプリケーションプログラム(スマホアプリ)の販売業者等が運営するウェブサイトからダウンロードして当該スマートフォン50にインストール(実装)する必要がある。 In addition, as a preliminary preparation for using the fare collection system 10, the user M may, for example, install a fare settlement application that can execute the fare settlement process 300 on the user M's smartphone 50 by using the operator of the bus 90 or the smartphone. It is necessary to download the application program (smartphone application) from a website operated by a vendor or the like and install it (implementation) on the smartphone 50.

また、スマートフォン50において運賃精算アプリを起動した後、初期設定作業として、利用者Mの氏名、生年月日、性別、住所、電話番号、職業等の個人情報を当該スマートフォン50や管理サーバ60に設定したり、またクレジットカード等の決済情報を当該スマートフォン50に登録したりする必要がある。セキュアな情報管理を行う場合には、個人情報や決済情報は管理サーバ60にのみ登録する。なお、スマートフォン50は、MACアドレスやデバイスIDにより一意に特定することが可能である。また、スマートフォン50のSIMカードに記憶されているIMSI(International Mobile Subscriber Identity)でも特定できる。これにより、スマートフォン50の所持者は利用者Mであることがわかるため、後述の停留所情報等ISと利用者Mとの関連付けが可能になる。 After starting the fare adjustment app on the smartphone 50, it is necessary to set personal information such as the name, date of birth, sex, address, telephone number, and occupation of the user M in the smartphone 50 and the management server 60 as an initial setting task, and to register payment information such as credit card information in the smartphone 50. When performing secure information management, personal information and payment information are registered only in the management server 60. The smartphone 50 can be uniquely identified by its MAC address or device ID. It can also be identified by the IMSI (International Mobile Subscriber Identity) stored in the SIM card of the smartphone 50. This identifies the owner of the smartphone 50 as user M, making it possible to associate IS such as bus stop information described below with user M.

[停留所情報等送出処理100]
図11に示すように、本実施形態の運賃収受システム10では、まずバス90のホスト機器40が停留所情報等送出処理100を開始する。即ち、ホスト機器40では、前述したように制御ユニット41のメモリ43のROMに停留所情報等送出プログラムが格納されている。そのため、バス90の運行開始前においてホスト機器40に電源が投入されると、その直後にメモリ43のDRAMに展開される停留所情報等送出プログラムを、MPU42が実行することによって図4に示す停留所情報等送出処理100が開始される。なお、DRAMに展開されたものではなくROMに格納された停留所情報等送出プログラムをMPU42が直接実行するように構成してもよい。
[Stop information etc. sending process 100]
As shown in FIG. 11, in the fare collection system 10 of this embodiment, the host device 40 of the bus 90 first starts the stop information etc. sending process 100. That is, in the host device 40, as described above, the ROM of the memory 43 of the control unit 41 stores a program for transmitting stop information, etc. Therefore, when the power is turned on to the host device 40 before the start of operation of the bus 90, the MPU 42 executes a program for transmitting stop information, etc., which is loaded into the DRAM of the memory 43 immediately after, and the stop information shown in FIG. etc. sending processing 100 is started. Note that the MPU 42 may be configured to directly execute a program for transmitting stop information, etc., which is stored in the ROM instead of being developed in the DRAM.

図4に示すように、停留所情報等送出処理100では、まずステップS101により所定の初期化処理が行われる。この処理では、例えば、制御ユニット41のメモリ43の本処理用のワーク領域やフラグをクリアしたり、ほぼ同時期に起動される乗車表示端末20や降車表示端末30に対する初期設定用の制御コマンドの送出が行われたりする。続くステップS102では、当該バス90が走行する系統番号を乗務員が入力する系統番号入力処理が行われる。 As shown in FIG. 4, in the process 100 for sending bus stop information, etc., a predetermined initialization process is first performed in step S101. In this process, for example, the work area and flags for this process in the memory 43 of the control unit 41 are cleared, and control commands for initial setting are sent to the boarding display terminal 20 and the disembarking display terminal 30, which are started at approximately the same time. In the following step S102, a route number input process is performed in which the driver inputs the route number on which the bus 90 runs.

次のステップS103では始発停留所情報等読出し処理が行われる。始発停留所情報等は、バス90の始発の停留所BSaに関する情報であり、例えば、次に列挙する(1)~(8)の情報である。これらのうち、(1)~(4)はバス90の走行中に変動するものであり、(5)~(8)は固定されているものである。
(1) 整理券番号
(2) 各整理券番号に対応した運賃データ
(3) 停留所名称
(4) 停留所連番号
(5) 系統番号
(6) 事業者名称
(7) 営業所名称
(8) 車両番号
In the next step S103, a process of reading the first train stop information, etc. is performed. The first stop information, etc. is information regarding the first stop BSa of the bus 90, and is, for example, the information (1) to (8) listed below. Among these, (1) to (4) change while the bus 90 is running, and (5) to (8) are fixed.
(1) Numbered ticket number
(2) Fare data corresponding to each ticket number
(3) Stop name
(4) Stop serial number
(5) System number
(6) Business name
(7) Office name
(8) Vehicle number

始発の停留所BSaにおいては、(1)の整理券番号は「4」であり、(2)の運賃データは、整理券番号4に対応した200円だけである。また、(3)の停留所名称は、例えば「ABC駅」であり、(4)の停留所連番号は、例えば「0」である。これらの各情報は停留所BSごとに変更される。これに対して(5)~(8)の各情報は停留所BSが進んでも変更されることのない情報である。例えば、(5)の系統番号は「01」、(6)の事業者名称は「XYZ交通」、(7)の営業所名称は「○×△営業所」、(8)の車両番号は「123」等である。本実施形態では、これらの各情報は、例えば、ホスト機器40に接続されているデータカセットのメモリに記憶されているため、そこから読み出して前記の(1)~(8)の各情報を得る(図3参照)。 At the first stop, BSa, the ticket number in (1) is "4" and the fare data in (2) is only 200 yen, which corresponds to ticket number 4. Further, the stop name in (3) is, for example, "ABC Station", and the stop serial number in (4) is, for example, "0". Each of these pieces of information is changed for each stop BS. On the other hand, each information (5) to (8) is information that does not change even if the stop BS advances. For example, the system number in (5) is "01", the business name in (6) is "XYZ Transportation", the office name in (7) is "○×△ office", and the vehicle number in (8) is " 123'' etc. In this embodiment, each of these pieces of information is stored, for example, in the memory of a data cassette connected to the host device 40, and is read from there to obtain each piece of information (1) to (8) above. (See Figure 3).

次のステップS105では始発停留所情報等送出処理が行われる。運行開始前の始発の停留所BSaにおいては、運賃表示器等の車載機器の電源が投入されると、押しボタンから停留所送り信号17が出力されなくても、運賃表示器や車内放送装置により当該バス90の系統番号や行き先等の案内情報が自動的に行われて運賃箱等も所定の制御処理が開始される。そのため、ホスト機器40においても、乗車表示端末20や降車表示端末30に対して始発の停留所BSaの停留所情報等ISaを生成して送出する(図11参照)。 In the next step S105, processing for transmitting first train stop information, etc. is performed. At the first stop BSa before the start of service, when the on-board equipment such as the fare display is turned on, the fare display and in-board public address system will notify the bus even if the stop sending signal 17 is not output from the push button. Guidance information such as system number and destination of 90 is automatically provided, and predetermined control processing of fare boxes and the like is also started. Therefore, the host device 40 also generates and sends stop information ISa such as the first stop BSa to the boarding display terminal 20 and the getting off display terminal 30 (see FIG. 11).

送出する始発の停留所情報等ISaには、上記(1)~(8)の各情報に加えて(9)の表示更新日時が付加される。即ち、ホスト機器40では、停留所情報等ISaを送出する直前時点の年月日時分秒の時刻情報を(9)の表示更新日時として追加して停留所情報等ISaを生成する。例えば、2019年9月25日17時46分をバイナリデータで表したものを追加する。本実施形態では、停留所情報等ISaは、例えば、上記(1),(2),(4),(5),(8),(9)をバイナリデータ、(3),(6),(7)をテキストデータでそれぞれ表したものとして生成される。なお、これら(1)~(9)をすべてテキストデータで生成してもよい。 In addition to each of the information in (1) to (8) above, the display update date and time in (9) is added to the first train stop information, etc. ISa that is sent out. That is, the host device 40 generates the stop information ISa by adding the time information of the year, month, day, hour, minute, and second immediately before transmitting the stop information ISa as the display update date and time in (9). For example, add binary data representing 17:46 on September 25, 2019. In this embodiment, the stop information ISa is, for example, the above (1), (2), (4), (5), (8), (9) as binary data, (3), (6), ( 7) is generated as a text data representation. Note that all of these (1) to (9) may be generated as text data.

これにより、乗車表示端末20や降車表示端末30では、後述するように、図5に示すコード出力処理200によって停留所情報等ISaを取得し(S203)、表示ユニット23,33に二次元コードDC等を出力することが可能になる(S213,S215,S217)。これらの表示端末20,30の制御ユニット21,31により実行されるコード出力処理200の内容については後で詳述する。 As a result, the boarding display terminal 20 and the disembarking display terminal 30 can obtain stop information, etc. ISa (S203) by the code output process 200 shown in FIG. 5, as described below, and output the two-dimensional code DC, etc. to the display unit 23, 33 (S213, S215, S217). The contents of the code output process 200 executed by the control units 21, 31 of these display terminals 20, 30 will be described in detail later.

次のステップS107では停留所送り情報取得処理が行われる。停留所送り情報は、前述したように乗務員(運転士)が図略の押しボタンを操作するごとに出力される停留所送り信号17により得られる情報のことである。この停留所送り情報の入力の有無は、例えば、所定の割り込み処理の有無や所定のフラグのオンオフにより得ることができる。停留所送り情報が得られた場合には、次停留所に合わせて、運賃表示器、車内放送装置、運賃箱等の車載機器の制御を進める指示を乗務員が行ったことになる。 In the next step S107, a stop transfer information acquisition process is performed. As described above, the stop sending information is information obtained from the stop sending signal 17 that is output every time the crew member (driver) operates an unillustrated push button. The presence or absence of input of this stop sending information can be obtained by, for example, the presence or absence of predetermined interrupt processing or the on/off of a predetermined flag. If the stop transfer information is obtained, the crew member has given an instruction to proceed with the control of on-board equipment such as the fare display, in-car public address system, and fare box in accordance with the next stop.

このため、続くステップS109により、停留所送り情報を取得したか否かを判定し、取得した場合には(S109;Yes)、次のステップS111に処理を進め、停留所送り情報を取得したと判定できない(取得していない)場合には(S109;No)、ステップS107に戻り、再度、停留所送り情報取得処理を行う。つまり、停留所送り情報を取得するまでステップS107,S109を繰り返し行う。 Therefore, in the subsequent step S109, it is determined whether or not the stop sending information has been acquired, and if it has been acquired (S109; Yes), the process advances to the next step S111, and it cannot be determined that the stop sending information has been acquired. If (not acquired) (S109; No), the process returns to step S107 and the stop sending information acquisition process is performed again. That is, steps S107 and S109 are repeated until the stop sending information is acquired.

ステップS111では次停留所情報等読出し処理が行われる。この処理では、ホスト機器40のデータカセットから、次停留所BSbに関する情報として上記(1)~(8)の次停留所情報等を読み出す。もし読み出した次停留所情報等が上記(1)~(8)の各情報ではなく、次停留所が存在しない旨の終了情報であった場合には、次のステップS113による判定処理により次停留所がない、つまり前停留所が終着の停留所であったと判定して(S113;Yes)、本停留所情報等送出処理100を終了する。 In step S111, next stop information etc. reading processing is performed. In this process, the next stop information etc. described in (1) to (8) above are read out from the data cassette of the host device 40 as information regarding the next stop BSb. If the read next stop information, etc. is not the information in (1) to (8) above, but is end information indicating that the next stop does not exist, the determination process in step S113 determines that there is no next stop. In other words, it is determined that the previous stop is the final stop (S113; Yes), and the present stop information etc. sending process 100 is ended.

ステップS111により読み出した次停留所情報等が上記(1)~(8)の各情報である場合には次停留所BSbがあると判定して(S113;No)、続くステップS115に処理を移行する。ステップS115では停留所情報等送出処理が行われる。この処理は、前述の始発停留所情報等送出処理(S105)と同様に、送出直前時点の(9)表示更新日時の情報を付加して停留所情報等ISbを生成して乗車表示端末20や降車表示端末30に送出する。 If the next stop information etc. read in step S111 is each of the information (1) to (8) above, it is determined that the next stop BSb exists (S113; No), and the process moves to the subsequent step S115. In step S115, a process for transmitting stop information, etc. is performed. This process, similar to the above-mentioned first stop information etc. sending process (S105), adds the (9) display update date and time information immediately before sending to generate the stop information etc. ISb and displays it on the boarding display terminal 20 and getting off. It is sent to the terminal 30.

ここで送出される停留所情報等ISbは、上記(1)~(4),(9)が変更される。例えば、図3に示す運賃三角表データの場合、停留所BSbに対する停留所情報等ISbは、(1)の整理券番号が「3」になり、(2)の運賃データが整理券番号3に対応した200円と整理券番号4に対応した200円になる。(3)の停留所名称は「○×△1丁目」になり、(4)の停留所連番号は「1」になるため、それぞれ変更される。また(9)の表示更新日時は、例えば、2019年9月25日17時52分に変更される。 The ISb such as the stop information sent here is changed in the above (1) to (4) and (9). For example, in the case of the triangular fare table data shown in Figure 3, the stop information ISb for stop BSb is such that the ticket number in (1) is "3" and the fare data in (2) corresponds to ticket number 3. 200 yen and 200 yen corresponding to numbered ticket number 4. The name of the stop in (3) will be changed to ``○×△1-chome,'' and the serial number of the stop in (4) will be changed to ``1.'' Furthermore, the display update date and time in (9) is changed to, for example, September 25, 2019, 17:52.

ステップS115の停留所情報等送出処理が終わると、ステップS107に戻り停留所送り情報取得処理が行われる。そして、停留所送り情報を取得するごとに(S107,S109:Yes)、次停留所情報等を読み出して(S111)、停留所情報等ISを生成して乗車表示端末20や降車表示端末30に送出する(S115)。これにより、乗車表示端末20や降車表示端末30では、停留所BSa,BSb,…,BSdごとに異なる二次元コードDCa,DCb,…,DCdを表示ユニット23,33に表示することが可能になる(図11参照)。 When the process of sending bus stop information, etc. in step S115 is completed, the process returns to step S107 and the process of acquiring bus stop sending information is performed. Then, each time bus stop sending information is acquired (S107, S109: Yes), the next stop information, etc. is read (S111), and bus stop information, etc. IS is generated and sent to the boarding display terminal 20 and the disembarking display terminal 30 (S115). This makes it possible for the boarding display terminal 20 and the disembarking display terminal 30 to display on the display units 23 and 33 different two-dimensional codes DCa, DCb, ..., DCd for each bus stop BSa, BSb, ..., BSd (see Figure 11).

[コード出力処理200]
次に乗車表示端末20や降車表示端末30が実行するコード出力処理200を説明する。これらの表示端末20,30も、前述したように制御ユニット21,31のメモリにコード出力プログラムが格納されている。そのため、バス90の運行開始前においてホスト機器40とともに表示端末20,30に電源が投入されると、その直後にメモリのDRAMに展開されるコード出力プログラムを、制御ユニット21,31のMPUが実行することによって図5に示すコード出力処理200が開始される。なお、DRAMに展開されたものではなくROMに格納されたコード出力プログラムをMPUが直接実行するように構成してもよい。
[Code output processing 200]
Next, the code output process 200 executed by the boarding display terminal 20 and the disembarking display terminal 30 will be explained. These display terminals 20 and 30 also have a code output program stored in the memory of the control units 21 and 31, as described above. Therefore, when power is turned on to the display terminals 20, 30 together with the host device 40 before the bus 90 starts operating, the MPUs of the control units 21, 31 execute the code output program that is loaded into the DRAM of the memory immediately after. By doing so, the code output processing 200 shown in FIG. 5 is started. Note that the MPU may be configured to directly execute a code output program stored in the ROM instead of the one developed in the DRAM.

乗車表示端末20および降車表示端末30で実行されるコード出力処理200は、これらの表示端末20,30のいずれも同様に情報処理がされるため、ここでは乗車表示端末20のコード出力処理200を代表して説明する。なお、降車表示端末30の場合には、制御ユニット21を制御ユニット31に置き換え、また表示ユニット23を表示ユニット33に置き換え、乗車口91の乗車扉を降車口93の降車扉に置き換え、乗車開扉信号を降車開扉信号に置き換えると処理内容が理解できる。 In the code output processing 200 executed by the boarding display terminal 20 and the getting off display terminal 30, since the information processing is performed in the same way on both of these display terminals 20 and 30, the code output processing 200 of the boarding display terminal 20 will be explained here. I will represent and explain. In the case of the exit display terminal 30, the control unit 21 is replaced with the control unit 31, the display unit 23 is replaced with the display unit 33, the boarding door of the boarding entrance 91 is replaced with the boarding door of the boarding gate 93, and the boarding door is opened. The process can be understood by replacing the door signal with the exit door opening signal.

図5に示すように、コード出力処理200では、まずステップS201により所定の初期化処理が行われる。この処理では、例えば、制御ユニット21のメモリ(DRAMやSRAM)のワーク領域、タイマーカウンタやフラグをクリアしたり、ほぼ同時期に起動されるホスト機器40から送られて来る制御コマンドに基づいて初期設定等が行われたりする。 As shown in FIG. 5, in the code output process 200, a predetermined initialization process is first performed in step S201. In this process, for example, the work area of the memory (DRAM or SRAM) of the control unit 21, timer counters, and flags are cleared, and the initialization is performed based on a control command sent from the host device 40 that is started at approximately the same time. Settings etc. are performed.

次のステップS203では停留所情報等取得処理が行われる。前述したように、電源投入後の運行開始前のホスト機器40では、始発の停留所BSaの停留所情報等ISaを送出するので(図11参照)、この処理では、制御ユニット21の入力バッファに保持されている停留所情報等ISaを取得する。取得した場合には(S205;Yes)、続くステップS207でエンコード処理が行われ、取得していない場合には(S205;No)、取得するまでステップS203,S205を繰り返し行う。 In the next step S203, stop information etc. acquisition processing is performed. As described above, the host device 40 before the start of operation after the power is turned on sends out the stop information ISa such as the first stop BSa (see FIG. 11), so in this process, the information stored in the input buffer of the control unit 21 is Obtain ISa such as stop information. If it has been acquired (S205; Yes), encoding processing is performed in the subsequent step S207, and if it has not been acquired (S205; No), steps S203 and S205 are repeated until it is acquired.

ステップS207のエンコード処理では、ステップS203により取得した停留所情報等ISaを暗号化した後、二次元コードDCを生成する。本実施形態では、停留所情報等ISを直接、二次元コードにするのではなく、暗号化したものを二次元コードDCにしているため、二次元コードDCが不正に生成されるのを防止可能にしている。 In the encoding process of step S207, the two-dimensional code DC is generated after encrypting the stop information ISa acquired in step S203. In this embodiment, IS such as stop information is not directly converted into a two-dimensional code, but is encrypted and converted into a two-dimensional code DC, making it possible to prevent the two-dimensional code DC from being generated illegally. ing.

本実施形態では、二次元コードDCは、例えばQRコードである。なお、QRコードは登録商標である(以下同じ)。本実施形態では、停留所情報等ISaは、例えば、次に列挙する(1)~(9)の情報であり、このうち(1),(2),(4),(5),(8),(9)はバイナリデータ、(3),(6),(7)はテキストデータでそれぞれ表されており暗号化されていない(平文データ)。なお、これら(1)~(9)をすべてテキストデータで生成してもよい。
(1) 整理券番号
(2) 各整理券番号に対応した運賃データ
(3) 停留所名称
(4) 停留所連番号
(5) 系統番号
(6) 事業者名称
(7) 営業所名称
(8) 車両番号
(9) 表示更新日時
In this embodiment, the two-dimensional code DC is, for example, a QR code. Note that QR code is a registered trademark (the same applies below). In this embodiment, the bus stop information ISa is, for example, the following information (1) to (9), of which (1), (2), (4), (5), (8), and (9) are represented as binary data, and (3), (6), and (7) are represented as text data and are not encrypted (plain data). Note that all of these (1) to (9) may be generated as text data.
(1) Ticket number
(2) Fare data corresponding to each ticket number
(3) Bus stop name
(4) Bus stop serial number
(5) Route number
(6) Name of business operator
(7) Name of business office
(8) Vehicle number
(9) Display update date and time

このため、ステップS207では、このような平文データを所定の暗号鍵で暗号化して暗文データに変換(暗号化)した後、二次元コードDCの画像情報を生成する。本実施形態では、暗号鍵は共通鍵であり、例えば、乗車表示端末20の製造時に制御ユニット21のメモリ(ROMやSRAM)に暗号鍵が書き込まれる。本実施形態では、二次元コードDCは、例えば、サイズが21×21モジュールのタイプ1(型番1)のQRコードであるが、データ容量が不足する場合には、25×25モジュールのタイプ2(型番2)のQRコードやタイプ3(型番3)以上のQRコードを用いてもよい。 Therefore, in step S207, such plaintext data is encrypted with a predetermined encryption key and converted (encrypted) into cryptographic data, and then image information of the two-dimensional code DC is generated. In this embodiment, the encryption key is a common key, and for example, the encryption key is written into the memory (ROM or SRAM) of the control unit 21 when the ride display terminal 20 is manufactured. In this embodiment, the two-dimensional code DC is, for example, a type 1 (model number 1) QR code with a size of 21 x 21 modules, but if the data capacity is insufficient, it may be a type 2 (model number 1) with a size of 25 x 25 modules. A QR code of type 2) or a QR code of type 3 (model number 3) or higher may be used.

続くステップS209では開扉信号取得処理が行われる。本実施形態では、乗車口91の乗車扉を開けるタイミングで、有線通信回線15を介して他の車載機器(不図示)から乗車表示端末20に乗車開扉信号が送られて来る。乗車開扉信号の有無は、例えば、所定の割り込み処理の有無や所定のフラグのオンオフにより得ることができるため、この処理では、乗車開扉信号の情報(開扉情報)を所定の割り込み処理の有無やフラグの状態により取得する。そして、乗車開扉信号を取得していると判定した場合には(S211;Yes)、次のステップS213のコード出力開始処理により二次元コードDCの画像情報を表示ユニット23に出力する。 In the next step S209, a door-opening signal acquisition process is performed. In this embodiment, when the boarding door of the boarding entrance 91 is opened, a boarding door-opening signal is sent from another in-vehicle device (not shown) to the boarding display terminal 20 via the wired communication line 15. The presence or absence of a boarding door-opening signal can be obtained, for example, by the presence or absence of a predetermined interrupt process or the on/off state of a predetermined flag, so in this process, information on the boarding door-opening signal (door-opening information) is obtained by the presence or absence of a predetermined interrupt process or the state of the flag. Then, if it is determined that a boarding door-opening signal has been acquired (S211; Yes), image information of the two-dimensional code DC is output to the display unit 23 by the code output start process in the next step S213.

乗車開扉信号を取得していないと判定した場合には(S211;No)、取得するまでステップS209,S211を繰り返し行う。本実施形態では、ステップS213によるコード出力開始処理は、乗車開扉信号を取得した後(S211;Yes)、乗車開扉信号を取得できなくなってから(S215;No)、予め定められた所定時間(例えば、30秒間または1分間等)が経過するまで継続される(S216;No)。これにより、乗車扉が開いている間と扉が閉じてから所定時間(例えば30秒間)が経過するまでは二次元コードDCが乗車表示端末20や降車表示端末30に表示される。そのため、扉が閉じる直前に乗車した利用者や乗車時に二次元コードDCの取得を忘れてそれに直ぐ気がついた利用者等も二次元コードDCの取得が可能になる。また、バス90の走行中においては、乗車表示端末20や降車表示端末30に二次元コードDCが表示されないため、二次元コードDCの不正取得を防止することが可能になる。 If it is determined that the boarding door opening signal has not been acquired (S211; No), steps S209 and S211 are repeated until the boarding door opening signal is acquired. In this embodiment, the code output start process in step S213 is performed for a predetermined period of time after the boarding door opening signal is acquired (S211; Yes) and after the boarding door opening signal cannot be acquired (S215; No). The process continues until a period of time (for example, 30 seconds or 1 minute, etc.) has elapsed (S216; No). Thereby, the two-dimensional code DC is displayed on the boarding display terminal 20 and the disembarking display terminal 30 while the boarding door is open and until a predetermined time (for example, 30 seconds) has elapsed after the boarding door is closed. Therefore, a user who gets on the train just before the door closes or a user who forgets to get the two-dimensional code DC when getting on the vehicle and immediately realizes it can also get the two-dimensional code DC. Further, while the bus 90 is running, the two-dimensional code DC is not displayed on the boarding display terminal 20 or the alighting display terminal 30, so it is possible to prevent unauthorized acquisition of the two-dimensional code DC.

即ち、開扉期間中に実行される開扉信号取得処理(S214)で乗車扉開信号を取得できなくなったと判定(S215;No)した直後から、カウントを開始するタイマーカウンタの値に基づいて、ステップS216により所定時間が経過した否かを判定する。そして、所定時間が経過したと判定すると(S216;Yes)、続くステップS217のコード出力終了処理により表示ユニット23に対する二次元コードDCの画像情報の出力を終了して、前述の停留所情報等取得処理(S203)に処理を戻す。 That is, based on the value of the timer counter that starts counting immediately after it is determined that the boarding door opening signal cannot be acquired (S215; No) in the door opening signal acquisition process (S214) executed during the door opening period, In step S216, it is determined whether a predetermined time has elapsed. If it is determined that the predetermined time has elapsed (S216; Yes), the output of the image information of the two-dimensional code DC to the display unit 23 is ended by the code output end process in the subsequent step S217, and the above-mentioned stop information etc. acquisition process is performed. The process returns to (S203).

これにより、図11に示すように、例えば、乗車表示端末20では、始発の停留所BSaにおいて乗車扉が開くと(開扉→)、そのタイミングで表示ユニット23に二次元コードDCaの表示を開始し乗車扉が閉じてから(閉扉→)所定時間の経過後に表示を終了する。また、次の停留所BSbにおいても、乗車扉が開くと(開扉→)、乗車表示端末20が二次元コードDCbの表示を開始し乗車扉が閉じてから(閉扉→)所定時間の経過後に表示を終了し、また降車扉が開く(開扉→)と、降車表示端末30が二次元コードDCbの表示を開始し所定時間の経過後に表示を終了する。 As a result, as shown in FIG. 11, for example, when the boarding door opens at the first stop BSa (door opening →), the boarding display terminal 20 starts displaying the two-dimensional code DCa on the display unit 23 at that timing. The display ends after a predetermined period of time has elapsed since the boarding door was closed (closed door→). Also, at the next stop BSb, when the boarding door opens (open door →), the boarding display terminal 20 starts displaying the two-dimensional code DCb, and after the boarding door closes (closed door →), the two-dimensional code DCb is displayed after a predetermined period of time has elapsed. When the exit door is opened (open →), the exit display terminal 30 starts displaying the two-dimensional code DCb and ends the display after a predetermined time has elapsed.

同様に、停留所BSdにおいて、乗車扉が開くと(開扉→)乗車表示端末20が二次元コードDCdの表示を開始し、降車扉が開く(開扉→)と降車表示端末30が二次元コードDCdの表示を開始する。そして、それぞれの扉が閉じてから(閉扉→)、所定時間が経過すると、表示ユニット23,33による二次元コードDCdのそれぞれの表示を終了する。 Similarly, at bus stop BSd, when the boarding door opens (door open →), the boarding display terminal 20 starts displaying the two-dimensional code DCd, and when the alighting door opens (door open →), the alighting display terminal 30 starts displaying the two-dimensional code DCd. Then, after each door closes (door closed →), when a predetermined time has elapsed, the display units 23 and 33 stop displaying the two-dimensional code DCd.

したがって、バス90の走行中には、乗車表示端末20や降車表示端末30に二次元コードDCが表示されないことから、例えば、乗車時に乗車表示端末20に表示された二次元コードDCbをスマートフォン50で取得することなく、乗車後に他の停留所に対応して二次元コードDCbよりも後に表示された二次元コードDCdを事後的に取得するような二次元コードDCの不正取得を防止することが可能になる。 Therefore, while the bus 90 is running, the two-dimensional code DC is not displayed on the boarding display terminal 20 or the alighting display terminal 30. Therefore, for example, when boarding the bus, the two-dimensional code DCb displayed on the boarding display terminal 20 is displayed on the smartphone 50. It is possible to prevent unauthorized acquisition of the two-dimensional code DC, such as acquiring the two-dimensional code DCd displayed after the two-dimensional code DCb in response to another stop after boarding the vehicle without acquiring the two-dimensional code DC. Become.

[運賃精算処理300]
続いてスマートフォン50が実行する運賃精算処理300を説明する。なお、ここでは運賃精算処理300を実行可能な運賃精算アプリがスマートフォン50にインストールされ、かつ、利用者Mの個人情報やクレジットカード等の決済情報が、管理サーバ60や決済サーバ70に登録されていることを前提とする。
[Fare settlement processing 300]
Next, the fare settlement process 300 executed by the smartphone 50 will be explained. Note that here, a fare settlement application that can execute the fare settlement process 300 is installed on the smartphone 50, and user M's personal information and payment information such as credit card are registered in the management server 60 and payment server 70. It is assumed that there is.

図11に示すように、利用者Mは、バス90に乗車する前にスマートフォン50を操作して運賃精算アプリを起動する。これにより、スマートフォン50の制御ユニット51によって図6に示す運賃精算処理300が開始される。 As shown in FIG. 11, before boarding the bus 90, the user M operates the smartphone 50 to start the fare adjustment application. Thereby, the control unit 51 of the smartphone 50 starts the fare settlement process 300 shown in FIG.

図6に示すように、運賃精算処理300では、まずステップS301により所定の初期化処理が行われる。この処理では、例えば、制御ユニット51のメモリ(DRAM)の本処理用のワーク領域やフラグ等がクリアされる。次のステップS303では選択メニュー表示処理が行われる。 As shown in FIG. 6, in the fare settlement process 300, a predetermined initialization process is first performed in step S301. In this process, for example, the work area and flags for this process in the memory (DRAM) of the control unit 51 are cleared. In the next step S303, a selection menu display process is performed.

本実施形態では、例えば、図12(A)に示すような選択メニュー画面がスマートフォン50の表示ユニット53に表示される(S303)。表示ユニット53の画面には、「乗車」、「降車」、「終了」および「ヘルプ」の各ボタンが表示されるため、利用者Mはこれらのボタンに触れることでそれぞれの機能を選択する。 In this embodiment, for example, a selection menu screen as shown in FIG. 12(A) is displayed on the display unit 53 of the smartphone 50 (S303). On the screen of the display unit 53, buttons such as "get on", "get off", "end", and "help" are displayed, and the user M selects each function by touching these buttons.

例えば、「乗車」は、乗車口91の乗車表示端末20に表示される二次元コードDCを取得する機能を選択するボタンであり、利用者Mが「降車」ボタンを選択する前のみ選択可能に構成されている。通常は、利用者Mがバス90の乗車前に選択する。また「降車」は、降車口93の降車表示端末30に表示される二次元コードDCを取得する機能を選択するボタンであり、利用者Mが「乗車」ボタンを選択した後のみに選択可能に構成されている。通常は、バス90に乗車した利用者Mが降車前に選択する。 For example, "Board" is a button that selects a function to obtain the two-dimensional code DC displayed on the boarding display terminal 20 at the boarding entrance 91, and is configured to be selectable only before user M selects the "Disembark" button. Typically, user M selects this before boarding the bus 90. Also, "Disembark" is a button that selects a function to obtain the two-dimensional code DC displayed on the disembarking display terminal 30 at the disembarking entrance 93, and is configured to be selectable only after user M selects the "Board" button. Typically, user M selects this before boarding the bus 90.

「ヘルプ」は、利用者Mがこの運賃精算アプリの使い方を知りたい場合に選択するボタンである。「終了」は、利用者Mがこの運賃精算アプリを終了したい場合に選択するボタンである。「ヘルプ」ボタンと「終了」ボタンは、選択メニュー画面が表示されている状態であれば、いつでも選択できる。図示されていないが、本実施形態では、選択不能のボタンは、ボタン表示の色調を弱く(淡く)して視覚的に選択できないことを表している。 "Help" is a button that user M selects when he/she wishes to know how to use the fare adjustment app. "Exit" is a button that user M selects when he/she wishes to terminate the fare adjustment app. The "Help" button and "Exit" button can be selected at any time as long as the selection menu screen is displayed. Although not shown, in this embodiment, unselectable buttons are displayed in a weak (pale) color to indicate that they cannot be visually selected.

なお、図示されていないが、利用履歴を表示させて確認することができる「利用履歴」ボタンや、フリーパスや定期券等の予め定められた期間だけ利用可能な機能を運賃精算アプリが有する場合には、その有効期限を表示させて確認することができる「有効期限」ボタン等がスマートフォン50の選択メニュー画面に表示される。 Although not shown, if the fare payment app has a "Usage History" button that allows you to display and check your usage history, or a function that can only be used for a predetermined period such as a free pass or commuter pass, etc. On the selection menu screen of the smartphone 50, an "expiration date" button or the like is displayed that allows you to display and check the expiration date.

ステップS305により利用者Mの選択入力の有無を判定して入力があるまで待つ(S305;No)。そして、選択入力があった場合には、その選択が「乗車」であれば(S305;Yes:乗車)、続くステップS307に処理を移行し、「終了」であれば(S305;Yes:終了)、本運賃精算処理300を終えて運賃精算アプリを終了する。 In step S305, it is determined whether or not there is a selection input by user M, and the process waits until there is an input (S305; No). When there is a selection input, if the selection is "Ride" (S305; Yes: Ride), the process moves to the following step S307, and if it is "End" (S305; Yes: End). , completes the fare adjustment process 300 and exits the fare adjustment application.

なお、利用者Mは、運賃精算アプリにおいて「乗車」ボタンを選択する前は「降車」ボタンを選択することができないため、このステップS305では「降車」ボタンの入力判定は行われない。また、「ヘルプ」ボタンが選択入力された場合は、図略の別のタスク(スレッド、プログラム)においてヘルプ画面等が表示される。 Note that since user M cannot select the "get off" button before selecting the "get on" button in the fare adjustment application, the input determination of the "get off" button is not performed in step S305. Furthermore, when the "Help" button is selected and input, a help screen or the like is displayed in another task (thread, program), not shown.

利用者Mの選択入力が「乗車」であった場合には、続くステップS307によりコード取得処理が行われる。この処理は、サブルーチンとして図7にその流れが図示されているため、ここからは図7も参照しながら説明する。 If the selection input by user M is "ride", code acquisition processing is performed in the subsequent step S307. The flow of this process is shown in FIG. 7 as a subroutine, so the description will be made with reference to FIG. 7 from here on.

[コード取得処理400]
図7に示すように、コード取得処理400では、ステップS401の所定の初期化処理により、デコードに使用するワーク領域やフラグ等をクリアした後、ステップS403のコード情報取得処理によって二次元コードDCを取得する。本実施形態では、二次元コードDCの取得は、カメラ55で二次元コードDCの画像を撮影することにより行う。
[Code Acquisition Process 400]
7, in the code acquisition process 400, a predetermined initialization process is performed in step S401 to clear a work area and flags used for decoding, and then a two-dimensional code DC is acquired in a code information acquisition process in step S403. In this embodiment, the two-dimensional code DC is acquired by taking an image of the two-dimensional code DC with the camera 55.

この処理では、例えば、図12(B)に示すように、四隅を「」で囲んだガイド枠によって被写体の位置および範囲を明示することによって、このガイド枠内に二次元コードDCが収まるように利用者Mによるスマートフォン50の操作を案内する。スマートフォン50のカメラ55は、焦点距離、露出、シャッタスピードおよびシャッタタイミングを適切に設定する自動調整機能を有する。そのため、二次元コードDCの全体がガイド枠内に入ると、カメラ55が自動で撮影する。 In this process, for example, as shown in FIG. 12(B), by clearly indicating the position and range of the subject using a guide frame whose four corners are surrounded by "", the two-dimensional code DC is placed within this guide frame. The operation of the smartphone 50 by the user M is guided. The camera 55 of the smartphone 50 has an automatic adjustment function that appropriately sets focal length, exposure, shutter speed, and shutter timing. Therefore, when the entire two-dimensional code DC falls within the guide frame, the camera 55 automatically takes a picture.

前述したように、バス90の乗車扉が開いた後から乗車扉が閉じても所定期間中(例えば30秒間)、乗車口91の乗車表示端末20に二次元コードDCaが表示され続ける。そのため、利用者Mは、乗車口91から乗車する際にスマートフォン50のカメラ55で二次元コードDCaを撮影する。乗車する際(乗車時)に撮影された二次元コードDCaは、乗車停留所情報として、制御ユニット51のメモリのワーク領域に格納される(図11参照)。 As described above, the two-dimensional code DCa continues to be displayed on the boarding display terminal 20 at the boarding entrance 91 for a predetermined period (for example, 30 seconds) even after the boarding door of the bus 90 is opened and closed. Therefore, the user M photographs the two-dimensional code DCa with the camera 55 of the smartphone 50 when boarding the vehicle from the boarding gate 91. The two-dimensional code DCa photographed when boarding the vehicle (at the time of boarding) is stored in the work area of the memory of the control unit 51 as boarding stop information (see FIG. 11).

二次元コードDCが撮影できた場合には、ステップS405の判定処理により取得したと判定して(S405;Yes)、次のステップS407のデコード処理を行う。二次元コードDCが撮影できない場合には(S405;No)、撮影できるまでコード情報取得処理(S403)を行う。なお、所定時間経過しても、二次元コードDCが撮影できない場合には、本コード取得処理400を強制的に終了して、選択メニュー表示処理(S303)に戻るように処理の流れを構成してもよい。 If the two-dimensional code DC has been photographed, it is determined that the two-dimensional code DC has been acquired through the determination process in step S405 (S405; Yes), and the decoding process in the next step S407 is performed. If the two-dimensional code DC cannot be photographed (S405; No), the code information acquisition process (S403) is performed until the two-dimensional code DC can be photographed. Note that, if the two-dimensional code DC cannot be photographed even after a predetermined period of time has elapsed, the process flow is configured such that the main code acquisition process 400 is forcibly terminated and the process returns to the selection menu display process (S303). It's okay.

ステップS407では取得した二次元コードDCのデコード処理が行われる。本実施形態では、二次元コードDCはQRコードであるため、所定のアルゴリズムに従って解析した後、得られた暗文データを所定の暗号鍵で復号して平文データに戻す。この暗号鍵は、共通鍵であり、ウェブサイトから運賃精算アプリをダウンロードしてインストールする際にスマートフォン50が取得している。平文データには、停留所情報等ISとして、前述した(1)~(9)の各情報が含まれている。つまり、二次元コードDCから停留所情報等ISが取り出される。なお、暗号鍵は、セキュリティの強度を高めるため、初回のインストール時のみならず、定期的に更新(ダウンロード)されるのが望ましい。 In step S407, the acquired two-dimensional code DC is decoded. In this embodiment, since the two-dimensional code DC is a QR code, it is analyzed according to a predetermined algorithm, and the acquired encrypted data is decrypted with a predetermined encryption key to return it to plain text data. This encryption key is a common key, and is acquired by the smartphone 50 when the fare adjustment app is downloaded from the website and installed. The plain text data includes the above-mentioned information (1) to (9) as the bus stop information, etc. IS. In other words, the bus stop information, etc. IS is extracted from the two-dimensional code DC. Note that in order to increase security, it is desirable to update (download) the encryption key not only during the initial installation, but also periodically.

次のステップS409では停留所情報等記憶処理が行われる。この処理では、デコードして取り出した停留所情報等IS(乗車停留所情報)を制御ユニット51のメモリのワーク領域に記憶する。続くステップS411ではモード情報取得処理が行われる。この処理では、スマートフォン50の無線ユニット52の動作モード情報を取得し、取得した動作モード情報に基づいて、利用可能ではない機内モードに設定されているか否かをステップS413により判定する。 In the next step S409, processing for storing stop information, etc. is performed. In this process, IS (boarding stop information) such as decoded and extracted stop information is stored in the work area of the memory of the control unit 51. In the following step S411, mode information acquisition processing is performed. In this process, operation mode information of the wireless unit 52 of the smartphone 50 is acquired, and based on the acquired operation mode information, it is determined in step S413 whether or not the in-flight mode, which is not available, is set.

そして、無線ユニット52を利用不能な機内モード、つまり無線通信回線を介した情報通信を行わないようにスマートフォン50が設定されている場合には(S413;Yes)、停留所情報等ISを管理サーバ60に送信することができないことから、ステップS415により機内モード表示処理が行われる。この処理では、例えば、図13(A)に示すような機内モードの解除を促すメッセージ「機内モードを解除してくださ」がスマートフォン50の表示ユニット53の画面に表示される。このメッセージの背景色は、例えば、赤色に設定され、文字色は白色または黄色に設定される。これにより、利用者Mに対して色彩的にインパクトを与え得るメッセージの表示が可能になる。 If the smartphone 50 is set to the airplane mode in which the wireless unit 52 cannot be used, that is, not to communicate information via the wireless communication line (S413; Yes), the IS such as the stop information is transferred to the management server 60. Since it is not possible to send the message to the destination, an airplane mode display process is performed in step S415. In this process, for example, a message "Please cancel airplane mode" as shown in FIG. The background color of this message is set to red, and the text color is set to white or yellow, for example. This makes it possible to display a message that can have a color impact on the user M.

この図13(A)に示す画面の例では、乗車した停留所名称として「ABC駅」が表示され、また整理券番号として「4」も表示されている。これは、ステップS407でデコードした停留所情報等ISaから得た情報のうち、(1)の整理券番号および(3)の停留所名称の各情報である。このほか(2)の運賃データとして「整理券番号4に対応した200円」、(4)の停留所連番号として「0」、(5)の系統番号として「01」、(6)の事業者名称として「XYZ交通」、(7)の営業所名称として「○×△営業所」、(8)の車両番号として「123」、(9)の表示更新日時として「2019年9月25日17時46分」が得られている。 In the example of the screen shown in FIG. 13(A), "ABC Station" is displayed as the name of the stop at which the train boarded, and "4" is also displayed as the ticket number. This is information such as (1) the numbered ticket number and (3) the stop name among the information obtained from ISa such as the stop information decoded in step S407. In addition, the fare data for (2) is "200 yen corresponding to numbered ticket number 4", the stop serial number for (4) is "0", the system number for (5) is "01", and the operator for (6) The name is "XYZ Transportation", the office name for (7) is "○×△ office", the vehicle number for (8) is "123", and the display update date and time for (9) is "September 25, 2019 17 46 minutes" is obtained.

ステップS415によるこのようなメッセージの表示は、機内モードが解除されるまで継続される(S413;Yes→S411)。もとからスマートフォン50が機内モードに設定されていない場合や機内モードが解除された場合には(S413;No)、ステップS417により無線送信処理が行われる。この無線送信処理は、管理サーバ60に対する送信処理であり、サブルーチンとして図8にその流れが図示されているため、ここからはさらに図8も参照しながら説明する。 The display of such a message in step S415 continues until the airplane mode is canceled (S413; Yes→S411). If the smartphone 50 is not originally set to airplane mode or if airplane mode is canceled (S413; No), wireless transmission processing is performed in step S417. This wireless transmission process is a transmission process to the management server 60, and the flow thereof is illustrated as a subroutine in FIG. 8, so the description will be made with reference to FIG. 8 from here on.

[無線送信処理500]
図8に示すように、無線送信処理500では、ステップS501の所定の初期化処理により、送信バッファに使用するワーク領域、リトライカウンタやフラグ等をクリアした後、ステップS503の送信バッファセット処理が行われる。送信バッファは、無線ユニット52が無線送信するデータフォーマット(送信フォーマット)を所定の通信プロトコルに準拠させるために設けられている。そのため、この処理では、宛先情報として管理サーバ60のIPアドレス情報、送信元情報としてスマートフォン50のIPアドレス情報や停留所情報等ISaを送信バッファにセットする。
[Wireless transmission processing 500]
As shown in FIG. 8, in the wireless transmission processing 500, the work area used for the transmission buffer, retry counter, flag, etc. are cleared by a predetermined initialization processing in step S501, and then the transmission buffer set processing in step S503 is performed. be exposed. The transmission buffer is provided to make the data format (transmission format) wirelessly transmitted by the wireless unit 52 conform to a predetermined communication protocol. Therefore, in this process, IP address information of the management server 60 is set as destination information, and ISa such as IP address information and stop information of the smartphone 50 is set as source information in the transmission buffer.

続くステップS505では送信処理が行われる。これにより、送信バッファにセットされた停留所情報等ISa(乗車停留所情報)は、無線ユニット52が送信する送信データTXaとして、例えば、最寄りの基地局80に向けて送信される(図11参照)。送信データTXaは、複数のパケットデータに分割されて基地局80に送信される場合もある。基地局80では、このような送信データTXaを受信すると、所定のデータフォーマットに変換した後、インターネットNに接続された管理サーバ60に向けて送信する。 In the next step S505, a transmission process is performed. As a result, the bus stop information ISa (boarding stop information) set in the transmission buffer is transmitted as transmission data TXa transmitted by the wireless unit 52, for example, to the nearest base station 80 (see FIG. 11). The transmission data TXa may be divided into multiple packet data and transmitted to the base station 80. When the base station 80 receives such transmission data TXa, it converts it into a specified data format and then transmits it to the management server 60 connected to the Internet N.

管理サーバ60では、後述するように停留所情報等ISa(乗車停留所情報)等を受信すると、スマートフォン50に向けて受信結果情報を折り返して送信する。そのため、スマートフォン50の無線ユニット52では、ステップS505により停留所情報等ISaを送信した後、管理サーバ60から送信されて来る受信結果情報RXaを受信する。そのため、続くステップS507では、この受信結果情報RXaに基づいて送信完了の可否を判定する。 When the management server 60 receives the bus stop information ISa (boarding stop information) etc. as described below, it sends the reception result information back to the smartphone 50. Therefore, after the wireless unit 52 of the smartphone 50 sends the bus stop information ISa in step S505, it receives the reception result information RXa sent from the management server 60. Therefore, in the following step S507, it is determined whether the transmission is complete based on this reception result information RXa.

送信が完了した場合には(S507;Yes)、ステップS508により送信結果フラグに送信完了情報をセットして本無線送信処理500を終了し、図7のコード取得処理400に処理を戻す。これに対して、送信が完了しない場合や受信結果情報RXaを受信できない場合には(S507;No)、ステップS509によりリトライカウンタをインクリメント(加算)した後、カウンタ値、つまりリトライ回数が所定回数(例えば3回)を超えているか否かをステップS511により判定する。 If the transmission is completed (S507; Yes), transmission completion information is set in the transmission result flag in step S508, the wireless transmission process 500 is ended, and the process returns to the code acquisition process 400 in FIG. On the other hand, if the transmission is not completed or the reception result information RXa cannot be received (S507; No), the retry counter is incremented (added) in step S509, and then the counter value, that is, the number of retries is set to the predetermined number of times ( For example, it is determined in step S511 whether or not the number of times exceeds three times.

リトライ回数が所定回数を超えていない場合には(S511;No)、リトライ回数が所定回数を超えるか(S511;Yes)、または送信完了するまで(S507;Yes)、ステップS505による送信処理を繰り返す。また、リトライ回数が所定回数を超えている場合には(S511;Yes)、ステップS513により送信結果フラグに送信未了情報をセットして本無線送信処理500を終了し、図7のコード取得処理400に処理を戻す。 If the number of retries does not exceed the predetermined number (S511; No), the transmission process in step S505 is repeated until the number of retries exceeds the predetermined number (S511; Yes) or the transmission is completed (S507; Yes). . If the number of retries exceeds the predetermined number (S511; Yes), the wireless transmission process 500 is terminated by setting transmission incomplete information in the transmission result flag in step S513, and the code acquisition process of FIG. The process returns to 400.

図7のコード取得処理400のステップS417に戻ると、コード取得処理400を終了して図6の運賃精算処理300のステップS309に戻る。本実施形態では、送信結果フラグに送信未了情報がセットされている場合、つまり停留所情報等ISa(乗車停留所情報)が管理サーバ60に対して送信できていない場合においても、利用者Mの乗車を拒否することなく許容する。これにより、例えば、利用者Mがスマートフォン50を使用している周囲の電波状態が良好でなく無線通信回線85に通信障害が生じている場合等においても、滞りなく利用者Mの乗車を可能にすることができる。 When the process returns to step S417 of the code acquisition process 400 in FIG. 7, the code acquisition process 400 is ended and the process returns to step S309 of the fare adjustment process 300 in FIG. In this embodiment, even if the transmission incomplete information is set in the transmission result flag, that is, even if ISa (boarding stop information) such as stop information cannot be transmitted to the management server 60, the Tolerate without rejecting. As a result, even if, for example, the radio wave conditions around the user M are using the smartphone 50 are not good and there is a communication failure in the wireless communication line 85, the user M can board the vehicle without any problems. can do.

なお、図6には図示されていないが、送信結果フラグに送信未了情報がセットされている場合には、例えば、図略の別のタスク(スレッド、プログラム)において、管理サーバ60に対する停留所情報等ISa(乗車停留所情報)の再送信を複数回実行する処理(再送処理)を行うように処理の流れを構成してもよい。これにより、利用者Mが乗車した後、または降車した後に事後的に停留所情報等ISaを管理サーバ60に送信することが可能になるため、利用者Mがどこからどこまでバス90(乗合車両)を利用したかの情報(いわゆるODデータ(Orgin;出発地、Destination;目的地))の収集率を高めることができる。また意図的に通信障害を発生させて無賃乗車を謀ることを防止したりそのような企てを抑制したりすることもできる。 Although not shown in FIG. 6, if the transmission incomplete information is set in the transmission result flag, for example, another task (thread, program), not shown, may send stop information to the management server 60. The process flow may be configured to perform a process (retransmission process) of retransmitting ISa (boarding stop information) multiple times. This makes it possible to send ISa such as stop information to the management server 60 after the user M gets on or off the bus, so that the user M can use the bus 90 (common vehicle) from where to where. It is possible to increase the rate of collection of information on the number of passengers (so-called OD data (Origin: origin, destination)) . It is also possible to prevent or suppress attempts to intentionally cause communication failures to ride for free.

[運賃精算処理300の続き]
図6に示すように、ステップS307によるコード取得処理が終わると、次にステップS309により選択メニュー表示処理が行われる。コード取得処理(S307)は、利用者Mがバス90に乗車する際に乗車口91で乗車表示端末20に表示される二次元コードDCをスマートフォン50で取得するときに実行されることから、コード取得処理(S307)が終了したタイミングでは、利用者Mはバス90に乗車している蓋然性が高い。
[Continuation of Fare Settlement Processing 300]
6, after the code acquisition process in step S307 is completed, a selection menu display process is performed in step S309. The code acquisition process (S307) is executed when the user M acquires, with the smartphone 50, the two-dimensional code DC displayed on the boarding display terminal 20 at the boarding gate 91 when the user M boards the bus 90. Therefore, it is highly likely that the user M is on the bus 90 at the time when the code acquisition process (S307) is completed.

このため、ステップS309では選択メニュー表示処理を実行することにより、利用者Mに対して、降車時においてもスマートフォン50により二次元コードDCを取得する必要があることを明示する。例えば、図12(A)に示すような選択メニュー画面がスマートフォン50の表示ユニット53に表示される。 For this reason, in step S309, a selection menu display process is executed to clearly indicate to the user M that the two-dimensional code DC must be obtained using the smartphone 50 even when getting off the vehicle. For example, a selection menu screen such as that shown in FIG. 12(A) is displayed on the display unit 53 of the smartphone 50.

ここでの利用者Mは、既にバス90の乗車時において乗車表示端末20の二次元コードDCを取得しているため、「乗車」ボタンを選択することも「終了」ボタンを選択することもできない。したがって、利用者Mは、「降車」ボタンと「ヘルプ」ボタンの択一的な選択だけが許容される。なお、「ヘルプ」ボタンが選択入力された場合は、図略の別のタスク(スレッド、プログラム)においてヘルプ画面等が表示される。なお、このような画面に代えて、例えば、「乗車日時」、「乗車停留所名称」、「路線名称」等をスマートフォン50の表示ユニット53に表示させるように構成してもよい。これにより、乗車済みであることを一目瞭然に把握することができる。 Here, user M has already acquired the two-dimensional code DC of the boarding display terminal 20 when boarding the bus 90, and therefore cannot select either the "Board" button or the "Exit" button. Therefore, user M is only allowed to select either the "Disembark" button or the "Help" button. If the "Help" button is selected and input, a help screen or the like is displayed in another task (thread, program) not shown. Note that instead of such a screen, for example, the "boarding date and time," "boarding stop name," "route name," etc. may be displayed on the display unit 53 of the smartphone 50. This makes it clear at a glance that the user has already boarded the bus.

ステップS311の判定処理により利用者Mの選択入力が「降車」であったと判定した場合には(S311;Yes:降車)、続くステップS313によりコード取得処理が行われる。この処理については、既に図7を参照して説明しているので、ここではコード取得処理(S313)の説明は省略して図11を参照しながら処理概要を説明する。 If it is determined in the determination process of step S311 that the selection input by the user M is "getting off" (S311; Yes: getting off the vehicle), a code acquisition process is performed in the subsequent step S313. Since this process has already been explained with reference to FIG. 7, the explanation of the code acquisition process (S313) will be omitted here, and an outline of the process will be explained with reference to FIG.

例えば、利用者Mが、停留所BSdで降車する場面には、バス90の降車扉が開いた後から降車扉が閉じても所定期間中(例えば30秒間)、降車口93の降車表示端末30に二次元コードDCdが表示され続ける。そのため、利用者Mは、降車口93から降車する前(または降車する際)にスマートフォン50のカメラ55で二次元コードDCdを撮影する(S403)。撮影された二次元コードDCdは、降車停留所情報として、制御ユニット51のメモリのワーク領域に格納された後、デコードされて停留所情報等ISd(降車停留所情報)が取り出される(S407)。 For example, when the user M gets off at bus stop BSd, after the exit door of the bus 90 is opened and even after the exit door is closed, the exit display terminal 30 at the exit 93 is displayed for a predetermined period (for example, 30 seconds). The two-dimensional code DCd continues to be displayed. Therefore, the user M photographs the two-dimensional code DCd with the camera 55 of the smartphone 50 before getting off the vehicle from the exit 93 (or when getting off the vehicle) (S403). The photographed two-dimensional code DCd is stored as alighting stop information in the work area of the memory of the control unit 51, and then decoded to extract ISd (alighting stop information) such as stop information (S407).

停留所情報等ISdは、停留所BSdに対応するものである。即ち、例えば、(1)の整理券番号として「2」、(2)の運賃データとして「整理券番号2に対応した200円、整理券番号3に対応した220円および整理券番号4に対応した220円」、(3)の停留所名称として「○○公園北」、(4)の停留所連番号として「4」、(5)の系統番号として「01」、(6)の事業者名称として「XYZ交通」、(7)の営業所名称として「○×△営業所」、(8)の車両番号として「123」、(9)の表示更新日時として「2019年9月25日18時03分」が得られる(図3参照)。 The bus stop information ISd corresponds to the bus stop BSd. That is, for example, the following can be obtained: (1) the numbered ticket number is "2", (2) the fare data is "200 yen corresponding to numbered ticket number 2, 220 yen corresponding to numbered ticket number 3, and 220 yen corresponding to numbered ticket number 4", (3) the bus stop name is "XX Park North", (4) the bus stop serial number is "4", (5) the route number is "01", (6) the business operator name is "XYZ Transportation", (7) the business office name is "XX△ Business Office", (8) the vehicle number is "123", and (9) the display update date and time is "September 25, 2019, 18:03" (see FIG. 3).

そして、スマートフォン50が機内モードである場合には(S413;Yes)、図13(B)に示すようにスマートフォン50の表示ユニット53の画面に、利用者Mにインパクトを与え得る色彩で機内モードの解除を促すメッセージ「機内モードを解除してくださ」が表示される。図13(B)に示す画面の例では、乗車した停留所名称「ABC駅」に加えて降車する停留所名称として上記(3)の「○○公園北」が表示されている。 If the smartphone 50 is in the airplane mode (S413; Yes), the airplane mode is displayed in a color that can give an impact to the user M on the screen of the display unit 53 of the smartphone 50, as shown in FIG. 13(B). A message asking you to cancel airplane mode will be displayed: ``Please cancel airplane mode.'' In the example of the screen shown in FIG. 13(B), in addition to the name of the stop "ABC Station" where the user boarded the vehicle, "○○ Koen Kita" in (3) above is displayed as the name of the stop where the user alights.

二次元コードDCdから取り出された停留所情報等ISd(降車停留所情報)は、スマートフォン50の無線ユニット52が送信する送信データTXbとして、最寄りの基地局80に向けて送信されて、基地局80およびインターネットNを経由して管理サーバ60に到達する。管理サーバ60では、停留所情報等ISd(降車停留所情報)を受信すると、スマートフォン50に向けて受信結果情報を折り返して送信する。スマートフォン50の無線ユニット52では、停留所情報等ISdの送信後に管理サーバ60から送信されて来る受信結果情報RXbを受信する。 ISd (get-off stop information) such as stop information extracted from the two-dimensional code DCd is transmitted as transmission data TXb transmitted by the wireless unit 52 of the smartphone 50 to the nearest base station 80, and transmitted to the base station 80 and the Internet. It reaches the management server 60 via N. When the management server 60 receives ISd (get-off stop information) such as stop information, it sends the reception result information back to the smartphone 50. The wireless unit 52 of the smartphone 50 receives the reception result information RXb transmitted from the management server 60 after transmitting the ISd such as the stop information.

本実施形態では、停留所情報等ISd(降車停留所情報)が管理サーバ60に対して送信できていない場合においても、利用者Mが降車に際して行う予定の決済処理を拒否することなく許容する。これにより、例えば、利用者Mがスマートフォン50を使用している周囲の電波状態が良好でなく無線通信回線85に通信障害が生じている場合等においても、滞りなく利用者Mの決済処理を可能にすることができる。 In this embodiment, even if ISd (alighting stop information) such as stop information cannot be transmitted to the management server 60, the payment processing that the user M plans to perform when getting off the train is not rejected but is allowed. As a result, even if, for example, the radio wave conditions around the user M using the smartphone 50 are not good and there is a communication failure in the wireless communication line 85, it is possible to process the payment for the user M without any delay. It can be done.

図6には図示されていないが、このような場合には、例えば、図略の別のタスク(スレッド、プログラム)において、管理サーバ60に対する停留所情報等ISd(降車停留所情報)の再送信を複数回実行する処理(再送処理)を行うように処理の流れを構成してもよい。これにより、利用者Mが降車した後に事後的に停留所情報等ISdを管理サーバ60に送信することが可能になるため、ODデータの収集率を高めることができる。また、意図的に通信障害を発生させて無賃乗車を謀ることを防止したりそのような企てを抑制したりすることもできる。 Although not shown in FIG. 6, in such a case, for example, the process flow may be configured so that in another task (thread, program) not shown in the figure, a process (resend process) is performed to resend bus stop information, etc. ISd (alight stop information) to the management server 60 multiple times. This makes it possible to transmit bus stop information, etc. ISd to the management server 60 after the user M has alighted, thereby increasing the OD data collection rate. It is also possible to intentionally cause communication failures to prevent or suppress attempts to ride without paying.

ステップS313によるコード取得処理が終わると、利用者Mのスマートフォン50には、乗車した停留所BSaの停留所情報等ISa(乗車停留所情報)と、降車する停留所BSdの停留所情報等ISd(降車停留所情報)とが保持(記憶)されている。そのため、次のステップS315により利用運賃取得処理が行われる。本実施形態では、利用運賃は、例えば、乗車した停留所BSの停留所情報等ISに含まれる(1)整理券番号と、降車する停留所BSの停留所情報等ISに含まれる(2)運賃データと、により求める。 When the code acquisition process in step S313 is completed, the smartphone 50 of the user M stores ISa (boarding stop information) such as the stop information of the stop BSa where the user got on the train, and ISd (alighting stop information) such as the stop information of the stop BSd where the user gets off the train. is retained (memorized). Therefore, the usage fare acquisition process is performed in the next step S315. In this embodiment, the fare used includes, for example, (1) the ticket number included in the IS, such as the stop information of the stop BS where you got on the train, and (2) fare data included in the IS, such as the stop information of the stop BS where you got off. Find it by

図11に示す例では、スマートフォン50は、停留所情報等ISa(乗車停留所情報)として(1)の整理券番号「4」と、停留所情報等ISd(降車停留所情報)として(2)の運賃データ「整理券番号2に対応した200円、整理券番号3に対応した220円および整理券番号4に対応した220円」と、得ている。そのため、停留所情報等ISd(降車停留所情報)に含まれる(2)の運賃データ「整理券番号2に対応した200円、整理券番号3に対応した220円および整理券番号4に対応した220円」の中から、停留所情報等ISa(乗車停留所情報)の(1)の整理券番号「4」に対応した「220円」を選択することで、利用運賃「220円」(利用運賃情報)が求められる(図14参照)。 In the example shown in FIG. 11, the smartphone 50 stores the numbered ticket number "4" in (1) as the stop information ISa (boarding stop information), and the fare data "4" in (2) as the stop information ISd (disembarking stop information). 200 yen corresponding to numbered ticket number 2, 220 yen corresponding to numbered ticket number 3, and 220 yen corresponding to numbered ticket number 4". Therefore, the fare data in (2) included in ISd (disembarking stop information) such as stop information is ``200 yen corresponding to numbered ticket number 2, 220 yen corresponding to numbered ticket number 3, and 220 yen corresponding to numbered ticket number 4. By selecting "220 yen" corresponding to numbered ticket number "4" in (1) of ISa (boarding stop information) such as stop information, the usage fare "220 yen" (usage fare information) will be (see Figure 14).

利用者Mの利用運賃情報がステップS315により得られると、決済サーバ70において電子決済に関する情報処理を行うため、利用運賃情報と決済情報を決済サーバ70に送信する必要がある。そこで、次のステップS317では、今回の運賃情報(利用運賃情報)と利用者Mの決済情報を無線送信処理により決済サーバ70に送信する。なお、無線送信処理についても、既に図8を参照して説明しているので、ここでは無線送信処理(S317)の説明は省略して、図11を参照しながら処理概要を説明する。 When user M's usage fare information is obtained in step S315, it is necessary to transmit the usage fare information and payment information to the payment server 70 in order to perform information processing regarding electronic payment in the payment server 70. Therefore, in the next step S317, the current fare information (usage fare information) and the payment information of user M are transmitted to the payment server 70 by wireless transmission processing. Note that the wireless transmission process has already been described with reference to FIG. 8, so the description of the wireless transmission process (S317) will be omitted here, and the outline of the process will be described with reference to FIG. 11.

利用者Mの決済情報(クレジットカードの情報(氏名、カード番号、有効期限、セキュリティコード等))は、運賃精算アプリの初期設定時にスマートフォン50に登録されている(セキュアな情報管理を行う場合、決済情報は管理サーバ60に登録されている)。そのため、無線送信処理500では、このような決済情報と利用運賃情報(先の例では220円)に加えて、宛先情報として決済サーバ70のIPアドレス情報や、送信元情報としてスマートフォン50のIPアドレス情報を送信バッファにセットした後(S503)、送信データTXcとして、例えば、最寄りの基地局80に向けて送信する(決済情報が管理サーバ60にのみ登録されている場合には、スマートフォン50からは決済情報が送られて来ないため、決済サーバ70は決済情報を管理サーバ60から取得する)。 User M's payment information (credit card information (name, card number, expiration date, security code, etc.)) is registered in the smartphone 50 when the fare adjustment app is initially set up (when secure information management is performed, the payment information is registered in the management server 60). Therefore, in the wireless transmission process 500, in addition to this payment information and fare information (220 yen in the previous example), the IP address information of the payment server 70 is set as destination information and the IP address information of the smartphone 50 as source information in the transmission buffer (S503), and then the data is transmitted as transmission data TXc to, for example, the nearest base station 80 (if the payment information is registered only in the management server 60, the smartphone 50 does not send the payment information, so the payment server 70 obtains the payment information from the management server 60).

決済サーバ70では、後述するように利用運賃情報等を受信すると、スマートフォン50に向けて受信結果情報を折り返して送信する。本実施形態では、利用運賃情報等が決済サーバ70に対して送信できていない場合には、決済サーバ70のよる決済処理が未了の場合、即ち決済結果フラグが決済未了にセットされている場合と同様の処理をステップS323による処理結果告知処理において行う。 When the payment server 70 receives usage fare information and the like as described later, it sends the reception result information back to the smartphone 50. In this embodiment, if the usage fare information etc. cannot be sent to the payment server 70, the payment processing by the payment server 70 is not completed, that is, the payment result flag is set to "payment not completed". The same process as in the case is performed in the process result notification process in step S323.

また、決済サーバ70では、決済処理を行いその決済処理の結果をスマートフォン50に向けて送信する。そのため、図6に示すように、スマートフォン50による運賃精算処理300では、決済サーバ70から送信されて来る決済結果情報RXcをステップS319の決済結果受信処理により受信する。そして、受信した決済結果情報RXcをステップS321により制御ユニット51のメモリ(DRAM)に保存した後、ステップS323によりその決済結果情報RXcに基づいて処理結果告知処理を行う。 Further, the payment server 70 performs payment processing and transmits the result of the payment processing to the smartphone 50. Therefore, as shown in FIG. 6, in the fare adjustment process 300 using the smartphone 50, the payment result information RXc transmitted from the payment server 70 is received by the payment result receiving process in step S319. Then, after storing the received payment result information RXc in the memory (DRAM) of the control unit 51 in step S321, processing result notification processing is performed based on the payment result information RXc in step S323.

即ち、決済サーバ70による運賃決済処理700により、決済処理が完了している場合には、決済完了にセットされた決済結果フラグが決済結果情報RXcに含まれており、決済処理が完了していない場合には、決済未了にセットされた決済結果フラグが決済結果情報RXcに含まれている。 That is, if the payment process is completed by the fare payment process 700 by the payment server 70, the payment result flag set to payment complete is included in the payment result information RXc, indicating that the payment process is not completed. In this case, the payment result information RXc includes a payment result flag that is set to indicate that the payment has not been completed.

このため、ステップS323の処理結果告知処理では、決済結果フラグの情報に基づいて決済完了の場合には、図15(A)に示すように、大きく目立つ青色の「○」印や、乗車停留所名称、降車停留所名称、整理券番号および利用運賃が表示ユニット53の画面に表示される。背景色は、例えば、水色に設定される。この例では、乗車停留所名称として[乗]ABC駅、降車停留所名称として[降]○○公園北、整理券番号として「4」、利用運賃として運賃:220円と、感謝を伝える「ありがとうございました」のメッセージが表示ユニット53の画面に表示される。 For this reason, in the processing result notification process of step S323, if the payment is completed based on the information of the payment result flag, a large and eye-catching blue "○" mark, the boarding stop name, the disembarking stop name, the numbered ticket number, and the fare are displayed on the screen of display unit 53 as shown in FIG. 15(A). The background color is set to light blue, for example. In this example, the boarding stop name [BOARD] ABC Station, the disembarking stop name [DISPLIT] XX Koen Kita, the numbered ticket number "4", the fare: 220 yen, and the message "Thank you" to convey gratitude are displayed on the screen of display unit 53.

また、決済完了の場合には、このような表示ユニット53による画面表示に加えて、スマートフォン50のスピーカから、「ピンポーン」や「ご利用ありがとうございました」という内容で発声する合成音声によるメッセージを音響出力可能にステップS323の処理結果告知処理を構成してもよい。なお、音響出力が制限されるマナーモードやサイレントモードにスマートフォン50が設定されている場合においても、乗務員(運転士)や当該利用者Mに対して聴覚を介した告知を可能にするため、このようなスマートフォン50の設定に関係なく、強制的に合成音声によるメッセージ等を音響出力するようにステップS323の処理結果告知処理を構成してもよい。 In addition, when the payment is completed, in addition to the screen display by the display unit 53, a synthesized voice message such as "ping-dong" or "thank you for using the service" is uttered from the speaker of the smartphone 50. The processing result notification processing in step S323 may be configured to be outputtable. Note that even if the smartphone 50 is set to a manner mode or a silent mode in which the sound output is limited, this function is used to enable auditory notifications to the crew (driver) and the user M. Regardless of the settings of the smartphone 50, the processing result notification process in step S323 may be configured to forcibly output a message or the like using a synthesized voice.

これに対して、決済結果フラグの情報に基づいて決済未了の場合や、利用運賃情報等が決済サーバ70に対して送信できていない場合には、決済完了の場合と同様に、図15(A)に示すように、大きく目立つ青色の「○」印や、乗車停留所名称、降車停留所名称、整理券番号および利用運賃が表示ユニット53の画面に表示されるものの、背景色が例えば黄色に設定されるとともに、「ありがとうございました」のメッセージに代えて「決済処理ができませんでした」の警告メッセージが表示ユニット53の画面に表示される。また、スマートフォン50のスピーカから、「決済処理ができませんでした」という内容で発声する合成音声によるメッセージを音響出力可能にステップS323の処理結果告知処理を構成してもよい。これにより、事後的に決済処理が行われる旨を利用者Mや乗務員(運転士)に伝えることが可能になる。この場合においても、強制的に合成音声によるメッセージ等の出力を可能にステップS323の処理結果告知処理を構成してもよい。 On the other hand, if the payment is not completed based on the information of the payment result flag or if the usage fare information etc. cannot be sent to the payment server 70, the process shown in FIG. 15 ( As shown in A), although a large and conspicuous blue "○" mark, boarding stop name, alighting stop name, numbered ticket number, and usage fare are displayed on the screen of the display unit 53, the background color is set to, for example, yellow. At the same time, a warning message "Payment processing could not be completed" is displayed on the screen of the display unit 53 instead of the "Thank you" message. Further, the process result notification process in step S323 may be configured to allow audible output of a synthesized voice message saying "Payment processing failed" from the speaker of the smartphone 50. This makes it possible to notify the user M and the crew member (driver) that payment processing will be performed after the fact. Even in this case, the processing result notification process in step S323 may be configured to forcibly output a message or the like using synthesized voice.

なお、図15(B)に示す表示ユニット53の画面表示は、例えば、不正使用の蓋然性が高い場合に行われるものであり、大きく目立つ赤色の「×」印や、「利用が制限されています」の警告メッセージが表示ユニット53の画面に表示されたり、スマートフォン50のスピーカから、「ブッブー」や「利用が制限されています」という内容で発声する合成音声によるメッセージを音響出力したりする。なお、このような場合にも、利用内容を乗務員(運転士)や当該利用者Mに明示可能にするため、乗車停留所名称、降車停留所名称、整理券番号および利用運賃が表示ユニット53の画面に表示される。また、この場合においても、強制的な合成音声によるメッセージ等を可能に構成してもよい。 The screen display of the display unit 53 shown in FIG. 15(B) is performed, for example, when there is a high probability of fraudulent use, and a large, conspicuous red "X" mark or a warning message saying "Use is restricted" is displayed on the screen of the display unit 53, or a message is output from the speaker of the smartphone 50 in a synthetic voice uttering "beep beep" or "Use is restricted." Even in such a case, the name of the boarding stop, the name of the disembarking stop, the numbered ticket number, and the fare are displayed on the screen of the display unit 53 so that the details of the use can be clearly indicated to the crew (driver) and the user M. Even in this case, a forced synthetic voice message, etc. may be displayed.

また、不正使用の履歴データを利用者ごとに管理することによって、例えば、特定の利用者による不正使用の頻度が高い場合には、当該利用者による本運賃収受システム10の利用を停止(拒否)する措置を採ることが可能になる。このような不正使用の履歴データの管理は、例えば、管理サーバ60に蓄積された停留所情報等ISとこれに関連付けられた個人情報とにより行うことが可能になる。 In addition, by managing the history data of unauthorized use for each user, for example, if the frequency of unauthorized use by a particular user is high, the use of the fare collection system 10 by that user is suspended (rejected). It becomes possible to take measures to Management of such history data of unauthorized use can be performed, for example, using IS such as stop information stored in the management server 60 and personal information associated therewith.

また、本実施形態では、二次元コードDCには上記(9)の表示更新日時が埋め込まれている。そのため、スマートフォン50が二次元コードDCを取得した時点の当該スマートフォン50の時計ユニットから得られる時間情報Xと、二次元コードDCに埋め込まれた(9)の表示更新日時の時間情報Yとに基づいて、両時刻の差(時間差)から二次元コードDCの不正使用の有無を判定することが可能になる。 Furthermore, in this embodiment, the display update date and time of (9) above is embedded in the two-dimensional code DC. Therefore, based on time information Therefore, it becomes possible to determine whether or not the two-dimensional code DC is being used illegally from the difference between the two times (time difference).

例えば、スマートフォン50の時間情報Xの方が二次元コードDCに埋め込まれた時間情報Yよりも古い(小さい)場合には、スマートフォン50による撮影時刻の方が二次元コードDCの表示更新時刻よりも本来、新しい筈が、逆の時間関係(古いこと)になるので、当該二次元コードDCは不正に生成されたり複製されたりした蓋然性が高いと判定することができる。 For example, if the time information Originally, it should be new, but since the time relationship is reversed (old), it can be determined that there is a high probability that the two-dimensional code DC has been illegally generated or copied.

また、スマートフォン50の時間情報Xの方が二次元コードDCに埋め込まれた時間情報Yよりも新しい(大きい)場合であっても、両時刻の差(時間差)が所定時間Nよりも大きいときには、時間間隔の開きが大きいことから、当該二次元コードDCは不正に生成されたり複製されたりした蓋然性が高いと判定することができる。この場合の所定時間Nは、例えば、バス90が停留所間の移動に実際に要する時間またはそれよりも小さい時間に設定されたり、運行ダイヤを管理するシステムが有する停留所間所要時間情報に基づく時間に設定されたり、運行ダイヤと連携した可変時間長に設定されたりする。 Furthermore, even if the time information X of the smartphone 50 is newer (larger) than the time information Y embedded in the two-dimensional code DC, if the difference (time difference) between the two times is greater than the predetermined time N, Since the time interval is large, it can be determined that there is a high probability that the two-dimensional code DC has been illegally generated or copied. In this case, the predetermined time N may be set to, for example, the time actually required for the bus 90 to travel between stops or a shorter time, or may be set to a time based on inter-stop travel time information held by a system that manages the bus schedule. It can be set to a variable time length in conjunction with the service schedule.

[停留所情報等記録処理600]
次に管理サーバ60が実行する停留所情報等記録処理600を説明する。管理サーバ60は、制御装置としてのサーバコンピュータのハードディスク装置等に停留所情報等記録処理600を実行可能な停留所情報等記録プログラムが格納されている。サーバコンピュータにおいて実行される停留所情報等記録処理600では、まずステップS601により所定の初期化処理が済むと、スマートフォン50から基地局80やインターネットNを介して送信データTXa,TXbとして送られて来る停留所情報等ISを受信する、ステップS603の停留所情報等受信処理が行われる。
[Processing for recording bus stop information, etc. 600]
Next, the bus stop information recording process 600 executed by the management server 60 will be described. In the management server 60, a bus stop information recording program capable of executing the bus stop information recording process 600 is stored in a hard disk device or the like of a server computer serving as a control device. In the bus stop information recording process 600 executed in the server computer, a predetermined initialization process is first completed in step S601, and then a bus stop information receiving process is performed in step S603, in which the bus stop information IS transmitted as transmission data TXa, TXb from the smartphone 50 via the base station 80 or the Internet N is received.

そして、ステップS605により停留所情報等ISを受信したか否かを判定して、受信した場合には(S605;Yes)、次のステップS607に処理を移行し、受信していない場合には(S605;No)、再度、ステップS603に戻って停留所情報等受信処理を行う。ステップS607では受信結果情報をスマートフォン50に向けて送信する処理が行われる。正常に受信できている場合には正常受信情報を送信し、受信した停留所情報等ISの一部が欠落したり破損したりしている場合には正常に受信できていないため、異常受信情報を送信する。 Then, in step S605, it is determined whether or not IS such as stop information has been received, and if it has been received (S605; Yes), the process moves to the next step S607, and if it has not been received (S605 ;No), the process returns to step S603 again to perform the process of receiving stop information, etc. In step S607, a process of transmitting the reception result information to the smartphone 50 is performed. If the reception is successful, normal reception information will be sent, but if part of the IS, such as the received stop information, is missing or damaged, the abnormal reception information will be sent as it is not received normally. Send.

続くステップS609では、ステップS603により受信した正常な停留所情報等ISをデータベース装置に格納して蓄積する処理(蓄積処理)が行われる。この処理を終えると、再度、ステップS603に戻って停留所情報等受信処理を行う。これにより、管理サーバ60では、受信した停留所情報等ISを、逐次、データベース装置に蓄積することが可能になる。 In the following step S609, a process (accumulation process) is performed to store and accumulate the normal IS such as stop information received in step S603 in the database device. When this process is finished, the process returns to step S603 to perform the process of receiving stop information, etc. This allows the management server 60 to sequentially store received IS such as stop information in the database device.

[運賃決済処理700]
続いて決済サーバ70が実行する運賃決済処理700を説明する。決済サーバ70は、制御装置としてのサーバコンピュータのハードディスク装置等に運賃決済処理700を実行可能な運賃決済プログラムが格納されている。サーバコンピュータにおいて実行される運賃決済処理700では、まずステップS701により所定の初期化処理を行いそれが済むと、スマートフォン50から基地局80やインターネットNを介して送信データTXcとして送られて来る利用運賃情報と決済情報(利用運賃情報等)を受信する、ステップS703の利用運賃情報等受信処理が行われる(決済情報が管理サーバ60にのみ登録されている場合には、決済サーバ70は決済情報を管理サーバ60から得る)。
[Fare payment processing 700]
Next, the fare payment process 700 executed by the payment server 70 will be explained. In the payment server 70, a fare payment program capable of executing the fare payment process 700 is stored in a hard disk device or the like of a server computer serving as a control device. In the fare payment process 700 executed in the server computer, first a predetermined initialization process is performed in step S701, and once that is completed, the usage fare sent as transmission data TXc from the smartphone 50 via the base station 80 and the Internet N. The processing for receiving information and payment information (such as usage fare information) is performed in step S703 (if the payment information is registered only in the management server 60, the payment server 70 (obtained from the management server 60).

そして、ステップS705により利用運賃情報等を受信したか否かを判定して、受信した場合には(S705;Yes)、次のステップS707に処理を移行し、受信していない場合には(S705;No)、再度、ステップS703に戻って利用運賃情報等受信処理を行う。ステップS707では受信結果情報をスマートフォン50に向けて送信する処理が行われる。正常に受信できている場合には正常受信情報を送信し、受信した利用運賃情報等の一部が欠落したり破損したりしている場合には正常に受信できていないため、異常受信情報を送信する。 Then, it is determined in step S705 whether or not the usage fare information, etc. has been received, and if it has been received (S705; Yes), the process moves to the next step S707, and if it has not been received (S705 ;No), the process returns to step S703 to perform the process of receiving usage fare information, etc. In step S707, a process of transmitting the reception result information to the smartphone 50 is performed. If the reception is successful, normal reception information will be sent, but if part of the received fare information is missing or damaged, the abnormal reception information will be sent as it is not received normally. Send.

次のステップS709では利用運賃情報等に基づく決済処理が行われる。即ち、ステップS709では、利用者Mがバス90を利用したことによる利用運賃(図11の例では、運賃220円)を電子決済により収受する処理が行われる。つまり、電子決済による運賃収受処理である。利用者Mの決済情報としては、例えば、クレジットカードの情報(利用者Mの氏名、カード番号、有効期限、セキュリティコード等)である。 In the next step S709, a payment process is performed based on the fare information, etc. That is, in step S709, the fare for user M's use of bus 90 (in the example of FIG. 11, the fare is 220 yen) is collected by electronic payment. In other words, this is a fare collection process by electronic payment. User M's payment information is, for example, credit card information (user M's name, card number, expiration date, security code, etc.).

続くステップS711では、ステップS709による決済処理が完了したか否かを判定する。クレジットカードの情報に誤りや有効期限切れ等の問題がない場合には、決済処理が完了するため(S711;Yes)、ステップS713により決済結果フラグに決済完了をセットする。これに対して、例えば、カード番号やセキュリティコードに誤りがあったり有効期限が過ぎていたりしてクレジットカードの情報に問題がある場合には、決済処理が完了しないため(S711;No)、ステップS715により決済結果フラグに決済未了をセットする。 In the following step S711, it is determined whether the payment processing in step S709 has been completed. If there is no problem with the credit card information such as an error or expiration of the expiration date, the payment process is completed (S711; Yes), and the payment result flag is set to complete payment in step S713. On the other hand, if there is a problem with the credit card information, for example, the card number or security code is incorrect or the expiration date has passed, the payment process will not be completed (S711; No) and the step In step S715, the payment result flag is set to indicate that the payment has not been completed.

そして、次のステップS717により決済結果情報、つまり決済結果フラグをスマートフォン50に向けて送信する処理が行われる。決済処理が完了している場合には決済完了がセットされた決済結果フラグが送信され、決済処理が完了していない場合には決済未了がセットされた決済結果フラグが送信される。この処理を終えると、再度、ステップS703に戻って利用運賃情報等受信処理を行う。これにより、決済サーバ70では、受信した利用運賃情報等を、逐次、電子決済することが可能になる。 Then, in the next step S717, a process of transmitting payment result information, that is, a payment result flag, to the smartphone 50 is performed. If the payment process is completed, a payment result flag with payment complete set is sent, and if the payment process is not completed, a payment result flag is sent with payment incomplete set. When this process is finished, the process returns to step S703 to perform the process of receiving usage fare information, etc. This makes it possible for the payment server 70 to electronically pay the received usage fare information and the like one by one.

以上説明したように本実施形態の運賃収受システム10では、スマートフォン50は、利用者Mの乗車時に乗車表示端末20から出力された二次元コードDCaを取得し、利用者Mの降車時に降車表示端末30から出力された二次元コードDCdを取得し、二次元コードDCaをデコードした停留所情報等ISaと二次元コードDCdをデコードした停留所情報等ISdとに基づいて得られた利用運賃に関する利用運賃情報を決済サーバ70に送信する。そして、決済サーバ70は、運賃決済処理700により、スマートフォン50から送信された利用運賃情報に基づいて電子決済に関する情報処理を行う。ホスト機器40は、典型的には、例えば、バス90内の既存設備として存在する運賃箱、運賃表示器や車内放送装置等の車載機器を構成する制御装置が用いられる。また、決済サーバ70も既存設備のものが使用できる。スマートフォン50は当該バス90の利用者Mが所持する。 As described above, in the fare collection system 10 of this embodiment, the smartphone 50 acquires the two-dimensional code DCa output from the boarding display terminal 20 when the user M boards the bus, acquires the two-dimensional code DCd output from the disembarking display terminal 30 when the user M disembarks, and transmits to the payment server 70 the fare information regarding the fare obtained based on the bus stop information ISa decoded from the two-dimensional code DCa and the bus stop information ISd decoded from the two-dimensional code DCd. The payment server 70 then performs information processing regarding electronic payment based on the fare information transmitted from the smartphone 50 by the fare payment processing 700. The host device 40 is typically a control device that constitutes on-board equipment such as a fare box, a fare display, and an in-car broadcasting device that exist as existing equipment in the bus 90. The payment server 70 can also be an existing equipment. The smartphone 50 is owned by the user M of the bus 90.

このため、運賃収受システム10を構成するうえで、新規に必要になるものは乗車表示端末20と降車表示端末30である。また、利用運賃に関する利用運賃情報を得る情報処理や、決済サーバ70との通信処理は、利用者Mが所持するスマートフォン50が行う。これにより、バス90に搭載されたホスト機器40、乗車表示端末20や降車表示端末30は、利用運賃情報を得る情報処理を行ったり、決済サーバ70との通信処理を行ったりする必要がないので、これらのホスト機器40等に演算処理能力が高いマイクロコンピュータや記憶容量が大きなメモリ等を設ける必要もない。また通信コストの増加もない。したがって、設備コストの増大を抑制しつつもデジタルチケットによる決済を可能にすることができる。 Therefore, in configuring the fare collection system 10, the boarding display terminal 20 and the alighting display terminal 30 are newly required. Further, the information processing for obtaining usage fare information regarding the usage fare and the communication processing with the payment server 70 are performed by the smartphone 50 owned by the user M. As a result, the host device 40, the boarding display terminal 20, and the disembarking display terminal 30 mounted on the bus 90 do not need to perform information processing to obtain usage fare information or perform communication processing with the payment server 70. There is no need to provide these host devices 40 and the like with a microcomputer with a high arithmetic processing capacity, a memory with a large storage capacity, or the like. There is also no increase in communication costs. Therefore, it is possible to suppress increases in equipment costs while enabling payment using digital tickets.

また、本実施形態の運賃収受システム10では、乗車表示端末20が出力する二次元コードDCや降車表示端末30が出力する二次元コードDCは、停留所ごとに異なるばかりでなく、それぞれ時間の経過とともに変化するように二次元コードDCが出力された時刻の時間情報が少なくとも含まれている(上記(9)の表示更新日時の情報)。そのため、例えば、車両、系統、停留所が同じであっても、日時が違えば異なる二次元コードDCが生成されるため、二次元コードDCを不正に生成したり複製したりすることを極めて困難にしている。また、この表示更新日時の情報とこれらの二次元コードDCの取得時の時間情報(スマートフォン50の時計機能によるもの)とを比較することで、二次元コードDCの不正取得行為の有無を判定することが可能になる。 In addition, in the fare collection system 10 of this embodiment, the two-dimensional code DC output by the boarding display terminal 20 and the two-dimensional code DC output by the disembarking display terminal 30 are not only different for each bus stop, but also contain at least time information about the time when the two-dimensional code DC was output so that they change over time (display update date and time information in (9) above). Therefore, for example, even if the vehicle, route, and stop are the same, a different two-dimensional code DC will be generated if the date and time are different, making it extremely difficult to illegally generate or copy a two-dimensional code DC. Furthermore, by comparing this display update date and time information with the time information when these two-dimensional codes DC were obtained (obtained from the clock function of the smartphone 50), it is possible to determine whether or not a two-dimensional code DC has been obtained illegally.

例えば、スマートフォン50のカメラ55で撮影して取得した二次元コードDCの画像データが乗車表示端末20や降車表示端末30から乗車時や降車時以前の過去に出力されたものであるか否かを判定することにより、取得した二次元コードDCの画像データがその乗車日または降車日以前のものであった場合には、当該利用者Mが予め準備した古い二次元コードDCの画像データを意図的にスマートフォン50で取得した蓋然性が高いことになるため、このような不正取得行為の有無を判定することが可能になる。 For example, by determining whether the image data of the two-dimensional code DC captured by the camera 55 of the smartphone 50 was output from the boarding display terminal 20 or the disembarking display terminal 30 in the past before the time of boarding or disembarking, if the image data of the acquired two-dimensional code DC is from before the date of boarding or disembarking, there is a high probability that the image data of the old two-dimensional code DC that the user M prepared in advance was intentionally acquired by the smartphone 50, making it possible to determine whether such fraudulent acquisition has occurred.

また、本実施形態の運賃収受システム10では、スマートフォン50は、二次元コードDCから得られた停留所情報等ISを、車両外に設けられる管理サーバ60や決済サーバ70に送信するため、これらのサーバ60,70では、利用者Mがどこからどこまでバス90を利用したかの情報(いわゆるODデータ)を蓄積することが可能になる。停留所情報等ISと利用者Mの関連付けは、例えば、スマートフォン50や管理サーバ60に登録されている利用者Mの個人情報(利用者Mの氏名、生年月日、性別、住所、電話番号、職業等)とスマートフォン50の所持者が利用者Mであることから可能である。これにより、バス90を利用した場合の出地と着地の組み合わせごとの利用者数を把握することが可能になるので、例えば、運輸効率の改善や関連サービスの提供等に用いることができる利用価値の高いODデータの収集が可能になる。 In addition, in the fare collection system 10 of the present embodiment, the smartphone 50 transmits IS such as stop information obtained from the two-dimensional code DC to the management server 60 and payment server 70 provided outside the vehicle. 60 and 70, it becomes possible to accumulate information (so-called OD data) on how far the user M has used the bus 90. For example, the association between IS such as stop information and user M may be based on user M's personal information (user M's name, date of birth, gender, address, telephone number, occupation) registered in the smartphone 50 or management server 60. etc.) and the smartphone 50 is owned by the user M. This makes it possible to ascertain the number of users for each combination of origin and destination when using Bus 90, which can be used to improve transportation efficiency or provide related services, for example. It becomes possible to collect high OD data.

また、本実施形態の運賃収受システム10では、スマートフォン50は、決済サーバ70への利用運賃情報の送信が完了しなかった場合や電子決済に関する情報処理を行うことができなかった場合には、スマートフォン50の画面の背景色を、例えば黄色にしたり、「決済処理ができませんでした」の警告メッセージが画面に表示されたりする。また、スマートフォン50のスピーカから、「決済処理ができませんでした」という内容で発声する合成音声によるメッセージを音響出力可能にステップS323の処理結果告知処理を構成してもよい。これにより、事後的に決済処理が行われる旨を利用者Mや乗務員(運転士)に伝えることが可能になり、乗務員は、当該利用者Mの運賃収受が済んでいないことを知ることができるので、当該利用者Mに対して事後精算処理等が必要であることを説明する等の適切な乗客対応が可能になる。 In addition, in the fare collection system 10 of this embodiment, if the smartphone 50 does not complete the transmission of the fare information to the payment server 70 or if the information processing related to the electronic payment cannot be performed, the background color of the screen of the smartphone 50 may be changed to, for example, yellow, or a warning message stating "Payment processing has not been completed" may be displayed on the screen. The processing result notification process of step S323 may be configured to output a synthetic voice message stating "Payment processing has not been completed" from the speaker of the smartphone 50. This makes it possible to inform the user M or the crew (driver) that the payment processing will be performed later, and the crew can know that the fare collection for the user M has not been completed, making it possible to appropriately handle the passenger, such as explaining to the user M that post-payment processing is required.

これに対して、管理サーバ60への利用運賃情報の送信が完了した場合または電子決済に関する情報処理を行うことができた場合には、大きく目立つ青色の「○」印や「ありがとうございました」のメッセージがスマートフォン50の画面に表示される(図15(A))。また、スマートフォン50のスピーカから、「ピンポーン」や「ご利用ありがとうございました」という内容で発声する合成音声によるメッセージを音響出力可能にステップS323の処理結果告知処理を構成してもよい。これにより、乗務員は、当該利用者Mの利用運賃収受が済んだことを知ることができるので、当該利用者Mには事後精算処理等の説明が不要であることを把握することが可能になる。 On the other hand, when the transmission of the fare information to the management server 60 is completed or when the information processing related to electronic payment can be performed, a large conspicuous blue "○" mark or "Thank you" will be displayed. A message is displayed on the screen of the smartphone 50 (FIG. 15(A)). Further, the process result notification process in step S323 may be configured to output a message using a synthesized voice such as "ping-dong" or "thank you for using the service" from the speaker of the smartphone 50. This allows the flight attendant to know that the fare has been collected for the user M, and therefore to understand that there is no need to explain the post-payment process, etc. to the user M. .

また、本実施形態の運賃収受システム10では、スマートフォン50は、利用者Mの降車時において、無線通信回線85を介した情報通信を行わないようにスマートフォン50が設定されている場合(例えば「機内モード」に設定されている場合)には、例えば、図13(B)に示すような機内モードの解除を促すメッセージ「機内モードを解除してくださ」(例えば、背景色は赤色、文字色は白色または黄色)がスマートフォン50の表示ユニット53の画面に表示される。 Further, in the fare collection system 10 of the present embodiment, when the smartphone 50 is set not to communicate information via the wireless communication line 85 when the user M gets off the train (for example, "in-flight" For example, if the background color is red and the text color is white or yellow) is displayed on the screen of the display unit 53 of the smartphone 50.

これにより、利用者Mに対して色彩的にインパクトを与え得るメッセージの表示が可能になる。また乗務員も「機内モード」に設定されているため、当該スマートフォン50が決済サーバ70に利用運賃情報を送信したり管理サーバ60に停留所情報等ISを送信したりすることができない状態であることを把握でき、例えば、当該利用者Mに対して機内モードを解除するように促すことが可能になる。したがって、機内モードに起因したスマートフォン50による決済サーバ70への利用運賃情報の送信未了を防ぐことができる。 This makes it possible to display a message that can have a color impact on the user M. In addition, since the flight attendant is also set to "in-flight mode," the smartphone 50 is in a state where it is unable to send fare information to the payment server 70 or IS such as stop information to the management server 60. For example, it becomes possible to prompt the user M to cancel airplane mode. Therefore, it is possible to prevent incomplete transmission of fare information from the smartphone 50 to the payment server 70 due to the airplane mode.

また、本実施形態の運賃収受システム10では、乗車表示端末20と降車表示端末30をハードウェアおよびソフトウェアのいずれについても同じ構成にしたため、これらを異なるハードウェア構成やソフトウェア構成にした場合に比べ、開発コスト、製造コストやメンテナンスコストを抑制することが可能になる。また量産に伴う低コスト化も期待できるため、さらに製品コストが下がり設備の導入コストをより低減することが可能になる。 In addition, in the fare collection system 10 of this embodiment, since the boarding display terminal 20 and the getting off display terminal 30 have the same hardware and software configuration, compared to a case where they have different hardware and software configurations, It becomes possible to suppress development costs, manufacturing costs, and maintenance costs. Additionally, mass production is expected to result in lower costs, which will further reduce product costs and make it possible to further reduce equipment installation costs.

なお、[先行技術文献]の欄で述べた特許文献1(特開2018-147270号公報)においては、タイプαの自動改札機のほかに、タイプβの自動改札機が開示されている(特許文献1;段落0020等)。このタイプβの自動改札機はQRコードを表示させる構成を有するが、鉄道駅の自動改札機は一般的には駅構内に固定されている。 Note that in Patent Document 1 (JP Patent Publication No. 2018-147270) mentioned in the [Prior Art Documents] section, in addition to the Type α automated ticket gate, a Type β automated ticket gate is also disclosed (Patent Document 1; paragraph 0020, etc.). This Type β automated ticket gate is configured to display a QR code, but automated ticket gates at railway stations are generally fixed inside the station.

このため、タイプβの自動改札機を利用する場合のスマートフォンや携帯電話機は、比較的安定した通信状態が得やすいのに対して、路線バスを利用する場合のスマートフォンや携帯電話機は、バスの走行に伴い移動したり携帯基地局等のインフラが十分に整っていない地域の停留所に移動したりすることから、通信状態が不安定な環境で使用される場合がある。このような場合には不安定な通信状態に起因して決済サーバが決済不能に陥ることもあるため、本発明は上記の構成によりこれを解決している。 For this reason, when using a type β automatic ticket gate, it is easy to obtain a relatively stable communication status with a smartphone or mobile phone, whereas when using a route bus, the smartphone or mobile phone cannot be used while the bus is running. They may be used in environments where communication conditions are unstable, as they may be moved along with traffic or moved to a stop in an area where infrastructure such as mobile base stations is not sufficiently established. In such a case, the payment server may become unable to make payments due to unstable communication conditions, and the present invention solves this problem with the above-described configuration.

なお、上述した実施形態では、乗車表示端末20や降車表示端末30に表示ユニット23,33を設けて二次元コードDC等のコードを表示可能に構成し、スマートフォン50のカメラ55により二次元コードDC等の画像を撮影することで当該二次元コードDC等の取り込みを可能にした。しかし、本発明の適用はこれに限られることはなく、例えば、表示ユニット23,33に代えて(または表示ユニット23,33に加えて)、乗車表示端末20や降車表示端末30にRFID(Radio Frequency IDentification)等の近距離無線通信(NFC;Near field communication)が可能な無線ユニットとそのアンテナを設けてもよい。 In the embodiment described above, the display units 23 and 33 are provided in the boarding display terminal 20 and the disembarking display terminal 30 so that codes such as the two-dimensional code DC can be displayed, and the two-dimensional code DC is displayed by the camera 55 of the smartphone 50. It is possible to capture the two-dimensional code DC, etc. by taking images such as the following. However, the application of the present invention is not limited to this, and for example, instead of the display units 23 and 33 (or in addition to the display units 23 and 33), an RFID (Radio A wireless unit capable of near field communication (NFC) such as Frequency IDentification (IDentification) and its antenna may be provided.

これにより、このような乗車表示端末20や降車表示端末30から近距離無線通信で出力される乗車停留所情報や降車停留所情報を、RFID等の近距離無線通信機能を備えたスマートフォンが取得することが可能になるので、スマートフォン50のカメラ55等で二次元コードDCを撮影して取得する場合に比べて、素早く乗車停留所情報や降車停留所情報を取得することが可能になる。したがって、バス90の乗車口91や降車口93で利用者M(乗客)の滞りが起こり難くなるため、乗降客が多い時間帯や停留所であっても、バス90の乗車や降車がスムーズになる。 As a result, a smartphone equipped with a short-range wireless communication function such as RFID can acquire the boarding stop information and the alighting stop information outputted from the boarding display terminal 20 and the alighting display terminal 30 by short-range wireless communication. This makes it possible to quickly acquire boarding stop information and alighting stop information compared to the case where the two-dimensional code DC is photographed and acquired using the camera 55 of the smartphone 50 or the like. Therefore, users M (passengers) are less likely to get stuck at the boarding gate 91 and the exit gate 93 of the bus 90, so boarding and alighting from the bus 90 becomes smoother even at times or at bus stops where there are many passengers. .

また、上述した実施形態では、データカセットのメモリに格納された運賃三角表データを用いる場合を例示して説明したが、本発明の適用はこれに限られることはなく、例えば、運賃表示器や車内放送装置等の車載機器から有線通信回線15を介して送られてくる運賃三角表データを用いてもよい。 Further, in the above-described embodiment, the case where the fare triangular table data stored in the memory of the data cassette is used is exemplified and explained, but the application of the present invention is not limited to this, and for example, Fare triangular table data sent from in-vehicle equipment such as an in-vehicle broadcasting device via the wired communication line 15 may also be used.

さらに、上述した実施形態では、スマートフォン50が二次元コードDCを取得した時点の時間情報Xを当該スマートフォン50の時計ユニットから得る場合を例示して説明したが、本発明の適用はこれに限られることはなく、例えば、乗車表示端末20や降車表示端末30から当該スマートフォン50が時間情報Xを得るように構成してもよい。 Furthermore, in the embodiment described above, the case where the smartphone 50 obtains the time information X at the time when the two-dimensional code DC is obtained from the clock unit of the smartphone 50 is illustrated, but the application of the present invention is limited to this. For example, the smartphone 50 may be configured to obtain the time information X from the boarding display terminal 20 or the disembarking display terminal 30.

なお、上述した実施形態では、二次元コードとして、QRコードを使用する場合を例示して説明したが、本発明の適用はこれに限られることはなく、例えば、マトリクス型の二次元コードとして、DataMatrix、VeriCode、AztecやMaxCodeを用いてもよい。また、スタック型の二次元コードとして、PDF471やCODE49を用いてもよい。また、コード化するデータ量が少ない場合には、バーコード等の一次元コードを用いてもよい。 In addition, in the above-mentioned embodiment, the case where a QR code is used as a two-dimensional code was illustrated and explained, but the application of the present invention is not limited to this, and for example, as a matrix-type two-dimensional code, DataMatrix, VeriCode, Aztec or MaxCode may also be used. Furthermore, PDF471 or CODE49 may be used as a stacked two-dimensional code. Furthermore, if the amount of data to be encoded is small, a one-dimensional code such as a barcode may be used.

また、上述した実施形態では、乗車表示端末20から出力される二次元コードDCと降車表示端末30から出力される二次元コードDCとを同じデータ内容のコード(同じコード)にしたが、両者異なるデータ内容のコード(違うコード)を出力するように構成してもよい。これにより、不正に二次元コードDCを生成した場合には発覚する可能性が高まるため、二次元コードDCの不正な生成や複製を抑制することが可能になる。 In addition, in the above-described embodiment, the two-dimensional code DC output from the boarding display terminal 20 and the two-dimensional code DC output from the disembarking display terminal 30 are codes with the same data content (the same code), but they may be configured to output codes with different data content (different codes). This increases the likelihood that fraudulent generation of a two-dimensional code DC will be discovered, making it possible to suppress fraudulent generation and duplication of two-dimensional codes DC.

また、上述した実施形態では、乗車表示端末20と降車表示端末30とを同じハードウェアおよびソフトウェアで構成したが、両者をそれぞれ異なるようにハードウェアおよびソフトウェアを構成してもよい。これにより、様々な顧客ニースに対応することが可能になる。 Furthermore, in the embodiment described above, the boarding display terminal 20 and the disembarking display terminal 30 are configured with the same hardware and software, but they may be configured with different hardware and software. This makes it possible to respond to various customer needs.

また、二次元コードDCを表示可能な表示装置を有するバス用の車載設備機器を乗車表示端末20や降車表示端末30に代えて用いてもよい。これにより、乗車表示端末20や降車表示端末30を別途設ける必要がなくなるため、さらに設備の導入コストを低減することが可能になる。 Furthermore, in-vehicle equipment for buses having a display device capable of displaying the two-dimensional code DC may be used in place of the boarding display terminal 20 and the alighting display terminal 30. This eliminates the need to separately provide the boarding display terminal 20 and the disembarking display terminal 30, making it possible to further reduce the cost of introducing equipment.

また、上述した実施形態では、本発明の運賃収受システムをバス90(路線バス)の運賃収受に適用する場合を例示して説明したが、本発明の適用はこれに限られることはなく、乗合車両の利用運賃を収受するものであれば、例えば、路面電車、トロリーバスやワンマン運行方式の鉄道等の乗合車両の利用運賃を収受するものにも適用することができ、これらの場合においても路線バスに適用したときと同様の作用・効果を得ることができる。 Further, in the above-described embodiment, the case where the fare collection system of the present invention is applied to fare collection of the bus 90 (route bus) has been described as an example, but the application of the present invention is not limited to this. , as long as the system collects fares for shared vehicles, for example, it can also be applied to those that collect fares for shared vehicles such as streetcars, trolleybuses, and one-man operated railways, and in these cases. It is also possible to obtain the same effects and effects as when applied to route buses.

以上、本発明の具体例を詳細に説明したが、これらは例示に過ぎず、特許請求の範囲を限定するものではない。特許請求の範囲に記載の技術には、上述した具体例を様々に変形または変更したものが含まれる。また、本明細書または図面に説明した技術要素は、単独であるいは各種の組合せによって技術的有用性を発揮するものであり、出願時の請求項に記載の組合せに限定されるものではない。さらに、本明細書または図面に例示した技術は、複数の目的を同時に達成するものであり、そのうちの一つの目的を達成すること自体で技術的有用性を持つ。なお、[符号の説明]の欄における括弧内の記載は、上述した各実施形態で用いた用語と、特許請求の範囲に記載の用語との対応関係を明示し得るものである。 Although specific examples of the present invention have been described in detail above, these are merely illustrative and do not limit the scope of the claims. The techniques described in the claims include various modifications or changes to the specific examples described above. Further, the technical elements described in this specification or the drawings exhibit technical usefulness singly or in various combinations, and are not limited to the combinations described in the claims as filed. Furthermore, the techniques illustrated in this specification or the drawings simultaneously achieve a plurality of objectives, and achieving one of the objectives has technical utility in itself. Note that the descriptions in parentheses in the [Explanation of symbols] column can clarify the correspondence between the terms used in each of the embodiments described above and the terms described in the claims.

10…運賃収受システム
20…乗車表示端末(乗車情報提供装置)
30…降車表示端末(降車情報提供装置)
40…ホスト機器(制御装置)
50…スマートフォン(携帯情報端末装置)
51…制御ユニッ
52…無線ユニッ
53…表示ユニット
55…カメ
60…管理サー
70…決済サーバ(決済サーバ装置)
80…基地局
85…無線通信回線
90…路線バス(乗合車両)
91…乗車口
93…降車口
100…停留所情報等送出処理
200…コード出力処理
300…運賃精算処理
400…コード取得処理
500…無線送信処理
600…停留所情報等記録処理
700…運賃決済処理
BS,BSa,BSb,BSd…停留所
DC,DCa,DCb,DCd…二次元コード(乗車停留所情報、降車停留所情報)
IS,ISa,ISb,ISd…停留所情報等(乗車停留所情報、降車停留所情報)
M…利用者
N…インターネット
TXa,TXb,TXc…送信データ
RXa,RXb…受信結果情
10...Fare collection system 20...Ride display terminal (ride information providing device)
30...Getting off display terminal (getting off information providing device)
40...Host device (control device)
50...Smartphone (portable information terminal device)
51...control unit
52...Wireless unit
53...Display unit 55... Camera
60...Management server
70...Payment server (payment server device)
80...Base station 85...Wireless communication line 90...Route bus (passenger vehicle)
91...Boarding entrance 93...Getting off exit 100...Stop information etc. sending process 200...Code output process 300...Fare payment process 400...Code acquisition process 500...Wireless transmission process 600...Stop information etc. recording process 700...Fare payment process BS, BSa , BSb, BSd...Stop DC, DCa, DCb, DCd...Two-dimensional code (boarding stop information, getting off stop information)
IS, ISa, ISb, ISd...Stop information, etc. (boarding stop information, getting off stop information)
M...User N...Internet TXa, TXb, TXc...Transmission data RXa, RXb...Reception result information

Claims (5)

乗合車両の利用者から当該車両の利用運賃を収受する運賃収受システムであって、
前記車両内の乗車口付近に設けられる乗車情報提供装置と、
前記車両内の降車口付近に設けられる降車情報提供装置と、
前記車両が停留所に停車した前記停留所に対応する情報であってそれぞれの停留所ごとに異なる停留所情報を停車するごとに前記乗車情報提供装置および前記降車情報提供装置に出力させる制御装置と、
前記車両外に設けられて前記利用運賃を収受する電子決済に関する情報処理を行う決済サーバ装置と、
前記利用者が所持して前記乗車情報提供装置および前記降車情報提供装置から出力される前記停留所情報を取得可能かつ前記決済サーバ装置に対し無線通信回線を介して情報通信可能な携帯情報端末装置と、を含み、
前記携帯情報端末装置は、
前記利用者の乗車時に前記乗車情報提供装置から出力された乗車時の前記停留所情報(以下、請求項1~5において「乗車停留所情報」という)を取得し、
前記利用者の降車時に前記降車情報提供装置から出力された降車時の前記停留所情報(以下、請求項1~5において「降車停留所情報」という)を取得し、
前記乗車停留所情報に含まれる前記乗車時の停留所に対応した整理券番号と前記降車停留所情報に含まれる前記整理券番号に対応した運賃データとに基づいて得られた前記利用運賃に関する利用運賃情報を前記決済サーバ装置に送信し、
前記決済サーバ装置は、前記携帯情報端末装置から送信された前記利用運賃情報に基づいて前記電子決済に関する情報処理を行うことを特徴とする運賃収受システム。
A fare collection system that collects a fare for a shared vehicle from a user of the vehicle,
a boarding information providing device provided near a boarding entrance in the vehicle;
an alighting information providing device provided near the alighting entrance in the vehicle;
a control device that causes the boarding information providing device and the getting off information providing device to output stop information corresponding to the stop at which the vehicle stopped, which is different for each stop, each time the vehicle stops;
a payment server device installed outside the vehicle and processing information regarding electronic payment for collecting the usage fare;
a portable information terminal device that is carried by the user and is capable of acquiring the stop information output from the boarding information providing device and the getting off information providing device, and is capable of communicating information to the payment server device via a wireless communication line; , including;
The mobile information terminal device includes:
Obtaining the stop information at the time of boarding (hereinafter referred to as "boarding stop information" in claims 1 to 5) output from the boarding information providing device when the user boards the board;
acquiring the stop information at the time of alighting (hereinafter referred to as "alighting stop information" in claims 1 to 5) output from the alighting information providing device when the user alights;
Use fare information regarding the use fare obtained based on the numbered ticket number corresponding to the stop at the time of boarding included in the boarding stop information and the fare data corresponding to the numbered ticket number included in the alighting stop information. transmitting it to the payment server device;
The fare collection system is characterized in that the payment server device performs information processing regarding the electronic payment based on the usage fare information transmitted from the mobile information terminal device.
前記乗車情報提供装置から出力される前記乗車停留所情報および前記降車情報提供装置から出力される前記降車停留所情報は、それぞれ時間の経過とともに変化し、かつ、出力時刻の時間情報が少なくとも含まれていることを特徴とする請求項1に記載の運賃収受システム。 The boarding stop information output from the boarding information providing device and the alighting stop information outputting from the boarding information providing device each change over time and include at least time information of an output time. The fare collection system according to claim 1, characterized in that: 前記乗車情報提供装置から出力される前記乗車停留所情報および前記降車情報提供装置から出力される前記降車停留所情報は、暗号化されており、
前記携帯情報端末装置は、暗号化された前記乗車停留所情報および前記降車停留所情報を所定の暗号鍵で復号して前記整理券番号と前記運賃データを取得することを特徴とする請求項1または2に記載の運賃収受システム。
The boarding stop information output from the boarding information providing device and the getting off stop information output from the boarding information providing device are encrypted,
2. The portable information terminal device decrypts the encrypted boarding stop information and the alighting stop information using a predetermined encryption key to obtain the ticket number and the fare data. The fare collection system described in .
前記携帯情報端末装置は、
前記降車停留所情報および前記乗車停留所情報に基づいて、前記決済サーバ装置への前記利用運賃情報の送信が完了しなかった場合または前記電子決済に関する情報処理を行うことができなかった場合には、所定の未了情報を前記車両の乗務員に告知可能に出力し、
または、前記決済サーバ装置への前記利用運賃情報の送信が完了した場合または前記電子決済に関する情報処理を行うことができた場合には、所定の完了情報を前記車両の乗務員に告知可能に出力する、
ことを特徴とする請求項1~3のいずれか一項に記載の運賃収受システム。
The mobile information terminal device includes:
If the transmission of the fare information to the payment server device is not completed based on the alighting stop information and the boarding stop information, or if the information processing regarding the electronic payment cannot be performed, a predetermined Output uncompleted information to the crew of the vehicle in a manner that can be notified to the crew member of the vehicle,
Alternatively, when the transmission of the usage fare information to the payment server device is completed or when the information processing regarding the electronic payment can be performed, predetermined completion information is outputted so as to be notified to the crew of the vehicle. ,
The fare collection system according to any one of claims 1 to 3, characterized in that:
前記携帯情報端末装置は、前記利用者の降車時において、前記無線通信回線を介した情報通信を行わないように当該携帯情報端末装置が設定されている場合には、所定の通信不能情報を前記車両の乗務員に告知可能に出力することを特徴とする請求項1~4のいずれか一項に記載の運賃収受システム。 If the mobile information terminal device is set not to communicate information via the wireless communication line when the user gets off the train, the mobile information terminal device transmits predetermined communication disabling information to the user. The fare collection system according to any one of claims 1 to 4, characterized in that the fare collection system is outputted so as to be able to notify the crew of the vehicle.
JP2020041047A 2020-03-10 2020-03-10 Fare collection system Active JP7457540B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2020041047A JP7457540B2 (en) 2020-03-10 2020-03-10 Fare collection system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2020041047A JP7457540B2 (en) 2020-03-10 2020-03-10 Fare collection system

Publications (2)

Publication Number Publication Date
JP2021144320A JP2021144320A (en) 2021-09-24
JP7457540B2 true JP7457540B2 (en) 2024-03-28

Family

ID=77766572

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2020041047A Active JP7457540B2 (en) 2020-03-10 2020-03-10 Fare collection system

Country Status (1)

Country Link
JP (1) JP7457540B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
AU2021415578A1 (en) 2020-12-28 2023-07-27 Suntory Holdings Limited Oral composition with increased sweetness
CN114462563B (en) * 2022-01-29 2023-07-07 中国银联股份有限公司 Transaction processing method, device, equipment and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2018195114A (en) 2017-05-18 2018-12-06 株式会社東芝 Program and entrance/exit method
JP2020004292A (en) 2018-06-29 2020-01-09 株式会社エムティーアイ Fare settlement apparatus, fare settlement method, fare settlement system and fare settlement program

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2018195114A (en) 2017-05-18 2018-12-06 株式会社東芝 Program and entrance/exit method
JP2020004292A (en) 2018-06-29 2020-01-09 株式会社エムティーアイ Fare settlement apparatus, fare settlement method, fare settlement system and fare settlement program

Also Published As

Publication number Publication date
JP2021144320A (en) 2021-09-24

Similar Documents

Publication Publication Date Title
US11676436B2 (en) Vehicle parking authorization assurance system
US7377426B1 (en) Interactive visitor announcement/access control system
JP4062680B2 (en) Facility reservation method, server used for facility reservation method, and server used for event reservation method
JP7457540B2 (en) Fare collection system
US20060079245A1 (en) Methods and systems for position co-ordination
EP2079048A1 (en) Information providing system and information providing method
JP6995497B2 (en) program
CN106464724B (en) Transport system user inspection
KR101948009B1 (en) Reservation system for bus and method using the same
WO2006029658A1 (en) Method for performing a clearance procedure, a system and a sofware product
JP2006344116A (en) Database managing method using cellular phone and qr code
JP7083859B2 (en) Public transportation system
CN108062520A (en) A kind of driver identification system and method
KR20140085617A (en) Apparatus for managing to ride and to get off shuttle-bus
AU2015268601B2 (en) Method for operating an ID-based access control system
CA3209075A1 (en) Identity-based enablement of event access control
JP2007323123A (en) Incorrect boarding prevention system and incorrect boarding prevention method
JP2019023841A (en) Entry/exit management system for entry restricted area
KR102163888B1 (en) Boarding System Using Biometric Information and the Method Thereof
KR101411219B1 (en) Wedding system
KR20040021165A (en) System that can be used for reservation and prohibited area entrances via mobile barcode detection
JP2007156666A (en) Automatic ticket examination system and terminal device used for automatic ticket examination
KR102144465B1 (en) Vibration notification device and its operation method
JP7067976B2 (en) Ticket gate system
JP7074098B2 (en) Payment systems, traffic control systems, payment methods, and programs

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20221222

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20231010

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20231121

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20240109

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20240315

R150 Certificate of patent or registration of utility model

Ref document number: 7457540

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150