Method of handling NFC device with non-fixed low power polling number and NFC device using the same
View Patent ↗A method of handling a near field communications (NFC) device includes setting a low power polling number, wherein the low power polling number is non-fixed; detecting whether any NFC device is nearby; performing low power polls until either at least one NFC device is detected or the number of low power polls reaches the low power polling number; performing a full power polling; and adjusting the low power polling number after the full power polling.
1. A method of handling a first near field communications (NFC) device, comprising:
setting a low power polling number, wherein the low power polling number is non-fixed;
detecting whether any second NFC device is within a communicable range of the first NFC device;
performing consecutive low power polls until either at least one second NFC device is detected or the number of consecutive low power polls reaches the low power polling number, and then performing a full power polling;
adjusting the low power polling number after the full power polling;
obtaining a maximum polling number to determine a maximum value of the low power polling number; and
decreasing the maximum polling number when an NFC application is activated.
2. The method of claim 1 , wherein the step of setting the low power polling number comprises:
randomly setting the low power polling number.
3. The method of claim 1 , wherein the step of adjusting the low power polling number comprises:
increasing the low power polling number when the full power polling detects no other second NFC device within the communicable range of the first NFC device.
4. The method of claim 1 , wherein the step of adjusting the low power polling number comprises:
decreasing the low power polling number when the full power polling detects a specific type of target second NFC device within the communicable range of the first NFC device.
5. The method of claim 1 , further comprising:
increasing a usage frequency of the full power polling when an NFC application is activated.
6. A first near field communications (NFC) device, comprising:
an NFC interface;
a polling number generator, for generating a low power polling number, wherein the low power polling number is non-fixed; and
an NFC controller, coupled to the NFC interface and the polling number generator, for performing the following steps:
detecting whether any second NFC device is within a communicable range of the first NFC device;
performing consecutive low power polls until either at least one second NFC device is detected or the number of consecutive low power polls reaches the low power polling number, and then performing a full power polling;
obtaining a maximum polling number to determine a maximum value of the low power polling number; and
decreasing the maximum polling number when an NFC application is activated;
wherein the polling number generator adjusts the low power polling number after the full power polling.
7. The first NFC device of claim 6 , wherein the polling number generator is a random number generator, for randomly setting the low power polling number.
8. The first NFC device of claim 6 , wherein the polling number generator increases the low power polling number when the full power polling detects no other second NFC device within the communicable range of the first NFC device.
9. The first NFC device of claim 6 , wherein the polling number generator decreases the low power polling number when the full power polling detects a specific type of target second NFC device within the communicable range of the first NFC device.
10. The first NFC device of claim 6 , wherein the NFC controller further performs the following step:
increasing a usage frequency of the full power polling when an NFC application is activated.