Interaction processing method, device and equipment applied to induction equipment
By deploying a magnetic field sensor in the NFC payment device to detect magnetic field data and intelligently switching the working mode to adapt to mobile phones or IC cards, the compatibility and reliability issues in NFC sensing interaction scenarios are solved, and a more reliable payment experience is achieved.
Patent Information
- Application Number
- CN202411811891.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-17
- Publication Date
- 2026-01-27
AI Technical Summary
NFC sensing interaction scenarios have compatibility and reliability issues, especially when it comes to compatibility with different mobile phone manufacturers and IC cards, which affects the normal development of business.
By deploying a magnetic field sensor in the NFC payment device to detect magnetic field data, it can determine whether to use card emulation mode or card reader mode, and intelligently switch the working mode according to the changes in magnetic field to adapt to the current sensing object, thus realizing business interaction in card emulation mode or card reader mode.
It improves the compatibility and reliability of NFC payment devices, allowing users to make contactless payments via mobile phone or IC card, thus enhancing business reliability and user experience.
Smart Images

Figure CN121413639A_ABST
Abstract
Description
[0001] This application is a divisional application of the invention patent application filed on July 17, 2024, with application number 202410957665.5, entitled "An interactive processing method, apparatus and device for sensing devices". Technical Field
[0002] This specification relates to the field of sensor interaction technology, and in particular to an interaction processing method, apparatus, and device applied to sensor devices. Background Technology
[0003] Near Field Communication (NFC) is a short-range, high-frequency radio technology that operates at a frequency of 13.56 MHz within a range of 20 centimeters. It evolved from contactless radio frequency identification (RFID) and interconnection technologies, providing a highly secure and fast communication method for various electronic products.
[0004] With the widespread use of NFC-enabled smartphones, NFC technology is increasingly being applied in the payment field. Currently, NFC payment devices operate as card readers, while the user's NFC-enabled smartphone operates as a card emulator, simulating a credit or debit card. Users can then achieve a similar effect to swiping a card by bringing their smartphone close to the NFC payment device for interaction.
[0005] However, in practical applications, the above-mentioned interaction methods may have compatibility issues, such as compatibility problems between some applications and smartphone manufacturers, which may introduce unreliability factors into the interaction and even affect the normal development of some businesses.
[0006] Therefore, for NFC sensing interaction scenarios, solutions that help improve compatibility and reliability are needed. Summary of the Invention
[0007] This specification provides one or more embodiments of an interaction processing method, apparatus, device, and storage medium for use in sensing devices, in order to solve the following technical problem: for NFC sensing interaction scenarios, there is a need for solutions that help improve compatibility and reliability.
[0008] To solve the above-mentioned technical problems, one or more embodiments of this specification are implemented as follows:
[0009] This specification provides one or more embodiments of an interactive processing method applied to a sensing device, comprising:
[0010] It detects magnetic field data through magnetic field sensors deployed on its own surface;
[0011] Based on the changes in the magnetic field reflected by the magnetic field data, determine whether to use the card simulation working mode or the card reader working mode.
[0012] Using the working mode corresponding to the judgment result, business interaction is performed with the current sensing object that caused the change in the magnetic field.
[0013] This specification provides one or more embodiments of an interactive processing device applied to a sensing device, comprising:
[0014] The magnetic field data detection module detects magnetic field data through magnetic field sensors deployed on its own.
[0015] The working mode determination module determines whether to use card simulation working mode or card reader working mode based on the magnetic field changes reflected by the magnetic field data.
[0016] The sensing business interaction module uses the working mode corresponding to the judgment result to perform business interaction with the current sensing object that causes the change in the magnetic field.
[0017] This specification provides one or more embodiments of an interactive processing device applied to a sensing device, comprising:
[0018] At least one processor; and,
[0019] A memory communicatively connected to the at least one processor; wherein,
[0020] The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform:
[0021] It detects magnetic field data through magnetic field sensors deployed on its own surface;
[0022] Based on the changes in the magnetic field reflected by the magnetic field data, determine whether to use the card simulation working mode or the card reader working mode.
[0023] Using the working mode corresponding to the judgment result, business interaction is performed with the current sensing object that caused the change in the magnetic field.
[0024] This specification provides one or more embodiments of a non-volatile computer storage medium storing computer-executable instructions, wherein the computer-executable instructions are configured as follows:
[0025] It detects magnetic field data through magnetic field sensors deployed on its own surface;
[0026] Based on the changes in the magnetic field reflected by the magnetic field data, determine whether to use the card simulation working mode or the card reader working mode.
[0027] Using the working mode corresponding to the judgment result, business interaction is performed with the current sensing object that caused the change in the magnetic field.
[0028] The above-described at least one technical solution adopted in one or more embodiments of this specification can achieve the following beneficial effects: The NFC payment device (sensing device) simultaneously applies a switchable card emulation working mode and a card reader working mode, and provides corresponding business support. This allows users to make contactless payments not only via mobile phones but also via IC cards for the same NFC payment device. In the case of mobile phone contactless payments, to solve compatibility issues, the mobile phone tends to use the card reader working mode, while the NFC payment device uses the card emulation working mode. By analyzing the scene changes of the NFC payment device, it can infer whether the currently approaching sensing object is a mobile phone or an IC card, and then intelligently select the working mode to be used by the NFC payment device between the card emulation working mode and the card reader working mode. This makes the interaction more reliable, helps promote business development, and also helps improve the user experience. Attached Figure Description
[0029] To more clearly illustrate the technical solutions in the embodiments or prior art of this specification, the drawings used in the description of the embodiments or prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in this specification. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0030] Figure 1 A flowchart illustrating an interactive processing method for a sensing device provided in one or more embodiments of this specification;
[0031] Figure 2 A schematic diagram of the structure of an NFC payment device provided for one or more embodiments of this specification;
[0032] Figure 3 Provided for one or more embodiments of this specification Figure 2 A flowchart illustrating the working scheme of an NFC payment device;
[0033] Figure 4 A flowchart illustrating a magnetic field self-testing scheme provided for one or more embodiments of this specification;
[0034] Figure 5 A flowchart illustrating a visual sensing device operation mode selection and application scheme provided for one or more embodiments of this specification;
[0035] Figure 6 A flowchart illustrating a real-time visual prompting scheme for a user's sensing device, provided for one or more embodiments of this specification;
[0036] Figure 7 A schematic diagram of the structure of an interactive processing device applied to a sensing device, provided for one or more embodiments of this specification;
[0037] Figure 8 This is a schematic diagram of the structure of an interactive processing device applied to a sensing device, provided for one or more embodiments of this specification. Detailed Implementation
[0038] This specification provides an interactive processing method, apparatus, device, and storage medium for use in sensing devices.
[0039] To enable those skilled in the art to better understand the technical solutions in this specification, the technical solutions in the embodiments of this specification will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this specification, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of this application.
[0040] In response to the problems mentioned in the background technology, this application considers breaking through the limitations of traditional thinking and not limiting NFC payment devices to a card reader working mode, but also making them compatible with a card emulation working mode in terms of business operations, and intelligently switching the working mode according to the actual situation.
[0041] When users make contactless payments by bringing their phones close to NFC payment devices, the phone operates in card reader mode, while the NFC payment device operates in card emulation mode. The phone actively senses and reads the data to be paid. This effectively reduces the permission requirements on the phone, makes it easier to be compatible with phone manufacturers, and also improves the security of user data.
[0042] It's important to note that the reason for simultaneously supporting two working modes, rather than uniformly adopting a card emulation mode, is to consider scenarios where there are large numbers of physical card users, such as those using public transportation, campus cards, or bank cards. In these scenarios, if the NFC payment device uses a card emulation mode, it would be incompatible because both parties cannot function as cards. Therefore, this application proposes an NFC sensing solution that allows for the coexistence and intelligent switching between card emulation and reader modes. It can function as a reader to read IC cards such as public transportation cards and bank cards, and also as an emulation card for mobile phones to read. Furthermore, it can identify whether the approaching object is an IC card or a mobile phone, and thus adopt the correct working mode for sensing interaction to process transactions normally.
[0043] Based on this overall approach, the solution proposed in this application will be further explained below.
[0044] Figure 1 This document provides a flowchart illustrating an interactive processing method applied to a sensing device (e.g., an NFC device) according to one or more embodiments. The executing entity of this process can be a sensing device such as an NFC payment device or a module thereof. From a software perspective, the executing entity can be an application client on the sensing device, such as a POS app. Here, "sensing" primarily refers to the NFC sensing method. However, other sensing methods that support card emulation and card reader modes can also be implemented using corresponding sensing devices.
[0045] In card emulation mode, the sensing device functions as an RFID-enabled IC card for a card reader to read. In card reader mode, the sensing device functions as a card reader, for example, reading relevant information from RFID-enabled IC cards, posters, or electronic tags for exhibition information.
[0046] Figure 1 The process includes the following steps:
[0047] S102: Detects magnetic field data using a magnetic field sensor deployed on itself.
[0048] In one or more embodiments of this specification, one or more magnetic field sensors are deployed in the sensing device; in the case of multiple magnetic field sensors, they can be deployed in a distributed manner to detect magnetic field data more reliably and completely, magnetic field data from multiple magnetic field sensors can be fused, or magnetic field data from a specific magnetic field sensor can be filtered, and so on.
[0049] Magnetic field data can include magnetic field strength (and magnetic field direction if necessary), and specifically, it can also include the distribution data of magnetic field strength in the time and / or spatial dimensions.
[0050] S104: Based on the magnetic field changes reflected by the magnetic field data, determine whether to use the card simulation working mode or the card reader working mode.
[0051] Sensing devices themselves may generate magnetic fields, and the Earth also has a magnetic field, which can also affect sensing devices (the strength of the Earth's environmental magnetic field is generally in the tens of microteslas). However, under normal circumstances, both are relatively stable. If the sensing device is less affected by its surroundings, the magnetic field data detected by the magnetic field sensor should also be relatively stable, reflecting a magnetic field that remains essentially unchanged or changes within a small expected range. However, if a sensing object approaches, it may cause a significant change in the magnetic field. This application mainly focuses on two types of sensing objects: mobile phones (used as card readers) and IC cards. Through testing, the applicant found that mobile phones, due to their speakers and electronic components, possess relatively strong magnetic fields, generally ranging from tens to hundreds of microteslas. For example, the magnetic field strength of a common Apple phone can generally reach several hundred microteslas. Compared to mobile phones, IC cards have significantly lower magnetic field strengths. For example, the magnetic field strength of common access cards, bank cards, and public transport cards is generally in the single digits of microteslas. In this case, a mobile phone or IC card suddenly approaching the magnetic field sensor may respectively cause a change in the magnetic field strength of the sensor in the tens or single digits.
[0052] Based on the above observations, and according to the degree of change in magnetic field strength reflected in the magnetic field data, it can be inferred whether there is a sensing object approaching the sensing device, and further, whether the approaching sensing object is a mobile phone or an IC card. If the sensing object is a mobile phone, since the mobile phone is treated as a card reader (which can be controlled via an app on the phone to operate in card reader mode), the sensing device can correspondingly operate in card emulation mode. If the sensing object is an IC card, the sensing device can correspondingly operate in card reader mode.
[0053] Based on this line of thinking, the operating mode is determined according to the magnetic field influence capabilities of mobile phones and IC cards analyzed earlier. For example, if the magnetic field data shows a sufficiently large change in magnetic field strength, the current sensing object causing the change is most likely a mobile phone, so it can be determined that the card simulation operating mode is used; if the magnetic field data shows a relatively small change in magnetic field strength (but there is indeed a change), the current sensing object causing the change is most likely an IC card, so it can be determined that the card reader operating mode is used. The first two cases consider that there is indeed a sensing object approaching the sensing device, causing the magnetic field change. However, if the magnetic field data shows a very small or even constant change in magnetic field strength, it may indicate that there is no sensing object approaching the sensing device, and it is just a normal fluctuation of the ambient magnetic field.
[0054] Whether the change in magnetic field strength is large enough or insufficient can be determined based on one or more pre-set thresholds. For example, a first threshold and a second threshold can be obtained, with the first threshold being greater than the second threshold. If the magnetic field data indicates that the change in magnetic field strength is greater than the first threshold, then the card emulation mode is selected. If the magnetic field data indicates that the change in magnetic field strength is less than the second threshold, then the card reader mode is selected. If the magnetic field data indicates that the change in magnetic field strength is between the second and first thresholds, then the approaching sensing object could be a mobile phone or an IC card. Further analysis or continued detection of the magnetic field data can be performed, or it can be simply inferred to be an IC card, thus selecting the card reader mode. A third threshold, less than the second threshold, can also be set. If the magnetic field data indicates that the change in magnetic field strength is less than the third threshold, then it is determined that no sensing object is approaching.
[0055] Similarly, other sensing objects besides mobile phones and IC cards can also attempt to identify them by observing the different effects of changes in the magnetic field, thereby enabling the sensing device to adopt a suitable working mode for sensing and interaction.
[0056] S106: Using the working mode corresponding to the judgment result, perform business interaction with the current sensing object that caused the change in the magnetic field.
[0057] In one or more embodiments of this specification, when using the card emulation working mode, the current sensing object is highly likely to be a mobile phone; when using the card reader working mode, the current sensing object is highly likely to be an IC card.
[0058] Assuming the card emulation mode is selected, the sensing device will act as a simulated card, generating corresponding business information and storing it within the simulated card. The object causing the magnetic field change (e.g., a mobile phone) will then act as a card reader, reading the simulated card to obtain the business information and executing the corresponding transaction. Taking payment as an example, the sensing device could be an NFC payment terminal. If the card emulation mode is selected, it will act as a simulated card, generating payment information. The object causing the magnetic field change (e.g., a mobile phone) will then act as a card reader, reading the simulated card to obtain the payment information and executing the payment accordingly (e.g., a user confirming payment for an order on their mobile phone).
[0059] pass Figure 1 This method utilizes both a switchable card emulation mode and a card reader mode on the NFC payment device (sensing device), with corresponding business support. This allows users to make contactless payments not only via their mobile phones but also via IC cards using the same NFC payment device. For mobile phone contactless payments, to address compatibility issues, the phone is preferentially configured to use the card reader mode, while the NFC payment device uses the card emulation mode. By analyzing the changing scenarios of the NFC payment device, it can infer whether the approaching sensing object is a mobile phone or an IC card, and then intelligently selects the appropriate mode between card emulation and card reader modes. This ensures more reliable interaction, promotes business development, and improves user experience.
[0060] based on Figure 1 In addition to the method described herein, this specification also provides some specific implementation schemes and extension schemes of this method, which will be further explained below.
[0061] In one or more embodiments of this specification, before determining which working mode to adopt based on changes in magnetic field strength, the existing magnetic field can first be kept in a relatively stable state so that the stable state can be used as a benchmark to more reliably and accurately determine the changes caused by the approach of the sensing object.
[0062] Based on this, assuming the primary concern is the stability of the magnetic field strength value, a pre-emptive magnetic field self-test can be performed to determine the ambient magnetic field strength value. This ambient magnetic field strength value can then be used as a benchmark to determine changes in the magnetic field. The magnetic field self-test includes the following steps: initializing the ambient magnetic field strength value; determining the current magnetic field strength value based on magnetic field data and comparing it with the ambient magnetic field strength value; if the difference between the ambient and current magnetic field strength values is sufficiently large, the current magnetic field strength value is re-determined to check its stability; if it is sufficiently stable, the ambient magnetic field strength value is updated to the current magnetic field strength value. The ambient magnetic field strength value can be initialized to a small value (e.g., 0, or a typical Earth magnetic field value) to avoid confusion with the effects of subsequent sensing objects approaching. If the difference between the ambient and current magnetic field strength values is sufficiently large, it indicates that the initial ambient magnetic field strength value may be too small and does not reflect reality. By repeatedly testing and comparing the current magnetic field strength value, the true situation can be obtained, and the stable current magnetic field strength value can then be used to update the ambient magnetic field strength value.
[0063] Furthermore, when checking whether the current magnetic field strength value is sufficiently stable, it is necessary to measure the current magnetic field strength value multiple times. A suitable current magnetic field strength value as a benchmark can be dynamically determined, and the stable holding time can be dynamically re-recorded using the new benchmark until the desired value is achieved, thus helping to measure stability more reliably. Specifically, for example, if the difference between the ambient magnetic field strength value and the current magnetic field strength value is large enough, the current magnetic field strength value before redetering can be used as the last updated magnetic field strength value, and the corresponding last update time can be recorded. The current magnetic field strength value is then redetermined, and it is determined whether the difference between the redetermined current magnetic field strength value and the last updated magnetic field strength value is large enough. If it is not large enough, but the difference between the current time and the last update time is large enough, then the current magnetic field strength value is determined to be sufficiently stable. If it is large enough, the last updated magnetic field strength value is updated to the redetermined current magnetic field strength value, and the last update time is updated to the current time, and the current magnetic field strength value is redetermined again.
[0064] It should be noted that before performing a magnetic field self-test, it's essential to ensure no object is nearby to avoid affecting the test results. For example, a Time-of-Flight (TOF) distance sensor can be deployed on or near the sensing device to detect distance data. Based on this data, it can be determined whether an object is approaching the device, allowing the magnetic field self-test to proceed without an object present. Similarly, it's also possible to determine if the sensing device itself is in motion, as motion can affect the reliability of the self-test results. Therefore, for instance, an angular velocity sensor can be deployed on or near the sensing device to detect angular velocity data. Based on this data, it can be determined whether the sensing device is currently stationary, allowing the magnetic field self-test to proceed without motion.
[0065] Similarly, after the magnetic field self-test is completed and a relatively reliable environmental magnetic field strength value is obtained, assuming that a sensing object is approaching the sensing device, before determining the operating mode, for example, it can use its own deployed angular velocity sensor to detect angular velocity data. Based on the angular velocity data, it can determine that the sensing device is not currently in motion, so that a judgment can be made under this premise; and / or, it can use its own deployed TOF distance sensor to detect distance data. Based on the distance data, it can determine that an object is approaching the sensing device, so that a judgment can be made under this premise. This can ensure that subsequent changes in the magnetic field are precisely caused by the approaching sensing object, thus making the subsequent judgment results more reliable.
[0066] Based on the foregoing description, and more intuitively, taking a payment scenario as an example, this specification provides a structural schematic diagram of an NFC payment device in one or more embodiments. (See attached diagram.) Figure 2 .
[0067] Figure 2 The NFC payment device in the system mainly includes an induction coil, an NFC controller, a Time-of-Flight (TOF) sensor, an angular velocity sensor, multiple magnetic field sensors, and other possible sensors. Figure 2 The example illustrates one distribution scheme for these components. Distributed deployment of multiple magnetic field sensors can address issues such as limited sensing range and low sensing stability of individual sensors. For instance, if one or two magnetic field sensors detect a mobile phone, it can be assumed that the user is currently using the phone for contactless payment. The NFC payment device also includes a corresponding payment application, which, compared to traditional solutions, can additionally include a magnetic field self-test module and an operating mode control module.
[0068] Figure 3 Provided for one or more embodiments of this specification Figure 2 A flowchart illustrating the working scheme of an NFC payment device.
[0069] Figure 3 The process in it includes the following steps:
[0070] S302: Read the data of the angular velocity sensor, and judge whether the device itself is in a moving state. If it is in a moving state, the ambient magnetic field is inherently unstable, and the next data can be waited for until the device stops and then the second step can be entered.
[0071] S304: Read the data of the TOF distance sensor, and confirm whether there is an object approaching, that is, whether there is a user coming to prepare for payment. Assume that the user has not affected the magnetic field at this time.
[0072] S306: The ambient magnetic field self-check module further detects whether the ambient magnetic field is stable through several magnetic field sensors. This step can also be executed in advance. When self-checking, the ambient magnetic field can be initialized to 0. In the initial state, the step of judging the working mode cannot be entered. If the ambient magnetic field is stable for more than a period of time, the ambient magnetic field intensity value is updated.
[0073] S308: The judgment module. If the ambient magnetic field intensity value is stable and there is a user approaching to swipe the card, then judge whether it is an IC card or a mobile phone by comparing the difference between the ambient magnetic field intensity value and the current magnetic field intensity value, and then intelligently adopt the corresponding working mode for service interaction.
[0074] For example, two threshold values can be set, which are respectively represented as thdMagLow and thdMagHigh, where thdMagLow < thdMagHigh. A fluctuation within the allowable range of the magnetic field sensor error or the entry of a card with a lower magnetic field can be considered when it is less than thdLow. The change in the magnetic field intensity between the two threshold values can be considered as the possible entry of a magnetic card into the detection range. The change in the magnetic field intensity greater than thdMagHigh can be considered as the possible change in the ambient magnetic field or the entry of a device with a stronger magnetic field such as a mobile phone into the detection range.
[0075] Furthermore, for step S306, more intuitively, one or more embodiments of this specification also provide a flow schematic diagram of a magnetic field self-checking scheme. See Figure 4 . In Figure 4 , envMag represents the ambient magnetic field intensity value, curMag represents the current magnetic field intensity value, lastUpMag represents the last updated magnetic field value, lastUpTime represents the last update time, and curTime represents the current time.
[0076] Figure 4 The process in it includes the following steps:
[0077] Initialize envMag to 0; initialize lastUpTime to 0, and lastUpMag can also be initialized to 0, which can be used to temporarily store the relatively stable magnetic field intensity value.
[0078] At a certain moment, data (new data) curMag is acquired. The difference between envMag and curMag is checked. If the difference is large enough, it is considered that the magnetic field has changed and the process proceeds to the next step. If the difference is small, no update is needed, and the process waits for the next new data.
[0079] Detect the difference between curMag and lastUpMag. If the difference is large enough, it is assumed that the magnetic field may still be changing. Update lastUpMag and lastUpTime to curMag and curTime respectively, representing the magnetic field and time of the most recent change. If the magnetic field is currently unstable, return to the previous step. If the difference between envMag and lastUpMag is small, it means that the magnetic field has been stable for a period of time, and proceed to the next step.
[0080] By continuously monitoring the difference between curTime and lastUpTime, the duration of the stable magnetic field can be determined. If the time is long enough (e.g., after a set number of seconds), it indicates that the magnetic field is stable enough, and curMag can be considered to truly represent envMag. Therefore, envMag can be updated to curMag, and the magnetic field is stable. If the time is insufficient, the system continues to wait for the next set of new data.
[0081] The previous examples mainly considered the changes in magnetic field strength. In practice, alternatively, the changes in magnetic field can be considered more accurately and comprehensively, such as changes in magnetic field direction and the overall magnetic field environment. In particular, this application also considers the possibility of visualizing the changes in magnetic field to make more accurate judgments and further guide diversified business operations.
[0082] Based on this approach, one or more embodiments of this specification provide a flowchart illustrating the selection of operating modes and application schemes for a visualized sensing device. (See attached diagram.) Figure 5 .
[0083] Figure 5 The process includes the following steps:
[0084] S502: Based on the magnetic field data, generate one or more simulated images of changes in magnetic induction lines.
[0085] In one or more embodiments of this specification, the magnetic field has both intensity and direction. The direction of the magnetic field at a specified point can be represented by the direction in which the magnetic induction lines point, and the density of the magnetic induction lines can represent the strength of the magnetic field. Multiple magnetic induction lines can be deployed in or near the sensing device to detect the magnetic field intensity and direction at multiple points, thereby simulating and plotting a pattern of magnetic induction line changes. During this process, if a sensing object approaches the sensing device, it will affect the magnetic field, thus forming a dynamically changing simulated pattern of magnetic induction lines. This dynamic change is influenced by the nature of the approaching object, its specific location, and its trajectory.
[0086] Based on this principle, by simulating changing images using magnetic induction lines, we can not only infer what the sensing object is in order to determine which working mode to adopt, but also optionally infer how the sensing object dynamically approaches, in order to further determine which of the diverse services to execute under the adopted working mode, without having to fixate on only one service, thus giving users more flexibility in service control.
[0087] S504: Compare the simulated change image of the magnetic induction lines with a preset reference image, wherein the reference image is generated when a specified card object or card reader object is near the sensing device for sensing.
[0088] Reference images can be generated based on different patterns observed when a specified card or reader object approaches (e.g., whether it approaches slowly or quickly, in a straight line or along a curve, and whether there are additional gestures such as drawing circles or zigzag lines during the approach). This feature comparison overcomes the limitations of previous methods that only compared magnetic field strength values, enabling more accurate comparison of image features across a wider range and multiple dimensions, thus improving reliability.
[0089] S506: Based on the result of the feature comparison, determine whether to use card emulation mode or card reader mode.
[0090] After determining the working mode, a pre-set fixed business can be executed (such as paying for the current order), or the subsequent steps S508 and S510 can be executed to intelligently and flexibly achieve diverse business adaptive selection.
[0091] S508: Among the multiple reference images corresponding to the adopted working mode, determine one reference image that was successfully matched during the feature comparison and use it as the target reference image, wherein each of the reference images corresponds to a different service.
[0092] In one or more embodiments of this specification, each working mode may correspond to one or more reference images. In the case of multiple reference images, different reference images may correspond to different services (for example, one service may be paying for the current order, another service may be reserving goods, yet another service may be receiving discounts, etc.). Of course, one working mode may also correspond to multiple different services, and each service may correspond to one or more reference images.
[0093] S510: Using the working mode corresponding to the judgment result, perform business interaction with the current sensing object that caused the change in the magnetic field, corresponding to the target reference image.
[0094] In this scenario, given a variety of available services, if a user wants to perform a particular service, they can bring the object close to the sensing device according to the proximity mode corresponding to that service. This triggers the sensing device to adaptively select the next service from among the available options, thus accurately meeting the user's current needs. For the user, this provides convenient operation, a good experience, a strong sense of intelligence and technology, and good flexibility and scalability.
[0095] Furthermore, one or more embodiments of this specification also provide a flowchart illustrating a real-time visual notification scheme for a user's sensing device, see [link to relevant documentation]. Figure 6 .
[0096] Figure 6 The process includes the following steps:
[0097] S602: After generating one or more simulated magnetic field line change images based on the magnetic field data, the simulated magnetic field lines in the simulated magnetic field line change images are packaged into virtual items and displayed to the user.
[0098] In one or more embodiments of this specification, the virtual item can be an item that is easy for the user to understand, especially one that will change dynamically later, so that such changes can be presented as naturally as possible. For example, the virtual item can be a virtual gift box, a bundle, or a balloon. Of course, while performing virtual packaging, the appearance can still retain the pattern of the magnetic induction lines to a certain extent, which also helps guide the user to more accurately execute the object proximity mode.
[0099] S604: As the current sensing object moves closer to the sensing device, the virtual item is controlled to change dynamically accordingly.
[0100] The dynamic distortion of the magnetic field caused by the object being approached by the sensing device can be intuitively represented by the dynamic changes of virtual objects. This also gives users an immediate sense of what kind of qualitative change will occur when the virtual object is about to be opened, which helps to make users more focused and interested.
[0101] S606: If it is determined whether to use card emulation mode or card reader mode, then control the virtual item to change into a card object or card reader object corresponding to the desired mode.
[0102] Step S606 provides an example of a prompting effect. For instance, assuming the virtual item is a bag, after the working mode is determined, the bag can be controlled to automatically open and reveal the image of a virtual IC card or card reader, thus clearly and vividly prompting the user about the role played by the current sensing device.
[0103] pass Figure 6 The proposed solution makes it easier for users to understand the real-time working status of the sensing device and its adaptive switching of working modes, thus facilitating continued interaction.
[0104] Based on the same idea, one or more embodiments of this specification also provide apparatus and devices corresponding to the above methods, such as... Figure 7 , Figure 8 As shown. The apparatus and equipment are capable of performing the above methods and related alternatives accordingly.
[0105] Figure 7 This specification provides a schematic diagram of the structure of an interactive processing device applied to a sensing device, according to one or more embodiments. The device includes:
[0106] The magnetic field data detection module 702 detects magnetic field data through a magnetic field sensor deployed on itself;
[0107] The working mode determination module 704 determines whether to use the card simulation working mode or the card reader working mode based on the magnetic field changes reflected by the magnetic field data.
[0108] The sensing business interaction module 706 uses the working mode corresponding to the judgment result to perform business interaction with the current sensing object that causes the change in the magnetic field.
[0109] Optionally, the working mode determination module 704 determines that the card simulation working mode is adopted if the magnetic field data reflects a sufficiently large change in magnetic field strength.
[0110] If the magnetic field data does not reflect a sufficiently large change in magnetic field strength, then it is determined that the card reader working mode is adopted.
[0111] Optionally, the working mode determination module 704 obtains a preset first threshold and a second threshold, wherein the first threshold is greater than the second threshold;
[0112] If it is determined that the magnetic field data reflects a change in magnetic field strength greater than the first threshold, then it is determined that the card simulation working mode is adopted.
[0113] If it is determined that the magnetic field data reflects a change in magnetic field strength that is less than the second threshold, then the card reader working mode is adopted.
[0114] Optionally, when using a card emulation mode, the current sensing object includes a mobile phone;
[0115] When using a card reader, the current sensing object includes an IC card.
[0116] Optionally, before determining whether to use the card simulation working mode or the card reader working mode based on the magnetic field changes reflected by the magnetic field data, the magnetic field data detection module 702 performs a magnetic field self-test to determine the ambient magnetic field strength value, so as to determine the magnetic field changes based on the ambient magnetic field strength value.
[0117] The magnetic field self-test includes the following steps:
[0118] Initialize the ambient magnetic field strength value;
[0119] The current magnetic field strength value is determined based on the magnetic field data and compared with the ambient magnetic field strength value.
[0120] If the difference between the ambient magnetic field strength value and the current magnetic field strength value is large enough, the current magnetic field strength value is re-determined to check whether the current magnetic field strength value is stable enough.
[0121] If the environment is stable enough, the ambient magnetic field strength value is updated to the current magnetic field strength value.
[0122] Optionally, the magnetic field data detection module 702 takes the current magnetic field strength value before re-determination as the last updated magnetic field strength value and records the corresponding last update time;
[0123] The current magnetic field strength value is redefined, and it is determined whether the difference between the redefined current magnetic field strength value and the previously updated magnetic field strength value is large enough.
[0124] If the current magnetic field strength value is not large enough, and the difference between the current time and the last update time is large enough, then the current magnetic field strength value is determined to be sufficiently stable.
[0125] If the value is large enough, the previously updated magnetic field strength value is updated to the newly determined current magnetic field strength value, the previously updated time is updated to the current time, and the current magnetic field strength value is re-determined.
[0126] Optionally, the working mode determination module 704 generates one or more simulated images of changes in magnetic induction lines based on the magnetic field data;
[0127] The simulated change image of the magnetic induction lines is compared with a preset reference image, which is generated when a specified card object or card reader object is near the sensing device for sensing.
[0128] Based on the results of the feature comparison, it is determined whether to use card emulation mode or card reader mode.
[0129] Optionally, after generating one or more simulated magnetic field line change images based on the magnetic field data, the working mode determination module 704 packages the simulated magnetic field lines in the simulated magnetic field line change images into virtual items and displays them to the user.
[0130] As the currently sensed object moves closer to the sensing device, the virtual item is controlled to change dynamically accordingly.
[0131] If it is determined whether to use card emulation mode or card reader mode, the virtual item is controlled to change into a card object or card reader object corresponding to the desired mode.
[0132] Optionally, the sensing service interaction module 706 determines, among the multiple reference images corresponding to the adopted working mode, a reference image that was successfully matched during the feature comparison, as the target reference image, wherein each of the reference images corresponds to a different service;
[0133] Using the working mode corresponding to the judgment result, business interaction is performed with the current sensing object that caused the change in the magnetic field, corresponding to the target reference image.
[0134] Optionally, before determining whether to use a card emulation mode or a card reader mode, the operating mode determination module 704 detects angular velocity data using its own deployed angular velocity sensor, and determines that the sensing device is not currently in motion based on the angular velocity data, so as to perform the determination under this premise; and / or,
[0135] By using its own deployed TOF distance sensor, the device detects distance data and determines that an object is approaching the sensing device, thereby enabling the determination to be made.
[0136] Optionally, the sensing device is an NFC payment device;
[0137] If the sensing service interaction module 706 adopts the card simulation working mode according to the judgment result, it acts as a simulated card and generates payment information, so that the current sensing object that causes the change in the magnetic field acts as a card reader to read the simulated card to obtain the payment information, and makes payment according to the payment information.
[0138] Figure 8 This specification provides a schematic diagram of the structure of an interactive processing device applied to a sensing device, according to one or more embodiments. The device includes:
[0139] At least one processor; and,
[0140] A memory communicatively connected to the at least one processor; wherein,
[0141] The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform:
[0142] It detects magnetic field data through magnetic field sensors deployed on its own surface;
[0143] Based on the changes in the magnetic field reflected by the magnetic field data, determine whether to use the card simulation working mode or the card reader working mode.
[0144] Using the working mode corresponding to the judgment result, business interaction is performed with the current sensing object that caused the change in the magnetic field.
[0145] Based on the same idea, one or more embodiments of this specification also provide a non-volatile computer storage medium storing computer-executable instructions, wherein the computer-executable instructions are configured as follows:
[0146] It detects magnetic field data through magnetic field sensors deployed on its own surface;
[0147] Based on the changes in the magnetic field reflected by the magnetic field data, determine whether to use the card simulation working mode or the card reader working mode.
[0148] Using the working mode corresponding to the judgment result, business interaction is performed with the current sensing object that caused the change in the magnetic field.
[0149] In the 1990s, improvements to a technology could be clearly distinguished as either hardware improvements (e.g., improvements to the circuit structure of diodes, transistors, switches, etc.) or software improvements (improvements to the methodology). However, with technological advancements, many methodological improvements today can be considered direct improvements to the hardware circuit structure. Designers almost always obtain the corresponding hardware circuit structure by programming the improved methodology into the hardware circuit. Therefore, it cannot be said that a methodological improvement cannot be implemented using hardware physical modules. For example, a Programmable Logic Device (PLD) (such as a Field Programmable Gate Array (FPGA)) is such an integrated circuit whose logic function is determined by the user programming the device. Designers can program and "integrate" a digital system onto a PLD themselves, without needing chip manufacturers to design and manufacture dedicated integrated circuit chips. Furthermore, nowadays, instead of manually manufacturing integrated circuit chips, this programming is mostly implemented using "logic compiler" software. Similar to the software compiler used in program development, the original code before compilation must be written in a specific programming language, called a Hardware Description Language (HDL). There are many HDLs, such as ABEL (Advanced Boolean Expression Language), AHDL (Altera Hardware Description Language), Confluence, CUPL (Cornell University Programming Language), HDCal, JHDL (Java Hardware Description Language), Lava, Lola, MyHDL, PALASM, and RHDL (Ruby Hardware Description Language). Currently, the most commonly used are VHDL (Very-High-Speed Integrated Circuit Hardware Description Language) and Verilog. Those skilled in the art should understand that by simply performing some logic programming on the method flow using one of these hardware description languages and programming it into an integrated circuit, the hardware circuit implementing the logical method flow can be easily obtained.
[0150] The controller can be implemented in any suitable manner. For example, it can take the form of a microprocessor or processor and a computer-readable medium storing computer-readable program code (e.g., software or firmware) executable by the (micro)processor, logic gates, switches, application-specific integrated circuits (ASICs), programmable logic controllers, and embedded microcontrollers. Examples of controllers include, but are not limited to, the following microcontrollers: ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20, and Silicon Labs C8051F320. A memory controller can also be implemented as part of the control logic of the memory. Those skilled in the art will also recognize that, in addition to implementing the controller in purely computer-readable program code form, the same functionality can be achieved by logically programming the method steps to make the controller take the form of logic gates, switches, application-specific integrated circuits, programmable logic controllers, and embedded microcontrollers. Therefore, such a controller can be considered a hardware component, and the means included therein for implementing various functions can also be considered as structures within the hardware component. Alternatively, the means for implementing various functions can be considered as both software modules implementing the method and structures within the hardware component.
[0151] The systems, devices, modules, or units described in the above embodiments can be implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer. Specifically, a computer can be, for example, a personal computer, laptop computer, cellular phone, camera phone, smartphone, personal digital assistant, media player, navigation device, email device, game console, tablet computer, wearable device, or any combination of these devices.
[0152] For ease of description, the above devices are described in terms of function, divided into various units. Of course, in implementing this specification, the functions of each unit can be implemented in one or more software and / or hardware.
[0153] Those skilled in the art will understand that the embodiments of this specification can be provided as methods, systems, or computer program products. Therefore, the embodiments of this specification can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the embodiments of this specification can take the form of a computer program product implemented on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0154] This specification is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this specification. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create a machine for implementing the flowchart illustrations and / or block diagrams. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.
[0155] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.
[0156] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.
[0157] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0158] Memory may include non-persistent storage in computer-readable media, such as random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM. Memory is an example of computer-readable media.
[0159] Computer-readable media includes both permanent and non-permanent, removable and non-removable media that can store information using any method or technology. Information can be computer-readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase-change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, CD-ROM, digital versatile optical disc (DVD) or other optical storage, magnetic tape, magnetic magnetic disk storage or other magnetic storage devices, or any other non-transferable medium that can be used to store information accessible by a computing device. As defined herein, computer-readable media does not include transient computer-readable media, such as modulated data signals and carrier waves.
[0160] It should also be noted that 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 limitation, 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.
[0161] This specification can be described in the general context of computer-executable instructions that are executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc., that perform a specific task or implement a specific abstract data type. This specification can also be practiced in distributed computing environments, where tasks are performed by remote processing devices connected via a communication network. In distributed computing environments, program modules can reside in local and remote computer storage media, including storage devices.
[0162] The various embodiments in this specification are described in a progressive manner. Similar or identical parts between embodiments can be referred to mutually. Each embodiment focuses on describing the differences from other embodiments. In particular, the embodiments of apparatus, devices, and non-volatile computer storage media are basically similar to the method embodiments, so the descriptions are relatively simple; relevant parts can be referred to the descriptions of the method embodiments.
[0163] The foregoing has described specific embodiments of this specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recited in the claims may be performed in a different order than that shown in the embodiments and may still achieve the desired result. Furthermore, the processes depicted in the drawings do not necessarily require the specific or sequential order shown to achieve the desired result. In some embodiments, multitasking and parallel processing are possible or may be advantageous.
[0164] The above description is merely one or more embodiments of this specification and is not intended to limit this specification. Various modifications and variations can be made to the one or more embodiments of this specification by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principle of one or more embodiments of this specification should be included within the scope of the claims of this specification.
Claims
1. An interaction processing method applied to an NFC payment device, comprising: The NFC operating mode used to identify the currently approaching sensing object; Based on the recognition results, select the working mode adopted by the NFC payment device between card emulation mode and card reader mode.
2. The method as described in claim 1, wherein, The NFC operating modes used to identify the currently approaching sensing object include: The sensor identifies whether the object being sensed is an IC card or a mobile phone, where IC card corresponds to card emulation mode and mobile phone corresponds to card reader working mode.
3. The method as described in claim 2, wherein, Based on the identification results, select the operating mode for the NFC payment device from both card emulation mode and card reader mode, including: If the sensing object is an IC card, the NFC payment device selects the card reader working mode; If the sensing object is a mobile phone, the NFC payment device should select the card emulation mode.
4. The method of claim 3, wherein, The NFC payment device selects card emulation mode, including: Payment information is generated as simulated card information, so that the mobile phone acts as a card reader to read the simulated card to obtain the payment information, and makes payment based on the payment information.
5. The method of claim 1, wherein, The NFC operating modes used to identify the currently approaching sensing object include: By analyzing the changing scenarios of the NFC payment device, the NFC operating mode of the sensing object can be identified.
6. The method of claim 5, wherein, The analysis includes the following changes in the scenarios of the NFC payment devices: The changes in the magnetic field of the NFC payment device are detected.
7. An interactive processing device for use in NFC payment devices, comprising: The identification module is configured to identify the NFC operating mode used to detect the currently approaching sensing object; The module is configured to select the working mode of the NFC payment device from the card emulation working mode and the card reader working mode based on the recognition result.
8. An interactive processing device for use in NFC payment devices, comprising: At least one processor; as well as, A memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform: The NFC operating mode used to identify the currently approaching sensing object; Based on the recognition results, select the working mode adopted by the NFC payment device between card emulation mode and card reader mode.