An interactive processing method, device and equipment applied to a sensing device
A sensing device with magnetic field sensors intelligently switches between card simulation and card reader modes based on detected magnetic field changes, addressing NFC compatibility issues and enhancing reliability for NFC payment devices.
Patent Information
- Application Number
- CN202410957665.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-17
- Publication Date
- 2024-12-13
- Estimated Expiration
- 2044-07-17
AI Technical Summary
NFC payment devices face compatibility issues due to differences between smartphone manufacturers, leading to unreliable interactions and hindering business development.
Implementing a sensing device with magnetic field sensors to detect and analyze magnetic field changes, intelligently switching between card simulation and card reader modes based on the detected magnetic field characteristics of approaching objects, such as mobile phones or IC cards.
Enhances compatibility and reliability of NFC interactions by allowing simultaneous use of card simulation and card reader modes, enabling seamless payments with both mobile phones and IC cards, improving user experience and business support.
Smart Images

Figure CN118504594B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of inductive interaction technology, and in particular to an interactive processing method, device and equipment applied to inductive devices. Background Art
[0002] Near Field Communication (NFC) is a short-range, high-frequency radio technology that operates at a frequency of 13.56MHz within a distance of 20cm. It is an integration of contactless radio frequency identification (RFID) and interconnection technology, providing a very safe and fast communication method for various electronic products.
[0003] With the popularization of NFC-enabled smartphones, NFC technology is also being used more in the payment field. At present, NFC payment devices use the card reader working mode, and as a card reader, the user's NFC-enabled smartphone uses the card simulation working mode, simulating a credit card or debit card. Then, the user can achieve a similar effect to swiping a card by placing the smartphone close to the NFC payment device for inductive interaction.
[0004] However, in actual applications, the above interaction methods may have compatibility issues, such as compatibility issues between some applications and smartphone manufacturers, which may bring unreliable factors to the above interaction and may even affect the normal development of some businesses.
[0005] Based on this, for NFC sensing interaction scenarios, solutions that help improve compatibility and reliability are needed. Summary of the invention
[0006] One or more embodiments of the present specification provide an interaction processing method, apparatus, device, and storage medium applied to a sensing device to solve the following technical problem: For NFC sensing interaction scenarios, a solution is needed that helps improve compatibility and reliability.
[0007] To solve the above technical problems, one or more embodiments of this specification are implemented as follows:
[0008] One or more embodiments of this specification provide an interactive processing method applied to a sensing device, including:
[0009] Detect magnetic field data through magnetic field sensors deployed on itself;
[0010] According to the magnetic field change reflected by the magnetic field data, determining whether to adopt the card simulation working mode or the card reader working mode;
[0011] The working mode corresponding to the judgment result is adopted to perform business interaction with the current sensing object that causes the magnetic field change.
[0012] One or more embodiments of this specification provide an interactive processing device applied to a sensing device, including:
[0013] The magnetic field data detection module detects magnetic field data through the magnetic field sensor deployed on itself;
[0014] A working mode determination module determines whether to adopt a card simulation working mode or a card reader working mode according to the magnetic field change reflected by the magnetic field data;
[0015] The sensing service interaction module adopts the working mode corresponding to the judgment result to perform service interaction with the current sensing object that causes the magnetic field change.
[0016] One or more embodiments of this specification provide an interactive processing device applied to a sensing device, including:
[0017] at least one processor; and,
[0018] a memory communicatively connected to the at least one processor; wherein,
[0019] The memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to execute:
[0020] Detect magnetic field data through magnetic field sensors deployed on itself;
[0021] According to the magnetic field change reflected by the magnetic field data, determining whether to adopt the card simulation working mode or the card reader working mode;
[0022] The working mode corresponding to the judgment result is adopted to perform business interaction with the current sensing object that causes the magnetic field change.
[0023] One or more embodiments of this specification provide a non-volatile computer storage medium storing computer executable instructions, wherein the computer executable instructions are configured to:
[0024] Detect magnetic field data through magnetic field sensors deployed on itself;
[0025] According to the magnetic field change reflected by the magnetic field data, determining whether to adopt the card simulation working mode or the card reader working mode;
[0026] The working mode corresponding to the judgment result is adopted to perform business interaction with the current sensing object that causes the magnetic field change.
[0027] At least one of the above technical solutions adopted in one or more embodiments of the present specification can achieve the following beneficial effects: the NFC payment receiving device (sensing device) simultaneously applies a switchable card simulation working mode and a card reader working mode, and provides corresponding business support, so that for the same NFC payment receiving device, users can not only make inductive payments through mobile phones, but also make inductive payments through IC cards. For mobile phone inductive payments, in order to solve compatibility issues, the mobile phone tends to adopt the card reader working mode, while the NFC payment receiving device adopts the card simulation working mode. By analyzing the scene changes of the NFC payment receiving device, it is inferred whether the currently approaching sensing object is a mobile phone or an IC card, and then the working mode to be currently adopted by the NFC payment receiving device is intelligently selected between the card simulation working mode and the card reader working mode, so that the interaction can be carried out more reliably, which is helpful to promote business development and improve user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0028] In order to more clearly illustrate the embodiments of this specification or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in this specification. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0029] Figure 1 A flowchart of an interactive processing method applied to a sensing device provided in one or more embodiments of this specification;
[0030] Figure 2 A schematic diagram of the structure of an NFC payment device provided for one or more embodiments of this specification;
[0031] Figure 3 One or more embodiments of this specification provide Figure 2 A flowchart of a working scheme of an NFC payment device in FIG.
[0032] Figure 4 A flowchart of a magnetic field self-test solution provided for one or more embodiments of this specification;
[0033] Figure 5 A flow chart of a visual sensing device working mode selection and application scheme provided for one or more embodiments of this specification;
[0034] Figure 6 A flowchart of a visual real-time prompting solution for a user's sensing device provided in one or more embodiments of this specification;
[0035] Figure 7 A schematic diagram of the structure of an interactive processing device applied to a sensing device provided in one or more embodiments of this specification;
[0036] Figure 8 A schematic diagram of the structure of an interactive processing device applied to a sensing device provided in one or more embodiments of this specification. DETAILED DESCRIPTION
[0037] The embodiments of this specification provide an interactive processing method, apparatus, device and storage medium applied to a sensing device.
[0038] In order 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 in conjunction with the drawings in the embodiments of this specification. Obviously, the described embodiments are only part of the embodiments of this application, not all of them. Based on the embodiments of this specification, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of this application.
[0039] In response to the problems mentioned in the background technology, this application considers breaking through the limitations of traditional thinking and making NFC payment devices no longer limited to the card reader working mode, but also compatible with the card simulation working mode in business, and intelligently switching the working mode according to actual conditions.
[0040] When a user uses a mobile phone to approach an NFC payment device for inductive payment, the mobile phone is configured to operate in card reader mode, while the NFC payment device is configured to operate in card simulation mode. The mobile phone actively senses and reads the data to be paid. This can effectively reduce the relevant permission requirements for the mobile phone, make it easier to be compatible with mobile phone manufacturers, and improve the security of user data.
[0041] It should be noted that the reason why two working modes are compatible here instead of uniformly adopting the card simulation working mode is that there are also scenarios in actual applications where there are a large number of physical card users, such as bus and subway, campus card or bank card swiping scenarios. In such scenarios, if the NFC payment device adopts the card simulation working mode, it will not be compatible because both parties cannot interact and work as cards. Therefore, this application proposes an NFC sensing solution in which the card simulation working mode and the card reader working mode coexist and are intelligently switched. It can be used as a card reader to read IC cards such as bus cards and bank cards, and can also be used as a simulated card for mobile phones to read. It can also identify whether the currently approaching sensing object is an IC card or a mobile phone, and then adopt the correct working mode for sensing interaction to handle business normally.
[0042] Based on this general idea, the solution of this application will be further described below.
[0043] Figure 1 A flowchart of an interactive processing method applied to a sensing device (e.g., NFC device) provided for one or more embodiments of this specification. The execution subject of the process can be a sensing device such as an NFC payment device or a module therein. From a software perspective, the execution subject can be an application client on the sensing device, such as a cash register APP. The sensing here mainly refers to the NFC sensing method. Of course, other sensing methods that can also support the card simulation working mode and the card reader working mode can also be implemented as corresponding sensing devices.
[0044] For the card simulation working mode, it means that the sensing device simulates an IC card using RFID technology for reading by the card reader. For the card reader working mode, it means that the sensing device is used as a card reader, for example, it can read relevant information from IC cards, posters or exhibition information electronic tags using RFID technology.
[0045] Figure 1 The process in includes the following steps:
[0046] S102: Detect magnetic field data through a magnetic field sensor deployed on itself.
[0047] In one or more embodiments of the present specification, one or more magnetic field sensors are deployed in the sensing device; when there are multiple magnetic field sensors, they can be deployed in a dispersed manner to detect magnetic field data more reliably and completely, the magnetic field data of multiple magnetic field sensors can be fused, or the magnetic field data of a certain magnetic field sensor can be filtered, and so on.
[0048] The magnetic field data may include magnetic field intensity (if necessary, magnetic field direction may also be considered), for example, and may also include distribution data of magnetic field intensity in a time dimension and / or a space dimension.
[0049] S104: judging whether to adopt a card simulation working mode or a card reader working mode according to the magnetic field change reflected by the magnetic field data.
[0050] The sensing device itself may generate a magnetic field, and the earth will also have a magnetic field, which will also have a corresponding impact on the sensing device (the magnetic field strength of the earth's environment is generally tens of microteslas). However, in general, both are relatively stable. If the sensing device is less affected by the surroundings, the magnetic field data detected by the magnetic field sensor should also be relatively stable data, and the magnetic field reflected should basically not change or change within the expected small range. If a sensing object approaches, it may cause obvious changes in the magnetic field. This application mainly focuses on two types of sensing objects, mobile phones (used as card readers) and IC cards. The applicant found through testing that mobile phones contain speakers and some electronic components, resulting in strong magnetic fields, generally ranging from tens to hundreds of microteslas. Taking the common Apple mobile phone as an example, its magnetic field strength can generally reach hundreds of microteslas; compared with mobile phones, the magnetic field strength of IC cards is significantly lower. For example, the magnetic field strength of common access control cards, bank cards, bus cards, etc. on the market is generally in the single-digit microteslas. In this case, a mobile phone or IC card that suddenly approaches the magnetic field sensor may cause a ten-digit or single-digit change in magnetic field strength to the sensor, respectively.
[0051] Based on the above noted situation, according to the degree of change in magnetic field strength reflected by the magnetic field data, it can be inferred whether there is a sensing object close to the sensing device, and it can be further inferred that the sensing object close to the sensing device may be a mobile phone or an IC card. In the case where the sensing object is a mobile phone, since the mobile phone is regarded as a card reader (the mobile phone can be controlled to adopt the card reader working mode through the application on the mobile phone), the sensing device can accordingly adopt the card simulation working mode for cooperation; and in the case where the sensing object is an IC card, the sensing device can accordingly adopt the card reader working mode for cooperation.
[0052] Based on this idea, the working mode is determined according to the magnetic field influence capabilities of mobile phones and IC cards analyzed above. For example, if the magnetic field data shows that the amplitude of the change in magnetic field strength is large enough, the current sensing object that causes the magnetic field change is likely to be a mobile phone, so it can be determined that the card simulation working mode is adopted; if the magnetic field data shows that the amplitude of the change in magnetic field strength is not large enough (but there is indeed a change), the current sensing object that causes the magnetic field change is likely to be an IC card, so it can be determined that the card reader working mode is adopted; the first two situations consider that there is indeed a sensing object approaching the sensing device to cause the magnetic field change, and if the magnetic field data shows that the change in magnetic field strength is relatively subtle or even unchanged, it may also mean that there is no sensing object approaching the sensing device at present, and it is just a normal fluctuation of the environmental magnetic field.
[0053] Whether the amplitude of the change in magnetic field strength is large enough or not large enough can be judged according to one or more thresholds that are set. For example, a pre-set first threshold and second threshold can be obtained, and the first threshold is greater than the second threshold; if it is determined that the amplitude of the change in magnetic field strength reflected by the magnetic field data is greater than the first threshold, it is determined that the card simulation working mode is adopted; if it is determined that the amplitude of the change in magnetic field strength reflected by the magnetic field data is less than the second threshold, it is determined that the card reader working mode is adopted; if it is determined that the amplitude of the change in magnetic field strength reflected by the magnetic field data is between the second threshold and the first threshold, it can be considered that the current sensing object approaching may be a mobile phone or an IC card, and the magnetic field data can be further analyzed or continued to be detected, or it can be simply inferred that it is an IC card, and then the card reader working mode is adopted; a third threshold less than the second threshold can also be set, and if it is determined that the amplitude of the change in magnetic field strength reflected by the magnetic field data is less than the third threshold, it is determined that there is no sensing object approaching at present.
[0054] Similarly, other sensing objects besides mobile phones and IC cards can also be identified by their different effects on magnetic field changes, and then the appropriate working mode can be adopted for the sensing device to sense the interaction.
[0055] S106: Using the working mode corresponding to the judgment result, performing business interaction with the current sensing object that causes the magnetic field change.
[0056] In one or more embodiments of the present specification, when the card simulation working mode is adopted, the current sensing object is likely to be a mobile phone; when the card reader working mode is adopted, the current sensing object is likely to be an IC card.
[0057] Assuming that the card simulation working mode is used, the sensing device will act as a simulated card, generate corresponding business information and place it in the simulated card, so that the current sensing object (such as a mobile phone) that causes the magnetic field change acts as a card reader, reads the simulated card to obtain business information, and performs corresponding business according to the business information. Taking the payment business as an example, the sensing device can be an NFC payment device. If the card simulation working mode is used according to the judgment result, it acts as a simulated card and generates information to be paid, so that the current sensing object (such as a mobile phone) that causes the magnetic field change acts as a card reader, reads the simulated card to obtain information to be paid, and pays according to the information to be paid (such as the user confirms the payment of the order on the mobile phone).
[0058] pass Figure 1The method applies the switchable card simulation working mode and card reader working mode to the NFC payment device (sensing device) at the same time, and provides corresponding support in business, so that for the same NFC payment device, users can not only make induction payment through mobile phones, but also make induction payment through IC cards. For mobile phone induction payment, in order to solve the compatibility problem, the mobile phone tends to adopt the card reader working mode, while the NFC payment device adopts the card simulation working mode. By analyzing the scene changes of the NFC payment device, it is inferred whether the currently approaching sensing object is a mobile phone or an IC card, and then the working mode to be currently adopted by the NFC payment device is intelligently selected between the card simulation working mode and the card reader working mode, so that the interaction can be carried out more reliably, which is helpful to promote business development and improve user experience.
[0059] based on Figure 1 This specification also provides some specific implementation plans and extension plans of the method, which will be described below.
[0060] In one or more embodiments of the present specification, before determining which operating 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 reference to more reliably and accurately determine the changes caused by the approach of the sensing object.
[0061] Based on this, assuming that the stability of the magnetic field strength value is the main concern, the environmental magnetic field strength value can be determined in advance by performing a magnetic field self-check, so as to determine the magnetic field change situation based on the environmental magnetic field strength value; wherein the magnetic field self-check includes the following steps: initializing the environmental magnetic field strength value; determining the current magnetic field strength value according to the magnetic field data, and comparing it with the environmental magnetic field strength value; if the difference between the environmental magnetic field strength value and the current magnetic field strength value is large enough, then continue to re-determine the current magnetic field strength value to detect whether the current magnetic field strength value is stable enough; if it is stable enough, then update the environmental magnetic field strength value to the current magnetic field strength value. The environmental magnetic field strength value can be initialized to a smaller value (such as 0, or a more typical earth magnetic field value) to avoid confusion with the impact caused by the subsequent approach of the sensing object. If the difference between the environmental magnetic field strength value and the current magnetic field strength value is large enough, it indicates that the initialized environmental magnetic field strength value may be too small and does not conform to the actual situation. By repeatedly detecting and comparing the current magnetic field strength value, the actual situation can be obtained, and then the stabilized current magnetic field strength value can be used to update the environmental magnetic field strength value.
[0062] Furthermore, when detecting whether the current magnetic field strength value is sufficiently stable, it is necessary to detect the current magnetic field strength value multiple times, and the current magnetic field strength value suitable for use as a benchmark can be dynamically determined, and then the stable holding time can be dynamically re-recorded with a new benchmark until the expectation is reached, thereby helping to measure stability more reliably. Specifically, for example, if the gap between the environmental magnetic field strength value and the current magnetic field strength value is large enough, the current magnetic field strength value before re-determination can be used as the last updated magnetic field strength value, and the corresponding last updated time can be recorded; the current magnetic field strength value is re-determined, and it is determined whether the gap between the re-determined current magnetic field strength value and the last updated magnetic field strength value is large enough; if it is not large enough, and the gap between the current time and the last updated time is large enough, it is determined that the current magnetic field strength value is stable enough; if it is large enough, the last updated magnetic field strength value is updated to the re-determined current magnetic field strength value, and the last updated time is updated to the current time, and the current magnetic field strength value is continued to be re-determined.
[0063] It should be noted that before performing a magnetic field self-test, you can first determine that there is no sensing object close to avoid affecting the magnetic field self-test result. For example, a Time Of Flight (TOF) distance sensor can be deployed on or near the sensing device itself to detect distance data. Based on the distance data, it is determined whether there is an object close to the sensing device at present, so that a magnetic field self-test can be performed without an object close. Similarly, it is also possible to first determine whether the sensing device itself is in motion. If it is in motion, it will also affect the reliability of the magnetic field self-test result. Based on this, for example, an angular velocity sensor can be deployed on or near the sensing device itself to detect angular velocity data. Based on the angular velocity data, it is determined whether the sensing device is not in motion at present, so that a magnetic field self-test can be performed without being in motion.
[0064] Similarly, after the magnetic field self-check is completed and a relatively reliable value of the environmental magnetic field strength is obtained, assuming that a sensing object is currently approaching the sensing device, before judging the working mode, for example, the angular velocity data can be detected by the angular velocity sensor deployed by itself, and based on the angular velocity data, it can be determined that the sensing device is not currently in motion, so as to perform the judgment under this premise; and / or, the distance data can be detected by the TOF distance sensor deployed by itself, and based on the distance data, it can be determined that an object is currently approaching the sensing device, so as to perform the judgment under this premise. In this way, it can be ensured as much as possible that the subsequent magnetic field changes are accurately caused by the approaching sensing object, so that the subsequent judgment results are more reliable.
[0065] According to the above description, more intuitively, taking the payment scenario as an example, one or more embodiments of this specification provide a structural diagram of an NFC payment device, see Figure 2 .
[0066] Figure 2 The NFC payment device in the system mainly includes an induction coil, an NFC controller, a TOF sensor, an angular velocity sensor, multiple magnetic field sensors, and other possible sensors. Figure 2 A distribution scheme of these components is shown in the example. Distributed deployment of multiple magnetic field sensors can be used to solve the problems of limited sensing range and low sensing stability of a single sensor. For example, as long as one or two magnetic field sensors detect a mobile phone, it can be considered that the user is currently using the mobile phone for inductive payment. The NFC payment device also has a corresponding payment application installed. Compared with the traditional solution, the payment application can additionally include a magnetic field self-test module and a working mode control module.
[0067] Figure 3 One or more embodiments of this specification provide Figure 2 A flowchart of a working scheme of an NFC payment device in FIG.
[0068] Figure 3 The process in includes the following steps:
[0069] S302: Read the angular velocity sensor data to determine whether the device itself is in motion. If it is in motion, the environmental magnetic field itself is unstable. You can wait for the next data until the device is stationary and then enter the second step.
[0070] S304: Read the TOF distance sensor data to confirm whether there is an object approaching, that is, whether there is a user coming to pay. It is assumed that the user has not yet affected the magnetic field.
[0071] S306: The environmental magnetic field self-check module further detects whether the environmental magnetic field is stable through a number of magnetic field sensors. This step can also be performed in advance. The environmental magnetic field can be initialized to 0 during self-checking. The initial state cannot enter the working mode judgment step. If the environmental magnetic field is stable for more than a period of time, the environmental magnetic field strength value is updated.
[0072] S308: The judgment module determines whether it is an IC card or a mobile phone by comparing the difference between the environmental magnetic field strength value and the current magnetic field strength value if the environmental magnetic field strength value is stable and a user approaches to swipe the card, and then intelligently adopts the corresponding working mode for business interaction.
[0073] For example, two levels of thresholds can be set, represented as thdMagLow and thdMagHigh respectively, where thdMagLow < thdMagHigh. A fluctuation within the allowable range of the magnetic field sensor error or the entry of a card with a relatively low magnetic field can be considered when the value is less than thdLow. A change in the magnetic field strength between the two thresholds can be considered as the possible entry of a magnetic card into the detection range. A change in the magnetic field strength greater than thdMagHigh can be considered as a possible change in the ambient magnetic field or the entry of a device with a relatively strong magnetic field such as a mobile phone into the detection range.
[0074] Further, for step S306, more intuitively, one or more embodiments of this specification also provide a flowchart of a magnetic field self-checking scheme. Refer to Figure 4 . In Figure 4 , envMag represents the ambient magnetic field strength value, curMag represents the current magnetic field strength value, lastUpMag represents the last updated magnetic field value, lastUpTime represents the last update time, and curTime represents the current time.
[0075] Figure 4 The process in
[0076] Initialize envMag to 0; initialize lastUpTime to 0, and lastUpMag can also be initialized to 0, which can be used to temporarily store a relatively stable magnetic field strength value.
[0077] Obtain data (new data) curMag at a certain moment, detect the difference between envMag and curMag. If the difference is large enough, it is considered that the magnetic field has changed, and proceed to the next step; if the difference is small, no update is required, and wait for the next new data.
[0078] Detect the difference between curMag and lastUpMag. If the difference is large enough, it is considered that the magnetic field may still be changing. Update lastUpMag and lastUpTime to curMag and curTime respectively, representing the magnetic field and time that have changed recently, and the current state of the magnetic field is 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.
[0079] By continuously detecting the difference between curTime and lastUpTime, obtain the duration for which the magnetic field remains stable. If the time is long enough (for example, after a set number of seconds), it means that the magnetic field is stable enough, and it can be considered that curMag can truly represent envMag. Therefore, update envMag to curMag, and the magnetic field is stable; if the time is not yet sufficient, continue to wait for the next new data.
[0080] The previous examples are mainly considered from the perspective of changes in magnetic field strength values. In fact, optionally, the changes in the magnetic field can be considered more accurately and comprehensively, such as changes in the magnetic field direction and the entire magnetic field environment. The present application also considers the possibility of visually representing the changes in the magnetic field, so as to make more accurate judgments and further guide the implementation of diversified businesses.
[0081] Based on this idea, one or more embodiments of this specification provide a flow chart of a visual sensing device working mode selection and application scheme, see Figure 5 .
[0082] Figure 5 The process in includes the following steps:
[0083] S502: Generate one or more magnetic induction line simulation change images according to the magnetic field data.
[0084] In one or more embodiments of the present specification, the magnetic field has an intensity value and a direction. The direction of the magnetic field at a specified point can be indicated by the direction in which the magnetic induction line points, and the density between the magnetic induction lines can be used to indicate the height of the magnetic field value. Multiple magnetic induction lines can be deployed in or near the sensing device to detect the magnetic field intensity value and direction of multiple points, and then simulate the change image of the magnetic induction lines. In this process, if a sensing object approaches the sensing device, the magnetic field will be affected, thereby forming a dynamically changing simulated change image of the magnetic induction lines. The dynamic change here is affected by what the sensing object is, as well as the specific position and movement trajectory of the approach.
[0085] Based on this principle, we try to simulate the changing image based on the magnetic induction lines. We can not only infer what the sensing object is so as to determine what working mode to adopt, but also optionally infer the mode in which the sensing object is dynamically approached, so as to further determine which of the diversified services to execute under the adopted working mode, without having to connect to only one service, thereby giving users more flexibility in business control.
[0086] S504: performing feature comparison between the simulated change image of the magnetic induction line and a preset reference image, wherein the reference image is generated in response to a situation in which a designated card object or a card reader object approaches the sensing device for sensing.
[0087] Reference images can be generated based on different modes when the designated card object or card reader object approaches (for example, whether it approaches slowly or quickly, approaches in a straight line or in a curve, and whether there are additional gestures such as drawing a circle or a broken line when approaching). The feature comparison here can break through the limitation of only comparing the magnetic field strength values before, and can more accurately compare image features in a larger range and more dimensions, which helps to improve reliability.
[0088] S506: According to the result of the feature comparison, determine whether to adopt the card simulation working mode or the card reader working mode.
[0089] After determining the working mode, a pre-set fixed service (eg, paying the current order, etc.) may be executed, or the following steps S508 and S510 may be optionally executed to intelligently and flexibly realize adaptive selection of diversified services.
[0090] S508: Determine, among the multiple reference images corresponding to the working mode to be adopted, a reference image that is successfully matched during the feature comparison as a target reference image, wherein each of the reference images corresponds to a different service.
[0091] In one or more embodiments of the present specification, each working mode may correspond to one or more reference images respectively. In the case of corresponding to multiple reference images, different reference images may correspond to different services (for example, one service may be payment of the current order, another service may be reservation of goods, another service may be collection of discounts, and so on). Of course, one working mode may correspond to multiple different services, and each service may correspond to one or more reference images.
[0092] S510: Using the working mode corresponding to the judgment result, performing a service interaction corresponding to the target reference image with the current sensing object that causes the magnetic field change.
[0093] In this case, for multiple optional services, if the user wants to perform one of them, the user can move the sensing object close to the sensing device according to a proximity mode corresponding to the service, so as to trigger the sensing device to adaptively select the next service from the multiple optional services, thereby accurately meeting the user's current needs. For the user, the operation is convenient, the experience is good, the sense of intelligence and technology is strong, and the flexibility and expansibility are good.
[0094] Furthermore, one or more embodiments of this specification also provide a flowchart of a visual real-time prompt solution for a user's sensing device, see Figure 6 .
[0095] Figure 6 The process in includes the following steps:
[0096] S602: After generating one or more magnetic induction line simulation change images according to the magnetic field data, the magnetic induction lines simulated in the magnetic induction line simulation change images are packaged into virtual items and displayed to the user.
[0097] In one or more embodiments of the present specification, the virtual item can be an item that is easy for the user to understand, especially if it will change dynamically later, and such changes can be presented more naturally. For example, the virtual item can be a virtual gift box, bundle, or balloon, etc. Of course, while performing virtual packaging, the appearance can still retain the style of the magnetic induction line to a certain extent, which is also helpful to guide the user to more accurately execute the sensing object approach mode.
[0098] S604: As the movement of the current sensing object approaches the sensing device, the virtual item is controlled to change dynamically accordingly.
[0099] The dynamic distortion of the magnetic field caused by the current sensing object approaching the sensing device can be intuitively expressed by the dynamic changes of virtual objects. At the same time, it gives users an instant feeling of what qualitative effect will be caused by opening the virtual object, which helps to make users more focused and interested.
[0100] S606: If it is determined that the card simulation working mode or the card reader working mode is adopted, the virtual item is controlled to change into a card object or a card reader object corresponding to the working mode to be adopted.
[0101] Step S606 exemplarily provides a prompt effect. For example, assuming that the virtual item is a bag, after the working mode is determined, the bag can be controlled to automatically open and present the image of a virtual IC card or card reader, thereby clearly and vividly prompting the user of the role played by the current sensing device.
[0102] pass Figure 6 The solution in the embodiment makes it easier for users to understand the real-time working status of the sensing device and the characteristics of its adaptive switching of working modes, making it easier to continue to cooperate and interact.
[0103] Based on the same idea, one or more embodiments of this specification also provide devices and apparatuses corresponding to the above methods, such as Figure 7 , Figure 8 The apparatus and device can accordingly execute the above method and related optional solutions.
[0104] Figure 7A schematic diagram of a structure of an interactive processing device applied to a sensing device provided in one or more embodiments of this specification, the device comprising:
[0105] A magnetic field data detection module 702 detects magnetic field data through a magnetic field sensor deployed on the module;
[0106] The working mode determination module 704 determines whether to adopt the card simulation working mode or the card reader working mode according to the magnetic field change reflected by the magnetic field data;
[0107] The sensing service interaction module 706 adopts the working mode corresponding to the judgment result to perform service interaction with the current sensing object that causes the magnetic field change.
[0108] Optionally, the working mode determination module 704 determines to adopt the card simulation working mode if the magnetic field data reflects that the amplitude of the change in the magnetic field intensity is large enough;
[0109] If the magnetic field data shows that the amplitude of the change in the magnetic field strength is not large enough, it is determined that the card reader working mode is adopted.
[0110] Optionally, the working mode determination module 704 obtains a preset first threshold and a second threshold, and the first threshold is greater than the second threshold;
[0111] If it is determined that the magnetic field data reflects that the magnitude of the change in magnetic field intensity is greater than the first threshold, it is determined that the card simulation working mode is adopted;
[0112] If it is determined that the magnetic field data reflects that the amplitude of the change in magnetic field intensity is less than the second threshold, it is determined that the card reader working mode is adopted.
[0113] Optionally, in the case of adopting the card simulation working mode, the current sensing object includes a mobile phone;
[0114] In the case of adopting the card reader working mode, the current sensing object includes an IC card.
[0115] Optionally, the magnetic field data detection module 702, before determining whether to adopt the card simulation working mode or the card reader working mode according to the magnetic field change reflected by the magnetic field data, determines the environmental magnetic field strength value by performing a magnetic field self-check, so as to determine the magnetic field change based on the environmental magnetic field strength value;
[0116] Wherein, the magnetic field self-test comprises the following steps:
[0117] Initialize the environmental magnetic field strength value;
[0118] Determine the current magnetic field strength value according to the magnetic field data, and compare it with the ambient magnetic field strength value;
[0119] If the difference between the ambient magnetic field strength value and the current magnetic field strength value is large enough, continue to re-determine the current magnetic field strength value to detect whether the current magnetic field strength value is sufficiently stable;
[0120] If it is stable enough, the ambient magnetic field strength value is updated to the current magnetic field strength value.
[0121] Optionally, the magnetic field data detection module 702 uses the current magnetic field strength value before re-determination as the last updated magnetic field strength value, and records the corresponding last updated time;
[0122] Re-determining the current magnetic field strength value, and determining whether the difference between the re-determined current magnetic field strength value and the last updated magnetic field strength value is large enough;
[0123] If it is not large enough, and the difference between the current time and the last update time is large enough, it is determined that the current magnetic field strength value is stable enough;
[0124] If it is large enough, the last updated magnetic field strength value is updated to the re-determined current magnetic field strength value, and the last updated time is updated to the current time, and the current magnetic field strength value is continued to be re-determined.
[0125] Optionally, the working mode determination module 704 generates one or more magnetic induction line simulation change images according to the magnetic field data;
[0126] Comparing the characteristics of the simulated change image of the magnetic induction line with a preset reference image, wherein the reference image is generated when a designated card object or a card reader object approaches the sensing device for sensing;
[0127] According to the result of the feature comparison, it is determined whether to adopt the card simulation working mode or the card reader working mode.
[0128] Optionally, the working mode determination module 704, after generating one or more magnetic induction line simulated change images according to the magnetic field data, packages the simulated magnetic induction lines in the magnetic induction line simulated change images into virtual items and displays them to the user;
[0129] As the movement of the current sensing object approaches the sensing device, the virtual item is controlled to change dynamically accordingly;
[0130] If it is determined whether the card simulation working mode or the card reader working mode is adopted, the virtual object is controlled to change into a card object or a card reader object corresponding to the working mode to be adopted.
[0131] Optionally, the sensing service interaction module 706 determines, among the multiple reference images corresponding to the working mode to be used, a reference image that is successfully matched during the feature comparison as a target reference image, wherein each of the reference images corresponds to a different service;
[0132] The working mode corresponding to the judgment result is adopted to perform business interaction corresponding to the target reference image with the current sensing object that causes the magnetic field change.
[0133] Optionally, the working mode determination module 704 detects angular velocity data through an angular velocity sensor deployed by itself before determining whether to adopt the card simulation working mode or the card reader working mode, and determines, based on the angular velocity data, that the sensing device is not currently in motion, so as to perform the determination under this premise; and / or,
[0134] The distance data is detected by the TOF distance sensor deployed by itself, and it is determined based on the distance data that an object is currently approaching the sensing device, so as to perform the judgment under this premise.
[0135] Optionally, the sensing device is an NFC payment device;
[0136] The induction business interaction module 706, if the card simulation working mode is adopted according to the judgment result, acts as a simulated card and generates information to be paid, so that the current sensing object that causes the magnetic field change acts as a card reader, reads the simulated card to obtain the information to be paid, and makes payment according to the information to be paid.
[0137] Figure 8 A schematic diagram of a structure of an interactive processing device applied to a sensing device provided in one or more embodiments of this specification, the device comprising:
[0138] at least one processor; and,
[0139] a memory communicatively connected to the at least one processor; wherein,
[0140] The memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to execute:
[0141] Detect magnetic field data through magnetic field sensors deployed on itself;
[0142] According to the magnetic field change reflected by the magnetic field data, determining whether to adopt the card simulation working mode or the card reader working mode;
[0143] The working mode corresponding to the judgment result is adopted to perform business interaction with the current sensing object that causes the magnetic field change.
[0144] Based on the same idea, one or more embodiments of this specification further provide a non-volatile computer storage medium storing computer executable instructions, wherein the computer executable instructions are configured as follows:
[0145] Detect magnetic field data through magnetic field sensors deployed on itself;
[0146] According to the magnetic field change reflected by the magnetic field data, determining whether to adopt the card simulation working mode or the card reader working mode;
[0147] The working mode corresponding to the judgment result is adopted to perform business interaction with the current sensing object that causes the magnetic field change.
[0148] In the 1990s, it was very clear whether the improvement of a technology was hardware improvement (for example, improvement of the circuit structure of diodes, transistors, switches, etc.) or software improvement (improvement of the method flow). However, with the development of technology, many improvements of the method flow today can be regarded as direct improvements of the hardware circuit structure. Designers almost always obtain the corresponding hardware circuit structure by programming the improved method flow into the hardware circuit. Therefore, it cannot be said that the improvement of a method flow cannot be implemented with hardware entity modules. For example, a programmable logic device (PLD) (such as a field programmable gate array (FPGA)) is such an integrated circuit whose logical function is determined by the user's programming of the device. Designers can "integrate" a digital system on a PLD by programming it themselves, without having to ask chip manufacturers to design and make dedicated integrated circuit chips. Moreover, nowadays, instead of manually making integrated circuit chips, this kind of programming is mostly implemented by "logic compiler" software, which is similar to the software compiler used when developing and writing programs, and the original code before compilation must also be written in a specific programming language, which is called hardware description language (HDL). There is not only one kind of HDL, but many kinds, 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, RHDL (Ruby Hardware Description Language), etc. The most commonly used ones are VHDL (Very-High-Speed Integrated Circuit Hardware Description Language) and Verilog. Those skilled in the art should also know that it is only necessary to program the method flow slightly in the above-mentioned hardware description languages and program it into the integrated circuit, and then it is easy to obtain the hardware circuit that implements the logic method flow.
[0149] The controller may be implemented in any suitable manner, for example, the controller may take the form of a microprocessor or processor and a computer-readable medium storing a computer-readable program code (e.g., software or firmware) executable by the (micro)processor, a logic gate, a switch, an application-specific integrated circuit (ASIC), a programmable logic controller, and an embedded microcontroller, examples of which include but are not limited to the following microcontrollers: ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20, and Silicone Labs C8051F320, and the memory controller may also be implemented as part of the control logic of the memory. It is also known to those skilled in the art that, in addition to implementing the controller in a purely computer-readable program code manner, the controller may be implemented in the form of a logic gate, a switch, an application-specific integrated circuit, a programmable logic controller, and an embedded microcontroller by logically programming the method steps. Therefore, such a controller may be considered as a hardware component, and the devices for implementing various functions included therein may also be considered as structures within the hardware component. Or even, the devices for implementing various functions may be considered as both software modules for implementing the method and structures within the hardware component.
[0150] The systems, devices, modules or units described in the above embodiments may be implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer. Specifically, the computer may be, for example, a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.
[0151] For the convenience of description, the above device is described in various units according to their functions. Of course, when implementing this specification, the functions of each unit can be implemented in the same or multiple software and / or hardware.
[0152] Those skilled in the art will appreciate that the embodiments of this specification may be provided as methods, systems, or computer program products. Therefore, the embodiments of this specification may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the embodiments of this specification may 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 codes.
[0153] This specification is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of this specification. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0154] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0155] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process in the computer or other programmable device. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0156] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0157] The memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0158] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules 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 technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0159] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, an element defined by the sentence "comprises a ..." does not exclude the presence of other identical elements in the process, method, commodity or device including the element.
[0160] This specification may be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. This specification may also be practiced in distributed computing environments where tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules may be located in local and remote computer storage media, including storage devices.
[0161] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device, equipment, and non-volatile computer storage medium embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0162] The above is a description of a specific embodiment of the specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0163] The above description is only one or more embodiments of this specification and is not intended to limit this specification. For those skilled in the art, one or more embodiments of this specification may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of one or more embodiments of this specification shall be included in the scope of the claims of this specification.
Claims
1. An interactive processing method applied to a sensing device, comprising: Detect magnetic field data through magnetic field sensors deployed on itself; According to the magnetic field change reflected by the magnetic field data, determining whether to adopt the card simulation working mode or the card reader working mode; The working mode corresponding to the result of the judgment is adopted to perform business interaction with the current sensing object that causes the magnetic field change.
2. The method according to claim 1, wherein judging whether to adopt the card simulation working mode or the card reader working mode according to the magnetic field change reflected by the magnetic field data specifically comprises: If the magnetic field data reflects that the amplitude of the change in magnetic field intensity is large enough, it is determined that the card simulation working mode is adopted; If the magnetic field data shows that the amplitude of the change in the magnetic field strength is not large enough, it is determined that the card reader working mode is adopted.
3. The method according to claim 1 or 2, wherein judging whether to adopt the card simulation working mode or the card reader working mode according to the magnetic field change reflected by the magnetic field data specifically comprises: Acquire a preset first threshold and a second threshold, wherein the first threshold is greater than the second threshold; If it is determined that the magnetic field data reflects that the magnitude of the change in magnetic field intensity is greater than the first threshold, it is determined that the card simulation working mode is adopted; If it is determined that the magnetic field data reflects that the amplitude of the change in magnetic field intensity is less than the second threshold, it is determined that the card reader working mode is adopted.
4. The method according to claim 1, wherein in the case of adopting the card simulation working mode, the current sensing object comprises a mobile phone; In the case of adopting the card reader working mode, the current sensing object includes an IC card.
5. The method according to claim 1, wherein before determining whether to adopt the card simulation working mode or the card reader working mode according to the magnetic field change reflected by the magnetic field data, the method further comprises: By performing a magnetic field self-check, the value of the environmental magnetic field strength is determined, so as to determine the change of the magnetic field based on the value of the environmental magnetic field strength; Wherein, the magnetic field self-test comprises the following steps: Initialize the environmental magnetic field strength value; Determine the current magnetic field strength value according to the magnetic field data, and compare it with the ambient magnetic field strength value; If the difference between the ambient magnetic field strength value and the current magnetic field strength value is large enough, continue to re-determine the current magnetic field strength value to detect whether the current magnetic field strength value is sufficiently stable; If it is stable enough, the ambient magnetic field strength value is updated to the current magnetic field strength value.
6. The method according to claim 5, wherein the step of continuing to re-determine the current magnetic field strength value to detect whether the current magnetic field strength value is sufficiently stable comprises: The current magnetic field strength value before re-determination is used as the last updated magnetic field strength value, and the corresponding last updated time is recorded; Re-determining the current magnetic field strength value, and determining whether the difference between the re-determined current magnetic field strength value and the last updated magnetic field strength value is large enough; If it is not large enough, and the difference between the current time and the last update time is large enough, it is determined that the current magnetic field strength value is stable enough; If it is large enough, the last updated magnetic field strength value is updated to the re-determined current magnetic field strength value, and the last updated time is updated to the current time, and the current magnetic field strength value is continued to be re-determined.
7. The method according to claim 1, wherein judging whether to adopt the card simulation working mode or the card reader working mode according to the magnetic field change reflected by the magnetic field data specifically comprises: generating one or more magnetic induction line simulation change images according to the magnetic field data; Comparing the characteristics of the simulated change image of the magnetic induction line with a preset reference image, wherein the reference image is generated when a designated card object or a card reader object approaches the sensing device for sensing; According to the result of the feature comparison, it is determined whether to adopt the card simulation working mode or the card reader working mode.
8. The method according to claim 7, after generating one or more magnetic induction line simulation change images according to the magnetic field data, the method further comprises: Packing the simulated magnetic induction lines in the magnetic induction line simulated change image into virtual items and displaying them to the user; As the movement of the current sensing object approaches the sensing device, the virtual item is controlled to change dynamically accordingly; If it is determined whether the card simulation working mode or the card reader working mode is adopted, the virtual object is controlled to change into a card object or a card reader object corresponding to the working mode to be adopted.
9. The method according to claim 7, wherein the using the working mode corresponding to the result of the judgment to perform business interaction with the current sensing object that causes the magnetic field change specifically comprises: Determine, among the plurality of reference images corresponding to the working mode to be used, a reference image that is successfully matched during the feature comparison as a target reference image, wherein each of the reference images corresponds to a different service; The working mode corresponding to the result of the judgment is adopted to perform business interaction corresponding to the target reference image with the current sensing object that causes the magnetic field change.
10. The method according to claim 1, before determining whether to adopt the card emulation working mode or the card reader working mode, the method further comprises: Detecting angular velocity data through an angular velocity sensor deployed by the device, and determining based on the angular velocity data that the sensing device is not currently in motion, so as to perform the judgment under this premise; and / or, The distance data is detected by the TOF distance sensor deployed by itself, and it is determined based on the distance data that an object is currently approaching the sensing device, so as to perform the judgment under this premise.
11. The method according to claim 1, wherein the sensing device is an NFC payment device; The adopting the working mode corresponding to the result of the determination to perform business interaction with the current sensing object causing the magnetic field change specifically includes: If the card simulation working mode is adopted according to the result of the judgment, it acts as a simulated card and generates the information to be paid, so that the current sensing object that causes the magnetic field change acts as a card reader, reads the simulated card to obtain the information to be paid, and makes payment based on the information to be paid.
12. An interactive processing device applied to a sensing device, comprising: The magnetic field data detection module detects magnetic field data through the magnetic field sensor deployed on itself; A working mode determination module determines whether to adopt a card simulation working mode or a card reader working mode according to the magnetic field change reflected by the magnetic field data; The sensing service interaction module adopts the working mode corresponding to the result of the judgment to perform service interaction with the current sensing object that causes the magnetic field change.
13. The device according to claim 12, wherein the working mode determination module determines that the card simulation working mode is adopted if the magnetic field data reflects that the amplitude of the change in the magnetic field intensity is large enough; If the magnetic field data shows that the amplitude of the change in the magnetic field strength is not large enough, it is determined that the card reader working mode is adopted.
14. The device according to claim 12 or 13, wherein the working mode determination module obtains a preset first threshold and a second threshold, wherein the first threshold is greater than the second threshold; If it is determined that the magnetic field data reflects that the magnitude of the change in magnetic field intensity is greater than the first threshold, it is determined that the card simulation working mode is adopted; If it is determined that the magnetic field data reflects that the amplitude of the change in magnetic field intensity is less than the second threshold, it is determined that the card reader working mode is adopted.
15. The device of claim 12, wherein in the case of using a card simulation working mode, the current sensing object comprises a mobile phone; In the case of adopting the card reader working mode, the current sensing object includes an IC card.
16. The device according to claim 12, wherein the magnetic field data detection module determines the value of the environmental magnetic field strength by performing a magnetic field self-check before determining whether to adopt the card simulation working mode or the card reader working mode according to the magnetic field change reflected by the magnetic field data, so as to determine the magnetic field change based on the environmental magnetic field strength value; in, The magnetic field self-test comprises the following steps: Initialize the environmental magnetic field strength value; Determine the current magnetic field strength value according to the magnetic field data, and compare it with the ambient magnetic field strength value; If the difference between the ambient magnetic field strength value and the current magnetic field strength value is large enough, continue to re-determine the current magnetic field strength value to detect whether the current magnetic field strength value is sufficiently stable; If it is stable enough, the ambient magnetic field strength value is updated to the current magnetic field strength value.
17. The device according to claim 16, wherein the magnetic field data detection module uses the current magnetic field strength value before re-determination as the last updated magnetic field strength value, and records the corresponding last updated time; Re-determining the current magnetic field strength value, and determining whether the difference between the re-determined current magnetic field strength value and the last updated magnetic field strength value is large enough; If it is not large enough, and the difference between the current time and the last update time is large enough, it is determined that the current magnetic field strength value is stable enough; If it is large enough, the last updated magnetic field strength value is updated to the re-determined current magnetic field strength value, and the last updated time is updated to the current time, and the current magnetic field strength value is continued to be re-determined.
18. The device according to claim 12, wherein the working mode determination module generates one or more magnetic induction line simulation change images according to the magnetic field data; Comparing the characteristics of the simulated change image of the magnetic induction line with a preset reference image, wherein the reference image is generated when a designated card object or a card reader object approaches the sensing device for sensing; According to the result of the feature comparison, it is determined whether to adopt the card simulation working mode or the card reader working mode.
19. The device according to claim 18, wherein the working mode determination module, after generating one or more magnetic induction line simulated change images according to the magnetic field data, packages the simulated magnetic induction lines in the magnetic induction line simulated change images into virtual items and displays them to the user; As the movement of the current sensing object approaches the sensing device, the virtual item is controlled to change dynamically accordingly; If it is determined whether the card simulation working mode or the card reader working mode is adopted, the virtual object is controlled to change into a card object or a card reader object corresponding to the working mode to be adopted.
20. The device of claim 18, wherein the sensing service interaction module determines, among the plurality of reference images corresponding to the working mode to be used, a reference image that is successfully matched during the feature comparison as a target reference image, wherein: Each of the reference images corresponds to a different service; The working mode corresponding to the result of the judgment is adopted to perform business interaction corresponding to the target reference image with the current sensing object that causes the magnetic field change.
21. The device according to claim 12, wherein the working mode determination module detects angular velocity data through an angular velocity sensor deployed by itself before determining whether to adopt the card simulation working mode or the card reader working mode, and determines, based on the angular velocity data, that the sensing device is not currently in motion, so as to perform the determination under this premise; and / or, The distance data is detected by the TOF distance sensor deployed by itself, and it is determined based on the distance data that an object is currently approaching the sensing device, so as to perform the judgment under this premise.
22. The apparatus according to claim 12, wherein the sensing device is an NFC payment device; The induction business interaction module, if the card simulation working mode is adopted according to the result of the judgment, acts as a simulated card and generates information to be paid, so that the current sensing object that causes the magnetic field change acts as a card reader, reads the simulated card to obtain the information to be paid, and makes payment according to the information to be paid.
23. An interactive processing device applied to a sensing device, comprising: at least one processor; as well as, a memory communicatively connected to the at least one processor; wherein, The memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to execute: Detect magnetic field data through magnetic field sensors deployed on itself; According to the magnetic field change reflected by the magnetic field data, determining whether to adopt the card simulation working mode or the card reader working mode; The working mode corresponding to the result of the judgment is adopted to perform business interaction with the current sensing object that causes the magnetic field change.
