Device connection method and related device
Wearable devices can create Wi-Fi hotspots under certain conditions and establish Wi-Fi connections by sending information via Bluetooth. This solves the problem of low Bluetooth transmission efficiency between wearable devices and mobile terminals, achieving efficient file transfer and power saving, and is suitable for scenarios with different operating systems.
Patent Information
- Application Number
- PCT/CN2025/108871
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2024-07-17
- Filing Date
- 2025-07-16
- Publication Date
- 2026-01-22
AI Technical Summary
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.
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 user confirmation and automatic/manual connection options.
It improves the efficiency of file transfer between wearable devices and mobile terminals, saves power consumption, enhances user experience, and adapts to different operating system scenarios.
Smart Images

Figure CN2025108871_22012026_PF_FP_ABST
Abstract
Description
A device connection method and related equipment
[0001] Cross-references to related applications
[0002] This application claims priority to Chinese Patent Application No. 202410960353.X, filed on July 17, 2024, entitled "A Device Connection Method and Related Equipment", the entire contents of which are incorporated herein by reference. Technical Field
[0003] This application relates to the field of terminal technology, and in particular to a device connection method and related equipment. Background Technology
[0004] To meet the file transfer needs between wearable devices and mobile terminals (e.g., mobile phones), a communication connection needs to be established between them. Generally, this communication connection is a short-range connection, such as a Bluetooth connection. However, transferring files via Bluetooth is inefficient, time-consuming, and negatively impacts the user experience. Summary of the Invention
[0005] This application provides a device connection method and related equipment, which enables wearable devices and mobile terminals to establish a Wi-Fi connection and improve transmission efficiency.
[0006] Firstly, a device connection method is provided, applied to wearable devices. For example, the wearable device may be a watch, a wristband, etc. The method includes: the wearable device determining that a first condition is met, the first condition may include: the mobile terminal's operating system is a preset operating system; the preset operating system is different from the wearable device's operating system; or, a first Wi-Fi hotspot created by the mobile terminal cannot be found; or, it cannot connect to the first Wi-Fi hotspot created by the mobile terminal. The wearable device creates a second Wi-Fi hotspot. The wearable device sends information about the second Wi-Fi hotspot to the mobile terminal, the information about the second Wi-Fi hotspot being used by the mobile terminal to establish a second Wi-Fi connection with the wearable device.
[0007] Considering the lightweight design requirements of wearable devices, they generally do not act as Wi-Fi hotspot transmitters; that is, they lack the ability to create Wi-Fi hotspots. Therefore, wearable devices can only passively search for Wi-Fi hotspots from mobile terminals and then establish a Wi-Fi connection with them. This passive search and connection approach is unsuitable in some scenarios. For example, if the wearable device and the mobile terminal have different operating systems (e.g., the mobile terminal uses iOS while the wearable device uses HarmonyOS or Android), the wearable device may be unable to find or connect to the mobile terminal's Wi-Fi hotspot, preventing them from establishing a Wi-Fi connection. In this embodiment, the wearable device can act as a Wi-Fi hotspot transmitter, meaning it can create Wi-Fi hotspots. For example, if the wearable device determines that the first condition is met, it can create a second Wi-Fi hotspot so that the mobile terminal can establish a second Wi-Fi connection with it. This solution can be applied to scenarios where the operating systems of the wearable device and the mobile terminal are different (e.g., the mobile terminal is an iOS system, and the wearable device is a HarmonyOS or Android system), overcoming the situation where the wearable device and the mobile terminal cannot establish a Wi-Fi connection in such scenarios.
[0008] In one possible design, before the wearable device creates a 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: the current business scenario is a preset scenario; the current operating load is lower than a load threshold; the current remaining battery power is higher than a battery power threshold; the format of the file to be transmitted is a preset format; and the file size of the file to be transmitted is greater than a preset data size.
[0009] In this embodiment of the application, considering that creating a second Wi-Fi hotspot will generate a certain amount of power consumption, in order to avoid wasting power consumption, the wearable device creates a second Wi-Fi hotspot only when the second condition is met, which helps to ensure the battery life of the wearable device.
[0010] In one possible design, the second condition includes the current business scenario being a preset scenario, which includes one of the following: system upgrade scenario, theme update scenario, wallpaper update scenario, application upgrade scenario, and offline map scenario.
[0011] In this embodiment, considering that creating a second Wi-Fi hotspot will generate a certain amount of power consumption, in order to avoid wasting power, the second Wi-Fi hotspot is only created when the current business scenario of the wearable device is a system upgrade scenario, theme update scenario, wallpaper update scenario, application upgrade scenario, or offline map scenario, which helps to ensure the battery life of the wearable device.
[0012] In one 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; the wearable device sending the information of the second Wi-Fi hotspot to the mobile terminal includes: the wearable device sending the information of the second Wi-Fi hotspot to the mobile terminal via the Bluetooth connection.
[0013] In this embodiment, the wearable device can send information about a second Wi-Fi hotspot to the mobile terminal via Bluetooth, so that the mobile terminal and the wearable device can establish a second Wi-Fi connection. This process does not require the user to perform too many operations, thus improving the ease of operation.
[0014] In one possible design, after the wearable device sends the information of the second Wi-Fi hotspot to the mobile terminal via the Bluetooth connection, the method further includes: the wearable device disconnecting the Bluetooth connection with the mobile terminal.
[0015] In this embodiment of the application, in order to reduce power consumption and also to avoid interference between Bluetooth signals and Wi-Fi signals, the wearable device can disconnect the Bluetooth connection with the mobile terminal after sending the information of the second Wi-Fi hotspot to the mobile terminal via Bluetooth.
[0016] In one possible design, before the wearable device creates a second Wi-Fi hotspot, the method further includes: the wearable device displaying a first prompt message, the first prompt message being used to prompt the user to confirm whether to create a second Wi-Fi hotspot; and the wearable device receiving a confirmation instruction for creating a second Wi-Fi hotspot.
[0017] In this embodiment, considering that creating a second Wi-Fi hotspot consumes power (e.g., the wearable device may lose power faster), creating a second Wi-Fi hotspot without the user's knowledge would negatively impact the user experience. Therefore, the wearable device can output a prompt message to indicate that a second Wi-Fi hotspot should be created only with the user's consent, thus improving the user experience.
[0018] In one possible design, the first condition includes the mobile terminal's operating system being a preset operating system, and the method further includes: the wearable device determining that the mobile terminal's operating system is not the preset operating system; the wearable device requesting the mobile terminal to create a first Wi-Fi hotspot; the wearable device receiving information about 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 about the first Wi-Fi hotspot.
[0019] In this embodiment, the wearable device can determine whether it is the sender or receiver of a Wi-Fi hotspot. For example, if the wearable device determines that the mobile terminal's operating system is not a preset operating system, it determines that the wearable device should be the 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 can establish a first Wi-Fi connection with it. In this method, since the wearable device does not need to create a Wi-Fi hotspot, it can save power consumption.
[0020] In one possible design, before the wearable device requests the mobile terminal to create a first Wi-Fi hotspot, the method further includes: the wearable device determining that it cannot find the first Wi-Fi hotspot of the mobile terminal.
[0021] In this embodiment, the wearable device can determine whether it is the sender or receiver of a Wi-Fi hotspot. If it is determined that it is the receiver, it can search for a first Wi-Fi hotspot on the mobile terminal. If no hotspot is found, it can request the mobile terminal to create a first Wi-Fi hotspot so that the wearable device can establish a first Wi-Fi connection with it. In this method, since the wearable device does not need to create a Wi-Fi hotspot, it can save power consumption.
[0022] As mentioned earlier, the second Wi-Fi connection is established based on a second Wi-Fi hotspot created by the watch; the first Wi-Fi connection is established based on a first Wi-Fi hotspot created by the phone. Therefore, the second Wi-Fi connection differs from the first Wi-Fi connection; for example, the second Wi-Fi connection uses different transmission resources and has different modulation and coding methods. Transmission resources may include transmission bandwidth, such as frequency bandwidth.
[0023] In one possible design, the information of the second Wi-Fi hotspot includes: the name and password of the second Wi-Fi hotspot.
[0024] Optionally, the name and password of the second Wi-Fi hotspot can be generated by the wearable device itself or set by the user, without limitation.
[0025] In one possible design, the operating system of the wearable device is HarmonyOS or Android, and the operating system of the mobile terminal is iOS.
[0026] It should be noted that, taking an iOS mobile terminal and a HarmonyOS or Android wearable device as an example, the wearable device may be unable to find or connect to the Wi-Fi hotspot created by the mobile terminal, resulting in a failure to establish a Wi-Fi connection. In this case, the device connection method provided in this application embodiment enables the wearable device and the mobile terminal to establish a Wi-Fi connection, which helps to improve file transfer speed.
[0027] In one possible design, the wearable device cannot find the first Wi-Fi hotspot created by the mobile terminal, including: after the wearable device sends a request to the mobile terminal to create the first Wi-Fi hotspot, it fails to find the first Wi-Fi hotspot created by the mobile terminal.
[0028] In this embodiment, the wearable device may attempt to find the first Wi-Fi hotspot created by the mobile terminal. Optionally, it may make one or more attempts. For example, if the first attempt to search fails, a second attempt may be made. Optionally, before the second attempt, the wearable device may request the mobile terminal to create the first Wi-Fi hotspot. After the request, if the first Wi-Fi hotspot of the mobile terminal is still not found, the device may make another attempt or stop trying to search.
[0029] Secondly, a wearable device is also provided, comprising: 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 that, when executed by the processor, cause the wearable device to perform the following method steps:
[0030] The first condition is determined to be met, which includes: the 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 the first Wi-Fi hotspot created by the mobile terminal cannot be found, or the first Wi-Fi hotspot created by the mobile terminal cannot be connected to;
[0031] Create a second Wi-Fi hotspot;
[0032] The information of the second Wi-Fi hotspot is sent to the mobile terminal, and the information of the second Wi-Fi hotspot is used by the mobile terminal to establish a second Wi-Fi connection with the wearable device.
[0033] In one possible design, when the instruction is executed by the processor, the wearable device further performs the following method steps: determining that the wearable device satisfies a second condition, the second condition including at least one of the following:
[0034] The current business scenario is a preset scenario;
[0035] The current operating load is below the load threshold;
[0036] The current remaining battery level is higher than the battery threshold;
[0037] The file to be transmitted is in a preset format;
[0038] The file size to be transferred is greater than the preset data size.
[0039] In one possible design, the second condition includes the current business scenario being a preset scenario, which includes one of the following: system upgrade scenario, theme update scenario, wallpaper update scenario, application upgrade scenario, and offline map scenario.
[0040] In one possible design, when the instruction is executed by the processor, the wearable device specifically performs the following steps: establishing a Bluetooth connection with the mobile terminal; and sending information about the second Wi-Fi hotspot to the mobile terminal via the Bluetooth connection.
[0041] In one possible design, when the instruction is executed by the processor, the wearable device performs the following method steps: disconnecting the Bluetooth connection with the mobile terminal.
[0042] In one possible design, when the instruction is executed by the processor, the wearable device also performs the following method steps: displaying a first prompt message, the first prompt message being used to prompt the user to confirm whether to create a second Wi-Fi hotspot; and receiving a confirmation instruction for creating a second Wi-Fi hotspot.
[0043] In one possible design, the first condition includes the mobile terminal's operating system being a preset operating system. When the instruction is executed by the processor, the wearable device further performs the following method steps: determining that the mobile terminal's operating system is not the preset operating system; requesting the mobile terminal to create a first Wi-Fi hotspot; receiving information about 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 about the first Wi-Fi hotspot.
[0044] In one possible design, when the instruction is executed by the processor, the wearable device also performs the following method steps: determining that a first Wi-Fi hotspot of the mobile terminal cannot be found.
[0045] In one possible design, the information of the second Wi-Fi hotspot includes: the name and password of the second Wi-Fi hotspot.
[0046] In one possible design, the operating system of the wearable device is HarmonyOS or Android, and the operating system of the mobile terminal is iOS.
[0047] In one possible design, the inability to find the first Wi-Fi hotspot created by the mobile terminal includes: after the wearable device sends a request to the mobile terminal to create the first Wi-Fi hotspot, it fails to find the first Wi-Fi hotspot created by the mobile terminal.
[0048] Thirdly, an electronic device is also provided, comprising: a module / unit for performing the method corresponding to the first aspect or any of the designs in the first aspect. These modules / units can be implemented in hardware or by hardware executing corresponding software.
[0049] Fourthly, a communication system is also provided, comprising: a wearable device as provided in the second aspect above, and a mobile terminal, the mobile terminal being configured to establish a second Wi-Fi connection with the wearable device based on information of a second Wi-Fi hotspot created by the wearable device.
[0050] Fifthly, a chip is also provided, including a processor and an interface; the processor is configured to read instructions via the interface to execute the method described in the first aspect above.
[0051] In a sixth aspect, a chip system is also provided, the chip system including a processing circuit and a storage medium, the storage medium storing instructions; when the instructions are executed by the processing circuit, they implement the method described in the first aspect above.
[0052] In a seventh aspect, a computer-readable storage medium is also provided for storing a computer program that, when run on a computer, causes the computer to perform the method described in the first aspect above.
[0053] Eighthly, a computer program product is also provided, comprising a computer program that, when run on a computer, causes the computer to perform the method provided in the first aspect above.
[0054] For the technical effects that can be achieved in aspects two through eight above, please refer to the description of the technical effects that can be achieved in the corresponding design schemes in aspect one above. This application will not repeat them here. Attached Figure Description
[0055] Figure 1 is a schematic diagram of a communication system provided in an embodiment of this application;
[0056] Figures 2A and 2B are schematic diagrams of a device connection process provided in an embodiment of this application;
[0057] Figures 3A and 3B are schematic diagrams illustrating that the device provided in an embodiment of this application cannot establish a Wi-Fi connection;
[0058] Figures 4A and 4B are another schematic diagram of the device connection process provided in an embodiment of this application;
[0059] Figure 5 is a schematic flowchart of a device connection method provided in an embodiment of this application;
[0060] Figure 6 is a schematic diagram of the structure of an electronic device provided in an embodiment of this application;
[0061] Figure 7 is a schematic diagram of another structure of an electronic device provided in an embodiment of this application. Detailed Implementation
[0062] The following explanations of some terms used in the embodiments of this application are provided to facilitate understanding by those skilled in the art.
[0063] The embodiments of this application involve at least one, including one or more; where "multiple" means two or more. Furthermore, it should be understood that in the description of this specification, terms such as "first," "second," and "third" are used only for descriptive purposes and should not be construed as indicating relative importance or order. For example, "first device" and "second device" do not represent the degree of importance of the two or their order, but are merely for descriptive distinction. In the embodiments of this application, "and / or" merely describes an association relationship, indicating that three relationships can exist. For example, A and / or B can represent: A alone, A and B simultaneously, and B alone. Additionally, the character " / " in this document generally indicates that the preceding and following related objects have an "or" relationship.
[0064] The directional terms mentioned in the embodiments of this application, such as "up", "down", "left", "right", "inner", and "outer", are only for reference to the directions in the accompanying drawings. Therefore, the directional terms used are for better and clearer explanation and understanding of the embodiments of this application, and are not intended to indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation. Therefore, they should not be construed as limitations on the embodiments of this application.
[0065] 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.
[0066] The device connection method provided in this application can be applied to communication systems. For example, please refer to Figure 1, which is a schematic diagram of a communication system provided in this application. As shown in Figure 1, the communication system includes a first device and a second device.
[0067] 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... Any operating system.
[0068] In this embodiment, the first device includes a first short-range communication module. The first short-range communication module may include a first Bluetooth module and / or a first Wi-Fi module. The first Bluetooth module is used to establish a first Bluetooth connection with other devices (e.g., the second device). The first Wi-Fi module is used to establish a first Wi-Fi connection with other devices (e.g., the second device). For example, the first Wi-Fi module may create a first Wi-Fi hotspot so that other devices (e.g., the second device) can establish a first Wi-Fi connection with it. Alternatively, the first Wi-Fi module may also search for a second Wi-Fi hotspot created by other devices (e.g., the second device) and establish a second Wi-Fi connection with them. The process of the first device establishing a Wi-Fi connection with 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) in this document refers to a direct device connection, i.e., a point-to-point connection, which does not require connection establishment through the end side (e.g., the cloud or a server). Therefore, the term "Wi-Fi connection" in this article can also have other names, such as "Wi-Fi Direct" or "Wi-Fi-based P2P connection," and this article does not limit this name.
[0069] It should be understood that both Bluetooth and Wi-Fi connections require signal transmission and reception via an antenna. Optionally, the first Bluetooth module and the first Wi-Fi module may correspond to the same antenna or different antennas; this embodiment does not impose such limitations. Taking the first Bluetooth module and the first Wi-Fi module corresponding to the same antenna as an example, they can use a time-division multiplexing approach to transmit and receive signals through the antenna. For example, the first Bluetooth module transmits and receives signals through the antenna during one time period, and the first Wi-Fi module transmits and receives signals through the antenna during another time period. Taking the first Bluetooth module and the first Wi-Fi module corresponding to different antennas as an example, for instance, the first Bluetooth module corresponds to antenna 1, and the first Wi-Fi module corresponds to antenna 2; that is, the first Bluetooth module transmits and receives signals through antenna 1, and the first Wi-Fi module transmits and receives signals through antenna 2.
[0070] The second device can be a wearable device. Wearable devices can include wristband devices, head-mounted devices, and clothing devices. Wristband devices can include, for example, watches, bracelets, gloves, wristbands, necklaces, and rings. Head-mounted devices can include, for example, glasses, helmets, earplugs, and headphones. Clothing devices can include, for example, clothing, shoes, and buttons. In short, the embodiments of this application do not limit the specific type of wearable device. The operating system of the second device can be a second operating system. For example, the second operating system can be... Any operating system.
[0071] In this embodiment, the second device includes a second short-range communication module. The second short-range communication module may include 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, allowing other devices (e.g., the first device) to establish a second Wi-Fi connection with it. 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 with those devices. The process of establishing a Wi-Fi connection between the first device and the second device will be described in detail later. Optionally, the second Bluetooth module and the second Wi-Fi module may correspond to the same antenna or different antennas, the principle of which is the same as the first device described above, and will not be repeated.
[0072] The following explanation will continue using the communication system shown in Figure 1 as an example. The first device is a mobile phone, and the second device is a watch.
[0073] As mentioned earlier, to meet the file transfer needs between the watch and the phone, a communication connection needs to be established. To improve transmission efficiency, this communication connection can be a short-range communication connection. Short-range communication connections can include Bluetooth connections, Wi-Fi connections, and of course, other connection methods, such as Near Field Communication (NFC) connections. Taking Bluetooth connection as an example, after the watches establish a Bluetooth connection, files are transferred via Bluetooth. However, transferring files via Bluetooth is time-consuming and inefficient, especially when transferring large files, which requires a long wait to complete. Compared to Bluetooth connection, Wi-Fi connection has higher transmission efficiency and shorter transmission time, so this article mainly uses Wi-Fi connection as an example. The following describes the process of establishing a Wi-Fi connection between the watch and the phone.
[0074] To make it easier to understand, let's first briefly explain the principle of establishing a Wi-Fi connection between two devices. For two devices to establish a Wi-Fi connection, one device needs to act as the sender of the Wi-Fi hotspot, and the other as the receiver. Of course, the sender of the Wi-Fi hotspot can also have other names, such as the creator or provider. The receiver of the Wi-Fi hotspot can also have other names, such as the searcher or user. Taking two devices, A and B, as an example, if device A is the sender and device B is the receiver, then device A is responsible for creating the Wi-Fi hotspot so that device B can establish a Wi-Fi connection with it. If device B is the sender and device A is the receiver, then device B is responsible for creating the Wi-Fi hotspot so that device A can establish a Wi-Fi connection with it.
[0075] Therefore, for a watch and a mobile phone to establish a Wi-Fi connection, one device needs to act as the sender of the Wi-Fi hotspot, and the other device needs to act as the receiver. This application's embodiments can include the following two solutions.
[0076] In the first scenario, the watch acts as the receiver of the Wi-Fi hotspot, while the mobile phone acts as the sender.
[0077] For example, the phone creates a first Wi-Fi hotspot, allowing the watch to establish a first Wi-Fi connection with it. In this solution, since the watch acts as the receiver of the Wi-Fi hotspot, it does not need to create the hotspot, which helps save power consumption. Furthermore, the watch does not require any software or hardware for creating a Wi-Fi hotspot, aligning with the trend towards lightweight watches.
[0078] Optionally, in the first approach, the watch establishes a first Wi-Fi connection with the phone, which can include both automatic and manual connection methods.
[0079] The first method is manual connection. For example, please refer to Figure 2A(a), where the phone displays an interface. Optionally, this interface can be the settings application interface on the phone. This interface includes a button, which is used to trigger the phone to create a first Wi-Fi hotspot or to trigger the phone to turn off the first Wi-Fi hotspot. When the phone receives an operation on the button, it displays the interface shown in Figure 2A(b) and creates the first Wi-Fi hotspot. At this time, the phone can broadcast a signal, which includes the name of the first Wi-Fi hotspot. The watch can search for the first Wi-Fi hotspot, and after finding it, it displays the interface shown in Figure 2A(c), which includes the name of the found first Wi-Fi hotspot. After receiving an operation on the name of the first Wi-Fi hotspot, the watch pairs with the phone and establishes a first Wi-Fi connection. For example, the watch can send a pairing request to the phone. After receiving the pairing request, the phone can display the interface shown in Figure 2A(d), which may include a prompt: Do you want to pair with the watch? After receiving a confirmation command, the phone pairs with the watch and sends a pairing success response to the watch. After receiving the response, the watch can display the interface shown in Figure 2A(e), which includes the message: Pairing with the phone complete. Therefore, the watch and the phone establish their first Wi-Fi connection.
[0080] The second method is automatic connection. For example, please refer to Figure 2B, which is a flowchart illustrating a device connection method provided in an embodiment of this application. This method can be applied to the communication system shown in Figure 1. As shown in Figure 2B, the process may include:
[0081] S201, the phone creates the first Wi-Fi hotspot.
[0082] S202, a mobile phone broadcast signal that includes the name of the first Wi-Fi hotspot.
[0083] 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 mobile phone itself or set by the user, and there is no limitation.
[0084] S203, the watch found the first Wi-Fi hotspot.
[0085] It should be noted that after the watch detects the phone's first Wi-Fi hotspot, in order to automatically establish a connection with the phone's first Wi-Fi, it also needs to know the connection information of the first Wi-Fi hotspot. This connection information is used to connect to the first Wi-Fi hotspot. For example, the connection information of the first Wi-Fi hotspot may include: the password of the first Wi-Fi hotspot, and optionally, the name of the first Wi-Fi hotspot. The password may be a combination of one or more of the following: numbers, letters, symbols, etc. The password may be generated by the phone itself or set by the user, without limitation. In this embodiment, the watch can receive the connection information of the first Wi-Fi hotspot from the phone via Bluetooth, i.e., S204 and S205.
[0086] S204, the watch establishes a Bluetooth connection with the phone.
[0087] Optionally, the execution order of S204 and S201-S203 is not limited. For example, S204 can be executed before S201.
[0088] S205: The phone sends connection information for the first Wi-Fi hotspot to the watch via Bluetooth.
[0089] S206: The watch establishes a first Wi-Fi connection with the mobile phone based on the connection information of the first Wi-Fi hotspot.
[0090] S207, the phone disconnects from the watch via Bluetooth.
[0091] Optionally, S207 may or may not be executed, hence the dashed line in the diagram. Furthermore, the execution order between S207 and S206 is not specified. It should be understood that disconnecting the phone from the watch via Bluetooth helps save power and also prevents Bluetooth signals from interfering with Wi-Fi signals.
[0092] In the embodiment shown in Figure 2B, after the mobile phone creates the first Wi-Fi hotspot, it can provide the watch with the information of the first Wi-Fi hotspot (e.g., the name and password of the first Wi-Fi hotspot). Based on the information of the first Wi-Fi hotspot, the watch establishes a first Wi-Fi connection with the mobile phone. In this method, no manual operation by the user is required, and the first Wi-Fi connection is automatically established, improving convenience.
[0093] The above embodiments illustrate two implementations of the first scheme. Since the first scheme involves the mobile phone acting as the Wi-Fi hotspot transmitter, the phone can choose to use one of the two implementation methods. There are several possible selection methods. Method A: The phone provides a display component to allow the user to set an automatic connection mode or a manual connection mode. If the user sets an automatic connection mode, the automatic connection mode is used; if the user sets a manual connection mode, the manual connection mode is used. Method B: The phone can determine whether a Bluetooth connection has already been established. If so, the automatic connection mode is used; otherwise, the manual connection mode is used.
[0094] In some embodiments, the first solution described above can be applied to scenarios where the phone and watch have the same operating system. For example, both the watch and the phone run HarmonyOS, Android, or iOS. One possible scenario is that the phone and watch, both with the same operating system, belong to the same manufacturer (e.g., Huawei), and the first solution described above can be used to establish a Wi-Fi connection between them. However, for scenarios where the phone and watch have different operating systems, the first solution may not be applicable. For example, the watch uses a first operating system, and the phone uses a second operating system. The first and second operating systems are different; for example, the first operating system is HarmonyOS or Android, and the second operating system is iOS. In this case, the watch acts as the receiver of the Wi-Fi hotspot, and the phone acts as the sender, and they may not be able to establish a Wi-Fi connection. One possible scenario is that the watch cannot find 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 find it, as shown in Figure 3A(b). Another possible scenario is that the watch can detect the Wi-Fi hotspot created by the phone but cannot connect to it. For example, as shown in Figure 3B(a), the phone creates a Wi-Fi hotspot, and the watch can detect it, as shown in Figure 3B(b). However, when the watch receives an operation to connect to the Wi-Fi hotspot, it fails to establish a Wi-Fi connection. For example, as shown in Figure 3B(c), the watch displays a "Connection failed" message. The reason for this might be that the phone's secondary operating system restricts wearable devices without a secondary operating system (e.g., a watch with a primary operating system) from establishing Wi-Fi connections with it.
[0095] Analysis reveals that the reason the watch and phone cannot establish a Wi-Fi connection, as mentioned earlier, is that the watch, as a receiver of a Wi-Fi hotspot, can only passively search for the phone's Wi-Fi hotspot. In special circumstances (e.g., the phone's operating system is iOS, while the watch's operating system is HarmonyOS or Android), the watch cannot establish a Wi-Fi connection. To solve this problem, this application provides a solution where the watch is not limited to passively searching for the phone's Wi-Fi hotspot; it can also create its own Wi-Fi hotspot. In other words, the watch acts as the sender of the Wi-Fi hotspot, and the phone acts as the receiver—this is the second solution described below.
[0096] The second option is to use the watch as the sender of the Wi-Fi hotspot and the mobile phone as the receiver.
[0097] For example, the watch creates a second Wi-Fi hotspot, allowing the phone to establish a second Wi-Fi connection. This second approach is applicable when the phone and watch share the same operating system. For instance, both the watch and phone might run HarmonyOS, Android, or iOS. The second approach also applies when the phone and watch have different operating systems. Continuing with the previous example, if the watch uses a primary operating system like HarmonyOS or Android, and the phone uses a secondary operating system like iOS, with the watch acting as the Wi-Fi hotspot sender and the phone as the receiver, a Wi-Fi connection can be established. For example, after the watch creates a second Wi-Fi hotspot, the phone can search for and connect to it.
[0098] Alternatively, in the second option, the watch establishes a second Wi-Fi connection with the phone, including both automatic and manual connection methods.
[0099] The first method is manual connection. For example, please refer to Figure 4A(a), the watch display interface. Optionally, this interface can be the settings application interface on the watch. This interface includes a button used to trigger the watch to create a second Wi-Fi hotspot or to trigger the watch to turn off the second Wi-Fi hotspot. In Figure 4A(a), when the watch receives an operation on the button, it displays the interface shown in Figure 4A(b) and creates the second Wi-Fi hotspot. At this time, the watch can broadcast a signal, which includes the name of the second Wi-Fi hotspot. The mobile phone can search for the second Wi-Fi hotspot, and after finding the second Wi-Fi hotspot, it displays the interface shown in Figure 4A(c), which includes the name of the found second Wi-Fi hotspot. After receiving an operation on the name of the second Wi-Fi hotspot, the mobile phone pairs with the watch and establishes a second Wi-Fi connection. For example, the mobile phone can send a pairing request to the watch. After receiving the pairing request, the watch can display the interface shown in Figure 4A(d), which may include a prompt message: whether to pair with the mobile phone. After receiving the confirmation command, the watch pairs with the mobile phone and sends a successful pairing response to the mobile phone. After receiving the response, the mobile phone can display the interface shown in Figure 4A(e), which includes the prompt message: Pairing with the watch is complete.
[0100] The second method is automatic connection. For example, please refer to Figure 4B, which is another flowchart illustrating the device connection method provided in this application embodiment. This method can be applied to the communication system shown in Figure 1. As shown in Figure 4B, the process may include:
[0101] S401, the watch creates a second Wi-Fi hotspot.
[0102] In some embodiments, before creating a second Wi-Fi hotspot, the watch can also determine whether a second condition is met; if so, the second Wi-Fi hotspot is created. Optionally, the second condition includes at least one of the following:
[0103] I. The current business scenario of the watch is a preset scenario. For example, the preset scenario may include at least one of the following: system upgrade scenario, theme update scenario, wallpaper update scenario, application upgrade scenario, and offline map scenario. These will be explained in detail below.
[0104] (a) System upgrade scenario, specifically, the scenario of upgrading the watch's operating system. Upgrading the watch's operating system can be from one type of operating system to another. For example, if the watch's current operating system is Android, the upgrade could be from Android to HarmonyOS. Alternatively, the operating system type can remain the same, but the upgrade can be from a first version to a second version. Optionally, the second version can be higher than the first version; for example, if the watch's operating system is HarmonyOS, this means upgrading from a lower version of HarmonyOS to a higher version. Alternatively, the second version can be lower than the first version. For example, if the watch's factory operating system is a lower version of HarmonyOS, the user can update the watch's operating system to a higher version of HarmonyOS. Of course, if the user needs, they can also restore it to the factory-installed lower version of HarmonyOS. For example, the watch provides a "Restore Factory Settings" entry, through which the watch's current higher version operating system can be restored to the factory-installed lower version operating system. Optionally, the entry can have other names, which are not limited in this embodiment. The entry can be located in the watch's settings application, or in other locations.
[0105] (b) Theme Update Scenario: This refers to updating the watch's theme. A watch theme can be understood as a display template; different templates, or themes, exhibit different display styles. Taking a theme as an example, if this theme is used, one or more interfaces on the watch need to be displayed according to the theme's corresponding display style. These one or more interfaces may include the lock screen, main screen, application screens, watch face, etc. Optionally, the display style for each of these interfaces can be the same or different. For example, displaying the lock screen according to the theme's display style can include displaying the display elements within the lock screen according to the theme's display style. Display elements can include one or more of the following: text, images, icons, symbols, numbers, etc. For instance, the wallpaper, time information, and new messages on the lock screen are all displayed according to the specified display style.
[0106] (c) Wallpaper update scenario, i.e., updating the watch's wallpaper. The watch's wallpaper may include the wallpaper of one or more interfaces on the watch. The one or more interfaces may include the lock screen interface, the main interface, application interfaces, etc. Optionally, the wallpaper can be a static wallpaper or a dynamic wallpaper, without limitation. In some embodiments, theme updates and wallpaper updates may be two independent and unrelated processes. For example, a theme update may not update the wallpaper, and a wallpaper update may not affect the theme. In this case, the user can update the theme or wallpaper as needed. In other embodiments, theme updates and wallpaper updates may have a certain correlation. For example, a theme update may update the wallpaper accordingly, but a wallpaper update may not affect the theme. In this case, when the user updates the watch's theme, the wallpaper will change synchronously. Of course, the user can also update only the wallpaper without updating the theme.
[0107] (d) Application upgrade scenario, which refers to upgrading the applications on the watch. Application upgrades can include updating an application from a first version to a second version. The application can be of various types, such as instant messaging applications, health and fitness applications, image capture 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 lower version to a higher version. Alternatively, the second version can be lower than the first version, i.e., restoring the application from a higher version to a lower version. For example, the watch includes an application that is a lower version; the user can upgrade the application to a higher version, and of course, if needed, the user can also restore the application from a higher version to a lower version. For example, the watch provides an "Application Initialization" entry, through which the application can be restored from the current higher version to a lower version. It should be noted that the entry can also have other names, such as "Factory Reset," which is not limited in this embodiment. The entry can be located within the application's interface, or it can be located in other locations.
[0108] (e) Offline map scenario, which refers to the scenario where the watch is currently using an offline map. Due to the watch's limited memory, when using an offline map, the watch can obtain the offline map from the phone. Therefore, the watch and the phone need to transfer files, i.e., the offline map, so a Wi-Fi connection needs to be established.
[0109] 2. The file to be transmitted is in a preset format. For example, the preset format may include one or more of the following: video file formats, image file formats, and compressed file formats. Video file formats may include mp3, mp4, and wav formats, etc. Image file formats may include jpg and png formats, etc. Compressed file formats may include zip, rar, and heif formats, etc.
[0110] Third, the file size of the file to be transferred exceeds a threshold. For example, the threshold may be 5M, 10M, 20M, 30M, etc., and the specific value is not limited in this application embodiment.
[0111] It's important to note that file transfer between a watch and a phone can fall into two categories: 1. The watch transfers files to the phone; 2. The phone transfers files to the watch. The watch's processing methods differ in these two scenarios. In scenario one, the watch needs to transfer a file to the phone, so the file is located on the watch. The watch can determine if the file's format is a preset format and if the file size exceeds a threshold. In scenario two, the phone needs to transfer a file to the watch, so the file is located on the phone. In this case, the watch can request information from the phone (e.g., via Bluetooth) such as the file's format and size. After determining the file's format and size, the watch can then determine if the file's format is a preset format and if the file size exceeds a threshold.
[0112] 4. The watch's current operating load is below the load threshold. For example, the watch's current operating load can be described by one or more of the following: CPU load, memory usage, number of currently running applications, etc.
[0113] 5. The watch's current remaining battery power is higher than the battery power threshold. For example, the battery power threshold can be 20%, 10%, 30%, etc., and the specific value is not limited in this application embodiment.
[0114] In some embodiments, before creating a second Wi-Fi hotspot, the watch may output a first prompt message to ask the user to confirm whether to create the second Wi-Fi hotspot. If the watch receives a confirmation instruction, it then creates the second Wi-Fi hotspot.
[0115] S402, watch broadcast signal, which includes the name of the second Wi-Fi hotspot.
[0116] Optionally, the name of the second Wi-Fi hotspot can be its SSID. The name can be generated by the phone itself or set by the user, and is not limited thereto.
[0117] S403, the phone found a second Wi-Fi hotspot.
[0118] It should be noted that after the mobile phone finds the watch's second Wi-Fi hotspot, in order to automatically establish a connection with the watch's second Wi-Fi, it also needs to know the connection information of the second Wi-Fi hotspot. This connection information is used to connect to the second Wi-Fi hotspot. For example, the connection information of the second Wi-Fi hotspot may include: the 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 this embodiment, the mobile phone can receive the connection information of the second Wi-Fi hotspot from the watch via Bluetooth, i.e., S404 and S405.
[0119] S404, the watch establishes a Bluetooth connection with the phone.
[0120] Optionally, the execution order of S404 and S401-S403 is not limited; for example, S404 can be executed before S401.
[0121] S405: The watch sends connection information for a second Wi-Fi hotspot to the phone via Bluetooth.
[0122] S406: The phone establishes a second Wi-Fi connection with the watch based on the connection information of the second Wi-Fi hotspot.
[0123] S407, the watch disconnected from the phone via Bluetooth.
[0124] Optionally, S407 may or may not be executed, hence the dashed line in the diagram. Furthermore, the execution order between S407 and S406 is not specified. It should be understood that disconnecting the watch from the phone via Bluetooth helps save power and also prevents Bluetooth signals from interfering with Wi-Fi signals.
[0125] In the embodiment shown in Figure 4B, after the watch creates a second Wi-Fi hotspot, it can provide the mobile phone with the information of the second Wi-Fi hotspot (e.g., the name and password of the second Wi-Fi hotspot). Based on the information of the second Wi-Fi hotspot, the mobile phone establishes a second Wi-Fi connection with the watch. In this method, no manual operation by the user is required, and the second Wi-Fi connection is automatically established, improving convenience.
[0126] The above embodiments illustrate two implementation methods for the second scheme. Since the second scheme involves the watch acting as a Wi-Fi hotspot transmitter, the watch can choose to use one of the two implementation methods. There are several possible selection methods. Method C: The watch provides a display component to allow the user to easily set an automatic or manual connection mode. If the user sets an automatic connection mode, the automatic connection method is used; if the user sets a manual connection mode, the manual connection method is used. Method D: The watch can determine whether a Bluetooth connection has already been established. If so, the automatic connection method is used; otherwise, the manual connection method is used.
[0127] In the above embodiments, two schemes are provided, in which the watch plays a different role. In the first scheme, the watch acts as a receiver of the Wi-Fi hotspot, and in the second scheme, the watch acts as a transmitter of the Wi-Fi hotspot. In the embodiments of this application, the watch may only support the first scheme, i.e., only act as a receiver of the Wi-Fi hotspot; or only support the second scheme, i.e., only act as a transmitter of the Wi-Fi hotspot; or support both the first and second schemes, i.e., the watch can act as both a transmitter and a receiver of the Wi-Fi hotspot. Taking the example of the watch supporting both the first and second schemes, the watch can choose to use one of the two schemes. For example, the watch can provide a selection interface for the user to choose, and determine which scheme to use based on the user's selection. Alternatively, the watch can also determine which scheme to use automatically, for example, by including the following three determination methods.
[0128] In the first method, the watch determines whether it can find the first Wi-Fi hotspot created by the phone. If it cannot find the phone's first Wi-Fi hotspot, the second method is used; if it can find the phone's first Wi-Fi hotspot, the first method is used. Optionally, to improve accuracy, the watch can perform one or more searches when determining whether it can find the phone's first Wi-Fi hotspot. For example, after the first search, if no hotspot is found, the watch can perform a second search. Optionally, before performing the second search, the watch can send a request message to the phone (e.g., via Bluetooth) to request the phone to create the first Wi-Fi hotspot. After sending the request message, the watch performs a second search; if no hotspot is found, it can perform another search or stop searching.
[0129] The second method involves the watch determining whether it can connect to the first Wi-Fi hotspot created by the phone. If it determines that it cannot connect to the phone's first Wi-Fi hotspot, the second method is used; if it can connect, the first method is used. Optionally, the watch's determination of whether it can connect to the phone's first Wi-Fi hotspot may include: the watch sending a connection request to the phone to request the establishment of a first Wi-Fi connection. If it receives a connection acceptance instruction from the phone, it can connect to the phone's first Wi-Fi hotspot; if it does not receive a connection acceptance instruction or receives a connection rejection instruction, it cannot connect to the phone's first Wi-Fi hotspot. One possible reason why the watch cannot connect to the phone's first Wi-Fi hotspot is that the phone's operating system is different from the watch's operating system, and the phone's operating system restricts the watch from establishing a Wi-Fi connection with it. Another possible reason is poor network quality, which prevents the watch from connecting to the phone's first Wi-Fi hotspot. Of course, there may be other reasons, which will not be listed here. Regardless of the reason, if the watch determines that it cannot connect to the phone's first Wi-Fi hotspot, the second method is used to ensure that the watch and the phone can establish a Wi-Fi connection.
[0130] The third method involves the watch determining whether the phone's operating system is the default operating system. Taking the watch's operating system as HarmonyOS or Android as an example, the default operating system could be iOS. If the watch determines the phone's operating system is the default, the second method is used; otherwise, the first method is used. In this method, the watch needs to determine the phone's operating system. One possible approach is for the watch and phone to establish a Bluetooth connection, with the watch sending a query message to the phone to inquire about the phone's operating system. After receiving the query message, the phone returns the query result to the watch. The query result includes information about the phone's operating system, such as its name and version. Alternatively, the phone can proactively send its operating system information to the watch, which then determines the phone's operating system based on this information. After determining the phone's operating system, the watch can then determine whether it is the default operating system. One possible approach is for the watch to store information about the default operating system, such as its name and version. After receiving the operating system information from the mobile phone, the watch can match the received information with the information of the preset operating system stored locally. If they match, the watch determines that the mobile phone's operating system is the preset operating system; otherwise, it determines that the mobile phone's operating system is not the preset operating system. In other words, in this embodiment, when the watch determines that the mobile phone's operating system is the preset operating system, the watch itself acts as the sender of the Wi-Fi hotspot to achieve a Wi-Fi connection between the watch and the mobile phone.
[0131] It should be noted that the above lists three ways for the watch to determine whether to use the first or second scheme. It should be understood that there may be other ways, which are not listed in the embodiments of this application.
[0132] Taking the third method above as an example, suppose the watch determines through the third method that it needs to use the first solution, i.e., the watch acts as the receiver of the Wi-Fi hotspot. In this case, the watch needs to search for the phone's first Wi-Fi hotspot. One possibility is that the phone has already created the first Wi-Fi hotspot, so the watch can directly search for the phone's first Wi-Fi hotspot. Another possibility is that the phone has not yet created the first Wi-Fi hotspot. In this case, the watch cannot search for the phone's first Wi-Fi hotspot. To improve efficiency, the watch can request the phone to create the first Wi-Fi hotspot. For example, the watch can establish a Bluetooth connection with the phone and send a request message to the phone via Bluetooth to request the phone to create the first Wi-Fi hotspot.
[0133] Taking the third method above as an example, suppose the watch determines through the third method that it needs to use the second solution, that is, the watch acts as 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 mentioned above, the second solution includes two implementation methods: manual connection and automatic connection. The watch can choose to use one of the two implementation methods. There are multiple selection methods, such as method C or method D mentioned above. Optionally, for user convenience, when the watch determines to use the manual connection method, the interface shown in Figure 4A(a) can pop up, which is used to create the second Wi-Fi hotspot.
[0134] The above embodiments primarily illustrate the process of establishing a Wi-Fi connection between the watch and the phone. In other embodiments, the watch and phone can support not only Wi-Fi but also other short-range communication methods, such as Bluetooth. In this case, the watch can choose to establish either a Bluetooth or Wi-Fi connection with the phone. Considering that Wi-Fi connections consume more power than Bluetooth connections, to avoid wasting power, the watch and phone can default to a Bluetooth connection, establishing a Wi-Fi connection only when necessary (e.g., when the fourth condition is met, as described later).
[0135] For example, please refer to Figure 5, which is a schematic flowchart of another device connection method provided in an embodiment of this application. This method can be applied to the communication system shown in Figure 1. As shown in Figure 5, the process may include:
[0136] S501: The watch establishes a Bluetooth connection with the phone.
[0137] S502, the watch is confirmed to meet the fourth condition.
[0138] Optionally, the fourth condition may include at least one of the following:
[0139] Condition 1: The watch's current business scenario is a preset scenario. For example, preset scenarios may include one of the following: system upgrade scenario, theme update scenario, wallpaper update scenario, application upgrade scenario, or offline map scenario. Please refer to the previous description for information on preset scenarios. It should be understood that if the watch's current business scenario is a preset scenario, it means that there is a need for file transfer between the watch and the phone, and it is very likely that a large amount of data will be transferred. Therefore, a Wi-Fi connection needs to be established between the watch and the phone to improve the transfer speed.
[0140] Condition 2: The file to be transmitted is in a preset format. For example, the preset format may include one or more of the following: video file formats, image file formats, and compressed file formats. Video file formats may include mp3, mp4, and wav formats, etc. Image file formats may include jpg and png formats, etc. Compressed file formats may include zip, rar, and heif formats, etc.
[0141] Condition 3: The file size of the file to be transferred is greater than a threshold. For example, the threshold may be 5M, 10M, 20M, 30M, etc., and the specific value is not limited in this application embodiment.
[0142] It should be noted that the above three conditions are just examples, and other conditions may also be included, which will not be listed one by one.
[0143] S503: The watch establishes a Wi-Fi connection with the phone.
[0144] As mentioned earlier, establishing a Wi-Fi connection between the watch and the phone can be achieved through two methods: the first method (where the phone acts as the Wi-Fi hotspot transmitter) and the second method (where the watch acts as the Wi-Fi hotspot transmitter). The watch can choose to use either method; the specific selection process has been described in detail earlier and will not be repeated here.
[0145] S504, the watch disconnects from the phone via Bluetooth.
[0146] Optionally, S504 may or may not be executed, so it is represented by a dashed line in the diagram. Optionally, the execution order of S504 and S503 is not limited.
[0147] Please refer to Figure 6, which 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. As shown in Figure 6, 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.
[0148] Processor 110 may include one or more processing units, such as an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, memory, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural network processing unit (NPU). Different processing units may be independent devices or integrated into one or more processors. The controller may serve as the nerve center and command center of the electronic device. The controller can generate operation control signals based on instruction opcodes and timing signals to control instruction fetching and execution. Processor 110 may also include memory for storing instructions and data. In some embodiments, the memory in processor 110 is a cache memory. This memory can store instructions or data that processor 110 has just used or is repeatedly used. If processor 110 needs to reuse the instruction or data, it can directly retrieve it from the memory. This avoids repeated access, reduces the waiting time of processor 110, and thus improves system efficiency.
[0149] In some embodiments, the processor 110 can execute the device connection method provided in the embodiments of this application. Taking a watch as an example, the processor 110 can create a second Wi-Fi hotspot and send the information of the second Wi-Fi hotspot to a mobile phone, so that the mobile phone can establish a second Wi-Fi connection with the watch based on the information of the second Wi-Fi hotspot. Taking a mobile phone as an example, the processor 110 can create a first Wi-Fi hotspot and send the information of the first Wi-Fi hotspot to the watch, so that the watch can establish a first Wi-Fi connection with the mobile phone based on the information of the first Wi-Fi hotspot.
[0150] In some embodiments, the processor 110 may include one or more interfaces. Interfaces may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface, etc.
[0151] 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 may include multiple I2C buses. The processor 110 can couple to the touch sensor 180K, charger, flash, camera 193, etc., through different I2C bus interfaces. For example, the processor 110 can couple to the touch sensor 180K through the I2C interface, enabling the processor 110 and the touch sensor 180K to communicate through the I2C bus interface, thereby realizing the touch function of the electronic device 100.
[0152] The I2S interface can be used for audio communication. In some embodiments, the processor 110 may include multiple I2S buses. The processor 110 can be coupled to the audio module 170 via the I2S bus to enable communication between the processor 110 and the audio module 170. In some embodiments, the audio module 170 can transmit audio signals to the wireless communication module 160 via the I2S interface to enable the function of answering phone calls through a Bluetooth headset.
[0153] The PCM interface can also be used for audio communication, sampling, quantizing, and encoding analog signals. In some embodiments, the audio module 170 and the wireless communication module 160 can be coupled via the PCM bus interface. In some embodiments, the audio module 170 can also transmit audio signals to the wireless communication module 160 via the PCM interface, enabling the function of answering phone calls through a Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.
[0154] The UART interface is a universal serial data bus used for asynchronous communication. This bus can be a bidirectional communication bus. It converts the data to be transmitted between serial and parallel communication. In some embodiments, the UART interface is typically 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 via the UART interface to implement Bluetooth functionality. In some embodiments, the audio module 170 can transmit audio signals to the wireless communication module 160 via the UART interface to enable music playback through Bluetooth headphones.
[0155] The MIPI interface can be used to connect the processor 110 to peripheral devices such as the display screen 194 and the camera 193. The MIPI interface includes a camera serial interface (CSI) and a display serial interface (DSI). In some embodiments, the processor 110 and the camera 193 communicate via the CSI interface to enable the electronic device 100 to capture images. The processor 110 and the display screen 194 communicate via the DSI interface to enable the electronic device 100 to display images.
[0156] The GPIO interface can be configured via software. It can be configured as a control signal or a data signal. In some embodiments, the GPIO interface can be used to connect the processor 110 to a camera 193, a display screen 194, a wireless communication module 160, an audio module 170, a 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.
[0157] USB port 130 is a USB standard compliant interface, specifically a Mini USB port, Micro USB port, USB Type-C port, etc. USB port 130 can be used to connect a charger to charge electronic device 100, and can also be used for data transfer between electronic device 100 and peripheral devices. It can also be used to connect headphones for audio playback. This interface can also be used to connect other electronic devices, such as AR devices.
[0158] It is understood that the interface connection relationships between the modules illustrated in the embodiments of the present invention are merely illustrative and do not constitute a structural limitation on the electronic device 100. In other embodiments of this application, the electronic device 100 may also employ different interface connection methods or combinations of multiple interface connection methods as described in the above embodiments.
[0159] The wireless communication function of the electronic device can be implemented through antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, modem processor, and baseband processor. Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in the electronic device can be used to cover one or more communication frequency bands. Different antennas can also be reused to improve antenna utilization. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In some other embodiments, the antenna can be used in conjunction with a tuning switch.
[0160] The mobile communication module 150 can provide solutions for wireless communication applications including 2G / 3G / 4G / 5G in electronic devices. The mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves via antenna 1, and perform filtering, amplification, and other processing on the received electromagnetic waves before transmitting them to a modem processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modem processor and convert it into electromagnetic waves for radiation via antenna 1. In some embodiments, at least some functional modules of the mobile communication module 150 may be housed in processor 110. In some embodiments, at least some functional modules of the mobile communication module 150 and at least some modules of the processor 110 may be housed in the same device.
[0161] The wireless communication module 160 can provide solutions for wireless communication applications in electronic devices, including wireless local area networks (WLANs) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), and infrared (IR) technologies. The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via antenna 2, performs frequency modulation and filtering of the electromagnetic wave signals, and sends the processed signal to processor 110. The wireless communication module 160 can also receive signals to be transmitted from processor 110, perform frequency modulation and amplification, and convert them into electromagnetic waves for radiation via antenna 2.
[0162] In some embodiments, antenna 1 of the electronic device is coupled to mobile communication module 150, and antenna 2 is coupled to wireless communication module 160, enabling the electronic device to communicate with networks and other devices via wireless communication technology.
[0163] The display screen 194 is used to display the application's interface, etc. The display screen 194 includes a display panel. In some embodiments, the electronic device may include one or N display screens 194, where N is a positive integer greater than 1.
[0164] The electronic device 100 can perform shooting functions through an ISP, a camera 193, a video codec, a GPU, a display 194, and an application processor. The ISP is used to process the data fed back by the camera 193.
[0165] Internal memory 121 can be used to store computer executable program code, which includes instructions. Processor 110 executes various functional applications and data processing of the electronic device by running the instructions stored in internal memory 121. Internal memory 121 may include a program storage area and a data storage area. The program storage area may store the operating system and software code for at least one application program. The data storage area may store data generated during the use of the electronic device (e.g., images, videos, etc.). Furthermore, internal memory 121 may include high-speed random access memory and may also include non-volatile memory, such as at least one disk storage device, flash memory device, general-purpose flash memory, etc.
[0166] The external storage interface 120 can be used 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 storage interface 120 to perform data storage functions. For example, images, videos, and other files can be saved on the external memory card.
[0167] Electronic devices can implement audio functions such as music playback and recording through audio modules 170, speakers 170A, receivers 170B, microphones 170C, headphone jacks 170D, and application processors.
[0168] The audio module 170 is used to convert digital audio information into analog audio signals for output, and also to convert analog audio input into digital audio signals. The audio module 170 can also be used for encoding and decoding audio signals. In some embodiments, the audio module 170 may be located in the processor 110, or some functional modules of the audio module 170 may be located in the processor 110.
[0169] The speaker 170A, also known as a "loudspeaker," is used to convert audio electrical signals into sound signals. The electronic device 100 can listen to music or listen to hands-free calls and other external playback scenarios through one or more speakers 170A.
[0170] The receiver 170B, also known as a "handpiece," can be one or more, and is used to convert audio electrical signals into sound signals. When the electronic device 100 answers a telephone call or voice message, the receiver 170B can be brought close to the ear to listen to the voice.
[0171] The microphone 170C, also known as a "microphone" or "voice transducer," is used to convert sound signals into electrical signals.
[0172] The 170D headphone jack is used to connect wired headphones.
[0173] The pressure sensor 180A is used to sense pressure signals and can convert the pressure signals into electrical signals. In some embodiments, the pressure sensor 180A may be disposed on the display screen 194.
[0174] The gyroscope sensor 180B can be used to determine the motion attitude of an electronic device. In some embodiments, the gyroscope sensor 180B can determine the angular velocity of the electronic device about three axes (i.e., the x, y, and z axes). The gyroscope sensor 180B can be used for image stabilization.
[0175] The barometric pressure sensor 180C is used to measure air pressure. In some embodiments, the electronic device calculates altitude using the air pressure value measured by the barometric pressure sensor 180C to assist in positioning and navigation.
[0176] The magnetic sensor 180D includes a Hall effect sensor. Electronic devices can use the magnetic sensor 180D to detect the opening and closing of a flip cover.
[0177] The 180E accelerometer can detect the magnitude of acceleration in various directions (typically three axes) of electronic devices. When the electronic device is stationary, it can detect the magnitude and direction of gravity.
[0178] The 180F distance sensor is used to measure distance. Electronic devices can measure distance using infrared or laser.
[0179] The proximity sensor 180G may include, for example, a light-emitting diode (LED) and a light detector, such as a photodiode. The LED may be an infrared LED. The electronic device emits infrared light outward through the LED. The electronic device uses the photodiode to detect infrared reflected light from nearby objects. When sufficient reflected light is detected, it can be determined that an object is near the electronic device. When insufficient reflected light is detected, the electronic device can determine that no object is near the electronic device.
[0180] An ambient light sensor 180L is used to detect ambient light levels. Electronic devices can adaptively adjust the brightness of the display screen 194 based on the detected ambient light levels.
[0181] The fingerprint sensor 180H is used to collect fingerprints.
[0182] The 180J temperature sensor is used to detect temperature.
[0183] Touch sensor 180K, also known as a "touch panel," can be located on display screen 194. The touch sensor 180K and display screen 194 together form a touchscreen, also known as a "touch screen." Touch sensor 180K is used to detect touch operations applied to or near it. The touch sensor can then transmit the detected touch operation to the application processor to determine the type of touch event.
[0184] The bone conduction sensor 180M can acquire vibration signals. In some embodiments, the bone conduction sensor 180M can acquire vibration signals from the vibrating bone segments of the human vocal cords.
[0185] Buttons 190 include a power button, volume buttons, etc. Buttons 190 can be mechanical buttons or touch buttons. The electronic device can receive button inputs and generate key signal inputs related to user settings and function control. Motor 191 can generate vibration alerts. Motor 191 can be used for incoming call vibration alerts or for touch vibration feedback. Indicator 192 can be an indicator light, used to indicate charging status, battery level changes, messages, missed calls, notifications, etc. SIM card interface 195 is used 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.
[0186] It is understood that the components shown in Figure 6 do not constitute a specific limitation on the electronic device. The electronic device in embodiments of the present invention may include more or fewer components than those shown in Figure 6. Furthermore, the combination / connection relationships between the components in Figure 6 can also be adjusted and modified.
[0187] Figure 7 is a schematic diagram of the structure of an electronic device 700 provided in an embodiment of this application. The electronic device 700 can be either the first device (e.g., a mobile phone) or the second device (e.g., a watch) mentioned above. As shown in Figure 7, the electronic device 700 may include: one or more processors 701; one or more memories 702; a communication interface 703; and one or more computer programs 704. These devices can be connected via 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. 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) mentioned above, the instructions can be used to perform the relevant steps of the first device (e.g., a mobile phone) as described in the corresponding embodiments above, such as performing the relevant steps of the first device (e.g., a mobile phone) in Figures 2A to 5. Similarly, when the electronic device 700 is the second device (e.g., a watch) mentioned above, the instructions can be used to perform the relevant steps of the second device (e.g., a watch) as described in the corresponding embodiments above, such as performing the relevant steps of the second device (e.g., a watch) in Figures 2A to 5. The communication interface 703 is used to enable communication between the electronic device 700 and other devices, such as a transceiver.
[0188] The methods provided in the embodiments of this application above are described from the perspective of an electronic device (e.g., a mobile phone or a watch) as the executing entity. To implement the functions of the methods provided in the embodiments of this application above, the electronic device may include hardware structures and / or software modules, implementing the above functions in the form of hardware structures, software modules, or a combination of hardware structures and software modules. Whether a particular function is implemented in the form of hardware structures, software modules, or a combination of hardware structures and software modules depends on the specific application and design constraints of the technical solution.
[0189] In the above embodiments, implementation can be achieved entirely or partially through software, hardware, firmware, or any combination thereof. When implemented using software, it can be implemented entirely or partially in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of the present invention are generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that integrates one or more available media. The available medium can be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid state disk (SSD)). Where there is no conflict, the solutions in the above embodiments can be combined.
[0190] Those skilled in the art will understand that embodiments of this application can be provided as methods, systems, or computer program products. Therefore, this application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this application can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0191] This application is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to this application. It should be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations 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 processor, 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 specified in one or more blocks of the flowchart illustrations and / or one or more blocks of the block diagrams.
[0192] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means that implement the functions specified in one or more flowcharts and / or one or more block diagrams.
[0193] These computer program instructions may 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, which execute on the computer or other programmable apparatus, provide steps for implementing the functions specified in one or more flowcharts and / or one or more block diagrams.
[0194] Obviously, those skilled in the art can make various modifications and variations to this application without departing from the scope and intent of this application. Therefore, if such modifications and variations fall within the scope of the claims of this application and their equivalents, this application is also intended to include such modifications and variations.
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,
Citation Information
Patent Citations
Intelligent television, mobile terminal, multi-screen interaction system and wireless communication method
CN102802071A
Method, server side and client side of family media device accessing to wireless fidelity (wifi) hotspot
CN103037477A
Terminal devices, wireless fidelity (WIFI) connection method and system
CN103096506A
Method and device for automatic pairing of network terminals
CN103702396A
Intelligent equipment networking method and intelligent equipment networking system
CN106454827A