Communication method and electronic equipment

Through short-distance communication and server collaboration, the binding process between electronic devices and wearable devices is simplified, and the problem of complex and inefficient binding in the existing technology is solved, efficient and simple multi-device binding is achieved, and user experience is improved.

CN120455944APending Publication Date: 2025-08-08HUAWEI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410174064.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-02-07
Publication Date
2025-08-08

AI Technical Summary

Technical Problem

The current process of binding wearable devices for electronic devices is complex and has low efficiency, which affects the user experience.

Method used

Directly or indirectly exchange binding messages between electronic devices and wearable devices through short-range communication (such as Bluetooth, WiFi, NFC), simplify the binding process, reduce distance and network connection requirements, and use servers and bound devices to assist in binding multiple wearable devices.

Benefits of technology

It improves the efficiency and user experience of electronic devices binding wearable devices, reduces the distance and network requirements of the binding process, and supports binding multiple wearable devices at a time.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120455944A_ABST
    Figure CN120455944A_ABST
Patent Text Reader

Abstract

The invention provides a communication method and electronic equipment, the method is applied to the electronic equipment, and the method comprises the following steps: in response to a received first operation, broadcasting a first message; wherein the first message is used for requesting binding; receiving a message used for binding the first wearable device and a message used for binding the second wearable device through near field communication; wherein the first wearable device and the electronic device are connected through near field communication; and sending a second message for requesting to bind the first wearable device and the second wearable device to the server. The method can improve the efficiency of binding the electronic device to the wearable device and improve the user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of electronic equipment, and in particular to a communication method and electronic equipment. Background Art

[0002] Users can bind wearable devices (such as children's watches) through electronic devices such as mobile phones and tablets. Currently, the process of binding electronic devices to wearable devices is complex and inefficient. How to simplify the binding process, improve binding efficiency, and enhance the user experience are currently unresolved issues. Summary of the Invention

[0003] The present application provides a communication method and electronic device for improving the efficiency of binding electronic devices to wearable devices and improving user experience.

[0004] In a first aspect, an embodiment of the present application provides a communication method, applied to an electronic device, the method comprising: broadcasting a first message in response to a received first operation; wherein the first message is used to request binding; receiving a message for binding a first wearable device and a message for binding a second wearable device through near-field communication; wherein the first wearable device and the electronic device are connected through near-field communication; and sending a second message to a server for requesting binding the first wearable device and the second wearable device.

[0005] In this method, the electronic device can execute the process of binding the first wearable device and the second wearable device in response to the received first operation. This process is simple to operate and can improve the binding efficiency and user experience. In this process, the electronic device can bind multiple wearable devices at a time, so the binding efficiency is high. In summary, the above method can simplify the operation of the process of binding the electronic device to the wearable device, improve the efficiency of binding the electronic device to the wearable device, and enhance the user experience.

[0006] In one possible design, the message for binding the first wearable device and the message for binding the second wearable device come from the first wearable device; wherein, the second wearable device and the first wearable device are connected via short-range communication.

[0007] Based on this method, even if the second wearable device is far away from the electronic device and is not connected to the network, it can still be bound to the electronic device. Therefore, this method can reduce the distance and network requirements of the binding process, thereby reducing the difficulty of binding multiple wearable devices to the electronic device. Therefore, this method has high binding efficiency and good binding effect.

[0008] In one possible design, the receiving of a message for binding the first wearable device and a message for binding the second wearable device specifically includes: receiving a third message, the third message including the message for binding the first wearable device and the message for binding the second wearable device; or, receiving a fourth message and a fifth message; wherein the fourth message includes the message for binding the first wearable device, and the fifth message includes the message for binding the second wearable device.

[0009] In this method, the electronic device can receive a message for binding multiple wearable devices and electronic devices through one message or multiple messages. This method is highly practical and helps to achieve binding in a variety of different scenarios.

[0010] In one possible design, the fifth message is a message from the second wearable device forwarded by the first wearable device.

[0011] Based on this method, the electronic device can reduce the distance and network requirements of the binding process for the second wearable device by receiving the message forwarded by the first wearable device from the second wearable device, thereby improving the binding success rate and binding efficiency.

[0012] In one possible design, the message for binding the first wearable device comes from the first wearable device, and the message for binding the second wearable device comes from the second wearable device; wherein, the second wearable device and the electronic device are connected via short-range communication.

[0013] Based on this method, the electronic device can receive binding messages from multiple wearable devices through short-range communication, reducing the distance and network requirements of the binding process for multiple wearable devices, thereby improving the binding success rate and binding efficiency.

[0014] In one possible design, the method also includes: sending a sixth message to the server, the sixth message being used to request binding other wearable devices with the aid of the bound wearable device; receiving a seventh message sent by the server, the seventh message including a message for binding a fourth wearable device and the electronic device; and sending an eighth message to the server requesting binding the fourth wearable device.

[0015] Based on this method, the electronic device can achieve the effect of binding with more wearable devices with the help of the already bound wearable devices, thereby improving the binding efficiency.

[0016] In one possible design, the seventh message is a message from a fifth wearable device forwarded by the server; wherein, the fifth wearable device is a device bound to the electronic device, and the fifth wearable device is connected to the fourth wearable device through short-range communication.

[0017] Based on this method, the electronic device can reduce the distance and network requirements of the binding process for other wearable devices by receiving messages for binding other wearable devices forwarded by the server and the bound fifth wearable device, thereby improving the binding success rate and binding efficiency.

[0018] In one possible design, the short-range communication includes any one of the following: Bluetooth communication, wireless fidelity WiFi communication, and near-field communication NFC.

[0019] In this method, electronic devices support short-range communication through different methods, which can improve the practicality of the solution. Based on this, electronic devices can choose the appropriate method to achieve short-range communication based on actual application scenarios.

[0020] In one possible design, the first operation is an operation acting on a first control in the first interface; wherein the first control is used to trigger binding of multiple wearable devices.

[0021] In this method, the operation of the user triggering the electronic device to bind multiple wearable devices at one time is relatively simple and has high operation efficiency.

[0022] In a second aspect, an embodiment of the present application provides a communication method, applied to a first wearable device, the method comprising: receiving a first message sent by an electronic device; wherein the first message is used to request binding; in response to the first message, broadcasting a second message; wherein the second message is used to indicate that the electronic device requests binding; receiving a third message from a second wearable device through short-range communication, the third message being used to bind the second wearable device and the electronic device; and sending a fourth message to the electronic device, the fourth message including a message for binding the second wearable device and the electronic device.

[0023] In this method, the first wearable device can be used as a relay between the electronic device and the second wearable device, assisting in binding the electronic device and the second wearable device. This process is simple to operate and can improve binding efficiency and user experience.

[0024] Optionally, receiving the first message sent by the electronic device specifically includes: receiving the first message broadcast by the electronic device. Optionally, sending the fourth message to the electronic device specifically includes: sending the fourth message to the electronic device via near field communication.

[0025] The above method can reduce the distance and network requirements of the binding process for the first wearable device, thereby making it more difficult to bind the first wearable device to the electronic device. Therefore, the binding efficiency is higher and the binding effect is better.

[0026] In one possible design, the first wearable device is a device that is bound to the electronic device.

[0027] Based on this method, the first wearable device that has been bound to an electronic device can assist the electronic device in completing the binding with other electronic devices, which can further enhance the binding effect and improve the binding efficiency.

[0028] In one possible design, the fourth message also includes a message for binding the first wearable device and the electronic device.

[0029] Based on this method, the first wearable device can assist the electronic device in binding multiple wearable devices at one time, so the binding efficiency is high.

[0030] In one possible design, after receiving a first message sent by an electronic device and before broadcasting a second message in response to the first message, the method also includes: displaying a first interface, the first interface including first information and a first control; wherein the first information is used to prompt whether to agree to bind the electronic device; the first control is used to confirm binding the electronic device; and receiving a first operation acting on the first control.

[0031] Based on this method, the first wearable device can execute the process of binding with the electronic device after the user confirms, and then can process according to the user's intention to improve the user experience.

[0032] In one possible design, before broadcasting the second message in response to the first message, the method also includes: displaying a second interface in response to the first operation, the second interface including second information and a second control; wherein the second information is used to prompt whether to act as a relay; the second control is used to determine to act as a relay; and receiving a second operation acting on the second control.

[0033] Based on this method, the first wearable device can act as a relay to execute the process of binding with the electronic device after the user confirms, and then can process according to the user's intention to improve the user experience.

[0034] In one possible design, the short-range communication includes any one of the following: Bluetooth communication, WiFi communication, and NFC.

[0035] In this method, the first wearable device supports short-range communication through different methods, which can improve the practicality of the solution. Based on this, the first wearable device can select an appropriate method to achieve short-range communication based on actual application scenarios.

[0036] In a third aspect, an embodiment of the present application provides a communication method, applied to a first wearable device, the method comprising: receiving a first message sent by a server; wherein the first message is used to request binding; in response to the first message, broadcasting a second message; wherein the second message is used to indicate that the electronic device requests binding; receiving a third message from a second wearable device through near-field communication, the third message being used to bind the second wearable device and the electronic device; and sending a fourth message to the server, the fourth message including a message for binding the second wearable device and the electronic device.

[0037] In this method, the first wearable device can be used as a relay between the server and the second wearable device, assisting in the interaction between the server and the second wearable device. The server can act as a relay between the first wearable device and the electronic device, assisting in the interaction between the first wearable device and the electronic device. Therefore, the first wearable device can collaborate with the server to assist in binding the second wearable device to the electronic device. This process is simple to operate and can improve binding efficiency and user experience.

[0038] Optionally, receiving the first message sent by the server specifically includes: receiving the first message from the electronic device forwarded by the server via mobile communication. Optionally, sending the fourth message to the server specifically includes: sending the fourth message to the server via mobile communication.

[0039] Based on this method, a first wearable device that supports mobile communications can act as a relay between a second wearable device and a server, enabling interaction with the server even if the second wearable device cannot perform mobile communications. Therefore, this method can reduce the network requirements of the second relay device during the binding process, thereby improving binding efficiency.

[0040] In one possible design, the first wearable device is a device that is bound to the electronic device.

[0041] Based on this method, the first wearable device that has been bound to an electronic device can cooperate with the server to assist the electronic device in completing the binding with other electronic devices, which can further enhance the binding effect and improve the binding efficiency.

[0042] In one possible design, the fourth message also includes a message for binding the first wearable device and the electronic device.

[0043] Based on this method, the first wearable device can cooperate with the server to assist the electronic device in binding multiple wearable devices at one time, so the binding efficiency is high.

[0044] In one possible design, after receiving a first message sent by the server and before broadcasting a second message in response to the first message, the method further includes: displaying a first interface, the first interface including first information and a first control; wherein the first information is used to prompt whether to agree to bind the electronic device; the first control is used to confirm binding the electronic device; and receiving a first operation acting on the first control.

[0045] Based on this method, the first wearable device can participate in the binding process after the user confirms, and then can be processed according to the user's intention to improve the user experience.

[0046] In one possible design, before broadcasting the second message in response to the first message, the method also includes: displaying a second interface in response to the first operation, the second interface including second information and a second control; wherein the second information is used to prompt whether to act as a relay; the second control is used to determine to act as a relay; and receiving a second operation acting on the second control.

[0047] Based on this method, the first wearable device can participate in the binding process as a relay after the user confirms, and then process according to the user's intention to improve the user experience.

[0048] In one possible design, the short-range communication includes any one of the following: Bluetooth communication, WiFi communication, and NFC.

[0049] In this method, the first wearable device supports short-range communication through different methods, which can improve the practicality of the solution. Based on this, the first wearable device can select an appropriate method to achieve short-range communication based on actual application scenarios.

[0050] In a fourth aspect, an embodiment of the present application provides a communication method, applied to a second wearable device, the method comprising: receiving a first message sent by an electronic device or a first wearable device; wherein the first message is used to indicate that the electronic device requests binding; in response to the first message, sending a second message to the electronic device or the first wearable device via short-range communication, the second message being used to bind the second wearable device and the electronic device.

[0051] Based on this method, the second wearable device can be bound to the electronic device with the assistance of the first wearable device. Even if the second wearable device is far away from the electronic device and is not connected to the network, it can still be bound to the electronic device with the assistance of the first wearable device. Therefore, this method can reduce the distance and network requirements of the binding process for the second wearable device, thereby reducing the difficulty of binding the second wearable device to the electronic device and improving the efficiency of binding the second wearable device to the electronic device.

[0052] In one possible design, the short-range communication includes any one of the following: Bluetooth communication, WiFi communication, and NFC.

[0053] In this method, the second wearable device supports short-range communication through different methods, which can improve the practicality of the solution. Based on this, the second wearable device can choose an appropriate method to achieve short-range communication based on the actual application scenario.

[0054] In one possible design, after receiving a first message sent by an electronic device or a first wearable device, and before sending a second message to the electronic device or the first wearable device through near-field communication in response to the first message, the method further includes: displaying a first interface, the first interface including first information and a first control; wherein the first information is used to prompt whether to agree to bind the electronic device; the first control is used to confirm binding the electronic device; and receiving a first operation acting on the first control.

[0055] Based on this method, the second wearable device can participate in the binding process after the user confirms, and then can be processed according to the user's intention to improve the user experience.

[0056] In one possible design, before sending a second message to the electronic device or the first wearable device via near-field communication in response to the first message, the method further includes: displaying a second interface in response to the first operation, the second interface including second information and a second control; wherein the second information is used to prompt whether to act as a relay; the second control is used to determine not to act as a relay; and receiving a second operation acting on the second control.

[0057] Based on this method, the first wearable device can stop acting as a relay and participate in the binding process after the user confirms, and can then process according to the user's intention to improve the user experience.

[0058] In a fifth aspect, an embodiment of the present application provides a communication method, applied to a server, the method comprising: receiving a first message from an electronic device, the first message being used to request binding of other wearable devices with the aid of a bound wearable device; in response to the first message, determining a first wearable device that is bound to the electronic device; sending the first message to the first wearable device; receiving a second message from the first wearable device, the second message being used to bind a second wearable device and the electronic device; and sending the second message to the electronic device.

[0059] In this method, the server can act as a relay between the first wearable device and the electronic device, assisting in the interaction between the first wearable device and the electronic device. Messages from the first wearable device can be used to bind the second wearable device to the electronic device. Therefore, the server can collaborate with the first wearable device to assist in binding the second wearable device to the electronic device. This process is simple to operate and can improve binding efficiency and user experience.

[0060] In one possible design, the second message is a message from the second wearable device forwarded by the first wearable device; wherein the second wearable device and the first wearable device are connected via short-range communication.

[0061] Based on this method, the first wearable device can be used as a relay between the server and the second wearable device, assisting in the interaction between the server and the second wearable device. In addition, this method can reduce the distance and network requirements of the second wearable device during the binding process, thereby making the binding process more difficult and improving the binding efficiency.

[0062] In one possible design, the short-range communication includes any one of the following: Bluetooth communication, WiFi communication, and NFC.

[0063] In a sixth aspect, the present application provides an electronic device, comprising a memory and one or more processors; wherein the memory is used to store computer program code, and the computer program code comprises computer instructions; when the computer instructions are executed by the one or more processors, the electronic device executes the method described in the first aspect or any possible design of the first aspect, or executes the method described in the second aspect or any possible design of the second aspect, or executes the method described in the third aspect or any possible design of the third aspect, or executes the method described in the fourth aspect or any possible design of the fourth aspect, or executes the method described in the fifth aspect or any possible design of the fifth aspect.

[0064] In the seventh aspect, the present application provides a computer-readable storage medium, which stores a computer program. When the computer program runs on an electronic device, the electronic device executes the method described in the first aspect or any possible design of the first aspect, or executes the method described in the second aspect or any possible design of the second aspect, or executes the method described in the third aspect or any possible design of the third aspect, or executes the method described in the fourth aspect or any possible design of the fourth aspect, or executes the method described in the fifth aspect or any possible design of the fifth aspect.

[0065] In an eighth aspect, the present application provides a computer program product, comprising a computer program or instructions. When the computer program or instructions are run on an electronic device, the electronic device executes the method described in the first aspect or any possible design of the first aspect, or executes the method described in the second aspect or any possible design of the second aspect, or executes the method described in the third aspect or any possible design of the third aspect, or executes the method described in the fourth aspect or any possible design of the fourth aspect, or executes the method described in the fifth aspect or any possible design of the fifth aspect.

[0066] In a ninth aspect, the present application provides a chip system, comprising a processor and a memory, wherein the memory stores instructions; when the instructions are executed by the processor, the method described in the first aspect or any possible design of the first aspect is implemented, or the method described in the second aspect or any possible design of the second aspect is implemented, or the method described in the third aspect or any possible design of the third aspect is implemented, or the method described in the fourth aspect or any possible design of the fourth aspect is implemented, or the method described in the fifth aspect or any possible design of the fifth aspect is implemented. The chip system may be composed of a chip, or may include a chip and other discrete devices.

[0067] The beneficial effects of the sixth to ninth aspects mentioned above can be referred to the beneficial effects of any one of the first to fifth aspects mentioned above, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0068] Figure 1 A schematic diagram of the hardware architecture of an electronic device provided in an embodiment of the present application;

[0069] Figure 2 A schematic diagram of the software architecture of an electronic device provided in an embodiment of the present application;

[0070] Figure 3 A schematic diagram of the architecture of a possible communication system provided in an embodiment of the present application;

[0071] Figure 4 A schematic diagram of the architecture of a possible communication system provided in an embodiment of the present application;

[0072] Figure 5 A schematic diagram of a communication method provided in an embodiment of the present application;

[0073] Figure 6 A schematic diagram of a binding interface provided in an embodiment of the present application;

[0074] Figure 7A schematic diagram of a binding interface provided in an embodiment of the present application;

[0075] Figure 8 A schematic diagram of a relay control interface provided in an embodiment of the present application;

[0076] Figure 9 A schematic diagram of an interface corresponding to a prompt information provided in an embodiment of the present application;

[0077] Figure 10 A schematic diagram of the architecture of a possible communication system provided in an embodiment of the present application;

[0078] Figure 11 A schematic diagram of a communication method provided in an embodiment of the present application;

[0079] Figure 12 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0080] In order to make the purpose, technical solutions and advantages of the embodiments of the present application clearer, the embodiments of the present application will be further described in detail below with reference to the accompanying drawings.

[0081] In the description of the embodiments of this application, the terms "first" and "second" are used for descriptive purposes only and should not be understood to indicate or imply relative importance or implicitly specify the number of technical features indicated. Therefore, features specified as "first" or "second" may explicitly or implicitly include one or more of the features.

[0082] To facilitate understanding, exemplary descriptions of concepts related to this application are provided for reference.

[0083] An electronic device may be a device with display, processing and communication functions.

[0084] In some embodiments of the present application, the electronic device may be a computing device such as a server. For example, the electronic device may be a cloud server.

[0085] In some embodiments of the present application, the electronic device may also be a terminal device, such as a portable terminal device (for example, a mobile phone, a tablet computer, a laptop computer, an ultra-mobile personal computer (UMPC), a netbook, etc.), a wearable device with wireless communication function (for example, a watch, a bracelet, etc.), a vehicle-mounted terminal device, an augmented reality (AR) / virtual reality (VR) device, a personal digital assistant (PDA), a smart home device (for example, a smart TV, a smart speaker, etc.), an intelligent robot, workshop equipment, a wireless terminal in self-driving, a wireless terminal in remote medical surgery, a wireless terminal in a smart grid, a wireless terminal in transportation safety, a wireless terminal in a smart city, or a wireless terminal in a smart home, a flight device (for example, an intelligent robot, a drone, an airplane), etc.

[0086] Among them, exemplary embodiments of portable terminal devices include but are not limited to Or a portable terminal device with other operating systems. The portable terminal device may also be other portable terminal devices, such as a laptop computer with a touch-sensitive surface (eg, a touch panel).

[0087] A wearable device is a portable device that can be worn directly on the user's body or integrated into the user's clothing or accessories.

[0088] In the embodiment of the present application, the wearable device may also be referred to as a wearable device.

[0089] It should be understood that in the embodiments of the present application, "at least one" refers to one or more, and "more" refers to two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: the existence of A alone, the existence of A and B at the same time, and the existence of B alone, where A and B can be singular or plural. The character " / " generally indicates that the previous and next associated objects are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b or c can represent: a, b, c, a and b, a and c, b and c, or a, b and c, where a, b, c can be single or multiple.

[0090] Currently, users can bind and control wearable devices through electronic devices such as mobile phones and tablets. As the number of wearable devices increases, the number of wearable devices that electronic devices need to bind and control is also increasing. However, current electronic devices can only bind to one wearable device at a time, so the binding efficiency is low. In addition, in some binding scenarios, the wearable device needs to be kept in close proximity to the electronic device, and the wearable device needs to have network connectivity to execute the binding process, which further increases the difficulty of binding.

[0091] For example, children's watches are a type of wearable device that is currently widely used. Currently, there are more and more scenarios in which users need to bind and control multiple children's watches through one mobile phone. However, current technology can only support one mobile phone binding to one children's watch at a time. Currently, when a mobile phone is bound to a children's watch, the user can control the display of a QR code on the children's watch and use the mobile phone to scan the QR code displayed on the children's watch to start the corresponding binding process. The binding process of this solution takes a long time, and the children's watch needs to maintain a network connection during the binding process. For scenarios where a mobile phone is bound to multiple children's watches at the same time, or the children's watch is not connected to the Internet, the current technology cannot realize the binding between the mobile phone and the children's watch, resulting in low binding efficiency and affecting the user experience.

[0092] To address the above issues and to reduce the difficulty and improve the efficiency of binding electronic devices to wearable devices, the present invention provides a communication method and electronic device that can easily and efficiently bind an electronic device to multiple wearable devices. This solution can also simplify user operations during the binding process and reasonably reduce the rigid requirements for distance and network during the binding process, making it easier for the electronic device to control and manage multiple wearable devices.

[0093] The technical solutions provided in the embodiments of this application can be implemented by any electronic device with display and processing capabilities, or by a system consisting of multiple electronic devices with display, processing, and communication capabilities. For an introduction to the performance of the electronic devices, please refer to the description in the above conceptual description or the relevant description below.

[0094] The following description will be made using the application of the technical solution of the present application in an electronic device or in a system including multiple electronic devices as an example. The implementation process in other scenarios is similar and will not be repeated.

[0095] See below Figure 1 , the structure of the electronic device to which the method provided in the embodiments of the present application is applicable is introduced.

[0096] like Figure 1As shown in , the electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a USB interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an 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, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a SIM card interface 195, etc.

[0097] The sensor module 180 may include a gyroscope sensor, an acceleration sensor, a proximity light sensor, a fingerprint sensor, a touch sensor, a temperature sensor, a pressure sensor, a distance sensor, a magnetic sensor, an ambient light sensor, an air pressure sensor, a bone conduction sensor, and the like.

[0098] It is understandable that Figure 1 The electronic device 100 shown is merely an example and does not constitute a limitation to the electronic device, and the electronic device may have more or fewer components than shown in the figure, may combine two or more components, or may have a different component configuration. Figure 1 The various components shown in the drawings may be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and / or application specific integrated circuits.

[0099] The processor 110 may include one or more processing units, for example: the processor 110 may include an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Among them, different processing units can be independent devices or integrated into one or more processors. Among them, the controller can be the nerve center and command center of the electronic device 100. The controller can generate an operation control signal based on the instruction opcode and timing signal to complete the control of instruction fetching and execution.

[0100] Processor 110 may also include a memory for storing instructions and data. In some embodiments, the memory in processor 110 is a cache memory. This memory can store instructions or data that have just been used or are being recycled by processor 110. If processor 110 needs to use the same instruction or data again, it can directly access the memory. This avoids duplicate accesses, reduces processor 110 latency, and thus improves system efficiency.

[0101] The execution of the communication method provided in the embodiment of the present application can be controlled by the processor 110 or completed by calling other components, such as calling the processing program of the embodiment of the present application stored in the internal memory 121, or calling the processing program of the embodiment of the present application stored in a third-party device through the external memory interface 120, to control the wireless communication module 160 to communicate data with other devices, thereby improving the intelligence and convenience of the electronic device 100 and enhancing the user experience. The processor 110 can include different devices. For example, when a CPU and a GPU are integrated, the CPU and the GPU can cooperate to execute the communication method provided in the embodiment of the present application. For example, part of the algorithm in the communication method is executed by the CPU, and another part of the algorithm is executed by the GPU to obtain faster processing efficiency.

[0102] The display screen 194 is used to display images, videos, etc. The display screen 194 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 or an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), a MiniLED, a MicroLED, a Micro-oLed, a quantum dot light-emitting diode (QLED), etc. In some embodiments, the electronic device 100 may include one or N display screens 194, where N is a positive integer greater than 1. The display screen 194 can be used to display information input by the user or information provided to the user, as well as various graphical user interfaces (GUIs). For example, the display screen 194 can display photos, videos, web pages, or files.

[0103] In the embodiment of the present application, the display screen 194 can be an integrated flexible display screen, or a spliced display screen consisting of two rigid screens and a flexible screen located between the two rigid screens.

[0104] Camera 193 (either a front-facing camera or a rear-facing camera, or one camera serving as both) is used to capture still images or videos. Typically, camera 193 includes a photosensitive element, such as a lens assembly and an image sensor. The lens assembly includes multiple lenses (convex or concave) that capture light signals reflected from the object to be photographed and transmit the captured light signals to the image sensor. The image sensor generates an original image of the object to be photographed based on the light signals.

[0105] The internal memory 121 can be used to store computer executable program code, which includes instructions. The processor 110 executes various functional applications and data processing of the electronic device 100 by running the instructions stored in the internal memory 121. The internal memory 121 may include a program storage area and a data storage area. Among them, the program storage area can store the code of the operating system, application program (such as the function corresponding to the solution of the present application, etc.). The data storage area can store data created during the use of the electronic device 100, etc.

[0106] The internal memory 121 may also store one or more computer programs corresponding to the algorithms of the present application. The one or more computer programs are stored in the internal memory 121 and configured to be executed by the one or more processors 110. The one or more computer programs include instructions that can be used to perform the various steps in the following embodiments.

[0107] In addition, the internal memory 121 may include a high-speed random access memory and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc.

[0108] Of course, the code of the algorithm of the embodiment of the present application can also be stored in an external memory. In this case, the processor 110 can run the code of the algorithm of the embodiment of the present application stored in the external memory through the external memory interface 120.

[0109] A touch sensor, also known as a "touch panel," can be provided on the display screen 194. The touch sensor and the display screen 194 form a touch display screen, also known as a "touch screen." The touch sensor is used to detect touch operations applied to or near the touch sensor. The touch sensor can transmit the detected touch operations to the application processor to determine the type of touch event. Visual output related to the touch operation can be provided through the display screen 194. In other embodiments, the touch sensor can also be provided on the surface of the electronic device 100, at a location different from that of the display screen 194.

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

[0111] Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 100 can be used to cover a single or multiple 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 other embodiments, the antennas can be used in conjunction with a tuning switch.

[0112] The mobile communication module 150 can provide wireless communication solutions for the electronic device 100, including solutions for the second generation (2G), third generation (3G), fourth generation (4G), fifth generation (5G), and sixth generation (6G). The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), and the like. The mobile communication module 150 can receive electromagnetic waves from the antenna 1, filter and amplify the received electromagnetic waves, and transmit them to the modem processor for demodulation. The mobile communication module 150 can also amplify the signals modulated by the modem processor and convert them into electromagnetic waves for radiation via the antenna 1. In some embodiments, at least some of the functional modules of the mobile communication module 150 may be provided in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 may be provided in the same device as at least some of the modules of the processor 110. In the embodiment of the present application, the mobile communication module 150 can also be used to exchange information with other devices.

[0113] The modem processor may include a modulator and a demodulator. The modulator is used to modulate the low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is used to demodulate 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 being processed by the baseband processor, the low-frequency baseband signal is passed to the application processor. The application processor outputs a sound signal through an audio device (not limited to the speaker 170A, the receiver 170B, etc.) or displays an image or video through the display screen 194. In some embodiments, the modem processor may be an independent device. In other embodiments, the modem processor may be independent of the processor 110 and be set in the same device as the mobile communication module 150 or other functional modules.

[0114] The wireless communication module 160 can provide wireless communication solutions applied to the electronic device 100, including wireless local area networks (WLAN) (such as wireless fidelity (WiFi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared technology (IR), etc. 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 the antenna 2, frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110. The wireless communication module 160 can also receive the signal to be transmitted from the processor 110, frequency modulate it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2. In the embodiment of the present application, the wireless communication module 160 can be used to establish a connection with other electronic devices and exchange data. Or the wireless communication module 160 can be used to access an access point device, send control instructions to other electronic devices, or receive data sent from other electronic devices.

[0115] In addition, the electronic device 100 can implement audio functions through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone jack 170D, and the application processor. For example, music playback, recording, etc. The electronic device 100 can receive input from the key 190 and generate key signal input related to the user settings and function control of the electronic device 100. The electronic device 100 can use the motor 191 to generate a vibration prompt (such as an incoming call vibration prompt). The indicator 192 in the electronic device 100 can be an indicator light, which can be used to indicate the charging status, power changes, and can also be used to indicate messages, missed calls, notifications, etc. The SIM card interface 195 in the electronic device 100 is used to connect the SIM card. The SIM card can be inserted into the SIM card interface 195 or pulled out from the SIM card interface 195 to achieve contact and separation with the electronic device 100.

[0116] It should be understood that in actual applications, the electronic device 100 may include Figure 1The embodiments of the present application are not limited to more or fewer components shown. The illustrated electronic device 100 is merely an example, and the electronic device 100 may have more or fewer components than shown, may combine two or more components, or may have a different component configuration. The various components shown in the figures may be implemented in hardware, including one or more signal processing and / or application-specific integrated circuits, software, or a combination of hardware and software.

[0117] The software system of the electronic device 100 can adopt a layered architecture, an event-driven architecture, a micro-kernel architecture, a microservice architecture, or a cloud architecture. The layered architecture divides the software into several layers, each with a clear role and division of labor. The layers communicate with each other through software interfaces. For example, Figure 2 As shown in the figure, the software architecture can be divided into four layers, from top to bottom: application layer, application framework layer (framework, FWK), runtime and system library, and (Linux) kernel layer.

[0118] The application layer is the top layer of the operating system, including native applications of the operating system, such as camera, gallery, calendar, Bluetooth, music, video, information, etc., and may also include third-party applications. The application involved in the embodiment of the present application is referred to as application (APP), which is a software program that can realize one or more specific functions. Typically, multiple applications can be installed in an electronic device, such as a camera application, a mailbox application, etc. The applications mentioned below can be system applications that are installed on the electronic device when it leaves the factory, or they can be third-party applications that the user downloads from the Internet or obtains from other electronic devices while using the electronic device.

[0119] Of course, developers can write applications and install them into this layer. In one possible implementation, applications can be developed using the Java language by calling the application programming interface (API) provided by the application framework layer. Developers can use the application framework to interact with the underlying layer of the operating system (such as the kernel layer) and develop their own applications.

[0120] The application framework layer provides the application API and programming framework. It includes predefined functions and can include a window manager, content provider, view system, telephony manager, resource manager, and notification manager.

[0121] The window manager is used to manage window programs. The window manager can obtain the display size, determine whether there is a status bar, lock the display (or screen), capture the display, etc.

[0122] Content providers are used to store and retrieve data and make it accessible to applications. The data may include files (such as documents, videos, images, audio), text, and other information.

[0123] The view system includes visual controls, such as those that display text, images, and documents. The view system is used to build applications. The interface within a display window can be composed of one or more views. For example, the interface for a text notification icon might include a view that displays text and a view that displays an image.

[0124] The phone manager provides communication functionality for electronic devices. The notification manager enables applications to display notifications in the status bar, which can be used to convey informational messages and automatically disappear after a short period of time without user interaction.

[0125] The runtime includes the core library and the virtual machine. The runtime is responsible for the scheduling and management of the system.

[0126] The system's core library consists of two parts: one containing the Java language's callable functions and the other the system's core library. The application layer and application framework layer run within a virtual machine. For example, in Java, the virtual machine executes Java files from the application and framework layers as binary files. The virtual machine manages object lifecycles, stack management, thread management, security and exception management, and garbage collection.

[0127] The system library can include multiple functional modules. For example: surface manager, media library, 3D graphics processing library (for example: OpenGL ES), 2D graphics engine (for example: SGL), image processing library, etc. The surface manager is used to manage the display subsystem and provides the fusion of 2D and 3D layers for multiple applications. The media library supports playback and recording of a variety of commonly used audio and video formats, as well as static image files, etc. The media library can support a variety of audio and video encoding formats, such as: MPEG4, H.564, MP3, AAC, AMR, JPG, PNG, etc. The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, synthesis and layer processing, etc. The 2D graphics engine is a drawing engine for 2D drawing.

[0128] The kernel layer provides the operating system's core system services, such as security, memory management, process management, the network protocol stack, and the driver model. These services are all implemented at the kernel layer. The kernel layer also serves as an abstraction layer between the hardware and software stacks. This layer contains many drivers related to electronic devices, including the display driver, the keyboard driver for input devices, the Flash driver for memory-based devices, the camera driver, the audio driver, the Bluetooth driver, and the Wi-Fi driver.

[0129] It should be understood that the functional services described above are only examples. In actual applications, electronic devices can also be divided into more or fewer functional services according to other factors, or the functions of each service can be divided in other ways, or the functional services can be not divided but work as a whole.

[0130] The solutions provided in the embodiments of the present application are described in detail below.

[0131] The solution provided in the embodiments of the present application can be applied to a communication system including multiple devices. The multiple devices may include: an electronic device and multiple wearable devices. In this scenario, the electronic device is a terminal device, for example, the electronic device can be a portable terminal device such as a mobile phone or tablet.

[0132] In some embodiments of the present application, the communication system may further include a server. Optionally, the server may be a cloud server.

[0133] For example, the communication system may be Figure 3 The communication system shown in . Figure 3 As shown in , the communication system may include electronic devices, multiple wearable devices (for example, Figure 3 Part or all of the wearable devices 1 to 5 shown in FIG) and a server. Optionally, the electronic device can serve as a management terminal (or a control terminal), and multiple wearable devices can serve as managed terminals (or controlled terminals).

[0134] In this communication system, the electronic device and multiple wearable devices can use the method provided by this application to achieve binding between the electronic device and multiple wearable devices. Among them, the electronic device can bind to multiple wearable devices at one time (or simultaneously). The server can be used to provide relevant information such as authentication information required in the binding process between the electronic device and multiple wearable devices, and can also be used to achieve information forwarding between the electronic device and some wearable devices.

[0135] In this communication system, electronic devices can communicate with wearable devices via short-range communication and can communicate with servers via mobile communication. When a wearable device is not connected to the Internet, it can communicate with electronic devices or other wearable devices via short-range communication. When a wearable device is connected to the Internet, it can communicate with the server via mobile communication.

[0136] Among them, short-range communication methods may include Bluetooth communication methods, WiFi communication methods, or near-field communication (NFC) communication methods. Mobile communication is communication between mobile devices, or between a mobile device and a fixed device. Mobile communication can provide data connectivity through wireless methods, and mobile communication methods may include 2G / 3G / 4G / 5G / 6G communication methods or future mobile communication methods.

[0137] When a wearable device has the ability to communicate via mobile communication, it can connect to the network via mobile communication and communicate with other devices through the network. Optionally, the wearable device being in a networked state may specifically include the wearable device having the ability to communicate via mobile communication, or the wearable device's current network connection quality is good. The wearable device being in an unconnected state may specifically include the wearable device not having the ability to communicate via mobile communication, or the wearable device's current network connection quality is poor.

[0138] Optionally, in scenarios where an electronic device communicates with a wearable device using Bluetooth communication, the electronic device may include a Bluetooth middleware service (also referred to as a Bluetooth service), which may be used to enable interaction between the electronic device and the wearable device based on Bluetooth communication. In scenarios where an electronic device communicates with a wearable device using other short-range communication methods, the electronic device may include services corresponding to other short-range communication methods to enable interaction between the electronic device and the wearable device based on other short-range communication methods.

[0139] Optionally, the hardware structure of the electronic device can adopt the above Figure 1 The structure shown.

[0140] Optionally, the software architecture of the electronic device can adopt the above Figure 2 Based on this method, the Bluetooth middleware service in the electronic device can be deployed in Figure 2 Specifically, the application layer of the electronic device may include an application for implementing binding (such as a smart care application or other applications), and the Bluetooth middleware service in the electronic device may be deployed in the application, that is, the Bluetooth middleware service may be a service in the application.

[0141] In some embodiments of the present application, some of the multiple wearable devices (for example, Figure 3 The wearable device 1 shown in FIG can be used as other wearable devices (for example, Figure 3 The server can be used as a relay between the wearable device 2) and the electronic device to enable communication between other wearable devices and electronic devices. Optionally, the wearable device acting as a relay can include a Bluetooth middleware service, and can implement the interaction process with other wearable devices or electronic devices through the Bluetooth middleware service. The server can act as a relay between the wearable device and the electronic device in the networked state.

[0142] In some embodiments of the present application, a wearable device (e.g., Figure 3 When the wearable device 3) shown in FIG is close to the electronic device (for example, the wearable device is within a range where the electronic device can scan the wearable device, or within a range where the wearable device can receive broadcast messages from the electronic device), the wearable device can directly interact with the electronic device. The wearable device and the electronic device can interact via Bluetooth communication.

[0143] In some embodiments of the present application, when the wearable device is far away from the electronic device (for example, the wearable device is within a range where the electronic device cannot scan the wearable device, or is within a range where the wearable device cannot receive broadcast messages from the electronic device), the wearable device can interact with the electronic device through other devices acting as relays (for example, a server or other wearable device acting as a relay). The wearable device and other devices acting as relays, and the electronic device and other devices acting as relays, can interact via Bluetooth communication.

[0144] In one possible scenario, when the wearable device is not connected to the Internet, the wearable device can communicate with the electronic device through other wearable devices acting as relays. In another possible scenario, when the wearable device is connected to the Internet, the wearable device can use the server as a relay to communicate with the electronic device.

[0145] In some embodiments of the present application, when a wearable device (e.g. Figure 3 When the wearable device 5 shown in FIG is not connected to the network, the wearable device can be connected to the network through other wearable devices (such as Figure 3 The wearable device 4) shown in FIG realizes communication with the server.

[0146] In this communication system, the specific execution methods of electronic devices, wearable devices, servers and other devices can be referred to the relevant descriptions in the embodiments below and will not be described in detail here.

[0147] In the above-mentioned communication system, a wearable device is used as a relay to realize communication with an electronic device. However, in the embodiments of the present application, the device that can be used as a relay is not limited to the above-mentioned wearable device, but can also be other types of devices. No specific restrictions are made in this application.

[0148] It should be understood that the architecture of the communication system described above is only an example. In actual applications, some devices may be added or reduced in the communication system, and this application does not impose any specific restrictions.

[0149] Example 1

[0150] The following applies to Figure 4 Taking the communication system shown in FIG. 1 as an example, the communication method provided in the embodiment of the present application is described in detail. Figure 4 The communication system shown includes at least an electronic device, a first wearable device, a second wearable device, and a third wearable device, and may also include a server. The electronic device is a terminal device. In one possible scenario, in the communication system, the first wearable device, the second wearable device, and the third wearable device are all in an offline state. Therefore, the first wearable device, the second wearable device, and the third wearable device cannot communicate with the server. The method provided in this embodiment can be applied to a scenario in which an electronic device is bound to a first wearable device, a second wearable device, and a third wearable device.

[0151] In this embodiment, the short-range communication method is Bluetooth communication method as an example. When the short-range communication method is other methods (such as WiFi communication method, NFC method, etc.), the execution method can be implemented by referring to the following instructions and will not be described in detail in this embodiment.

[0152] For example, Figure 4 As shown in , the electronic device can be a mobile phone, and the first wearable device, the second wearable device, and the third wearable device can be smart watches (for example, children's watches). Based on this, the method provided in this embodiment can be applied to the scenario where a mobile phone is simultaneously bound to three smart watches that are not connected to the Internet.

[0153] In one possible scenario, a first wearable device is close to an electronic device, enabling Bluetooth communication between the first and second devices. A second wearable device is farther away from the electronic device, preventing direct Bluetooth communication. However, the second wearable device is close to the first wearable device, so the first wearable device can act as a relay between the second wearable device and the electronic device to enable communication between the second wearable device and the electronic device. A third wearable device is also close to the electronic device, enabling Bluetooth communication between the third wearable device and the electronic device.

[0154] The "close distance" in the embodiments of the present application can be understood as at least one of the following: the physical distance between the devices is less than or equal to the set distance threshold; within the distance range where the devices can scan (or sense) each other; within the distance range where direct communication (or end-to-end communication) can be performed between the devices; within the distance range where a communication connection can be established between the devices, within the distance range where information can be sent and received between the devices, etc. For example, the distance between the first wearable device and the electronic device is close, which can be that the distance between the first wearable device and the electronic device is less than or equal to the set threshold, or the first wearable device is in an area where the electronic device can be scanned. The "far distance" in the embodiments of the present application can be understood as at least one of the following: the physical distance between the devices is greater than the set distance threshold; within the distance range where the devices cannot scan (or sense) each other; within the distance range where direct communication (or end-to-end communication) cannot be performed between the devices; within the distance range where a communication connection cannot be established between the devices, within the distance range where information cannot be sent and received between the devices, etc. For example, the distance between the second wearable device and the electronic device is far, which can be that the distance between the second wearable device and the electronic device is greater than the set threshold, or the second wearable device is in an area where the electronic device cannot be scanned.

[0155] It should be noted that, for the convenience of description, in the method provided in Example 1 of the present application, the binding broadcast message is referred to as binding broadcast.

[0156] Based on the above scenario, a possible communication method provided in the embodiment of the present application can be referred to Figure 5 .like Figure 5 As shown in , the communication method may include:

[0157] S501: The electronic device sends a first binding broadcast.

[0158] The first binding broadcast is used to request binding. Specifically, the first binding broadcast can be used to request that the receiving end of the first binding broadcast be bound to the electronic device. The first binding broadcast can also be used to request that the receiving end of the first binding broadcast act as a relay. The receiving end of the first binding broadcast is the device that receives the first binding broadcast. The electronic device can send the first binding broadcast via Bluetooth communication.

[0159] In the embodiment of the present application, binding means establishing a binding relationship, and binding can also be understood as associating or establishing an association relationship.

[0160] Optionally, the first binding broadcast may include identification information of the electronic device.

[0161] Optionally, step S501 may be performed by a Bluetooth middleware service created in the electronic device.

[0162] In some embodiments of the present application, the electronic device may execute step S501 and subsequent steps in response to a received user operation. Optionally, before step S501, the following steps A1 to A2 may also be included.

[0163] A1: The electronic device displays a binding interface in response to the received first control operation.

[0164] Among them, the binding interface may include a multi-device binding control, and the multi-device binding control can be used to trigger the binding of multiple wearable devices.

[0165] Optionally, the binding interface may further include a single device binding control, which may be used to trigger binding of a single wearable device.

[0166] In some embodiments of the present application, the above-mentioned multi-device binding control and single-device binding control can also be displayed in different interfaces respectively, and the electronic device can display the corresponding interface based on the received user operation.

[0167] In one example, the binding interface may be an application interface of a smart care application installed on the electronic device. The first control operation may be an operation in which a user opens the smart care application installed on the electronic device. For example, the first control operation may be an operation in which a user clicks an application icon of the smart care application on the desktop of the electronic device.

[0168] A2: The electronic device receives a second control operation on the binding interface.

[0169] In a possible solution, the electronic device may execute step S501 in response to the second control operation.

[0170] The second control operation may be used to instruct binding of multiple wearable devices. Optionally, the multiple wearable devices may be wearable devices of a set type, such as smart watches.

[0171] The second control operation may be an operation of acting on a multi-device binding control in the binding interface. For example, the second control operation may be an operation of a user clicking on a multi-device binding control in the binding interface.

[0172] For example, taking the electronic device as a mobile phone, the binding interface displayed by the electronic device may be Figure 6 The interface shown in . Figure 6 As shown in the figure, the interface includes multi-device binding controls and single-device binding controls. In this scenario, the multi-device binding control can be used to control the simultaneous binding of multiple smart watches. The second control operation can be that the user clicks Figure 6 The electronic device can respond to the operation of the multi-device binding control shown in FIG. Figure 6The operation of the multi-device binding control shown in FIG is to execute step S501. Optionally, the electronic device can also respond to the user clicking Figure 6 The operation of the multi-device binding control shown in is to display a prompt message to prompt that binding is ready or in progress.

[0173] In some embodiments of the present application, the electronic device may further display, in response to the second control operation, a prompt message and a corresponding input control for prompting the user to input the number of wearable devices to be bound, and receive the number input by the user. After receiving the number input by the user, the electronic device may begin to execute step S501.

[0174] In another possible solution, after receiving the second control operation, the electronic device may also obtain binding-related information from the server before executing step S501 for use in the process of binding with multiple wearable devices. For example, the binding-related information may include the number of wearable devices to be bound, authentication information during the binding process (such as Bluetooth authentication information), and other information. Based on this solution, the electronic device can obtain binding-related information from the server in response to the second control operation, and execute step S501 after obtaining the binding-related information.

[0175] S502: The third wearable device sends a first confirmation message to the electronic device in response to the received first binding broadcast.

[0176] The first confirmation message can be used to confirm that the third wearable device is bound to the electronic device. The first confirmation message can include identification information of the third wearable device. The third wearable device can send the first confirmation message to the electronic device via Bluetooth communication.

[0177] In some embodiments of the present application, the third wearable device may further send a third binding broadcast in response to the received first binding broadcast, and the third binding broadcast may be used to instruct the electronic device to request binding.

[0178] In some embodiments of the present application, the third wearable device may determine that it is not a relay device before executing step S502. Optionally, the third wearable device may determine that it is not a relay device by any of the following methods:

[0179] 1) The third wearable device may not be used as a relay device by default.

[0180] 2) The third wearable device may determine that it is not acting as a relay device when no other wearable devices are detected in the surrounding area via Bluetooth scanning.

[0181] 3) The third wearable device may determine that it does not serve as a relay device in response to the user operation. Specifically, the process may include the following steps B1 to B3.

[0182] B1: The third wearable device displays the binding interface in response to the first binding broadcast or in response to the received third control operation.

[0183] The binding interface may include information for prompting the electronic device to request binding and prompting the user to confirm whether to agree to the binding. The binding interface may include an agree binding control for confirming binding with the electronic device and a reject binding control for rejecting binding with the electronic device.

[0184] In one example, the binding interface may be an application interface of a smart care application installed on the third wearable device. The third control operation may be an operation in which a user opens the smart care application installed on the third wearable device. For example, the third control operation may be an operation in which a user clicks an application icon of the smart care application displayed on the third wearable device.

[0185] B2: The third wearable device displays the relay control interface in response to the fourth control operation performed on the binding interface.

[0186] The fourth control operation may be used to instruct: displaying a relay control interface, or displaying prompt information for prompting the user to confirm whether to act as a relay.

[0187] The fourth control operation may be an operation of acting on a binding consent control in the binding interface. For example, the fourth control operation may be an operation of the user clicking on a binding consent control in the binding interface.

[0188] The relay control interface may include a first prompt message, a first selection control, and a second selection control. The first prompt message may be used to prompt the user to confirm whether to act as a relay device, the first selection control may be used to confirm to act as a relay device, and the second selection control may be used to confirm not to act as a relay device.

[0189] B3: The third wearable device determines not to serve as a relay device in response to the fifth control operation performed in the relay control interface.

[0190] The fifth control operation is used to indicate: not to act as a relay device. The fifth control operation can be an operation of the second selection control in the relay control interface. For example, the fifth control operation can be an operation of the user clicking the second selection control.

[0191] In some embodiments of the present application, the third wearable device may further display a second prompt message in response to the fifth control operation, wherein the second prompt message may be used to prompt that the device is currently in a binding state.

[0192] For example, taking the third wearable device as a smart watch, the binding interface displayed by the third wearable device can be Figure 7The interface shown in the figure is as follows. Figure 7 As shown in , the interface includes information for confirming whether to agree to bind the electronic device and a control for agreeing to bind. The relay control interface displayed by the third wearable device can be Figure 8 The interface shown in the figure is as follows. Figure 8 As shown in , the interface includes the first prompt information (i.e. Figure 8 Please confirm whether this device is acting as a relay device during the binding process?), the first selection control (i.e. Figure 8 ) and a second selection control (i.e. Figure 8 )

[0193] The third wearable device can respond to the user clicking Figure 7 The consent binding control shown in Figure 7 The interface shown is switched to display Figure 8 The third wearable device can respond to the user clicking Figure 8 The third wearable device can also respond to the user clicking the second selection control to determine not to act as a relay device. Figure 8 The operation of the second selection control shown in the , determines not to act as a relay device, and can display the following prompt message: Binding, please do not move.

[0194] Optionally, after the above step S501, the following step S503 may be included. The execution order of step S503 and the above step S502 may be any order, and is not specifically limited in the embodiment of the present application.

[0195] S503: The first wearable device sends a second confirmation message to the electronic device.

[0196] As an optional implementation, the first wearable device may execute step S503 in response to the received first binding broadcast, ie, send a second confirmation message to the electronic device. In this approach, the second confirmation message is used to confirm the binding between the first wearable device and the electronic device.

[0197] As another optional implementation, after receiving the first binding broadcast from the electronic device, the first wearable device can wait for a set time. If the first wearable device does not receive a confirmation message from the other wearable device within the set time, step S503 can be executed, that is, a second confirmation message can be sent to the electronic device. In this method, the second confirmation message is used to confirm the binding of the first wearable device and the electronic device.

[0198] The first wearable device may send a second confirmation message to the electronic device via Bluetooth communication.

[0199] Optionally, step S503 may be performed by a Bluetooth middleware service created in the first wearable device.

[0200] Optionally, the first wearable device can disconnect the Bluetooth connection with the electronic device after sending the second confirmation message to the electronic device, thereby reducing the power consumption caused by maintaining the Bluetooth connection between the first wearable device and the electronic device and improving the processing efficiency of the first wearable device and the electronic device.

[0201] In some embodiments of the present application, after the above step S501, the following step S504 may be included. The execution order of step S504 and the above step S502 can be any order, and is not specifically limited in the embodiments of the present application.

[0202] S504: The first wearable device sends a second binding broadcast.

[0203] Among them, the second binding broadcast can be used to instruct the electronic device to request binding, and can also be used to request to act as a relay. Specifically, the second binding broadcast can be used to: request the receiving end of the second binding broadcast to bind with the electronic device, and request the receiving end of the second binding broadcast to act as a relay device. The receiving end of the second binding broadcast is the device that receives the second binding broadcast. The first wearable device can send the second binding broadcast via Bluetooth communication.

[0204] As an optional implementation, the second binding broadcast may be the same as the first binding broadcast, that is, the second binding broadcast may be the first binding broadcast forwarded by the first wearable device.

[0205] As another optional implementation, the second binding broadcast may be a binding broadcast generated by the first wearable device. In this manner, the second binding broadcast may include identification information of the electronic device and identification information of the first wearable device.

[0206] In the above method, after receiving the first binding broadcast from the electronic device, the first wearable device can act as a relay device to send the second binding broadcast. Based on the same technical concept, the wearable device that receives the second binding broadcast from the first wearable device can also act as a relay device and continue to send binding broadcasts, thereby expanding the transmission range of the binding broadcast and expanding the search range of wearable devices that can be bound.

[0207] Optionally, step S504 may be performed by a Bluetooth middleware service created in the first wearable device.

[0208] In some embodiments of the present application, the first wearable device may determine itself as a relay device before executing step S504. Optionally, the first wearable device may determine itself as a relay device in any of the following ways:

[0209] 1) If the first wearable device is in a networked state, the first wearable device can determine that it can serve as a relay device.

[0210] 2) If the first wearable device is in an online state, the first wearable device can determine that it can serve as a relay device when it detects other wearable devices in the surrounding area through Bluetooth scanning.

[0211] 3) If the first wearable device is not connected to the Internet, the first wearable device can determine that it can serve as a relay device when it detects the presence of electronic devices and other wearable devices in the surrounding area through Bluetooth scanning.

[0212] 4) The first wearable device may determine itself as a relay device in response to the user operation. Specifically, the process may include the following steps C1 to C3.

[0213] C1: The first wearable device displays a binding interface in response to the received sixth control operation.

[0214] The binding interface may include information for prompting the electronic device to request binding and prompting the user to confirm whether to agree to the binding. The binding interface may include an agree binding control for confirming binding with the electronic device and a reject binding control for rejecting binding with the electronic device.

[0215] In one example, the binding interface may be an application interface of a smart care application installed on the first wearable device. The sixth control operation may be an operation in which a user opens the smart care application installed on the first wearable device. For example, the sixth control operation may be an operation in which a user clicks an application icon of the smart care application displayed on the first wearable device.

[0216] C2: The first wearable device displays the relay control interface in response to the seventh control operation performed on the binding interface.

[0217] The seventh control operation may be used to instruct: displaying a relay control interface, or displaying prompt information for prompting the user to confirm whether to act as a relay.

[0218] The seventh control operation may be an operation of acting on a binding consent control in the binding interface. For example, the seventh control operation may be an operation of the user clicking on a binding consent control in the binding interface.

[0219] The relay control interface may include a first prompt message, a first selection control, and a second selection control. The first prompt message may be used to prompt the user to confirm whether to act as a relay device, the first selection control may be used to confirm to act as a relay device, and the second selection control may be used to confirm not to act as a relay device.

[0220] C3: The first wearable device determines to function as a relay device in response to the eighth control operation performed in the relay control interface.

[0221] The eighth control operation is used to indicate: acting as a relay device. The eighth control operation may be an operation of the first selection control in the relay control interface. For example, the eighth control operation may be an operation of the user clicking the first selection control.

[0222] In some embodiments of the present application, the first wearable device may further display a second prompt message in response to the eighth control operation, wherein the second prompt message may be used to prompt that the device is currently in a binding state.

[0223] For example, taking the first wearable device as a smart watch, the binding interface displayed by the first wearable device may be Figure 7 The interface shown in the figure is as follows. Figure 7 As shown in , the interface includes information for confirming whether to agree to bind the electronic device and a control for agreeing to bind. The relay control interface displayed by the first wearable device can be Figure 8 The interface shown in the figure is as follows. Figure 8 As shown in , the interface includes the first prompt information (i.e. Figure 8 Please confirm whether this device is acting as a relay device during the binding process?), the first selection control (i.e. Figure 8 ) and a second selection control (i.e. Figure 8 )

[0224] The first wearable device can respond to the user clicking Figure 7 The consent binding control shown in Figure 7 The interface shown is switched to display Figure 8 The first wearable device can respond to the user clicking Figure 8 The first wearable device can also respond to the user clicking the first selection control to determine the relay device. Figure 8 The operation of the first selection control shown in the figure displays the following prompt message: Binding, please do not move.

[0225] S505: The second wearable device sends a third confirmation message to the first wearable device in response to the received second binding broadcast.

[0226] The third confirmation message is used to confirm the binding with the electronic device. Specifically, the third confirmation message can be used to confirm the binding of the second wearable device with the electronic device. The third confirmation message can include the identifier of the second wearable device.

[0227] As an optional implementation, the second wearable device may not serve as a relay device by default.

[0228] As another optional implementation, before executing step S505, the second wearable device can respond to a user operation and determine that it does not serve as a relay device. Specifically, this process can refer to the relevant methods described in steps B1 to B3 above, and will not be repeated here.

[0229] For example, taking the second wearable device as a smart watch, the binding interface displayed by the second wearable device may be Figure 7 The relay control interface displayed by the second wearable device can be Figure 8 The interface shown.

[0230] The second wearable device can respond to the user clicking Figure 7 The consent binding control shown in Figure 7 The interface shown is switched to display Figure 8 The second wearable device can respond to the user clicking Figure 8 The second wearable device can also respond to the user clicking the second selection control to determine not to act as a relay device. Figure 8 The operation of the second selection control shown in Figure 8 The interface shown switches to display Figure 9 The interface shown. Figure 9 The displayed interface includes the following prompt information: Binding is being assisted by other relay devices, please do not move.

[0231] S506: The first wearable device sends a fourth confirmation message to the electronic device.

[0232] The fourth confirmation message is used to confirm the binding with the electronic device.

[0233] In a possible solution, the fourth confirmation message can be used to confirm that the first wearable device, the second wearable device, and the electronic device are bound. The fourth confirmation message may include an identifier of the first wearable device and an identifier of the second wearable device.

[0234] In another possible solution, the fourth confirmation message can be used to confirm the binding of the second wearable device to the electronic device. The fourth confirmation message may include the identification of the second wearable device. Optionally, in this solution, the fourth confirmation message may be the same as the third confirmation message, that is, the fourth confirmation message may be the third confirmation message forwarded by the first wearable device. Alternatively, the fourth confirmation message may be a confirmation message generated by the first wearable device, and the fourth confirmation message may include the identification information of the second wearable device.

[0235] Optionally, step S506 may be performed by a Bluetooth middleware service created in the first wearable device.

[0236] In some embodiments of the present application, in the above step S501, after the electronic device obtains the number of wearable devices to be bound input by the user, if the electronic device does not receive the message corresponding to the number of wearable devices for confirming the binding with the electronic device (or the number of wearable devices corresponding to the message received by the electronic device for confirming the binding with the electronic device is less than the number input by the user), as an optional implementation, the electronic device can display a message for prompting the binding failure, and can also display information prompting the user to adjust (for example, reduce) the distance between the wearable device and the electronic device or adjust the number of wearable devices to be bound. As another optional implementation, the electronic device can instruct the bound wearable device to assist in binding other wearable devices. As another optional implementation, the electronic device can be bound to the wearable device corresponding to the message for confirming the binding with the electronic device.

[0237] In some embodiments of the present application, in the above step S501, after the electronic device obtains the number of wearable devices to be bound input by the user, if the electronic device receives a message corresponding to the number of wearable devices for confirming the binding with the electronic device, the electronic device may execute the following step S507. Figure 4 In the scenario shown, the value of this number may be 3. After receiving the confirmation messages corresponding to the three wearable devices binding with the electronic device, the electronic device may perform the following step S507.

[0238] S507: The electronic device and the server execute a binding process to bind the electronic device with the first wearable device, the second wearable device, and the third wearable device.

[0239] Optionally, during the process of the electronic device and the server executing the binding process, the electronic device may display a second prompt message, wherein the second prompt message may be used to prompt that the electronic device is currently in a binding process.

[0240] The binding process performed by the electronic device and the server is used to bind the electronic device to the first wearable device, the second wearable device and the third wearable device.

[0241] As an optional implementation, the electronic device may send a binding request to the server, which may be used to request binding of the electronic device with multiple wearable devices, where the multiple wearable devices include a first wearable device, a second wearable device, and a third wearable device. The binding request may include identification information of the electronic device, identification information of the first wearable device, identification information of the second wearable device, and identification information of the third wearable device. After receiving the binding request, the server may feedback a binding response to the electronic device and may save the binding relationship between the electronic device and the multiple wearable devices. The binding response may be used to confirm the binding relationship between the electronic device and the multiple wearable devices.

[0242] Step S507 may be performed after step S502 and step S506 are completed.

[0243] In some embodiments of the present application, after the electronic device determines that it is bound to the first wearable device, the second wearable device, and the third wearable device, it may display a third prompt message, wherein the third prompt message may be used to indicate that the binding is successful.

[0244] S508: The electronic device sends a first indication message to the third wearable device.

[0245] The first indication message is used to indicate that the electronic device has been bound to the third wearable device.

[0246] In some embodiments of the present application, the third wearable device may display a third prompt message in response to the received first indication message, wherein the third prompt message may be used to indicate that the binding is successful.

[0247] Optionally, after executing step S508, the electronic device may disconnect from the third wearable device.

[0248] S509: The electronic device sends a second indication message to the first wearable device.

[0249] The second indication message may be used to indicate that the electronic device has been bound to the first wearable device and the second wearable device.

[0250] In some embodiments of the present application, the first wearable device may display a third prompt message in response to the received second indication message, wherein the third prompt message may be used to indicate that the binding is successful.

[0251] Optionally, after executing step S509, the electronic device may disconnect the Bluetooth connection with the first wearable device.

[0252] It should be noted that the execution order of step S508 and step S509 can be arbitrary and is not limited in the embodiment of the present application.

[0253] S510: The first wearable device sends a third indication message to the second wearable device in response to the received second indication message.

[0254] The third indication message is used to indicate that the electronic device has been bound to the second wearable device.

[0255] In some embodiments of the present application, the second indication information described in step S509 may also be used only to indicate that the electronic device has been bound to the first wearable device. Based on this method, step S510 may be replaced by the following steps: the electronic device sends a third indication message to the second wearable device via the first wearable device. The third indication message is used to indicate that the electronic device has been bound to the second wearable device.

[0256] In some embodiments of the present application, the second wearable device may display a third prompt message in response to the received third indication message, wherein the third prompt message may be used to indicate that the binding is successful.

[0257] Based on the above method, an electronic device can be bound to multiple wearable devices that are not connected to the Internet. The above method simplifies user operations, allowing users to control the binding of electronic devices to multiple wearable devices through simple operations, thereby improving the user experience. The above method reduces the requirements of the binding process for distance and network, thereby reducing the difficulty of binding an electronic device to multiple wearable devices. Even if the wearable device is not connected to the Internet and / or is far away from the electronic device, it can still be successfully bound to the electronic device. Therefore, the above method has a high binding efficiency and a good binding effect.

[0258] Example 2

[0259] The following applies to Figure 10 Taking the communication system shown in FIG. 1 as an example, the communication method provided in the embodiment of the present application is described in detail. Figure 10 The communication system shown includes at least an electronic device, a first wearable device, a second wearable device, and a third wearable device, and may also include a server. The electronic device is a terminal device. In one possible scenario, in the communication system, the first wearable device may be a wearable device that has been bound to the electronic device. The first wearable device is in an online state and can communicate with the server. The second and third wearable devices are in an offline state and cannot communicate with the server.

[0260] For example, Figure 10 As shown in , the electronic device can be a mobile phone, the first wearable device can be a smart watch bound to the mobile phone, and the second wearable device and the third wearable device can be smart watches not bound to the mobile phone (for example, they can be children's watches).

[0261] In a possible scenario, the electronic device and the third wearable device may be located in an indoor area, and the first wearable device and the second wearable device may be located in an outdoor area, and the first wearable device and the second wearable device are close to each other.

[0262] In this embodiment, the short-range communication method is Bluetooth communication method as an example. When the short-range communication method is other methods (such as WiFi communication method, NFC method, etc.), the execution method can be implemented by referring to the following instructions and will not be described in detail in this embodiment.

[0263] It should be noted that, for the convenience of description, in the method provided in Example 2 of the present application, the binding broadcast message is referred to as binding broadcast.

[0264] Based on the above scenario, a possible communication method provided by the embodiment of the present application can be referred to Figure 11 .like Figure 11 As shown in , the communication method may include:

[0265] S1101: The electronic device sends a first binding broadcast.

[0266] Regarding step S1101 and related execution methods, reference may be made to step S501 and related execution methods in the aforementioned first embodiment, and will not be repeated here.

[0267] S1102: The electronic device sends a first binding request to the server.

[0268] The first binding request may be used to request binding of another wearable device with the aid of the bound wearable device. Optionally, the first binding request may include identification information of the first wearable device.

[0269] The electronic device may send a first binding request to the server via a mobile communication method.

[0270] It should be noted that the execution order of step S1102 and step S1101 can be arbitrary and is not specifically limited in the embodiments of the present application.

[0271] S1103: The third wearable device sends a first confirmation message to the electronic device in response to the received first binding broadcast.

[0272] Among them, step S1103 is executed after step S1101.

[0273] Regarding step S1103 and related execution methods, reference may be made to step S502 and related execution methods described in the aforementioned first embodiment, and will not be repeated here.

[0274] S1104: The server forwards the first binding request from the electronic device to the first wearable device.

[0275] The server may send a first binding request to the first wearable device via mobile communication.

[0276] S1105: The first wearable device sends a second binding broadcast in response to the received first binding request.

[0277] Among them, regarding the second binding broadcast, reference may be made to the description in the aforementioned embodiment 1, and regarding step S1105 and related execution methods, reference may be made to the related methods provided in step S504 in the aforementioned embodiment 1, which will not be repeated here.

[0278] Optionally, the first wearable device may send a second confirmation message to the server in response to the received first binding broadcast. The server may forward the second confirmation message from the first wearable device to the electronic device. For the second confirmation message, please refer to the relevant description in the aforementioned embodiment one, which will not be repeated here. Optionally, the second confirmation message may include the identifier of the first wearable device and may also include the identifier of the electronic device. The first wearable device may send the second confirmation message to the server via mobile communication. The server may send the second confirmation message to the electronic device via mobile communication.

[0279] Optionally, step S1105 may be performed by a Bluetooth middleware service created in the first wearable device.

[0280] S1106: The second wearable device sends a third confirmation message to the first wearable device in response to the received second binding broadcast.

[0281] Regarding step S1106 and related execution methods, reference may be made to step S505 and related execution methods described in the aforementioned embodiment 1, and will not be repeated here.

[0282] S1107: The first wearable device sends a fourth confirmation message to the server.

[0283] Regarding the fourth confirmation message, please refer to the description in the aforementioned embodiment 1, which will not be repeated here.

[0284] Optionally, the first wearable device may send the fourth confirmation message to the server via mobile communication.

[0285] S1108: The server forwards the fourth confirmation message from the first wearable device to the electronic device.

[0286] Optionally, the server may send the fourth confirmation message to the electronic device via mobile communication.

[0287] S1109: The electronic device and the server execute a binding process to bind the electronic device with the first wearable device, the second wearable device, and the third wearable device.

[0288] Regarding step S1109 and related execution methods, reference may be made to step S507 and related execution methods described in the aforementioned first embodiment, and will not be repeated here.

[0289] S1110: The electronic device sends a first indication message to the third wearable device.

[0290] Regarding step S1110 and related execution methods, reference may be made to step S508 and related execution methods described in the aforementioned first embodiment, and will not be repeated here.

[0291] S1111: The electronic device sends a second indication message to the server.

[0292] Regarding the second indication message, please refer to the relevant description in the aforementioned embodiment 1, which will not be repeated here.

[0293] S1112: The server forwards the second indication message from the electronic device to the first wearable device.

[0294] Optionally, the server may send the second indication message to the first wearable device via mobile communication.

[0295] S1113: The first wearable device sends a third indication message to the second wearable device in response to the received second indication message.

[0296] Regarding step S1113 and related execution methods, reference may be made to step S510 and related execution methods described in the aforementioned first embodiment, and will not be repeated here.

[0297] Based on the above method, an electronic device can be bound to multiple wearable devices. The above method simplifies user operations, so that the user can control the binding of the electronic device to multiple wearable devices through simple operations, thereby improving the user experience. In the above method, the first wearable device in the networked state can serve as a relay between the second wearable device in the unconnected state and the server, and the server can serve as a relay between the first wearable device and the electronic device. Therefore, even if the second wearable device is in the unconnected state and is far away from the electronic device, the second wearable device can be bound to the electronic device. Therefore, the above method reduces the requirements of the binding process for distance and network, thereby reducing the difficulty of binding the electronic device to multiple wearable devices. In summary, the above method has high binding efficiency and good binding effect.

[0298] It should be noted that some of the methods or the same technical concepts provided in any of the above embodiments can also be applied in other embodiments or other scenarios. Specifically, they can be applied in combination with specific embodiments or specific scenarios, and will not be listed one by one in this application.

[0299] It should be noted that in the above-mentioned embodiment 1 and embodiment 2, the method provided in the embodiment of the present application is described by taking the scenario of binding an electronic device with multiple wearable devices as an example. However, the above-mentioned method can also be applied to other scenarios other than the binding scenario. For example, it can be applied to the multi-device management or control scenario after binding. When the above-mentioned method is applied to other scenarios, the communication logic between the electronic device, the server, and the wearable device (that is, the wearable device closer to the electronic device can be used as a relay between the wearable device farther away from the electronic device and the electronic device, the server can be used as a relay between the wearable device in the networked state and the electronic device, the wearable device in the networked state can be used as a relay between the wearable device in the non-networked state and the server, etc.) is the same as the above-mentioned method, the difference is that the specific information of the interaction between different devices is different from that in the above-mentioned binding scenario. For example, when the above-mentioned method is applied to the multi-device management or control scenario, the binding broadcast, middleware broadcast and other messages described in the above-mentioned method can be replaced with control information related to multi-device control, which will not be described in detail in the embodiment of the present application.

[0300] It should be noted that the application scenarios provided in the above embodiments are merely examples of applicable scenarios of the embodiments of the present application and do not limit the scenarios to which the present application scheme is applicable. In the application scenarios provided in the above embodiments, the architecture of the communication system and the devices in the communication system can be adjusted accordingly according to actual needs, and other devices can be added or some devices can be reduced. The adjusted communication system can use a method similar to the above to achieve binding of an electronic device with multiple wearable devices.

[0301] It should be noted that the implementation processes provided in the above embodiments are only examples of the method processes applicable to the embodiments of the present application. The execution order of each step in each embodiment can be adjusted accordingly according to actual needs, and other steps can be added or some steps can be reduced.

[0302] Based on the above embodiments and the same technical concept, the embodiment of the present application further provides an electronic device, which is used to implement the communication method provided in the embodiment of the present application and applied to the electronic device, server or terminal device. Figure 12 As shown in FIG, electronic device 1200 may include: a memory 1201, one or more processors 1202, and one or more computer programs (not shown). The above components may be coupled via one or more communication buses 1203. Optionally, electronic device 1200 may further include a display screen 1204.

[0303] Among them, one or more computer programs (codes) are stored in the memory 1201, and one or more computer programs include computer instructions; one or more processors 1202 call the computer instructions stored in the memory 1201, so that the electronic device 1200 executes the communication method applied to the electronic device or server or terminal device provided in the above-mentioned embodiment of the present application.

[0304] In a specific implementation, the memory 1201 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more disk storage devices, flash memory devices or other non-volatile solid-state storage devices. The memory 1201 can store an operating system (hereinafter referred to as the system), such as an embedded operating system such as ANDROID, IOS, WINDOWS, or LINUX. The memory 1201 can be used to store the implementation program of the embodiment of the present application. The memory 1201 can also store a network communication program, which can be used to communicate with one or more additional devices, one or more user devices, and one or more network devices.

[0305] The one or more processors 1202 may be a general-purpose central processing unit (CPU), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits for controlling the execution of the program of the present application.

[0306] The display screen 1204 is used to display application interfaces and other related user interfaces.

[0307] It should be noted that Figure 12 This is only one implementation of the electronic device 1200 provided in the embodiment of the present application. In actual applications, the electronic device 1200 may also include more or fewer components. Figure 1 The specific structure and description shown here are not limiting.

[0308] Based on the above embodiments and the same technical concept, an embodiment of the present application also provides a computer-readable storage medium, which stores a computer program. When the computer program runs on a computer, the computer executes the method provided in the above embodiments and applied to an electronic device, server, or terminal device.

[0309] Based on the above embodiments and the same technical concept, an embodiment of the present application also provides a computer program product, which includes a computer program or instructions. When the computer program or instructions are run on a computer, the computer executes the method provided in the above embodiments and applied to an electronic device, server, or terminal device.

[0310] The methods provided in the embodiments of the present application may be implemented in whole or in part through software, hardware, firmware, or any combination thereof. When implemented using software, they may be implemented in whole or in part in the form of a computer program product. A computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the processes or functions according to the embodiments of the present invention are generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, a network device, a user device, or other programmable device. Computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via a wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) method. A computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server or data center that includes one or more available media. Available media can be magnetic media (e.g., floppy disks, hard disks, magnetic tapes), optical media (e.g., digital video discs (DVDs), or semiconductor media (e.g., SSDs), etc.

[0311] Obviously, those skilled in the art may make various changes and modifications to the present application without departing from the scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is intended to include these modifications and variations.

Claims

1. A communication method, applied to an electronic device, characterized in that: The method comprises: In response to the received first operation, broadcast a first message; wherein the first message is used to request binding; receiving a message for binding a first wearable device and a message for binding a second wearable device via near field communication; wherein the first wearable device and the electronic device are connected via near field communication; A second message for requesting binding of the first wearable device and the second wearable device is sent to the server.

2. The method according to claim 1, wherein The message for binding the first wearable device and the message for binding the second wearable device come from the first wearable device; wherein, the second wearable device and the first wearable device are connected via short-range communication.

3. The method according to claim 1 or 2, wherein: The receiving of a message for binding the first wearable device and a message for binding the second wearable device specifically includes: receiving a third message, the third message including a message for binding the first wearable device and a message for binding the second wearable device; or Receive a fourth message and a fifth message; wherein the fourth message includes the message for binding the first wearable device, and the fifth message includes the message for binding the second wearable device.

4. The method according to claim 3, wherein The fifth message is a message from the second wearable device forwarded by the first wearable device.

5. The method according to claim 3, wherein The message for binding the first wearable device comes from the first wearable device, and the message for binding the second wearable device comes from the second wearable device; wherein the second wearable device and the electronic device are connected via short-range communication.

6. The method according to any one of claims 1 to 5, characterized in that: The method further comprises: Sending a sixth message to the server, where the sixth message is used to request binding of other wearable devices with the aid of the bound wearable device; receiving a seventh message sent by the server, where the seventh message includes a message for binding a fourth wearable device and the electronic device; An eighth message for requesting binding of the fourth wearable device is sent to the server.

7. The method according to claim 6, wherein The seventh message is a message from a fifth wearable device forwarded by the server; wherein the fifth wearable device is a device bound to the electronic device, and the fifth wearable device is connected to the fourth wearable device through short-range communication.

8. The method according to any one of claims 1 to 7, wherein: The short-range communication includes any one of the following: Bluetooth communication, Wireless Fidelity (WiFi) communication, and Near Field Communication (NFC).

9. The method according to any one of claims 1 to 8, wherein: The first operation is an operation acting on a first control in the first interface; wherein the first control is used to trigger binding of multiple wearable devices.

10. A communication method, applied to a first wearable device, characterized in that: The method comprises: Receiving a first message sent by an electronic device or a server; wherein the first message is used to request binding; In response to the first message, broadcast a second message; wherein the second message is used to indicate that the electronic device requests binding; receiving a third message from a second wearable device through near field communication, wherein the third message is used to bind the second wearable device and the electronic device; A fourth message is sent to the electronic device or the server, where the fourth message includes a message for binding the second wearable device and the electronic device.

11. The method according to claim 10, wherein The first wearable device is a device that is bound to the electronic device.

12. The method according to claim 10, wherein The fourth message also includes a message for binding the first wearable device and the electronic device.

13. The method according to claim 12, wherein: After receiving the first message sent by the electronic device or the server, and before broadcasting the second message in response to the first message, the method further includes: Displaying a first interface, the first interface including first information and a first control; wherein the first information is used to prompt whether to agree to bind the electronic device; and the first control is used to confirm the binding of the electronic device; A first operation performed on the first control is received.

14. The method according to claim 13, wherein Before broadcasting the second message in response to the first message, the method further includes: In response to the first operation, a second interface is displayed, wherein the second interface includes second information and a second control; wherein the second information is used to prompt whether to act as a relay; and the second control is used to determine whether to act as a relay; A second operation performed on the second control is received.

15. The method according to any one of claims 10 to 14, wherein: The short-range communication includes any one of the following: Bluetooth communication, WiFi communication, and NFC.

16. A communication method, applied to a second wearable device, characterized in that: The method comprises: Receiving a first message sent by an electronic device or a first wearable device; wherein the first message is used to indicate that the electronic device requests binding; In response to the first message, a second message is sent to the electronic device or the first wearable device through short-range communication, where the second message is used to bind the second wearable device and the electronic device.

17. The method according to claim 16, wherein The short-range communication includes any one of the following: Bluetooth communication, WiFi communication, and NFC.

18. The method according to claim 16 or 17, wherein: After receiving the first message sent by the electronic device or the first wearable device, and before sending a second message to the electronic device or the first wearable device through near field communication in response to the first message, the method further includes: Displaying a first interface, the first interface including first information and a first control; wherein the first information is used to prompt whether to agree to bind the electronic device; and the first control is used to confirm the binding of the electronic device; A first operation performed on the first control is received.

19. The method according to claim 18, wherein Before sending a second message to the electronic device or the first wearable device through near field communication in response to the first message, the method further includes: In response to the first operation, a second interface is displayed, wherein the second interface includes second information and a second control; wherein the second information is used to prompt whether to act as a relay; and the second control is used to determine not to act as a relay; A second operation performed on the second control is received.

20. A communication method, applied to a server, characterized in that: The method comprises: receiving a first message from an electronic device, wherein the first message is used to request binding of another wearable device with the aid of a bound wearable device; In response to the first message, determining a first wearable device that is bound to the electronic device; Sending the first message to the first wearable device; receiving a second message from the first wearable device, where the second message is used to bind the second wearable device to the electronic device; The second message is sent to the electronic device.

21. The method according to claim 20, wherein The second message is a message from the second wearable device forwarded by the first wearable device; wherein the second wearable device and the first wearable device are connected via short-range communication.

22. The method according to claim 21, wherein The short-range communication includes any one of the following: Bluetooth communication, WiFi communication, and NFC.

23. An electronic device, characterized in that: The electronic device includes a memory and one or more processors; The memory is used to store computer program code, which includes computer instructions; when the computer instructions are executed by the one or more processors, the electronic device executes the method according to any one of claims 1 to 9, or executes the method according to any one of claims 10 to 15, or executes the method according to any one of claims 16 to 19, or executes the method according to any one of claims 20 to 22.

24. A computer-readable storage medium, characterized in that The computer-readable storage medium stores a computer program. When the computer program is run on an electronic device, the electronic device executes the method according to any one of claims 1 to 9, or the method according to any one of claims 10 to 15, or the method according to any one of claims 16 to 19, or the method according to any one of claims 20 to 22.

25. A computer program product, characterized in that The computer program product includes a computer program or instructions. When the computer program or instructions are run on an electronic device, the electronic device executes the method according to any one of claims 1 to 9, or the method according to any one of claims 10 to 15, or the method according to any one of claims 16 to 19, or the method according to any one of claims 20 to 22.