NFC usage boot method, device, storage medium and terminal
By monitoring the NFC signal strength changes and acceleration, the guidance information is output, which helps users move the terminal to the best communication position, solving the problem of poor terminal position guidance effect in NFC technology and improving communication efficiency.
Patent Information
- Application Number
- CN202010984629.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-09-17
- Publication Date
- 2024-11-22
- Estimated Expiration
- 2040-09-17
AI Technical Summary
In the actual use of NFC technology, the communication position between devices does not necessarily mean the center position of the NFC antenna area in the device, resulting in poor terminal position guidance effect.
By monitoring the signal intensity change amount of the NFC signal in the moving direction, when the signal intensity change amount is greater than the preset change amount, the current acceleration of the terminal is obtained, and the guidance information is output according to the signal intensity change amount and acceleration, instructing the user to turn the terminal towards the direction of the terminal according to the signal intensity change amount and the acceleration. Improve signal strength to move in the direction.
The convenience and efficiency of the user to move the terminal to the communication location is improved, the signal strength of the NFC signal is improved, and the communication effect between devices is improved.
Smart Images

Figure CN114205736B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of communication technology, and in particular to an NFC usage guidance method, device, storage medium and terminal. Background Art
[0002] With the development of science and technology, Near Field Communication (NFC) is increasingly appearing in people's daily lives. NFC technology is an emerging communication technology. Devices using NFC technology can exchange data when they are close to each other. Therefore, NFC technology has also become one of the research focuses of technicians in this field.
[0003] In the actual use of NFC technology, the device needs to be moved to the communication position, that is, the area with the best communication coupling, in order to achieve good communication between devices. However, the communication position between devices is not necessarily the center position of the NFC antenna area in the device, so the related technology of identifying the fixed antenna area in the device to achieve the guidance effect of the terminal position is poor. Summary of the invention
[0004] The present application provides an NFC usage guidance method, device, storage medium and terminal, which can solve the technical problem in the related art that the terminal position guidance effect is poor by identifying the fixed antenna area in the device.
[0005] In a first aspect, an embodiment of the present application provides an NFC usage guidance method, which is applied to a terminal, and the method includes:
[0006] Monitor the change in signal strength of the NFC signal in the moving direction;
[0007] When the signal strength change is greater than a preset change, obtaining the current acceleration of the terminal;
[0008] Guidance information is output according to the signal strength change amount and the acceleration, where the guidance information is used to instruct a user to move the terminal in a direction to increase the signal strength of the NFC signal according to the guidance information.
[0009] In a second aspect, an embodiment of the present application provides an NFC usage guidance device, which is applied to a terminal, and the device includes:
[0010] A signal strength acquisition module is used to monitor the signal strength change of the NFC signal in the moving direction;
[0011] An acceleration acquisition module, used for acquiring the current acceleration of the terminal when the signal strength change is greater than a preset change;
[0012] The guidance information output module is used to output guidance information according to the signal strength change and the acceleration, wherein the guidance information is used to instruct the user to move the terminal in a direction to increase the signal strength of the NFC signal according to the guidance information.
[0013] In a third aspect, an embodiment of the present application provides a computer storage medium, wherein the computer storage medium stores a plurality of instructions, wherein the instructions are suitable for being loaded by a processor and executing the steps of the above-mentioned method.
[0014] In a fourth aspect, an embodiment of the present application provides a terminal, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the above method when executing the program, and the terminal also comprises an NFC module and an acceleration sensor.
[0015] The beneficial effects brought about by the technical solutions provided by some embodiments of the present application include at least:
[0016] The present application provides a method for guiding the use of NFC, which first monitors the signal strength change of the NFC signal in the moving direction; then, when the signal strength change is greater than a preset change, obtains the current acceleration of the terminal; finally, outputs guidance information based on the signal strength change and the acceleration, and the guidance information is used to instruct the user to move the terminal in the direction of increasing the signal strength of the NFC signal according to the guidance information. Since the position of the terminal will change during the movement of the terminal, and the distance between the terminal and the NFC device will change, the signal strength of the NFC signal in the terminal will also change. Therefore, the guidance information can be output based on the signal strength change of the NFC signal and the acceleration of the terminal. The guidance information can instruct the user to move the terminal in the direction of increasing the signal strength of the NFC signal according to the guidance information, so that the user can quickly move the terminal to the communication position, thereby improving the convenience of the user in using NFC. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] In order to more clearly illustrate the embodiments of the present application 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 of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without paying any creative work.
[0018] Figure 1 A system interaction diagram of an NFC usage guidance method provided in an embodiment of the present application;
[0019] Figure 2 A flowchart of an NFC usage guidance method provided in an embodiment of the present application;
[0020] Figure 3 A flowchart of an NFC usage guidance method provided by another embodiment of the present application;
[0021] Figure 4 A schematic diagram of RSSI values corresponding to different field intensities provided by another embodiment of the present application;
[0022] Figure 5 A two-dimensional graph between different field intensities and corresponding RSSI values provided by another embodiment of the present application;
[0023] Figure 6 An exemplary schematic diagram of first display information provided in another embodiment of the present application;
[0024] Figure 7 An exemplary schematic diagram of guidance information provided by another embodiment of the present application;
[0025] Figure 8 An exemplary schematic diagram of second display information provided in another embodiment of the present application;
[0026] Fig. 9 A schematic diagram of the structure of an NFC usage guidance device provided in another embodiment of the present application;
[0027] Fig.10 A schematic structural diagram of another NFC usage guidance device provided in another embodiment of the present application;
[0028] Fig.11 A schematic diagram of the structure of a terminal provided in another embodiment of the present application;
[0029] Fig.12 Another structural schematic diagram of a terminal provided in another embodiment of the present application. DETAILED DESCRIPTION
[0030] In order to make the features and advantages of the present application more obvious and easy to understand, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present application.
[0031] When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Instead, they are only examples of devices and methods consistent with some aspects of the present application as detailed in the attached claims.
[0032] See also Figure 1 , Figure 1 A system interaction diagram of an NFC usage guidance method provided in an embodiment of the present application.
[0033] It should be noted that the executing entity of the embodiment of the present application may be, in hardware, for example, a central processing unit (CPU) or other integrated circuit chip in an NFC usage guidance terminal, and in software, for example, related services of the NFC usage guidance method in an NFC usage guidance terminal, without limitation.
[0034] like Figure 1 As shown, the steps of system interaction in the embodiment of the present application include:
[0035] S101. Obtain a first signal strength of an NFC signal. If the first signal strength is less than a preset signal strength, determine a first signal strength interval to which the first signal strength belongs, and display first display information corresponding to the first signal strength interval, where the first display information is used to display a relative size of the first signal strength.
[0036] Among them, displaying the first display information corresponding to the first signal strength interval includes: determining the color corresponding to the first signal strength interval, and determining the number of lines corresponding to the first signal strength; determining the color and the number of lines as the first display information, and displaying the first display information. The first display information may also include text information, for example, the text information may be "Please move the terminal in any direction", so that the user can move the terminal in any direction after observing the relative size of the first signal strength (that is, the color and the number of lines corresponding to the first signal strength) and the text information, so as to facilitate the subsequent acquisition of the signal strength change of the NFC module in the terminal and the acceleration of the terminal.
[0037] Further, determining the number of lines corresponding to the first signal strength includes: determining a first preset value and a second preset value corresponding to the first signal strength interval; calculating a quotient of the first signal strength and the first preset value, and calculating the product of the quotient and the second preset value; rounding the product and obtaining a rounded value, and determining the rounded value as the number of lines corresponding to the first signal strength.
[0038] S102: The user moves the terminal according to the first display information.
[0039] S103: The central processing unit monitors the signal strength change of the NFC signal in the moving direction.
[0040] S104: When the signal strength change is greater than a preset change, the central processing unit obtains the current acceleration of the terminal.
[0041] S105. Output guidance information according to the signal strength change and acceleration.
[0042] Among them, outputting guidance information according to the signal strength change and acceleration includes: obtaining the acceleration components of the acceleration on each coordinate axis of the three-dimensional coordinate system, and obtaining the maximum acceleration component among the acceleration components; when the signal strength change is a positive change, determining the coordinate axis direction corresponding to the maximum acceleration component as the guidance information, and outputting the guidance information; when the signal strength change is a negative change, determining the opposite direction of the coordinate axis direction corresponding to the maximum acceleration component as the guidance information, and outputting the guidance information.
[0043] Optionally, outputting the guidance information includes: displaying a three-dimensional coordinate system in a display interface of the terminal, and displaying the guidance information in the three-dimensional coordinate system.
[0044] S106: The user moves the terminal in a direction to increase the signal strength of the NFC signal according to the guidance information.
[0045] Furthermore, after outputting the guidance information, it also includes: the central processing unit obtains the second signal strength of the NFC signal, determines the second signal strength interval to which the second signal strength belongs; replaces the first display information with the second display information corresponding to the second signal strength interval for display; when the second signal strength is equal to or greater than the preset signal strength, the second display information is used to display the relative size of the second signal strength; when the second signal strength is less than the preset signal strength, the second display information is used to display the relative size of the second signal strength, and triggers the execution of the step of monitoring the change in the signal strength of the NFC signal in the moving direction.
[0046] In the embodiment of the present application, the signal strength change of the NFC signal in the moving direction is first monitored; then when the signal strength change is greater than the preset change, the current acceleration of the terminal is obtained; finally, guidance information is output according to the signal strength change and the acceleration, and the guidance information is used to instruct the user to move the terminal in the direction of increasing the signal strength of the NFC signal according to the guidance information. Since the position of the terminal will change during the movement of the terminal, and the distance between the terminal and the NFC device will change, the signal strength of the NFC signal in the terminal will also change. Therefore, the guidance information can be output according to the signal strength change of the NFC signal and the acceleration of the terminal. The guidance information can instruct the user to move the terminal in the direction of increasing the signal strength of the NFC signal according to the guidance information, so that the user can quickly move the terminal to the communication position, and improve the convenience of the user using NFC.
[0047] See also Figure 2 , Figure 2A flowchart of an NFC usage boot method provided in an embodiment of the present application. It should be noted that the execution subject of the embodiment of the present application may be, for example, a central processor or other integrated circuit chip in an NFC usage boot terminal in terms of hardware, and may be, for example, a related service of the NFC usage boot method in an NFC usage boot terminal in terms of software, without limitation. For the convenience of description, the specific implementation process of the NFC usage boot method is introduced below by taking the central processor in the terminal as an example.
[0048] like Figure 2 As shown, the method steps include:
[0049] S201: Monitor the signal strength change of the NFC signal in the moving direction.
[0050] It can be understood that in the embodiment of the present application, the NFC use boot method is applied to the terminal, wherein the terminal includes at least an NFC module, and the NFC module may include an NFC chip, an RF matching circuit, and an NFC antenna. The specific structure and working principle of the NFC module will be introduced in the subsequent embodiments and will not be repeated here.
[0051] The central processor can be electrically connected to the NFC module so that the central processor can send a control signal to the NFC module, and the NFC module works based on the control signal, that is, the NFC function is turned on; the NFC module can also send a signal back to the central processor to achieve mutual communication between the central processor and the NFC module.
[0052] The NFC module can be always turned on and set to listening mode. In this mode, the NFC module can monitor the NFC signals sent by external NFC devices in real time and measure the signal strength of the NFC signals sent by external NFC devices. The external NFC devices can be buses, access control or ATMs, etc., which use NFC technology to communicate with the NFC module in the terminal.
[0053] When the central processor detects the presence of an NFC signal near the terminal through the NFC module, it can control the NFC module to measure the signal strength of the current NFC signal, that is, the first signal strength. The NFC module sends the measured first signal strength to the central processor so that the central processor obtains the first signal strength.
[0054] When the first signal strength is small, or when the communication stability or signal strength between the NFC module and the external NFC device needs to be improved, it is necessary to guide the use of NFC. For example, the central processor can also analyze the first signal strength to determine the size between the first signal strength and the preset signal strength, where the preset signal strength can be set according to the actual situation. For example, the preset signal strength can be the minimum signal strength that supports stable communication between the NFC module in the terminal and the external NFC device. Therefore, when the first signal strength is less than the preset signal strength, it is necessary to guide the use of NFC so that the user moves the terminal to a suitable communication position to facilitate stable communication between the NFC module and the external NFC device. For another example, when the first signal strength is equal to or greater than the preset signal strength, when the user needs to increase the communication stability or signal strength between the NFC module and the external NFC module, the NFC use guidance method in the embodiment of the present application can still be used. For the convenience of description, the following takes the case where the first signal strength is less than the preset signal strength and the NFC use needs to be guided as an example to introduce the specific implementation steps of the NFC use guidance method.
[0055] In order to obtain the direction in which the terminal moves toward the external NFC device, the user first needs to control the terminal to move in any direction. A feasible way is that after the central processor obtains the first signal strength, the first display information corresponding to the first signal strength is displayed. The first display information is used to display the relative size of the first signal strength, so that the user can move the terminal according to the prompt of the first display information after viewing the first display information. For example, the first display information can display the relative size of the first signal strength, and / or display text information to remind the user to move the terminal. When the user observes the first signal strength or text information, if the user determines that the first signal strength is small, then the terminal can be moved. When the user moves the terminal, the NFC module in the terminal also moves accordingly, and then the central processor monitors the signal strength change of the NFC signal in the moving direction through the NFC module, where the signal strength change can be obtained by real-time monitoring of the signal strength of the NFC signal in the moving direction.
[0056] S202: When the signal strength change is greater than a preset change, obtain the current acceleration of the terminal.
[0057] When the central processor monitors the signal strength change of the NFC signal in the moving direction, it can also monitor in real time the relationship between the signal strength change and the preset change, wherein the preset change can be set according to the actual situation, for example, the preset change can be set to 10%. When the signal strength change is greater than the preset change, that is, when the signal strength change of the NFC signal is greater than 10%, for example, the NFC signal is in the moving direction, when the signal strength at a certain moment is 100 (the moment may be the moment when the NFC signal is monitored, or any moment after the NFC signal is monitored), when the terminal continues to move, the signal strength at another moment is 120, and the signal strength change of the tested NFC signal is (120-100) / 100=20%, which is greater than the preset change of 10%, then it is determined that the signal strength change is greater than the preset change.
[0058] Since the signal strength change of the NFC signal represents the change in the signal strength of the NFC signal between the NFC module and the external NFC device during the movement of the terminal, when the signal strength change is greater than the preset change, it means that the terminal is moving in a direction roughly in the direction of increasing or decreasing the signal strength of the NFC signal. In order to more accurately obtain the direction in which the terminal needs to move, so as to move the terminal to the communication position corresponding to the external NFC device as soon as possible, the current acceleration of the terminal can be obtained through the acceleration sensor set in the terminal when the signal strength change is greater than the preset change. Since the current acceleration of the terminal is a vector, that is, the current acceleration of the terminal has not only magnitude but also direction, it is convenient to obtain the direction in which the terminal needs to move according to the current acceleration of the terminal.
[0059] S203: output guidance information according to the signal strength change and the acceleration, where the guidance information is used to instruct the user to move the terminal in a direction to increase the signal strength of the NFC signal according to the guidance information.
[0060] After the central processor obtains the signal strength change and acceleration, since the signal strength change of the NFC signal represents the change in the signal strength of the NFC signal between the NFC module and the external NFC device during the movement of the terminal; and the terminal's moving direction can be obtained from the current acceleration of the terminal, guidance information can be output according to the signal strength change and acceleration, so that after the user receives the guidance information, the terminal can be controlled to move according to the guidance information to improve the signal strength between the NFC module in the terminal and the external NFC device. The guidance information may include direction prompt information and distance prompt information, and the way of outputting the guidance information may not be limited, for example, the way of outputting the guidance information may be through image display or voice display, etc.
[0061] In the embodiment of the present application, the signal strength change of the NFC signal in the moving direction is first monitored; then when the signal strength change is greater than the preset change, the current acceleration of the terminal is obtained; finally, guidance information is output according to the signal strength change and the acceleration, and the guidance information is used to instruct the user to move the terminal in the direction of increasing the signal strength of the NFC signal according to the guidance information. Since the position of the terminal will change during the movement of the terminal, and the distance between the terminal and the NFC device will change, the signal strength of the NFC signal in the terminal will also change. Therefore, the guidance information can be output according to the signal strength change of the NFC signal and the acceleration of the terminal. The guidance information can instruct the user to move the terminal in the direction of increasing the signal strength of the NFC signal according to the guidance information, so that the user can quickly move the terminal to the communication position, and improve the convenience of the user using NFC.
[0062] See also Figure 3 , Figure 3 A flowchart of an NFC usage guidance method provided by another embodiment of the present application.
[0063] like Figure 3 As shown, the method steps include:
[0064] S301. Obtain a first signal strength of an NFC signal. If the first signal strength is less than a preset signal strength, determine a first signal strength interval to which the first signal strength belongs.
[0065] When the CPU detects the presence of an NFC signal near the terminal through the NFC module, a Field On event will be generated, and then the CPU will control the display screen to light up and call out the virtual card in the terminal, wherein the virtual card can be called out by displaying a card graphic with NFC function on the display screen. The CPU can also control the NFC module to measure the signal strength of the current NFC signal, that is, the first signal strength, and the NFC module sends the measured first signal strength to the CPU so that the CPU can obtain the first signal strength.
[0066] For the convenience of description, the embodiment of the present application takes the need to guide the use of NFC when the first signal strength is less than the preset signal strength as an example to introduce the specific implementation steps of the NFC use guidance method. It can be understood that the NFC use guidance method in the embodiment of the present application can also be used when the first signal strength is equal to or greater than the preset signal strength and the user needs to increase the communication stability or signal strength between the NFC module and the external NFC module. For details, please refer to "NFC use guidance method when the first signal strength is less than the preset signal strength", which will not be repeated here.
[0067] The central processing unit can also analyze the first signal strength to determine the size of the first signal strength compared to a preset signal strength, where the preset signal strength can be set according to actual conditions. For example, the preset signal strength can be the minimum signal strength that supports stable communication between the NFC module in the terminal and the external NFC device. Therefore, when the first signal strength is less than the preset signal strength, it is necessary to guide the use of NFC so that the user moves the terminal to a suitable communication position to facilitate stable communication between the NFC module and the external NFC device.
[0068] In order to obtain the direction in which the terminal moves toward the external NFC device, the user first needs to control the terminal to move in any direction. One feasible way is that the central processor pre-sets multiple signal strength intervals corresponding to the signal strength of the NFC signal. For example, the signal strength is represented by the received signal strength indication (RSSI, Received Signal Strength Indication) value. Due to the different NFC antenna environments and matching values in the terminal, the RSSI values received by the NFC modules in different terminals under the same external NFC device will be different. Therefore, when each terminal is designed, it is necessary to complete RSSI measurements under different field strengths on standard equipment. For another example, the RSSI value received by the NFC module in the terminal in the field strength range from 1.5A / m to 7.5A / m can be measured on the industry-standard ISO equipment based on the minimum field strength of 1.5A / m and the maximum field strength of 7.5A / m. Specifically, the following example can be used: from 1.5A / m to 7.5A / m, with a step of 0.5A / m, the RSSI value received by the NFC module under each field strength is measured, and the RSSI value can be obtained. Figure 4 The corresponding RSSI values under different field strengths, and Figure 5 Two-dimensional graph between different field strengths and corresponding RSSI values.
[0069] Depend on Figure 4 as well as Figure 5It can be seen that the relationship between RSSI and field strength is proportional, and the slopes of each segment are basically the same, and the two-dimensional graph drawn is close to a straight line. Therefore, it is possible to define a signal strength interval corresponding to an RSSI value between [0, 2543], that is, a field strength between [0, 2.5]; define a signal strength interval corresponding to an RSSI value between [2544, 5122], that is, a field strength between [2.5, 5.0]; define a signal strength interval corresponding to an RSSI value above 5122, that is, a field strength above 5.0. After setting or defining multiple signal strength intervals, the first signal strength interval to which the first signal strength belongs can be determined. For example, when the RSSI value corresponding to the first signal strength is 1982, the RSSI value is between [0, 2543], so [0, 2543] is also the first signal strength interval corresponding to the first signal strength. After the central processor obtains the first signal strength of the NFC signal, it can determine the signal strength interval corresponding to the first signal strength according to the corresponding relationship between the RSSI value and the signal strength interval, and define the signal strength interval as the first signal strength interval.
[0070] S302: Display first display information corresponding to the first signal strength interval, where the first display information is used to display a relative magnitude of the first signal strength.
[0071] Since the first signal strength is less than the preset signal strength, after obtaining the first signal strength interval corresponding to the first signal strength, display information corresponding to the first signal strength interval, that is, the first display information, can also be obtained, and the first display information is displayed. The first display information is used to display the relative size of the first signal strength, so that the user can move the terminal in any direction according to the first display information, thereby driving the NFC module in the terminal to move, so as to subsequently obtain the signal strength change of the NFC module in the terminal and the acceleration of the terminal.
[0072] The first display information is displayed in at least an image display and a voice display.
[0073] Among them, in order to more clearly display the first display information corresponding to the first signal strength interval, a feasible method may be to set the first display information to two forms of expression, one is color, used to indicate the interval to which the first signal strength belongs, and the other is the number of lines, used to indicate the specific value of the first signal strength.
[0074] Then, the color corresponding to the first signal strength interval can be determined first. For example, when the first signal strength is less than the preset signal strength, in order to facilitate the user to identify the first display information at the first time when seeing the first display information, the color corresponding to the first signal strength interval can be set to a more eye-catching red, indicating that the first signal strength is less than the preset signal strength, and the user needs to be guided to move the terminal so that the NFC module in the terminal can better couple or communicate with the external NFC device.
[0075] Then, it is necessary to determine the number of lines corresponding to the first signal strength. A feasible method for determining the number of lines corresponding to the first signal strength includes: first determining the first preset value and the second preset value corresponding to the first signal strength interval, wherein the first preset value can be the upper limit value of the interval corresponding to the first signal strength interval, for example, when the first signal strength interval is [0, 2543], then the first preset value is the upper limit value of the interval [0, 2543], that is, 2543; the second preset value is the number of lines corresponding to the first signal strength when the first preset value is the first preset value, for example, when the first signal strength is set to 2543, the first signal strength reaches the upper limit value of the first signal strength interval, and the number of lines to be displayed is 6, then the second preset value is 6. The second preset value can be set according to the situation, for example, the second preset value can also be set to 12 or 18. The larger the second preset value, the more accurate the first display information is when displaying the first signal strength, but it will increase the display cost or display complexity of the first display information, so it can be set according to user settings or needs.
[0076] Then, the quotient of the first signal strength and the first preset value is calculated, and the product of the quotient and the second preset value is calculated. Specifically, since the first preset value can be the upper limit of the interval corresponding to the first signal strength interval, and the second preset value is the number of lines corresponding to the first signal strength being the first preset value, then the quotient of the first signal strength and the first preset value can be obtained, which is equal to the quotient of the number of lines corresponding to the first signal strength and the second preset value. Therefore, in order to calculate the number of lines corresponding to the first signal strength, the quotient of the first signal strength and the first preset value can be obtained first, and then the product of the quotient and the second preset value can be calculated. Since the number of lines corresponding to the first signal strength is an integer, the product is finally rounded to obtain a rounded value, and the rounded value is determined as the number of lines corresponding to the first signal strength.
[0077] For example, when the RSSI value corresponding to the first signal strength is 1982, the RSSI value is between [0, 2543]. Therefore, [0, 2543] is the first signal strength interval corresponding to the first signal strength. The color corresponding to the first signal strength interval is red, the first preset value corresponding to the first signal strength interval is 2543, and the second preset value corresponding to the first signal strength interval is 6. Then the number of lines corresponding to the first signal strength is:
[0078] Finally, the color and the number of lines are determined as the first display information, and the first display information is displayed.
[0079] Optionally, in the embodiment of the present application, it is set that when the first signal strength of the monitored NFC signal is greater than or equal to the preset signal strength, it means that the first signal strength satisfies the signal strength between the NFC module in the terminal and the external NFC device, and there is no need to guide the use of NFC, that is, stable communication between the NFC module and the external NFC device can be achieved. At this time, the signal strength interval to which the first signal strength belongs can also be determined, and then the first display information corresponding to the signal strength interval is displayed. The first display information is used to prompt the user that the first signal strength satisfies the signal strength between the NFC module in the terminal and the external NFC device, and there is no need to guide the use of NFC. The color corresponding to the first display information can also be determined, and the color can be a relatively mild green. The number of lines corresponding to the first display information can also be determined, where the calculation of the color and the number of lines can refer to the description in the above-mentioned first display information, which will not be repeated here.
[0080] See also Figure 6 , Figure 6 This is an example schematic diagram of the first display information provided by another embodiment of the present application. Figure 6 As shown, Figure A is an example schematic diagram of the first display information, wherein the solid line color in Figure A is red, indicating that the first signal strength of the NFC signal is less than the preset signal strength, the number of solid lines corresponds to the magnitude of the first signal strength, and the number of dotted lines represents the range in which the NFC signal can be improved; Figure B is another example schematic diagram of the first display information, wherein the solid line color in Figure B is green, indicating that the signal strength of the NFC signal is equal to or greater than the preset signal strength, and the number of solid lines corresponds to the magnitude of the signal strength. Optionally, the signal strength interval corresponding to the signal strength near the preset signal strength can also be set as a transition signal strength interval, and the color corresponding to the signal strength interval can be set to yellow, so that the user can distinguish the magnitude of the first signal strength.
[0081] Optionally, the first display information may also include text information. For example, the text information may be “Please move the terminal in any direction” so that the user moves the terminal in time after observing the text information, thereby facilitating subsequent acquisition of the signal strength change of the NFC module in the terminal and the acceleration of the terminal.
[0082] S303: Monitor the signal strength change of the NFC signal in the moving direction.
[0083] Regarding step S303, please refer to the detailed description of step S201 in the above embodiment, which will not be repeated here.
[0084] S304: When the signal strength change is greater than a preset change, obtain the current acceleration of the terminal.
[0085] Regarding step S304, please refer to the detailed description of step S202 in the above embodiment, which will not be repeated here.
[0086] S305 , obtaining acceleration components of the acceleration on each coordinate axis of the three-dimensional coordinate system, and obtaining the maximum acceleration component among the acceleration components.
[0087] After the central processor obtains the signal strength change and acceleration, since the signal strength change of the NFC signal represents the change in the signal strength of the NFC signal between the NFC module and the external NFC device during the movement of the terminal; and the moving direction of the terminal's last position change can be obtained from the current acceleration of the terminal, the guidance information can be output according to the signal strength change and acceleration. Specifically, since the current acceleration of the terminal is a vector, that is, the current acceleration of the terminal has not only magnitude but also direction, in order to facilitate the decomposition of the direction of the acceleration, a three-dimensional coordinate system can be established for the acceleration, and then the direction of the acceleration can be decomposed on each coordinate axis of the three-dimensional coordinate system, and then the acceleration components on each coordinate axis of the three-dimensional coordinate system are obtained, and each acceleration component is compared to obtain the maximum acceleration component of each acceleration component, wherein the coordinate axis direction corresponding to the maximum acceleration component represents the direction corresponding to the signal strength change, that is, when the terminal moves in this direction, the degree of change in the signal strength received by the NFC module in the terminal is the largest.
[0088] S306: When the signal strength change is a positive change, the coordinate axis direction corresponding to the maximum acceleration component is determined as guidance information, and the guidance information is output.
[0089] Since the signal strength change can be positive or negative, when the signal strength change is positive, it means that when the terminal moves in the direction corresponding to the signal strength change, the signal strength received by the NFC module in the terminal is increasing. Therefore, the coordinate axis direction corresponding to the maximum acceleration component can be determined as guidance information, and the guidance information is output.
[0090] S307: When the signal strength variation is a negative variation, the opposite direction of the coordinate axis direction corresponding to the maximum acceleration component is determined as guidance information, and the guidance information is output.
[0091] Similarly, when the signal strength change is negative, it means that when the terminal moves in the direction corresponding to the signal strength change, the signal strength received by the NFC module in the terminal is decreasing. Therefore, the opposite direction of the coordinate axis direction corresponding to the maximum acceleration component can be determined as guidance information, and the guidance information is output.
[0092] Since the guidance information includes information about the direction in which the terminal needs to move, that is, the guidance information is used to instruct the user to move the terminal in a direction that increases the signal strength of the NFC signal according to the guidance information, there is no restriction on the way of outputting the guidance information. For example, the way of outputting the guidance information can be through image display or voice display.
[0093] When the guidance information is output through an image, since the acceleration component is decomposed in a three-dimensional coordinate system, in order to facilitate the display of the guidance information, the three-dimensional coordinate system can be displayed in the display interface of the terminal, and then the guidance information can be displayed in the three-dimensional coordinate system.
[0094] See also Figure 7 , Figure 7 This is a schematic diagram of an example of guidance information provided by another embodiment of the present application.
[0095] like Figure 7 As shown, a three-dimensional coordinate system is displayed in the display interface of the terminal, and then the guidance information is displayed in the three-dimensional coordinate system. Figure 7 The direction corresponding to the solid arrow in the figure is the guidance information. Optionally, according to user needs and visual habits, the guidance information can also be displayed in a two-dimensional coordinate system, which will not be described in detail here.
[0096] When the guidance information is outputted in the form of voice display, the current position of the terminal can be obtained through the positioning module set in the terminal, and the angle information between the current position of the terminal and the guidance information can be determined, and finally the angle information can be broadcasted through the voice playback device.
[0097] Optionally, in the above embodiment, guidance information is output through signal strength change and acceleration, wherein the guidance information includes direction information between the NFC module in the terminal and the external NFC device; similarly, guidance information can also be output through signal strength change and acceleration, wherein the guidance information includes distance information between the NFC module in the terminal and the external NFC device. After the guidance information including the distance information is output, it can be convenient for the user to control the moving distance of the terminal, and the user can be prompted to move the terminal more accurately, thereby improving the convenience of the user in using NFC.
[0098] S308: Acquire a second signal strength of the NFC signal, and determine a second signal strength interval to which the second signal strength belongs.
[0099] When the user moves the terminal in the direction of increasing the signal strength of the NFC signal according to the guidance information, the signal strength of the NFC signal received by the NFC module in the terminal will increase. However, whether the signal strength of the NFC signal can meet the communication requirements between the NFC module and the external NFC device needs to be further judged. Therefore, the second signal strength of the NFC signal can be obtained first, that is, the signal strength of the NFC signal received by the NFC module after the user moves the terminal. Similarly, the signal strength interval to which the second signal strength belongs can be determined according to the above division into signal strength intervals, that is, the second signal strength interval. Regarding how to determine the second signal strength interval to which the second signal strength belongs, you can refer to the above method of determining the first signal strength interval to which the first signal strength belongs, which will not be repeated here.
[0100] S309: Replace the first display information with second display information corresponding to the second signal strength interval for display.
[0101] When the user moves the terminal in a direction to increase the signal strength of the NFC signal according to the guidance information, the signal strength of the NFC signal received by the NFC module in the terminal may be greater than, equal to, or less than the preset signal strength. Therefore, the second display information needs to be set according to the specific size of the second signal strength.
[0102] When the second signal strength is equal to or greater than the preset signal strength, it means that the second signal strength meets the communication strength requirement between the NFC module in the terminal and the external NFC device. There is no need to guide the use of NFC, and stable communication between the NFC module and the external NFC device can be achieved. At this time, the second display information is used to display the relative size of the second signal strength, and the user can stop guiding the terminal position according to the second display information.
[0103] The second display information is displayed in at least one of an image display and a voice display. Figure 8 , Figure 8This is an example schematic diagram of the second display information provided by another embodiment of the present application. Figure 8 As shown, when the second display information is displayed in an image display mode, the second display information may include text information of "NFC is ready, please stop the mobile terminal"; color, used to indicate the interval to which the second signal strength belongs; number of lines, used to indicate the specific value of the second signal strength. For the setting method of the color and number of lines in the second display information, please refer to the setting method of the color and number of lines in the first display information mentioned above, which will not be repeated here. Then the first display information can be replaced with the second display information corresponding to the second signal strength interval and displayed on the display interface of the terminal.
[0104] Optionally, when the second signal strength is equal to or greater than the preset signal strength, if the user needs to increase the communication stability or signal strength between the NFC module and the external NFC module, the second display information includes not only the color and line corresponding to the second signal strength, but also the second display information is used to display the relative size of the second signal strength. The user can continue to move in the direction of increasing the signal strength of the NFC signal according to the prompts of the guidance information until the user's signal strength requirements are met. For the specific process, please refer to the detailed description of the above steps.
[0105] Furthermore, when the second signal strength is less than the preset signal strength, it means that the second signal strength does not meet the communication strength requirement between the NFC module in the terminal and the external NFC device, and it is necessary to continue to guide the use of NFC so that the user moves the terminal to achieve stable communication between the NFC module in the terminal and the external NFC device. Then the second display information is used to display the relative size of the second signal strength and trigger the step of monitoring the change in the signal strength of the NFC signal in the moving direction.
[0106] Among them, the second display information is displayed in a manner that includes at least image display and voice display. For example, when the second display information is displayed in an image display manner, the second display information may include a color for indicating the interval to which the second signal strength belongs, and a number of lines for indicating a specific value of the second signal strength. For the method for setting the color and the number of lines in the second display information, please refer to the method for setting the color and the number of lines in the first display information mentioned above, which will not be repeated here. Then the first display information can be replaced with the second display information corresponding to the second signal strength interval and displayed on the display interface of the terminal. At the same time, the central processing unit triggers the step of monitoring the change in the signal strength of the NFC signal in the moving direction. After the user observes the relative size of the second signal strength displayed by the second display information, the user continues to move the terminal to achieve continuous adjustment of the terminal position until the signal strength of the NFC signal received by the NFC module in the terminal is equal to or greater than the preset signal strength.
[0107] In the embodiment of the present application, since the position of the terminal will change and the distance between the terminal and the NFC device will change during the movement of the terminal, the signal strength of the NFC signal in the terminal will also change. Therefore, guidance information can be output according to the change in the signal strength of the NFC signal and the acceleration of the terminal. The guidance information can instruct the user to move the terminal in the direction of increasing the signal strength of the NFC signal according to the guidance information, so as to facilitate the user to quickly move the terminal to the communication position and improve the convenience of the user in using NFC.
[0108] See also Fig. 9 , Fig. 9 A schematic diagram of the structure of an NFC usage guidance device provided in another embodiment of the present application, which is applied to a terminal, includes:
[0109] The signal strength acquisition module 910 is used to monitor the signal strength change of the NFC signal in the moving direction.
[0110] It can be understood that in the embodiment of the present application, the NFC use guidance device is applied to the terminal, wherein the terminal includes at least an NFC module, and the NFC module may include an NFC chip, an RF matching circuit, and an NFC antenna. The specific structure and working principle of the NFC module will be introduced in the subsequent embodiments and will not be repeated here.
[0111] The central processor can be electrically connected to the NFC module so that the central processor can send a control signal to the NFC module, and the NFC module works based on the control signal, that is, the NFC function is turned on; the NFC module can also send a signal back to the central processor to achieve mutual communication between the central processor and the NFC module.
[0112] The NFC module can be always turned on and set to listening mode. In this mode, the NFC module can monitor the NFC signals sent by external NFC devices in real time and measure the signal strength of the NFC signals sent by external NFC devices. The external NFC devices can be buses, access control or ATMs, etc., which use NFC technology to communicate with the NFC module in the terminal.
[0113] When the signal strength acquisition module 910 detects the presence of an NFC signal near the terminal through the NFC module, the NFC module can be controlled to measure the signal strength of the current NFC signal, that is, the first signal strength. The NFC module sends the measured first signal strength to the signal strength acquisition module 910, so that the signal strength acquisition module 910 acquires the first signal strength.
[0114] The signal strength acquisition module 910 can also analyze the first signal strength and determine the size of the first signal strength compared to the preset signal strength, where the preset signal strength can be set according to actual conditions. For example, the preset signal strength can be the minimum signal strength that supports stable communication between the NFC module in the terminal and the external NFC device. Therefore, when the first signal strength is less than the preset signal strength, it is necessary to guide the use of NFC so that the user moves the terminal to a suitable communication position to facilitate stable communication between the NFC module and the external NFC device.
[0115] In order to obtain the direction in which the terminal moves toward the external NFC device, the user first needs to control the terminal to move in any direction. One feasible way is that after the central processor obtains the first signal strength, the first display information corresponding to the first signal strength is displayed. The first display information is used to display the relative size of the first signal strength, so that the user can move the terminal according to the prompt of the first display information after viewing the first display information. When the user moves the terminal, the NFC module in the terminal also moves, and then the signal strength acquisition module 910 monitors the signal strength change of the NFC signal in the moving direction through the NFC module, where the signal strength change can be obtained by real-time monitoring the signal strength of the NFC signal in the moving direction.
[0116] The acceleration acquisition module 920 is used to acquire the current acceleration of the terminal when the signal strength change is greater than a preset change.
[0117] After the acceleration acquisition module 920 acquires the signal strength change of the NFC signal in the moving direction, the relationship between the signal strength change and the preset change can be monitored in real time, wherein the preset change can be set according to the actual situation, for example, the preset change can be set to 10%. When the signal strength change is greater than the preset change, that is, when the signal strength change of the NFC signal is greater than 10%, for example, the NFC signal is in the moving direction, when the signal strength at a certain moment is 100, when the terminal continues to move, the signal strength at another moment is 120, and the signal strength change of the tested NFC signal is (120-100) / 100=20%, it is determined that the signal strength change is greater than the preset change.
[0118] Since the signal strength change of the NFC signal represents the change in the signal strength of the NFC signal between the NFC module and the external NFC device during the movement of the terminal, when the signal strength change is greater than the preset change, it means that the terminal is moving in a direction roughly in the direction of increasing or decreasing the signal strength of the NFC signal. In order to more accurately obtain the direction in which the terminal needs to move, so as to move the terminal to the communication position corresponding to the external NFC device as soon as possible, the current acceleration of the terminal can be obtained through the acceleration sensor set in the terminal when the signal strength change is greater than the preset change. Since the current acceleration of the terminal is a vector, that is, the current acceleration of the terminal has not only magnitude but also direction, it is convenient to obtain the direction in which the terminal needs to move according to the current acceleration of the terminal.
[0119] The guidance information output module 930 is used to output guidance information according to the signal strength change and the acceleration, and the guidance information is used to instruct the user to move the terminal in a direction to increase the signal strength of the NFC signal according to the guidance information.
[0120] After the guidance information output module 930 obtains the signal strength change and acceleration, since the signal strength change of the NFC signal represents the change in the signal strength of the NFC signal between the NFC module and the external NFC device during the movement of the terminal; and the terminal's moving direction can be obtained from the current acceleration of the terminal, the guidance information can be output according to the signal strength change and acceleration, so that after the user receives the guidance information, the terminal can be controlled to move according to the guidance information to improve the signal strength between the NFC module in the terminal and the external NFC device. The guidance information may include direction prompt information and distance prompt information, and the way of outputting the guidance information may not be limited, for example, the way of outputting the guidance information may be through image display or voice display, etc.
[0121] See also Fig.10 , Fig.10 A schematic diagram of the structure of another NFC usage guidance device provided in another embodiment of the present application, which is applied to a terminal, and the NFC usage guidance device 1000 includes:
[0122] The first interval determination module 1010 is configured to obtain a first signal strength of an NFC signal, and if the first signal strength is less than a preset signal strength, determine a first signal strength interval to which the first signal strength belongs.
[0123] The first display module 1020 is used to display first display information corresponding to the first signal strength interval, and the first display information is used to display the relative size of the first signal strength.
[0124] Among them, displaying the first display information corresponding to the first signal strength interval includes: determining the color corresponding to the first signal strength interval, and determining the number of lines corresponding to the first signal strength; determining the color and the number of lines as the first display information, and displaying the first display information. Further, determining the number of lines corresponding to the first signal strength includes: determining the first preset value and the second preset value corresponding to the first signal strength interval; calculating the quotient of the first signal strength and the first preset value, and calculating the product of the quotient and the second preset value; rounding the product to obtain a rounded value, and determining the rounded value as the number of lines corresponding to the first signal strength.
[0125] The variation acquisition module 1030 is used to monitor the variation of the signal strength of the NFC signal in the moving direction.
[0126] The acceleration acquisition module 1040 is used to acquire the current acceleration of the terminal when the signal strength change is greater than a preset change.
[0127] The acceleration component acquisition module 1050 is used to acquire the acceleration components of the acceleration on each coordinate axis of the three-dimensional coordinate system, and acquire the maximum acceleration component among the acceleration components.
[0128] The positive output module 1060 is used to determine the coordinate axis direction corresponding to the maximum acceleration component as guidance information when the signal strength change is a positive change, and output the guidance information.
[0129] The reverse output module 1070 is used to determine the reverse direction of the coordinate axis direction corresponding to the maximum acceleration component as guidance information when the signal strength change is a negative change, and output the guidance information.
[0130] Outputting the guidance information includes: displaying a three-dimensional coordinate system in a display interface of the terminal, and displaying the guidance information in the three-dimensional coordinate system.
[0131] The second interval determination module 1080 is configured to obtain a second signal strength of the NFC signal and determine a second signal strength interval to which the second signal strength belongs.
[0132] The second display module 1090 is used to replace the first display information with the second display information corresponding to the second signal strength interval for display.
[0133] Among them, when the second signal strength is equal to or greater than the preset signal strength, the second display information is used to display the relative size of the second signal strength; when the second signal strength is less than the preset signal strength, the second display information is used to display the relative size of the second signal strength and trigger the step of monitoring the change in the signal strength of the NFC signal in the moving direction.
[0134] An embodiment of the present application further provides a computer storage medium, which can store multiple instructions, and the instructions are suitable for being loaded by a processor and executing the steps of any method in the above embodiments.
[0135] See also Fig.11 , Fig.11 A schematic diagram of the structure of a terminal provided in an embodiment of the present application. Fig.11 As shown, the terminal 1100 may include: at least one processor 1101 , at least one network interface 1104 , a user interface 1103 , a memory 1105 , and at least one communication bus 1102 .
[0136] See also Fig.12 , Fig.12 Another structural schematic diagram of a terminal provided in another embodiment of the present application.
[0137] like Fig.12 As shown, the terminal 1100 also includes a power module 1106, an NFC module 1107 and an acceleration sensor 1108, wherein the power module 1106 is electrically connected to the central processor 1101, the NFC module 1107 and the acceleration sensor 1108 respectively, and the power module 1106 is used to provide power for the central processor 1101, the NFC module 1107, the acceleration sensor 1108 and other components or modules, and the central processor 1101 is electrically connected to the NFC module 1107 and the acceleration sensor 1108 respectively, and the central processor 1101 communicates with the NFC chip 1107 and the acceleration sensor 1108 through the I2C or SPI bus, and matches the corresponding GPIO port control signal. The NFC module 1107 includes an NFC chip 11071, an RF matching circuit 11072 and a single NFC antenna 11073. The NFC antenna 11073 can be an independent coil antenna or a metal frame antenna.
[0138] When simulating the card used in NFC, the NFC signal sent by the external NFC device is coupled to the NFC antenna of the mobile phone, and then goes through RF matching to the RX path. There is a resistor on the RX path. The resistor and the resistor inside the NFC chip form a series voltage divider. The analog voltage obtained by the voltage divider is input to the analog-to-digital converter (ADC) for analog-to-digital conversion. After the digital voltage is obtained, it is provided to the central processing unit for processing. In order to prevent the ADC from being saturated, an adjustable resistor is used inside the NFC chip. When the external field is strong, the resistance value of the internal adjustable resistor is reduced, and vice versa, the resistance value of the adjustable resistor is increased.
[0139] Furthermore, the communication bus 1102 is used to implement connection and communication between these components.
[0140] The user interface 1103 may include a display screen (Display) and a camera (Camera), and the optional user interface 1103 may also include a standard wired interface and a wireless interface.
[0141] The network interface 1104 may optionally include a standard wired interface or a wireless interface (such as a WI-FI interface).
[0142] Among them, the processor 1101 may include one or more processing cores. The processor 1101 uses various interfaces and lines to connect various parts within the entire terminal 1100, and executes various functions and processes data of the terminal 1100 by running or executing instructions, programs, code sets or instruction sets stored in the memory 1105, and calling data stored in the memory 1105. Optionally, the processor 1101 can be implemented in at least one hardware form of digital signal processing (Digital Signal Processing, DSP), field programmable gate array (Field-Programmable Gate Array, FPGA), and programmable logic array (Programmable Logic Array, PLA). The processor 1101 can integrate one or a combination of a central processing unit (Central Processing Unit, CPU), a graphics processing unit (Graphics Processing Unit, GPU) and a modem. Among them, the CPU mainly processes the operating system, user interface and application programs; the GPU is responsible for rendering and drawing the content to be displayed on the display screen; the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 1101, and it can be implemented separately through a chip.
[0143] Among them, the memory 1105 may include a random access memory (Random Access Memory, RAM) and may also include a read-only memory (Read-Only Memory, ROM). Optionally, the memory 1105 includes a non-transitory computer-readable storage medium. The memory 1105 can be used to store instructions, programs, codes, code sets or instruction sets. The memory 1105 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the above-mentioned various method embodiments, etc.; the data storage area may store data involved in the above-mentioned various method embodiments, etc. The memory 1105 may also be optionally at least one storage device located away from the aforementioned processor 1101. As Fig.11 As shown, the memory 1105 as a computer storage medium may include an operating system, a network communication module, a user interface module, and an NFC usage boot program.
[0144] exist Fig.11 In the terminal 1100 shown, the user interface 1103 is mainly used to provide an input interface for the user and obtain data input by the user; and the processor 1101 can be used to call the NFC usage boot program stored in the memory 1105, and specifically perform the following operations:
[0145] Monitor the change in signal strength of the NFC signal in the moving direction;
[0146] When the signal strength change is greater than a preset change, the current acceleration of the terminal is obtained;
[0147] The guidance information is output according to the signal strength variation and the acceleration, and the guidance information is used to instruct the user to move the terminal in a direction to increase the signal strength of the NFC signal according to the guidance information.
[0148] In some embodiments, before monitoring the change in signal strength of the NFC signal in the moving direction, the processor 1101 further specifically performs the following steps: obtaining a first signal strength of the NFC signal, and if the first signal strength is less than a preset signal strength, determining a first signal strength interval to which the first signal strength belongs; and displaying first display information corresponding to the first signal strength interval, the first display information being used to display the relative size of the first signal strength.
[0149] In some embodiments, when the processor 1101 is executing to display the first display information corresponding to the first signal strength interval, it also specifically performs the following steps: determining the color corresponding to the first signal strength interval, and determining the number of lines corresponding to the first signal strength; determining the color and the number of lines as the first display information, and displaying the first display information.
[0150] In some embodiments, when the processor 1101 is executing to determine the number of lines corresponding to the first signal strength, it specifically performs the following steps: determine the first preset value and the second preset value corresponding to the first signal strength interval; calculate the quotient of the first signal strength and the first preset value, and calculate the product of the quotient and the second preset value; round the product and obtain a rounded value, and determine the rounded value as the number of lines corresponding to the first signal strength.
[0151] In some embodiments, when the processor 1101 outputs guidance information based on the change in signal strength and acceleration, it specifically performs the following steps: obtain the acceleration components of the acceleration on each coordinate axis of the three-dimensional coordinate system, and obtain the maximum acceleration component among the acceleration components; when the change in signal strength is a positive change, the coordinate axis direction corresponding to the maximum acceleration component is determined as the guidance information, and the guidance information is output; when the change in signal strength is a negative change, the opposite direction of the coordinate axis direction corresponding to the maximum acceleration component is determined as the guidance information, and the guidance information is output.
[0152] In some embodiments, when executing output of guidance information, the processor 1101 specifically performs the following steps: displaying a three-dimensional coordinate system in a display interface of the terminal, and displaying the guidance information in the three-dimensional coordinate system.
[0153] In some embodiments, after executing the output guidance information, the processor 1101 also specifically performs the following steps: obtaining the second signal strength of the NFC signal, and determining the second signal strength interval to which the second signal strength belongs; replacing the first display information with the second display information corresponding to the second signal strength interval for display; when the second signal strength is equal to or greater than the preset signal strength, the second display information is used to display the relative size of the second signal strength; when the second signal strength is less than the preset signal strength, the second display information is used to display the relative size of the second signal strength, and triggering the step of monitoring the change in the signal strength of the NFC signal in the moving direction.
[0154] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of modules is only a logical function division. There may be other division methods in actual implementation, such as multiple modules or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or modules, which can be electrical, mechanical or other forms.
[0155] In addition, each functional module in each embodiment of the present application can be integrated into a processing module, or each module can exist physically separately, or two or more modules can be integrated into one module. The above integrated modules can be implemented in the form of hardware or software functional modules.
[0156] If the integrated module is implemented in the form of a software function module and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art or all or part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the various embodiments of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory, a random access memory, a magnetic disk or an optical disk.
[0157] It should be noted that, for the above-mentioned method embodiments, for the sake of simplicity of description, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the described action sequence, because according to the present application, certain steps can be performed in other sequences or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present application.
[0158] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0159] The above is a description of an NFC usage guidance method, device, storage medium, and terminal provided in the present application. For technicians in this field, according to the ideas of the embodiments of the present application, there may be changes in the specific implementation methods and application scopes. In summary, the content of this specification should not be understood as limiting the present application.
Claims
1. A NFC usage guidance method, applied to a terminal, characterized in that: The method comprises: Acquire a first signal strength of an NFC signal, and if the first signal strength is less than a preset signal strength, determine a first signal strength interval to which the first signal strength belongs; Displaying first display information corresponding to the first signal strength interval, where the first display information is used to display a relative magnitude of the first signal strength; After the user moves the terminal according to the first display information, monitoring a change in the signal strength of the NFC signal in the moving direction; When the signal strength change is greater than a preset change, obtaining the current acceleration of the terminal; Obtaining acceleration components of the acceleration on each coordinate axis of the three-dimensional coordinate system, and obtaining a maximum acceleration component among the acceleration components; When the signal strength change is a positive change, determining the coordinate axis direction corresponding to the maximum acceleration component as guidance information, and outputting the guidance information; When the signal strength change is a negative change, the opposite direction of the coordinate axis direction corresponding to the maximum acceleration component is determined as guidance information, and the guidance information is output; the guidance information is used to instruct the user to move the terminal in a direction to increase the signal strength of the NFC signal according to the guidance information.
2. The method according to claim 1, characterized in that: The displaying of first display information corresponding to the first signal strength interval includes: Determine a color corresponding to the first signal strength interval, and determine the number of lines corresponding to the first signal strength; The color and the number of lines are determined as the first display information, and the first display information is displayed.
3. The method according to claim 2, characterized in that The determining the number of lines corresponding to the first signal strength includes: Determine a first preset value and a second preset value corresponding to the first signal strength interval; Calculate a quotient of the first signal strength and the first preset value, and calculate a product of the quotient and the second preset value; The product is rounded to obtain a rounded value, and the rounded value is determined as the number of lines corresponding to the first signal strength.
4. The method according to claim 1, characterized in that: The outputting the guidance information includes: The three-dimensional coordinate system is displayed in a display interface of the terminal, and the guidance information is displayed in the three-dimensional coordinate system.
5. The method according to claim 1, characterized in that After outputting the guide information, the method further includes: Acquire a second signal strength of the NFC signal, and determine a second signal strength interval to which the second signal strength belongs; replacing the first display information with second display information corresponding to the second signal strength interval for display; When the second signal strength is equal to or greater than the preset signal strength, the second display information is used to display the relative size of the second signal strength; When the second signal strength is less than the preset signal strength, the second display information is used to display the relative size of the second signal strength and trigger the step of monitoring the change in signal strength of the NFC signal in the moving direction.
6. An NFC usage guidance device, applied to a terminal, characterized in that: The device comprises: A signal strength acquisition module, configured to acquire a first signal strength of an NFC signal, and if the first signal strength is less than a preset signal strength, determine a first signal strength interval to which the first signal strength belongs; Displaying first display information corresponding to the first signal strength interval, where the first display information is used to display the relative magnitude of the first signal strength; after the user moves the terminal according to the first display information, monitoring the signal strength change of the NFC signal in the moving direction; An acceleration acquisition module, used for acquiring the current acceleration of the terminal when the signal strength change is greater than a preset change; A guidance information output module is used to obtain the acceleration components of the acceleration on each coordinate axis of the three-dimensional coordinate system, and obtain the maximum acceleration component among the acceleration components; when the signal strength change is a positive change, the coordinate axis direction corresponding to the maximum acceleration component is determined as the guidance information, and the guidance information is output; when the signal strength change is a negative change, the opposite direction of the coordinate axis direction corresponding to the maximum acceleration component is determined as the guidance information, and the guidance information is output; the guidance information is used to instruct the user to move the terminal in the direction of increasing the signal strength of the NFC signal according to the guidance information.
7. A computer storage medium, characterized in that: The computer storage medium stores a plurality of instructions, and the instructions are suitable for being loaded by a processor and executing the steps of the method according to any one of claims 1 to 5.
8. A terminal, characterized in that: The method comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the method according to any one of claims 1 to 5 when executing the program; The terminal also includes an NFC module and an acceleration sensor.
