Multi-card identification method, device and equipment based on near field communication technology
By sending card search instructions and receiving a unique identification response in the near field communication system, the multi-card conflict within the card reader antenna range is quickly identified, and the problem of inefficient multi-card identification in the prior art is solved, and an efficient and accurate multi-card card selection process is achieved.
Patent Information
- Application Number
- CN202510722945.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-30
- Publication Date
- 2025-08-12
AI Technical Summary
In a near field communication system, when multiple tags or cards exist within the card reader antenna range, it is impossible to quickly identify and start the anti-collision card selection process, resulting in inefficient identification.
By sending a card search command and receiving a card search response within the first preset time, it is determined whether there is a conflict in the card search response, and the multi-card conflict is determined by using the unique identification of the near-field communication device. Multi-card conflict is identified in just one communication interaction, and a unique identity identification is obtained when necessary for accurate card selection.
It significantly improves the speed and efficiency of multi-card recognition, reduces the probability of misconnection caused by device signal interference or similar names, and ensures the accuracy and security of communication connections.
Smart Images

Figure CN120475359A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of near field communication technology, and more particularly to a multi-card recognition method, apparatus, and device based on near field communication technology. Background Art
[0002] In a Near Field Communication (NFC) system, when multiple tags / cards are within the antenna range of a reader, the tags will respond to the reader simultaneously, inevitably causing collisions.
[0003] Related NFC technologies including TYPE A and TYPE B have a set of anti-collision card selection processes after identifying a conflict, so as to select one from multiple tags / cards.
[0004] In the process of implementing this application, the inventors found that how to quickly and effectively identify that multiple tags or cards are within the antenna range of the card reader and start the anti-collision card selection process as soon as possible is the key to improving the performance of the initialization process. Summary of the Invention
[0005] In view of this, the embodiments of the present application provide a multi-card identification method, device and equipment based on near-field communication technology to solve the problem of not being able to quickly identify that multiple tags or cards are within the antenna range of the card reader.
[0006] In a first aspect, an embodiment of the present application provides a multi-card recognition method based on near-field communication technology, the method being applied to a near-field communication card reader, the method comprising:
[0007] Sending a card search instruction and continuously receiving a card search response within a first preset receiving time, wherein the card search response includes a unique identifier of the corresponding near-field communication device;
[0008] It is determined whether there is a conflicting response within a first preset receiving time according to the received card-searching response. If there is a conflicting response, it is determined that there are multiple near-field communication devices.
[0009] The multi-card recognition method based on near-field communication technology provided in the embodiment of the present application determines whether there is a multi-card conflict by judging whether there is a conflict response within a first preset receiving time. Only one communication interaction is required to determine whether there are multiple near-field communication devices. There is no need to wait for the card reader to send a second anti-collision command before judging whether there is a multi-card conflict. This speeds up the multi-card recognition and improves the card selection efficiency when there are multiple near-field communication devices within the antenna range of the card reader.
[0010] In an optional implementation, the unique identifier includes: at least one of a unique random number, a unique serial number, and a unique identity identifier of the near field communication device.
[0011] In an optional embodiment, if there is no conflicting response within the first preset receiving time, the card search response continues to be received. If the number of all correct card search responses received within the second preset receiving time is greater than 1, it is determined that there are multiple near-field communication devices.
[0012] The multi-card identification method based on near-field communication technology provided in the embodiment of the present application continues to receive card search responses if there is no conflicting response within the first preset receiving time, and determines whether there are multiple near-field communication devices based on the number of received card search responses, thereby reducing repeated data interaction between the two parties in the near-field communication and improving the efficiency of multi-card identification.
[0013] In an optional implementation, determining whether there is a conflicting response within a first preset receiving time according to the received card search response includes:
[0014] Based on the unique identifier of the near field communication device included in the card search response, determining whether there is a card search response with different data in the received card search response, and if there is a card search response with different data, then there is a conflicting response within the first preset receiving time;
[0015] If there is no card search response with different data, then there is no conflicting response within the first preset receiving time.
[0016] The multi-card identification method based on near-field communication technology provided in the embodiment of the present application determines whether the card search responses issued by each near-field communication device are the same based on the unique identifier of the near-field communication device, and then determines whether there is a conflicting response within the first preset receiving time based on the judgment of each card search response, thereby improving the accuracy of the judgment of card search response conflicts and the efficiency of the judgment of multi-card conflicts.
[0017] In an optional embodiment, if the unique identifier includes a unique identity identifier, the method further includes:
[0018] If there are multiple near-field communication devices, obtain the unique identity identifiers contained in all correct card search responses;
[0019] According to the unique identity identifier, a near field communication device corresponding to a target identifier is determined from all correct card search responses as the target near field communication device.
[0020] The multi-card identification method based on near-field communication technology provided in the embodiment of the present application, when the card reader receives multiple correct card search responses, if the card search responses include a unique identity identifier, the target near-field communication device is directly determined based on the unique identity identifier contained in the card search responses, thereby improving the accuracy and efficiency of multi-card identification.
[0021] In an optional implementation, if the unique identifier does not include a unique identity identifier, the method further includes:
[0022] If there are multiple NFC devices, the anti-collision card selection process is started to obtain the unique identity of each NFC device;
[0023] According to the unique identification of each near field communication device, a near field communication device corresponding to the target identification is selected as the target near field communication device.
[0024] The multi-card identification method based on near-field communication technology provided in the embodiment of the present application can quickly and accurately lock the target near-field communication device by matching the unique identifier with the target identifier, significantly reducing the probability of misconnection due to device signal interference or similar names, ensuring the accuracy and reliability of the communication connection. The unique identifier serves as the "digital ID card" of the device, combined with the target identifier verification mechanism, can effectively prevent illegal devices from accessing the system and ensure the security of communication data.
[0025] In a second aspect, an embodiment of the present application provides a multi-card identification method based on near field communication technology, the method being applied to a near field communication device for near field communication, the method comprising:
[0026] Receive a card search instruction, and generate a card search response according to the card search instruction and send it out. The card search response includes a unique identifier of the near field communication device.
[0027] The multi-card identification method based on near-field communication technology provided in the embodiment of the present application, on the near-field communication device side, is set in advance so that it sends a card search response with a unique identifier after receiving a card search instruction, thereby accelerating the conflict identification and card selection process and improving communication efficiency.
[0028] In a third aspect, an embodiment of the present application provides a multi-card recognition device based on near-field communication technology, which is applied to a near-field communication card reader. The device includes:
[0029] a response receiving module, configured to send a card search instruction and continuously receive a card search response within a first preset receiving time, wherein the card search response includes a unique identifier of the corresponding near field communication device;
[0030] The first conflict judgment module is configured to judge whether there is a conflict response within a first preset receiving time according to the received card search response, and if there is a conflict response, determine that there are multiple near field communication devices.
[0031] In a fourth aspect, an embodiment of the present application provides a multi-card recognition device based on near field communication technology, the device being applied to a near field communication device for near field communication, the device comprising:
[0032] The card search response generation module is used to receive a card search instruction, and generate a card search response according to the card search instruction and send it out. The card search response includes a unique identifier of the near field communication device.
[0033] In a fifth aspect, an embodiment of the present application provides a computer device, comprising: a memory and a processor, the memory and the processor being communicatively connected to each other, computer instructions being stored in the memory, and the processor executing the method of the above-mentioned first aspect or any corresponding embodiment thereof, or executing the method of the corresponding embodiment of the above-mentioned second aspect by executing the computer instructions.
[0034] In a sixth aspect, an embodiment of the present application provides a computer-readable storage medium having computer instructions stored thereon, the computer instructions being used to enable a computer to execute the method of the above-mentioned first aspect or any corresponding embodiment thereof, or to execute the method of the embodiment corresponding to the above-mentioned second aspect. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] In order to more clearly illustrate the specific implementation methods of the embodiments of the present application or the technical solutions in the prior art, the following will briefly introduce the drawings required for use in the specific implementation methods or the description of the prior art. Obviously, the drawings described below are some implementation methods of the embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0036] Figure 1 This is a flowchart of anti-collision card selection using TYPE A technology in related technologies;
[0037] Figure 2 is a flowchart of a multi-card identification method based on near field communication technology according to an embodiment of the present application;
[0038] Figure 3 is a flowchart of another multi-card recognition method based on near field communication technology according to an embodiment of the present application;
[0039] Figure 4 is a flowchart of another multi-card identification method based on near field communication technology according to an embodiment of the present application;
[0040] Figure 5 is a structural block diagram of a multi-card recognition device based on near field communication technology according to an embodiment of the present application;
[0041] Figure 6 It is a schematic diagram of the hardware structure of the computer device of an embodiment of the present application. DETAILED DESCRIPTION
[0042] To make the purpose, technical solutions, and advantages of the embodiments of the present application more clear, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without making creative efforts shall fall within the scope of protection of this application.
[0043] The card reader can recognize that there are multiple cards in the field, which is a basic function of NFC devices. Figure 1 The following is a schematic diagram of the anti-collision process in TYPE A technology, which specifically includes:
[0044] (1) The card reader sends a REQA or WUPA command: The card reader sends a REQA or WUPA command to request a response from the card.
[0045] (2) Card response ATQA: The card returns an ATQA response, and the returned information includes some basic characteristics of the card.
[0046] (3) The card reader sends an anti-collision command 0x93 0x20: The card reader sends an anti-collision command, requesting the card to return part of its UID.
[0047] (4) The card returns part of the UID: The card returns the first 4 bytes of its UID.
[0048] (5) Does the card reader detect a conflict: The card reader checks whether there are multiple cards responding to the same UID portion.
[0049] (6) The card reader sends an anti-collision command 0x95 0x20 + the selected UID part: If a conflict is detected, the card reader sends an anti-collision command to request more UID bytes.
[0050] (7) The card sends back more UID bytes.
[0051] (8) Card reader selects a card: The card reader selects a specific card for communication.
[0052] (9) The card reader sends a select command 0x93 0x70 + complete UID: The card reader sends a select command to select a specific card.
[0053] (10) Card response selection mark (Select Acknowledge, SAK): The card returns a SAK response to confirm the selection.
[0054] According to the above anti-collision card selection process, the card reader needs to send the second command (anti-collision command) and multiple cards must return responses at the same time to identify the conflict. The time taken to identify the conflict is relatively long, and the efficiency of card selection for identifying multiple card conflicts is too low.
[0055] Based on the above problems, an embodiment of the present application provides a multi-card identification method based on near-field communication technology, which identifies multi-card conflicts through unique identifiers to improve card selection efficiency.
[0056] According to an embodiment of the present application, an embodiment of a method for multi-card identification based on near-field communication technology is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0057] In this embodiment, a multi-card identification method based on near field communication technology is provided, which can be used in the above-mentioned computer system or near field communication card reader. Figure 2 is a flow chart of a multi-card identification method based on near field communication technology according to an embodiment of the present application. Figure 2 As shown, the process includes the following steps:
[0058] Step S101: Send a card search instruction, and continuously receive a card search response within a first preset receiving time. The card search response includes a unique identifier of a corresponding near field communication device.
[0059] Specifically, the near-field communication process involves a card reader continuously sending card-seeking commands and detecting the presence of a card by receiving card-seeking responses. The card in this embodiment refers to a near-field communication device with NFC functionality, including but not limited to tags, cards, and NFC-enabled mobile phones. When a card enters the magnetic field of the card reader, it receives the card-seeking command and, based on the command, generates a card-seeking response and returns it to the reader. Based on this process, after the card reader sends a card-seeking command, if it does not receive a card-seeking response, it continues to send card-seeking commands. If it receives a card-seeking response, it continues to receive card-seeking responses within a first preset reception time, which can be 100 μs, to ensure that at least one card-seeking response is correctly received.
[0060] Step S102: determining whether there is a conflicting response within a first preset receiving time according to the received card search response; if there is a conflicting response, determining that there are multiple near field communication devices.
[0061] Specifically, the card search response received by the card reader within the first preset receiving time may include one card search response for one card, or may include multiple card search responses for multiple cards. If there is one card search response, it means there is only one card, there is no multi-card conflict, and there is no need to perform the anti-collision card selection process. The card reader directly acts according to the received card search response; because each card search response contains the unique identifier of the near-field communication device, each card search response is different. If there are multiple card search responses, there are multiple near-field communication devices. For example, multiple employees use their own work cards to punch in at the same time at the same time clock machine. The card search response of each work card contains the identity information of the corresponding employee, that is, each card search response is different. At this time, for the time clock machine, there is a multi-card conflict, indicating that there are multiple work cards within the antenna range of the time clock machine, and the time clock machine needs to process them separately. This is just an example, but not limited to this.
[0062] The unique identifier in this embodiment includes: at least one of a unique random number, a unique serial number, and a unique identity identifier of the near field communication device.
[0063] Specifically, the unique random number and unique serial number are typically automatically generated upon receiving a card search command and occupy relatively few bytes, such as one byte. The unique identifier serves as identification for each card and is stored on the card at the factory, typically occupying more bytes, such as four or seven bytes. If the card search response contains at least one of the unique random number, unique serial number, or unique identifier, the unique identifier can be used to determine if the card search responses are different, thereby confirming the presence of multiple near-field communication devices.
[0064] The multi-card recognition method based on near-field communication technology provided in this embodiment determines whether there is a multi-card conflict by judging whether there is a conflict response within a first preset reception time. Only one communication interaction is required to determine whether there are multiple near-field communication devices. There is no need to wait for the card reader to send a second anti-collision command before judging whether there is a multi-card conflict. This speeds up the multi-card recognition and improves the card selection efficiency when there are multiple near-field communication devices within the antenna range of the card reader.
[0065] In this embodiment, a multi-card identification method based on near field communication technology is provided, which can be used in the above-mentioned computer system or near field communication card reader. Figure 3 is a flow chart of a multi-card identification method based on near field communication technology according to an embodiment of the present application. Figure 3 As shown, the process includes the following steps:
[0066] Step S201: Send a card search instruction and continue to receive card search responses within a first preset receiving time. The card search response contains a unique identifier of the corresponding near field communication device. Figure 1 Step S101 of the illustrated embodiment will not be described in detail here.
[0067] Step S202: determining whether there is a conflicting response within a first preset receiving time according to the received card search response; if there is a conflicting response, determining that there are multiple near field communication devices.
[0068] Specifically, determining whether there is a conflicting response within the first preset receiving time according to the received card search response in the above step S202 includes:
[0069] Step S2021: Based on the unique identifier of the near field communication device contained in the card search response, determine whether there is a card search response with different data in the received card search response. If there is a card search response with different data, there is a conflicting response within the first preset receiving time.
[0070] Specifically, it is defined that the card search response of the near-field communication device includes a unique identifier of the corresponding near-field communication device. The unique identifier can be a random number (n is greater than or equal to 1 byte) or other identification identifier that can distinguish different cards. Different cards have different unique identifiers, and the data in their card search responses is different; if the unique identifiers are the same, the data in the card search responses is the same. If multiple card search responses are received within the first preset reception time, the unique identifiers in the card search responses are used to determine whether the card search responses are the same. If there are card search responses with different data, such as card search responses sent to the time clock from different employees' work cards, there will be conflicting responses within the first preset reception time.
[0071] Step S2022: If there is no card search response with different data, then there is no conflicting response within the first preset receiving time.
[0072] Specifically, if the data in each card search response is the same, for example, multiple access cards are approaching the access control device at the same time, and the card search responses given by the access control card to the access control device are all door opening instructions, then there is no conflicting response within the first preset receiving time.
[0073] It should be noted that because the card search response contains a unique identifier, and different cards have different unique identifiers, when multiple cards return their own card search response frames, the card search response frames received by the card reader may overlap due to factors such as possible response time differences. Specifically, this may include at least two card search response frames being received completely or partially overlapping. Partial overlap means that the second card starts sending its response frame before the first card has finished sending it. The card reader will detect any overlap in the timing of the response frames.
[0074] The multi-card identification method based on near-field communication technology provided in this embodiment determines whether the card search responses issued by each near-field communication device are the same based on the unique identifier of the near-field communication device, and then determines whether there is a conflicting response within the first preset receiving time based on the judgment of each card search response, thereby improving the accuracy of the judgment of card search response conflicts and the efficiency of the judgment of multi-card conflicts.
[0075] In some optional embodiments, such as Figure 4 As shown, if the unique identifier does not include a unique identity identifier, the method further includes:
[0076] If there are multiple near-field communication devices, the anti-collision card selection process is started to obtain the unique identity of each near-field communication device.
[0077] According to the unique identification of each near field communication device, a near field communication device corresponding to the target identification is selected as the target near field communication device.
[0078] Specifically, since the unique identifier does not include the unique identity identifier, if there is a multi-card conflict within the first preset reception time, or if multiple correct card search responses are received within the second preset reception time, an anti-collision card selection process needs to be initiated. The anti-collision card selection process includes: the card reader needs to send an identification acquisition instruction to obtain the unique identity identifier, each near-field communication device sends its own unique identity identifier to the card reader according to the identification acquisition instruction, and the card reader selects the near-field communication device with the same target identity identifier to establish a connection based on the unique identity identifier of each near-field communication device. The anti-collision card selection process can also select the target near-field communication device from multiple cards according to a preset priority rule, as an example only, but not limited to this.
[0079] After receiving response signals from multiple near-field communication devices, the card reader activates a unique identification-based screening mechanism, analyzes all response signals, and extracts the unique identification of each near-field communication device. The pre-set target identification acts as a screening "ruler". The target identification can be a user-specified device type, a specific application scenario requirement, or the permission level of the device. For example, in a corporate attendance scenario, the target identification is set to the unique identification of the employee's work card; in a mobile payment scenario, the target identification corresponds to the unique identification of the payment card bound to the user's account. The card reader compares the extracted device unique identification with the target identification, and uses a complex algorithm to quickly screen out qualified target devices and accurately filter out other interfering device signals.
[0080] The device's unique ID ensures accurate identification, while the target ID clarifies the selection direction. The two complement each other. For example, in a library's self-service borrowing and returning system, when a reader simultaneously approaches a terminal with multiple NFC cards, such as a library card and campus card, the system uses the pre-entered unique ID of the card as the target ID, quickly identifying the reader's card and completing the book check-in and return process, avoiding confusion with other cards and ensuring a smooth and efficient process.
[0081] The multi-card identification method based on near-field communication technology provided in this embodiment can quickly and accurately lock the target near-field communication device by matching the unique identifier with the target identifier, significantly reducing the probability of misconnection due to device signal interference or similar names, ensuring the accuracy and reliability of the communication connection. The unique identifier serves as the "digital ID card" of the device, combined with the target identifier verification mechanism, can effectively prevent illegal devices from accessing the system and ensure the security of communication data.
[0082] In some optional embodiments, such as Figure 4 As shown, if there is no conflicting response within the first preset receiving time, the card search response continues to be received. If the number of all correct card search responses received within the second preset receiving time is greater than 1, it is determined that there are multiple near-field communication devices.
[0083] Specifically, if there are no conflicting responses within the first preset receiving time, then there is data for a card search response within the first preset receiving time. The card search response continues to be received. If multiple card search responses are received within the second preset receiving time, it is determined whether the card search responses overlap in time. If there is temporal overlap between the card search responses, the process of steps S2021-S2022 is used to determine whether there are conflicting responses. This is not repeated here. If there is temporal overlap between the card search responses, the card reader can correctly receive multiple correct card search responses. For example, within multiple consecutive receiving frames, the first receiving frame receives the first card search response, the second receiving frame receives the second card search response, the third receiving frame does not receive any card search response, and so on, until the nth receiving frame receives the nth card search response. This indicates that there are no conflicting responses between the card search responses.
[0084] The end condition for continuously receiving card search responses may be starting from receiving the first card search response, continuing for the second preset receiving time, and ending the process of receiving card search responses. The second preset receiving time is greater than the first preset receiving time, and can generally be an integer multiple of the first preset receiving time, set according to data receiving requirements, such as 400μs, which is only an example, but not limited to this; it can also be ending when the last card search response is received, and no new card search response is received for a preset time interval, then ending the process of receiving card search responses, which is only an example, but not limited to this.
[0085] If the card reader receives multiple correct card search responses, it is determined that there are multiple near field communication devices in the magnetic field of the card reader.
[0086] The multi-card recognition method based on near-field communication technology provided in this embodiment continues to receive card search responses if there is no conflicting response within the first preset receiving time, and determines whether there are multiple near-field communication devices based on the number of received card search responses, thereby reducing repeated data interaction between the two parties in the near-field communication and improving the efficiency of multi-card recognition.
[0087] In some optional embodiments, such as Figure 4 As shown, if the unique identifier includes a unique identity identifier, the method further includes:
[0088] If there are multiple near-field communication devices, the unique identifications contained in all correct card search responses are obtained.
[0089] According to the unique identity identifier, a near field communication device corresponding to a target identifier is determined from all correct card search responses as the target near field communication device.
[0090] Specifically, after the card reader correctly receives card search responses from multiple cards, it can extract the corresponding unique identifiers from each correct card search response and determine a target NFC device corresponding to the target identifier based on the unique identifiers. In this case, the card reader does not need to send the identifier acquisition command again. The target NFC device can also be selected based on a preset priority principle. This technology is mature and will not be further described here. This is merely an example and is not intended to be limiting.
[0091] The multi-card recognition method based on near-field communication technology provided in this embodiment directly determines the target near-field communication device based on the unique identity identifier contained in the card search response when the card reader receives multiple correct card search responses, thereby improving the accuracy and efficiency of multi-card recognition.
[0092] In this embodiment, a multi-card identification method based on near field communication technology is provided, which is applied to a near field communication device or the above-mentioned computer system. Figure 4 is a flow chart of a multi-card identification method based on near field communication technology according to an embodiment of the present application. Figure 4 As shown, the process includes the following steps:
[0093] Step S301: receiving a card search instruction, generating a card search response according to the card search instruction, and sending the card search response. The card search response includes a unique identifier of the near field communication device.
[0094] Specifically, near-field communication devices include but are not limited to: cards that support NFC function. The card reader can only identify conflicting responses when multiple card search responses contain different data. In order to speed up the recognition speed, a unique identifier is defined in the card search response generated by the near-field communication device according to the card search instruction, and is fed back to the card reader together with the card search response. The card reader only needs to determine whether the card search responses are the same based on the unique identifier, and then identify response conflicts or identify multiple near-field communication devices.
[0095] The multi-card identification method based on near-field communication technology provided in this embodiment is configured in advance on the near-field communication device side to send a card search response with a unique identifier after receiving a card search instruction, thereby speeding up the conflict identification and card selection process and improving communication efficiency.
[0096] This embodiment also provides a multi-card recognition device based on near-field communication technology. This device is used to implement the above-mentioned embodiments and preferred embodiments. Details already described will not be repeated here. As used below, the term "module" may refer to a combination of software and / or hardware that implements a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, implementation using hardware, or a combination of software and hardware, is also possible and contemplated.
[0097] This embodiment provides a multi-card recognition device based on near field communication technology, which is applied to a near field communication card reader, such as Figure 5 As shown, including:
[0098] The response receiving module 501 is configured to send a card search instruction and continuously receive a card search response within a first preset receiving time. The card search response includes a unique identifier of the corresponding near field communication device.
[0099] The first conflict determination module 502 is configured to determine whether there is a conflict response within a first preset receiving time according to the received card search response, and if there is a conflict response, determine that there are multiple near field communication devices.
[0100] This embodiment provides a multi-card recognition device based on near field communication technology, which is applied to near field communication devices such as Figure 5 As shown, including:
[0101] The card search response generation module 503 is configured to receive a card search instruction, and generate and send a card search response according to the card search instruction. The card search response includes a unique identifier of the near field communication device.
[0102] The further functional description of each of the above modules and units is the same as that of the above corresponding embodiments and will not be repeated here.
[0103] The multi-card recognition device based on near-field communication technology in this embodiment is presented in the form of a functional unit, where the unit refers to an ASIC (Application Specific Integrated Circuit) circuit, a processor and memory that executes one or more software or fixed programs, and / or other devices that can provide the above functions.
[0104] The present application also provides a computer device having the above Figure 5 The multi-card recognition device based on near field communication technology is shown.
[0105] See also Figure 6 , Figure 6 This is a schematic diagram of the structure of a computer device provided by an optional embodiment of the present application. Figure 6 As shown, the computer device includes: one or more processors 10, memory 20, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. Various components utilize different buses to communicate with each other and can be installed on a common mainboard or installed in other ways as needed. The processor can process the instructions executed in the computer device, including instructions stored in the memory or on the memory to display the graphical information of the GUI on an external input / output device (such as, a display device coupled to the interface). In some optional embodiments, if necessary, multiple processors and / or multiple buses can be used together with multiple memories and multiple memories. Equally, multiple computer devices can be connected, and each device provides part of the necessary operations (for example, as a server array, a group of blade servers, or a multi-processor system). Figure 6 A processor 10 is taken as an example.
[0106] The processor 10 may be a central processing unit, a network processor, or a combination thereof. The processor 10 may further include a hardware chip. The hardware chip may be an application-specific integrated circuit, a programmable logic device, or a combination thereof. The programmable logic device may be a complex programmable logic device, a field programmable gate array, a general purpose array logic, or any combination thereof.
[0107] The memory 20 stores instructions that can be executed by at least one processor 10, so that the at least one processor 10 executes the method shown in the above embodiment.
[0108] The memory 20 may include a program storage area and a data storage area, wherein the program storage area may store an operating system and application programs required for at least one function; the data storage area may store data created based on the use of the computer device, etc. In addition, the memory 20 may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some optional embodiments, the memory 20 may optionally include a memory remotely located relative to the processor 10, and these remote memories may be connected to the computer device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0109] The memory 20 may include a volatile memory, such as a random access memory; the memory may also include a non-volatile memory, such as a flash memory, a hard disk or a solid-state drive; the memory 20 may also include a combination of the above types of memory.
[0110] The computer device further includes an input device 30 and an output device 40. The processor 10, the memory 20, the input device 30 and the output device 40 may be connected via a bus or other means. Figure 6 The bus connection is taken as an example.
[0111] The input device 30 can receive input digital or character information and generate key signal input related to user settings and function control of the computer device, such as a touch screen, a keypad, a mouse, a trackpad, a touch pad, an indicator stick, one or more mouse buttons, a trackball, a joystick, etc. The output device 40 can include a display device, an auxiliary lighting device (e.g., an LED), and a tactile feedback device (e.g., a vibration motor). The above-mentioned display device includes but is not limited to a liquid crystal display, a light emitting diode, a display, and a plasma display. In some optional embodiments, the display device can be a touch screen.
[0112] The embodiments of the present application also provide a computer-readable storage medium, and the above-mentioned method according to the embodiment can be implemented in hardware, firmware, or implemented as a computer code that can be recorded in a storage medium, or implemented as a computer code that is originally stored in a remote storage medium or a non-temporary machine-readable storage medium and downloaded through a network and will be stored in a local storage medium, so that the method described herein can be stored in such software processing on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. Among them, the storage medium can be a magnetic disk, an optical disk, a read-only storage memory, a random access memory, a flash memory, a hard disk or a solid-state drive, etc.; further, the storage medium can also include a combination of the above-mentioned types of memory. It can be understood that a computer, a processor, a microprocessor controller or programmable hardware includes a storage component that can store or receive software or computer code. When the software or computer code is accessed and executed by a computer, a processor or hardware, the method shown in the above embodiment is implemented.
[0113] Although the embodiments of the present application have been described with reference to the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present invention, and such modifications and variations shall fall within the scope defined by the appended claims.
Claims
1. A multi-card recognition method based on near field communication technology, characterized in that: The method is applied to a near field communication card reader, and the method includes: Sending a card search instruction and continuously receiving a card search response within a first preset receiving time, wherein the card search response includes a unique identifier of the corresponding near-field communication device; It is determined whether there is a conflicting response within a first preset receiving time according to the received card-searching response. If there is a conflicting response, it is determined that there are multiple near-field communication devices.
2. The method according to claim 1, characterized in that The unique identifier includes at least one of a unique random number, a unique serial number, and a unique identity identifier of the near field communication device.
3. The method according to claim 2, characterized in that If there is no conflicting response within the first preset receiving time, continue to receive card search responses. If the number of all correct card search responses received within the second preset receiving time is greater than 1, it is determined that there are multiple near-field communication devices.
4. The method according to claim 2, characterized in that Determining whether there is a conflicting response within a first preset receiving time according to the received card search response includes: Based on the unique identifier of the near field communication device included in the card search response, determining whether there is a card search response with different data in the received card search response, and if there is a card search response with different data, then there is a conflicting response within the first preset receiving time; If there is no card search response with different data, then there is no conflicting response within the first preset receiving time.
5. The method according to claim 3, characterized in that If the unique identifier includes a unique identity identifier, the method further includes: If there are multiple near-field communication devices, obtain the unique identity identifiers contained in all correct card search responses; According to the unique identity, a near field communication device corresponding to a target identity is determined from all correct card search responses as a target near field communication device.
6. The method according to claim 3 or 4, characterized in that If the unique identifier does not include a unique identity identifier, the method further includes: If there are multiple NFC devices, the anti-collision card selection process is started to obtain the unique identity of each NFC device; According to the unique identification of each near field communication device, a near field communication device corresponding to the target identification is selected as the target near field communication device.
7. A multi-card identification method based on near field communication technology, characterized in that: The method is applied to a near field communication device for near field communication, and the method includes: A card search instruction is received, and a card search response is generated and sent out according to the card search instruction, wherein the card search response includes a unique identifier of the near field communication device.
8. A multi-card recognition device based on near field communication technology, characterized in that: The device is applied to a card reader for near field communication, and the device comprises: a response receiving module, configured to send a card search instruction and continuously receive a card search response within a first preset receiving time, wherein the card search response includes a unique identifier of the corresponding near field communication device; The first conflict judgment module is configured to judge whether there is a conflict response within a first preset receiving time according to the received card search response, and if there is a conflict response, determine that there are multiple near field communication devices.
9. A multi-card recognition device based on near field communication technology, characterized in that: The device is applied to a near field communication device for near field communication, and the device includes: The card search response generation module is used to receive a card search instruction, and generate a card search response according to the card search instruction and send it out. The card search response includes a unique identifier of the near field communication device.
10. A computer device, characterized in that: include: A memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the method of any one of claims 1 to 6 or the method of claim 7 by executing the computer instructions.
11. A computer-readable storage medium, characterized in that The computer-readable storage medium stores computer instructions, which are used to enable a computer to execute the method according to any one of claims 1 to 6 or the method according to claim 7.
Citation Information
Patent Citations
Data communication method from label to reader-writer based on Miller codes
CN102129580A
Detection method for radio-frequency SIM (Subscriber Identity Module) card collision with low-frequency magnetic communication
CN102215050A
Method for preventing conflicts between different-frequency cards and bi-frequency card reader
CN105809078A
Method and device of card activation
CN108288008A
Simulation card instruction interaction method and device, terminal and storage medium
CN119721075A