NFC card reading control method, device, wearable device and storage medium
By obtaining the number of continuous operations and cooling countdown in the smart wearable device, limiting the NFC card reading operation, the problem of excessive temperature of the wearable device is solved, and the user experience and device security are improved.
Patent Information
- Application Number
- CN202210249509.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-03-14
- Publication Date
- 2025-01-14
- Estimated Expiration
- 2042-03-14
AI Technical Summary
Existing smart wearable devices will cause excessive temperatures when performing NFC card reading operations, which can pose safety risks, and the device battery life will be short.
By obtaining the number of consecutive operations and the remaining time of the cooling countdown, the current cooling countdown is determined, and the NFC card reading operation of the wearable device is restricted to prevent continuous temperature accumulation.
It effectively limits the time interval of NFC card reading operation, reduces the device temperature, improves the user experience, and extends the service life of the device.
Smart Images

Figure CN114639194B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of device control technology, and in particular to an NFC card reading control method, device, wearable device and storage medium. Background Art
[0002] In recent years, the domestic smart bracelet and smart watch market has been unprecedentedly hot and is continuing to expand at a rapid pace. More and more consumers are beginning to shift their focus to smart wearables. At the same time, major smart device manufacturers are also doing their best to develop new functions on smart devices to meet the growing needs of consumers.
[0003] The NFC access card function plays a pivotal role in wearable products. It supports the management of multiple cards and has a small size, which has played a disruptive role in the market of physical access cards. More and more consumers are beginning to rely on wearable devices to complete the functions of access cards. However, compared with physical NFC access cards, the NFC function of wearable devices will generate temperature rise caused by high power consumption when simulating card reading, which poses a safety hazard to consumers who wear their cards close to their skin.
[0004] The above contents are only used to assist in understanding the technical solution of the present invention and do not constitute an admission that the above contents are prior art. Summary of the invention
[0005] The main purpose of the present invention is to provide an NFC card reading control method, device, wearable device and storage medium, aiming to solve the technical problem that the prior art cannot automatically prevent the wearable device from overheating due to continuous NFC card reading operations.
[0006] To achieve the above object, the present invention provides an NFC card reading control method, the method comprising the following steps:
[0007] When the NFC card reading operation of the wearable device fails, get the current number of consecutive operations;
[0008] When the current number of consecutive operations reaches the cooling threshold, the remaining background time of the previous cooling countdown is obtained;
[0009] Determine the current cooling countdown according to the current number of continuous operations and the remaining background time;
[0010] The wearable device is restricted from performing an NFC card reading operation according to the current cooling countdown.
[0011] Optionally, when the current number of consecutive operations reaches a cooling threshold, obtaining the background remaining time of the previous cooling countdown includes:
[0012] Comparing the current number of continuous operations with the cooling threshold to obtain a comparison result;
[0013] When the comparison result shows that the current number of continuous operations is greater than or equal to the cooling threshold, card reading is prohibited, a background timer is called to perform timing, and the timing reading is fed back;
[0014] The background remaining time is obtained according to the timing reading.
[0015] Optionally, determining the current cooling countdown according to the current number of continuous operations and the background remaining time includes:
[0016] Get the cooling calculation coefficient and cooling initial value;
[0017] Establishing a cooling protection model according to the cooling calculation coefficient and the cooling initial value;
[0018] The current cooling countdown is determined according to the background remaining time, the current number of continuous operations and the cooling protection model.
[0019] Optionally, establishing a cooling protection model according to the cooling calculation coefficient and the cooling initial value includes:
[0020] Determine a cooling time weighting parameter according to a remaining time parameter, the cooling calculation coefficient and the cooling initial value;
[0021] A cooling protection model is established according to the cooling time weighted parameter and the operation number parameter.
[0022] Optionally, after determining the current cooling countdown according to the current number of continuous operations and the background remaining time, the method further includes:
[0023] Comparing the current cooling countdown with the cooling countdown threshold, and determining that the first comparison result is a comparison failure when the current cooling countdown is greater than the cooling countdown threshold;
[0024] Comparing the current number of consecutive operations with a preset operation threshold, and determining that the second comparison result is a comparison failure when the current number of consecutive operations is greater than the preset operation threshold;
[0025] When at least one of the first comparison result and the second comparison result is a comparison failure, the wearable device is controlled to prohibit an NFC card reading operation within a preset cooling time interval.
[0026] Optionally, limiting the wearable device from performing an NFC card reading operation according to the current cooling countdown includes:
[0027] Modify the timing reading of the background timer according to the current cooling countdown;
[0028] Starting the countdown function of the background timer according to the timing reading, and recording the countdown reading;
[0029] When the countdown of the background timer has not ended, whenever an NFC card reading request is received, the NFC card reading request is rejected, and the countdown reading of the background timer is displayed to the user;
[0030] After the countdown of the background timer ends, whenever the NFC card reading request is received, the NFC card reading request is responded to and the user is allowed to perform the NFC card reading operation.
[0031] Optionally, after the countdown of the background timer ends, whenever the NFC card reading request is received, responding to the NFC card reading request and allowing the user to perform the NFC card reading operation, further comprising:
[0032] After the NFC card reading operation performed by the user is successful, the timing reading of the background timer is adjusted to a preset cooling value, and the current number of continuous operations is cleared.
[0033] In addition, to achieve the above object, the present invention also proposes an NFC card reading control device, the NFC card reading control device comprising:
[0034] The number acquisition module is used to obtain the current number of continuous operations when the NFC card reading operation of the wearable device fails;
[0035] A countdown acquisition module is used to acquire the background remaining time of the previous cooling countdown when the current number of continuous operations reaches the cooling threshold;
[0036] A cooling calculation module, used to determine the current cooling countdown according to the current number of continuous operations and the background remaining time;
[0037] The card reading control module is used to limit the wearable device to perform an NFC card reading operation according to the current cooling countdown.
[0038] In addition, to achieve the above-mentioned purpose, the present invention also proposes a wearable device, which includes: a memory, a processor, and an NFC card reading control program stored in the memory and executable on the processor, wherein the NFC card reading control program is configured to implement the steps of the NFC card reading control method described above.
[0039] In addition, to achieve the above objectives, the present invention further proposes a storage medium, on which an NFC card reading control program is stored, and when the NFC card reading control program is executed by a processor, the steps of the NFC card reading control method described above are implemented.
[0040] When the NFC card reading operation of the wearable device fails, the present invention obtains the current number of continuous operations; when the current number of continuous operations reaches the cooling threshold, the background remaining time of the last cooling countdown is obtained; the current cooling countdown is determined according to the current number of continuous operations and the background remaining time; and the wearable device is restricted from performing the NFC card reading operation according to the current cooling countdown. In this way, the current cooling countdown is determined by the current number of continuous operations of the user performing the NFC card reading operation and the background remaining time of the last cooling countdown, and then the wearable device is restricted from performing the NFC card reading operation according to the current cooling countdown. The time interval of the NFC card reading operation of the wearable device can be accurately restricted, thereby leaving a scientific time for cooling the device, which not only allows the user to have a better card reading experience, but also prevents the device from continuous temperature accumulation. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] Figure 1 It is a schematic diagram of the structure of a wearable device in a hardware operating environment involved in an embodiment of the present invention;
[0042] Figure 2 This is a flow chart of a first embodiment of an NFC card reading control method of the present invention;
[0043] Figure 3 This is a flow chart of a second embodiment of the NFC card reading control method of the present invention;
[0044] Figure 4 This is a structural block diagram of the first embodiment of the NFC card reading control device of the present invention.
[0045] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0046] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.
[0047] Reference Figure 1 , Figure 1 The figure is a schematic diagram of the structure of an NFC card reading control device in the hardware operating environment involved in the embodiment of the present invention.
[0048] like Figure 1As shown, the wearable device may include: a processor 1001, such as a central processing unit (CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Among them, the communication bus 1002 is used to realize the connection and communication between these components. The user interface 1003 may include a display screen (Display), an input unit such as a keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface and a wireless interface. The network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a wireless fidelity (Wireless-Fidelity, Wi-Fi) interface). The memory 1005 may be a high-speed random access memory (Random Access Memory, RAM) memory, or a stable non-volatile memory (Non-Volatile Memory, NVM), such as a disk memory. The memory 1005 may also be a storage device independent of the aforementioned processor 1001.
[0049] Those skilled in the art will understand that Figure 1 The structure shown in the figure does not constitute a limitation on the wearable device, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.
[0050] like Figure 1 As shown, the memory 1005 as a storage medium may include an operating system, a network communication module, a user interface module, and an NFC card reading control program.
[0051] exist Figure 1 In the wearable device shown, the network interface 1004 is mainly used for data communication with the network server; the user interface 1003 is mainly used for data interaction with the user; the processor 1001 and the memory 1005 in the wearable device of the present invention can be set in the wearable device, and the wearable device calls the NFC card reading control program stored in the memory 1005 through the processor 1001, and executes the NFC card reading control method provided in the embodiment of the present invention.
[0052] The embodiment of the present invention provides an NFC card reading control method, referring to Figure 2 , Figure 2 The figure is a flow chart of a first embodiment of an NFC card reading control method of the present invention.
[0053] In this embodiment, the NFC card reading control method includes the following steps:
[0054] Step S10: When the NFC card reading operation of the wearable device fails, the current number of consecutive operations is obtained.
[0055] It should be noted that the executor of this embodiment is a wearable device, including but not limited to a smart watch, a smart bracelet, or other smart wearable devices that can implement this function, and this embodiment does not limit this.
[0056] It should be understood that current smart wearable devices can support the function of simulating NFC access control cards, so that users can use the smart wearable devices they carry with them to swipe NFC simulated access control cards. However, this function consumes a lot of power. Continuous card reading will shorten the battery life of the wearable device and increase the temperature, which may endanger the safety of the user. This solution determines the current cooling countdown by the current number of consecutive operations of the user performing NFC card reading operations and the remaining background time of the last cooling countdown, and then limits the wearable device to perform NFC card reading operations based on the current cooling countdown. This can accurately limit the time interval of the wearable device's NFC card reading operations, thereby leaving a scientific time to cool the device, allowing users to have a better card reading experience and preventing the device from continuous temperature accumulation.
[0057] It should be noted that NFC refers to near-field communication technology, which enables mobile devices to exchange data when they are close to each other, thereby realizing functions such as mobile payment, electronic ticketing, access control, mobile identity recognition, and anti-counterfeiting.
[0058] In a specific implementation, when the NFC card reading operation of the wearable device fails, obtaining the current number of continuous operations means: when the user simulates the NFC card reading operation through the wearable device and the card reading fails, the number of times the NFC card reading has been performed continuously through the wearable device stored in the background is obtained as the current number of continuous operations. Wherein, each time the user performs the NFC card reading operation through the wearable device and fails, the current number of continuous operations is cumulatively increased by 1, and each time the NFC card reading operation is successful, the current number of continuous operations is reset to zero. Wherein, the failure of the NFC card reading operation of the wearable device may be NFC verification failure, or failure to complete the scan after the wearable device simulates the NFC function, or other failure reasons, which are not limited in this embodiment.
[0059] Step S20: When the current number of consecutive operations reaches the cooling threshold, the remaining background time of the previous cooling countdown is obtained.
[0060] It should be noted that the cooling threshold is pre-set by the user and is used to compare with the current number of continuous operations to determine whether it is necessary to obtain the parameters of the background remaining time of the previous cooling countdown. The cooling threshold can be any positive integer value, and this embodiment does not limit this.
[0061] It should be understood that the background remaining time of the last cooling countdown refers to: when the last card reading operation fails, the wearable device will count down in the background, and the start time of the countdown is the current cooling countdown obtained by the last calculation, and the background remaining time of the last cooling countdown refers to the countdown calculation of the current cooling countdown calculated last time, until the current number of consecutive operations of the NFC card reading operation of the wearable device reaches the cooling threshold, the remaining time reading of the timer is the background remaining time.
[0062] Furthermore, in order to accurately obtain the remaining background time, step S20 includes: comparing the current number of continuous operations with the cooling threshold to obtain a comparison result; when the comparison result is that the current number of continuous operations is greater than or equal to the cooling threshold, prohibiting card reading, calling the background timer for timing, and feeding back the timing reading; obtaining the remaining background time according to the timing reading.
[0063] In a specific implementation, comparing the current number of consecutive operations with the cooling threshold to obtain a comparison result means: comparing the value of the current number of consecutive operations with the value of the cooling threshold to obtain a final comparison result.
[0064] It should be noted that, when the comparison result is that the current number of continuous operations is greater than or equal to the cooling threshold, card reading is prohibited, the background timer is called for timing, and the timing reading is fed back, which means: when the comparison result is that the value of the current number of continuous operations is greater than or equal to the cooling threshold, the wearable device is prohibited from performing NFC card reading operations, and the timing reading of the background timer of the wearable device is called.
[0065] It should be understood that obtaining the background remaining time according to the timing reading means: according to the timing reading, combined with the cooling countdown of the last NFC card reading operation, the time remaining before the end of the cooling countdown of the last NFC card reading operation can be obtained, which is the background remaining time.
[0066] In this way, when the current number of continuous operations reaches the number set by the user, the timing reading of the background timer is retrieved to calculate the remaining background time, making the calculation of the current cooling countdown that the user needs to wait more accurate.
[0067] Step S30: determining the current cooling countdown according to the current number of continuous operations and the background remaining time.
[0068] In a specific implementation, determining the current cooling countdown based on the current number of continuous operations and the remaining background time means determining a cooling calculation formula based on the number of continuous operations and the remaining background time, and then establishing a cooling protection model based on the cooling calculation formula, thereby calculating the current cooling countdown based on the cooling protection model.
[0069] Furthermore, in order to control the temperature of the wearable device through the number of operations and the cooling time, step S30 includes: comparing the current cooling countdown with the cooling countdown threshold, and when the current cooling countdown is greater than the cooling countdown threshold, determining the first comparison result to be a comparison failure; comparing the current number of continuous operations with the preset operation threshold, and when the current number of continuous operations is greater than the preset operation threshold, determining the second comparison result to be a comparison failure; when at least one of the first comparison result and the second comparison result is a comparison failure, controlling the wearable device to prohibit NFC card reading operations within the preset cooling time interval.
[0070] It should be noted that comparing the current cooling countdown with the cooling countdown threshold, and when the current cooling countdown is greater than the cooling countdown threshold, determining that the first comparison result is a comparison failure means: comparing the current cooling countdown with the cooling countdown threshold preset by the user, if the current cooling countdown is greater than the cooling countdown threshold, determining that the first comparison result is a comparison failure, otherwise it is a comparison success. For example: when the current cooling countdown is 130s and the cooling countdown threshold is 120s, the first comparison result is a comparison failure.
[0071] It should be understood that comparing the current number of continuous operations with the preset operation threshold, and determining the second comparison result as comparison failure when the current number of continuous operations is greater than the preset operation threshold means: comparing the current number of continuous operations with the preset operation threshold preset by the user, and if the current number of continuous operations is greater than the preset operation threshold, determining the first comparison result as comparison failure, otherwise the comparison is successful. For example: when the current number of continuous operations is 5 times and the preset operation threshold is 4 times, the first comparison result is comparison failure.
[0072] In a specific implementation, when at least one of the first comparison result and the second comparison result is a comparison failure, controlling the wearable device to prohibit the NFC card reading operation within the preset cooling time interval means: when any one or both of the first comparison result and the second comparison result are comparison failures, controlling the wearable device to not allow the NFC card reading operation within the preset cooling time interval.
[0073] It should be noted that the cooling countdown threshold and the preset operation threshold are specific values that can be set by the user. The cooling countdown threshold can be any value greater than zero, and the preset operation threshold can be any integer greater than zero. The preset cooling time interval is a time interval pre-set by the user, which can be 5 minutes, 10 minutes or half an hour, etc., and can be a time interval of any length, which is not limited in this embodiment.
[0074] In this way, when the user's continuous operation times exceed the limit or the current cooling countdown time is too long, the cooling time is set to a preset maximum value. This can prevent the user from waiting too long and prevent the device temperature from being too high due to excessive continuous operations, thereby improving the user experience.
[0075] Step S40: restricting the wearable device from performing an NFC card reading operation according to the current cooling countdown.
[0076] It should be noted that limiting the wearable device to perform an NFC card reading operation according to the current cooling countdown means: reading the countdown function of the background timer according to the current cooling countdown, and then controlling whether the wearable device can perform the NFC card reading operation based on the size of the reading and whether it is ended.
[0077] Furthermore, in order to accurately control the NFC card reading operation of the wearable device, step S40 includes: modifying the timing reading of the background timer according to the current cooling countdown; starting the countdown function of the background timer according to the timing reading, and recording the countdown reading; before the countdown of the background timer is over, whenever an NFC card reading request is received, rejecting the NFC card reading request and displaying the countdown reading of the background timer to the user; after the countdown of the background timer is over, whenever the NFC card reading request is received, responding to the NFC card reading request and allowing the user to perform the NFC card reading operation.
[0078] It should be understood that modifying the timing reading of the background timer according to the current cooling countdown refers to: changing the timing reading of the background timer to the time of the current cooling countdown.
[0079] In a specific implementation, starting the countdown function of the background timer according to the timing reading and recording the countdown reading means: setting the starting reading of the countdown function of the background timer as the timing reading, then starting the countdown, and then recording the countdown reading in real time.
[0080] It should be noted that, when the countdown of the background timer has not ended, whenever an NFC card reading request is received, the NFC card reading request is rejected, and the countdown reading of the background timer is displayed to the user. This means: if an NFC card reading request is received during the time period when the countdown of the background timer has not ended, that is, when the user wants to simulate an NFC card reading operation through a wearable device, the user's NFC card reading request is rejected, the NFC card reading operation is not allowed, and then the countdown reading of the background timer is displayed to the user.
[0081] It should be understood that after the countdown of the background timer ends, whenever the NFC card reading request is received, responding to the NFC card reading request and allowing the user to perform the NFC card reading operation means: after the countdown of the background timer ends, that is, after the countdown reads 0, when the NFC card reading request is received, the user is allowed to perform the NFC card reading operation.
[0082] In this way, the countdown function of the background timer can be used to accurately limit the NFC card reading operation of the wearable device according to the current cooling countdown, so that the cooling time can be scientifically specified, which not only allows users to have a better card reading experience, but also prevents the device from continuous temperature accumulation.
[0083] Furthermore, in order to be able to accurately control the current cooling countdown in each NFC card reading operation, after the countdown of the background timer is over, each time the NFC card reading request is received, responding to the NFC card reading request and allowing the user to perform the NFC card reading operation, it also includes: after the NFC card reading operation performed by the user is successful, adjusting the timing reading of the background timer to a preset cooling value, and clearing the current number of continuous operations.
[0084] In a specific implementation, after the NFC card reading operation performed by the user is successful, the timing reading of the background timer is adjusted to a preset cooling value, and the current number of continuous operations is cleared to zero, which means that after the user performs a successful NFC card reading operation, the timing value of the background timer is reset to the preset cooling value, and then the cumulative number of the current number of continuous operations is reset to zero, that is, the next time the user performs an NFC card reading operation, the current number of continuous operations is recorded as 1. The preset cooling value is a value greater than zero set by the user in advance, and can be any value, which is not limited in this embodiment.
[0085] In this way, each time a user successfully performs an NFC card reading operation, the timing reading of the background timer and the current number of consecutive operations are reset, making it more convenient and quick to calculate the cooling countdown for the user's next failed card reading operation.
[0086] This embodiment obtains the current number of consecutive operations when the NFC card reading operation of the wearable device fails; when the current number of consecutive operations reaches the cooling threshold, obtains the remaining background time of the previous cooling countdown; determines the current cooling countdown based on the current number of consecutive operations and the remaining background time; and limits the wearable device from performing NFC card reading operations based on the current cooling countdown. In this way, the current cooling countdown is determined based on the current number of consecutive operations of the user performing NFC card reading operations and the remaining background time of the previous cooling countdown, and then the wearable device is limited from performing NFC card reading operations based on the current cooling countdown. The time interval of the NFC card reading operation of the wearable device can be accurately limited, thereby leaving a scientific time for cooling the device, which not only allows users to have a better card reading experience, but also prevents the device from continuous temperature accumulation.
[0087] refer to Figure 3 , Figure 3 The figure is a flow chart of a second embodiment of an NFC card reading control method of the present invention.
[0088] Based on the first embodiment above, the NFC card reading control method of this embodiment includes in step S30:
[0089] Step S301: Obtain cooling calculation coefficient and cooling initial value.
[0090] It should be noted that the cooling calculation coefficient is a parameter preset by the user for calculating the weighted weight of the remaining cooling time, which is generally 0.6.
[0091] It should be understood that the cooling initial value refers to the minimum cooling interval time set by the user after each NFC card reading operation fails. For example, when the cooling initial value is 5s, after a user performs a failed NFC card reading operation, the next NFC card reading operation can be performed 5s later.
[0092] Step S302: establishing a cooling protection model according to the cooling calculation coefficient and the cooling initial value.
[0093] In a specific implementation, establishing a cooling protection model according to the cooling calculation coefficient and the cooling initial value refers to determining a cooling calculation formula according to the cooling calculation coefficient and the cooling initial value, thereby obtaining a cooling protection model according to the cooling calculation formula.
[0094] Furthermore, in order to accurately determine a scientific cooling protection model, step S302 includes: determining a cooling time weighted parameter according to a remaining time parameter, the cooling calculation coefficient and the cooling initial value; and establishing a cooling protection model according to the cooling time weighted parameter and an operation number parameter.
[0095] It should be noted that the remaining time parameter refers to a parameter used to represent the background remaining time. In actual calculations, the background remaining time will be substituted into the position of the remaining time parameter.
[0096] It should be understood that the calculation formula for the cooling time weighted parameter in determining the cooling time weighted parameter according to the remaining time parameter, the cooling calculation coefficient and the cooling initial value is:
[0097] G = Q·a+b;
[0098] Among them, G is the cooling time weighted parameter, Q is the remaining time parameter, a is the cooling calculation coefficient, and b is the cooling initial value.
[0099] In a specific implementation, establishing a cooling protection model according to the cooling time weighted parameter and the operation number parameter means: determining a cooling calculation formula according to the cooling time weighted parameter and the operation number parameter as follows:
[0100] T = G·P;
[0101] Wherein, T is the current cooling countdown, G is the cooling time weighting parameter, and P is the operation number parameter. Wherein, the operation number parameter is a parameter used to represent the current number of continuous operations. In actual calculation, the current number of continuous operations will be substituted into the position of the operation number parameter.
[0102] It should be noted that a cooling and thermal protection model is established based on the cooling calculation formula: after the cooling calculation formula is obtained, the cooling calculation formula is used as the calculation basis of the cooling and thermal protection model. After the current number of continuous operations and the remaining background time are input, the current cooling countdown can be output through the cooling calculation formula in the cooling and thermal protection model.
[0103] In this way, a cooling protection model is established through a cooling calculation formula, which can more quickly and conveniently calculate the current cooling countdown corresponding to each NFC card reading operation failure.
[0104] Step S303: determining the current cooling countdown according to the background remaining time, the current number of continuous operations and the cooling protection model.
[0105] It should be understood that determining the current cooling countdown based on the background remaining time, the current number of continuous operations and the cooling protection model means: substituting the background remaining time and the number of continuous operations into the cooling calculation formula in the cooling protection model, substituting the background remaining time into the position of the remaining time parameter, and substituting the current number of continuous operations into the position of the operation number parameter, thereby outputting the current cooling countdown through the cooling protection model.
[0106] This embodiment obtains the cooling calculation coefficient and the cooling initial value; establishes a cooling protection model according to the cooling calculation coefficient and the cooling initial value; and determines the current cooling countdown according to the background remaining time, the current number of continuous operations and the cooling protection model. In this way, it is realized that the cooling protection model is established through the cooling calculation coefficient and the cooling initial value, and then the current cooling countdown is calculated through the cooling protection model, making the calculation of the current cooling countdown more scientific, convenient and quick.
[0107] In addition, an embodiment of the present invention further provides a storage medium, on which an NFC card reading control program is stored. When the NFC card reading control program is executed by a processor, the steps of the NFC card reading control method described above are implemented.
[0108] Since the storage medium adopts all the technical solutions of all the above embodiments, it has at least all the beneficial effects brought by the technical solutions of the above embodiments, which will not be described one by one here.
[0109] Reference Figure 4 , Figure 4 This is a structural block diagram of the first embodiment of the NFC card reading control device of the present invention.
[0110] like Figure 4 As shown, the NFC card reading control device proposed in the embodiment of the present invention includes:
[0111] The number acquisition module 10 is used to obtain the current number of continuous operations when the NFC card reading operation of the wearable device fails.
[0112] The countdown acquisition module 20 is used to acquire the background remaining time of the previous cooling countdown when the current number of continuous operations reaches the cooling threshold.
[0113] The cooling calculation module 30 is used to determine the current cooling countdown according to the current number of continuous operations and the background remaining time.
[0114] The card reading control module 40 is used to limit the wearable device to perform an NFC card reading operation according to the current cooling countdown.
[0115] This embodiment obtains the current number of consecutive operations when the NFC card reading operation of the wearable device fails; when the current number of consecutive operations reaches the cooling threshold, obtains the remaining background time of the previous cooling countdown; determines the current cooling countdown based on the current number of consecutive operations and the remaining background time; and limits the wearable device from performing NFC card reading operations based on the current cooling countdown. In this way, the current cooling countdown is determined based on the current number of consecutive operations of the user performing NFC card reading operations and the remaining background time of the previous cooling countdown, and then the wearable device is limited from performing NFC card reading operations based on the current cooling countdown. The time interval of the NFC card reading operation of the wearable device can be accurately limited, thereby leaving a scientific time for cooling the device, which not only allows users to have a better card reading experience, but also prevents the device from continuous temperature accumulation.
[0116] In one embodiment, the countdown acquisition module 20 is also used to compare the current number of continuous operations with the cooling threshold to obtain a comparison result; when the comparison result is that the current number of continuous operations is greater than or equal to the cooling threshold, card reading is prohibited, the background timer is called for timing, and the timing reading is fed back; the background remaining time is obtained according to the timing reading.
[0117] In one embodiment, the cooling calculation module 30 is also used to obtain a cooling calculation coefficient and a cooling initial value; establish a cooling protection model based on the cooling calculation coefficient and the cooling initial value; determine the current cooling countdown based on the background remaining time, the current number of continuous operations and the cooling protection model.
[0118] In one embodiment, the cooling calculation module 30 is further used to determine a cooling time weighted parameter according to a remaining time parameter, the cooling calculation coefficient and the cooling initial value; and to establish a cooling protection model according to the cooling time weighted parameter and an operation number parameter.
[0119] In one embodiment, the cooling calculation module 30 is further used to compare the current cooling countdown with the cooling countdown threshold, and when the current cooling countdown is greater than the cooling countdown threshold, determine the first comparison result as a comparison failure; compare the current number of continuous operations with a preset operation threshold, and when the current number of continuous operations is greater than the preset operation threshold, determine the second comparison result as a comparison failure; when at least one of the first comparison result and the second comparison result is a comparison failure, control the wearable device to prohibit NFC card reading operations within a preset cooling time interval.
[0120] In one embodiment, the card reading control module 40 is also used to modify the timing reading of the background timer according to the current cooling countdown; start the countdown function of the background timer according to the timing reading, and record the countdown reading; before the countdown of the background timer ends, whenever an NFC card reading request is received, reject the NFC card reading request and display the countdown reading of the background timer to the user; after the countdown of the background timer ends, whenever the NFC card reading request is received, respond to the NFC card reading request and allow the user to perform the NFC card reading operation.
[0121] In one embodiment, the card reading control module 40 is further configured to adjust the timing reading of the background timer to a preset cooling value and clear the current number of continuous operations after the NFC card reading operation performed by the user is successful.
[0122] It should be understood that the above is only an example and does not constitute any limitation on the technical solution of the present invention. In specific applications, technicians in this field can make settings as needed, and the present invention does not limit this.
[0123] Since the present device adopts all the technical solutions of all the above embodiments, it has at least all the beneficial effects brought by the technical solutions of the above embodiments, which will not be described one by one here.
[0124] It should be noted that the workflow described above is merely illustrative and does not limit the scope of protection of the present invention. In practical applications, technicians in this field can select part or all of them according to actual needs to achieve the purpose of the present embodiment, and no limitation is made here.
[0125] In addition, for technical details not fully described in this embodiment, reference may be made to the NFC card reading control method provided in any embodiment of the present invention, and will not be repeated here.
[0126] In addition, it should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or system including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or system. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or system including the element.
[0127] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.
[0128] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as a read-only memory (ROM) / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present invention.
[0129] The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.
Claims
1. A NFC card reading control method, characterized in that: The NFC card reading control method comprises: When the NFC card reading operation of the wearable device fails, obtain the current number of consecutive operations; When the current number of consecutive operations reaches the cooling threshold, the remaining background time of the previous cooling countdown is obtained; Determine the current cooling countdown according to the current number of continuous operations and the remaining background time; Limiting the wearable device from performing an NFC card reading operation according to the current cooling countdown; The determining the current cooling countdown according to the current number of continuous operations and the background remaining time includes: Get the cooling calculation coefficient and cooling initial value; Establishing a cooling protection model according to the cooling calculation coefficient and the cooling initial value; The current cooling countdown is determined according to the background remaining time, the current number of continuous operations and the cooling protection model.
2. The method according to claim 1, characterized in that When the current number of consecutive operations reaches the cooling threshold, the remaining background time of the previous cooling countdown is obtained, including: Comparing the current number of continuous operations with the cooling threshold to obtain a comparison result; When the comparison result shows that the current number of continuous operations is greater than or equal to the cooling threshold, card reading is prohibited, a background timer is called to perform timing, and the timing reading is fed back; The background remaining time is obtained according to the timing reading.
3. The method according to claim 1, characterized in that The step of establishing a cooling protection model according to the cooling calculation coefficient and the cooling initial value includes: Determine a cooling time weighting parameter according to a remaining time parameter, the cooling calculation coefficient and the cooling initial value; A cooling protection model is established according to the cooling time weighted parameter and the operation number parameter.
4. The method according to claim 1, characterized in that After determining the current cooling countdown according to the current number of continuous operations and the background remaining time, the method further includes: Comparing the current cooling countdown with the cooling countdown threshold, and determining that the first comparison result is a comparison failure when the current cooling countdown is greater than the cooling countdown threshold; Comparing the current number of consecutive operations with a preset operation threshold, and determining that the second comparison result is a comparison failure when the current number of consecutive operations is greater than the preset operation threshold; When at least one of the first comparison result and the second comparison result is a comparison failure, the wearable device is controlled to prohibit an NFC card reading operation within a preset cooling time interval.
5. The method according to claim 1, characterized in that The limiting the wearable device to perform an NFC card reading operation according to the current cooling countdown includes: Modify the timing reading of the background timer according to the current cooling countdown; Starting the countdown function of the background timer according to the timing reading, and recording the countdown reading; When the countdown of the background timer has not ended, whenever an NFC card reading request is received, the NFC card reading request is rejected, and the countdown reading of the background timer is displayed to the user; After the countdown of the background timer ends, whenever the NFC card reading request is received, the NFC card reading request is responded to and the user is allowed to perform the NFC card reading operation.
6. The method according to claim 5, characterized in that After the countdown of the background timer ends, whenever the NFC card reading request is received, responding to the NFC card reading request and allowing the user to perform the NFC card reading operation, the method further includes: After the NFC card reading operation performed by the user is successful, the timing reading of the background timer is adjusted to a preset cooling value, and the current number of continuous operations is cleared.
7. An NFC card reading control device, characterized in that: The NFC card reading control device comprises: The number acquisition module is used to obtain the current number of continuous operations when the NFC card reading operation of the wearable device fails; A countdown acquisition module is used to acquire the background remaining time of the previous cooling countdown when the current number of continuous operations reaches the cooling threshold; A cooling calculation module, used to determine the current cooling countdown according to the current number of continuous operations and the background remaining time; A card reading control module, used for limiting the wearable device to perform an NFC card reading operation according to the current cooling countdown; The cooling calculation module is also used to obtain a cooling calculation coefficient and a cooling initial value; establish a cooling protection model based on the cooling calculation coefficient and the cooling initial value; and determine the current cooling countdown based on the background remaining time, the current number of continuous operations and the cooling protection model.
8. A wearable device, characterized in that: The device comprises: a memory, a processor, and an NFC card reading control program stored in the memory and executable on the processor, wherein the NFC card reading control program is configured to implement the NFC card reading control method according to any one of claims 1 to 6.
9. A storage medium, characterized in that: The storage medium stores an NFC card reading control program, and when the NFC card reading control program is executed by the processor, the NFC card reading control method according to any one of claims 1 to 6 is implemented.
Citation Information
Patent Citations
Control method and device of wearable device and computer readable storage medium
CN110167116A
Vehicle owner identity recognition system and method and vehicle
CN112622820A