Information processing method and device for near field communication, electronic equipment and storage medium
Patent Information
- Application Number
- CN202610982122.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-07-02
- Publication Date
- 2026-10-16
AI Technical Summary
[0009]本公开实施例提供的技术方案与现有技术相比具有如下优点:
Smart Images

Figure CN122934232A_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of near-field communication technology, and in particular to a near-field communication information processing method, apparatus, electronic device and storage medium. Background Technology
[0002] With the rapid development of mobile internet, Near Field Communication (NFC) technology has been widely adopted. Currently, a single smart device can store multiple cards to suit different application scenarios. However, existing card scheduling mechanisms typically rely on users actively configuring default cards, manually selecting cards, or adjusting card order based on recent usage records, location information, etc. During NFC interactions with multiple cards, card swiping failures are easily caused by misinterpretation of intent, resulting in low efficiency and accuracy. Summary of the Invention
[0003] To address the aforementioned technical problems, this disclosure provides an information processing method, apparatus, electronic device, and storage medium for near-field communication.
[0004] A first aspect of this disclosure provides an information processing method for near-field communication, applied to a first device, the first device having NFC emulation card functionality, including: Obtain the current radio frequency characteristics information of the second device; Based on the current radio frequency characteristic information and historical radio frequency characteristic information, the first card is identified, and near-field communication interaction is performed based on the first card; Based on the results of near-field communication interaction, a second card matching the current radio frequency feature information is determined, and a binding relationship is established between the current radio frequency feature information and the second card. This binding relationship is used to determine the card corresponding to the second device when entering the near-field communication sensing range of the second device, so as to carry out near-field communication interaction.
[0005] A second aspect of this disclosure provides a near-field communication information processing apparatus, applied to a first device, the first device having NFC emulation card functionality, including: The information acquisition module is used to acquire the current radio frequency characteristic information of the second device; The card identification module is used to identify the first card based on the current radio frequency characteristic information and historical radio frequency characteristic information, and to perform near-field communication interaction operations based on the first card; The information processing module is used to determine the second card that matches the current radio frequency feature information based on the near-field communication interaction results, and to establish a binding relationship between the current radio frequency feature information and the second card. The binding relationship is used to determine the card corresponding to the second device when entering the near-field communication sensing range of the second device, so as to carry out near-field communication interaction.
[0006] A third aspect of this disclosure provides an electronic device, including: processor; Memory, used to store executable instructions; The processor is used to read executable instructions from memory and execute the executable instructions to implement the near-field communication information processing method provided in the first aspect above.
[0007] A fourth aspect of this disclosure provides a computer-readable storage medium storing a computer program that, when executed by a processor, causes the processor to implement the near-field communication information processing method provided in the first aspect.
[0008] A fifth aspect of this disclosure provides a computer program product comprising a computer program or instructions that, when executed by a processor, implement the near-field communication information processing method of the first aspect described above.
[0009] The technical solution provided in this disclosure has the following advantages compared with the prior art: The near-field communication information processing method, apparatus, electronic device, and storage medium provided in this disclosure can continuously learn the unique radio frequency (RF) characteristics of different second devices by dynamically comparing the current and historical RF characteristics of a second device (i.e., a card reader device). This automatically establishes a binding relationship between the successfully used card and the RF characteristics of the second device for each interaction. When the user approaches the device again, the device can automatically retrieve the most matching card based on the historically bound RF characteristics, eliminating tedious selection steps and avoiding interaction failures or retries due to incorrect card selection. Furthermore, the matching rules can be continuously optimized based on user usage in different scenarios, ultimately making near-field communication interactions smoother, smarter, and more seamless, with adaptive capabilities, thereby improving card-swiping efficiency and accuracy. Attached Figure Description
[0010] The accompanying drawings, which are incorporated in and form a part of this specification, illustrate embodiments consistent with this disclosure and, together with the description, serve to explain the principles of this disclosure.
[0011] To more clearly illustrate the technical solutions in the embodiments of this disclosure or the prior art, the accompanying drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0012] Figure 1This is a flowchart of an information processing method for near-field communication provided in an embodiment of this disclosure; Figure 2 This is a flowchart of a first card determination method provided in an embodiment of this disclosure; Figure 3 This is a schematic diagram of the structure of an information processing device for near-field communication provided in an embodiment of this disclosure; Figure 4 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this disclosure. Detailed Implementation
[0013] To better understand the above-mentioned objectives, features, and advantages of this disclosure, the solutions disclosed herein will be further described below. It should be noted that, unless otherwise specified, the embodiments and features described herein can be combined with each other.
[0014] Numerous specific details are set forth in the following description in order to provide a full understanding of this disclosure, but this disclosure may also be implemented in other ways different from those described herein; obviously, the embodiments in the specification are only some, and not all, of the embodiments of this disclosure.
[0015] It should be understood that the steps described in the method embodiments of this disclosure may be performed in different orders and / or in parallel. Furthermore, the method embodiments may include additional steps and / or omit the steps shown. The scope of this disclosure is not limited in this respect.
[0016] It should be noted that, in this document, relational terms such as "first" and "second" are used merely to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.
[0017] It should be noted that the terms "a" and "a plurality of" used in this disclosure are illustrative rather than restrictive, and those skilled in the art should understand that, unless otherwise expressly indicated in the context, they should be understood as "one or more".
[0018] With the rapid development of mobile internet, Near Field Communication (NFC) technology has been widely adopted. Currently, a single smart device can store multiple cards to suit different application scenarios. However, existing card scheduling mechanisms typically rely on users actively configuring default cards, manually selecting cards, or adjusting card order based on recent usage records and location information. During NFC interactions among multiple cards, in scenarios where the reader does not send explicit application identifier selection instructions, the terminal device (i.e., a device with NFC card emulation functionality) lacks standard protocol fields for directly identifying the specific reader. Without a learning mechanism, the terminal device struggles to determine which card corresponds to a particular set of radio frequency behavioral characteristics. While user-initiated learning can establish explicit bindings, it requires user understanding and active operation, making it unsuitable for all users and all card-swiping scenarios. Furthermore, simply recommending cards based on the most recent successful card or geographical location can easily lead to misjudgments when there are multiple access control points in the same building, multiple entrances in the same community, or when a user temporarily changes their route, resulting in low card-swiping efficiency and accuracy. To address this issue, this disclosure provides an information processing method for near field communication, which will be described below with reference to specific embodiments.
[0019] Figure 1 This is a flowchart of a near-field communication information processing method provided in an embodiment of the present disclosure. The method can be executed by a near-field communication information processing device, which can be implemented in software and / or hardware. The near-field communication information processing device can be configured in an electronic device, such as a server or terminal, wherein the terminal specifically includes a mobile phone, computer or tablet computer, etc.
[0020] like Figure 1 As shown, the near-field communication information processing method provided in this embodiment can be applied to a first device, which has NFC simulated card functionality. The first device includes a feature learning system, which comprises an automatic learning management unit, a card swipe result judgment unit, a manual card switching association unit, and a feature library management unit. After acquiring current radio frequency feature information, the first device uploads it to the feature learning system. The automatic learning management unit in the feature learning system compares the current radio frequency feature information with historical radio frequency feature information to determine the first card, and performs near-field communication interaction with the second device based on the first card. The manual card switching association unit responds to the user's card switching command. The card swipe result judgment unit combines the result of the manual card switching association unit's response to the user's card switching command with the near-field communication successful card swipe event to determine the second card matching the current radio frequency feature information. The feature library management unit manages the current radio frequency feature information and establishes a binding relationship between the second card and the current radio frequency feature information.
[0021] The information processing method for this near-field communication may include the following steps.
[0022] S110: Obtain the current radio frequency characteristic information of the second device.
[0023] In this embodiment, radio frequency (RF) characteristic information can be understood as behavioral events of the second device. Specifically, it may include instruction information, the time interval, frequency, and sequence of each instruction. Each instruction may include commands such as field activation, field deactivation, REQA, REQB, and REQC. Based on the RF characteristic information, features such as the frequency of REQA / REQB / REQC commands within one switching field cycle, the time interval between adjacent request commands, the interval between the request command and the field activation / deactivation, the field holding duration, and the periodic repetition pattern can be extracted to form a feature template for the second device.
[0024] Among them, REQA, REQB, and REQC are request instructions used by the second device (i.e., the card reader device) to discover and initialize different protocol types (i.e., Type A, Type B, and Type C).
[0025] In some embodiments of this disclosure, the electronic device can respond to the user's near-field communication information processing instruction, parse the near-field communication information processing instruction, and directly obtain the current radio frequency characteristic information of the second device if the near-field communication information processing instruction contains the current radio frequency characteristic information of the second device.
[0026] In other embodiments of this disclosure, the electronic device may respond to a user's near-field communication information processing command, parse the near-field communication information processing command, and if the near-field communication information processing command contains the identification information of the second device, obtain the current radio frequency characteristic information of the second device from a preset database based on the identification information of the second device.
[0027] In some embodiments of this disclosure, the electronic device may, in response to entering the near-field communication sensing range of the second device, control the near-field communication module in the first device to collect the radio frequency characteristic information of the second device at the current moment, thereby obtaining the current radio frequency characteristic information of the second device.
[0028] S120. Based on the current radio frequency characteristic information and historical radio frequency characteristic information, determine the first card, and perform near-field communication interaction operation based on the first card.
[0029] In this embodiment of the disclosure, historical radio frequency (RF) characteristic information can be understood as RF characteristic information from multiple historical moments stored in a preset database. The RF characteristic information from multiple historical moments can be RF characteristic information from multiple different second devices.
[0030] In this embodiment of the disclosure, the first card may include, but is not limited to, a car key, access card, bus card, subway card, etc.
[0031] Specifically, after acquiring the current radio frequency (RF) characteristic information, the electronic device can retrieve historical RF characteristic information from a preset database, compare the current RF characteristic information with the historical RF characteristic information, obtain a comparison result, and determine the first card based on the comparison result. After determining the first card, it performs near-field communication interaction with the second device based on the first card. The specific implementation method for performing the near-field communication interaction is similar to the existing implementation methods for performing near-field communication interaction, and will not be described in detail here.
[0032] S130. Based on the near-field communication interaction results, determine the second card that matches the current radio frequency feature information, and establish the binding relationship between the current radio frequency feature information and the second card.
[0033] In this embodiment of the disclosure, the binding relationship is used to determine the card corresponding to the second device when entering the near-field communication sensing range of the second device, so as to conduct near-field communication interaction.
[0034] In this embodiment of the disclosure, the near-field communication interaction result can be understood as information used to characterize whether the near-field communication interaction was successful.
[0035] Specifically, after performing a near-field communication interaction based on the first card, the electronic device acquires the near-field communication interaction result. Based on the near-field communication interaction result, it determines a second card that matches the current radio frequency characteristic information and binds the second card to the current radio frequency characteristic information to establish a binding relationship between the current radio frequency characteristic information and the second card. When re-entering the near-field communication sensing range of the second device, it acquires the radio frequency characteristic information of the second device. Based on the binding relationship and the radio frequency characteristic information, it determines a card that has a binding relationship with the radio frequency characteristic information and directly performs near-field communication interaction based on that card.
[0036] In this embodiment, by dynamically comparing the current and historical RF characteristics of the second device (i.e., the card reader), the system continuously learns the unique RF characteristics of different second devices and automatically establishes a binding relationship between the successfully used card and the RF characteristics of the second device for each interaction. Then, when the user approaches the device again, the device can automatically retrieve the most matching card based on the historically bound RF characteristics, eliminating tedious selection steps and avoiding interaction failures or retries due to incorrect card selection. Simultaneously, the matching rules are continuously optimized based on user usage in different scenarios, ultimately making near-field communication interaction smoother, smarter, and more seamless, with adaptive capabilities, thereby improving card-swiping efficiency and accuracy.
[0037] In this embodiment of the disclosure, the electronic device can determine the first card based on current radio frequency characteristic information and historical radio frequency characteristic information. The following will combine... Figure 2 A detailed introduction will be provided.
[0038] Figure 2 This is a flowchart of a first card determination method provided in an embodiment of this disclosure. Figure 2 As shown, the first card is determined based on the current radio frequency characteristic information and historical radio frequency characteristic information, which may specifically include the following steps: S210. Compare the current radio frequency characteristic information with the historical radio frequency characteristic information to obtain the comparison result.
[0039] In this embodiment of the disclosure, comparing the current radio frequency feature information with historical radio frequency feature information to obtain a comparison result may specifically include: comparing the first instruction information in the current radio frequency feature information with the second instruction information in the historical radio frequency feature information to determine whether there is a common target instruction, thereby obtaining a first comparison result; and / or: comparing the first time interval between each instruction in the current radio frequency feature information with the second time interval between each instruction in the historical radio frequency feature information to determine whether the difference between the first time interval and the second time interval is within a certain error range, thereby obtaining a second comparison result; and determining a comparison result based on the first comparison result and / or the second comparison result.
[0040] The first time interval and the second time interval between each instruction can be understood as the time interval between a specific target instruction and its adjacent instructions in the current and historical radio frequency feature information. For example, taking the REQA instruction as an example, the time interval between the REQA instruction in the current radio frequency feature information and its adjacent first instruction is the first time interval; the time interval between the REQA instruction in the historical radio frequency feature information and its adjacent first instruction is the second time interval.
[0041] Further, determining the comparison result based on the first comparison result and / or the second comparison result may specifically include: if the first comparison result shows that there is the same target instruction in the first instruction information and the second instruction information, and the second comparison result shows that the difference between the first time interval between each instruction in the current radio frequency feature information and the second time interval between each instruction in the historical radio frequency feature information is less than or equal to a preset difference threshold, it indicates that the current radio frequency feature information and the historical radio frequency feature information are the same type of radio frequency feature information and may come from the same second device, then the comparison result is determined to be that the historical radio frequency feature information is the target historical radio frequency feature information; if the first comparison result shows that there is no same target instruction in the first instruction information and the second instruction information, and / or the second comparison result shows that the difference between the first time interval between each instruction in the current radio frequency feature information and the second time interval between each instruction in the historical radio frequency feature information is greater than a preset difference threshold, it indicates that the current radio frequency feature information and the historical radio frequency feature information are not the same type of radio frequency feature information, that is, they come from different second devices, then the comparison result is determined to be that the historical radio frequency feature information is not the target historical radio frequency feature information.
[0042] It should be noted that electronic devices can also compare the current radio frequency characteristic information with other information in the historical radio frequency characteristic information, such as the number of times each instruction was given and the order of execution, to determine whether the current radio frequency characteristic information and the historical radio frequency characteristic information belong to the same type of radio frequency characteristic information. This will not be elaborated on here.
[0043] S220. If it is determined from the comparison results that target historical radio frequency feature information exists, the card corresponding to the target historical radio frequency feature information is determined as the first card.
[0044] In this embodiment of the disclosure, the target historical radio frequency (RF) feature information refers to historical RF feature information that belongs to the same category as the current RF feature information. Same category RF feature information means that the two RF feature information are identical or similar. Only when two RF feature information are identical or similar can the second device corresponding to these two RF feature information potentially be the same device.
[0045] In some embodiments of this disclosure, if an electronic device determines that target historical radio frequency feature information exists based on the comparison result, it indicates that the current radio frequency feature information and the target historical radio frequency feature information are likely from the same second device. At this time, the card that has a binding relationship with the target historical radio frequency feature information is determined as the first card.
[0046] In other embodiments of this disclosure, if the electronic device determines, based on the comparison results, that no target historical radio frequency feature information exists, indicating that no historical radio frequency feature information from the same second device as the current radio frequency feature information exists, then a second card is determined based on the default card selection rule. The default card selection rule can be a recently used card, a card recommended based on geographical location, a card determined based on card priority configuration, etc., and is specifically determined according to the user's settings, without limitation here.
[0047] In this embodiment of the disclosure, by dynamically comparing the radio frequency feature information of the second device (i.e., the card reader device), the radio frequency feature information from different card reader devices can be accurately distinguished, and the card can be determined based on the radio frequency feature information. This improves the accuracy and efficiency of card determination, reduces the number of retries, and brings users a smoother, more stable and reliable near-field interaction experience.
[0048] In this embodiment of the disclosure, determining the second card that matches the current radio frequency feature information based on the near-field communication interaction result may specifically include: determining the first card as the second card when the near-field communication interaction result is a successful card swipe event received and / or no card switching instruction from the user is received within a preset time period; and determining the card corresponding to the card switching instruction as the second card when the near-field communication interaction result is no successful card swipe event received, but a card switching instruction from the user is received within a preset time period, and the card corresponding to the card switching instruction has successfully interacted with the second device through near-field communication.
[0049] In the embodiments disclosed herein, a successful card swipe event may include successful authentication of the second device, successful read / write, host controller interface event (HCI event), etc.
[0050] In this embodiment of the disclosure, receiving a successful card swipe event, or not receiving a card switching instruction from the user within a preset time period, indicates that the first card and the second device have successfully interacted via near-field communication, meaning that the first card is a card that matches the second device. Therefore, the first card is identified as the second card.
[0051] In this embodiment of the disclosure, if no successful card swipe event is received and a card-switching instruction from the user is received within a preset time period, it indicates that the near-field communication interaction between the first card and the second device has failed, that is, the first card is not a card that matches the second device, and thus the card corresponding to the user's card-switching instruction is determined to be the second card.
[0052] In this embodiment of the disclosure, the information processing method for near-field communication may further include: deleting the current radio frequency feature information when the near-field communication interaction result is that no successful card swipe event is received and no card switching instruction from the user is received within a preset time period.
[0053] Specifically, if the electronic device does not receive a successful card swipe event, it caches the current radio frequency feature information, the first card, and the unsuccessful context, and waits for a preset time. If it does not receive a card-switching instruction from the user within the preset time period, it deletes the current radio frequency feature information to discard it.
[0054] Therefore, the second card that matches the current radio frequency characteristics can be determined based on the results of near-field communication interaction, thus improving the accuracy and reliability of the second card determination.
[0055] In this embodiment of the disclosure, establishing the binding relationship between the current radio frequency feature information and the second card may specifically include: determining the number of radio frequency feature information bound to the second card when the near-field communication interaction result is a successful card swipe event received, and / or no card switching instruction from the user is received within a preset time period; and establishing the binding relationship between the current radio frequency feature information and the second card when the number of radio frequency feature information bound to the second card is less than a preset number threshold.
[0056] Specifically, when the electronic device successfully interacts with the second device via near-field communication, it identifies the first card as the second card and determines the number of radio frequency feature information bound to the second card. If the number of radio frequency feature information bound to the second card is less than a preset threshold, a binding relationship is established between the current radio frequency feature information and the second card. If the number of radio frequency feature information bound to the second card is greater than or equal to the preset threshold, it indicates that the binding relationship between the current radio frequency feature information and the card is stable and reliable, and there is no need to establish a binding relationship between the current radio frequency feature information and the second card.
[0057] In this embodiment of the disclosure, it is possible to determine whether it is necessary to re-establish the binding relationship between the current radio frequency feature information and the second card based on the number of radio frequency feature information bound to the second card, thereby reducing resource waste while ensuring that the binding relationship is established accurately and reliably.
[0058] In this embodiment of the disclosure, after obtaining the current radio frequency characteristic information of the second device, the information processing method of the near-field communication may further include: performing validity detection on the current radio frequency characteristic information to obtain a validity detection result.
[0059] Specifically, after acquiring the current radio frequency (RF) characteristic information, the electronic device can detect the instruction information contained in the current RF characteristic information to determine whether a target type instruction exists, thus performing a validity check. If a target type instruction is found to exist, the current RF characteristic information is deemed valid; otherwise, the current RF characteristic information is deemed invalid. The target type instruction is one necessary for near-field communication interaction.
[0060] Furthermore, based on the current radio frequency feature information and historical radio frequency feature information, the first card is determined. Specifically, this may include: if the validity detection result indicates that the current radio frequency feature information is valid, the first card is determined based on the current radio frequency feature information and historical radio frequency feature information.
[0061] In this embodiment of the disclosure, the first card can be determined when the current radio frequency feature information is valid, so as to carry out subsequent processing (such as establishing a binding relationship), which provides stable and effective data support for subsequent processing, thereby ensuring the accuracy and effectiveness of the subsequent processing.
[0062] The following section will provide a detailed explanation with specific examples.
[0063] Example: A user's mobile phone (the first device) contains two access control cards, Card 1 and Card 2. The user does not access any learning interface, but simply approaches the card reader device at the company's east gate (the second device) multiple times during daily use. Radio frequency (RF) characteristic information is collected during each card swipe, and candidate item data for the feature library template is generated.
[0064] In one scenario, if the system actually uses card 1 during one of the card swipes, and the access control card application reports a successful authentication or read / write success event through the preset firmware (FW), or if no repeated opening, re-entry, or re-swiping is detected within a preset time after the last swipe, then the system is deemed to have successfully identified the card. The system then determines the number of RFID feature information bound to card 1 in the preset database. If the number of RFID feature information bound to card 1 is greater than a preset threshold, then the system is deemed to have sufficient RFID feature templates in the preset database to ensure successful card swipe identification, and there is no need to establish a binding relationship between the current RFID feature information and card 1, thus ending the process.
[0065] In another scenario, the system first collects the radio frequency (RF) signature information (candidate item data) of the card reader device at the east gate, but does not receive a successful swipe event corresponding to the currently attempted card 1. Therefore, it temporarily stores the current RF signature information (candidate item data), card 1 information, and the unsuccessful context. The user then manually switches to card 2 and successfully swipes it on the same card reader device. The signature learning system determines that the previously stored RF signature information corresponds to card 2, and thus binds the current RF signature information (candidate item data) to card 2, establishing a binding relationship and completing one automatic learning cycle. Subsequently, when the user approaches the card reader device again, the system can prioritize card 2 for near-field communication interaction.
[0066] Figure 3 This is a schematic diagram of the structure of an information processing device for near-field communication provided in an embodiment of this disclosure.
[0067] In this embodiment, the near-field communication information processing device can be disposed within an electronic device and is understood as a functional module of the aforementioned electronic device. Specifically, the electronic device can be a server or a terminal, wherein the terminal specifically includes mobile phones, computers, or tablet computers, etc., without limitation.
[0068] like Figure 3 As shown, the information processing device 300 for near-field communication may include an information acquisition module 310, a card determination module 320, and an information processing module 330.
[0069] The information acquisition module 310 can be used to acquire the current radio frequency characteristic information of the second device.
[0070] The card identification module 320 can be used to identify a first card based on current radio frequency characteristic information and historical radio frequency characteristic information, and perform near-field communication interaction operations based on the first card.
[0071] The information processing module 330 can be used to determine the second card that matches the current radio frequency feature information based on the near-field communication interaction results, and establish a binding relationship between the current radio frequency feature information and the second card. The binding relationship is used to determine the card corresponding to the second device when entering the near-field communication sensing range of the second device, so as to carry out near-field communication interaction.
[0072] In this embodiment, by dynamically comparing the current and historical RF characteristics of the second device (i.e., the card reader), the system continuously learns the unique RF characteristics of different second devices and automatically establishes a binding relationship between the successfully used card and the RF characteristics of the second device for each interaction. Then, when the user approaches the device again, the device can automatically retrieve the most matching card based on the historically bound RF characteristics, eliminating tedious selection steps and avoiding interaction failures or retries due to incorrect card selection. Simultaneously, the matching rules are continuously optimized based on user usage in different scenarios, ultimately making near-field communication interaction smoother, smarter, and more seamless, with adaptive capabilities, thereby improving card-swiping efficiency and accuracy.
[0073] In some embodiments of this disclosure, the card determination module 320 may be specifically used to compare the current radio frequency feature information with the historical radio frequency feature information to obtain a comparison result; If the comparison results indicate the existence of target historical radio frequency feature information, the card corresponding to the target historical radio frequency feature information is identified as the first card. The target historical radio frequency feature information is historical radio frequency feature information that belongs to the same category as the current radio frequency feature information.
[0074] In some embodiments of this disclosure, the radio frequency characteristic information includes instruction information and the time interval between each instruction.
[0075] The card determination module 320 can also be specifically used to compare the first instruction information in the current radio frequency feature information with the second instruction information in the historical radio frequency feature information to obtain a first comparison result; and / or; The first time interval between each instruction in the current radio frequency feature information is compared with the second time interval between each instruction in the historical radio frequency feature information to obtain a second comparison result; The comparison result is determined based on the first comparison result and / or the second comparison result.
[0076] In some embodiments of this disclosure, the card determination module 320 may also be specifically used to determine that the historical radio frequency feature information is the target historical radio frequency feature information when the first comparison result is that there is the same target instruction in the first instruction information and the second instruction information, and the second comparison result is the difference between the first time interval between each instruction in the current radio frequency feature information and the second time interval between each instruction in the historical radio frequency feature information is less than or equal to a preset difference threshold. If the first comparison result is that there is no identical target instruction in the first instruction information and the second instruction information, and / or the second comparison result is that the difference between the first time interval between each instruction in the current radio frequency feature information and the second time interval between each instruction in the historical radio frequency feature information is greater than a preset difference threshold, then the comparison result is determined to be that the historical radio frequency feature information is non-target historical radio frequency feature information.
[0077] In some embodiments of this disclosure, the information processing module 330 may be specifically used to determine the first card as the second card when the near-field communication interaction result is a successful card swipe event and / or no card-switching instruction from the user is received within a preset time period. If the near-field communication interaction result is that no successful card swipe event is received, and a card-switching instruction from the user is received within a preset time period, the card corresponding to the card-switching instruction will be identified as the second card.
[0078] In some embodiments of this disclosure, the information processing module 330 may also be specifically used to determine the number of radio frequency feature information bound to the second card when the near-field communication interaction result is a successful card swipe event and / or no card-switching instruction from the user is received within a preset time period. If the number of radio frequency feature information bound to the second card is less than a preset threshold, a binding relationship is established between the current radio frequency feature information and the second card.
[0079] In some embodiments of this disclosure, the near-field communication information processing device 300 may further include an effectiveness detection module.
[0080] The validity detection module can be used to perform validity detection on the current radio frequency characteristic information after acquiring the current radio frequency characteristic information of the second device, and obtain the validity detection result.
[0081] The card determination module 320 can be specifically used to determine the first card based on the current radio frequency feature information and historical radio frequency feature information when the validity detection result indicates that the current radio frequency feature information is valid.
[0082] It should be noted that, Figure 3 The near-field communication information processing device 300 shown can execute the various steps in the above method embodiments and realize the various processes and effects in the above method embodiments, which will not be elaborated here.
[0083] Figure 4 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this disclosure.
[0084] In this embodiment of the disclosure, Figure 4The electronic devices shown can be servers or terminals, and terminals specifically include mobile phones, computers, or tablets, etc., without limitation.
[0085] like Figure 4 As shown, the electronic device may include a processor 410 and a memory 420 storing computer program instructions.
[0086] Specifically, the processor 410 may include a central processing unit (CPU), an application-specific integrated circuit (ASIC), or one or more integrated circuits that can be configured to implement the embodiments of this disclosure.
[0087] Memory 420 may include a large-capacity storage device for information or instructions. For example, and not limitingly, memory 420 may include a hard disk drive (HDD), a floppy disk drive, flash memory, optical disk, magneto-optical disk, magnetic tape, or a Universal Serial Bus (USB) drive, or a combination of two or more of these. Where appropriate, memory 420 may include removable or non-removable (or fixed) media. Where appropriate, memory 420 may be internal or external to the integrated gateway device. In a particular embodiment, memory 420 is a non-volatile solid-state memory. In a particular embodiment, memory 420 includes read-only memory (ROM). Where appropriate, the ROM may be a mask-programmed ROM, a programmable ROM (PROM), an erasable PROM (Electrically Programmable ROM, EPROM), an electrically erasable programmable PROM (EEPROM), an electrically alterable ROM (EAROM), or flash memory, or a combination of two or more of these.
[0088] The processor 410 reads and executes computer program instructions stored in the memory 420 to perform the steps of the near-field communication information processing method provided in the embodiments of this disclosure.
[0089] In one example, the electronic device may also include a transceiver 430 and a bus 440. Wherein, as... Figure 4 As shown, the processor 410, memory 420 and transceiver 430 are connected via bus 440 and communicate with each other.
[0090] Bus 440 may include hardware, software, or both. For example, and not limitingly, the bus may include an Accelerated Graphics Port (AGP) or other graphics bus, an Extended Industry Standard Architecture (EISA) bus, a Front Side Bus (FSB), a Hyper Transport (HT) interconnect, an Industrial Standard Architecture (ISA) bus, an Infinite Bandwidth Interconnect, a Low Pin Count (LPC) bus, a memory bus, a MicroChannel Architecture (MCA) bus, a Peripheral Component Interconnect (PCI) bus, a PCI-Express (PCI-X) bus, a Serial Advanced Technology Attachment (SATA) bus, a Video Electronics Standards Association Local Bus (VLB) bus, or other suitable buses, or a combination of two or more of these. Where appropriate, bus 440 may include one or more buses.
[0091] This disclosure also provides a computer-readable storage medium that can store a computer program. When the computer program is executed by a processor, the processor enables the processor to implement the near-field communication information processing method provided in this disclosure.
[0092] The aforementioned storage medium may include, for example, a memory 420 containing computer program instructions, which can be executed by a processor 410 of an electronic device to complete the near-field communication information processing method provided in this embodiment. Optionally, the storage medium may be a non-transitory computer-readable storage medium, such as a ROM, random access memory (RAM), compact disc ROM (CD-ROM), magnetic tape, floppy disk, and optical data storage device.
[0093] This disclosure also provides a computer program product, which includes a computer program or instructions. When the computer program or instructions are executed by a processor, they implement the information processing method for near-field communication provided in this disclosure and can achieve the various processes and effects in the above embodiments of this disclosure, which will not be elaborated here.
[0094] The above description is merely a specific embodiment of this disclosure, enabling those skilled in the art to understand or implement it. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of this disclosure. Therefore, this disclosure is not to be limited to the embodiments described herein, but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. An information processing method for near-field communication, characterized in that, Applied to a first device, the first device having NFC emulation card functionality, the method includes: Obtain the current radio frequency characteristics information of the second device; Based on the current radio frequency characteristic information and the historical radio frequency characteristic information, a first card is determined, and near-field communication interaction operation is performed based on the first card; Based on the near-field communication interaction results, a second card matching the current radio frequency feature information is determined, and a binding relationship is established between the current radio frequency feature information and the second card. The binding relationship is used to determine the card corresponding to the second device when entering the near-field communication sensing range of the second device, so as to perform near-field communication interaction.
2. The method according to claim 1, characterized in that, The step of determining the first card based on the current radio frequency characteristic information and the historical radio frequency characteristic information includes: The current radio frequency feature information is compared with the historical radio frequency feature information to obtain the comparison result; If the comparison result determines that target historical radio frequency feature information exists, the card corresponding to the target historical radio frequency feature information is determined as the first card, and the target historical radio frequency feature information is historical radio frequency feature information that belongs to the same type of radio frequency feature information as the current radio frequency feature information.
3. The method according to claim 2, characterized in that, Radio frequency characteristic information includes command information and the time interval between each command; The step of comparing the current radio frequency feature information with the historical radio frequency feature information to obtain a comparison result includes: The first instruction information in the current radio frequency feature information is compared with the second instruction information in the historical radio frequency feature information to obtain a first comparison result; and / or; The first time interval between each instruction in the current radio frequency feature information is compared with the second time interval between each instruction in the historical radio frequency feature information to obtain a second comparison result; The comparison result is determined based on the first comparison result and / or the second comparison result.
4. The method according to claim 3, characterized in that, Determining the comparison result based on the first comparison result and / or the second comparison result includes: If the first comparison result is that there is the same target instruction in the first instruction information and the second instruction information, and the second comparison result is that the difference between the first time interval between each instruction in the current radio frequency feature information and the second time interval between each instruction in the historical radio frequency feature information is less than or equal to a preset difference threshold, then the comparison result is determined to be that the historical radio frequency feature information is the target historical radio frequency feature information. If the first comparison result is that there is no identical target instruction in the first instruction information and the second instruction information, and / or the second comparison result is that the difference between the first time interval between each instruction in the current radio frequency feature information and the second time interval between each instruction in the historical radio frequency feature information is greater than a preset difference threshold, then the comparison result is determined to be that the historical radio frequency feature information is non-target historical radio frequency feature information.
5. The method according to claim 1, characterized in that, The step of determining the second card matching the current radio frequency feature information based on the near-field communication interaction results includes: If the near-field communication interaction result is a successful card swipe event, and / or no card switching instruction is received from the user within a preset time period, the first card will be identified as the second card; If the near-field communication interaction result is that no successful card swipe event is received, and a card-switching instruction from the user is received within a preset time period, the card corresponding to the card-switching instruction is identified as the second card.
6. The method according to claim 5, characterized in that, The step of establishing the binding relationship between the current radio frequency feature information and the second card includes: If the near-field communication interaction result is a successful card swipe event, and / or no card-switching instruction from the user is received within a preset time period, determine the number of radio frequency feature information bound to the second card; If the number of radio frequency feature information bound to the second card is less than a preset threshold, a binding relationship is established between the current radio frequency feature information and the second card.
7. The method according to claim 1, characterized in that, After obtaining the current radio frequency characteristic information of the second device, the method further includes: The validity of the current radio frequency feature information is tested to obtain the validity test result; The step of determining the first card based on the current radio frequency characteristic information and the historical radio frequency characteristic information includes: If the validity detection result indicates that the current radio frequency feature information is valid, the first card is determined based on the current radio frequency feature information and the historical radio frequency feature information.
8. An information processing device for near-field communication, characterized in that, Applied to a first device, the first device having NFC emulation card functionality, including: The information acquisition module is used to acquire the current radio frequency characteristic information of the second device; The card determination module is used to determine a first card based on the current radio frequency feature information and historical radio frequency feature information, and to perform near-field communication interaction operations based on the first card; The information processing module is used to determine a second card that matches the current radio frequency feature information based on the near-field communication interaction result, and to establish a binding relationship between the current radio frequency feature information and the second card. The binding relationship is used to determine the card corresponding to the second device when entering the near-field communication sensing range of the second device, so as to perform near-field communication interaction.
9. An electronic device, characterized in that, include: processor; Memory, used to store executable instructions; The processor is configured to read the executable instructions from the memory and execute the executable instructions to implement the near-field communication information processing method according to any one of claims 1-7.
10. A computer-readable storage medium, characterized in that, The storage medium stores a computer program, which, when executed by a processor, causes the processor to implement the near-field communication information processing method according to any one of claims 1-7.