Method for controlling NFC function, wearable device and computer program product

By acquiring target business requests and user operations from wearable devices, the NFC card reading function is automatically enabled. By optimizing power management using Bluetooth connectivity and scanning functions, the problem of increased power consumption from the NFC card reading function is solved, resulting in longer battery life and a better user experience.

CN122340586APending Publication Date: 2026-07-03HUAWEI TECH CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
HUAWEI TECH CO LTD
Filing Date
2025-01-02
Publication Date
2026-07-03

AI Technical Summary

Technical Problem

Wearable devices consume significantly more power and have reduced battery life when NFC card reading is enabled.

Method used

By acquiring the target service requests from the terminal device and the user's preset operations, the NFC card reading function is automatically enabled. Bluetooth connection and scanning functions are used to reduce power consumption, optimize the timing of NFC card reading function usage, and promptly disable invalid functions.

Benefits of technology

It reduces the power consumption of wearable devices, improves battery life, and enhances the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122340586A_ABST
    Figure CN122340586A_ABST
Patent Text Reader

Abstract

This application relates to the field of terminal technology, and in particular to a control method for NFC functionality, wearable devices, and computer program products. In this method, the wearable device can disable NFC card reading by default. Instead, upon receiving a target service request from a first terminal device and a preset operation from the user, the wearable device automatically enables its NFC card reading function. This allows it to read the first information of the NFC tag in the first terminal device to interact with the first terminal device for the target service. This not only reduces the power consumption of the wearable device and improves its battery life, but also offers simple and convenient operation, enhancing the user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application belongs to the field of terminal technology, and in particular relates to control methods, wearable devices and computer program products for NFC function. Background Technology

[0002] Currently, wearable devices generally have Near Field Communication (NFC) functionality. NFC functionality can include NFC card emulation and NFC card reading. NFC card emulation allows wearable devices to simulate transportation cards, access cards, or bank cards for other NFC devices to read. NFC card reading allows wearable devices to read information from other NFC tags or cards. When the NFC card reading function is enabled, the wearable device needs to frequently emit radio frequency signals to detect surrounding NFC tags or cards, which significantly increases the power consumption and reduces the device's battery life. Summary of the Invention

[0003] This application provides a control method for NFC function, a wearable device, and a computer program product, which can solve the problem in the prior art that enabling the NFC card reading function of a wearable device greatly increases the power consumption of the wearable device and reduces its battery life.

[0004] In a first aspect, embodiments of this application provide a method for controlling NFC functionality, applied to wearable devices, the method comprising:

[0005] Obtain a target service request from a first terminal device; the target service request is used to request interaction for a target service, and the first terminal device includes an NFC tag for near-field communication.

[0006] Preset detection operation;

[0007] In response to the target service request and the preset operation, the NFC card reading function of the wearable device is enabled;

[0008] Read the first information of the NFC tag, and interact with the first terminal device to perform the target service based on the first information.

[0009] In the NFC function control method provided above, the wearable device can disable the NFC card reading function by default. Instead, it can automatically enable the NFC card reading function when it receives the target service request from the first terminal device and the user's preset operation. This allows it to read the first information of the NFC tag in the first terminal device and interact with the first terminal device for the target service based on the first information. This not only reduces the power consumption of the wearable device and improves its battery life, but also makes the operation simple and convenient, thus improving the user experience.

[0010] For example, the first terminal device can be a terminal device that supports Bluetooth functionality. The first terminal device can send a target service request via Bluetooth broadcast. That is, when the first terminal device requests interaction for a target service, it can broadcast a Bluetooth broadcast to send the target service request. When the first terminal device broadcasts a Bluetooth broadcast, terminal devices in the vicinity of the first terminal device that have Bluetooth scanning enabled can receive the Bluetooth broadcast and determine the target service request of the first terminal device based on the Bluetooth broadcast.

[0011] In some embodiments, obtaining the target service request of the first terminal device includes:

[0012] The target service request of the first terminal device is obtained through the second terminal device.

[0013] In the NFC function control method provided in this embodiment, the wearable device can communicate with a second terminal device that supports Bluetooth scanning. When the wearable device and the second terminal device are communicating, the second terminal device can enable Bluetooth scanning, while the wearable device can disable Bluetooth scanning. The wearable device can obtain Bluetooth broadcasts from the first terminal device through the Bluetooth scanning function of the second terminal device, thereby obtaining the target service request from the first terminal device. This can reduce the power consumption of the wearable device and improve its battery life.

[0014] In one embodiment, the wearable device and the second terminal device are connected via Bluetooth; obtaining the target service request from the first terminal device through the second terminal device includes:

[0015] The target service request of the first terminal device is obtained from the second terminal device via Bluetooth connection.

[0016] In the NFC function control method provided in this embodiment, the wearable device can connect to the second terminal device via Bluetooth. After the second terminal device obtains the target service request of the first terminal device, the second terminal device can send the target service request of the first terminal device to the wearable device via Bluetooth. This allows the wearable device to quickly obtain the target service request of the first terminal device even without enabling the Bluetooth scanning function. As a result, the NFC card reading function can be enabled based on the target service request and the user's preset operation to interact with the first terminal device for the target service.

[0017] In one embodiment, when the wearable device is connected to the second terminal device, the wearable device does not enable Bluetooth scanning.

[0018] In the NFC function control method provided in this embodiment, when the wearable device obtains the target service request of the first terminal device through the second terminal device, the wearable device may not enable the Bluetooth scanning function to reduce the power consumption of the Bluetooth scanning function, thereby reducing the power consumption of the wearable device and improving the battery life of the wearable device.

[0019] In other embodiments, before obtaining the target service request of the first terminal device, the method further includes:

[0020] In response to the detection that the first duration of the disconnection between the second terminal device and the wearable device is greater than or equal to a first preset duration, the Bluetooth scanning function of the wearable device is enabled.

[0021] In one embodiment, obtaining the target service request of the first terminal device includes:

[0022] After enabling the Bluetooth scanning function of the wearable device, the Bluetooth broadcast sent by the first terminal device is obtained;

[0023] Based on the Bluetooth broadcast, the target service request of the first terminal device is obtained.

[0024] In the NFC function control method provided in this embodiment, when the first duration of disconnection between the wearable device and the second terminal device is greater than or equal to the first preset duration, the wearable device can automatically activate its Bluetooth scanning function to obtain surrounding Bluetooth broadcasts, such as those sent by the first terminal device. It can then determine the target service request of the first terminal device based on the Bluetooth broadcast sent by the first terminal device. This allows the wearable device to obtain the target service request of the first terminal device even when disconnected from the second terminal device, and to activate its NFC card reading function according to the user's preset operation. This allows it to read the first information of the NFC tag in the first terminal device, thereby enabling interaction with the first terminal device for the target service based on the first information.

[0025] In one possible implementation, to reduce the accidental activation of the NFC card reading function, thereby reducing the power consumption of the wearable device and improving its battery life, after obtaining the target service request from the first terminal device, the wearable device can determine the valid time corresponding to the target service request, and can determine whether to enable the NFC card reading function of the wearable device based on the time of detecting the preset operation and the valid time corresponding to the target service request.

[0026] For example, when the time of the preset operation is detected to be within the valid time corresponding to the target service request (i.e., when the preset operation is detected and the target service request is still within the valid time), the wearable device can determine that the user wants to enable the wearable device's NFC card reading function. In this case, the wearable device can enable the wearable device's NFC card reading function. However, when the time of the preset operation is detected to be outside the valid time corresponding to the target service request (i.e., when the preset operation is detected and the target service request is no longer within the valid time), the wearable device can consider that the preset operation is not for enabling the wearable device's NFC card reading function. In this case, the wearable device can choose not to respond to the target service request and the preset operation, thus avoiding accidental activation of the wearable device's NFC card reading function.

[0027] In some embodiments, after enabling the Bluetooth scanning function of the wearable device, the method further includes:

[0028] In response to the wearable device connecting to the second terminal device, the Bluetooth scanning function of the wearable device is turned off.

[0029] In the NFC function control method provided in this embodiment, when the wearable device reconnects with the second terminal device, the wearable device can obtain the target service request through the Bluetooth scanning function of the second terminal device. That is, it is not necessary to obtain the target service request through the Bluetooth scanning function of the wearable device. At this time, the wearable device can automatically turn off the Bluetooth scanning function to reduce the power consumption of the Bluetooth scanning function, thereby reducing the power consumption of the wearable device and improving the battery life of the wearable device.

[0030] In some embodiments, after enabling the NFC card reader function of the wearable device, the method further includes:

[0031] In response to the completion of the target service by the wearable device and the first terminal device, the NFC card reading function of the wearable device is turned off.

[0032] In the NFC function control method provided in this embodiment, when it is determined that the wearable device and the first terminal device have completed the target business, the wearable device can turn off the NFC card reading function in time to reduce the power consumption of the NFC card reading function, thereby reducing the power consumption of the wearable device and improving the battery life of the wearable device.

[0033] In other embodiments, after enabling the NFC card reader function of the wearable device, the method further includes:

[0034] Obtain the second duration, which is the duration during which the wearable device enables the NFC card reading function;

[0035] When the second duration is greater than or equal to the second preset duration, the NFC card reading function of the wearable device is turned off.

[0036] In the NFC function control method provided in this embodiment, after enabling the NFC card reading function of the wearable device, the wearable device can record the duration of the NFC card reading function being enabled (i.e., the second duration). When the duration of the NFC card reading function being enabled is greater than or equal to a preset duration A (i.e., the second preset duration), the wearable device can disable the NFC card reading function to avoid enabling the NFC card reading function for a long time, thereby increasing the power consumption of the wearable device and improving its battery life.

[0037] For example, after enabling the NFC card reading function of a wearable device, the wearable device can record the duration during which it does not perform NFC interaction. When the duration during which the wearable device does not perform NFC interaction is greater than or equal to a preset duration (e.g., preset duration B), the wearable device can disable the NFC card reading function to avoid keeping the NFC card reading function on for extended periods, thereby increasing the power consumption of the wearable device and improving its battery life.

[0038] In some embodiments, the target service includes payment services or device connectivity services.

[0039] Secondly, embodiments of this application provide a method for controlling NFC functionality, applied to a second terminal device, the method comprising:

[0040] Acquire Bluetooth broadcast from a first terminal device; the first terminal device includes an NFC (Approach Communication) tag.

[0041] Based on the Bluetooth broadcast, the target service request of the first terminal device is determined; the target service request is used to request interaction for the target service.

[0042] The target service request is sent to the wearable device, causing the wearable device to respond to the target service request and a preset operation, activate the NFC card reader function of the wearable device, read the first information of the NFC tag through the NFC card reader function, and interact with the first terminal device for the target service based on the first information.

[0043] In the NFC function control method described above, the wearable device can communicate with a second terminal device that supports Bluetooth scanning. When the wearable device and the second terminal device are connected, the second terminal device can enable Bluetooth scanning, while the wearable device can disable it. The second terminal device can obtain Bluetooth broadcasts from the first terminal device through Bluetooth scanning and determine the target service request from the first terminal device based on the broadcasts. After determining the target service request, the second terminal device can send the request to the wearable device. The wearable device can obtain the target service request from the first terminal device through the second terminal device's Bluetooth scanning function and, based on the target service request and detected preset operations, enable NFC card reading to read the first information of the NFC tag in the first terminal device. This allows for interaction with the first terminal device for the target service based on the first information, reducing the wearable device's power consumption and improving its battery life.

[0044] In some embodiments, the second terminal device and the wearable device are connected via Bluetooth; sending the target service request to the wearable device includes:

[0045] The target service request is sent to the wearable device via Bluetooth connection.

[0046] In one embodiment, when the wearable device is connected to the second terminal device, the wearable device does not enable Bluetooth scanning.

[0047] In some embodiments, the target service includes payment services or device connectivity services.

[0048] Thirdly, embodiments of this application provide a control system for NFC functionality, the system including a wearable device and a second terminal device, the wearable device being communicatively connected to the second terminal device:

[0049] The second terminal device is used to perform the steps in the control method for the NFC function described in any one of the second aspects above;

[0050] The wearable device is used to perform the steps in the control method for the NFC function as described in any one of the first aspects above.

[0051] In some embodiments, the system further includes a first terminal device, the first terminal device including an NFC tag;

[0052] The first terminal device is used to send Bluetooth broadcasts;

[0053] The first terminal device is further configured to interact with the wearable device for a target service after the wearable device reads the first information in the NFC tag.

[0054] Fourthly, embodiments of this application provide a control device for NFC functionality, applied to wearable devices, the device comprising:

[0055] The acquisition module is used to acquire a target service request from a first terminal device; the target service request is used to request interaction for a target service, and the first terminal device includes an NFC tag.

[0056] The detection module is used to detect preset operations;

[0057] The control module is used to respond to the target service request and the preset operation, enable the NFC card reading function of the wearable device; read the first information of the NFC tag, and interact with the first terminal device for the target service based on the first information.

[0058] In some embodiments, the acquisition module is specifically used to acquire the target service request of the first terminal device through the second terminal device.

[0059] In one embodiment, the wearable device is connected to the second terminal device via Bluetooth; the acquisition module is specifically used to acquire the target service request of the first terminal device from the second terminal device via Bluetooth connection.

[0060] In one embodiment, when the wearable device is connected to the second terminal device, the wearable device does not enable Bluetooth scanning.

[0061] In other embodiments, the control module is further configured to enable the Bluetooth scanning function of the wearable device in response to detecting that the first duration of disconnection between the second terminal device and the wearable device is greater than or equal to a first preset duration.

[0062] In one embodiment, the acquisition module is further configured to acquire the Bluetooth broadcast sent by the first terminal device after enabling the Bluetooth scanning function of the wearable device; and acquire the target service request of the first terminal device based on the Bluetooth broadcast.

[0063] In some embodiments, the control module is further configured to disable the Bluetooth scanning function of the wearable device in response to the connection between the wearable device and the second terminal device.

[0064] In some embodiments, the control module is further configured to disable the NFC card reading function of the wearable device in response to the wearable device and the first terminal device completing the target service.

[0065] In other embodiments, the control module is further configured to acquire a second duration, the second duration being the duration during which the wearable device has the NFC card reading function enabled; when the second duration is greater than or equal to a second preset duration, the NFC card reading function of the wearable device is disabled.

[0066] In some embodiments, the target service includes payment services or device connectivity services.

[0067] Fifthly, embodiments of this application provide a control device for NFC functionality, applied to a second terminal device, the device comprising:

[0068] The acquisition module is used to acquire the Bluetooth broadcast of the first terminal device; the first terminal device includes an NFC tag for field communication.

[0069] The determining module is used to determine the target service request of the first terminal device based on the Bluetooth broadcast; the target service request is used to request interaction for the target service;

[0070] The sending module is used to send the target service request to the wearable device, so that the wearable device responds to the target service request and the preset operation, activates the NFC card reading function of the wearable device, reads the first information of the NFC tag through the NFC card reading function, and interacts with the first terminal device with the target service based on the first information.

[0071] In some embodiments, the second terminal device and the wearable device are connected via Bluetooth; the sending module is specifically used to send the target service request to the wearable device via Bluetooth.

[0072] In one embodiment, when the wearable device is connected to the second terminal device, the wearable device does not enable Bluetooth scanning.

[0073] In some embodiments, the target service includes payment services or device connectivity services.

[0074] In a sixth aspect, embodiments of this application provide a wearable device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, it enables the wearable device to implement the NFC function described in any one of the first aspects above.

[0075] In a seventh aspect, embodiments of this application provide a second terminal device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, it enables the second terminal device to implement the NFC function described in any one of the second aspects above.

[0076] Eighthly, embodiments of this application provide a computer-readable storage medium storing a computer program, which, when executed by a wearable device, enables the wearable device to implement the control method of the NFC module described in any one of the first aspects.

[0077] In a ninth aspect, embodiments of this application provide a computer-readable storage medium storing a computer program, which, when executed by a second terminal device, enables the second terminal device to implement the control method for the NFC function described in any one of the second aspects above.

[0078] In a tenth aspect, embodiments of this application provide a computer program product comprising a computer program that, when executed by a wearable device, enables the wearable device to implement the control method for the NFC function described in any one of the first aspects.

[0079] In one aspect, embodiments of this application provide a computer program product, the computer program product including a computer program, which, when executed by a second terminal device, enables the second terminal device to implement the control method for the NFC function described in any one of the second aspects above.

[0080] It is understood that the beneficial effects of the third to eleventh aspects mentioned above can be found in the relevant descriptions in the first or second aspects mentioned above, and will not be repeated here. Attached Figure Description

[0081] Figure 1 This is a schematic diagram of the wearable device to which the NFC function control method provided in this application embodiment is applicable;

[0082] Figure 2 This is a schematic diagram of the software architecture to which the NFC function control method provided in the embodiments of this application is applicable;

[0083] Figure 3 This is a flowchart illustrating the NFC function control method provided in the embodiments of this application. Figure 1 ;

[0084] Figure 4 and Figure 5 This is a schematic diagram of the application scenario provided in the embodiments of this application. Figure 1 ;

[0085] Figure 6 This is a flowchart illustrating the NFC function control method provided in the embodiments of this application. Figure 2 ;

[0086] Figure 7 and Figure 8 This is a schematic diagram of the application scenario provided in the embodiments of this application. Figure 2 ;

[0087] Figure 9 This is a flowchart illustrating the NFC function control method provided in the embodiments of this application. Figure 3 . Detailed Implementation

[0088] It should be understood that, when used in this application specification and the appended claims, the term "comprising" indicates the presence of the described features, integrals, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integrals, steps, operations, elements, components and / or a collection thereof.

[0089] It should also be understood that the term “and / or” as used in this application specification and the appended claims means any combination of one or more of the associated listed items and all possible combinations, and includes such combinations.

[0090] As used in this application specification and the appended claims, the term "if" may be interpreted, depending on the context, as "when," "once," "in response to determination," or "in response to detection." Similarly, the phrase "if determined" or "if detected [the described condition or event]" may be interpreted, depending on the context, as meaning "once determined," "in response to determination," "once detected [the described condition or event]," or "in response to detection [the described condition or event]."

[0091] Furthermore, in the description of this application and the appended claims, the terms "first," "second," "third," etc., are used only to distinguish descriptions and should not be construed as indicating or implying relative importance.

[0092] References to "one embodiment" or "some embodiments" as described in this specification mean that one or more embodiments of this application include a specific feature, structure, or characteristic described in connection with that embodiment. Therefore, the phrases "in one embodiment," "in some embodiments," "in other embodiments," "in still other embodiments," etc., appearing in different parts of this specification do not necessarily refer to the same embodiment, but rather mean "one or more, but not all, embodiments," unless otherwise specifically emphasized. The terms "comprising," "including," "having," and variations thereof mean "including but not limited to," unless otherwise specifically emphasized.

[0093] Furthermore, the term "multiple" mentioned in the embodiments of this application should be interpreted as two or more.

[0094] The steps involved in the NFC function control method provided in this application embodiment are merely examples. Not all steps are mandatory, nor are all information or message contents required. They can be added or removed as needed during use. The same step or step or message with the same function in this application embodiment can be referenced and learned from each other in different embodiments.

[0095] The business scenarios described in the embodiments of this application are for the purpose of more clearly illustrating the technical solutions of the embodiments of this application, and do not constitute a limitation on the technical solutions provided in the embodiments of this application. As those skilled in the art will know, with the evolution of network architecture and the emergence of new business scenarios, the technical solutions provided in the embodiments of this application are also applicable to similar technical problems.

[0096] In this application embodiment, the wearable device can be a smartwatch, smart bracelet, or smart ring, etc., and this application embodiment does not impose any restrictions on the specific type of wearable device. Additionally, the terminal device can be a mobile phone, tablet computer, wearable device, in-vehicle device, augmented reality (AR) / virtual reality (VR) device, laptop computer, ultra-mobile personal computer (UMPC), netbook, personal digital assistant (PDA), desktop computer, etc., and this application embodiment does not impose any restrictions on the specific type of terminal device.

[0097] The wearable device involved in the embodiments of this application is first described below. Please refer to... Figure 1 , Figure 1 A schematic diagram of a wearable device 100 is shown.

[0098] Wearable device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, antenna 1, antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, a sensor module 180, buttons 190, and a display screen 191, etc. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, a barometric pressure sensor 180C, a magnetic sensor 180D, an accelerometer sensor 180E, a proximity sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc.

[0099] It is understood that the structures illustrated in the embodiments of this application do not constitute a specific limitation on the wearable device 100. In other embodiments of this application, the wearable device 100 may include more or fewer components than illustrated, or combine some components, or split some components, or have different component arrangements. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.

[0100] Processor 110 may include one or more processing units, such as application processors (APs), modem processors, graphics processing units (GPUs), image signal processors (ISPs), controllers, video codecs, digital signal processors (DSPs), baseband processors, and / or neural network processing units (NPUs). These different processing units may be independent devices or integrated into one or more processors.

[0101] The controller can generate operation control signals based on the instruction opcode and timing signals to complete the control of instruction fetching and execution.

[0102] The processor 110 may also include a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. This memory can store instructions or data that the processor 110 has just used or that are used repeatedly. If the processor 110 needs to use the instruction or data again, it can retrieve it directly from the memory. This avoids repeated accesses, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.

[0103] In some embodiments, the processor 110 may include one or more interfaces. Interfaces may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface, etc.

[0104] It is understood that the interface connection relationships between the modules illustrated in the embodiments of this application are merely illustrative and do not constitute a structural limitation on the wearable device 100. In other embodiments of this application, the wearable device 100 may also employ different interface connection methods or combinations of multiple interface connection methods as described in the above embodiments.

[0105] The charging management module 140 is used to receive charging input from the charger.

[0106] The power management module 141 is used to connect the battery 142, the charging management module 140, and the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140 to power the processor 110, internal memory 121, display 191, and wireless communication module 160, etc.

[0107] The wireless communication function of the wearable device 100 can be implemented through antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, modem processor, and baseband processor.

[0108] Antennas 1 and 2 are used to transmit and receive electromagnetic wave signals. Each antenna in the wearable device 100 can be used to cover one or more communication frequency bands. Different antennas can also be reused to improve antenna utilization. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In some other embodiments, the antennas can be used in conjunction with a tuning switch.

[0109] The mobile communication module 150 can provide solutions for wireless communication, including 2G / 3G / 4G / 5G, applied to the wearable device 100. The mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves via antenna 1, and perform filtering, amplification, and other processing on the received electromagnetic waves before transmitting them to a modem processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modem processor and convert it into electromagnetic waves for radiation via antenna 1. In some embodiments, at least some functional modules of the mobile communication module 150 may be housed in the processor 110. In some embodiments, at least some functional modules of the mobile communication module 150 and at least some modules of the processor 110 may be housed in the same device.

[0110] The modem processor may include a modulator and a demodulator. The modulator modulates the low-frequency baseband signal to be transmitted into a mid-to-high frequency signal. The demodulator demodulates the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After processing by the baseband processor, the low-frequency baseband signal is transmitted to the application processor. The application processor outputs sound signals through audio devices (not limited to speaker 170A, receiver 170B, etc.) or displays images or videos through the display screen 191. In some embodiments, the modem processor may be a separate device. In other embodiments, the modem processor may be independent of the processor 110 and housed within the same device as the mobile communication module 150 or other functional modules.

[0111] The wireless communication module 160 can provide solutions for wireless communication applications on the wearable device 100, including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), and infrared (IR) technologies. The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via antenna 2, performs frequency modulation and filtering of the electromagnetic wave signals, and sends the processed signal to processor 110. The wireless communication module 160 can also receive signals to be transmitted from processor 110, perform frequency modulation and amplification, and convert them into electromagnetic waves for radiation via antenna 2.

[0112] In some embodiments, antenna 1 of wearable device 100 is coupled to mobile communication module 150, and antenna 2 is coupled to wireless communication module 160, enabling wearable device 100 to communicate with networks and other devices via wireless communication technology. The wireless communication technology may include Global System for Mobile Communications (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Time Division Code Division Multiple Access (TD-SCDMA), Long Term Evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technologies, etc. The GNSS may include the Global Positioning System (GPS), the Global Navigation Satellite System (GLONASS), the BeiDou Navigation Satellite System (BDS), the Quasi-Zenith Satellite System (QZSS), and / or satellite-based augmentation systems (SBAS).

[0113] The wearable device 100 implements display functions through a GPU, a display screen 191, and an application processor. The GPU is a microprocessor for image processing, connected to the display screen 191 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs, which execute program instructions to generate or modify display information.

[0114] The display screen 191 is used to display images, videos, etc. The display screen 191 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), a Miniled LED, a MicroLED, a Micro-OLED, a quantum dot light-emitting diode (QLED), etc. In some embodiments, the wearable device 100 may include one or N displays 191, where N is a positive integer greater than 1.

[0115] A digital signal processor is used to process digital signals. In addition to processing digital image signals, it can also process other digital signals.

[0116] Video codecs are used to compress or decompress digital video. Wearable device 100 may support one or more video codecs. Thus, wearable device 100 can play or record videos in various encoding formats, such as Moving Picture Experts Group (MPEG) 1, MPEG 2, MPEG 3, MPEG 4, etc.

[0117] An NPU (Neural Processing Unit) is a computational processor for neural networks (NNs). By borrowing the structure of biological neural networks, such as the transmission patterns between neurons in the human brain, it can rapidly process input information and continuously learn on its own. NPUs can enable intelligent cognitive applications in wearable devices, such as image recognition, facial recognition, speech recognition, and text understanding.

[0118] The external storage interface 120 can be used to connect an external storage card, such as a Micro SD card, to expand the storage capacity of the wearable device 100. The external storage card communicates with the processor 110 through the external storage interface 120 to perform data storage functions. For example, music, video, and other files can be saved on the external storage card.

[0119] Internal memory 121 can be used to store computer executable program code, which includes instructions. Internal memory 121 may include a program storage area and a data storage area. The program storage area may store the operating system, at least one application program required for a function (such as sound playback, image playback, etc.), etc. The data storage area may store data created during the use of the wearable device 100 (such as audio data, phonebook, etc.). Furthermore, internal memory 121 may include high-speed random access memory, and may also include non-volatile memory, such as at least one disk storage device, flash memory device, universal flash storage (UFS), etc. Processor 110 executes various functional applications and data processing of the wearable device 100 by running instructions stored in internal memory 121 and / or instructions stored in memory disposed in the processor.

[0120] The wearable device 100 can implement audio functions, such as music playback and recording, through an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, and an application processor.

[0121] Audio module 170 is used to convert digital audio information into analog audio signal output, and also to convert analog audio input into digital audio signal. Audio module 170 can also be used for encoding and decoding audio signals.

[0122] The gyroscope sensor 180B can be used to determine the motion posture of the wearable device 100. In some embodiments, the angular velocity of the wearable device 100 about three axes (i.e., the x, y, and z axes) can be determined by the gyroscope sensor 180B.

[0123] The accelerometer 180E can detect the magnitude of acceleration of the wearable device 100 in various directions (typically three axes). When the wearable device 100 is stationary, it can detect the magnitude and direction of gravity. It can also be used to identify the posture of the wearable device 100, and can be applied to applications such as landscape / portrait switching and pedometers.

[0124] Buttons 190 include a power button, volume buttons, etc. Buttons 190 can be mechanical buttons or touch buttons. The wearable device 100 can receive button input and generate key signal inputs related to user settings and function control of the wearable device 100.

[0125] The software system of wearable device 100 can adopt a layered architecture, event-driven architecture, microkernel architecture, microservice architecture, or cloud architecture. For example, the software system of wearable device 100 can adopt a layered architecture such as Android Operating System (OS), Harmony OS, or iOS. This application embodiment uses a layered architecture as an example to illustrate the software structure of wearable device 100.

[0126] Figure 2 This is a software structure block diagram of a wearable device 100 according to an embodiment of this application.

[0127] A layered architecture divides software into several layers, each with a clear role and function. Layers communicate with each other through software interfaces. In some embodiments, the operating system is divided into four layers, from top to bottom: the application layer, the application framework layer, the runtime and system libraries, and the kernel layer.

[0128] The application layer can include a series of application packages.

[0129] like Figure 2 As shown, the application package may include applications such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, payment app, fitness app, and SMS.

[0130] The application framework layer provides application programming interfaces (APIs) and a programming framework for applications in the application layer. The application framework layer includes some predefined functions.

[0131] like Figure 2 As shown, the application framework layer may include a window manager, content provider, view system, phone manager, resource manager, notification manager, etc.

[0132] The window manager is used to manage windowed applications. It can retrieve screen size, determine the presence of a status bar, lock the screen, and capture screenshots, among other things.

[0133] Content providers store and retrieve data, making that data accessible to applications. This data may include videos, images, audio, made and received phone calls, browsing history and bookmarks, phone books, etc.

[0134] A view system includes visual controls, such as controls for displaying text and controls for displaying images. View systems can be used to build applications. A display interface can consist of one or more views. For example, a display interface including a text notification icon could include views for displaying text and views for displaying images.

[0135] The phone manager is used to provide communication functions for the wearable device 100. For example, it manages call status (including connection, hang-up, etc.).

[0136] The file explorer provides applications with various resources, such as localized strings, icons, images, layout files, video files, and more.

[0137] The notification manager allows applications to display notifications in the status bar. These notifications can be used to deliver informational messages and can disappear automatically after a short pause, requiring no user interaction. For example, the notification manager can be used to notify users of download completion or message alerts. The notification manager can also display notifications as icons or scrolling text in the top status bar, such as notifications from background applications, or as dialog boxes on the screen. Examples include displaying text messages in the status bar, emitting sounds, vibrating wearable devices, and flashing indicator lights.

[0138] Runtime consists of core libraries and a virtual machine. Runtime is responsible for the scheduling and management of the operating system.

[0139] The core library consists of two parts: one part is the functionalities that the Java language needs to call, and the other part is the core library of the operating system.

[0140] The application layer and application framework layer run in a virtual machine. The virtual machine executes the Java files of the application layer and application framework layer as binary files. The virtual machine is used to perform functions such as object lifecycle management, stack management, thread management, security and exception management, and garbage collection.

[0141] System libraries can include multiple functional modules. For example: surface manager, media libraries, 3D graphics processing libraries (e.g., OpenGL ES), 2D graphics engines (e.g., SGL), etc.

[0142] The Surface Manager is used to manage the display subsystem and provides the blending of 2D and 3D layers for multiple applications.

[0143] The media library supports playback and recording of various common audio and video formats, as well as still image files. It supports multiple audio and video encoding formats, such as MPEG4, H.264, MP3, AAC, AMR, JPG, and PNG.

[0144] The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.

[0145] A 2D graphics engine is a graphics engine for 2D drawing.

[0146] The kernel layer is the layer between hardware and software. The kernel layer includes at least the display driver, camera driver, audio driver, sensor driver, and NFC driver.

[0147] Mobile phones, tablets, and wearable devices (such as smartwatches, smart bracelets, or smart rings) generally have NFC functionality. NFC functionality can include NFC card emulation and NFC card reading. NFC card emulation allows an NFC-enabled device to act as a transit card, access card, or bank card, which can then be read by other NFC-enabled devices. In other words, NFC card emulation means that an NFC device can act as an NFC tag or card for other devices acting as NFC readers to read information. NFC card reading allows an NFC device to read information from other NFC tags or cards. In other words, NFC card reading means that an NFC device can act as an NFC reader to read information from other NFC tags or cards.

[0148] For terminal devices with large battery capacities, such as mobile phones or tablets, to facilitate user access to NFC card emulation and NFC card reading functions, a polling method can be used to switch between these functions. This means that mobile phones or tablets can enable either NFC card emulation or NFC card reading by default through polling, allowing them to be used as NFC tags or cards, or as NFC card readers.

[0149] For wearable devices with small battery capacities, such as smartwatches, smart bracelets, or smart rings, if the NFC card reading function is enabled by default through polling, the wearable device needs to frequently transmit radio frequency signals to detect surrounding NFC tags or cards, which will greatly increase the power consumption of the wearable device and reduce its battery life.

[0150] Furthermore, due to the small size of wearable devices and the limited communication range of NFC technology (e.g., within 10 centimeters), the NFC chip is typically located below the screen of wearable devices with a screen. When the wearable device enables NFC card reading, the radio frequency signals emitted by the device can interfere with the screen display, causing flickering when the screen is on, affecting the display quality and user experience.

[0151] Therefore, to reduce power consumption, improve battery life, minimize interference with screen display, and enhance display quality, wearable devices generally do not have NFC card reading enabled by default. When NFC card reading is disabled by default, users must manually enable it to use the device. For example, users need to locate the corresponding NFC card reading button on the wearable device and activate it by clicking or touching the button. This manual activation method is complex, inconvenient, and provides a poor user experience.

[0152] This application provides a method for controlling NFC functionality. The NFC card reading function of the wearable device can be disabled by default, but can be automatically enabled when the target service request of the first terminal device and the user's preset operation are obtained. This not only reduces the power consumption of the wearable device and improves its battery life, but also is simple and convenient to operate, which can improve the user experience and has strong usability and practicality.

[0153] The control method for the NFC function provided in the embodiments of this application will be described in detail below with reference to the accompanying drawings and specific application scenarios.

[0154] Please see Figure 3 , Figure 3 A flowchart illustrating the control method for NFC function provided in an embodiment of this application is shown. Figure 1 This method can be applied to wearable devices, such as smartwatches, smart bracelets, or smart rings. Figure 3 As shown, the method may include:

[0155] S301, The wearable device obtains the target service request of the first terminal device; the target service request is used to request interaction for the target service, and the first terminal device includes an NFC tag.

[0156] S302, Wearable device detection preset operation.

[0157] S303. The wearable device responds to the target business request and preset operation, and enables the NFC card reading function of the wearable device.

[0158] S304. The wearable device reads the first information of the NFC tag and interacts with the first terminal device for the target service based on the first information.

[0159] It should be noted that the target service can be a service that supports NFC interaction. For example, the target service can be a service that supports the first terminal device as an NFC tag or card for NFC interaction. That is, the target service can be a service that supports the first terminal device as an NFC tag, or a service that supports the first terminal device as a transportation card, access card, or bank card, etc. This application embodiment does not limit the specific type of the target service and can determine it according to the actual scenario. For example, the target service can be a payment service, or a device connectivity service, etc. Among them, the device connectivity service can include services connected to fitness equipment.

[0160] In some embodiments, the first terminal device can be any terminal device with an NFC tag. For example, the first terminal device can be any terminal device with an NFC tag corresponding to the target service (for ease of understanding, the NFC tag corresponding to the target service can be simply referred to as NFC tag A below). This application embodiment does not limit the specific type of the first terminal device and can determine it according to the actual scenario. For example, the first terminal device can be a mobile phone, tablet computer, wearable device, fitness equipment, or payment device, etc., with NFC tag A.

[0161] It should be noted that the NFC tag A may include device information related to the first terminal device, and / or may include service information related to the target service. The information included in the NFC tag A (hereinafter referred to as the first information) can be determined according to the actual scenario, and this application embodiment does not impose any limitations on it.

[0162] For example, when the target service is a payment service, the first information may include the identity (ID), uniform resource identifier (URI), and application identifier of the first terminal device. The ID of the first terminal device can be used to point to the device receiving the payment data. The URI may contain the payment link corresponding to the payment service. The application identifier can be used to point to the payment application corresponding to the payment service.

[0163] For example, when the target service is a device connectivity service, the first information may include the ID of the first terminal device and an application identifier. The ID of the first terminal device can be used to point to the device required for the device connectivity service to connect. The application identifier can be used to point to the application required for the device connectivity service to be used, such as a workout application.

[0164] It should be understood that when the first terminal device needs to interact with the target service, it can emit an electromagnetic signal. This signal can activate the NFC tag A of the first terminal device, enabling a device with NFC card reading functionality enabled (such as a wearable device with NFC card reading functionality enabled) to read the first information of the NFC tag A and interact with the first terminal device with the target service based on the read first information. Furthermore, when the first terminal device needs to interact with the target service, it can send a target service request, allowing other devices to obtain this request and interact with the first terminal device with the target service based on it.

[0165] In this embodiment, the wearable device can acquire a target service request from the first terminal device. After acquiring the target service request, the wearable device does not directly activate its NFC card reading function. Instead, it activates the NFC card reading function only when a preset operation performed by the user through the wearable device is detected. That is, when a user wants to interact with the first terminal device for a target service through the wearable device's NFC card reading function, the user can perform a preset operation through the wearable device after the first terminal device sends the target service request. Upon acquiring the target service request from the first terminal device and detecting the preset operation, the wearable device can activate its NFC card reading function to read the first information of the NFC tag A. It can then interact with the first terminal device for the target service based on this first information. This avoids the wearable device mistakenly activating the NFC card reading function, which would increase power consumption and affect battery life.

[0166] The specific method by which wearable devices obtain the target service request from the first terminal device will be described in detail later and will not be repeated here.

[0167] It should be noted that the preset operation can be any operation defined by the user or any operation that is set by default for the wearable device. This application does not limit the specific type of preset operation; it can be determined according to the actual scenario.

[0168] For example, the preset operation can be a user-defined flip operation or a forward movement operation. That is, after the first terminal device sends a target service request, when the user determines that they need to interact with the first terminal device for the target service, the user can flip the wearable device or move it forward. After flipping or moving the wearable device forward, in order for the wearable device to read the first information of NFC tag A in the first terminal device, the user can also bring the wearable device close to the first terminal device. When the wearable device receives the target service request from the first terminal device and detects the preset operation of flipping or moving the wearable device forward, it can activate the NFC card reading function. After activating the NFC card reading function, when the wearable device is close to the first terminal device, it can read the first information of NFC tag A in the first terminal device through the NFC card reading function, thereby interacting with the first terminal device for the target service based on the first information.

[0169] For example, the preset operation could be a tap-to-operate function defaulted to the wearable device. This tap-to-operate function refers to the wearable device tapping another device (e.g., a first terminal device) to request interaction with the target service. That is, after the first terminal device sends a target service request, when the user determines they need to interact with the first terminal device for the target service, the user can tap the wearable device against the first terminal device. Upon receiving the target service request from the first terminal device and detecting the preset tap-to-operate function, the wearable device can activate its NFC card reading function. After activating the NFC card reading function, the wearable device can read the first information of NFC tag A in the first terminal device, thereby enabling interaction with the first terminal device for the target service based on this first information.

[0170] It should be understood that wearable devices may include sensors such as accelerometers and gyroscopes. Wearable devices can collect changes in acceleration via accelerometers and changes in angular velocity via gyroscopes to determine preset actions such as flipping, moving forward, or tapping based on these changes. The process by which the wearable device determines these preset actions based on the acceleration and angular velocity changes collected by the accelerometer and gyroscope can be tailored to the specific scenario, and this application does not impose any limitations on this process.

[0171] In some embodiments, in order to reduce the accidental activation of the NFC card reading function, thereby reducing the power consumption of the wearable device and improving its battery life, after obtaining the target service request from the first terminal device, the wearable device can determine the valid time corresponding to the target service request, and can determine whether to enable the NFC card reading function of the wearable device based on the time of detecting the preset operation and the valid time corresponding to the target service request.

[0172] In one embodiment, when the time of the preset operation is detected within the valid time corresponding to the target service request (i.e., when the preset operation is detected and the target service request is still within the valid time), the wearable device can determine that the user indeed wants to enable the wearable device's NFC card reading function. In this case, the wearable device can enable the wearable device's NFC card reading function. However, when the time of the preset operation is detected outside the valid time corresponding to the target service request (i.e., when the preset operation is detected and the target service request is no longer within the valid time), the wearable device can consider that the preset operation is not an operation for enabling the wearable device's NFC card reading function. In this case, the wearable device can choose not to respond to the target service request and the preset operation, that is, the wearable device can choose not to enable the wearable device's NFC card reading function, thus avoiding accidental triggering of the wearable device's NFC card reading function.

[0173] It should be noted that the effective time can be determined according to the actual scenario, and this application embodiment does not impose any restrictions on it. For example, the effective time can be determined to be 1 minute, 2 minutes, or 3 minutes, etc., depending on the actual scenario. For example, when the effective time is 1 minute, after obtaining the target service request from the first terminal device, if the wearable device detects a preset operation within 1 minute, the wearable device can enable the wearable device's NFC card reading function; if the wearable device does not detect a preset operation within 1 minute, the wearable device can choose not to enable the wearable device's NFC card reading function.

[0174] In one embodiment, after acquiring a target service request from a first terminal device, the wearable device can record the duration of the acquisition of the target service request. When it is determined that the duration of the target service request has reached the valid time corresponding to the target service request, the wearable device can delete the target service request to avoid subsequent user-intentioned preset operations that could lead to the accidental activation of the wearable device's NFC card reading function.

[0175] For example, if the effective time corresponding to the target service request is 2 minutes, assuming that the wearable device obtains the target service request from the first terminal device at 19:30 on December 9, 2024, the wearable device can delete the target service request from the wearable device at 19:32 on December 9, 2024, in order to avoid the preset operation detected after 19:32 on December 9, 2024, causing the NFC card reading function to be mistakenly activated.

[0176] In another embodiment, when the wearable device determines that it has completed the interaction of the target service with the first terminal device, the wearable device may also delete the target service request in the wearable device to avoid the NFC card reading function being mistakenly activated due to the subsequent detected preset operation and the previously acquired target service request.

[0177] In some embodiments, after enabling the NFC card reading function of a wearable device, the wearable device can promptly disable the NFC card reading function based on the completion status of the target business or the duration of the NFC card reading function being enabled, thereby reducing the power consumption of the wearable device, improving its battery life, and enhancing the user experience.

[0178] In one embodiment, after enabling the NFC card reading function of the wearable device, the wearable device can determine whether it has completed the target transaction with the first terminal device. Upon determining that the target transaction has been completed with the first terminal device, the wearable device can determine that it has finished using the NFC card reading function and can then disable it.

[0179] It should be noted that the embodiments of this application do not limit the specific method for determining whether the wearable device has completed the target business with the first terminal device, and can be determined according to the actual scenario.

[0180] For example, when the target transaction is a payment transaction, after the wearable device completes the payment transaction with the first terminal device, the application corresponding to the payment transaction in the wearable device (e.g., the payment application) can call the system notification interface to display the payment result, such as displaying the payment result card. When the wearable device receives the payment result from the payment application, for example, when it determines that the wearable device is displaying the payment result card, it can determine that the wearable device has completed the target transaction with the first terminal device. Alternatively, when the payment application completes the payment transaction, the payment application can send a notification to the wearable device that the payment transaction has been completed (for ease of understanding, this can be called a completion notification). After receiving the completion notification from the payment application, the wearable device can determine that the wearable device has completed the payment transaction with the first terminal device, and the wearable device can then disable its NFC card reading function.

[0181] For example, when the target service is device connectivity, the wearable device can establish a connection with the first terminal device, such as a Bluetooth connection, after completing the device connectivity process. Once the wearable device confirms the establishment of a Bluetooth connection with the first terminal device, it can determine that the target service has been completed, and thus the wearable device can disable its NFC card reader function.

[0182] In another embodiment, after enabling the NFC card reading function of the wearable device, the wearable device can record the duration for which the NFC card reading function is enabled, or the duration for which the wearable device does not perform NFC interaction. When the duration for which the NFC card reading function is enabled is greater than or equal to a preset duration (e.g., preset duration A), or when the duration for which the wearable device does not perform NFC interaction is greater than or equal to a preset duration (e.g., preset duration B), the wearable device can consider that it has completed the target business with the first terminal device, and can then disable the NFC card reading function to avoid prolonged use of the NFC card reading function, which would increase the power consumption of the wearable device and reduce its battery life.

[0183] It should be understood that the preset durations A and B can be determined based on the actual scenario, and this application embodiment does not impose any limitations on them. The preset durations A and B can be the same or different. For example, both preset durations A and B can be 2 minutes, or both can be 3 minutes, etc. Alternatively, preset duration A can be 2 minutes and preset duration B can be 1 minute, or preset duration A can be 1 minute and preset duration B can be 30 seconds, etc.

[0184] For example, if the preset duration A is 3 minutes, after enabling the NFC card reading function on the wearable device, the wearable device can record the duration for which the NFC card reading function is enabled. Once it is determined that the duration for which the NFC card reading function is enabled has reached 3 minutes, the wearable device can disable the NFC card reading function.

[0185] For example, with a preset duration B of 30 seconds, after enabling the NFC card reader function on the wearable device, the wearable device can record in real time the duration during which the wearable device does not engage in NFC interaction. When it is determined that the duration of inactivity has reached 30 seconds, the wearable device can disable the NFC card reader function.

[0186] The process of a wearable device obtaining a target service request from a first terminal device will be described in detail below.

[0187] In this embodiment, the first terminal device can be a terminal device that supports Bluetooth functionality. The first terminal device can send a target service request via Bluetooth broadcast. That is, when the first terminal device requests interaction for a target service, it can broadcast a Bluetooth broadcast to send the target service request. When the first terminal device broadcasts a Bluetooth broadcast, terminal devices with Bluetooth scanning enabled in the vicinity of the first terminal device can receive the Bluetooth broadcast and determine the target service request of the first terminal device based on the Bluetooth broadcast.

[0188] For example, Bluetooth broadcasting may include a service identifier corresponding to the target service, that is, the Bluetooth broadcasts corresponding to different services can be distinguished by the service identifier. The service identifier may be an identifier such as a service name or service ID. This embodiment of the application does not limit the specific content of the service identifier and can determine it according to the actual scenario.

[0189] For example, when the service identifier is the service name, the Bluetooth broadcast corresponding to each target service may include the service identifiers shown in Table 1 below:

[0190] Table 1

[0191] Business Name Bluetooth broadcast service identifier AAA equipment payment business br.service.AAA Treadmill connectivity service br.service.treadmill Large screen device connectivity services br.service.tv Vehicle-to-everything (V2X) connectivity services br.service.car

[0192] Therefore, after a terminal device (e.g., terminal device A) receives a Bluetooth broadcast from a first terminal device, if terminal device A determines that the Bluetooth broadcast includes "br.service.AAA", terminal device A can determine that the target service is a payment service, and that the receiving device corresponding to the payment service is device AAA. If terminal device A determines that the Bluetooth broadcast includes "br.service.treadmill", terminal device A can determine that the target service is a connection service, and the device to be connected is a treadmill. If terminal device A determines that the Bluetooth broadcast includes "br.service.tv", terminal device A can determine that the target service is a connection service, and the device to be connected is a large-screen device. If terminal device A determines that the Bluetooth broadcast includes "br.service.car", terminal device A can determine that the target service is a connection service, and the device to be connected is an in-vehicle device.

[0193] In some embodiments, to reduce the power consumption and improve the battery life of the wearable device, the wearable device can communicate with a terminal device (e.g., a second terminal device) that supports Bluetooth scanning. When the wearable device is communicating with the second terminal device, the wearable device may not need to enable Bluetooth scanning. The wearable device can use the Bluetooth scanning function of the second terminal device to obtain the target service request of the first terminal device. That is, when the wearable device is communicating with the second terminal device, the second terminal device can enable Bluetooth scanning to obtain surrounding Bluetooth broadcasts, such as those sent by the first terminal device. After obtaining the Bluetooth broadcast sent by the first terminal device, the second terminal device can determine the target service request of the first terminal device based on the Bluetooth broadcast and can send the target service request of the first terminal device to the wearable device.

[0194] It should be noted that the second terminal device can be a mobile phone or tablet computer, or other terminal devices with a large battery capacity and supporting Bluetooth scanning. This application does not limit the specific type of the second terminal device. Furthermore, this application does not specifically limit the communication connection method between the wearable device and the second terminal device, which can be determined according to the actual scenario. For example, the wearable device and the second terminal device can connect via Bluetooth, or via Wi-Fi, etc. The following will use Bluetooth connection between the wearable device and the second terminal device as an example for illustrative explanation.

[0195] For example, after receiving the Bluetooth broadcast from the first terminal device, the second terminal device can determine the service request of the first terminal device based on the Bluetooth broadcast. When it is determined that the service request of the first terminal device is a target service request, the second terminal device can send the target service request of the first terminal device to the wearable device. When it is determined that the service request of the first terminal device is not a target service request, the second terminal device may choose not to send the service request of the first terminal device to the wearable device.

[0196] In one embodiment, to ensure the security of the wearable device's interaction with the target business, the second terminal device can be a terminal device belonging to the same user as the wearable device, or a terminal device authorized by the user of the wearable device that can control the wearable device. For example, the second terminal device can be a terminal device logged into the same user account as the wearable device, or a terminal device capable of controlling the wearable device.

[0197] The control method for the NFC function provided in the embodiments of this application will be described exemplarily below with reference to the above description.

[0198] Please see Figure 4 and Figure 5 , Figure 4 and Figure 5 This application illustrates an application scenario provided by an embodiment of the present application. Figure 1 This application scenario is illustrated by taking the example of a wearable device obtaining a target service request from a first terminal device through a second terminal device.

[0199] like Figure 4 As shown in (a), the wearable device 410 can be a smartwatch, the second terminal device 420 can be a mobile phone, and the first terminal device 430 can be a payment device. Or, as... Figure 4 As shown in (b), the wearable device 410 can be a smartwatch, the second terminal device 420 can be a mobile phone, and the first terminal device 430 can be a fitness device, such as a treadmill.

[0200] like Figure 4 (a) and Figure 4 As shown in (b), the wearable device 410 can communicate with the second terminal device 420, and the second terminal device 420 can enable Bluetooth scanning. When the first terminal device 430 wants to perform interaction for a target service, the first terminal device 430 can broadcast a Bluetooth broadcast to send the target service request of the first terminal device 430 via Bluetooth broadcast.

[0201] For example, such as Figure 5 As shown, the first terminal device 430 may include a Bluetooth module and NFC. The first terminal device 430 can broadcast Bluetooth messages via the Bluetooth module to send a target service request via Bluetooth broadcast. Additionally, the first terminal device 430 can interact with the target service via NFC.

[0202] The second terminal device 420 can obtain the Bluetooth broadcast from the first terminal device 430 and determine the target service request of the first terminal device 430 based on the Bluetooth broadcast. After determining the target service request of the first terminal device 430, the second terminal device 420 can send the target service request to the wearable device 410.

[0203] For example, such as Figure 5As shown, the second terminal device 420 may include a service distribution module, a Bluetooth scanning module, and a communication module. The service distribution module can be used for service management and distribution. Specifically, after the second terminal device 420 enables Bluetooth scanning, its Bluetooth scanning module can acquire surrounding Bluetooth broadcasts, such as those sent by the first terminal device 430. After acquiring the Bluetooth broadcast, the Bluetooth scanning module can send the broadcast to the service distribution module of the second terminal device 420. After acquiring the Bluetooth broadcast, the service distribution module of the second terminal device 420 can determine the target service request based on the broadcast. After determining the target service request, the service distribution module of the second terminal device 420 can distribute the target service request to the wearable device 410, i.e., the communication module can send the target service request to the wearable device 410.

[0204] Wearable device 410 can acquire a target service request sent by second terminal device 420. Additionally, wearable device 410 can detect preset operations. Upon acquiring a target service request and detecting a preset operation, wearable device 410 can activate its NFC card reading function based on the target service request and the preset operation. After activating the NFC card reading function, wearable device 410 can read the first information of NFC tag A in first terminal device 430 through the NFC card reading function and can interact with first terminal device 430 for the target service based on the first information.

[0205] After enabling the NFC card reading function, if it is determined that the wearable device 410 and the first terminal device 430 have completed the target business, or if it is determined that the duration of the NFC card reading function being enabled has reached the preset duration A, or if it is determined that the duration of the wearable device 410 not performing NFC business interaction has reached the preset duration B, the wearable device 410 can disable the NFC card reading function.

[0206] For example, such as Figure 5 As shown, wearable device 410 may include a service distribution module, a communication module, a gesture detection module, an NFC management module, and NFC. It should be understood that wearable device 410 may also install one or more applications (…). Figure 5 (Using applications A and B as examples for illustration). The service distribution module of wearable device 410 can perform operations such as starting or stopping applications through the application framework layer.

[0207] like Figure 5As shown, the service distribution module of wearable device 410 can obtain the target service request sent by the second terminal device 420 through the communication module. Additionally, the gesture detection module of wearable device 410 can detect preset gestures. When a preset gesture is detected, the gesture detection module can send a notification to the service distribution module of wearable device 410 to inform it that the preset gesture has been detected. After confirming that the preset gesture has been detected and that the target service request has been obtained, the service distribution module of wearable device 410 can send a notification to the NFC management module of wearable device 410 to notify it to enable the NFC card reading function.

[0208] After enabling the NFC card reading function, the NFC of the wearable device 410 can read the first information of the NFC tag A in the first terminal device 430 through the NFC card reading function, and can send the read first information to the service distribution module of the wearable device 410. The service distribution module of the wearable device 410 can determine the application corresponding to the target service (e.g., application A) based on the first information, and can start application A. After starting application A, application A can call the NFC communication interface of the wearable device 410 to interact with the first terminal device 430 for the target service.

[0209] After application A completes the interaction with the first terminal device 430 to complete the target service, application A can send a notification to the service distribution module of wearable device 410 to inform the service distribution module of wearable device 410 that the target service has been completed. When the service distribution module of wearable device 410 determines that the target service has been completed, it can send a notification to the NFC management module of wearable device 410 to notify the NFC management module to disable the NFC card reading function.

[0210] Alternatively, after enabling the NFC card reading function, the service distribution module of the wearable device 410 can obtain the duration for which the NFC card reading function is enabled, or the duration for which the wearable device 410 has not performed NFC service interaction. When it is determined that the duration for which the NFC card reading function is enabled reaches a preset duration A, or when it is determined that the duration for which the wearable device 410 has not performed NFC service interaction reaches a preset duration B, the service distribution module of the wearable device 410 can send a notification to the NFC management module of the wearable device 410 to notify the NFC management module to disable the NFC card reading function.

[0211] The following will exemplify the control method of the NFC function provided in this application embodiment, taking the target business as payment business and the preset operation as a tap operation.

[0212] Please see Figure 6 , Figure 6A flowchart illustrating the control method for NFC function provided in an embodiment of this application is shown. Figure 2 .

[0213] like Figure 6 As shown, when a user (e.g., user B) makes a purchase, user B can carry a wearable device 410 (e.g., a smartwatch) and a second terminal device 420 (e.g., a mobile phone). The smartwatch can communicate with the mobile phone, and the smartwatch can disable its Bluetooth scanning function, while the mobile phone can enable its Bluetooth scanning function.

[0214] When user B requests payment, another user (e.g., a cashier, hereinafter referred to as user A) can scan the item and, after completing the scan, can control the first terminal device 430 (e.g., a payment collection device) to initiate payment collection. After user A controls the payment collection device to initiate payment collection, the payment collection device can broadcast a Bluetooth message.

[0215] A mobile phone with Bluetooth scanning enabled can monitor surrounding Bluetooth broadcasts. That is, after a payment device broadcasts Bluetooth information, the phone can receive the broadcast. After receiving the broadcast, the phone can determine the target service request from the payment device, such as a request to make a payment based on a specific payment application. Once the target service request is determined, the phone can send it to the smartwatch. For example, it can send secondary information to the smartwatch, which may include relevant information about the target service request.

[0216] Smartwatches can obtain target service requests sent by mobile phones. For example, they can obtain second information sent by the mobile phone and determine the target service request based on the second information.

[0217] Additionally, after user A initiates payment collection on the payment device, user B can tap their smartwatch against the device, for example, by tapping the NFC area of ​​the device, to make a payment. The smartwatch can detect preset operations, specifically tapping. Upon detecting a tap and confirming that a target transaction request has been received, the smartwatch can activate its NFC card reading function based on the target transaction request and the tap operation.

[0218] After enabling the NFC card reader function on the smartwatch, the smartwatch can read the first information of the NFC tag on the payment device and interact with the payment device for the target transaction (i.e., payment transaction) based on the first information. For example, the smartwatch can determine the payment application corresponding to the payment transaction based on the first information and launch the payment application on the smartwatch. After launching the payment application, the payment application can call the smartwatch's NFC communication interface to interact with the payment device for the payment transaction.

[0219] When a smartwatch determines that a target transaction has been completed, such as when it receives a payment result returned by the payment application or when it receives a completion notification sent by the payment application, the smartwatch can disable the NFC card reader function.

[0220] As described above, users can use their mobile phones and smartwatches to shop. When paying for a purchase, users can simply tap their smartwatch against the payment device to complete the transaction, without needing to manually activate the smartwatch's NFC card reader function. This simplifies the smartwatch payment process, improves payment speed and efficiency, and enhances the user experience.

[0221] In other embodiments, when the wearable device is disconnected from the second terminal device, the wearable device can enable its Bluetooth scanning function to obtain surrounding Bluetooth broadcasts, such as those sent by the first terminal device. It can then determine the target service request of the first terminal device based on these broadcasts. This allows the wearable device to still obtain the target service request of the first terminal device even when disconnected from the second terminal device. Furthermore, it can enable its NFC card reading function as needed to read the first information of the NFC tag A in the first terminal device, thereby interacting with the first terminal device for the target service based on this first information.

[0222] In one embodiment, when it is determined that the duration of disconnection between the wearable device and the second terminal device is greater than or equal to a preset duration (e.g., a preset duration C), the wearable device can determine that it is disconnected from the second terminal device. At this time, the wearable device can enable the Bluetooth scanning function of the wearable device.

[0223] In another embodiment, when the wearable device disconnects from the second terminal device, the wearable device can determine its current location. If the current location is determined to be the target location, the wearable device can activate its Bluetooth scanning function. If the current location is not the target location, the wearable device can deactivate its Bluetooth scanning function. That is, when the wearable device disconnects from the second terminal device, it can determine whether it is likely to use NFC card reading functionality. If NFC card reading functionality is likely, the wearable device can activate its Bluetooth scanning function to detect target service requests. However, if NFC card reading functionality is unlikely, the wearable device can deactivate its Bluetooth scanning function to monitor target service requests, thus avoiding increased power consumption.

[0224] It's important to note that the target scenario can be any situation where interaction for the target business might be required. It should be understood that when the target business is a payment transaction, the wearable device is typically located near a shopping mall or store. When the target business is device connectivity, the wearable device is typically located in a gym, at home, or in a car. Therefore, the wearable device can determine whether its current location qualifies as a target scenario based on its location. Specifically, if the wearable device is located near a shopping mall, store, gym, home, or car, it can be determined that the current scenario is a target scenario, meaning it might need to use NFC card reading functionality. Otherwise, it can be determined that the current scenario is not a target scenario, meaning it's unlikely that the wearable device will need to use NFC card reading functionality.

[0225] In some embodiments, after the wearable device enables the Bluetooth scanning function, if the wearable device detects that it has reconnected to the second terminal device, or if the wearable device detects that it has connected to another device (e.g., a third terminal device) that supports the Bluetooth scanning function and that the other device has enabled the Bluetooth scanning function, the wearable device can disable the Bluetooth scanning function to reduce the power consumption of the wearable device and improve its battery life.

[0226] The control method for the NFC function provided in the embodiments of this application will be described exemplarily below with reference to the above description.

[0227] Please see Figure 7 and Figure 8 , Figure 7 and Figure 8 This application illustrates an application scenario provided by an embodiment of the present application. Figure 2 This application scenario is illustrated by taking as an example a wearable device obtains a Bluetooth broadcast from a first terminal device through the wearable device's Bluetooth scanning function, in order to obtain the first terminal device's target service request.

[0228] like Figure 7 As shown in (a), the wearable device 710 can be a smartwatch, the second terminal device 720 can be a mobile phone, and the first terminal device 730 can be a payment device. Alternatively, as... Figure 7 As shown in (b), the wearable device 710 can be a smartwatch, the second terminal device 720 can be a mobile phone, and the first terminal device 730 can be a fitness device, such as a treadmill.

[0229] like Figure 7 (a) and Figure 7As shown in (b), when the wearable device 710 is disconnected from the second terminal device 720, the wearable device 710 can enable its Bluetooth scanning function to monitor surrounding Bluetooth broadcasts.

[0230] When the first terminal device 730 wants to perform a target service interaction, it can broadcast a Bluetooth broadcast to send the target service request via Bluetooth. After the wearable device 710 enables its Bluetooth scanning function, it can obtain the Bluetooth broadcast from the first terminal device 730 through the Bluetooth scanning function and determine the target service request from the first terminal device 730 based on the Bluetooth broadcast.

[0231] In addition, the wearable device 710 can also detect preset operations. After obtaining a target service request and detecting a preset operation, the wearable device 710 can enable its NFC card reading function based on the target service request and the preset operation. After enabling the NFC card reading function, the wearable device 710 can read the first information of the NFC tag A in the first terminal device 730 through the NFC card reading function, and can interact with the first terminal device 730 for the target service based on the first information.

[0232] After enabling the NFC card reading function, if it is determined that the wearable device 710 and the first terminal device 730 have completed the target business, or if it is determined that the duration of the NFC card reading function being enabled has reached the preset duration A, or if it is determined that the duration of the wearable device 710 not performing NFC business interaction has reached the preset duration B, the wearable device 710 can disable the NFC card reading function.

[0233] For example, such as Figure 8 As shown, the first terminal device 730 may include a Bluetooth module and NFC. The wearable device 710 may include a service distribution module, a Bluetooth scanning module, a gesture detection module, an NFC management module, and NFC. It should be understood that the wearable device 710 may also have one or more applications installed. Figure 8 (Using applications A and B as examples for illustration). The service distribution module of wearable device 710 can perform operations such as starting or stopping applications through the application framework layer.

[0234] like Figure 8As shown, the first terminal device 730 can broadcast a Bluetooth broadcast via its Bluetooth module to send a target service request. After the wearable device 710 enables its Bluetooth scanning function, when the first terminal device 730 broadcasts a Bluetooth broadcast, its Bluetooth scanning module can acquire the broadcast and send it to its service distribution module. The service distribution module can acquire the broadcast and determine the target service request based on it. Additionally, the gesture detection module of the wearable device 710 can detect preset gestures. Upon detecting a preset gesture, the gesture detection module can send a notification to the service distribution module of the wearable device 710 to inform it that a preset gesture has been detected. After confirming the detection of the preset gesture and the acquisition of the target service request, the service distribution module of the wearable device 710 can send a notification to its NFC management module to enable the NFC card reading function.

[0235] After enabling the NFC card reading function, the NFC of the wearable device 710 can read the first information of the NFC tag A in the first terminal device 730, and can send the read first information to the service distribution module of the wearable device 710. The service distribution module of the wearable device 710 can determine the target service corresponding to the target service request, as well as the application corresponding to the target service (e.g., application A) based on the first information, and can launch application A. After launching application A, application A can call the NFC communication interface of the wearable device 710 to interact with the first terminal device 730 for the target service.

[0236] After application A completes the interaction with the first terminal device 730 to complete the target service, application A can send a notification to the service distribution module of wearable device 710 to inform the service distribution module of wearable device 710 that the target service has been completed. When the service distribution module of wearable device 710 determines that the target service has been completed, it can send a notification to the NFC management module of wearable device 710 to notify the NFC management module to disable the NFC card reading function.

[0237] Alternatively, after enabling the NFC card reading function, the service distribution module of wearable device 710 can obtain the duration for which the NFC card reading function is enabled, or the duration for which wearable device 710 has not engaged in NFC business interaction. When it is determined that the duration for which the NFC card reading function is enabled reaches a preset duration A, or when it is determined that the duration for which wearable device 710 has not engaged in NFC business interaction reaches a preset duration B, the service distribution module of wearable device 710 can send a notification to the NFC management module of wearable device 710 to notify the NFC management module to disable the NFC card reading function.

[0238] The following will exemplify the control method of the NFC function provided in this application embodiment, taking the target service as device connection service and the preset operation as a tap operation.

[0239] Please see Figure 9 , Figure 9 A flowchart illustrating the control method for NFC function provided in an embodiment of this application is shown. Figure 3 .

[0240] like Figure 9 As shown, when a user (e.g., user C) enters a gym to exercise, user C can carry a wearable device 710 (e.g., a smartwatch). The gym may include one or more first terminal devices 730 (e.g., fitness equipment such as treadmills), which may support Bluetooth functionality, such as supporting Bluetooth broadcasting and Bluetooth connectivity.

[0241] When user C selects to run on a treadmill (e.g., treadmill A), user C can start treadmill A. After starting, treadmill A can broadcast via Bluetooth.

[0242] When a smartwatch detects a lack of connection to a phone, it can activate its Bluetooth scanning function. Once activated, the smartwatch can scan for nearby Bluetooth broadcasts, including those from treadmill A. After receiving these broadcasts, the smartwatch can determine the target service request, such as a connection request to a device connected to treadmill A.

[0243] Additionally, after user C starts treadmill A, if user C wants to connect their smartwatch to treadmill A, user C can tap the smartwatch against treadmill A, for example, by tapping the NFC area of ​​treadmill A. The smartwatch can detect preset operations, such as the tap operation. After detecting the tap operation and obtaining the target service request, the smartwatch can activate its NFC card reading function based on the target service request and the tap operation.

[0244] After enabling the NFC card reader function on the smartwatch, the smartwatch can read the first information of the NFC tag on treadmill A and interact with treadmill A for the target service based on this information. For example, the smartwatch can determine the corresponding application (such as a fitness app) based on the first information and launch the fitness app from within the smartwatch. After launching the fitness app, the app can use the smartwatch's NFC communication interface to obtain the Bluetooth information of treadmill A and establish a Bluetooth connection with treadmill A based on this information. After establishing a Bluetooth connection with treadmill A, the smartwatch can display the interface corresponding to the fitness app, such as a running interface.

[0245] When a smartwatch determines that a target task has been completed, such as when it has confirmed that a Bluetooth connection has been established with treadmill A, or when it receives a successful connection notification from the fitness app, the smartwatch can disable the NFC card reader function.

[0246] It should be understood that after enabling the Bluetooth scanning function of a smartwatch, if the smartwatch detects a communication connection between the smartwatch and the phone, the smartwatch can disable the Bluetooth scanning function and use the phone's Bluetooth scanning function to detect Bluetooth broadcasts, thereby reducing the smartwatch's power consumption and improving its battery life.

[0247] As described above, when a user enters a gym with their smartwatch, they can establish a Bluetooth connection between the smartwatch and the treadmill by simply tapping the smartwatch against the treadmill. The user can then open a fitness app on the smartwatch, allowing data such as heart rate acquired by the smartwatch to be transmitted to the treadmill for display. Conversely, the smartwatch can also acquire data such as steps and pace from the treadmill. Furthermore, the user can end their workout recording using their smartwatch.

[0248] It should be understood that the sequence number of each step in the above embodiments does not imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application.

[0249] Corresponding to the NFC function control method described in the above embodiments, this application also provides an NFC function control device, the various modules of which can implement the various steps of the NFC function control method.

[0250] It should be noted that the information interaction and execution process between the above-mentioned devices / units are based on the same concept as the method embodiments of this application. For details on their specific functions and technical effects, please refer to the method embodiments section, and they will not be repeated here.

[0251] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the above-described division of functional units and modules is merely an example. In practical applications, the above functions can be assigned to different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiments can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit. Furthermore, the specific names of the functional units and modules are only for easy differentiation and are not intended to limit the scope of protection of this application. The specific working process of the units and modules in the above system can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.

[0252] This application also provides a wearable device, which includes at least one memory, at least one processor, and a computer program stored in the at least one memory and executable on the at least one processor. When the processor executes the computer program, it causes the wearable device to perform the steps described in any of the above method embodiments. For example, the structure of the wearable device can be as follows: Figure 1 As shown.

[0253] This application also provides a second terminal device, which includes at least one memory, at least one processor, and a computer program stored in the at least one memory and executable on the at least one processor. When the processor executes the computer program, it causes the second terminal device to perform the steps executed by the second terminal device in any of the above method embodiments.

[0254] This application also provides a computer-readable storage medium storing a computer program, which, when executed by a wearable device, causes the wearable device to perform the steps described in any of the above method embodiments.

[0255] This application also provides a computer-readable storage medium storing a computer program. When the computer program is executed by a second terminal device, it causes the second terminal device to perform the steps executed by the second terminal device in any of the above method embodiments.

[0256] This application provides a computer program product, which includes a computer program that, when run on a wearable device, causes the wearable device to perform the steps described in any of the above method embodiments.

[0257] This application provides a computer program product, which includes a computer program that, when run on a second terminal device, causes the second terminal device to perform the steps executed by the second terminal device in any of the above method embodiments.

[0258] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, all or part of the processes in the methods of the above embodiments of this application can be implemented by a computer program instructing related hardware. The computer program can be stored in a computer-readable storage medium, and when executed by a processor, it can implement the steps of the various method embodiments described above. The computer program includes computer program code, which can be in the form of source code, object code, executable files, or certain intermediate forms. The computer-readable storage medium can include at least: any entity or device capable of carrying computer program code to a device / equipment, a recording medium, a computer memory, a read-only memory (ROM), a random access memory (RAM), an electrical carrier signal, a telecommunication signal, and a software distribution medium. Examples include USB flash drives, portable hard drives, magnetic disks, or optical disks.

[0259] In the above embodiments, the descriptions of each embodiment have different focuses. For parts that are not described in detail or recorded in a certain embodiment, please refer to the relevant descriptions of other embodiments.

[0260] Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.

[0261] In the embodiments provided in this application, it should be understood that the disclosed apparatus / devices and methods can be implemented in other ways. For example, the apparatus / device embodiments described above are merely illustrative. For instance, the division of modules or units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between apparatuses or units may be electrical, mechanical, or other forms.

[0262] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0263] The above-described embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application, and should all be included within the protection scope of this application.

Claims

1. A control method for NFC function, characterized in that, Applied to wearable devices, the method includes: Obtain a target service request from a first terminal device; the target service request is used to request interaction for a target service, and the first terminal device includes an NFC tag for near-field communication. Preset detection operation; In response to the target service request and the preset operation, the NFC card reading function of the wearable device is enabled; Read the first information of the NFC tag, and interact with the first terminal device to perform the target service based on the first information.

2. The method according to claim 1, characterized in that, The process of obtaining the target service request from the first terminal device includes: The target service request of the first terminal device is obtained through the second terminal device.

3. The method according to claim 2, characterized in that, The wearable device is connected to the second terminal device via Bluetooth; the step of obtaining the target service request from the first terminal device through the second terminal device includes: The target service request of the first terminal device is obtained from the second terminal device via Bluetooth connection.

4. The method according to claim 2 or 3, characterized in that, When the wearable device is connected to the second terminal device, the wearable device does not enable Bluetooth scanning.

5. The method according to claim 1, characterized in that, Before obtaining the target service request of the first terminal device, the method further includes: In response to the detection that the first duration of the disconnection between the second terminal device and the wearable device is greater than or equal to a first preset duration, the Bluetooth scanning function of the wearable device is enabled.

6. The method according to claim 5, characterized in that, The process of obtaining the target service request from the first terminal device includes: After enabling the Bluetooth scanning function of the wearable device, the Bluetooth broadcast sent by the first terminal device is obtained; Based on the Bluetooth broadcast, the target service request of the first terminal device is obtained.

7. The method according to claim 5 or 6, characterized in that, After enabling the Bluetooth scanning function of the wearable device, the method further includes: In response to the wearable device connecting to the second terminal device, the Bluetooth scanning function of the wearable device is turned off.

8. The method according to any one of claims 1 to 7, characterized in that, After enabling the NFC card reader function of the wearable device, the method further includes: In response to the completion of the target service by the wearable device and the first terminal device, the NFC card reading function of the wearable device is turned off.

9. The method according to any one of claims 1 to 7, characterized in that, After enabling the NFC card reader function of the wearable device, the method further includes: Obtain the second duration, which is the duration during which the wearable device enables the NFC card reading function; When the second duration is greater than or equal to the second preset duration, the NFC card reading function of the wearable device is turned off.

10. The method according to any one of claims 1 to 9, characterized in that, The target business includes payment services or device connectivity services.

11. A control method for NFC function, characterized in that, Applied to a second terminal device, the method includes: Acquire Bluetooth broadcast from a first terminal device; the first terminal device includes an NFC (Approach Communication) tag. Based on the Bluetooth broadcast, the target service request of the first terminal device is determined; the target service request is used to request interaction for the target service. The target service request is sent to the wearable device, causing the wearable device to respond to the target service request and a preset operation, activate the NFC card reader function of the wearable device, read the first information of the NFC tag through the NFC card reader function, and interact with the first terminal device for the target service based on the first information.

12. The method according to claim 11, characterized in that, The second terminal device is connected to the wearable device via Bluetooth; sending the target service request to the wearable device includes: The target service request is sent to the wearable device via Bluetooth connection.

13. The method according to claim 11 or 12, characterized in that, When the wearable device is connected to the second terminal device, the wearable device does not enable Bluetooth scanning.

14. The method according to any one of claims 11 to 13, characterized in that, The target business includes payment services or device connectivity services.

15. A control system with NFC functionality, characterized in that, The system includes a wearable device and a second terminal device, wherein the wearable device and the second terminal device are communicatively connected. The second terminal device is used to perform the steps in the control method for the NFC function according to any one of claims 11 to 14; The wearable device is used to perform the steps in the control method for the NFC function according to any one of claims 1 to 10.

16. The system according to claim 15, characterized in that, The system also includes a first terminal device, which includes an NFC tag; The first terminal device is used to send Bluetooth broadcasts; The first terminal device is further configured to interact with the wearable device for a target service after the wearable device reads the first information in the NFC tag.

17. A wearable device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it enables the wearable device to implement the control method for the NFC function as described in any one of claims 1 to 10.

18. A second terminal device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it enables the second terminal device to implement the control method for the NFC function as described in any one of claims 11 to 14.

19. A computer program product, the computer program product comprising a computer program, characterized in that, When the computer program is executed by the wearable device, it enables the wearable device to implement the control method for the NFC function as described in any one of claims 1 to 10; or when the computer program is executed by the second terminal device, it enables the second terminal device to implement the control method for the NFC function as described in any one of claims 11 to 14.

20. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by the wearable device, it enables the wearable device to implement the control method for the NFC function as described in any one of claims 1 to 10; or when the computer program is executed by the second terminal device, it enables the second terminal device to implement the control method for the NFC function as described in any one of claims 11 to 14.