Information processing device, information processing method, program, and information processing system
The information processing system addresses network congestion by prioritizing transactions based on their progress, ensuring reliable execution and reducing incomplete transactions, thus maintaining system efficiency.
Patent Information
- Application Number
- JP2020169725
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2020-10-07
- Publication Date
- 2024-10-17
- Estimated Expiration
- 2040-10-07
AI Technical Summary
Existing thin-client station service systems face challenges in completing transactions within short timeframes due to network congestion, particularly at stations with a large number of users, leading to delayed responses and increased load on the server.
An information processing system that prioritizes transactions based on their progress, using a connectionless protocol and determining higher priority for requests that are closer to completion to reduce the number of incomplete transactions and re-executions.
Ensures reliable execution of transactions even during network congestion by minimizing incomplete transactions and reducing the number of re-executions, thereby maintaining system efficiency.
Smart Images

Figure 0007569192000001 
Figure 0007569192000002 
Figure 0007569192000003
Abstract
Description
[Technical field]
[0001] The present invention relates to an information processing device, an information processing method, a program, and an information processing system. [Background technology]
[0002] There is known a thin-client type station service system in which a server device (i.e., an information processing device) centrally manages IC card determination processing in a plurality of station service devices (e.g., automatic ticket gates, etc.). For example, Patent Document 1 discloses an example of a thin-client type station service system. [Prior art documents] [Patent documents]
[0003] [Patent Document 1] JP 2015-18476 A Summary of the Invention [Problem to be solved by the invention]
[0004] As in the above-mentioned thin-client station service system, some systems in which communication occurs between a server device and a terminal device such as station service equipment when processing is performed on the terminal device side are required to complete the processing in an extremely short period of time. As a specific example, when an automatic ticket gate is used as the terminal device, communication occurs between the automatic ticket gate and a server device depending on the result of reading information from an IC card, and the opening and closing of the automatic ticket gate door is controlled depending on the result of the communication. When considering an operation scene of the automatic ticket gate, particularly in a station with many users, it may be required to complete the above-mentioned series of processing in less than one second. Therefore, in such a system, there is a demand for the realization of a technology that can further reduce the impact of network congestion.
[0005] The present invention has been made in consideration of the above problems, and has an object to ensure that transactions are executed reliably even when congestion occurs in a network or server. [Means for solving the problem]
[0006] The information processing device of the present invention includes one or more Station equipment From each via the network , transmitted using a connectionless protocol An acquisition unit that acquires a request; Station equipment a determination unit that determines, among the requests related to a transaction executed in the first embodiment, a request to be given priority for processing in accordance with a progress of the transaction. The transaction includes a plurality of processes that are executed sequentially, and the determination unit determines the request to be processed depending on whether a predetermined process among the plurality of processes has been completed, and the predetermined process is a process that serves as a starting point for re-execution in response to an error occurring in another process subsequent to the predetermined process. .
[0007] In addition, the information processing system of the present invention includes one or more terminal devices and an information processing device, and the information processing device has an acquisition unit that acquires requests from each of the one or more terminal devices via a network, and a determination unit that determines, among the requests related to a transaction executed on the terminal device, a request to be given higher priority for processing in accordance with the progress of the transaction. Effect of the Invention
[0008] According to the present invention, even if congestion occurs in a network or server, a transaction can be reliably executed. [Brief description of the drawings]
[0009] [Figure 1] FIG. 1 illustrates an example of a system configuration of an information processing system. [Diagram 2] FIG. 2 is a diagram illustrating an example of a hardware configuration of an information processing device. [Diagram 3] FIG. 2 is a diagram illustrating an example of a hardware configuration of a terminal device. [Figure 4] FIG. 11 is a diagram showing an example of a series of processes related to fare settlement. [Diagram 5]FIG. 2 is an explanatory diagram for explaining an overview of functions of the information processing system. [Figure 6] FIG. 2 is a block diagram illustrating an example of a functional configuration of an information processing system. [Figure 7] FIG. 2 is a sequence diagram illustrating an example of processing of the information processing system. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0010] Hereinafter, preferred embodiments of the present disclosure will be described in detail with reference to the accompanying drawings. In this specification and the drawings, components having substantially the same functional configurations are denoted by the same reference numerals, and redundant description will be omitted.
[0011] <System configuration> First, an example of a system configuration of an information processing system 1 according to the present embodiment will be described with reference to FIG. The information processing system 1 according to the present embodiment includes an information processing device 100 and a plurality of terminal devices 200. The terminal device 200 may be configured as station service equipment such as a ticket vending machine, a fare adjustment machine, a counter processing machine, or an automatic ticket gate. In the present embodiment, for convenience, the terminal device 200 is configured as an automatic ticket gate. In the example shown in FIG. 1, the information processing system 1 includes the terminal devices 200a to 200d for convenience, but the number of the terminal devices 200 is not necessarily limited. The installation unit of the information processing device 100 is also not limited. As a specific example, the information processing device 100 may be a device (for example, a server device) that centrally manages the terminal devices 200 at a plurality of stations (and thus the terminal devices 200 at all stations). As another example, the information processing device 100 may be a device that is installed at each station and manages the terminal devices 200 installed at each station.
[0012] The information processing device 100 and each of the multiple terminal devices 200 are connected via a network N1 so that they can transmit and receive information to and from each other. The type of the network N1 is not particularly limited. As a specific example, the network N1 may be configured with the Internet, a dedicated line, a LAN (Local Area Network), a WAN (Wide Area Network), or the like. The network N1 may be configured with a wired network, or may be configured with a wireless network such as a network based on a standard such as LTE (Long Term Evolution) or Wi-Fi (registered trademark). The network N1 may include multiple networks, and a network of a different type from the other networks may be applied as a part of the network. It is sufficient that communication between the information processing device 100 and the terminal device 200 is logically established, and the information processing device 100 and the terminal device 200 may be physically relayed by another communication device or the like.
[0013] The information processing device 100 accepts a request from at least one or more of the multiple terminal devices 200, and executes processing in response to the request. For example, when each terminal device 200 sequentially executes a series of processes associated as a transaction, the information processing device 100 executes processing in response to a request transmitted from the terminal device 200 when the terminal device 200 executes the process. The information processing device 100 also returns a response in response to a result of the processing executed upon receiving a request from the terminal device 200 to the terminal device 200 that is the sender of the request. Furthermore, when the information processing device 100 according to the present embodiment receives requests from each of the multiple terminal devices 200, it determines which request should be given priority for processing based on a predetermined condition. An example of this process will be described in detail later together with the description of the functions of the information processing system 1 according to the present embodiment.
[0014] When executing various processes, the terminal device 200 transmits a request to the information processing device 100 to execute a desired process as necessary. In addition, the terminal device 200 acquires information corresponding to the execution result of the process from the information processing device 100 as a response to the request.
[0015] As a specific example, the terminal device 200 reads information recorded on an IC card owned by a user (such as a passenger), and transmits a request corresponding to the result of reading the information to the information processing device 100. The terminal device 200 receives a response corresponding to the result of the processing executed by the information processing device 100 in response to the transmitted request, and performs operations such as reading information from the IC card and writing information to the IC card based on the received response. An example of the processing executed by the terminal device 200 will be described in detail later separately together with an explanation of the functions of the information processing system 1 according to this embodiment. Furthermore, the terminal device 200 performs a customer service process for the user. In this embodiment, the customer service process corresponds to, for example, when the terminal device 200 is an automatic ticket gate, a process of detecting a person entering the automatic ticket gate and opening and closing the door, providing voice guidance, displaying guidance on a screen, turning on and off a lamp, and the like. In this way, the customer service process corresponds to a process for the terminal device 200 to provide a service to the user. Note that the content of the customer service process performed by the terminal device 200 may be appropriately changed depending on the type of the terminal device 200.
[0016] <Hardware configuration of information processing device> Next, an example of a hardware configuration of the information processing device 100 will be described with reference to Fig. 2. The information processing device 100 includes a CPU (Central Processing Unit) 101, an interface device 102, a HD (Hard Disk) 103, a ROM (Read Only Memory) 108, and a RAM (Random Access Memory) 109. The information processing device 100 may also include at least one of an input device 104 and an output device 105. The information processing device 100 may also include a recording medium drive device 106.
[0017] The CPU 101 controls various operations of the information processing device 100. The ROM 108 stores control programs, boot programs, and the like that can be executed by the CPU 101. The RAM 109 is the main memory of the CPU 101, and is used as a work area or a temporary storage area for loading various programs. The HD 103 stores various data and programs. The CPU 101 reads out a program stored in the HD 103, develops it in the RAM 109, and executes the program, thereby realizing various functions described later with reference to Fig. 5 and Fig. 6, and processes described later with reference to Fig. 7. Instead of the HD 103 or together with the HD 103, a storage device other than the HD 103, such as a non-volatile memory typified by an SSD (Solid State Drive), may be used.
[0018] The interface device 102 is an interface that connects the information processing device 100 to various networks such as the network N1. The device applied as the interface device 102 may be changed as appropriate depending on the type of the network N1 and the communication method applied. As a specific example, when the network N1 is a wired network, the interface device 102 may include a connector that connects a cable used as a transmission path, a device related to receiving data via the cable, and a device related to transmitting data via the cable. As another example, when the network N1 is a wireless network, the interface device 102 may include various devices for achieving wireless communication such as an antenna device and an RF circuit.
[0019] The input device 104 is a device for receiving instructions from an administrator of the information processing device 100. The input device 104 may be realized by, for example, an operation device such as a mouse, a keyboard, a touch panel, a button, a switch, a lever, or a pedal. In addition, the device applied as the input device 104 may be appropriately changed according to the method by which the administrator gives instructions to the information processing device 100 (in other words, the method of operating the information processing device 100). For example, when the information processing device 100 receives instructions from the administrator by voice input, the input device 104 may be realized by a sound collection device that receives voice input, such as a microphone.
[0020] The output device 105 is a device for presenting various information to the administrator of the information processing device 100. The output device 105 may be realized by a display device such as a display that presents information to a user by displaying various display information, screens, etc. Furthermore, the device applied as the output device 105 may be appropriately changed depending on the method of presenting information to the administrator. For example, when information is presented to the administrator by sound such as voice or electronic sound, the output device 105 may be realized by an audio output device that outputs sound such as a speaker.
[0021] The program for the information processing device 100 is provided to the information processing device 100 by a recording medium 107 such as a CD-ROM, or is downloaded via a network, etc. The recording medium 107 is set in the recording medium drive device 106, and the program is installed from the recording medium 107 to the HD 103 via the recording medium drive device 106.
[0022] <Hardware configuration of terminal device> Next, an example of the hardware configuration of the terminal device 200 will be described with reference to Fig. 3, focusing in particular on the case where the terminal device 200 is configured as an automatic ticket gate. Note that the automatic ticket gate is an example of station service equipment that detects the entrance of a user, opens and closes doors, provides audio guidance regarding the opening and closing of doors, and displays part of the information on the user's IC card.
[0023] The terminal device 200 includes a CPU (Central Processing Unit) 201, an interface device 202, a HD (Hard Disk) 203, a ROM (Read Only Memory) 204, and a RAM (Random Access Memory) 205. The terminal device 200 may also include at least one of a guide device 206, a ticket processing device 207, a human detection device 208, and a door opening / closing device 209.
[0024] The CPU 201 controls various operations of the terminal device 200. The ROM 204 stores control programs, boot programs, and the like that can be executed by the CPU 201. The RAM 205 is the main memory of the CPU 201, and is used as a work area or a temporary storage area for expanding various programs. The HD 203 stores various data and various programs. The CPU 201 reads out a program stored in the HD 203, expands it in the RAM 205, and executes the program, thereby realizing various functions described later with reference to Fig. 5 and Fig. 6, and processes described later with reference to Fig. 7. Instead of the HD 203 or together with the HD 203, a storage device other than the HDD 103, such as a non-volatile memory typified by an SSD (Solid State Drive), may be used.
[0025] The interface device 202 is an interface that connects the terminal device 200 to various networks such as the network N1. A device applied as the interface device 202 may be changed as appropriate depending on the type and communication method of the network N1. As a specific example, when the network N1 is a wireless network, the interface device 202 may include various devices for achieving wireless communication, such as an antenna device and an RF circuit.
[0026] The guidance device 206 provides information to a user using the automated ticket gate, such as the amount used, the remaining amount, the result of the entrance process, the result of the exit process, and the operating status of the automated ticket gate, etc. The guidance device 206 includes a display device that displays the above guidance on a screen, an audio output device that provides voice guidance, and a lighting device that lights a lamp, etc.
[0027] The ticket processing device 207 performs processes such as reading and writing to the boarding medium. The ticket processing device 207 may have an IC reader / writer having an IC touch unit capable of performing processes such as reading and writing to a recording medium such as an IC card. Here, the CPU 201 can turn on the IC card touch unit of the ticket processing device 207 based on an instruction received from the information processing device 100 to indicate that the IC card touch can be accepted. Similarly, the CPU 201 can turn off the IC card touch unit to indicate that the IC card touch cannot be accepted based on an instruction received from the information processing device 100.
[0028] For example, suppose that a station attendant resets an automatic ticket gate. In that case, the CPU 201 closes the ticket slot by controlling the passenger ticket processing device 207, and transmits to the information processing device 100 a notice that the reset operation has been detected. Then, the information processing device 100 transmits to the automatic ticket gate an instruction to turn off the IC touch unit. Furthermore, when the CPU 201 detects the end of the reset process, it controls the passenger ticket processing device 207 to open the ticket slot, and transmits to the information processing device 100 a notice that the reset process has been completed. Then, the information processing device 100 transmits to the automatic ticket gate an instruction to turn on the IC touch unit. Here, the case where a station attendant resets an automatic ticket gate has been described as an example, but this is not the only case. For example, when a maintenance worker changes the parameters of the automatic ticket gate, touching of an IC card becomes invalid until the parameter change is reflected, or when a user inserts a ticket into the ticket slot, touching of an IC card becomes invalid.
[0029] The human detection device 208 detects a user entering an automatic ticket barrier. The door opening / closing device 209 opens and closes the doors of the automatic ticket gate.
[0030] <Function Overview> Next, an overview of the functions of the information processing system 1 according to this embodiment will be described. In this section, in order to make the features of the information processing system 1 according to this embodiment easier to understand, first, with reference to FIG. 4, technical issues of the information processing system 1 including station service equipment such as an automatic ticket gate will be described. FIG. 4 shows an example of a series of processes in which a terminal device 200 configured as an automatic ticket gate reads information recorded on an IC card owned by a user, settles the fare according to the result of reading the information, and then writes the result of the settlement on the IC card. In the following description, the example shown in FIG. 4 will also be referred to as a "comparative example" for convenience.
[0031] The terminal device 200 executes a series of processes related to reading information from the IC card, settling the fare, and writing to the IC card as one transaction related to customer service. As a specific example, the terminal device 200 executes a polling process S101, a mutual authentication process S102, a read process S103, and a write process S104 in this order as the transaction.
[0032] The polling process S101 is a process for inquiring of the information processing device 100 as to whether or not a request can be transmitted in order to avoid a contention in the transmission of a request with another terminal device 200. Note that, although details will be described later, in the information processing system 1 according to the present embodiment, it is required that a series of processes executed as a transaction can be executed in a shorter period (for example, 0.2 seconds or less). In this context, in the information processing system 1, a so-called connectionless protocol that does not involve congestion control, such as UDP (User Datagram Protocol), is used for communication between the information processing device 100 and the terminal device 200. Therefore, the terminal device 200 polls the information processing device 100 to check whether or not a request can be transmitted to the information processing device 100, and transmits a request to the information processing device 100 according to the result of the check. The mutual authentication process S102 is an authentication process performed between the terminal device 200 and the information processing device 100 in order for the terminal device 200 to execute other processes (that is, the read process S103 and the write process S104) subsequent to the mutual authentication process S102. The reading process S103 is a process for reading predetermined information from the IC card. For example, the information read in the reading process S103 is used for fare adjustment. The write process S104 is a process related to writing information to the IC card. For example, information according to the result of the fare settlement is written to the IC card by the write process S104.
[0033] When executing a series of processes from S101 to S104, the terminal device 200 transmits a request to the information processing device 100 as necessary in each process. In this case, the terminal device 200 transitions to execution of the next process after confirming a response to the request. On the other hand, if the terminal device 200 does not receive a response even after a predetermined period of time has elapsed since sending a request to the information processing device 100 (i.e., the communication times out), the terminal device 200 assumes that an error has occurred in the process corresponding to the request. In this case, the terminal device 200 re-executes the series of processes S101 to S104 executed as a transaction, starting from the reference process, according to the process in which the error occurred. Specifically, if an error occurs in the polling process S101 prior to the mutual authentication process S102, the terminal device 200 executes the series of processes S101 to S104 again, starting from the polling process S101. On the other hand, if an error occurs in the processes after the mutual authentication process S102, the terminal device 200 executes at least the processes after the mutual authentication process S102 out of the series of processes S101 to S104 again. That is, in this case, the terminal device 200 rolls back the execution of the series of processes S101 to S104 up to the mutual authentication process S102.
[0034] When the information processing device 100 receives a request from the terminal device 200, it executes processing in accordance with the request, and returns a response in accordance with the execution result of the processing to the terminal device 200.
[0035] When the information processing device 100 according to the comparative example receives requests from each of the multiple terminal devices 200, the information processing device 100 processes each request in the order in which the requests are received. For example, in the example shown in FIG. 4, the information processing device 100 manages the requests received from each of the terminal devices 200 in association with a queue (received queue), and processes each request in the order in which the requests are associated with the queue. Due to such characteristics, the execution of a process corresponding to at least a part of the requests from each of the multiple terminal devices 200 may be delayed, and the return of a response to the request may time out. When such a timeout occurs, the transaction in which the communication timeout occurred is executed again, and the transaction may be delayed. Then, when such transactions are delayed, congestion may occur in the communication between the information processing device 100 and each of the multiple terminal devices 200.
[0036] 4, the terminal device 200a transmits a request S111a to the information processing device 100 when performing the polling process S101. After the terminal device 200a transmits the request S111a to the information processing device 100, the terminal device 200b transmits a request S117b to the information processing device 100 when performing the write process S104. In this case, the information processing device 100 according to the comparative example executes a process in response to the request S111a, returns a response S112a in response to the execution result of the process to the terminal device 200a, and then executes a process in response to the request S117b. At this time, the execution timing of the process in response to the request S111a is delayed due to the execution of the process in response to the request S117b, and as this delay becomes larger, the return of the response S118b to the request S117b may time out. In this case, the terminal device 200b considers that the writing process S104 in the transaction related to customer service has resulted in an error, and re-executes each process from the authentication process S102 onwards in the series of processes S101 to S104.
[0037] As described above, when the communication timeout occurs, the series of processes S101 to S104 are executed again in the terminal device 200, and the transaction in the terminal device 200 is not completed and remains. In addition, even in a situation where a transaction that has already occurred is remaining, a new transaction may occur in another terminal device 200. This increases the number of transactions being executed in each terminal device 200, and the number of requests sent from each terminal device 200 to the information processing device 100 also increases proportionately. In such a situation, the load on the information processing device 100 associated with the processing of requests from each terminal device 200 increases further, and the situation may not improve, but may even worsen.
[0038] In consideration of the above situation, the information processing system 1 according to this embodiment proposes a technology that enables a transaction to be executed reliably even if congestion occurs in communication between the information processing device 100 and each of the multiple terminal devices 200.
[0039] 5 is an explanatory diagram for explaining an overview of the functions of the information processing system 1 according to this embodiment. In the information processing system 1 according to this embodiment, the information processing device 100 sets priorities based on a predetermined condition for requests transmitted from each terminal device 200, and prioritizes requests with higher priorities as targets for processing.
[0040] 5, the terminal device 200a transmits a request S211a to the information processing device 100 when performing the polling process S101. After the terminal device 200a transmits the request S211a to the information processing device 100, the terminal device 200b transmits a request S217b to the information processing device 100 when performing the write process S104. The information processing device 100 determines which of the requests S211a and S217b is to be given higher priority for processing, depending on the progress of the transaction (that is, the series of processes S101 to S104) in each of the terminal devices 200a and 200b.
[0041] 5, the terminal device 200a is executing a polling process S101, which is an earlier step in the series of processes S101 to S104, while the terminal device 200b is executing a write process S104, which is a later step in the series of processes S101 to S104. In the example shown in FIG. 5, when an error occurs in the polling process S101 being executed, the terminal device 200a may perform the polling process S101 again. In contrast, when an error occurs in the write process S104 being executed, the terminal device 200b rolls back the series of processes executed as a transaction to the mutual authentication process S102, and executes the series of processes again from the mutual authentication process S102. Therefore, the processing load that increases with the reexecution of the transaction is larger when an error occurs in the process S104 executed by the terminal device 200b than when an error occurs in the process S101 executed by the terminal device 200a. That is, the number of transactions that are left uncompleted in the entire system tends to increase more easily when an error occurs in the process S104 executed by the terminal device 200b than when an error occurs in the process S101 executed by the terminal device 200a.
[0042] In view of this background, the information processing device 100 according to this embodiment determines which of the terminal devices 200 should be given higher priority in processing a request from the terminal device 200, depending on the progress of the transaction executed in each terminal device 200. As a specific example, the information processing device 100 gives higher priority to processing a request from a terminal device 200 that is executing a process subsequent to the mutual authentication process S102 that is the starting point for re-execution in the event of an error, among the series of processes S101 to S104. Furthermore, the information processing device 100 may give higher priority to processing a request from a terminal device 200 that is further along in the transaction. That is, in the example shown in FIG. 5, the information processing device 100 prioritizes processing of a request S217b accompanying the execution of a write process S104 from the terminal device 200b over a request S211a accompanying the execution of a polling process S101 from the terminal device 200a. 5, the information processing device 100 has a receiving queue to which a received normal request is associated, and a separate receiving queue to which a request to be given higher priority for processing is associated. This allows the information processing device 100 to give higher priority to a request from a terminal device 200 whose transaction is more advanced, regardless of whether a request remains in the receiving queue to which a normal request is associated. Then, the information processing device 100 executes a process according to the request S217b and returns a response S218b according to the execution result of the process to the terminal device 200b. After that, the information processing device 100 executes a process according to the request 211a and returns a response 212a according to the execution result of the process to the terminal device 200a.
[0043] By applying the above-mentioned control, among transactions executed by each of the multiple terminal devices 200, requests corresponding to transactions closer to completion are given priority for processing. In other words, the frequency with which transactions closer to completion are re-executed due to errors caused by timeouts in returning responses to requests is further reduced. This makes it possible to further reduce the number of transactions that remain pending due to incompleteness, and to reduce the number of requests sent from the terminal device 200 to the information processing device 100 in association with the execution of each transaction. Therefore, even if congestion occurs in communications between the information processing device 100 and each of the multiple terminal devices 200, transactions can be reliably executed.
[0044] <Functional configuration> Next, an example of the functional configuration of the information processing system 1 according to the present embodiment will be described with reference to Fig. 6. Note that, in Fig. 6, in order to make the description easier to understand, an example is shown in which one terminal device 200 is connected to the information processing device 100 via a network N1. On the other hand, as described above, a plurality of terminal devices 200 may be connected to the information processing device 100 via the network N1. In this case, each terminal device 200 may have substantially the same functional configuration as the terminal device 200 shown in Fig. 6.
[0045] (Terminal device 200) First, an example of the functional configuration of the terminal device 200 will be described. The terminal device 200 includes a read / write processing unit 221, a communication unit 222, a detection unit 223, a door opening / closing unit 224, a guidance unit 225, and a process execution unit 226. Each function of the terminal device 200, which will be described in detail later, is realized by the CPU 201 expanding a program stored in the HD 203 into the RAM 205 and executing it.
[0046] The read / write processing unit 221 controls the operation of the ticket processing device 207 to read predetermined information from a recording medium such as an IC card owned by the user, and outputs the read information to the processing execution unit 226. The information read from the recording medium includes identification information of the recording medium, boarding information related to the entry / exit process at the automatic ticket gate, information related to the amount charged to the recording medium, information related to the section where the use of the commuter pass is permitted, etc. Furthermore, when key information is used for authentication between the terminal device 200 and the information processing device 100, the key information may be stored in the recording medium, or the key information may be read from the recording medium. For the sake of convenience, in the following description, it is assumed that the identification information and key information stored in the recording medium are used for authentication between the terminal device 200 and the information processing device 100 (i.e., the mutual authentication process S102 shown in FIG. 5). Furthermore, the read / write processing unit 221 writes information to a recording medium such as an IC card in response to an instruction from the process execution unit 226. Examples of information written to a recording medium such as an IC card include information on the amount remaining after deducting the fare from the amount charged to the recording medium, and boarding information according to the result of the entry / exit process at an automatic ticket gate.
[0047] The communication unit 222 is an interface that enables each unit in the terminal device 200 to transmit and receive information to and from other devices (e.g., the information processing device 100) different from the terminal device 200 via the network N1. The communication unit 222 corresponds to a communication function realized by the interface device 202, for example. In the following description, when each unit in the terminal device 200 transmits and receives information to and from other devices, it is assumed that the transmission and reception of the information is performed via the communication unit 222 unless otherwise specified.
[0048] The detection unit 223 controls the operation of the human detection device 208 to detect a user's entry into or passage through an automatic ticket gate. The door opening / closing unit 224 controls the operation of the door opening / closing device 209 to open and close the doors of the automatic ticket gate. The guidance unit 225 provides guidance by presenting various information to the user through controlling the operation of the guidance device 206. For example, the guidance unit 225 may provide guidance by causing a display device of the guidance device 206 to display a screen on which information related to the guidance is presented. The guidance unit 225 may also provide guidance by causing an audio output device of the guidance device 206 to output audio related to the guidance. The guidance unit 225 may also provide guidance by causing a lighting device of the guidance device 206 to turn on or off a lamp.
[0049] The process execution unit 226 executes various processes to realize the functions provided by the terminal device 200 . For example, the process execution unit 226 sequentially executes a series of processes S101 to S104 in this order as one transaction related to customer service, as described with reference to Fig. 5. When executing each of the series of processes S101 to S104, the process execution unit 226 requests the information processing device 100 to execute a desired process by transmitting a request to the information processing device 100 as necessary.
[0050] As a specific example, when a recording medium is recognized by the read / write processing unit 221 and the process execution unit 226 obtains information read from the recording medium from the read / write processing unit 221, the process execution unit 226 starts executing a series of processes S101 to S104 as a transaction related to customer service.
[0051] First, in polling process S101, the process execution unit 226 transmits a polling request to the information processing device 100 to check whether or not the information processing device 100 is capable of transmitting requests related to the subsequent processes S102 to S104.
[0052] When the process execution unit 226 recognizes that communication with the information processing device 100 is possible based on the response returned from the information processing device 100 in the polling process S101, it executes a mutual authentication process S102. Specifically, the process execution unit 226 generates a request based on information used for authentication, such as identification information and key information, among information read from the recording medium, and transmits the request to the information processing device 100. Then, the process execution unit 226 checks whether the authentication has been successful or not based on the response returned from the information processing device 100. The process execution unit 226 may also obtain identification information and key information from the information processing device 100 and check the legitimacy of the information processing device 100, which is the other party of communication, based on this information.
[0053] When the process execution unit 226 succeeds in the authentication with the information processing device 100, it executes the reading process S103. Specifically, the process execution unit 226 generates a request based on information used for fare settlement, such as information on the amount charged to the recording medium and information on the station where entry and exit were performed (for example, boarding information), and transmits the request to the information processing device 100. Then, when the process execution unit 226 receives a response to the request from the information processing device 100, it executes the write process S104 based on the response. Specifically, the process execution unit 226 instructs the read / write processing unit 221 to write information corresponding to the fare settlement result (for example, the remaining charge amount) to the recording medium based on the returned response. At this time, the process execution unit 226 may also instruct the read / write processing unit 221 to write information related to the station where the user entered or left the station via the automatic ticket gate to the recording medium. Furthermore, the process execution unit 226 may notify the information processing device 100 of the result of the write process S104. This enables the information processing device 100 to recognize whether or not the writing of information to the recording medium in the terminal device 200 has been completed normally.
[0054] Although the above describes an example of the process when the fare is settled, there are cases where the calculation of the charge amount after the fare is settled is not performed, such as when using a commuter pass within a valid section. In such cases, the information transmitted and received between the terminal device 200 and the information processing device 100 in the reading process S103 and the writing process S104 may be appropriately changed according to the usage scene.
[0055] Furthermore, if a response to a request is not returned from the information processing device 100 even after a predetermined period of time has elapsed since the request was transmitted to the information processing device 100, the process execution unit 226 determines that the process corresponding to the request is an error. In this case, the process execution unit 226 attempts to re-execute the transaction including the request. The re-execution of the transaction is as described with reference to FIG. 5. That is, if an error occurs in a process prior to the mutual authentication process S102, the process execution unit 226 re-executes the series of processes S101 to S104 executed as a transaction, starting from the polling process S101. If an error occurs in a process after the mutual authentication process S102, the process execution unit 226 re-executes the series of processes S101 to S104 executed as a transaction, starting from the mutual authentication process S102.
[0056] Furthermore, the process execution unit 226 may recognize the user's entry into or passage through the automated ticket barrier by acquiring information according to the detection result from the detection unit 223, and may execute various processes according to the result of the recognition. As a specific example, the process execution unit 226 may cause the door opening / closing unit 224 to close the door when the user's entry into the automated ticket barrier is detected even though the reading / writing processing unit 221 has not detected a recording medium. At this time, the process execution unit 226 may cause the guidance unit 225 to notify notification information indicating that the recording medium has not been recognized.
[0057] (Information processing device 100) Next, an example of a functional configuration of the information processing device 100 will be described. The information processing device 100 includes a communication unit 121, a request processing unit 122, and a process execution unit 123. The information processing device 100 may also include a storage unit 124. Each function of the information processing device 100, which will be described in detail later, is realized by the CPU 101 expanding a program stored in the HD 103 into the RAM 109 and executing it.
[0058] The communication unit 121 is an interface that enables each unit in the information processing device 100 to transmit and receive information to and from other devices (e.g., the terminal device 200) different from the information processing device 100 via the network N1. The communication unit 121 corresponds to a communication function realized by the interface device 102, for example. In the following description, when each unit in the information processing device 100 transmits and receives information to and from other devices, it is assumed that the transmission and reception of the information is performed via the communication unit 121 unless otherwise specified.
[0059] The storage unit 124 is a storage area that stores data and programs for each unit in the information processing device 100 to execute processing. The storage unit 124 may also store information about each terminal device 200, information about a storage medium held by each user, and the like. The storage unit 124 may be realized, for example, by a storage device built into the information processing device 100. As another example, the storage unit 124 may be realized by an external storage device different from the information processing device 100. Specifically, the storage unit 124 may be realized by a storage device external to the information processing device 100, or may be realized by a storage device connected to the information processing device 100 via a network.
[0060] When the request processing unit 122 receives a request corresponding to the polling process S101 from the terminal device 200, it transmits a response to the request to the terminal device 200. At this time, the request processing unit 122 may check whether or not it is possible to receive requests related to various processes from the terminal device 200, and may return a response to the terminal device 200 depending on the result of the check.
[0061] Furthermore, the request processing unit 122 accepts requests for the execution of various processes (for example, processes related to the mutual authentication process S102 and the reading process S103) transmitted from each terminal device 200, and causes the process execution unit 123 to execute the process requested by the request. At this time, as described with reference to Fig. 5, the request processing unit 122 determines which terminal device 200 should be given higher priority for processing the request, depending on the progress of the transaction being executed in each terminal device 200 that accepted the request. As long as the request processing unit 122 can recognize the progress of a transaction executed in each terminal device 200, the method is not particularly limited. As a specific example, the request processing unit 122 may recognize the progress of a transaction executed in the terminal device 200 according to the type of a request transmitted from the terminal device 200 (for example, whether the request is transmitted in any of the processes S101 to S103). As another example, the request processing unit 122 may recognize the progress of a transaction executed in the terminal device 200 according to information included in a request transmitted from the terminal device 200. As another example, the request processing unit 122 may recognize the progress of a transaction executed in the terminal device 200 according to processing requested by a request transmitted from the terminal device 200.
[0062] Furthermore, when the request processing unit 122 obtains the results of processing that it has requested the processing execution unit 123 to perform in response to a request from the terminal device 200, the request processing unit 122 returns a response according to the results of the processing to the terminal device 200.
[0063] The process execution unit 123 executes various processes in response to instructions from the request processing unit 122, and notifies the request processing unit 122 of the results of the execution of the processes.
[0064] As a specific example, in response to a request from the terminal device 200, the process execution unit 123 may execute authentication processing for a recording medium from which information has been read by the terminal device 200, based on identification information and key information transmitted from the terminal device 200. Note that the information collated by the process execution unit 123 when executing the authentication processing may be stored in a storage area (e.g., the storage unit 124) that the process execution unit 123 can refer to.
[0065] As another example, the process execution unit 123 may execute a process related to the settlement of the fare in response to a request from the terminal device 200, based on information on the remaining charge amount transmitted from the terminal device 200, information on the station where entry and exit were performed, and the like. The process execution unit 123 may also manage information on each recording medium, such as the remaining charge amount, by using a database or the like. In this case, the process execution unit 123 may update the information managed in the database (i.e., information on the recording medium for which the fare was settled) in response to the result of the fare settlement. Note that the program for realizing the database and the data recorded in the database may be stored in a storage area (e.g., the storage unit 124) that can be referenced by the process execution unit 123.
[0066] The above is merely an example, and does not limit the processing executed by the processing execution unit 123. As a specific example, the content of the processing requested by the terminal device 200 may differ depending on the type of the terminal device 200 that is the sender of the request, or the type of transaction executed by the terminal device 200. That is, the processing execution unit 123 is capable of appropriately executing processing that may be requested by the terminal device 200. Furthermore, programs and data for the processing execution unit 123 to execute various types of processing may be stored in advance in a storage area (e.g., the storage unit 124) that can be referenced by the processing execution unit 123.
[0067] <Processing> Next, an example of the processing of the information processing system 1 according to the present embodiment will be described with reference to Fig. 7, focusing particularly on the transmission and reception of information between the terminal device 200 and the information processing device 100. Specifically, Fig. 7 shows an example of the flow of processing related to the transmission and reception of information executed between the terminal device 200 and the information processing device 100, which is executed in each of the polling process S101, the mutual authentication process S102, and the reading process S103 shown in Fig. 5.
[0068] In S101, when transmitting a request to the information processing device 100, the process execution unit 226 of the terminal device 200 executes a predetermined pre-processing as necessary. As a specific example, when executing the mutual authentication process S102, the process execution unit 226 acquires information used for authentication, such as identification information and key information recorded on a recording medium, as a pre-processing S201. As another example, when executing the reading process S103, the processing execution unit 226 acquires, as a pre-processing S201, information used for settling the fare, such as information regarding the remaining charge amount recorded on the recording medium and information regarding the station where entry and exit were performed. Then, in S202, the process execution unit 226 transmits a request to the information processing device 100 based on the execution result of the pre-processing in S201. If there is no process that needs to be executed before transmitting a request, the process execution unit 226 may skip the execution of the pre-processing shown in S201.
[0069] In S203, when the request processing unit 122 of the information processing device 100 receives requests from each terminal device 200, the request processing unit 122 determines which request is to be given priority for processing depending on the progress of the transaction being executed in each terminal device 200. In S204, the request processing unit 122 instructs the processing execution unit 123 to execute the processing requested in the request that has been determined to be given priority for processing, and obtains information from the processing execution unit 123 according to the results of the processing. Then, in S205, the request processing unit 122 returns a response based on information corresponding to the result of the processing acquired from the processing execution unit 123 to the terminal device 200 that is the sender of the corresponding request.
[0070] In S206, when the process execution unit 226 of the terminal device 200 receives a response to the request sent in S202 from the information processing device 100, the process execution unit 226 executes post-processing in accordance with the response. As a specific example, when the process execution unit 226 receives a response from the information processing device 100 in response to a request sent to the information processing device 100 in conjunction with the execution of the read process S103, the process execution unit 226 executes the write process S104 as post-processing in S206. If there is no process that needs to be executed after receiving the response, the process execution unit 226 may skip the execution of the post-processing shown in S206.
[0071] In this way, when the process execution unit 226 sequentially executes a series of processes S101 to S104 as one transaction, it transmits a request to the information processing device 100 in each process, receives a response to the request, and transitions to the next process. On the other hand, if no response is returned from the information processing device 100 even after the permissible response period T has elapsed since the request was sent to the information processing device 100 in S202, the process execution unit 226 recognizes that an error has occurred in the process corresponding to the request. In this case, as described with reference to Fig. 5, the process execution unit 226 rolls back the series of processes S101 to S104 executed as a transaction in accordance with the process that has resulted in the error, and then executes the series of processes again.
[0072] <Modification> Next, a modified example of the information processing system 1 according to the present embodiment will be described. In this modified example, an example of a condition for the information processing device 100 (request processing unit 122) to determine which of the requests transmitted from each terminal device 200 should be given priority for processing will be described.
[0073] (Whether the process was re-executed or not) The request processing unit 122 may prioritize processing of requests sent from the terminal device 200 in response to re-execution of at least a part of a series of processes executed in a transaction due to an error such as a timeout over other requests. By applying such control, it is possible to prevent the occurrence of a situation in which requests from some terminal devices 200 remain unprocessed and the processing in the terminal device 200 never completes.
[0074] (Transaction type) The request processing unit 122 may determine the priority of a request sent from a terminal device 200 depending on the type of transaction executed in the terminal device 200.
[0075] For example, the process required differs between a case where fare settlement is required and a case where fare settlement is not required, such as when a commuter pass is used, and therefore the type of transaction executed by the terminal device 200 differs. Also, there are types of recording media such as IC cards and magnetic cards that have different information recording methods, and the process required differs depending on the recording method, and therefore the type of transaction executed by the terminal device 200 differs. In view of such characteristics, the request processing unit 122 may determine a request to be given higher priority for processing depending on the type of transaction executed on the terminal device 200 side, so that requests are processed more efficiently as a whole system.
[0076] As a specific example, when no fare settlement is required, such as when a commuter pass is used, there is no need to perform calculation of the remaining amount associated with the fare, and less information is written to the recording medium, resulting in a smaller processing load than when such calculation is required. Therefore, the request processing unit 122 may prioritize requests sent from the terminal device 200 under conditions in which no fare settlement is required over other requests. This makes it possible to process more requests per unit time, thereby enabling control so as to reduce the number of transactions that are left pending due to incomplete.
[0077] As another example, the information recording method may differ depending on whether the recording medium is a recording medium, an IC card, or a magnetic card, and the processing executed as one transaction may differ. In such a case, the request processing unit 122 may determine the transaction to be preferentially processed depending on whether the recording medium is an IC card or a magnetic card. As a more specific example, the request processor 122 may give priority to processing requests corresponding to recording media with a larger number of users. As another example, when the time required to complete each process differs depending on the type of recording medium, the request processing unit 122 may give priority to processing a request corresponding to a recording medium with a shorter time required. As another example, when the length of time until a timeout is recognized varies depending on the type of recording medium, the request processing unit 122 may give priority to processing a request corresponding to a recording medium with a shorter period. As another example, when the number of communications varies depending on the type of recording medium, the request processing unit 122 may give priority to processing a request corresponding to a recording medium with a smaller number of communications.
[0078] As described above, station service equipment is not limited to automated ticket gates, but also includes ticket vending machines, fare adjustment machines, and counter processing machines, and the contents of the processing performed are different. In particular, transactions performed by ticket vending machines, fare adjustment machines, and counter processing machines may not have stricter conditions for the time required for a series of processing to be completed than transactions performed by automated ticket gates. Due to these characteristics, the request processing unit 122 may prioritize requests corresponding to transactions performed by automated ticket gates over requests corresponding to transactions performed by other station service equipment.
[0079] (Results of the decision) The request processing unit 122 may determine a request to be given priority for processing (in other words, a request to which a response is to be returned with priority) according to the results of various determinations executed in response to a request from the terminal device 200. As a specific example, if the charge amount to the recording medium is insufficient, the terminal device 200 (automated ticket gate) will end up treating this as an error and closing the door. In such a case, even if the terminal device 200 recognizes this as an error due to a timeout, the door will end up being closed in the same way. Therefore, if the request processing unit 122 obtains a result in which the same process as when a timeout occurs on the terminal device 200 side is executed on the terminal device 200, the priority of the corresponding request may be set lower than other requests.
[0080] (Terminal device type) The request processor 122 may determine which requests are to be given priority for processing depending on the type of the terminal device 200. For example, the request processing unit 122 may determine which requests are to be given priority for processing depending on the transaction processing performance of each terminal device 200. As a more specific example, by giving priority to requests from terminal devices 200 with higher transaction processing performance, it is possible to control the number of incomplete and backlogged transactions to be reduced at any given time. As another example, the request processing unit 122 may determine which requests are to be given priority for processing depending on the difference in the period until each terminal device 200 recognizes a timeout. As a more specific example, by giving priority to processing requests from terminal devices 200 with a shorter period until the timeout, the number of opportunities for timeouts to occur decreases, and the number of opportunities for transactions to be re-executed due to the timeout also decreases proportionately. This makes it possible to control the number of transactions that remain pending due to incompleteness to be reduced.
[0081] (Speed of communication between terminal devices) The request processing unit 122 may determine which requests are to be given priority for processing, depending on the speed of communication with the terminal device 200 (that is, the speed of communication related to the transmission of the requests). As a specific example, it is possible to control the number of pending transactions to be reduced by giving priority to requests from terminal devices 200 with faster communication speeds.
[0082] (Location of terminal equipment) The request processing unit 122 may determine which requests are to be given priority for processing depending on the installation location of the terminal device 200 (for example, the area in which the terminal device 200 is installed). As a specific example, by giving priority to processing requests from terminal devices 200 installed in areas with more users, it becomes possible to reduce the frequency with which transactions are re-executed due to timeouts for terminal devices 200 installed in those areas. This makes it possible to suppress an increase in the amount of information transmitted and received over the network (transmission path) between the information processing device 100 and the terminal devices 200 installed in the above-mentioned areas, and makes it possible to reliably execute transactions even when network congestion occurs.
[0083] (supplement) Note that the above is merely an example, and does not necessarily limit the configuration or processing of the information processing system 1 according to the present embodiment. For example, what conditions should be applied to enable more efficient processing of requests may differ depending on the use case. Therefore, what conditions should be applied when determining which requests should be given priority for processing may be changed as appropriate depending on the use case. Specifically, a request to be preferentially processed may be determined based on a combination of the conditions related to the transaction progress described above as an embodiment and one or more of the conditions exemplified above as a modified example. Also, instead of the conditions related to the transaction progress described above as an embodiment, one or more of the conditions exemplified above as a modified example may be applied to determine a request to be preferentially processed. Also, when multiple conditions are applied when determining a request to be preferentially processed, the condition to be given priority may be appropriately changed.
[0084] <Conclusion> As described above, in the information processing system according to this embodiment, the information processing device 100 acquires requests via the network from each of one or more terminal devices 200. The information processing device 100 determines, among the requests related to a transaction executed by the terminal device 200, a request to be given higher priority for processing in accordance with the progress of the transaction. With the above configuration, it is possible to reduce the number of pending transactions in the system as a whole, and therefore the number of requests sent in association with the execution of the transactions can be reduced in proportion to the number of transactions. Therefore, with the information processing system 1 according to this embodiment, it is possible to expect the effect of ensuring that transactions are executed even when network congestion occurs.
[0085] In the above, the technology according to the present disclosure has been described focusing mainly on an example of application to an information processing system 1 (i.e., a station service equipment system) including station service equipment as a terminal device. On the other hand, the technology according to the present disclosure can be applied to a system that has a concept of the progress of a transaction executed by each terminal device (in other words, a system in which predetermined processes are executed sequentially in a time series as one transaction). In particular, the technology according to the present disclosure has a high affinity with a system in which a series of processes including processes that are the starting point of each process such as authentication (for example, a process that is the starting point when re-executing) are executed as one transaction. In addition, the technology according to the present disclosure reduces the number of pending transactions as described above, thereby reducing the number of requests sent with the execution of the transactions. Due to such characteristics, the technology according to the present disclosure is particularly compatible with systems that apply a connectionless protocol that does not involve congestion control, such as UDP, for communication between devices. Of course, the technology according to the present disclosure can also be applied to cases where other protocols are used, not limited to connectionless protocols, to achieve the effect of reducing the number of requests sent with the execution of transactions. [Explanation of symbols]
[0086] 1 Information processing system, 100 Information processing device, 121 Communication unit, 122 Request processing unit, 123 Processing execution unit, 124 Memory unit, 200 Terminal device, 221 Read / write processing unit, 222 Communication unit, 223 Detection unit, 224 Door opening / closing unit, 225 Guidance unit, 226 Processing execution unit
Claims
1. an acquisition unit that acquires requests transmitted from each of one or more station service devices via a network using a connectionless protocol; a determination unit that determines, among the requests related to the transaction executed by the station service equipment, a request to be processed with higher priority in accordance with a progress of the transaction; Equipped with The transaction includes a plurality of operations that are executed sequentially, the determination unit determines the request to be processed depending on whether a predetermined process among the plurality of processes has been completed; The predetermined process is a process that is a starting point for re-execution in response to an error occurring in another process subsequent to the predetermined process. Information processing device.
2. The information processing device according to claim 1 , wherein the determination unit determines the request to be processed such that processing of the request related to the transaction for which the predetermined processing has been completed is given a higher priority.
3. The information processing apparatus according to claim 1 , wherein the predetermined process is a process related to authentication for executing another process subsequent to the predetermined process.
4. 4. The information processing device according to claim 1, wherein the determination unit determines the request to be processed such that processing of the request related to the transaction that is more advanced in progress is given higher priority.
5. 5. The information processing device according to claim 1, wherein the determination unit determines the request to be processed so that processing of the request related to the transaction in which at least a portion of the processing has been re-executed due to an error is given higher priority.
6. The information processing device according to claim 1 , wherein the determination unit determines the request to be processed according to a type of the transaction.
7. The information processing device according to claim 1 , wherein the determination unit determines the request to be processed depending on a type of the station service equipment.
8. The information processing device according to claim 1 , wherein the determination unit determines the request to be processed in accordance with a communication speed related to transmission of the request.
9. The information processing device according to claim 1 , wherein the determination unit determines the request to be processed depending on an installation position of the station service equipment.
10. The station service equipment is an automatic ticket gate, The transaction is a transaction related to a customer service process of the automated ticket gate. The information processing device according to any one of claims 1 to 9.
11. The computer receiving a request transmitted from each of one or more station equipment via a network using a connectionless protocol; determining a request to be processed with higher priority among the requests related to a transaction executed by the station service equipment in accordance with a progress of the transaction; Including, The transaction includes a plurality of operations that are executed sequentially, determining the request to be processed depending on whether a predetermined process among the plurality of processes has been completed; The predetermined process is a process that is a starting point for re-execution in response to an error occurring in another process subsequent to the predetermined process. Information processing methods.
12. On the computer, receiving a request transmitted from each of one or more station equipment via a network using a connectionless protocol; determining a request to be processed with higher priority among the requests related to a transaction executed by the station service equipment in accordance with a progress of the transaction; Run the command, The transaction includes a plurality of operations that are executed sequentially, determining the request to be processed depending on whether a predetermined process among the plurality of processes has been completed; The predetermined process is a process that is a starting point for re-execution in response to an error occurring in another process subsequent to the predetermined process. program.
13. One or more station service devices; An information processing device; Including, The information processing device includes: an acquisition unit that acquires requests transmitted from each of the one or more station service devices via a network using a connectionless protocol; a determination unit that determines, among the requests related to the transaction executed by the station service equipment, a request to be processed with higher priority in accordance with a progress of the transaction; Equipped with The transaction includes a plurality of operations that are executed sequentially, the determination unit determines the request to be processed depending on whether a predetermined process among the plurality of processes has been completed; The predetermined process is a process that is a starting point for re-execution in response to an error occurring in another process subsequent to the predetermined process. Information processing system.
Citation Information
Patent Citations
Managing information storage device
JP1997274583A
Information processing system and optimization restoring method
JP2005326913A
Execution control device and method
JP2007233559A
Server device, system, information processing method, and program
JP2015018476A
System, and information processing method
JP2015018501A
