Equipment connection method and related equipment

By creating a Wi-Fi hotspot under specific conditions using wearable devices and establishing a Wi-Fi connection via Bluetooth, the problem of low Bluetooth transmission efficiency between wearable devices and mobile terminals is solved, achieving efficient file transfer and improved battery life.

CN121368032APending Publication Date: 2026-01-20HUAWEI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410960353.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-17
Publication Date
2026-01-20

AI Technical Summary

Technical Problem

File transfer between wearable devices and mobile terminals via Bluetooth is inefficient and affects user experience, especially when operating systems are different, making it impossible to establish a Wi-Fi connection.

Method used

Wearable devices can create Wi-Fi hotspots under specific conditions and establish Wi-Fi connections by sending hotspot information via Bluetooth. This includes determining differences in operating systems, battery level, and load thresholds, and providing users with confirmation and the option to disconnect the Bluetooth connection to save power.

Benefits of technology

It improves the efficiency of file transfer between wearable devices and mobile terminals, ensures the device's battery life and user experience, and is suitable for scenarios with different operating systems.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121368032A_ABST
    Figure CN121368032A_ABST
Patent Text Reader

Abstract

A device connection method and a related device can enable a wearable device to establish a Wi-Fi connection with a mobile terminal (such as a mobile phone), and improve file transmission efficiency. For example, the wearable device determines that a first condition is satisfied, and the first condition includes that an operating system of the mobile terminal is a preset operating system, the preset operating system is different from the operating system of the wearable device, or a first Wi-Fi hotspot created by the mobile terminal cannot be searched, or the first Wi-Fi hotspot created by the mobile terminal cannot be connected. And the wearable device creates a second Wi-Fi hotspot. And the wearable device sends information of the second Wi-Fi hotspot to the mobile terminal, wherein the information of the second Wi-Fi hotspot is used for establishing a second Wi-Fi connection between the mobile terminal and the wearable device.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of terminal, in particular to a device connection method and related device. BACKGROUND

[0002] In order to meet the file transmission requirement between the wearable device and the mobile terminal (for example, a mobile phone), the communication connection needs to be established between the wearable device and the mobile terminal. Generally, the communication connection is a short distance communication connection, for example, a Bluetooth connection. However, the file is transmitted through the Bluetooth, which is low in efficiency and long in time, and affects the user experience. SUMMARY

[0003] Embodiments of the present application provide a device connection method and related device, which can establish the Wi-Fi connection between the wearable device and the mobile terminal, and improve the transmission efficiency.

[0004] In the first aspect, a device connection method is provided and applied to a wearable device. The wearable device can be a watch, a bracelet, etc. The method comprises: the wearable device determines that a first condition is met, the first condition can comprise: an operating system of a mobile terminal is a preset operating system, the preset operating system is different from an operating system of the wearable device, or a first Wi-Fi hotspot created by the mobile terminal cannot be searched, or the first Wi-Fi hotspot created by the mobile terminal cannot be connected. The wearable device creates a second Wi-Fi hotspot. The wearable device sends information of the second Wi-Fi hotspot to the mobile terminal, the information of the second Wi-Fi hotspot is used for the mobile terminal to establish a second Wi-Fi connection with the wearable device.

[0005] In view of the lightweight design requirement of the wearable device, generally, the wearable device is not a sender of a Wi-Fi hotspot, i.e., the wearable device has no capability of creating a Wi-Fi hotspot. Therefore, the wearable device can only passively search for a Wi-Fi hotspot of the mobile terminal, and then establish a Wi-Fi connection with the mobile terminal. This passive searching and connecting scheme is not applicable in some scenarios. For example, the wearable device and the mobile terminal have different operating systems, e.g., the mobile terminal is an IOS system, and the wearable device is a Harmony system or an Android system. In this case, the wearable device can not search for or can not connect to the Wi-Fi hotspot of the mobile terminal, resulting in that the wearable device and the mobile terminal can not establish a Wi-Fi connection. In the embodiments of the present application, the wearable device can be a sender of a Wi-Fi hotspot, i.e., the wearable device can create a Wi-Fi hotspot. For example, the wearable device can create a second Wi-Fi hotspot to enable the mobile terminal to establish a second Wi-Fi connection with the wearable device in a case where it is determined that a first condition is met. This scheme can be applicable to a scenario where the wearable device and the mobile terminal have different operating systems (e.g., the mobile terminal is an IOS system, and the wearable device is a Harmony system or an Android system), and overcomes the situation that the wearable device and the mobile terminal can not establish a Wi-Fi connection in the scenario.

[0006] In a possible design, before the wearable device creates the second Wi-Fi hotspot, the method further includes: determining that the wearable device meets a second condition, the second condition including at least one of the following: a current service scenario is a preset scenario; a current running load is lower than a load threshold; a current remaining power is higher than a power threshold; a format of a to-be-transmitted file is a preset format; and a file amount of the to-be-transmitted file is greater than a preset data amount.

[0007] In the embodiments of the present application, in view of the fact that creating the second Wi-Fi hotspot will generate certain power consumption, in order to avoid power consumption waste, the wearable device creates the second Wi-Fi hotspot only in a case where the second condition is met, which is helpful to guarantee the endurance of the wearable device.

[0008] In a possible design, the second condition includes that the current service scenario is the preset scenario, and the preset scenario includes one of the following: a system upgrade scenario, a theme update scenario, a wallpaper update scenario, an application upgrade scenario, and an offline map scenario.

[0009] In the embodiments of the present application, in view of the fact that creating the second Wi-Fi hotspot will generate certain power consumption, in order to avoid power consumption waste, the wearable device creates the second Wi-Fi hotspot only when the current service scenario of the wearable device is the system upgrade scenario, the theme update scenario, the wallpaper update scenario, the application upgrade scenario, or the offline map scenario, which is helpful to guarantee the endurance of the wearable device.

[0010] In a possible design, before the wearable device sends the information of the second Wi-Fi hotspot to the mobile terminal, the method further includes: the wearable device establishing a Bluetooth connection with the mobile terminal; and the wearable device sending the information of the second Wi-Fi hotspot to the mobile terminal, including: the wearable device sending the information of the second Wi-Fi hotspot to the mobile terminal through the Bluetooth connection.

[0011] In an embodiment of the present application, the wearable device can send the information of the second Wi-Fi hotspot to the mobile terminal through Bluetooth, so that the mobile terminal establishes a second Wi-Fi connection with the wearable device, and in this process, the user does not need to perform too many operations, thereby improving operation convenience.

[0012] In a possible design, after the wearable device sends the information of the second Wi-Fi hotspot to the mobile terminal through the Bluetooth connection, the method further includes: the wearable device disconnecting the Bluetooth connection between the wearable device and the mobile terminal.

[0013] In an embodiment of the present application, in order to reduce power consumption and avoid interference of Bluetooth signals on Wi-Fi signals, after the wearable device sends the information of the second Wi-Fi hotspot to the mobile terminal through Bluetooth, the wearable device can disconnect the Bluetooth connection between the wearable device and the mobile terminal.

[0014] In a possible design, before the wearable device creates the second Wi-Fi hotspot, the method further includes: the wearable device displaying first prompt information, where the first prompt information is used to prompt the user to confirm whether to create the second Wi-Fi hotspot; and the wearable device receiving a confirmation instruction for creating the second Wi-Fi hotspot.

[0015] In an embodiment of the present application, considering that creating the second Wi-Fi hotspot will generate certain power consumption, for example, the power-off speed of the wearable device can be accelerated. If the second Wi-Fi hotspot is created without the user's knowledge, the user experience will be affected. Therefore, the wearable device can output prompt information, and create the second Wi-Fi hotspot after obtaining the user's consent, thereby improving user experience.

[0016] In a possible design, the first condition includes that the operating system of the mobile terminal is a preset operating system, and the method further includes: the wearable device determining that the operating system of the mobile terminal is not the preset operating system; the wearable device requesting the mobile terminal to create the first Wi-Fi hotspot; the wearable device receiving the information of the first Wi-Fi hotspot sent by the mobile terminal; and the wearable device establishing a first Wi-Fi connection with the mobile terminal based on the information of the first Wi-Fi hotspot.

[0017] In the embodiments of the present application, the wearable device can determine whether the device itself is a sender or a receiver of the Wi-Fi hotspot. For example, when the wearable device determines that the operating system of the mobile terminal is not the preset operating system, the wearable device determines that the device itself should be a receiver of the Wi-Fi hotspot. Therefore, the wearable device can request the mobile terminal to create a first Wi-Fi hotspot, so that the wearable device establishes a first Wi-Fi connection with the mobile terminal. In this way, the wearable device does not need to create a Wi-Fi hotspot, and the power consumption of the wearable device can be saved.

[0018] In a possible design, before the wearable device requests the mobile terminal to create the first Wi-Fi hotspot, the method further includes: the wearable device determines that the first Wi-Fi hotspot of the mobile terminal cannot be searched.

[0019] In the embodiments of the present application, the wearable device can determine whether the device itself is a sender or a receiver of the Wi-Fi hotspot. If the device itself is determined to be a receiver of the Wi-Fi hotspot, the wearable device can search for a first Wi-Fi hotspot of a mobile terminal. If the first Wi-Fi hotspot of the mobile terminal is not searched, the wearable device can request the mobile terminal to create the first Wi-Fi hotspot, so that the wearable device establishes a first Wi-Fi connection with the mobile terminal. In this way, the wearable device does not need to create a Wi-Fi hotspot, and the power consumption of the wearable device can be saved.

[0020] As described above, the second Wi-Fi connection is established based on a second Wi-Fi hotspot created by the watch, and the first Wi-Fi connection is established based on a first Wi-Fi hotspot created by the mobile phone. Therefore, the second Wi-Fi connection is different from the first Wi-Fi connection, for example, the transmission resources corresponding to the second Wi-Fi connection and the first Wi-Fi connection are different, the modulation and coding modes are different, and the like. The transmission resources can include a transmission bandwidth, for example, a frequency bandwidth.

[0021] In a possible design, the information of the second Wi-Fi hotspot includes: a name and a password of the second Wi-Fi hotspot.

[0022] Optionally, the name and the password of the second Wi-Fi hotspot can be generated by the wearable device or set by a user, which are not limited.

[0023] In a possible design, the operating system of the wearable device is a Harmony operating system or an Android operating system, and the operating system of the mobile terminal is an IOS operating system.

[0024] It should be noted that, taking the mobile terminal as an IOS system and the wearable device as a Harmony system or an Android system as an example, the wearable device can not search for or can not connect to the Wi-Fi hotspot created by the mobile terminal, so that the mobile terminal and the wearable device can not establish a Wi-Fi connection. In this case, the device connection method provided in the embodiments of the present application can enable the wearable device and the mobile terminal to establish a Wi-Fi connection, which helps to improve the file transmission rate.

[0025] In a possible design, the wearable device can not search for the first Wi-Fi hotspot created by the mobile terminal, including: after the wearable device sends a creation request of the first Wi-Fi hotspot to the mobile terminal, the wearable device can not search for the first Wi-Fi hotspot created by the mobile terminal.

[0026] In the embodiments of the present application, the wearable device can attempt whether the wearable device can search for the first Wi-Fi hotspot created by the mobile terminal, and optionally, one or more attempts can be performed. For example, when the wearable device attempts to search for the first Wi-Fi hotspot for the first time but fails to search for the first Wi-Fi hotspot, the wearable device can attempt to search for the first Wi-Fi hotspot for the second time. Optionally, before the wearable device attempts to search for the first Wi-Fi hotspot for the second time, the wearable device can request the mobile terminal to create the first Wi-Fi hotspot. After the request, if the wearable device still fails to search for the first Wi-Fi hotspot created by the mobile terminal, the wearable device can attempt to search for the first Wi-Fi hotspot for the next time or stop attempting to search for the first Wi-Fi hotspot.

[0027] The second aspect further provides a wearable device, including: a processor, a memory, and one or more programs; wherein the one or more programs are stored in the memory, and the one or more programs include instructions, when the instructions are executed by the processor, the wearable device performs the following method steps:

[0028] It is determined that a first condition is met, and the first condition includes: an operating system of the mobile terminal is a preset operating system, the preset operating system is different from an operating system of the wearable device, or the wearable device can not search for a first Wi-Fi hotspot created by the mobile terminal, or the wearable device can not connect to the first Wi-Fi hotspot created by the mobile terminal;

[0029] A second Wi-Fi hotspot is created;

[0030] Information of the second Wi-Fi hotspot is sent to the mobile terminal, and the information of the second Wi-Fi hotspot is used for the mobile terminal to establish a second Wi-Fi connection with the wearable device.

[0031] In a possible design, when the instructions are executed by the processor, the wearable device further performs the following method steps: it is determined that the wearable device meets a second condition, and the second condition includes at least one of the following:

[0032] The current service scenario is a preset scenario.

[0033] The current running load is lower than a load threshold.

[0034] The current remaining power is higher than a power threshold.

[0035] The format of the file to be transmitted is a preset format.

[0036] The file amount of the file to be transmitted is greater than a preset data amount.

[0037] In a possible design, the second condition includes that the current service scenario is a preset scenario, and the preset scenario includes one of a system upgrade scenario, a theme update scenario, a wallpaper update scenario, an application upgrade scenario, and an offline map scenario.

[0038] In a possible design, when the instructions are executed by the processor, the wearable device specifically performs the following method steps: establishing a Bluetooth connection with the mobile terminal; and sending information of the second Wi-Fi hotspot to the mobile terminal through the Bluetooth connection.

[0039] In a possible design, when the instructions are executed by the processor, the wearable device performs the following method step: disconnecting the Bluetooth connection between the wearable device and the mobile terminal.

[0040] In a possible design, when the instructions are executed by the processor, the wearable device further performs the following method steps: displaying first prompt information, the first prompt information being used to prompt a user to confirm whether to create the second Wi-Fi hotspot; and receiving a confirmation instruction for creating the second Wi-Fi hotspot.

[0041] In a possible design, the first condition includes that an operating system of the mobile terminal is a preset operating system, and when the instructions are executed by the processor, the wearable device further performs the following method steps: determining that the operating system of the mobile terminal is not the preset operating system; requesting the mobile terminal to create a first Wi-Fi hotspot; receiving information of the first Wi-Fi hotspot sent by the mobile terminal; and establishing a first Wi-Fi connection with the mobile terminal based on the information of the first Wi-Fi hotspot.

[0042] In a possible design, when the instructions are executed by the processor, the wearable device further performs the following method step: determining that the first Wi-Fi hotspot of the mobile terminal cannot be searched.

[0043] In a possible design, the information of the second Wi-Fi hotspot includes a name and a password of the second Wi-Fi hotspot.

[0044] In a possible design, the operating system of the wearable device is a Harmony operating system or an Android operating system, and the operating system of the mobile terminal is an IOS operating system.

[0045] In a possible design, the first Wi-Fi hotspot created by the mobile terminal cannot be searched includes that, after the wearable device sends a creation request of the first Wi-Fi hotspot to the mobile terminal, the first Wi-Fi hotspot of the mobile terminal cannot be searched.

[0046] The third aspect further provides an electronic device, including modules / circuits for performing the method in the first aspect or any design in the first aspect. These modules / circuits can be implemented by hardware, or by hardware executing corresponding software.

[0047] The fourth aspect further provides a communication system, including the wearable device provided in the second aspect, and a mobile terminal, where the mobile terminal is configured to establish a second Wi-Fi connection with the wearable device according to information of a second Wi-Fi hotspot created by the wearable device.

[0048] The fifth aspect further provides a chip, including a processor and an interface, where the processor is configured to read instructions through the interface to perform the method in the first aspect.

[0049] The sixth aspect further provides a chip system, including a processing circuit and a storage medium, where the storage medium stores instructions, and the instructions are executed by the processing circuit to implement the method in the first aspect.

[0050] The seventh aspect further provides a computer readable storage medium, configured to store a computer program, and when the computer program is executed on a computer, the computer program causes the computer to perform the method in the first aspect.

[0051] The eighth aspect further provides a computer program product, including a computer program, and when the computer program is executed on a computer, the computer program causes the computer to perform the method in the first aspect.

[0052] The technical effects achieved by the second aspect to the eighth aspect can refer to the description of the technical effects achieved by the corresponding design in the first aspect, which will not be repeated here. BRIEF DESCRIPTION OF DRAWINGS

[0053] Figure 1 A schematic diagram of a communication system according to an embodiment of the present application;

[0054] Figures 2A-2B A schematic diagram of a device connection process according to an embodiment of the present application;

[0055] Figures 3A-3B An example of a device that cannot establish a Wi-Fi connection is provided in the present application;

[0056] Figures 4A-4B Another example of a device connection process is provided in the present application;

[0057] Figure 5 An example of a device connection method is provided in the present application;

[0058] Figure 6 An example of an electronic device is provided in the present application;

[0059] Figure 7 Another example of an electronic device is provided in the present application. DETAILED DESCRIPTION

[0060] In the following, some terms in the embodiments of the present application are explained to facilitate understanding by those skilled in the art.

[0061] At least one of the embodiments of the present application includes one or more, wherein the plurality means greater than or equal to two. In addition, it should be understood that in the description of the present application, the terms "first", "second", "third" and the like are used only to distinguish the description and cannot be understood as indicating or implying relative importance or sequence. For example, the first device and the second device do not represent the importance or sequence of the two, but only for distinguishing description. In the embodiments of the present application, "and / or" is only to describe the relationship, which means that there are three kinds of relationships, for example, A and / or B, which means that there are three kinds of situations, such as A alone, A and B together, and B alone. In addition, the character " / " in this paper generally represents that the front and rear associated objects are a kind of "or" relationship.

[0062] The orientation terms mentioned in the embodiments of the present application, such as "up", "down", "left", "right", "in", "out" and the like, are only the direction of the drawings, therefore, the orientation terms used are to better and more clearly illustrate and understand the embodiments of the present application, and are not to indicate or imply that the devices or elements referred to must have a particular orientation, be constructed and operated in a particular orientation, therefore, cannot be understood as a limitation of the embodiments of the present application.

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

[0064] The device connection method provided in this application can be applied to communication systems. For example, please refer to [link to relevant documentation]. Figure 1 This is a schematic diagram of a communication system provided in an embodiment of this application. Figure 1 As shown, the communication system includes a first device and a second device.

[0065] The first device can be a mobile terminal. A mobile terminal can be a mobile phone, tablet computer, laptop computer, personal computer (PC), ultra-mobile personal computer (UMPC), netbook, personal digital assistant (PDA), or other portable devices; or it can be a wearable device such as a watch or bracelet; or it can be an in-vehicle device; or it can be a home appliance such as a television set; or it can be a virtual reality (VR) device, augmented reality (AR) device, mixed reality (MR) device, etc. In short, the specific type of mobile terminal is not limited in this application embodiment. The operating system of the first device can be a first operating system. For example, the first operating system can be Android. System, HarmonyOS system, system, system, system, system, system, Any operating system, including the system itself.

[0066] In the embodiments of the present application, the first device comprises a first short-distance communication module. The first short-distance communication module can comprise a first Bluetooth module and / or a first Wi-Fi module. The first Bluetooth module is configured to establish a first Bluetooth connection with another device (e.g., the second device). The first Wi-Fi module is configured to establish a first Wi-Fi connection with another device (e.g., the second device). For example, the first Wi-Fi module can create a first Wi-Fi hotspot to enable another device (e.g., the second device) to establish a first Wi-Fi connection therewith. Alternatively, the first Wi-Fi module can also search for a second Wi-Fi hotspot created by another device (e.g., the second device) and establish a second Wi-Fi connection therewith. The process of establishing a Wi-Fi connection between the first device and the second device will be described in detail later. It should be noted that the "Wi-Fi connection" (including the first Wi-Fi connection and the second Wi-Fi connection) herein is a device-to-device connection, i.e., a point-to-point connection, and does not require an end-to-end (e.g., cloud or server) to establish a connection. Therefore, the "Wi-Fi connection" herein can also be referred to as "Wi-Fi direct connection", "Wi-Fi-based P2P connection", etc., and the name is not limited herein.

[0067] It should be understood that whether it is a Bluetooth connection or a Wi-Fi connection, the signal needs to be transmitted and received through an antenna. Optionally, the first Bluetooth module and the first Wi-Fi module can correspond to the same antenna or different antennas, and the embodiments of the present application are not limited. Taking the case where the first Bluetooth module and the first Wi-Fi module correspond to the same antenna as an example, the first Bluetooth module and the first Wi-Fi module can adopt a time-sharing manner to transmit and receive signals through the antenna. For example, in one time period, the first Bluetooth module transmits and receives signals through the antenna, and in another time period, the first Wi-Fi module transmits and receives signals through the antenna. Taking the case where the first Bluetooth module and the first Wi-Fi module correspond to different antennas as an example, for example, the first Bluetooth module corresponds to antenna 1, and the first Wi-Fi module corresponds to antenna 2, i.e., the first Bluetooth module transmits and receives signals through antenna 1, and the first Wi-Fi module transmits and receives signals through antenna 2.

[0068] The second device can be a wearable device. The wearable device can include a wristband device, a head-mounted device, a clothing device, etc. The wristband device can include a watch, a bracelet, a glove, a wristband, a necklace, a ring, etc. The head-mounted device can include glasses, a helmet, an earplug, an earphone, etc. The clothing device can include clothes, shoes, a button, etc. In summary, the embodiments of the present application do not limit the specific type of the wearable device. The operating system of the second device can be a second operating system. For example, the second operating system can be an Android system, a Harmony system, System, System, System, System, System, System, etc.

[0069] In the embodiments of the present application, the second device comprises a second short-distance communication module. The second short-distance communication module can comprise a second Bluetooth module and / or a second Wi-Fi module. The second Bluetooth module is used to establish a second Bluetooth connection with other devices (e.g., the first device). The second Wi-Fi module is used to establish a second Wi-Fi connection with other devices (e.g., the first device). For example, the second Wi-Fi module can create a second Wi-Fi hotspot to enable other devices (e.g., the first device) to establish a second Wi-Fi connection therewith. Alternatively, the second Wi-Fi module can also search for a first Wi-Fi hotspot created by other devices (e.g., the first device) and establish a first Wi-Fi connection therewith. The process of establishing a Wi-Fi connection between the first device and the second device will be described in detail hereinafter. Optionally, the second Bluetooth module and the second Wi-Fi module can correspond to the same antenna or different antennas, and the principle is the same as that of the first device described above, which will not be repeated here.

[0070] The following will continue to be described with reference to the communication system shown in Figure 1 The first device is taken as an example of a mobile phone, and the second device is taken as an example of a watch.

[0071] As described above, in order to meet the file transmission requirement between the watch and the mobile phone, a communication connection needs to be established between the watch and the mobile phone. In order to improve the transmission efficiency, the communication connection can be a short-distance communication connection. The short-distance communication connection can comprise a Bluetooth connection, a Wi-Fi connection, and of course, other connection modes such as a near field communication (NFC) connection. Taking the Bluetooth connection as an example, after the watch and the watch establish a Bluetooth connection, the files are transmitted through Bluetooth. However, the Bluetooth transmission of files is time-consuming and inefficient, especially when transmitting a large amount of data, a long waiting time is required before the transmission is completed. Compared with the Bluetooth connection, the Wi-Fi connection has high transmission efficiency and short time consumption, so the Wi-Fi connection is mainly taken as an example for description in the present application. The process of establishing a Wi-Fi connection between the watch and the mobile phone will be described hereinafter.

[0072] For the convenience of understanding, the principle of establishing Wi-Fi connection between two devices is briefly described. To establish Wi-Fi connection, one of the two devices acts as the sender of Wi-Fi hotspot, and the other acts as the receiver of Wi-Fi hotspot. Of course, the sender of Wi-Fi hotspot can also be called the creator or provider of Wi-Fi hotspot. The receiver of Wi-Fi hotspot can also be called the searcher or enjoyer of Wi-Fi hotspot. Taking two devices including device A and device B as an example, if device A acts as the sender of Wi-Fi hotspot and device B acts as the receiver of Wi-Fi hotspot, device A is responsible for creating Wi-Fi hotspot so that device B establishes Wi-Fi connection with it; if device B acts as the sender of Wi-Fi hotspot and device A acts as the receiver of Wi-Fi hotspot, device B is responsible for creating Wi-Fi hotspot so that device A establishes Wi-Fi connection with it.

[0073] Therefore, to establish Wi-Fi connection between the watch and the mobile phone, one of the two devices acts as the sender of Wi-Fi hotspot, and the other acts as the receiver of Wi-Fi hotspot. In this regard, the embodiments of the present application can include the following two schemes.

[0074] The first scheme is that the watch acts as the receiver of Wi-Fi hotspot and the mobile phone acts as the sender of Wi-Fi hotspot.

[0075] For example, the mobile phone creates a first Wi-Fi hotspot so that the watch establishes a first Wi-Fi connection with it. In this scheme, since the watch acts as the receiver of Wi-Fi hotspot, it does not need to create a Wi-Fi hotspot, which helps to save the power consumption of the watch, and the watch does not need to be configured with software / hardware for creating a Wi-Fi hotspot, which is in line with the lightweight trend of the watch.

[0076] Optionally, in the first scheme, the watch and the mobile phone establishing the first Wi-Fi connection can include two ways: automatic connection and manual connection.

[0077] The first way is manual connection. For example, please refer to Figure 2A (a), the mobile phone displays an interface. Optionally, the interface can be the interface of the setting application in the mobile phone. The interface includes a button, which is used to trigger the mobile phone to create a first Wi-Fi hotspot or to close the first Wi-Fi hotspot. When the mobile phone receives an operation on the button, it displays an interface as Figure 2A (b) and creates a first Wi-Fi hotspot. At this time, the mobile phone can broadcast a signal to the outside, which includes the name of the first Wi-Fi hotspot. The watch can search for the first Wi-Fi hotspot and display an interface as Figure 2A(c) the interface shown, which includes the name of the first Wi-Fi hotspot searched for. After the watch receives the operation for the name of the first Wi-Fi hotspot, it pairs with the phone and establishes the first Wi-Fi connection. For example, the watch can send a pairing request to the phone. After the phone receives the pairing request, it can display an interface as shown in Figure 2A (d) the interface shown, which can include a prompt message: whether to pair with the watch. After the phone receives the confirmation instruction, it pairs with the watch and sends a response of pairing success to the watch. After the watch receives the response, it can display an interface as shown in Figure 2A (e) the interface shown, which includes a prompt message: pairing with the phone is completed. Thus, the watch establishes the first Wi-Fi connection with the phone.

[0078] The second way is automatic connection. For example, please refer to Figure 2B , a flowchart of a device connection method provided by an embodiment of the present application. The method can be applied to Figure 1 the communication system shown. As shown in Figure 2B , the flowchart can include the following steps:

[0079] S201, the phone creates a first Wi-Fi hotspot.

[0080] S202, the phone broadcasts a signal, which includes the name of the first Wi-Fi hotspot.

[0081] Optionally, the name of the first Wi-Fi hotspot can be the service set identifier (SSID) of the first Wi-Fi hotspot. Optionally, the name can be generated by the phone itself or set by a user, without limitation.

[0082] S203, the watch searches for the first Wi-Fi hotspot.

[0083] It should be noted that after the watch searches for the first Wi-Fi hotspot of the phone, if it wants to automatically establish the first Wi-Fi connection with the phone, it also needs to know the connection information of the first Wi-Fi hotspot, which is used to connect to the first Wi-Fi hotspot. Exemplarily, the connection information of the first Wi-Fi hotspot can include the password of the first Wi-Fi hotspot, and optionally, the name of the first Wi-Fi hotspot. The password can be a combination of one or more of numerical value, letter, symbol, etc. The password can be generated by the phone itself or set by a user, without limitation. In the embodiment of the present application, the watch can receive the connection information of the first Wi-Fi hotspot from the phone through Bluetooth, i.e., S204 and S205.

[0084] S204, the watch establishes a Bluetooth connection with the phone.

[0085] Optionally, the execution sequence of S204 and S201-S203 is not limited, for example, S204 can be executed before S201.

[0086] S205, the mobile phone sends the connection information of the first Wi-Fi hotspot to the watch through Bluetooth.

[0087] S206, the watch establishes the first Wi-Fi connection with the mobile phone based on the connection information of the first Wi-Fi hotspot.

[0088] S207, the mobile phone disconnects the Bluetooth connection between the mobile phone and the watch.

[0089] Optionally, S207 can be executed or not executed, so the figure uses a dashed line to represent. In addition, the execution sequence between S207 and S206 is not limited. It should be understood that the mobile phone disconnects the Bluetooth connection between the mobile phone and the watch, which helps to save power consumption, and also avoids the interference of Bluetooth signal to Wi-Fi signal.

[0090] Figure 2B In the embodiment shown, after the mobile phone creates the first Wi-Fi hotspot, the mobile phone can provide the information of the first Wi-Fi hotspot (for example, the name and password of the first Wi-Fi hotspot) to the watch, and the watch establishes the first Wi-Fi connection with the mobile phone based on the information of the first Wi-Fi hotspot. In this way, the user does not need to manually operate, and the automatic establishment of the first Wi-Fi connection is realized, which improves the convenience.

[0091] In the above embodiment, two implementation manners of the first scheme are described. Since the mobile phone is the sender of the Wi-Fi hotspot in the first scheme, the mobile phone can select one of the two implementation manners. There can be many selection methods. Method A, a display component is provided in the mobile phone to facilitate the user to set an automatic connection mode or a manual connection mode, if the user sets the automatic connection mode, the automatic connection manner is adopted, if the user sets the manual connection mode, the manual connection manner is adopted. Method B, the mobile phone can judge whether the Bluetooth connection has been established at present, if yes, the automatic connection manner is adopted, otherwise, the manual connection manner is adopted.

[0092] In some embodiments, the first solution described above can be applicable to the scenario where the phone and the watch have the same operating system. For example, the watch and the phone are both a Harmony system or both an Android system or both an IOS system. A possible case is that the phone and the watch with the same operating system belong to the same manufacturer (for example, Huawei), and the watch and the phone provided by the same manufacturer can use the first solution described above to establish a Wi-Fi connection. For the scenario where the phone and the watch have different operating systems, the first solution described above can not be applicable. For example, the watch is a first operating system and the phone is a second operating system. The first operating system and the second operating system are different, for example, the first operating system is a Harmony system or an Android system, and the second operating system is an IOS system. In this case, the watch as the receiver of the Wi-Fi hotspot and the phone as the sender of the Wi-Fi hotspot can not be able to establish a Wi-Fi connection. A possible case is that the watch cannot search for the Wi-Fi hotspot created by the phone. For example, as shown in Figure 3A (a), the phone creates a Wi-Fi hotspot, but the watch cannot search for the Wi-Fi hotspot created by the phone, as shown in Figure 3A (b). Another possible case is that the watch can search for the Wi-Fi hotspot created by the phone but cannot connect to the Wi-Fi hotspot. For example, as shown in Figure 3B (a), the phone creates a Wi-Fi hotspot, and the watch can search for the Wi-Fi hotspot created by the phone, as shown in Figure 3B (b). However, the watch cannot establish a Wi-Fi connection when it receives the operation for connecting to the Wi-Fi hotspot. For example, as shown in Figure 3B (c), the watch displays a prompt message of "connection failed". The reason for the above-mentioned case can be that the second operating system of the phone restricts the wearable device (for example, the watch of the first operating system) of the non-second operating system from establishing a Wi-Fi connection with it.

[0093] Through analysis, it can be known that the reason why the watch and the phone described above cannot establish a Wi-Fi connection is that the watch as the receiver of the Wi-Fi hotspot can only passively search for the Wi-Fi hotspot of the phone, and once a special case (for example, the operating system of the phone is an IOS system, and the operating system of the watch is a Harmony system or an Android system) occurs, the watch cannot establish a Wi-Fi connection with the phone. In order to solve this problem, an embodiment of the present application provides a solution, in which the watch is not limited to only passively searching for the Wi-Fi hotspot of the phone, and the watch can also create a Wi-Fi hotspot. In other words, the watch as the sender of the Wi-Fi hotspot and the phone as the receiver of the Wi-Fi hotspot, that is, the second solution described below.

[0094] The second solution is that the watch as the sender of the Wi-Fi hotspot and the phone as the receiver of the Wi-Fi hotspot.

[0095] For example, the watch creates a second Wi-Fi hotspot to enable the phone to establish a second Wi-Fi connection with the watch. The second solution can be applicable to the scenario where the phone and the watch have the same operating system. For example, the watch and the phone are both a Harmony system or both an Android system or both an IOS system. The second solution can also be applicable to the scenario where the phone and the watch have different operating systems. Continuing the previous example, the watch is a first operating system, for example, a Harmony system or an Android system, and the phone is a second operating system, for example, an IOS system, in the case where the watch is the sender of the Wi-Fi hotspot and the phone is the receiver of the Wi-Fi hotspot, the two can establish a Wi-Fi connection. For example, after the watch creates a second Wi-Fi hotspot, the phone can search for the second Wi-Fi hotspot created by the watch and can connect to the second Wi-Fi hotspot.

[0096] Optionally, in the second solution, the watch and the phone establish a second Wi-Fi connection, including automatic connection and manual connection.

[0097] The first way is manual connection. For example, please refer to Figure 4A (a), the watch display interface. Optionally, the interface can be the interface of the settings application in the watch. The interface includes a button, which is used to trigger the watch to create a second Wi-Fi hotspot or to trigger the watch to close the second Wi-Fi hotspot. Figure 4A In (a), when the watch receives an operation on the button, it displays an interface as shown in Figure 4A (b) and creates a second Wi-Fi hotspot. At this time, the watch can broadcast a signal to the outside, which includes the name of the second Wi-Fi hotspot. The phone can search for the second Wi-Fi hotspot, and after searching for the second Wi-Fi hotspot, it displays an interface as shown in Figure 4A (c), which includes the name of the searched second Wi-Fi hotspot. After the phone receives an operation on the name of the second Wi-Fi hotspot, it pairs with the watch and establishes a second Wi-Fi connection. For example, the phone can send a pairing request to the watch. After the watch receives the pairing request, it can display an interface as shown in Figure 4A (d), which can include a prompt message: whether to pair with the phone. After the watch receives a confirmation instruction, it pairs with the phone and sends a pairing success response to the phone, and after the phone receives the response, it can display an interface as shown in Figure 4A (e), which includes a prompt message: pairing with the watch is completed.

[0098] The second way is automatic connection. For example, please refer to Figure 4B , another flowchart of the device connection method provided by the embodiments of the present application. The method can be applicable toFigure 1 The communication system is illustrated. As Figure 4B The flow can include:

[0099] S401, the watch creates a second Wi-Fi hotspot.

[0100] In some embodiments, before creating the second Wi-Fi hotspot, the watch can further determine whether a second condition is met, and if so, create the second Wi-Fi hotspot. Optionally, the second condition includes at least one of the following:

[0101] I. The current service scenario of the watch is a preset scenario. Illustratively, the preset scenario can include at least one of the following: a system upgrade scenario, a theme update scenario, a wallpaper update scenario, an application upgrade scenario, and an offline map scenario, which are described below respectively.

[0102] (a) The system upgrade scenario, i.e., a scenario in which the operating system of the watch is upgraded. The operating system upgrade of the watch can be updating from one type of operating system to another type of operating system. Taking the current operating system of the watch as an example, the operating system of the watch can be updated from an Android system to a Harmony system. Alternatively, the operating system upgrade of the watch can also be updating from a first version to a second version of the same type of operating system. Optionally, the second version can be higher than the first version, taking the operating system of the watch as an example, i.e., upgrading from a low version of the Harmony system to a high version of the Harmony system. Alternatively, the second version can also be lower than the first version. For example, the operating system of the watch when it is shipped is a low version of the Harmony system, and the user can update the operating system of the watch to a high version of the Harmony system, and of course, if the user needs, it can also be restored to the low version of the Harmony system when it is shipped. For example, the watch provides an "factory reset" entry, through which the current high version of the operating system of the watch can be restored to the low version of the operating system when it is shipped. Optionally, the entry can also have other names, which are not limited in the embodiments of the present application. The entry can be located in the settings application in the watch, and of course, it can also be located in other positions.

[0103] (b), a theme updating scenario, i.e., updating a theme of the watch. The theme of the watch can be understood as a display template of the watch. Different display templates, i.e., different themes, can exhibit different display styles. Taking one theme as an example, if the theme is used, one or more interfaces in the watch need to be displayed according to a display style corresponding to the theme. The one or more interfaces can include a lock screen interface, a main interface, an application interface, a watch face, and the like. Optionally, the display style corresponding to each interface of the one or more interfaces can be the same or different. Taking the lock screen interface as an example, the lock screen interface is displayed according to the display style corresponding to the theme, which can include displaying display elements in the lock screen interface according to the display style corresponding to the theme. The display elements can include one or more of text, images, icons, symbols, numbers, and the like. For example, the wallpaper, time information, new messages, and the like in the lock screen interface are displayed according to the display style.

[0104] (c), a wallpaper updating scenario, i.e., updating a wallpaper of the watch. The wallpaper of the watch can include a wallpaper of one or more interfaces in the watch. The one or more interfaces can include a lock screen interface, a main interface, an application interface, and the like. Optionally, the wallpaper can be a static wallpaper or a dynamic wallpaper, which is not limited. In some embodiments, the theme updating and the wallpaper updating can be two independent processes without any association, for example, the theme is not updated when the theme is updated, and the theme is not affected when the wallpaper is updated. In this case, the user can update the theme or the wallpaper according to the needs. In other embodiments, the theme updating and the wallpaper updating can have a certain association, for example, the wallpaper is updated when the theme is updated, but the wallpaper is not affected when the wallpaper is updated. In this case, when the user updates the theme of the watch, the wallpaper changes synchronously. Of course, the user can not update the theme, but only update the wallpaper.

[0105] (d), an application upgrade scenario, i.e., upgrading an application in the watch. The application upgrade can include updating from a first version of the application to a second version. The application can be various types of applications, such as instant messaging applications, health and sports applications, image shooting applications, map applications, etc. The application can be a system-level application or a third-party application, without limitation. Optionally, the second version can be higher than the first version, i.e., upgrading from a low version to a high version of the application. Alternatively, the second version can also be lower than the first version, i.e., restoring the application from a high version to a low version. For example, the watch includes an application that is a low version, and the user can upgrade the application to a high version, and of course, if the user needs, the user can also restore the application from a high version to a low version. For example, the watch provides an "application initialization" entry through which the application can be restored from the current high version to a low version. It should be noted that the entry can also have other names, such as "factory reset", and the embodiments of the present application do not limit this. The entry can be located in the interface of the application, and of course, it can also be located in other locations.

[0106] (e), an offline map scenario, i.e., a scenario in which the watch is currently using an offline map. Since the memory of the watch is small, the watch can obtain the offline map from the phone when using the offline map. Therefore, the watch and the phone need to transmit files, i.e., offline maps, so a Wi-Fi connection needs to be established.

[0107] II. The format of the file to be transmitted is a preset format. For example, the preset format can include one or more of a video file format, an image file format, and a compressed package file format. The video file format can include mp3 format, mp4 format, wav format, etc. The image file format can include jpg format, png format, etc. The compressed package file format can include zip format, rar format, heif format, etc.

[0108] III. The file amount of the file to be transmitted is greater than a threshold value. For example, the threshold value can be 5M, 10M, 20M, 30M, etc., and the specific value is not limited by the embodiments of the present application.

[0109] It should be noted that the file transmission between the watch and the mobile phone can include two cases: 1. the watch transmits the file to the mobile phone; 2. the mobile phone transmits the file to the watch. In the two cases, the processing manner of the watch can be different. Taking the case 1 as an example, the watch needs to transmit the file to the mobile phone, so the to-be-transmitted file is located at the watch side, and the watch can determine whether the format of the to-be-transmitted file is the preset format and whether the file amount of the to-be-transmitted file is greater than the threshold. Taking the case 2 as an example, the mobile phone needs to transmit the file to the watch, so the to-be-transmitted file is located at the mobile phone side, in this case, the watch can inquire (for example, through Bluetooth inquiry) the format, file size and the like of the to-be-transmitted file from the mobile phone, and after determining the format and file size of the to-be-transmitted file, the watch can determine whether the format of the to-be-transmitted file is the preset format and whether the file amount of the to-be-transmitted file is greater than the threshold.

[0110] Four, the current running load of the watch is lower than the load threshold. Exemplarily, the current running load of the watch can be described by one or more of the CPU running load, the memory occupancy, the number of currently running applications and the like.

[0111] Five, the current remaining power of the watch is higher than the power threshold. Exemplarily, the power threshold can be 20%, 10%, 30% and the like, and the specific value is not limited by the embodiments of the application.

[0112] In some embodiments, the watch can further output first prompt information before creating the second Wi-Fi hotspot, the first prompt information being used to prompt the user to confirm whether to create the second Wi-Fi hotspot. If the watch receives a confirmation instruction, the second Wi-Fi hotspot is created.

[0113] S402, the watch broadcasts a signal, and the signal includes the name of the second Wi-Fi hotspot.

[0114] Optionally, the name of the second Wi-Fi hotspot can be the SSID of the second Wi-Fi hotspot. The name can be generated by the mobile phone itself or set by the user, and is not limited.

[0115] S403, the mobile phone searches for the second Wi-Fi hotspot.

[0116] It should be noted that after the mobile phone searches the second Wi-Fi hotspot of the watch, if the second Wi-Fi connection between the mobile phone and the watch is to be automatically established, the connection information of the second Wi-Fi hotspot needs to be known, and the connection information is used to connect to the second Wi-Fi hotspot. For example, the connection information of the second Wi-Fi hotspot can include a password of the second Wi-Fi hotspot, and optionally, the name of the second Wi-Fi hotspot. The password can be generated by the mobile phone itself or set by the user, and is not limited. In the embodiment of the present application, the mobile phone can receive the connection information of the second Wi-Fi hotspot from the watch through Bluetooth, that is, S404 and S405.

[0117] S404, the watch establishes a Bluetooth connection with the mobile phone.

[0118] Optionally, the execution sequence of S404 and S401-S403 is not limited, for example, S404 can be executed before S401.

[0119] S405, the watch sends the connection information of the second Wi-Fi hotspot to the mobile phone through Bluetooth.

[0120] S406, the mobile phone establishes a second Wi-Fi connection with the watch based on the connection information of the second Wi-Fi hotspot.

[0121] S407, the watch disconnects the Bluetooth connection between the watch and the mobile phone.

[0122] Optionally, S407 can be executed or not executed, so the dashed line is used in the figure. In addition, the execution sequence between S407 and S406 is not limited. It should be understood that the watch disconnects the Bluetooth connection between the watch and the mobile phone, which helps to save power consumption, and also avoids the interference of the Bluetooth signal to the Wi-Fi signal.

[0123] Figure 4B In the embodiment shown, after the watch creates the second Wi-Fi hotspot, the watch can provide the information of the second Wi-Fi hotspot (for example, the name and password of the second Wi-Fi hotspot) to the mobile phone. The mobile phone establishes a second Wi-Fi connection with the watch based on the information of the second Wi-Fi hotspot. In this way, no manual operation of the user is needed, the automatic establishment of the second Wi-Fi connection is realized, and the convenience is improved.

[0124] In the above embodiments, two implementations of the second scheme are illustrated. Since the second scheme is that the watch is the sender of the Wi-Fi hotspot, the watch can select to use one of the two implementations. There can be multiple selection methods. In method C, a display component is provided in the watch to facilitate the user to set an automatic connection mode or a manual connection mode. If the user sets the automatic connection mode, the automatic connection method is adopted; if the user sets the manual connection mode, the manual connection method is adopted. In method D, the watch can determine whether a Bluetooth connection has been established at present. If yes, the automatic connection method is adopted; otherwise, the manual connection method is adopted.

[0125] In the above embodiments, two schemes are provided, in which the roles of the watch are different. In the first scheme, the watch is the receiver of the Wi-Fi hotspot; in the second scheme, the watch is the sender of the Wi-Fi hotspot. In the embodiments of the present application, the watch can support only the first scheme, i.e., only as the receiver of the Wi-Fi hotspot; or only the second scheme, i.e., only as the sender of the Wi-Fi hotspot; or both the first scheme and the second scheme, i.e., the watch can be both the sender and the receiver of the Wi-Fi hotspot. Taking the watch supporting both the first scheme and the second scheme as an example, the watch can select to use one of the two schemes. For example, the watch can provide a selection interface for the user to select, and determine which scheme to use according to the user selection operation. For another example, the watch can also determine which scheme to use by itself, for example, the following three determination methods can be included.

[0126] In the first method, the watch determines whether the first Wi-Fi hotspot created by the mobile phone can be searched. If it is determined that the first Wi-Fi hotspot of the mobile phone cannot be searched, the second scheme is adopted; if the first Wi-Fi hotspot of the mobile phone can be searched, the first scheme is adopted. Optionally, in order to improve accuracy, when the watch determines whether the first Wi-Fi hotspot of the mobile phone can be searched, one or more searches can be performed. Taking multiple searches as an example, after the first search is performed, if the first search is not successful, the second search can be performed. Optionally, before the second search is performed, the watch can send (for example, through Bluetooth) a request information to the mobile phone to request the mobile phone to create the first Wi-Fi hotspot. After the request information is sent, the watch performs the second search. If the second search is also not successful, the next search or the search can be stopped.

[0127] The second mode is that the watch determines whether it can connect to the first Wi-Fi hotspot created by the mobile phone. If it is determined that the watch cannot connect to the first Wi-Fi hotspot of the mobile phone, the second mode is adopted. If the watch can connect to the first Wi-Fi hotspot of the mobile phone, the first mode is adopted. Optionally, the watch determines whether it can connect to the first Wi-Fi hotspot of the mobile phone, which can include that the watch sends a connection request to the mobile phone. The connection request is used to request to establish the first Wi-Fi connection. If a connection permission instruction of the mobile phone is received, it means that the watch can connect to the first Wi-Fi hotspot of the mobile phone. If no connection permission instruction of the mobile phone is received or a connection rejection instruction of the mobile phone is received, it means that the watch cannot connect to the first Wi-Fi hotspot of the mobile phone. One possible reason why the watch cannot connect to the first Wi-Fi hotspot of the mobile phone is that the operating system of the mobile phone is different from the operating system of the watch, and the operating system of the mobile phone limits the watch to establish a Wi-Fi connection with the mobile phone. Another possible reason is that the network quality is poor, which causes the watch to fail to connect to the first Wi-Fi hotspot of the mobile phone. Of course, there can be other reasons, which are not listed one by one. Regardless of the reason, as long as the watch determines that it cannot connect to the first Wi-Fi hotspot of the mobile phone, the second mode is adopted to ensure that the watch and the mobile phone can establish a Wi-Fi connection.

[0128] The third mode is that the watch determines whether the operating system of the mobile phone is a preset operating system. Taking the operating system of the watch as the Harmony operating system or the Android operating system as an example, the preset operating system can be the IOS system. If the watch determines that the operating system of the mobile phone is the preset operating system, the second mode is adopted. If the watch determines that the operating system of the mobile phone is not the preset operating system, the first mode is adopted. In this mode, the watch needs to determine the operating system of the mobile phone. One possible way is that the watch establishes a Bluetooth connection with the mobile phone, and the watch sends inquiry information to the mobile phone through the Bluetooth connection, to inquire about the operating system of the mobile phone. After receiving the inquiry information, the mobile phone returns an inquiry result to the watch. The inquiry result includes information of the operating system of the mobile phone, which can include the name and version of the operating system. Of course, the mobile phone can also actively send the information of the operating system to the watch. The watch determines the operating system of the mobile phone based on the information. After determining the operating system of the mobile phone, the watch can determine whether the operating system of the mobile phone is the preset operating system. One possible way is that the watch stores information of the preset operating system, which includes, for example, the name and version of the preset operating system. After receiving the information of the operating system of the mobile phone, the watch can match the received information with the locally stored information of the preset operating system. If they are consistent, it is determined that the operating system of the mobile phone is the preset operating system. If they are not consistent, it is determined that the operating system of the mobile phone is not the preset operating system. That is to say, in the embodiments of the present application, the watch serves as the sender of the Wi-Fi hotspot in the case where the operating system of the mobile phone is the preset operating system, to realize the Wi-Fi connection between the watch and the mobile phone.

[0129] It should be noted that the above lists three ways for the watch to determine whether to use the first scheme or the second scheme, and it should be understood that there can be other ways, and the embodiments of the present application do not list them one by one.

[0130] Taking the third way as an example, it is assumed that the watch determines that the first scheme needs to be used through the third way, that is, the watch is the receiver of the Wi-Fi hotspot. In this case, the watch needs to search for the first Wi-Fi hotspot of the mobile phone. One possible case is that the mobile phone has created the first Wi-Fi hotspot, so the watch can directly search for the first Wi-Fi hotspot of the mobile phone. Another possible case is that the mobile phone has not created the first Wi-Fi hotspot, in which case the watch cannot search for the first Wi-Fi hotspot of the mobile phone. In order to improve efficiency, the watch can request the mobile phone to create the first Wi-Fi hotspot, for example, the watch establishes a Bluetooth connection with the mobile phone, and sends a request message to the mobile phone through the Bluetooth connection to request the mobile phone to create the first Wi-Fi hotspot.

[0131] Taking the third way as an example, it is assumed that the watch determines that the second scheme needs to be used through the third way, that is, the watch is the sender of the Wi-Fi hotspot. In this case, the watch needs to create a second Wi-Fi hotspot so that the mobile phone can establish a second Wi-Fi connection with it. As described above, the second scheme includes two implementation ways, that is, manual connection and automatic connection. The watch can select to use one of the two implementation ways. There are many selection methods, for example, the above-mentioned way C or way D. Alternatively, in order to facilitate user operation, when the watch determines to use the manual connection way, a pop-up interface such as Figure 4A (a) can be popped up, which is used to create a second Wi-Fi hotspot.

[0132] In the above embodiments, the process of establishing a Wi-Fi connection between the watch and the mobile phone is mainly described. In some other embodiments, the watch and the mobile phone can not only support Wi-Fi connection, but also support other short-distance communication modes, for example, they can also support Bluetooth connection. In this case, the watch can select to establish a Bluetooth connection or a Wi-Fi connection with the mobile phone. Considering that the Wi-Fi connection has large power consumption and the Bluetooth connection has small power consumption, in order to avoid power waste, the watch and the mobile phone can default to use the Bluetooth connection, and establish a Wi-Fi connection in necessary cases (for example, the case where the fourth condition is met in the following).

[0133] For example, please refer to Figure 5 , which is another flowchart of the device connection method provided by an embodiment of the present application. The method can be applied to Figure 1 the communication system shown in the figure. As shown in Figure 5 , the flowchart can include:

[0134] S501, the watch establishes a Bluetooth connection with the mobile phone.

[0135] S502, the watch determines that the fourth condition is met.

[0136] Optionally, the fourth condition can include at least one of the following:

[0137] Condition one, the current service scenario of the watch is a preset scenario. Exemplarily, the preset scenario can include one of the following: a system upgrade scenario, a theme update scenario, a wallpaper update scenario, an application upgrade scenario, and an offline map scenario. For the preset scenario, please refer to the foregoing description. It should be understood that, in the case that the current service scenario of the watch is a preset scenario, it means that there is a file transmission demand between the watch and the mobile phone and it is very likely to transmit a file with a large amount of data, so the watch and the mobile phone need to establish a Wi-Fi connection to improve the transmission rate.

[0138] Condition two, the format of the file to be transmitted is a preset format. Exemplarily, the preset format can include one or more of the following: a video file format, an image file format, and a compressed package file format. The video file format can include mp3 format, mp4 format, wav format, etc. The image file format can include jpg format, png format, etc. The compressed package file format can include zip format, rar format, heif format, etc.

[0139] Condition three, the file amount of the file to be transmitted is greater than a threshold value. Exemplarily, the threshold value can be 5M, 10M, 20M, 30M, etc., and the specific value is not limited in the embodiments of the present application.

[0140] It should be noted that the above three conditions are only examples, and other conditions can also be included, which are not listed one by one.

[0141] S503, the watch establishes a Wi-Fi connection with the mobile phone.

[0142] As described above, the watch and the mobile phone establishing a Wi-Fi connection can include two schemes, i.e., the first scheme (the mobile phone as the sender of the Wi-Fi hotspot) and the second scheme (the watch as the sender of the Wi-Fi hotspot) described above. The watch can select to use one of the two schemes, and the specific selection manner is described in detail above, which is not repeated here.

[0143] S504, the watch disconnects the Bluetooth connection between the watch and the mobile phone.

[0144] Optionally, S504 can be executed or not executed, so the dashed line is used in the figure. Optionally, the execution order of S504 and S503 is not limited.

[0145] Please refer to Figure 6This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. The electronic device can be the first device (e.g., a mobile phone) or the second device (e.g., a watch) mentioned above. Figure 6 As shown, the electronic device may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, 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, a headphone jack 170D, a sensor module 180, buttons 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, a barometric pressure sensor 180C, a magnetic sensor 180D, an accelerometer sensor 180E, a distance sensor 180F, a proximity sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc.

[0146] The processor 110 can include one or more processing units, for example: the processor 110 can 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. Different processing units can be independent devices or integrated in one or more processors. The controller can be the nerve center and command center of the electronic device. The controller can generate operation control signals according to instruction operation codes and timing signals, and complete the control of fetching and executing instructions. A memory can also be provided in the processor 110 for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory can save instructions or data that the processor 110 has just used or repeatedly uses. If the processor 110 needs to use the instructions or data again, it can directly call from the memory. This avoids repeated access and reduces the waiting time of the processor 110, thereby improving the efficiency of the system.

[0147] In some embodiments, the processor 110 can perform the device connection method provided by the embodiments of the present application. Taking the electronic device as a watch as an example, the processor 110 can create a second Wi-Fi hotspot and send information of the second Wi-Fi hotspot to the mobile phone, so that the mobile phone establishes a second Wi-Fi connection with the watch based on the information of the second Wi-Fi hotspot. Taking the electronic device as a mobile phone as an example, the processor 110 can create a first Wi-Fi hotspot and send information of the first Wi-Fi hotspot to the watch, so that the watch establishes a first Wi-Fi connection with the mobile phone based on the information of the first Wi-Fi hotspot.

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

[0149] The I2C interface is a bidirectional synchronous serial bus including a serial data line (SDA) and a serial clock line (SCL). In some embodiments, the processor 110 can include multiple sets of I2C buses. The processor 110 can be coupled to the touch sensor 180K, the charger, the flash, the camera 193, etc. through different I2C bus interfaces, respectively. For example, the processor 110 can be coupled to the touch sensor 180K through an I2C interface, so that the processor 110 and the touch sensor 180K communicate through the I2C bus interface to realize the touch function of the electronic device 100.

[0150] The I2S interface can be used for audio communication. In some embodiments, the processor 110 can include multiple sets of I2S buses. The processor 110 can be coupled to the audio module 170 through the I2S bus to realize communication between the processor 110 and the audio module 170. In some embodiments, the audio module 170 can deliver audio signals to the wireless communication module 160 through the I2S interface to realize the function of answering a phone through a Bluetooth headset.

[0151] The PCM interface can also be used for audio communication to sample, quantize, and encode analog signals. In some embodiments, the audio module 170 and the wireless communication module 160 can be coupled through the PCM bus interface. In some embodiments, the audio module 170 can also deliver audio signals to the wireless communication module 160 through the PCM interface to realize the function of answering a phone through a Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.

[0152] The UART interface is a universal serial bus for asynchronous communication. The bus can be a bidirectional communication bus. It converts data to be transmitted between serial communication and parallel communication. In some embodiments, the UART interface is usually used to connect the processor 110 and the wireless communication module 160. For example, the processor 110 communicates with the Bluetooth module in the wireless communication module 160 through the UART interface to realize the Bluetooth function. In some embodiments, the audio module 170 can transmit audio signals to the wireless communication module 160 through the UART interface to realize the function of playing music through the Bluetooth headset.

[0153] The MIPI interface can be used to connect the processor 110 and peripheral devices such as the display screen 194 and the camera 193. The MIPI interface includes a camera serial interface (CSI), a display serial interface (DSI), etc. In some embodiments, the processor 110 and the camera 193 communicate through the CSI interface to realize the shooting function of the electronic device 100. The processor 110 and the display screen 194 communicate through the DSI interface to realize the display function of the electronic device 100.

[0154] The GPIO interface can be configured by software. The GPIO interface can be configured as a control signal or as a data signal. In some embodiments, the GPIO interface can be used to connect the processor 110 and the camera 193, the display screen 194, the wireless communication module 160, the audio module 170, the sensor module 180, etc. The GPIO interface can also be configured as an I2C interface, an I2S interface, a UART interface, a MIPI interface, etc.

[0155] The USB interface 130 is an interface that meets the USB standard specification, and can be a Mini USB interface, a Micro USB interface, a USB Type C interface, etc. The USB interface 130 can be used to connect a charger to charge the electronic device 100, or to transmit data between the electronic device 100 and a peripheral device. It can also be used to connect a headset to play audio through the headset. The interface can also be used to connect other electronic devices, such as AR devices, etc.

[0156] It can be understood that the interface connection relationship between the modules shown in the embodiments of the present application is only illustrative and does not constitute a structural limitation of the electronic device 100. In some other embodiments of the present application, the electronic device 100 can also use different interface connection methods or combinations of multiple interface connection methods in the above embodiments.

[0157] The wireless communication function of the electronic device 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, etc. The antenna 1 and the antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in the electronic device can be used to cover a single or multiple communication frequency bands. Different antennas can also be multiplexed to improve the utilization rate of the antennas. For example, the antenna 1 can be multiplexed as a diversity antenna of a wireless local area network. In some other embodiments, the antennas can be used in combination with a tuning switch.

[0158] The mobile communication module 150 can provide a solution for wireless communication including 2G / 3G / 4G / 5G, etc. applied to the electronic device. The mobile communication module 150 can include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves from the antenna 1, and perform filtering, amplification, etc. on the received electromagnetic waves, and transmit the processed signals to the modem processor for demodulation. The mobile communication module 150 can also amplify the signals modulated by the modem processor, and radiate the signals as electromagnetic waves through the antenna 1. In some embodiments, at least part of the functional modules of the mobile communication module 150 can be disposed in the processor 110. In some embodiments, at least part of the functional modules of the mobile communication module 150 and at least part of the modules of the processor 110 can be disposed in the same device.

[0159] The wireless communication module 160 can provide a solution for wireless communication including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) network), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR) technology, etc. applied to the electronic device. The wireless communication module 160 can be one or more devices integrated with at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, performs frequency modulation and filtering processing on the electromagnetic wave signals, and transmits the processed signals to the processor 110. The wireless communication module 160 can also receive signals to be transmitted from the processor 110, perform frequency modulation and amplification on the signals, and radiate the signals as electromagnetic waves through the antenna 2.

[0160] In some embodiments, the antenna 1 and the mobile communication module 150 are coupled, and the antenna 2 and the wireless communication module 160 are coupled, so that the electronic device can communicate with a network and other devices through wireless communication technology.

[0161] The display screen 194 is configured to display a display interface of an application, etc. The display screen 194 includes a display panel. In some embodiments, the electronic device can include one or N display screens 194, where N is a positive integer greater than 1.

[0162] The electronic device 100 can implement a photographing function through an ISP, the camera 193, a video codec, a GPU, the display screen 194, and an application processor, etc. The ISP is configured to process data fed back by the camera 193.

[0163] The internal memory 121 can be configured to store computer executable program codes including instructions. The processor 110 executes various function applications and data processing of the electronic device by running the instructions stored in the internal memory 121. The internal memory 121 can include a program storage area and a data storage area. The program storage area can store an operating system, software codes of at least one application program, etc. The data storage area can store data (e.g., images, videos, etc.) generated during use of the electronic device, etc. In addition, the internal memory 121 can include a high-speed random access memory, and can further include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage, etc.

[0164] The external memory interface 120 can be configured to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device. The external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function, such as saving pictures, videos, etc. in the external memory card.

[0165] The electronic device can implement an audio function through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the earphone interface 170D, and the application processor, etc. For example, music playing, recording, etc.

[0166] The audio module 170 is configured to convert digital audio information into an analog audio signal output, and to convert an analog audio input into a digital audio signal. The audio module 170 can also be configured to encode and decode audio signals. In some embodiments, the audio module 170 can be disposed in the processor 110, or part of the functions of the audio module 170 can be disposed in the processor 110.

[0167] The speaker 170A, also called a "loudspeaker," converts an electrical audio signal into a sound signal. The electronic device 100 can listen to music or listen to an external speaker such as a hands-free call through one or more speakers 170A.

[0168] The receiver 170B, also called a "earpiece," can be one or more, and converts an electrical audio signal into a sound signal. When the electronic device 100 receives a call or a voice message, the receiver 170B can be held close to a person's ear to listen to the voice.

[0169] The microphone 170C, also called a "microphone," "mic," or "voice microphone," converts a sound signal into an electrical signal.

[0170] The earphone interface 170D is used to connect a wired earphone.

[0171] The pressure sensor 180A senses a pressure signal and can convert the pressure signal into an electrical signal. In some embodiments, the pressure sensor 180A can be disposed on the display screen 194.

[0172] The gyro sensor 180B can be used to determine the motion posture of the electronic device. In some embodiments, the angular velocity of the electronic device around three axes (i.e., x, y, and z axes) can be determined by the gyro sensor 180B. The gyro sensor 180B can be used for shooting a shake reduction.

[0173] The barometric sensor 180C measures air pressure. In some embodiments, the electronic device calculates altitude, assists positioning and navigation using the air pressure value measured by the barometric sensor 180C.

[0174] The magnetic sensor 180D includes a Hall sensor. The electronic device can detect the opening and closing of a flip cover using the magnetic sensor 180D.

[0175] The acceleration sensor 180E can detect the magnitude of acceleration of the electronic device in various directions (typically, three axes). When the electronic device is stationary, the magnitude and direction of gravity can be detected.

[0176] The distance sensor 180F measures a distance. The electronic device can measure a distance using infrared or laser.

[0177] The proximity light sensor 180G can include, for example, a light emitting diode (LED) and a light detector, such as a photodiode. The light emitting diode can be an infrared light emitting diode. The electronic device emits infrared light outwardly through the light emitting diode. The electronic device detects infrared reflected light from a nearby object using the photodiode. When sufficient reflected light is detected, it can be determined that there is an object near the electronic device. When insufficient reflected light is detected, the electronic device can determine that there is no object near the electronic device.

[0178] The ambient light sensor 180L is configured to sense ambient light brightness. The electronic device can adaptively adjust the display screen 194 brightness according to the sensed ambient light brightness.

[0179] The fingerprint sensor 180H is configured to collect a fingerprint.

[0180] The temperature sensor 180J is configured to detect temperature.

[0181] The touch sensor 180K, also referred to as a "touch panel". The touch sensor 180K can be disposed on the display screen 194, and the touch sensor 180K and the display screen 194 together form a touch screen, also referred to as a "touch panel". The touch sensor 180K is configured to detect a touch operation acting on or near the touch sensor 180K. The touch sensor 180K can transmit the detected touch operation to the application processor to determine the touch event type.

[0182] The bone conduction sensor 180M can obtain a vibration signal. In some embodiments, the bone conduction sensor 180M can obtain a vibration signal of a human body sound vibration bone block.

[0183] The keys 190 include a power-on key, a volume key, and the like. The keys 190 can be mechanical keys. They can also be touch keys. The electronic device can receive key inputs and generate key signal inputs related to user settings and function control of the electronic device. The motor 191 can generate a vibration prompt. The motor 191 can be used for incoming call vibration prompts and also for touch vibration feedback. The indicator 192 can be an indicator light, which can be used to indicate a charging state, a power change, and also to indicate messages, missed calls, notifications, and the like. The SIM card interface 195 is configured to connect a SIM card. The SIM card can be inserted into or removed from the SIM card interface 195 to achieve contact and separation with the electronic device.

[0184] It can be understood that, Figure 6 The components shown do not constitute a specific limitation on the electronic device. The electronic device in the embodiments of the present application can include more or fewer components than those shown in the figure. In addition, Figure 6 The combination / connection relationship between the components in the figure can also be adjusted and modified. Figure 6

[0185] Figure 7 The structure schematic diagram of the electronic device 700 provided in the embodiments of the present application is shown. The electronic device 700 can be the first device (for example, a mobile phone) or the second device (for example, a watch) in the foregoing. As shown in the figure, Figure 7 ​As shown, the electronic device 700 can include one or more processors 701, one or more memories 702, a communication interface 703, and one or more computer programs 704, which can be connected through one or more communication buses 705. The one or more computer programs 704 are stored in the memory 702 and configured to be executed by the one or more processors 701, and the one or more computer programs 704 include instructions. For example, when the electronic device 700 is the first device (e.g., a mobile phone) in the foregoing, the instructions can be used to perform the related steps of the first device (e.g., a mobile phone) in the corresponding embodiments above, such as performing the related steps of the first device (e.g., a mobile phone) in the foregoing. Figures 2A-5 For another example, when the electronic device 700 is the second device (e.g., a watch) in the foregoing, the instructions can be used to perform the related steps of the second device (e.g., a watch) in the corresponding embodiments above, such as performing the related steps of the second device (e.g., a watch) in the foregoing. Figures 2A-5 The communication interface 703 is configured to realize the communication between the electronic device 700 and other devices, such as the communication interface can be a transceiver.

[0186] In the embodiments of the present application, the method provided by the embodiments of the present application is introduced from the perspective of the electronic device (e.g., a mobile phone or a watch) as an execution subject. In order to implement the functions in the method provided by the embodiments of the present application, the electronic device can include a hardware structure and / or a software module, and the above functions are implemented in the form of hardware structure, software module, or hardware structure plus software module. Whether a certain function in the above functions is implemented in the form of hardware structure, software module, or hardware structure plus software module depends on the specific application and design constraints of the technical solution.

[0187] In the embodiments described above, all or some of the steps can be implemented by software, hardware or firmware, or any combination thereof. When implemented in software, one or more computer programs can be used to perform the steps. The computer programs can be stored in one or more computer-readable storage media, such as a computer program product. The computer-readable storage media can include one or more of a magnetic disk, an optical disk, a solid state disk, etc. The computer-readable storage media can be embodied in an article of manufacture that can be made and sold according to the teachings of the present application. The computer-readable storage media can be used to store computer readable instructions that, when executed by a computer, can perform steps of the embodiments described above. The computer readable instructions can comprise at least one computer program that, when executed, enables a computer to implement the steps described herein. The computer program can be written in any form suitable for use in the intended environment, including compiled or interpreted languages, and complete source code or object code. The software can be stored on one or more computer-readable storage media such as magnetic disk, optical disk, solid state disk, etc. The software can be distributed in any form including, at least partially, as a stand-alone program, as an applet, as a subroutine, or as an object. The software can be distributed over the Internet, for example, by using file transfer protocol (FTP), hypertext transfer protocol (HTTP), or file delivery over unidirectional transport (FLUTE). The software can be distributed over a local area network, for example, by using HTTP, FTP, or email. The software can be distributed over a wide area network, for example, by using HTTP, FTP, email, or other suitable protocols. The software may

[0188] Those skilled in the art will appreciate that embodiments of the present application can be readily used as a method, apparatus, or computer program product. Accordingly, the present application can take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application can take the form of a computer program product on one or more computer-readable storage media (including, but not limited to, magnetic disks, CD-ROMs, optical storage media such as DVD's, etc.) embodying computer program instructions.

[0189] The present application is described in the context of flowcharts and / or block diagrams that illustrate the architectural, functional and operational aspects of methods, apparatus (systems) and computer program products according to present embodiments. It will be understood that each block of the flowchart and / or block diagrams, and combinations of blocks in the flowcharts and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general purpose computer, special purpose computer, embedded processing unit or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions of the flowcharts and / or block diagrams specified in the flowcharts and / or block diagrams. These computer program instructions can also be stored in a computer readable storage medium that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer readable storage medium produce an article of manufacture including instructions which implement the flowcharts and / or block diagrams. Figure 1 The flowchart and / or block diagrams can include one or more flowcharts and / or block diagrams that illustrate the functions and operations of the embodiments described herein. The flowcharts and / or block diagrams can also illustrate the functions and operations of the embodiments described herein. Figure 1 The flowchart and / or block diagrams can include one or more flowcharts and / or block diagrams that illustrate the functions and operations of the embodiments described herein. The flowchart and / or block diagrams can also illustrate the functions and operations of the embodiments described herein.

[0190] These computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture including instructions which implement the flow Figure 1 The flow or flows and / or blocks Figure 1 The flow or flows and / or blocks

[0191] These computer program instructions can also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions that execute on the computer or other programmable apparatus provide steps for implementing the flow Figure 1 The flow or flows and / or blocks Figure 1 The flow or flows and / or blocks

[0192] Obviously, numerous modifications and variations of the present application are possible in light of the above teachings. It is therefore to be understood that within the scope of the appended claims and their equivalents, the application can be practiced otherwise than as specifically described.

Claims

1. A device connection method characterized by, The method is applied to a wearable device, and the method comprises: The wearable device determines that a first condition is met, and the first condition comprises: an operating system of a mobile terminal is a preset operating system, the preset operating system is different from an operating system of the wearable device, or a first Wi-Fi hotspot created by the mobile terminal cannot be searched, or the first Wi-Fi hotspot created by the mobile terminal cannot be connected to. The wearable device creates a second Wi-Fi hotspot. The wearable device sends information of the second Wi-Fi hotspot to the mobile terminal, and the information of the second Wi-Fi hotspot is used for the mobile terminal to establish a second Wi-Fi connection with the wearable device.

2. The method of claim 1, wherein, Before the wearable device creates the second Wi-Fi hotspot, the method further comprises: determining that the wearable device meets a second condition, and the second condition comprises at least one of the following: A current service scenario is a preset scenario. A current running load is lower than a load threshold. A current remaining power is higher than a power threshold. A format of a file to be transmitted is a preset format. A file amount of the file to be transmitted is greater than a preset data amount.

3. The method of claim 2, wherein, The second condition comprises that the current service scenario is the preset scenario, and the preset scenario comprises one of the following: a system upgrade scenario, a theme update scenario, a wallpaper update scenario, an application upgrade scenario, and an offline map scenario.

4. The method according to any one of claims 1 to 3, characterized in that, Before the wearable device sends the information of the second Wi-Fi hotspot to the mobile terminal, the method further comprises: The wearable device establishes a Bluetooth connection with the mobile terminal. The wearable device sends the information of the second Wi-Fi hotspot to the mobile terminal, comprising: The wearable device sends the information of the second Wi-Fi hotspot to the mobile terminal through the Bluetooth connection.

5. The method of claim 4, wherein, After the wearable device sends the information of the second Wi-Fi hotspot to the mobile terminal through the Bluetooth connection, the method further comprises: The wearable device disconnects the Bluetooth connection between the wearable device and the mobile terminal.

6. The method according to any one of claims 1 to 5, characterized in that, Before the wearable device creates the second Wi-Fi hotspot, the method further comprises: The wearable device displays first prompt information, and the first prompt information is used to prompt a user to confirm whether to create the second Wi-Fi hotspot. The wearable device receives a confirmation instruction for creating the second Wi-Fi hotspot.

7. The method according to any one of claims 1 to 6, characterized in that, The first condition comprises that the operating system of the mobile terminal is the preset operating system, and the method further comprises: The wearable device determines that the operating system of the mobile terminal is not the preset operating system. The wearable device requests the mobile terminal to create the first Wi-Fi hotspot. The wearable device receives information of the first Wi-Fi hotspot sent by the mobile terminal. The wearable device establishes the first Wi-Fi connection with the mobile terminal based on the information of the first Wi-Fi hotspot.

8. The method of claim 7, wherein, Before the wearable device requests the mobile terminal to create the first Wi-Fi hotspot, the method further comprises: The wearable device determines that the first Wi-Fi hotspot of the mobile terminal cannot be searched.

9. The method according to any one of claims 1 to 8, characterized in that, The information of the second Wi-Fi hotspot comprises a name and a password of the second Wi-Fi hotspot.

10. The method according to any one of claims 1 to 9, characterized in that, The operating system of the wearable device is a Harmony system or an Android system, and the operating system of the mobile terminal is an IOS system.

11. A communication system, characterized by The wearable device and the mobile terminal are included. The wearable device is configured to perform the method of any one of claims 1-10. The mobile terminal is configured to establish a second Wi-Fi connection with the wearable device according to information of a second Wi-Fi hotspot created by the wearable device. The wearable device includes a processor, a memory, and one or more programs.

12. A wearable device, comprising: The one or more programs are stored in the memory and include instructions that, when executed by the processor, cause the wearable device to perform the method of any one of claims 1-10. The computer-readable storage medium stores a computer program that, when executed on a computer, causes the computer to perform the method of any one of claims 1-10. The computer program product includes a computer program that, when executed on a computer, causes the computer to perform the method of any one of claims 1-10.

13. A computer-readable storage medium, characterized in that, ​ 14. A computer program product, characterised in that, ​