Portable electronic devices, terminal devices
By measuring magnetic field strength and calculating precise estimated processing times based on detected field strength, the device addresses the issue of broad time ranges in wireless communication, enhancing security by reducing fraudulent processing.
Patent Information
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2024-09-24
- Publication Date
- 2026-04-03
AI Technical Summary
The predetermined estimated processing time range in wireless communication between non-contact IC cards and terminal devices is set too broadly, increasing the likelihood of unauthorized processing due to varying communication distances, which can result in either extremely short or extremely long processing times.
The portable electronic device includes a detection unit to measure magnetic field strength, a storage unit to store estimated processing times for different magnetic field strengths, and a processing unit to calculate and transmit the precise estimated processing time range based on detected magnetic field strength, allowing for narrower time ranges and reducing fraudulent processing.
This approach allows for more precise setting of estimated processing times, reducing the likelihood of fraudulent processing by narrowing the time ranges and enhancing security in wireless communication.
Smart Images

Figure 2026058145000001_ABST
Abstract
Description
Technical Field
[0006] , , ,
[0001] Embodiments of the present invention relate to portable electronic devices and terminal devices.
Background Art
[0002] There are portable electronic devices such as non-contact IC (Integrated Circuit) cards that perform wireless communication with a terminal device using electromagnetic waves. As a security measure for non-contact IC cards, there is a method of determining whether the processing time for processing a specific command is within a predetermined estimated processing time range.
Prior Art Documents
Patent Documents
[0003]
Patent Document 1
Summary of the Invention
Problems to be Solved by the Invention
[0004] In wireless communication, the processing time varies depending on the communication distance between the terminal device and the non-contact IC card. Therefore, the predetermined estimated processing time range is set to a length that can cope with the change in the processing time. However, if the predetermined estimated processing time range is set long, the possibility of receiving unauthorized processing such that the processing time is extremely short or extremely long increases.
[0005] Therefore, the problem to be solved by the present invention is made in view of the above circumstances, and to provide a portable electronic device and a terminal device capable of finely setting a predetermined estimated processing time.
Means for Solving the Problems
[0006] The portable electronic device of this embodiment includes a receiving unit that receives commands from a terminal device, a detection unit that detects the magnetic field strength from the terminal device, a storage unit that stores information on a plurality of estimated processing times defined for each combination of magnetic field strength and command, a processing unit that processes the received command and obtains an estimated processing time corresponding to the detected magnetic field strength, and a transmitting unit that transmits the command processing result and the estimated processing time. [Brief explanation of the drawing]
[0007] [Figure 1] Figure 1 is a block diagram showing an example configuration including a portable electronic device according to an embodiment. [Figure 2] Figure 2 is a block diagram showing an example of the functional configuration of a portable electronic device according to an embodiment. [Figure 3] Figure 3 is a block diagram showing an example of the functional configuration of a terminal device according to the embodiment. [Figure 4] Figure 4 shows an example of the range of estimated processing time stored in the portable electronic device of the embodiment. [Figure 5] Figure 5 is a flowchart showing the command processing flow of the portable electronic device according to the embodiment. [Figure 6] Figure 6 is a flowchart showing the process for obtaining the estimated processing time range of the portable electronic device according to the embodiment. [Figure 7] Figure 7 is a flowchart showing the flow of the determination process of the terminal device in the embodiment. [Figure 8] Figure 8 shows an example of the range of estimated processing time stored in the portable electronic device of the second embodiment. [Figure 9] Figure 9 is a flowchart showing the process for obtaining the estimated processing time range of the portable electronic device in the second embodiment. [Modes for carrying out the invention]
[0008] The following describes the portable electronic device and terminal device of the embodiment with reference to the attached drawings.
[0009] Figure 1 is a block diagram showing an example configuration including the portable electronic device 1 of the embodiment. As shown in Figure 1, the portable electronic device 1 performs wireless communication (contactless communication) by, for example, being held over the terminal device 2 by the user.
[0010] Portable electronic device 1 is exemplified by a contactless IC card. However, portable electronic device 1 is not limited to an IC card; for example, it may be a mobile terminal such as a smartphone with similar functionality.
[0011] The portable electronic device 1 includes an interface 101, a CPU (Central Processing Unit) 102, a ROM (Read Only Memory) 103, a RAM (Random Access Memory) 104, an NVM (Non-Volatile Memory) 105, and the like.
[0012] Interface 101 is an interface for establishing a communication connection with terminal device 2. Interface 101 constitutes a communication unit that performs transmission and reception. It implements communication functions using a communication method corresponding to the interface of terminal device 2.
[0013] The CPU 102 includes circuits that perform various processes. It controls the entire portable electronic device 1. It realizes various processing functions by executing programs stored in the ROM 103 or NVM 105. Some or all of the various functions performed by the CPU 102 may be realized by hardware circuits.
[0014] ROM103 is a non-volatile memory that functions as program memory. Control programs and control data are stored in it in advance. For example, ROM103 is incorporated into the portable electronic device 1 during the manufacturing stage with the control program and control data already stored in it.
[0015] RAM 104 is a volatile memory that functions as a working memory. Also, RAM 104 functions as a buffer for temporarily storing data being processed by CPU 102. For example, it functions as a communication buffer for temporarily storing data transmitted and received to and from terminal device 2 via interface 101.
[0016] NVM 105 is a non-volatile memory capable of writing and rewriting data. NVM 105 is composed of, for example, EEPROM (registered trademark) (Electrically Erasable Programmable Read Only Memory) or flash ROM, etc. Also, NVM 105 has a storage area where some or all regions have tamper resistance and data can be securely stored.
[0017] Programs and various data according to the operation uses of portable electronic device 1 are written to NVM 105. Program files or data files, etc. are defined in NVM 105, and programs and various data are written to those files. Also, NVM 105 stores data for communicating with terminal device 2 and application programs for executing various processes, etc.
[0018] Here, the flow of command processing between terminal device 2 and portable electronic device 1 will be described.
[0019] Terminal device 2 communicates with portable electronic device 1 held by the user, transmits information to portable electronic device 1, and receives information from portable electronic device 1.
[0020] Terminal device 2 measures, for example, the command processing time until it sends a command to portable electronic device 1 and receives a response, which is the processing result of the command by portable electronic device 1. At this time, it receives the range of the estimated processing time of the command (the shortest time and the longest time of the processing time) together with the command processing result from portable electronic device 1.
[0021] Terminal device 2 determines whether the processing time of the measured command falls within the estimated processing time range of the received command. If it does, it determines that there is no fraudulent processing and that a normal transaction can be conducted.
[0022] Next, we will explain the conventional method of determining processing time. Conventionally, for example, in order to accommodate command processing time which varies depending on the magnetic field strength, the range of the estimated processing time for a command, which is set in advance, is widened. This ensures that the actual processing time, which varies with the communication distance between terminal device 2 and portable electronic device 1, is included in the estimated processing time range.
[0023] In this case, because a wide range of estimated processing time is set to accommodate different magnetic field strengths, the possibility of receiving incorrect processing, such as extremely short or extremely long processing times, increases. Therefore, the range of estimated processing time can be narrowed by the method shown in this embodiment.
[0024] Figure 2 is a block diagram showing an example of the functional configuration of the portable electronic device 1 according to the embodiment. As shown in Figure 2, the portable electronic device 1 comprises a receiving unit 11, a detection unit 12, a storage unit 13, a processing unit 14, and a transmitting unit 15.
[0025] The receiving unit 11 acquires signals transmitted from the terminal device 2. For example, the receiving unit 11 receives commands and the like transmitted from the terminal device 2.
[0026] The detection unit 12 detects the magnetic field strength applied from the terminal device 2. For example, it detects the magnetic field strength corresponding to the distance from the terminal device 2. In specific cases, for example, it receives electromagnetic waves from the terminal device 2 and calculates the magnetic field strength from the internal clock frequency at that time. Note that the method for detecting the magnetic field strength is not limited to a specific method.
[0027] For example, let's assume the magnetic field strength at the closest distance between portable electronic device 1 and terminal device 2 is 7.5 (A / m). Also, let's assume the magnetic field strength at the furthest distance between portable electronic device 1 and terminal device 2, where communication is possible, is 1.5 (A / m).
[0028] The memory unit 13 is a non-temporary computer-readable medium, such as a ROM 103, RAM 104, and NVM 105. The memory unit 13 stores, for example, information regarding the estimated processing time range of a command, which is a combination of multiple magnetic field strengths detected by the detection unit 12 and multiple commands.
[0029] A concrete example is storing the magnetic field strength and the estimated processing time range for the command corresponding to that magnetic field strength. Alternatively, multiple magnetic field strengths and the estimated processing time range for the command corresponding to those strengths may be stored.
[0030] The processing unit 14, for example, the CPU 102, executes various processes such as calculations and control based on the program stored in the program memory of the storage unit 13, such as the ROM 103.
[0031] The processing unit 14, for example, executes the processing of a command received by the receiving unit 11 from the terminal device 2. After that, it sends the response, which is the result of processing the command, to the transmitting unit 15.
[0032] The processing unit 14, in a specific example, obtains from the storage unit 13 a range of estimated processing time corresponding to the magnetic field strength detected by the detection unit 12. For example, it obtains a range of estimated processing time for a command from the detected magnetic field strength and the magnetic field strength stored in the storage unit 13.
[0033] The processing unit 14 may also calculate the estimated processing time range for the command. The calculation method may involve using the detected magnetic field strength and the estimated processing time range for commands for each magnetic field strength stored in the storage unit 13 to calculate the estimated processing time range for the command corresponding to the relevant magnetic field strength.
[0034] Alternatively, a single magnetic field strength and a range of estimated processing times for commands corresponding to that magnetic field strength are stored in the storage unit 13, and a relationship formula between the magnetic field strength and the range of estimated processing times for commands corresponding to that magnetic field strength is also stored in the storage unit 13, and the processing unit 14 may calculate the range of estimated processing times for commands from the relationship formula between the magnetic field strength detected by the detection unit 12 and the storage unit 13.
[0035] The transmission unit 15 transmits the response, which is the result of the command processing by the processing unit 14, and the estimated processing time range for the command calculated by the processing unit 14.
[0036] Figure 3 is a block diagram showing an example of the functional configuration of the terminal device 2 of the embodiment. As shown in Figure 3, the terminal device 2 includes a receiving unit 21, a calculation unit 22, a determination unit 23, a transmission unit 24, and a measurement unit 25.
[0037] The receiving unit 21 acquires signals transmitted from the portable electronic device 1. For example, the receiving unit 21 receives responses to commands transmitted from the portable electronic device 1. Specifically, for example, it receives responses from the portable electronic device 1 corresponding to the magnetic field strength.
[0038] The response may include, for example, the result corresponding to the command processing and the estimated processing time for the longest or shortest time for the command processing. Alternatively, the response may include, for example, the estimated processing time for the longest or shortest time for the command processing.
[0039] The calculation unit 22 calculates the shortest estimated processing time using, for example, the longest estimated processing time received by the receiving unit 21. Alternatively, it calculates the longest estimated processing time using the shortest estimated processing time.
[0040] The calculation unit 22 may, specifically, use the following method to calculate the shortest estimated processing time: for example, by subtracting a predetermined time (e.g., 5 milliseconds) from the longest estimated processing time obtained. Alternatively, for example, the shortest estimated processing time may be obtained by subtracting a predetermined percentage (e.g., 10%) from the longest estimated processing time obtained.
[0041] The calculation unit 22 may, specifically, calculate the longest estimated processing time by increasing the acquired shortest estimated processing time by a predetermined time (e.g., sss seconds). Alternatively, for example, it may increase the acquired shortest estimated processing time by a predetermined percentage (e.g., 10%) to determine the longest estimated processing time.
[0042] The determination unit 23 may, for example, determine whether the processing time of the measured command falls between the longest and shortest estimated processing times, based on the longest estimated processing time obtained and the shortest estimated processing time calculated. The processing time of the measured command may, for example, be the time from when the terminal device 2 sends a command to the portable electronic device 1 until a response is received.
[0043] The transmitting unit 24 transmits commands, for example, from the terminal device 2 to the portable electronic device 1.
[0044] The measurement unit 25 measures, for example, the processing time of a command from the time the terminal device 2 sends a command to the portable electronic device 1 until a response is received.
[0045] Figure 4 shows an example of the estimated processing time range stored in the portable electronic device 1 of the embodiment. Figure 4 shows the magnetic field strength and the estimated processing time range for the command corresponding to the magnetic field strength stored in the storage unit 13.
[0046] As shown in Figure 4, as an example, the estimated processing time range for commands for each predetermined magnetic field strength range is stored. A specific example is when the magnetic field strength levels are divided into strong, medium, and weak.
[0047] The closest distance between the portable electronic device 1 and the terminal device 2 is defined as a strong magnetic field, with a magnetic field strength range of 5.0 to 7.5 (A / m) as an example. The furthest distance at which communication is possible is defined as a weak magnetic field, with a magnetic field strength range of 1.5 to 3.0 (A / m) as an example. The distance between the strong and weak magnetic fields is defined as a medium magnetic field, with a magnetic field strength range of 3.0 to 5.0 (A / m) as an example.
[0048] For example, the estimated processing time range for commands is pre-stored for each magnetic field strength. For instance, when command xxxx is received and the magnetic field strength is high, the estimated processing time range for the command is set to 30-50 (mS).
[0049] Similarly, estimated processing time ranges are set for commands yyyy and zzzz, and the processing unit 14 obtains the estimated processing time range from the storage unit 13 based on the detected magnetic field strength and the received command.
[0050] Although the description has focused on the case where multiple magnetic field strengths and the estimated processing time ranges for each of these strengths are stored, it is also possible to store only one magnetic field strength and the estimated processing time range corresponding to that strength. In this case, the relational expression between the magnetic field strength and the estimated processing time range corresponding to that strength is also stored, and the processing unit 14 may calculate the estimated processing time range from the detected magnetic field strength using this relational expression.
[0051] Alternatively, the processing unit 14 may select a range of estimated processing time from a range combining the commands in the storage unit 13 and multiple magnetic field strengths. It may also generate information about the range of estimated processing time from the range of estimated processing time in the storage unit 13.
[0052] As shown in Figure 4, the magnetic field strength and the range of estimated processing time corresponding to the magnetic field strength are pre-set by the card issuing device when the portable electronic device 1 is issued, for example. Alternatively, they may be pre-set as program code. Furthermore, only one type of command needs to be stored.
[0053] Figure 5 is a flowchart showing the command processing flow of the portable electronic device 1 of the embodiment. As shown in Figure 5, the receiving unit 11 of the portable electronic device 1 receives a REQA (Request command, Type A) or REQB (Request command, Type B) requesting an initial response from the terminal device 2 (step S1).
[0054] The processing unit 14 performs processing on the received REQA / REQB. The transmission unit 15 sends an ATQA (Answer To request, Type A) or ATQB (Answer To request, Type B) to the terminal device 2 as a response to the received REQA / REQB (step S2).
[0055] The processing unit 14 performs communication activation processing (step S3), and the receiving unit 11 receives a command from the terminal device 2. Examples of commands to be received include command xxxx, command yyyy, command xzzzz, etc. (step S4).
[0056] The processing unit 14 processes the command received by the receiving unit 11. Command processing may include, for example, random number generation. Specifically, for example, command xxxx may be random number generation. The processing unit also calculates the estimated processing time range. The method for calculating the estimated processing time range will be described later (step S5).
[0057] The transmitting unit 15 transmits the command processing result and the estimated processing time range to the terminal device 2. For example, it transmits a random number as the command processing result (step S6). Then, it returns to step S4 to receive the command.
[0058] Figure 6 is a flowchart illustrating the process for obtaining the estimated processing time range of the portable electronic device 1 in the embodiment. Figure 6 explains the specific process for obtaining the estimated processing time range shown in Figure 5. As shown in Figure 6, the processing unit 14 executes command processing after receiving a command from the terminal device 2.
[0059] At this time, the detection unit 12 detects the magnetic field strength corresponding to the distance between the terminal device 2 and the portable electronic device 1. Specifically, it determines whether the magnetic field strength is equal to or greater than a first predetermined value. For example, it determines the magnetic field strength applied from the terminal device 2 (step S51).
[0060] The first predetermined magnetic field strength is, for example, a strong magnetic field or a magnetic field strength of 5.0 (A / m). The second predetermined magnetic field strength is, for example, a weak magnetic field or a magnetic field strength of 3.0 (A / m).
[0061] If the detection unit 12 determines that the magnetic field strength is above a first predetermined level (step S51; Yes), the processing unit 14 obtains from the storage unit 13 a range of estimated processing times for commands corresponding to the detected magnetic field strength. For example, it obtains a range of first estimated processing times (step S52).
[0062] The first estimated processing time range is, for example, 30 to 50 (mS) if the received command is command xxxx. The second estimated processing time range is, for example, 50 to 70 (mS) if the received command is command xxxx. The third estimated processing time is, for example, 80 to 100 (mS) if the received command is command xxxx.
[0063] If the detection unit 12 determines that the magnetic field strength is less than a first predetermined value (step S51; No), it sends the detected magnetic field strength to the processing unit 14. The processing unit 14 obtains the range of estimated processing time corresponding to the detected magnetic field strength from the range of estimated processing time corresponding to the range of multiple magnetic field strengths and commands stored in the storage unit 13. It sends the obtained result to the transmission unit 15 (step S53).
[0064] As an alternative, in step S53, the processing unit 14 may calculate the range of estimated processing time corresponding to the detected magnetic field strength from the relationship between the detected magnetic field strength, the magnetic field strength stored in the storage unit 13, and the range of estimated processing time.
[0065] According to this, the estimated processing time range for commands, based on the detected magnetic field strength, can be sent to terminal device 2. In other words, by using the detected magnetic field strength, the estimated processing time range can be divided according to the magnetic field strength, thus narrowing the estimated processing time range. Therefore, malicious processing and attacks can be reduced.
[0066] Specifically, for example, if we do not consider magnetic field strength, and take the case of receiving the command xxxx in Figure 3 as an example, in order to correspond to a magnetic field strength range of 1.5 to 7.5 (A / m), the estimated processing time needs to be set to a range of 30 to 100 (mS). In other words, the difference between the shortest and longest estimated processing times is 70 (mS).
[0067] However, according to this embodiment, by using the detected magnetic field strength, when the magnetic field strength ranges from 5.0 to 7.5 (A / m), the estimated processing time range becomes 30 to 50 (mS). That is, the difference between the shortest and longest estimated processing times is 20 (mS). Therefore, by calculating the estimated processing time range using the detected magnetic field strength, the range of estimated processing time can be narrowed. Thus, malicious processing and attacks can be reduced.
[0068] Figure 7 is a flowchart showing the flow of the determination process of the terminal device 2 in the embodiment. As shown in Figure 6, the transmission unit 24 of the terminal device 2 sends commands to the portable electronic device 1. For example, it sends commands xxxx, yyyy, and zzzz (step S11).
[0069] The measurement unit 25 of the terminal device 2 measures the processing time by the portable electronic device 1 from the time the transmission unit 24 sends a command to the portable electronic device 1 until the receiving unit 21 receives the command response (step S12).
[0070] The determination unit 23 of the terminal device 2 compares the processing time measured from the time a command is sent to the portable electronic device 1 until the command response is received with the estimated processing time range of the command received from the portable electronic device 1. If the measured processing time falls within the estimated processing time range, it determines that the transaction is normal (step S13).
[0071] Figure 8 shows an example of the range of estimated processing time stored in the portable electronic device 1 of the second embodiment. In the first embodiment, we described a case where the processing time changes depending on the magnetic field strength, such that the processing time is shorter when the magnetic field strength is high and longer when the magnetic field strength is low.
[0072] In the second embodiment, a processing method is described in which the processing time changes little even when the magnetic field strength is different, and the range of estimated processing time can be narrowed compared to the conventional method.
[0073] Figure 8 shows the estimated processing time for commands within a range of command types and magnetic field strength levels. The command types and magnetic field strength levels are the same as in the first embodiment. In the second embodiment, the range of estimated processing time for commands remains the same even if the magnetic field strength differs, as long as the command types are the same.
[0074] Specifically, for example, when the portable electronic device 1 is issued, the memory unit 13 sets and stores a range of estimated processing time when the magnetic field strength level is weak (1.5 to 3.0 (A / m)). It also stores a range of estimated processing time including dummy processing time for each magnetic field strength. For example, when the portable electronic device 1 is issued, information like that shown in Figure 8 is stored in the memory unit 13 beforehand.
[0075] Dummy processing allows you to delay the processing time within a command by a specified amount of time. Therefore, by adding dummy processing to the actual processing time, you can extend the processing time by a specified amount. As a result, dummy processing can be used to adjust the range of estimated processing time even when the magnetic field strength differs.
[0076] The memory unit 13 may also set a magnetic field strength for each command and a range of estimated processing time corresponding to that magnetic field strength, and store a relational expression between the magnetic field strength and the range of estimated processing time, which is the sum of the magnetic field strength and the dummy processing time corresponding to that magnetic field strength. For example, the memory unit 13 may set a range of estimated processing time for weak magnetic fields for each command and store a relational expression between the magnetic field strength and the range of estimated processing time, which is the sum of the magnetic field strength and the dummy processing time corresponding to that magnetic field strength.
[0077] Furthermore, the memory unit 13 may pre-store dummy processing times corresponding to the command type and magnetic field strength level. Only one command needs to be stored.
[0078] Figure 9 is a flowchart illustrating the process for calculating the estimated processing time range of the portable electronic device 1 in the second embodiment. In Figure 9, a modified example of the calculation of the estimated processing time range described in the first embodiment is explained as the second embodiment.
[0079] First, the detection unit 12 of the portable electronic device 1 determines whether the magnetic field strength detected from the terminal device 2 is below a second predetermined value (step S501).
[0080] The first predetermined magnetic field strength is, for example, a strong magnetic field or a magnetic field strength of 5.0 (A / m). The second predetermined magnetic field strength is, for example, a weak magnetic field or a magnetic field strength of 3.0 (A / m).
[0081] If the detection unit 12 determines that the value is below a second predetermined value (step S501; Yes), the processing unit 14 obtains the range of the third estimated processing time stored in the storage unit 13. Then, it sends the calculated range of the third estimated processing time as a response to the transmission unit 15 (step S502).
[0082] The first estimated processing time is, for example, 50 (mS) + dummy processing 50 (mS) to 80 (mS) + dummy processing 50 (mS). The second estimated processing time is, for example, 70 (mS) + dummy processing 30 (mS) to 100 (mS) + dummy processing 30 (mS). The third estimated processing time is, for example, 100 to 130 (mS).
[0083] If the detection unit 12 determines that the magnetic field strength is higher than the second predetermined value (step S501; No), it sends the detected magnetic field strength to the processing unit 14. The processing unit 14 obtains the estimated processing time range corresponding to the magnetic field strength detected by the detection unit 12 (step S503).
[0084] The processing unit 14 adds dummy processing to the command processing. Specifically, it executes dummy processing corresponding to the magnetic field strength so that the estimated processing time includes the execution of dummy processing. For example, dummy processing may be stored in advance for each detected magnetic field strength, and dummy processing corresponding to the detected magnetic field strength may be performed (step S504).
[0085] The processing unit 14 sends the processing result of the command for which the dummy processing was executed, and the estimated processing time range after the dummy processing, to the transmission unit 15. The transmission unit 15 responds to the terminal device 2 with the processing result and the estimated processing time range (step S505).
[0086] This allows the dummy processing to adjust the estimated processing time range even when the detected magnetic field strength differs.
[0087] In this embodiment, the storage unit 13 was described as storing a range of estimated processing time according to the magnetic field strength. Now, let's describe a modified example. For example, the storage unit 13 may store an estimated processing time according to the magnetic field strength (the estimated maximum time for command processing).
[0088] In this case, the receiving unit 21 of the terminal device 2 receives (acquires) the estimated processing time that is the longest possible time according to the magnetic field strength from the portable electronic device 1. Then, the calculation unit 22 of the terminal device 2 uses the longest estimated processing time to calculate the shortest estimated processing time.
[0089] For example, the shortest estimated processing time is calculated by subtracting a predetermined time (e.g., sss seconds) from the longest estimated processing time obtained. Alternatively, the shortest estimated processing time is calculated by subtracting a predetermined percentage (e.g., 10%) from the longest estimated processing time obtained.
[0090] Furthermore, the determination unit 23 of the terminal device 2 may determine whether the command processing time falls between the longest and shortest estimated processing times, based on the longest estimated processing time obtained and the shortest estimated processing time calculated.
[0091] Furthermore, although the example given shows that the memory unit 13 stores an estimated processing time (estimated maximum time for command processing) according to the magnetic field strength, it may also store an estimated processing time (estimated minimum time for command processing) according to the magnetic field strength.
[0092] In this case, the receiving unit 21 of the terminal device 2 receives (acquires) the estimated processing time that is the shortest time according to the magnetic field strength from the portable electronic device 1. Then, the calculation unit 22 of the terminal device 2 uses the estimated processing time that is the shortest time to calculate the estimated processing time that is the longest time.
[0093] For example, the longest estimated processing time is defined as the shortest estimated processing time obtained plus a predetermined amount of time (e.g., sss seconds). Alternatively, the longest estimated processing time is defined as the shortest estimated processing time obtained plus a predetermined percentage (e.g., 10%).
[0094] Furthermore, the determination unit 23 of the terminal device 2 may determine whether the command processing time falls between the longest and shortest estimated processing times, based on the shortest estimated processing time obtained and the longest estimated processing time calculated.
[0095] In the above modified example, the time calculated by terminal device 2 is predetermined by the specifications, etc. For example, it may be predetermined by the specifications, etc., to calculate the longest or shortest time. Alternatively, terminal device 2 may calculate the longest or shortest time by acquiring the calculation method stored in portable electronic device 1.
[0096] In another variation, terminal device 2 receives a standard processing time as a response from portable electronic device (card) 1. Subsequently, terminal device 2 checks whether the measured command processing time falls within the calculated result, within a predetermined percentage (for example, ±10%) of the standard processing time.
[0097] Furthermore, the processing methods using portable electronic devices described in each of the above embodiments can also be implemented using programs executable by a computer. That is, it is possible to store a program that implements the processing methods described in each of the above embodiments in memory, read the program from memory using a computer's processing circuit, and construct the processing methods described in each of the above embodiments through the cooperation of software and hardware resources.
[0098] The portable electronic device of this embodiment includes a receiving unit that receives commands from a terminal device, a detection unit that detects the magnetic field strength applied by the terminal device, a storage unit that stores information on a plurality of estimated processing times defined for each combination of magnetic field strength and command, a processing unit that processes the received command and obtains an estimated processing time corresponding to the received command and the detected magnetic field strength, and a transmitting unit that transmits the command processing result and the estimated processing time.
[0099] This allows the processing unit to obtain the estimated processing time from the memory unit using the detected magnetic field strength, enabling the estimated processing time to be set for each magnetic field strength. Therefore, the estimated processing time can be set more precisely than before (at least two estimated processing times can be set), contributing to a reduction in fraudulent processing.
[0100] Furthermore, the portable electronic device of this embodiment includes, for example, a range of estimated processing time that comprises the shortest and longest times for processing each command corresponding to multiple magnetic field strengths.
[0101] This allows for a narrower range of estimated processing times compared to conventional methods, contributing to a reduction in fraudulent processing.
[0102] Furthermore, the processing unit of the portable electronic device in this embodiment adds a predetermined dummy processing time corresponding to the detected magnetic field strength to the command processing so that the calculated estimated processing time range is the same as the latest estimated processing time range stored. The transmission unit then transmits the command processing result, including the dummy processing, and the latest estimated processing time range stored.
[0103] This allows for varying the dummy processing time for each detected magnetic field strength, and by adding dummy processing to the command processing, the actual processing time for the command can be reduced even when the detected magnetic field strength differs.
[0104] Furthermore, in the portable electronic device of this embodiment, commands include those used for protocol communication control.
[0105] Furthermore, the terminal device of this embodiment includes a receiving unit that receives the longest estimated processing time of a command from a portable electronic device, a calculation unit that calculates the shortest estimated processing time using the longest estimated processing time, and a determination unit that determines whether the processing time of the command falls within the range of the longest and shortest estimated processing times.
[0106] Furthermore, the terminal device of this embodiment includes a receiving unit that receives the shortest estimated processing time of a command from a portable electronic device, a calculation unit that calculates the longest estimated processing time using the shortest estimated processing time, and a determination unit that determines whether the processing time of the command falls within the range of the longest and shortest estimated processing times.
[0107] In this embodiment, command processing is used as an example, but functions related to protocol communication control used in steps S3, S4, S5, and S6 shown in Figure 5 may also be used. For example, a PCB (Protocol Control Byte) may be used.
[0108] Although several embodiments of the present invention have been described above, these embodiments are presented as examples and are not intended to limit the scope of the invention. These embodiments can be carried out in various other forms, and various omissions, substitutions, and modifications can be made without departing from the spirit of the invention. These embodiments and their variations are included in the scope and spirit of the invention, as well as in the claims and their equivalents. [Explanation of symbols]
[0109] 1…Portable electronic devices 2…Terminal device 11... Receiver 12...Detection unit 13...Storage section 14… Processing section 15...Transmitter 21... Receiver 22...Calculation section 23…Judgment section 24...Transmitter 25...Measurement section
Claims
1. A receiving unit that receives commands from a terminal device, A detection unit for detecting the magnetic field strength from the terminal device, A storage unit that stores information on multiple estimated processing times defined for each combination of magnetic field strength and command, A processing unit that processes the received command and obtains the estimated processing time corresponding to the detected magnetic field strength, A transmission unit that transmits the processing result of the command and the estimated processing time, A portable electronic device equipped with [a specific feature / ability].
2. The estimated processing time includes a range of estimated processing time consisting of the shortest and longest processing times for each of the commands corresponding to multiple magnetic field strengths. The portable electronic device according to claim 1.
3. The aforementioned processing unit, To ensure that the calculated estimated processing time range is the same as the slowest estimated processing time range stored, a predetermined dummy processing time corresponding to the detected magnetic field strength is added to the command processing. The aforementioned transmitting unit The command processing result, including the dummy processing, and the range of the slowest estimated processing time stored are transmitted. The portable electronic device according to claim 2.
4. The aforementioned commands include those used for protocol communication control, The portable electronic device according to claim 1.
5. A receiving unit that receives the longest estimated processing time for a command from a portable electronic device, A calculation unit that uses the longest estimated processing time to calculate the shortest estimated processing time, A determination unit that determines whether the processing time of the command is included in the range between the maximum and minimum estimated processing times, A terminal device equipped with the following features.
6. A receiving unit that receives the shortest estimated processing time for a command from a portable electronic device, A calculation unit that calculates the longest estimated processing time using the shortest estimated processing time, A determination unit that determines whether the processing time of the command is included in the range between the maximum and minimum estimated processing times, A terminal device equipped with the following features.
Citation Information
Patent Citations
IC card and control method of IC card
JP2020027558A