Information processing apparatus, information processing terminal apparatus, and information processing method

文档序号:118980 发布日期:2021-10-19 浏览:37次 中文

阅读说明:本技术 信息处理装置、信息处理终端装置和信息处理方法 (Information processing apparatus, information processing terminal apparatus, and information processing method ) 是由 坂场功士 中津留勉 铃木友基 石河正继 于 2020-01-15 设计创作,主要内容包括:信息处理装置40生成针对通信终端装置20的命令和重试命令,并将生成的命令和重试命令连续输出到信息处理终端装置30。信息处理终端装置30获取从信息处理装置40连续输出的针对通信终端装置20的命令和重试命令,并将所获取的命令输出到通信终端装置20。另外,在由于无法获取对命令的响应而执行重试处理的情况下,信息处理终端装置30将已经获取的重试命令输出到通信终端装置20。因此在从信息处理终端装置30向信息处理装置40输出命令请求之后可以在无需等待获取重试命令的情况下执行重试处理。因此,可以高效地执行经由信息处理终端装置的通信终端装置和信息处理装置之间的处理。(The information processing apparatus 40 generates an instruction and a retry instruction for the communication terminal apparatus 20, and continuously outputs the generated instruction and retry instruction to the information processing terminal apparatus 30. The information processing terminal device 30 acquires the command and retry command for the communication terminal device 20, which are continuously output from the information processing device 40, and outputs the acquired commands to the communication terminal device 20. In addition, in the case where the retry process is executed because the response to the command cannot be acquired, the information processing terminal device 30 outputs the retry command that has been acquired to the communication terminal device 20. It is therefore possible to perform the retry process without waiting for acquisition of a retry command after outputting a command request from the information processing terminal device 30 to the information processing device 40. Therefore, it is possible to efficiently perform processing between the communication terminal apparatus and the information processing apparatus via the information processing terminal apparatus.)

1. An information processing apparatus comprising:

a command generation section configured to generate a command and a retry command for a communication terminal apparatus and output the generated retry command together with the command.

2. The information processing apparatus according to claim 1,

the command generation unit generates a retry command based on whether or not the command to the communication terminal device is a command having idempotency.

3. The information processing apparatus according to claim 2,

when the command to the communication terminal device is an idempotent command, the command generation unit generates the retry command by changing a sequence number of the idempotent command.

4. The information processing apparatus according to claim 2,

the command generation unit generates a command for checking a state of the communication terminal device as the retry command when the command to the communication terminal device is a command without idempotent.

5. The information processing apparatus according to claim 2,

in a case where a response to be output from the communication terminal device in response to the command is to be encrypted, the command generating section calculates an expected value of the response or a hash value of the expected value, and outputs the calculated expected value or the calculated hash value together with the generated command and the retry command.

6. The information processing apparatus according to claim 2,

the command generation unit sets a sequence number indicating a processing order to the command and the retry command.

7. The information processing apparatus according to claim 6,

the command generation unit adjusts the number of retry commands according to the number of retries or the retry occurrence state.

8. The information processing apparatus according to claim 7,

the command generation unit determines the number of retries or the retry occurrence state based on a sequence number of the command and a sequence number of a response output from the communication terminal device.

9. An information processing method comprising:

an instruction and a retry instruction for a communication terminal device are generated, and the generated retry instruction is output together with the instruction from an instruction generation unit.

10. An information processing terminal device comprising:

an instruction control section configured to acquire an instruction and a retry instruction for a communication terminal apparatus output from an information processing apparatus, output the acquired instruction to the communication terminal apparatus, and output the acquired retry instruction to the communication terminal apparatus in retry processing.

11. The information processing terminal device according to claim 10, further comprising:

a communication section configured to perform short-range wireless communication with the communication terminal apparatus, wherein,

the command control unit outputs the command or the retry command via the communication unit.

12. The information processing terminal device according to claim 10,

the command control unit outputs a response output from the communication terminal device to the information processing device.

13. The information processing terminal device according to claim 10,

the command control unit acquires the command, the retry command, and an expected value of a response to the command or a hash value of the expected value, and outputs the response to the information processing device when the acquired expected value or the acquired hash value of the expected value matches the expected value or the hash value of the expected value based on the response output from the communication terminal device.

14. An information processing method comprising:

the command and retry command for a communication terminal device output from an information processing device are acquired, the acquired command is output to the communication terminal device, and the acquired retry command is output from a command control section to the communication terminal device in retry processing.

Technical Field

The present technology relates to an information processing device, an information processing terminal device, and an information processing method, and enables efficient execution of processing between a communication terminal device and an information processing device via the information processing terminal device.

Background

In a conventional information processing system, in the case of transmitting and receiving commands and responses between a server and a client, such transmission and reception is performed for each command or response. In this manner, in the event of an error in the server and client, the server again transmits the command. Therefore, in order to achieve safe and efficient information communication, patent document 1 discloses a technique in which an information processing terminal apparatus issues a request to establish communication via a network to an information processing apparatus, and performs control based on a command included in a packet supplied from the information processing apparatus through communication established in response to the request. In addition, the information processing apparatus establishes communication with the information processing terminal apparatus via a network in response to a request from the information processing terminal apparatus, and transmits a packet including a command to the information processing terminal apparatus when the communication is established.

Reference list

Patent document

Patent document 1: japanese patent laid-open No. 2004-186883

Disclosure of Invention

Technical problem

Incidentally, in the case where short-range wireless communication is used to establish communication via a network, if the communication environment changes after the communication is established, the communication may be interrupted. For example, in the case where a reader/writer is provided between an information processing apparatus and an information processing terminal apparatus and short-distance wireless communication is to be performed between the information processing terminal apparatus and the reader/writer, if the information processing terminal apparatus is far from the reader/writer, communication cannot be performed between the information processing apparatus and the information processing terminal apparatus. In this case, the reader/writer needs to acquire a retry command for executing the retry process from the information processing apparatus, thereby taking time to perform the retry process.

Therefore, the present technology aims to provide an information processing device, an information processing terminal device, and an information processing method capable of efficiently performing processing between a communication terminal device and an information processing device via the information processing terminal device.

Solution to the problem

A first aspect of the present technology resides in an information processing apparatus comprising: a command generation section configured to generate a command and a retry command for the communication terminal apparatus and output the generated retry command together with the command.

According to this technique, the command generation unit generates a command for the communication terminal device and a retry command based on whether or not the command is an idempotent command, and outputs the generated retry command together with the command. When the command to the communication terminal device is an idempotent command, the command generation unit generates a retry command by repeating the idempotent command. Further, the command generating unit generates a command for checking the state of the communication terminal device as a retry command when the command to the communication terminal device is a command without idempotent. In addition, when a response to be output from the communication terminal device in response to the command is to be encrypted, the command generation unit calculates an expected value of the response or a hash value of the expected value, and outputs the calculated expected value or the calculated hash value together with the command and the retry command. The command generation unit sets a sequence number indicating a processing order to the command and the retry command.

When the number of retry orders is to be adjusted based on the retry number or the retry occurrence state, the order generation unit determines the retry number or the retry occurrence state based on the sequence number of the order and the sequence number of the response output from the communication terminal device.

A second aspect of the present technology resides in an information processing method comprising: an instruction and a retry instruction for the communication terminal device are generated, and the retry instruction is output together with the instruction from the instruction generating section.

A third aspect of the present technology resides in an information processing terminal device comprising: a command control section configured to acquire a command and a retry command for the communication terminal apparatus, which are continuously output from the information processing apparatus, output the acquired command to the communication terminal apparatus, and output the acquired retry command to the communication terminal apparatus in retry processing.

According to the present technology, the information processing terminal device includes a communication section that performs short-range wireless communication with the communication terminal device, and the command control section outputs a command or a retry command through the communication section. The command control section acquires a command and a retry command for the communication terminal apparatus that have been continuously output from the information processing apparatus, and outputs the acquired command to the communication terminal apparatus. In addition, when a response cannot be acquired from the communication terminal apparatus, the information processing terminal apparatus executes retry processing and outputs an acquired retry command to the communication terminal apparatus in the retry processing. The command control unit outputs the response output from the communication terminal device to the information processing device. The command control unit acquires the command, the retry command, and the expected value of the response to the command or the hash value of the expected value, and outputs the response to the information processing device when the acquired expected value or the acquired hash value of the expected value matches the expected value or the hash value of the expected value based on the response output from the communication terminal device.

A fourth aspect of the present technology resides in an information processing method comprising: the command and retry command for the communication terminal device output from the information processing device are acquired, the acquired command is output to the communication terminal device, and the acquired retry command is output from the command control section to the communication terminal device in the retry process.

Drawings

Fig. 1 is a diagram showing a configuration of an information processing system.

Fig. 2 is a diagram illustrating the configuration of a communication terminal device (in the case of a contactless IC card).

Fig. 3 is a diagram illustrating a configuration of an information processing terminal apparatus.

Fig. 4 is a diagram illustrating a configuration of an information processing apparatus.

Fig. 5 is a diagram illustrating a packet of a command to be output from the information processing apparatus 40.

Fig. 6 is a flowchart illustrating an operation of the information processing terminal apparatus.

Fig. 7 is a timing chart showing an example of the operation of the information processing system.

FIG. 8 depicts a diagram illustrating idempotent commands and non-idempotent commands.

Fig. 9 is a flowchart illustrating an operation of the information processing terminal device.

Fig. 10 is a timing diagram showing an example of the operation of the information processing system (in the case of a non-idempotent command).

Fig. 11 is a timing chart illustrating an operation between an information processing apparatus and an information processing terminal apparatus.

Detailed Description

The mode for carrying out the present technique will be described below. Note that the description will be given in the following order.

1. Configuration of information processing system

2. First operation of information processing system

3. Second operation of information processing system

4. Other operations of information processing system

<1. configuration of information processing System >

Fig. 1 depicts a configuration of an information processing system using an information processing apparatus according to the present technology. The information processing system 10 includes a communication terminal device 20, an information processing terminal device 30, and an information processing device (e.g., server) 40. The information processing apparatus 40 reads information from the communication terminal apparatus 20 or writes information to the communication terminal apparatus 20 via the information processing terminal apparatus 30. Further, the information processing terminal device 30 performs wireless communication with the communication terminal device 20.

The communication terminal device 20 includes at least a function for performing wireless communication with the information processing terminal device 30. For example, the communication terminal apparatus 20 is a mobile electronic device such as a contactless IC card and a smart phone or an IOT (internet of things) device or the like. Note that in the following description, a case where short-distance wireless communication is performed between a contactless IC card and a reader/writer will be described using the communication terminal device 20 as the contactless IC card and the information processing terminal device 30 as the reader/writer.

Fig. 2 illustrates a configuration of a communication terminal apparatus (in the case of a noncontact IC card). The communication terminal device 20 includes a communication unit 21, a power supply unit 22, a storage unit 23, and a control unit 24.

The communication section 21 includes an antenna 21a and a modulation/demodulation section 21b to perform short-range wireless communication with the information processing terminal device 30. The antenna 21a is used for transmitting information or the like or is coupled to the information processing terminal device 30 by electromagnetic induction to supply and receive electric power, and is connected to the modulation/demodulation section 21b and the power supply section 22.

The modulation/demodulation section 21b outputs a received signal obtained by demodulating the radio signal received by the antenna 21a to the control section 24. In addition, the modulation/demodulation section 21b modulates the transmission signal supplied from the control section 24, and transmits the modulated signal as a radio signal from the antenna 21 a.

The power supply section 22 converts an alternating-current voltage generated in the antenna 21a as a result of being coupled to the information processing terminal device 30 by electromagnetic induction into a direct-current constant voltage, and supplies electric power to the modulation/demodulation section 21b, the storage section 23, and the control section 24.

The storage section 23 stores therein various kinds of information. For example, the storage section 23 stores therein information specific to the user of the communication terminal apparatus, information supplied from the information processing apparatus, and the like.

The control section 24 processes the command indicated by the received signal, and for example, reads out information stored in the storage section 23 or writes information to the storage section 23. Further, the control unit 24 generates a transmission signal indicating a response to the received command, and outputs the signal to the modulation/demodulation unit 21 b. Further, the control section 24 decodes the encrypted command and encrypts the response.

Fig. 3 illustrates a configuration of an information processing terminal apparatus. The information processing terminal device 30 includes a communication unit 31, a network communication unit 32, an input unit 33, a storage unit 34, and a command control unit 35.

The communication section 31 includes an antenna 31a and a modulation/demodulation section 31b to implement short-range wireless communication with the communication terminal device 20. The antenna 31a is used for transmitting information or the like or supplying and receiving power by being electromagnetically inductively coupled to the communication terminal device 20, and is connected to the network communication section 32. The modulation/demodulation section 31b modulates the command or retry command supplied from the command control section 35, and transmits the modulated command as a wireless signal from the antenna 31 a. Further, the modulation/demodulation section 31b outputs a reception signal obtained by demodulating the radio signal received by the antenna 31a to the command control section 35.

The network communication unit 32 is used to connect the information processing terminal device 30 to the network 50. The network communication section 32 outputs a command or the like supplied from the information processing apparatus 40 via the network 50 to the command control section 35. The network communication unit 32 outputs a response or the like output from the command control unit 35 to the information processing device 40 via the network 50.

The input unit 33 has a function of receiving an operation input by a user. The input section 33 includes operation buttons, a touch panel, a keyboard, a microphone, and the like. The input unit 33 generates an operation signal based on a user operation, and outputs the signal to the command control unit 35.

The storage section 34 may include a semiconductor memory such as a ROM or a RAM, or may include a magnetic recording device, an optical recording device, a magneto-optical recording device, or the like. The storage unit 34 stores therein a program for operating the information processing terminal device 30 and various data. In addition, the storage section 34 also stores therein retry commands supplied from the information processing apparatus 40, expected values of responses, and the like.

Command control unit 35 executes a program stored in storage unit 34 to control each unit so that information processing terminal device 30 performs a predetermined operation. Further, the command control unit 35 controls each unit based on an operation signal from the input unit 33 so that the information processing terminal device 30 performs an operation in accordance with a user operation. For example, the command control section 35 performs processing such as: the instruction and the like are acquired from the information processing apparatus 40, the instruction and the retry process output to the communication terminal apparatus 20, the response and the like are acquired from the communication terminal apparatus 20, and the response is output to the information processing apparatus 40. The command control unit 35 acquires a command and a retry command for the communication terminal apparatus output from the information processing apparatus, outputs the acquired command to the communication terminal apparatus, and outputs the acquired retry command to the communication terminal apparatus in the retry process.

Fig. 4 illustrates a configuration of an information processing apparatus. The information processing apparatus 40 includes a network communication unit 41, a storage unit 42, a command generation unit 43, and a control unit 44.

The network communication unit 41 is used to connect the information processing apparatus 40 to the network 50. The network communication section 41 outputs information supplied via the network to the control section 44. Further, the network communication unit 41 outputs the information supplied from the control unit 44 to the information processing terminal device 30 via the network.

The storage unit 42 is a database that stores various information related to the user of each communication terminal apparatus and the like. Further, the storage unit 42 may store an application program or the like to be executed by the information processing apparatus 40.

The command generation section 43 generates a command and a retry command for the communication terminal apparatus, and causes the generated retry command to be output from the communication section together with the command for the communication terminal apparatus. In addition, the command generating section 43 may be provided with a security module. The security module is a module provided with an application having a security function (generally referred to as SAM: secure application module). The security module performs, for example, authentication of the communication terminal device 20, or encryption of a command, decoding of a response, and the like to read out information from the communication terminal device 20 or write information into the communication terminal device 20 while securing security. In the case where the response to be output from the communication terminal device 20 in response to the command is to be encrypted, the command generating section 43 may calculate an expected value of the response (may be a hash value of the expected value; simply referred to as an expected value in the following description) and output the expected value from the network communication section 41 together with the generated command and retry command. The command generation unit 43 sets a sequence number indicating a processing procedure to the command and the retry command.

The control section 44 executes an application program or the like recorded in the storage section 42 to execute processing such as: the information stored in the storage section 42 is updated, the information acquired via the network communication section 41 is registered in the storage section 42, and the information is read out from the storage section 42. Further, the control section 44 controls the command generation section 43 to generate a command or the like for executing processing such as reading out information from the communication terminal device 20 or writing information into the communication terminal device 20, and causes the network communication section 41 to output the generated command or the like.

<2. first operation of information processing System >

Next, the operation of the information processing system will be described. The information processing apparatus 40 performs polling by using the information processing terminal apparatus 30, and detects the communication terminal apparatus 20 that can perform short-range wireless communication with the information processing terminal apparatus 30. The information processing terminal device 30 receives a polling response including the manufacturing id (idm), the manufacturing parameter (PMm), and the like of the communication terminal device 20, and outputs the polling response to the information processing device 40. Note that the maximum response time parameter is indicated by the manufacturing parameter (PMm).

Thereafter, the information processing apparatus 40 performs mutual authentication with the communication terminal apparatus 20, and transmits various commands to the communication terminal apparatus 20 via the information processing terminal apparatus 30 after the authentication, the communication terminal apparatus 20 can perform short-range wireless communication with the information processing terminal apparatus 30.

Fig. 5 illustrates a packet of a command to be output from the information processing apparatus 40. The command includes a command code, a sequence number, and command data. The command code indicates what the command's packet is. The sequence number is a value indicating the processing order in the communication terminal device 20 and the information processing device 40.

The communication terminal device 20 and the information processing device 40 each increment the serial number by "one" each time the processing is executed. Therefore, in the case where a command is output to the communication terminal device 20 and the command is being processed in the communication terminal device 20 but the information processing terminal device 30 cannot receive a response, if the retry process is performed without incrementing the sequence number, the retry command will be ignored in the communication terminal device 20 because the processed command and retry command will have the same sequence number. Further, if the command is ignored in the communication terminal device 20, it is difficult to determine whether the command has not yet reached the communication terminal device 20 or the command is ignored by the communication terminal device 20. Therefore, when the next command or retry command is transmitted, the sequence number needs to be incremented in advance.

For example, in the case of processing a command having a sequence number of "m" in the communication terminal device 20, the sequence number is updated to "m + 1", and the sequence number of a response to the command having the sequence number of "m" is set to "m + 1". Here, if a command with a sequence number of "m" is used in the retry process, the communication terminal device 20 invalidates the retry command because such a sequence number is equal to or smaller than the updated sequence number of "m + 1" stored in the communication terminal device 20. Therefore, a sequence number having a value larger than the value of the sequence number stored in the communication terminal device 20, for example, "m + 2" is set to the retry order.

Incidentally, when the command has not yet reached the communication terminal device 20, no response is sent from the communication terminal device 20. In addition, there is a case where the information processing terminal device 30 cannot receive the response transmitted from the communication terminal device 20. Therefore, in the case where a response cannot be received even after the timeout value set based on the maximum response time parameter indicated by the manufacturing parameter (PMm) included in the polling response is exceeded, the retry process is performed as described above.

In the conventional retry process, the information processing terminal device 30 needs to make a request for a command to the information processing device 40, and the information processing device 40 needs to cause the command generating section 43 to generate a command whose serial number is being updated in response to the request from the information processing terminal device 30 and output the generated command to the communication terminal device 20 via the information processing terminal device 30, thereby taking time to perform the retry process.

In this manner, when generating a command to be output to the communication terminal device 20, the information processing device 40 generates a command for retry processing with an incremented serial number, and outputs the generated retry command to the information processing terminal device 30 together with the command to be output to the communication terminal device 20. In addition, in the case of executing the retry process, the information processing terminal device 30 outputs the retry process command that has been supplied from the information processing device 40 to the communication terminal device 20 without making a request for the command to the information processing device 40.

Fig. 6 is a flowchart illustrating an operation of the information processing terminal apparatus. In step ST1, the information processing terminal apparatus sets a timeout value. For example, the information processing terminal device 30 performs polling to detect the communication terminal device 20 that can perform short-range wireless communication with the information processing terminal device 30, sets the maximum response time indicated by parameter information (e.g., manufacturing parameter (PMm)) included in the polling response supplied from the communication terminal device 20 as a timeout value, and proceeds to step ST 2. Note that the information processing terminal device 30 outputs the card identification information (e.g., manufacturing IDm) included in the polling response to the information processing device 40.

In step ST2, the information processing terminal device acquires a command from the information processing device. In the information processing apparatus 40, a command and a retry command to be output to the communication terminal apparatus 20 that can perform short-range wireless communication with the information processing terminal apparatus 30 are generated based on the card identification information or the like, and the information processing terminal apparatus 30 proceeds to step ST3 after acquiring the command and the retry command output from the information processing apparatus 40.

In step ST3, the information processing terminal device outputs a command to the communication terminal device. The information processing terminal device 30 outputs the command acquired in step ST2 or the retry command subsequently specified in step ST7 to the communication terminal device 20 by short-range wireless communication, and proceeds to step ST 4.

In step ST4, the information processing terminal device determines whether a response has been acquired before a timeout. The information processing terminal device 30 proceeds to step ST5 in the case where the length of time that has elapsed since the output of the command in step ST2 becomes longer than the length of time indicated by the timeout value has been before the response is acquired, but proceeds to step ST6 in the case where the former becomes longer than the latter before the response has not been acquired.

In step ST5, the information processing terminal apparatus outputs a response to the information processing apparatus. The information processing terminal device 30 outputs the response supplied from the communication terminal device 20 to the information processing device 40.

Proceeding from step ST4 to step ST6, the information processing terminal device determines whether output of the retry order is completed. In the case where the retry order acquired in step ST2 includes a retry order that has not been output to the communication terminal device 20, the information processing terminal device 30 proceeds to step ST7, and in the case where the output of the acquired retry order is completed, the information processing terminal device 30 proceeds to step ST 8.

In step ST7, the information processing terminal apparatus updates the command to be output. The information processing terminal device 30 designates, of the retry orders acquired in step ST2, an order that has not been output to the communication terminal device 20 and is a retry order having a sequence number with the first processing order as an order to be output to the communication terminal device 20, and returns to step ST 3.

In step ST8, the information processing terminal apparatus issues a notification to the information processing apparatus. The information processing terminal device 30 notifies the information processing device 40 that a response to the command acquired in step ST2 cannot be acquired. Note that, in the case where the information processing apparatus 40 determines that communication cannot be performed with the communication terminal apparatus 20 when a response is not supplied even after a predetermined length of time has elapsed from the output of the command, the processing in step ST8 may not be provided.

Fig. 7 is a sequence diagram showing an example of the operation of the information processing system. In step ST11, the information processing system performs polling and authentication processing. The information processing terminal device 30 performs polling to detect the communication terminal device 20 that can perform short-range wireless communication with the information processing terminal device 30, and sets the maximum response time indicated by parameter information (e.g., manufacturing parameter (PMm)) included in the polling response supplied from the communication terminal device 20 as a timeout value. Further, the information processing terminal device 30 outputs the card identification information (e.g., manufacturing IDm) included in the polling response to the information processing device 40. The information processing apparatus 40 performs an authentication process by using the card identification information supplied from the communication terminal apparatus 20.

In step ST12, the information processing apparatus 40 generates a command for the authenticated communication terminal apparatus 20 and outputs the command. The command to be output to the communication terminal device 20 has a sequence number of "1", and a command for retry processing is generated, the command for retry processing being different from the above-described command only in the sequence number. Note that in fig. 7, retry orders with sequence numbers "3" and "5" are generated. The command with the sequence number "1" and the retry commands with the sequence numbers "3" and "5" are output to the information processing terminal device 30 in common.

In step ST13, the information processing terminal device 30 outputs a command with the serial number "1" to the communication terminal device 20.

In a case where the information processing terminal device 30 cannot acquire a response even after the time length indicated by the timeout value has elapsed from the output of the command in step ST13, the information processing terminal device 30 executes retry processing, and outputs a retry command to the communication terminal device 20 as shown in step ST 14. In the retry process, of the retry orders acquired in step ST12, an order that has not been output to the communication terminal device 20 and is a retry order having a sequence number with the first processing order, that is, an order having a sequence number of "3" in step ST14 is output to the communication terminal device 20.

When a response is supplied from the communication terminal device 20 to the information processing terminal device 30 in step ST15, the information processing terminal device 30 outputs the acquired response to the information processing device 40 as shown in step ST 16. Since the sequence number of the command is incremented and used as the sequence number of the response, the response supplied in step ST15 has a sequence number of "4".

Note that in the conventional information processing system, the retry command indicated in step ST2 is not supplied to the information processing terminal device, and therefore, in the retry process, a command request is made to the information processing device 40 as shown in step ST14c, and thereafter, the command supplied from the information processing device 40 is output to the communication terminal device 20.

As described above, the information processing terminal device 30 is supplied with the command to be output to the communication terminal device 20 and the retry command from the information processing device, and therefore can execute the retry process by using the retry command supplied together with the command to be output to the communication terminal device 20. Therefore, the time required for the retry process can be shortened as compared with the conventional configuration in which a command request is made at the time of the retry process and the retry process is executed with a command supplied from the information processing apparatus 40. In addition, generating a command for retrying processing at the time of generating a command to be transmitted to the communication terminal device 20 and supplying the command for retrying processing to the information processing terminal device 30 together with the command to be transmitted to the communication terminal device 20 makes it possible to efficiently execute processing of generating a command in the information processing device 40 and processing of transmitting a command to the information processing terminal device 30.

<3. second operation of information processing System >

Incidentally, as the command to be supplied from the information processing apparatus 40 to the communication terminal apparatus, not only a command that will obtain the same processing result even if the supplied command is repeatedly processed, that is, a command having what is called idempotency (such a command is referred to as "idempotency command" in the present technology), but also a command that will obtain a different processing result as a result of the supplied command is repeatedly processed, that is, a command not having what is called "non-idempotency command" in the present technology is used. Therefore, if a non-idempotent command is repeated in the retry process, the information indicated by the response may be different for each retry process.

FIG. 8 illustrates idempotent commands and non-idempotent commands. The idempotent command (for example, a read command or a card status check command) is a command for reading out information stored in the communication terminal device 20, and therefore, even if the read command or the card status check command is repeatedly processed, the same processing result will be obtained. In addition, the write command for rewriting is a command for rewriting information of the communication terminal device 20 with new information, and therefore, even if the write command is repeatedly processed, the same processing result will be obtained. In fig. 8, (a) shows a case where read commands with sequence numbers "3" and "5" as retry commands are output together with a read command with sequence number "1".

On the other hand, a non-idempotent command (for example, a write command indicating subtraction) is a command for subtracting a specified value from a value stored in the communication terminal apparatus 20, and therefore if the write command is repeatedly processed, a continuously decreasing value will be obtained as a processing result.

In this manner, the command generating unit 43 of the information processing device 40 generates a retry command based on whether or not the command to the communication terminal device 20 is an idempotent command. For example, when an idempotent command is to be output to the communication terminal device 20, the command generating unit 43 generates a command whose sequence number is incremented only as a retry command, as described above. In addition, when a non-idempotent command is to be output to the communication terminal device 20, the command generating section 43 generates a command for checking the state of the communication terminal device 20 as a retry command.

In addition, in the case where the information processing apparatus 40 encrypts the packet of the command and the communication terminal apparatus 20 encrypts the packet of the response, the information processing terminal apparatus 30 cannot determine whether or not the packet of the response corresponding to the command is supplied. Therefore, in the case where the response to be output from the communication terminal device in response to the command is to be encrypted, the command generating section 43 of the information processing device 40 calculates an expected value of the response, and outputs the calculated expected value together with the generated command and retry command. Further, the information processing terminal device 30 is enabled to determine whether or not the relevant response is a response to the command by using the acquired expected value. In fig. 8, (b) shows a case where the following are output together with the write command having the sequence number "1": a read command whose sequence number is "3" as a retry command for checking the state of the communication terminal device 20, an expected value of a response (or a hash value of the expected value), and a write command whose sequence number is "5" as a retry command to be used in a case where the expected value of the response (or the hash value of the expected value) and the expected value of a response from the communication terminal device 20 (or the hash value of the expected value) do not match with each other as described later.

Fig. 9 is a flowchart illustrating an operation of the information processing terminal apparatus. In step ST21, the information processing terminal apparatus sets a timeout value. The information processing terminal device 30 performs, for example, polling to detect the communication terminal device 20 that can perform short-range wireless communication with the information processing terminal device 30, sets the maximum response time indicated by parameter information (e.g., manufacturing parameter (PMm)) included in the polling response supplied from the communication terminal device 20 as a timeout value, and then proceeds to step ST 22. Note that the information processing terminal device 30 outputs the card identification information (e.g., manufacturing IDm) included in the polling response to the information processing device 40.

In step ST22, the information processing terminal device acquires a command from the information processing device. The information processing apparatus 40 generates a command and a retry command to be output to the communication terminal apparatus 20 that can perform short-range wireless communication with the information processing terminal apparatus 30 based on the card identification information and the like. The information processing terminal device 30 acquires the command and retry command output from the information processing device 40 or the command, retry command and desired value output from the information processing device 40, and proceeds to step ST 23.

In step ST23, the information processing terminal device outputs a command to the communication terminal device. The information processing terminal device 30 outputs the command acquired in step ST22 or the retry command subsequently specified in step ST28 to the communication terminal device 20 by short-range wireless communication, and proceeds to step ST 24.

In step ST24, the information processing terminal device determines whether a response has been acquired before a timeout. The information processing terminal device 30 proceeds to step ST25 in the case where the length of time that has elapsed since the output of the command in step ST22 becomes longer than the length of time indicated by the timeout value before a response has not been acquired, but proceeds to step ST26 in the case where the former becomes longer than the latter before a response has been acquired.

In step ST25, the information processing terminal device determines whether the expected value of the response to the retry command matches the expected value supplied from the information processing device. The information processing terminal device 30 calculates an expected value of a response supplied from the communication terminal device 20 in response to the retry command, and determines whether the calculated expected value matches the expected value supplied from the information processing device 40. In the case where the expected values match, the information processing terminal device 30 proceeds to step ST26, and in the case where the expected values do not match, the information processing terminal device 30 proceeds to step ST 27.

In step ST26, the information processing terminal apparatus outputs a response to the information processing apparatus. The information processing terminal device 30 outputs the response supplied from the communication terminal device 20 to the information processing device 40.

Proceeding from step ST25 to step ST27, the information processing terminal device determines whether output of the retry order is completed. In the case where the retry order acquired in step ST22 includes a retry order that has not been output to the communication terminal device 20, the information processing terminal device 30 proceeds to step ST28, and in the case where the output of the retry order is completed, the information processing terminal device 30 proceeds to step ST 29.

In step ST28, the information processing terminal apparatus updates the command to be output. The information processing terminal device 30 designates, of the retry orders acquired in step ST22, an order that has not been output to the communication terminal device 20 and is a retry order having a sequence number with the first processing order as an order to be output to the communication terminal device 20, and then returns to step ST 23.

In step ST29, the information processing terminal apparatus issues a notification to the information processing apparatus. The information processing terminal device 30 notifies the information processing device 40 that a response to the command acquired in step ST22 cannot be acquired. Note that, in the case where the information processing apparatus 40 determines that communication cannot be performed with the communication terminal apparatus 20 when a response is not supplied even after a predetermined length of time has elapsed from the output of the command, the processing in step ST29 may not be provided.

Fig. 10 is a sequence diagram showing an example of the operation of the information processing system. Note that fig. 10 shows a case where a non-idempotent command is output from the information processing apparatus 40.

In step ST31, the information processing system performs polling and authentication processing. The information processing terminal device 30 performs polling to detect the communication terminal device 20 that can perform short-range wireless communication with the information processing terminal device 30, and sets the maximum response time indicated by parameter information (e.g., manufacturing parameter (PMm)) included in the polling response supplied from the communication terminal device 20 as a timeout value. In addition, the information processing terminal device 30 outputs the card identification information (e.g., manufacturing IDm) included in the polling response to the information processing device 40. The information processing apparatus 40 performs an authentication process by using the card identification information supplied from the communication terminal apparatus 20.

In step ST32, the information processing apparatus 40 generates a command for the authenticated communication terminal apparatus 20 and outputs the command. The command to be output to the communication terminal device 20 has a sequence number "1". In addition, when the command having the sequence number "1" is a non-idempotent command, the command for checking the state of the communication terminal device 20 is used as a retry command having the sequence number set to "3". In addition, an expected value of a response is calculated, and a packet indicating the expected value of the response is output to the information processing terminal device 30 together with a packet of a command and a retry command.

In step ST33, the information processing terminal device 30 outputs a command with the serial number "1" to the communication terminal device 20.

In a case where the information processing terminal device 30 cannot acquire a response even after the length of time indicated by the time-out value has elapsed from the output of the command in step ST33, the information processing terminal device 30 executes retry processing and outputs a retry command to the communication terminal device 20, as shown in step ST 34. In the retry process, of the retry orders acquired in step ST32, an order that has not been output to the communication terminal device 20 and is a retry order having a sequence number with the first processing order, that is, an order having a sequence number of "3" in step ST34 is output to the communication terminal device 20.

When a response is supplied from the communication terminal device 20 to the information processing terminal device 30 in step ST35, the information processing terminal device 30 performs a response determination process by using the acquired response in step ST 36. In this response determination process, the information processing terminal device 30 compares the expected value calculated by using the acquired response with the expected value acquired in step ST32, and the information processing terminal device 30 determines that the response is a response to the command output in step ST34 in the case where the values match; and the information processing terminal device 30 determines that the state of the communication terminal device 20 has not been changed, i.e., the command has not been processed, in the case where the values do not match.

In step ST37, the information processing terminal device 30 outputs the response determined in step ST36 to the information processing device 40 as a response to the command output in step ST 34. In addition, when the information processing terminal device 30 determines in step ST36 that the command has not been processed, the information processing terminal device 30 outputs a retry command with a sequence number of "5" to the communication terminal device 20.

As described above, by being supplied with the retry command and the command to be output to the communication terminal device 20 from the information processing device, the information processing terminal device 30 can execute the retry process with the retry command supplied together with the command to be output to the communication terminal device 20. Therefore, the time required for the retry process can be shortened as compared with the conventional configuration in which a command request is made at the time of the retry process and the retry process is executed with a command supplied from the information processing apparatus 40. In addition, generating a command for retrying processing at the time of generating a command to be transmitted to the communication terminal device 20 and supplying the command for retrying processing to the information processing terminal device 30 together with the command to be transmitted to the communication terminal device 20 makes it possible to efficiently execute processing of generating a command in the information processing device 40 and processing of transmitting a command to the information processing terminal device 30.

Further, in the case where a non-idempotent command is to be output to the communication terminal apparatus, a retry command for checking the state of the communication terminal apparatus 20 and an expected value of a response are output together with the command, and therefore the information processing terminal apparatus 30 can output a response to the command output to the communication terminal apparatus to the information processing apparatus.

<4. other operations of information processing System >

Incidentally, generating many retry commands makes it possible for the information processing apparatus 40 to increase the number of times the retry process is executed efficiently. However, in the case where the retry process is not performed, this results in generation of many unnecessary retry commands, thereby making it difficult for the information processing apparatus 40 to operate efficiently. In this manner, the information processing apparatus 40 can control generation of the retry order according to the number of repetitions of the retry process or the occurrence rate of the retry process. For example, the command generation unit 43 of the information processing device 40 adjusts the number of retry commands according to the number of retries or the retry occurrence state. Further, the command generation unit 43 determines the number of retries or the retry occurrence state based on the sequence number of the command and the sequence number of the response output from the communication terminal device 20.

Fig. 11 is a sequence diagram illustrating an operation between the information processing apparatus and the information processing terminal apparatus. In step ST41, the information processing device 40 generates a command for the communication terminal device 20 and outputs the command. The command to be output to the communication terminal device 20 has a sequence number of "1", and a command for retry processing that differs from the above command only in the sequence number is generated. Note that in fig. 11, commands with sequence numbers "3" and "5" are generated. The command with the sequence number "1" and the retry commands with the sequence numbers "3" and "5" are output to the information processing terminal device 30 in common.

In step ST42, the information processing terminal device 30 supplies the information processing device 40 with a response from the communication terminal device 20.

In step ST43, the information processing apparatus executes retry number learning processing. From the fact that the response has the sequence number "2", the information processing apparatus 40 can determine that the retry process has not been performed. Therefore, the information processing apparatus 40 determines that the communication between the communication terminal apparatus 20 and the information processing terminal apparatus 30 is smoothly performed, and generates only a small number of retry commands.

In step ST44, the information processing device 40 generates a command for the communication terminal device 20 and outputs the command. The command to be output to the communication terminal device 20 has a sequence number of "7", and a command for retry processing that differs from the above command only in the sequence number is generated. In addition, since the communication between the communication terminal device 20 and the information processing terminal device 30 is determined to be smoothly executed in step ST44, the number of retry orders to be generated is reduced, and retry orders with the sequence number "7" and the sequence number "9" are output to the information processing terminal device 30.

Thereafter, in step ST45, the information processing device 40 outputs to the information processing terminal device 30 a command with a sequence number of "n" and a retry command with a sequence number of "n + 2" to be output to the communication terminal device 20, and in step ST46, the information processing terminal device 30 supplies a response from the communication terminal device 20 to the information processing device 40.

In step ST47, the information processing apparatus executes retry number learning processing. The information processing apparatus 40 can determine that the retry process has been performed once from the fact that the sequence number of the command output to the immediately preceding one is "n" and the sequence number of the response is "n + 3". Therefore, the information processing apparatus 40 determines that the communication between the communication terminal apparatus 20 and the information processing terminal apparatus 30 is no longer smoothly performed, and generates a large number of retry orders.

In step ST48, the information processing device 40 generates a command for the communication terminal device 20 and outputs the command. The command to be output to the communication terminal device 20 has a sequence number "n + 4", and a command for retry processing that differs from the above command only in the sequence number is generated. In addition, in step ST48, since it has been determined that the communication between the communication terminal device 20 and the information processing terminal device 30 is no longer being smoothly performed, the number of retry orders is increased, and the order of the sequence number "n + 4" and the retry orders of the sequence numbers "n + 6" and "n + 8" are output to the information processing terminal device 30.

Note that in fig. 11, the generation of the retry order is controlled according to the number of retries, but the generation of the retry order may be controlled according to the occurrence rate of retries. Specifically, in the case where the frequency of occurrence of retries is high, the number of retry orders can be increased, and in the case where the frequency of occurrence of retries is low, the number of retry orders can be decreased.

As described above, controlling the generation of retry orders according to the number of retries or the occurrence rate of retries makes it possible to generate retry orders in an amount suitable for the communication state in the short-range wireless communication performed between the communication terminal device 20 and the information processing terminal device 30.

The series of processes described in this specification may be performed by hardware, software, or a composite configuration of both. In the case where a series of processes is to be executed by software, a program in which a processing sequence is recorded is executed by being installed in a memory of a computer incorporated in dedicated hardware. Alternatively, the program may be executed by being installed in a general-purpose computer capable of executing various processes.

For example, the program may be recorded in advance in a hard disk, an SSD (solid state drive), or a ROM (read only memory) as a recording medium. Alternatively, the program may be temporarily or permanently stored (recorded) in a removable recording medium such as a flexible disk, a CD-ROM (compact disc read only memory), an MO (magneto optical) disk, a DVD (digital versatile disc), a BD (blu-ray disc (registered trademark)), a magnetic disk, and a semiconductor memory card. Such a removable recording medium may be provided as so-called package software.

In addition, the program may be transferred to the computer in a wireless or wired manner from a download site through a network such as a LAN (local area network) or the internet in addition to being installed from the removable recording medium into the computer. The computer receives the program transferred in the above-described manner and installs it in a recording medium such as a built-in hard disk.

It is noted that the benefits described in this specification are ultimately illustrative rather than limiting; other advantageous effects not described may be provided. In addition, the present technology should not be construed as being limited to the above-described embodiments of the present technology. Embodiments of the present technology have been disclosed in the form of illustrations. It is clear that those skilled in the art can make modifications and variations to the embodiments within a scope not departing from the gist of the present technology. In other words, the claims should be considered in determining the gist of the present technology.

In addition, the information processing apparatus according to the present technology may also adopt the following configuration.

(1) An information processing apparatus comprising:

a command generation section configured to generate a command and a retry command for a communication terminal apparatus and output the generated retry command together with the command.

(2) The information processing apparatus according to (1), wherein

The command generation unit generates a retry command based on whether or not the command to the communication terminal device is a command having idempotency.

(3) The information processing apparatus according to (2), wherein,

when the command to the communication terminal device is an idempotent command, the command generation unit generates the retry command by changing a sequence number of the idempotent command.

(4) The information processing apparatus according to (2) or (3), wherein,

the command generation unit generates a command for checking a state of the communication terminal device as the retry command when the command to the communication terminal device is a command without idempotent.

(5) The information processing apparatus according to any one of (2) to (4), wherein,

in a case where a response to be output from a communication terminal device in response to the command is to be encrypted, the command generating section calculates an expected value of the response or a hash value of the expected value, and outputs the calculated expected value or the calculated hash value of the expected value together with the generated command and the retry command.

(6) The information processing apparatus according to any one of (1) to (5), wherein

The command generation unit sets a sequence number indicating a processing order to the command and the retry command.

(7) The information processing apparatus according to (6), wherein

The command generation unit adjusts the number of retry commands according to the number of retries or the retry occurrence state.

(8) The information processing apparatus according to (7), wherein

The command generation unit determines the number of retries or the retry occurrence state based on a sequence number of the command and a sequence number of a response output from the communication terminal device.

In addition, the information processing terminal device according to the present technology can also adopt the following configuration.

(1) An information processing terminal device comprising:

an instruction control section configured to acquire an instruction and a retry instruction for a communication terminal apparatus output from an information processing apparatus, output the acquired instruction to the communication terminal apparatus, and output the acquired retry instruction to the communication terminal apparatus in retry processing.

(2) The information processing terminal device according to (1), further comprising:

a communication section configured to perform short-range wireless communication with the communication terminal apparatus, wherein,

the command control unit outputs the command or the retry command via the communication unit.

(3) The information processing terminal device according to (1) or (2), wherein

The command control unit outputs a response output from the communication terminal device to the information processing device.

(4) The information processing terminal device according to any one of (1) to (3), wherein

The command control unit acquires the command, the retry command, and an expected value of a response to the command or a hash value of the expected value, and outputs the response to the information processing device when the acquired expected value or the acquired hash value of the expected value matches the expected value or the hash value of the expected value based on the response output from the communication terminal device.

List of labels

10: information processing system

20: communication terminal device

21. 31: communication unit

21a, 31 a: antenna with a shield

21b, 31 b: modulation/demodulation unit

22: power supply unit

23. 34, 42: storage unit

24. 44: control unit

30: information processing terminal device

32. 41: network communication unit

33: input unit

35: command control unit

40: information processing apparatus

43: command generation unit

50: network

26页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:使用动态应用构建器的分解的分布式测量分析系统

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!