Patent Description:
With recent technology development, functions of wearable devices such as smart watches or bracelets are becoming more and more popular. The processor of the wearable device is connected with a Bluetooth™ module, and a communication connection may be established with a terminal through Bluetooth communication, so that data (such as media data and biometric data) may be transmitted between the wearable device and the terminal. Functions such as reminding and forwarding call information can also be enabled. Traditional wearable devices can have multiple operating systems. When a main operating system is turned off, corresponding Bluetooth function may not be carried over, and thus a problematic, abnormal Bluetooth communication can occur. Therefore, it is advantageous to have a system and method to address the foregoing issue. <CIT> relates to a control method, suitable for an electronic device, includes following operations. A first connection is established based on a classic Bluetooth protocol or a Bluetooth Low Energy protocol from the electronic device to a first target device. A Bluetooth identifier of the first target device acquired in the first connection is recorded. The Bluetooth identifier of the first target device is shared. The Bluetooth identifier is utilized to establish a second connection based on the classic Bluetooth protocol or the Bluetooth Low Energy protocol to the first target device. The first connection and the second connection are established based on different protocols. <CIT> provides a Bluetooth communication method and device and a terminal. The Bluetooth communication method comprises the steps of: when detecting a request instruction of requesting to switch a Bluetooth service to a second operation system from a first operation system, according to a preset time interval, sequentially broadcasting a Bluetooth closing instruction and a Bluetooth opening instruction; and according to the Bluetooth closing instruction, controlling a voice communication process to be switched to the background to operate so as to execute transmission of Bluetooth voice information. By the technical scheme of the invention, in the process of switching the operation systems, not only can the continuity of Bluetooth voice communication be ensured, but also accuracy and reliability of transmitting a Bluetooth file can be ensured. <CIT> discloses an information processing device which includes a state determination unit. The state determination unit switches between first execution processing that executes a function of the information processing device by way of an operating system, and second execution processing that stops operation of the operating system during operation, and executes a specific function of the information processing device by way of a specific program without turning ON a power source of the information processing device. The second execution processing is not performed during execution of the first execution processing.

The present disclosure, in accordance with one or more various embodiments, is described in detail with reference to the following figures. The figures are provided for purposes of illustration only and merely depict typical or example embodiments.

In order to make the purpose, technical solutions, and advantages of this application clearer and clearer, the following further describes the application in detail with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present application, and are not used to limit the present application.

It may be understood that the terms "first", "second", etc. used in this application may be used herein to describe various elements, but these elements are not limited by these terms. These terms are only used to distinguish the first element from another element. For example, without departing from the scope of the present application, the first processor may be referred to as the second processor, and similarly, the second processor may be referred to as the first processor. Both the first processor and the second processor are processors, but they are not the same processor.

<FIG> is a schematic diagram of the internal structure of a wearable device according to an embodiment. As shown in <FIG>, the wearable device includes a first processor <NUM> and a second processor <NUM>. The first processor <NUM> and the second processor <NUM> are both microprocessors, and the first processor <NUM> is a core processor. The first processor <NUM> and the second processor <NUM> may be configured with corresponding microprocessors according to actual applications, and the first processor <NUM> and the second processor <NUM> are not limited to the embodiments described herein. The first processor <NUM> is configured to run a first system, and the second processor <NUM> is configured to run a second system. The first processor <NUM> is a central processing unit, and the first system corresponding to the first processor <NUM> may be an Android system. The second processor <NUM> may be an MCU (Microcontroller Unit) processor. The second system corresponding to the second processor <NUM> may be an RTOS (Real Time Operating System) system.

The first system may be used to provide an abundant UI (User Interface) interactive interface, and the second system may be configured to obtain data provided by the sensor and corresponding operations. When the wearable device is in a non-working state or in a low battery state, the first system may be shut down, and only the second system of the wearable device is running. The second system may acquire, provide, and display basic operating resources, including acquiring basic sports health data and displaying the acquired data in a simple UI interface.

The wearable device may include one or more sensors such as a heart rate sensor <NUM>, an acceleration + gyroscope <NUM>, an atmospheric pressure sensor <NUM>, a touch sensor <NUM>, a magnetic sensor <NUM>, and a micro-pressure sensor <NUM>. The second processor <NUM> may be connected to a sensor included in the wearable device to obtain data collected by the sensor. The second processor <NUM> may also be connected to a GPS (Global Positioning System) module <NUM> to obtain positioning data received by the GPS antenna and be connected to a DEBUG module <NUM> for outputting debug data of the wearable device.

The first processor <NUM> and the second processor <NUM> are connected through an SPI (Serial Peripheral Interface), so that the first system and the second system may transmit communication data through an SPI bus. The display screen <NUM> is connected to the first processor <NUM> and the second processor <NUM> through an MIPI (Mobile Industry Processor Interface), and may display data output by the first processor <NUM> or the second processor <NUM>. The first processor <NUM> also includes a sensor hub driver, which may be used to drive data collection and processing of each sensor.

The wearable device further includes a first Bluetooth <NUM> and a second Bluetooth <NUM>; the first Bluetooth <NUM> is configured to connect to the first processor <NUM>; the second Bluetooth <NUM> is configured to connect to the second processor <NUM>. The first Bluetooth may be dual-mode Bluetooth, and the second Bluetooth may be Bluetooth Low Energy (BLE). Dual-mode Bluetooth may support classic Bluetooth (Basic Rate, BR) and low energy Bluetooth. Classic Bluetooth may be used to transmit audio, video and other data with a large amount of data; Bluetooth Low Energy may be used to transmit data with a small amount of data, such as data provided by sensors, remote control data, etc. When the first system is running, the wearable device may turn on the first Bluetooth <NUM> and communicate with other devices through the first Bluetooth <NUM>. At this time, the second Bluetooth <NUM> is turned off. When the first system is turned off, the first Bluetooth <NUM> is turned off. The wearable device may turn on the second Bluetooth <NUM> and communicate with other devices through the second Bluetooth <NUM>.

<FIG> is a flowchart of a Bluetooth connection method according to an embodiment. The method for Bluetooth connection in this embodiment is described by taking the operation and the above-mentioned wearable device as an example. As shown in <FIG>, the Bluetooth connection method includes block <NUM> to block <NUM>.

At block <NUM>, when a first system is running, a wearable device pairs with a terminal through a first Bluetooth and obtains a terminal identifier corresponding to the terminal.

The terminal may be an electronic device such as a mobile phone, a wearable device, and a personal computer. Pairing refers to the operation of at least two electronic devices performing communication authentication. After the wearable device is paired with the terminal through the first Bluetooth, the pairing information of the terminal is saved, the wearable device may directly connect to the terminal through the first Bluetooth according to the pairing information. And there is no need to connect perform authentication at each time of connection. The pairing information includes the terminal identifier. The terminal identifier can be a unique identifier of the terminal. Optionally, the terminal identifier may be a physical address (Media Access Control Address) corresponding to the terminal.

The wearable device pairs with the terminal through the first Bluetooth when the first system is running, and obtains a terminal identification corresponding to the terminal. The wearable device may turn on the first Bluetooth through the first system, and the terminal also turns on a corresponding Bluetooth function. Then through the Bluetooth of the wearable device or the terminal, the wearable device or the terminal may scan the signal and initiates a pairing request to each other. The device received the pairing request may respond to the pairing request and complete the corresponding pairing operation according to the pairing mode corresponding to the pairing request. After the pairing is completed, the terminal and the wearable device may communicate with each other wirelessly, and the wearable device may obtain and save the terminal identifier of the terminal.

In one embodiment, the wearable device includes a memory shared by the first system and the second system, and the wearable device may save the terminal identifier in the shared memory through the first system.

In one embodiment, the wearable device may also send the obtained terminal identifier to the second system, and save the terminal identifier through the second system.

At block <NUM>, the wearable device obtains a mode switching instruction, and turns off the first system and the corresponding first Bluetooth according to the mode switching instruction, and turns on the second Bluetooth.

The mode switching instruction is for instructing the wearable device to switch the operating mode. Specifically, the mode switching instruction may be generated by the user by pressing a button of the wearable device, or may be generated by touching a control on the touch screen of the wearable device, etc., and the wearable device may obtain and generate the mode switching instruction. The wearable device includes a first system and a second system. Corresponding to the shutdown and running of the two systems, the wearable device may have different operating modes. The operating mode of the wearable device may be switched based on a mode switching instruction.

In this embodiment, the wearable device obtains the mode switching instruction when the first system is running, and the wearable device may shut down the first system according to the mode switching instruction. At this time, the first Bluetooth connected to the first processor corresponding to the first system is also turned off, and the wearable device may turn on the second Bluetooth connected to the second processor corresponding to the second system.

In one embodiment, the wearable device may determine whether the wearable device is connected to the terminal through the first Bluetooth before the first system is shut down. If so, the wearable device may turn on the second Bluetooth when the first system is shut down; if not, the wearable device may only turn off the first system. When the Bluetooth turning-on instruction is obtained, the wearable device may turn on the second Bluetooth when the first system is turned off.

At block <NUM>, the wearable device establishes a connection with the terminal through the second Bluetooth controlled by a second system according to the terminal identifier.

After the wearable device closes the first system, the operating system of the wearable device is the second system. The wearable device establishes a connection with the terminal through the second system. The wearable device may initiatively broadcast through the second Bluetooth, that is, establishing a connection with the terminal according to the terminal identifier.

Further, the first Bluetooth and the second Bluetooth may adopt the same application layer protocol. When the wearable device turns on the second Bluetooth, it lifts the Bluetooth protocol stack and invokes the function of the second Bluetooth. If before the mode switch, the wearable device performs data transmission with the terminal through the first Bluetooth. When a connection is established with the terminal through the second Bluetooth, the wearable device may perform the same data transmission through the second Bluetooth.

In the embodiment provided by this application, while the first system is running, the first Bluetooth is used to pair with the terminal and the wearable device obtains the terminal identifier corresponding to the terminal. When the mode switching instruction is obtained, the wearable device shuts down the first system and the first Bluetooth according to the mode switching instruction, and turns on the second Bluetooth. The wearable device establishes a connection with the terminal through the second Bluetooth by the second system according to the terminal identifier. That is, the wearable device is paired through the first Bluetooth and obtain the terminal identifier. When the first system is turned off, the wearable device establishes a connection with the terminal through the second Bluetooth controlled by the second system according to the saved terminal identifier. It may ensure that the Bluetooth communication of the wearable device is normal, and avoid the disconnection due to the shutdown of the first system and avoid affecting the operation of the wearable device.

<FIG> is a flowchart of pairing between a wearable device and a terminal in an embodiment. <FIG>, in one embodiment, illustrates the process discussed in the above block <NUM> for Bluetooth connection.

At block <NUM>, the wearable device may turn on the first Bluetooth when the first system is running.

In an embodiment, the wearable device may turn on the first Bluetooth when the first system is turned on; or after the first system is on, the first Bluetooth may be turned on according to the acquired Bluetooth turning-on instruction.

At block <NUM>, the wearable device receives a pairing request sent by the terminal through the first Bluetooth.

After the wearable device turns on the first Bluetooth, it may send a signal broadcast through the first Bluetooth. The terminal may call and discover the device by scanning through the Bluetooth module. In an embodiment, the terminal may display the signal obtained by scanning on its interface. In response to obtaining the user's confirmation indication to the signal of the wearable device, the terminal generates a pairing request sent to the first Bluetooth of the wearable device, and the wearable device may receive the pairing request.

At block <NUM>, in response to the pairing request, the wearable device may connect to the terminal through the first Bluetooth, and obtain a terminal identifier corresponding to the terminal.

The wearable device responds to the pairing request. In an embodiment, the wearable device may generate an indicator corresponding to the pairing request, such as displaying the pairing request on the interface of the wearable device, or flashing an indicator light, etc., to obtain the user's confirmation indication of the pairing request. And then, the wearable device responds to the pairing request according to the confirmation indication to connect to the terminal through the first Bluetooth.

In some embodiments, the pairing request sent by the terminal includes pairing information, and the wearable device may respond to the pairing request according to the included pairing information. For example, the pairing information may return a verification identifier; the wearable device may obtain the verification identifier according to the pairing information, and return it to the terminal according to the verification identifier.

By turning on the first Bluetooth while the first system is running, the pairing request sent by the terminal for the first Bluetooth is received, and the pairing request is responded to connect to the terminal through the first Bluetooth and obtain the terminal identifier corresponding to the terminal. It may avoid the problem of initiatively scanning by the wearable device, which is limited by the screen size of the wearable device, resulting in incomplete information display and cumbersome operation.

In one embodiment, the above block <NUM> in the provided method for Bluetooth connection may include: the wearable device may generate a connection request according to the terminal identifier through the second Bluetooth and broadcast a connection request by a signal. The connection request is used to indicate the terminal corresponding to the terminal identifier to response the connection request, so that to establish the connection between the wearable device and the terminal.

The wearable device may automatically generate a connection request according to the terminal identifier after turning on the second Bluetooth, and broadcast the connection request by a signal broadcast. The signal broadcast is a connectable directional broadcast, that is, the connection request contains the terminal identifier, which may be received and responded to by the terminal corresponding to the terminal identifier, so that the terminal and the wearable device may quickly establish a connection without user involvement. The operation will not affect other functions of the wearable device.

In one embodiment, before acquiring the mode switching instruction in the provided Bluetooth connection method, the method further includes: obtaining a remaining power value of the wearable device, and when the remaining power value is lower than the power threshold, generating the mode switching instruction.

The remaining power value of the wearable device refers to a ratio of the available power in the battery of the wearable device to a nominal capacity. The power threshold may be determined according to actual usage requirements. For example, the power threshold may be <NUM>%, <NUM>%, <NUM>%, <NUM>%, etc., which are only examples and are not limiting. The first system may provide more complete functions for the wearable device, and the second system provides the basic functions of the wearable device. The wearable device's power consumption when running the first system can be greater than the power consumption when running the second system.

The wearable device may detect the remaining power value in real time, and when the remaining power value is lower than the power threshold, a mode switching instruction is generated, and the first system may be shut down according to the mode switching instruction to reduce the power consumption of the wearable device.

The wearable device includes a watch mode and a bracelet mode. When the wearable device is in the watch mode, the first system and the second system run simultaneously; when the wearable device is in the bracelet mode, the first system is closed, and the second system is running.

In one embodiment, the first system is the main operating system of the wearable device and may provide relatively complete functions for the wearable device. The second system can be an auxiliary operating system of the wearable device and may provide the basic functions of the wearable device. When the wearable device switches from a watch mode to a bracelet mode, the first system may be shut down and the second system may keep running. When the wearable device switches from the bracelet mode to the watch mode, the first system and the second system are both enabled. In an embodiment, when the first system is turned off, the first Bluetooth is also turned off.

In this embodiment, the process of shutting down the first system according to the mode switch instruction in the provided method for Bluetooth connection includes: when the wearable device is in the watch mode, the peripheral components of the wearable device are switched from controlled by the first system to controlled by the second system according to the mode switch instruction. And the first system is turned off, so that to switch wearable device to the bracelet mode.

The peripheral components of the wearable device may include a display screen, a touch screen, and buttons. <FIG> is a schematic diagram of a function control system of a wearable device in an embodiment. As shown in Fig., a first system can be the Android system and a second system can be the RTOS system as an example. The watch mode is that the wearable device runs both Android and RTOS systems at the same time, and the bracelet mode is that the wearable device turns off Android System, and only run RTOS system. The heart rate sensor, ECG sensor, motion sensor and other sensors are controlled by the RTOS system in both watch mode and bracelet mode. The display, touch screen, and buttons may be controlled by different systems in different modes, that is, in the watch mode, the display, touch screen, and buttons may be controlled by the Android system; in bracelet mode, the display, touch screen and buttons may be controlled by the RTOS system.

When the current operating mode is the watch mode, the peripheral components of the wearable device are switched from controlled by the first system to controlled by the second system. When the first system is turned off, the wearable device may be switched to the second system, so that to reduce power consumption of peripheral components.

<FIG> is a flowchart of a method for Bluetooth connection in an embodiment. As shown in <FIG>, in one embodiment, the provided method for Bluetooth connection is performed by the above-mentioned wearable device, and the Bluetooth connection method includes the following.

At block <NUM>, when the wearable device is in the watch mode, the wearable device pairs with the terminal through the first Bluetooth and obtain a terminal identifier corresponding to the terminal.

At block <NUM>, the wearable device obtains a mode switching instruction, and switches to the bracelet mode according to the mode switching instruction, and turns on the second Bluetooth.

At block <NUM>, according to the terminal identifier, the wearable device establishes a connection with the terminal through the second Bluetooth.

When the wearable device is in the watch mode, the terminal identifier is obtained by pairing through the first Bluetooth. When the operation mode of the wearable device is changed, that is, when switching from the watch mode to the bracelet mode, the wearable device establishes a connection with the terminal through the second Bluetooth, which may realize uninterrupted communication between the wearable device and the terminal when the mode is switched. The connection process is simple and does not need to perform operations such as pairing verification again.

In one embodiment, the method for Bluetooth connection may further include: when the wearable device is in the bracelet mode, in response to a mode switching instruction is obtained, the peripheral components of the wearable device is switched from controlled by the second system to by the first system, so that to switch the wearable device to the watch mode and the first Bluetooth is turned on. According to the terminal identifier, the wearable device may establish a connection with the terminal through the first Bluetooth.

When the wearable device is in the bracelet mode, the mode switching instruction acquired by the wearable device is used to switch the wearable device from the bracelet mode to the watch mode. In an embodiment, the wearable device turns on the first system and switches the peripheral components from controlled by the first system to by the second system control, and the first Bluetooth corresponding to the first system is activated, so that to establish a connection with the terminal.

When the wearable device is switched from the bracelet mode to the watch mode, the second Bluetooth may be turned off through the second system, and the first Bluetooth corresponding to the first system may be turned on. According to the terminal identifier stored in the first system, the wearable device may establish a connection with the terminal by the first Bluetooth, so as to perform data transmission with a large amount of data and a high rate. The wearable device may obtain the terminal identifier from the shared memory through the first system, or may obtain the terminal identifier from the memory corresponding to the first processor.

In an embodiment, the first processor and the second processor are connected through a serial peripheral interface bus; before acquiring the mode switching instruction in the Bluetooth connection method, the method may further include: the terminal identifier is sent to the second system, and the terminal identifier is stored by the second system.

In an embodiment, the terminal identifier is sent to the second processor through the serial peripheral interface bus. The terminal identifier is stored in the corresponding memory through the second processor.

The first processor and the second processor are connected through a serial peripheral interface bus. The first processor can be an ARM (Advanced RISC Machines, reduced instruction set machine) processor, and the processor where the second system is located can be an MCU processor, as an example. The ARM processor and the MCU processor may be connected through the serial peripheral interface bus, that is, the SPI bus, and the data may be transmitted through the SPI bus.

In this embodiment, the wearable device may send the obtained terminal identifier through the first system to the second processor where the second system is located via the SPI bus, and the terminal identifier may be stored in the memory in the second processor. The memory may be a flash memory or other non-transitory memory, which is not limiting here.

<FIG> is a sequence diagram of a method for Bluetooth connection in an embodiment. As shown in <FIG>, in one embodiment, the provided method for Bluetooth connection is described by taking the first Bluetooth as a dual-mode Bluetooth and the second Bluetooth as a low energy Bluetooth, including operations as follows.

In an embodiment, the wearable device may establish a BR connection with the terminal through dual-mode Bluetooth, and may transmit audio data, video data and other data with the terminal. It may also realize the reception or transmission of remote-control data through the BLE function of dual-mode Bluetooth, or perform low-volume data transmission, etc..

The wearable device may turn off the first system and dual-mode Bluetooth when the battery is low or when the mode switching instruction input by the user is obtained, so as to disconnect the Bluetooth connection between the dual-mode Bluetooth and the terminal. The wearable device is switched to the bracelet mode, and turns on Bluetooth Low Energy.

Bluetooth low energy may initiatively broadcast a signal according to the terminal identifier stored in the second system, and the terminal may scan to find the broadcast information and respond to the broadcast signal. Therefore, the wearable device may establish a connection with the terminal through the second Bluetooth.

Further, the wearable device may communicate with the terminal to perform data transmission or control functions.

It should be understood that although the operations in the flowcharts of <FIG>, <FIG> are displayed in sequence as indicated by the arrows, these operations are not necessarily executed in sequence in the order indicated by the arrows. Unless specifically stated in the specification, the execution of these operations is not strictly limited in order, and these operations may be executed in other orders. Moreover, at least some of the operations in <FIG>, <FIG> may include multiple sub-operations or multiple stages. These sub-operations or stages are not necessarily executed at the same time, but may be executed at different times. The execution order of these sub-operations or the stages is not necessarily carried out sequentially, but may be executed alternately with at least a part of other operations or sub- operations or stages of other steps.

<FIG> is a structural block diagram of a Bluetooth connection apparatus according to an embodiment This embodiment is however not covered by the claims. As shown in <FIG>, the Bluetooth connection apparatus includes an identifier obtaining module <NUM>, a mode switching module <NUM>, and a connection module <NUM>.

The identifier obtaining module <NUM> is configured to pair with the terminal through a first Bluetooth and obtain a terminal identifier corresponding to the terminal while a first system is running.

The mode switching module <NUM> is configured to obtain a mode switching instruction, shut down the first system according to the mode switching instruction, and turn on a second Bluetooth.

The connection module <NUM> is configured to establish a connection with the terminal through the second Bluetooth according to the terminal identifier.

The Bluetooth connection apparatus provided in this embodiment may cause the wearable device to pair through the first Bluetooth and obtain the terminal identifier. When the first system is closed, the wearable device may establish a connection with the terminal through the second Bluetooth controlled by the second system according to the saved terminal identifier. It may ensure that the Bluetooth communication of the wearable device is normal, and avoid the disconnection due to the shutdown of the first system and avoid affecting the operation of the wearable device.

In one embodiment, the identifier obtaining module <NUM> may also be configured to turn on the first Bluetooth while the first system is running, and receive a pairing request sent by the terminal for the first Bluetooth. In response to the pairing request, the identifier obtaining module may also be configured to connect to the terminal through the first Bluetooth, obtain the terminal identifier corresponding to the terminal.

In one embodiment, the connection module <NUM> may also be configured to generate a connection request according to the terminal identifier through the second Bluetooth, and broadcast the connection request by signal. The connection request is to instruct the terminal corresponding to the terminal identifier to respond to the connection request, so that to establish the connection with the wearable device.

In one embodiment, the mode switching module <NUM> may also be configured to obtain the remaining power value of the wearable device. When the remaining power value is lower than the power threshold, a mode switching instruction is generated.

In one embodiment, when the wearable device is in the watch mode, the mode switching module <NUM> may also be configured to switch the peripheral components of the wearable device from controlled by the first system to controlled by the second system according to the mode switching instruction, so that to switch the wearable device to the bracelet mode. And the connection module is configured to shut down the first system, and establish a connection with the terminal through the first Bluetooth.

In one embodiment, while the wearable device is in the bracelet mode, the mode switching module <NUM> may also be configured to switch the peripheral components of the wearable device from controlled by the second system to controlled by the first system in response to the mode switching instruction being obtained, and switch the wearable device to the watch mode and turn on the first Bluetooth. The connection module <NUM> is configured to establish a connection with the terminal through the first Bluetooth according to the terminal identifier.

In one embodiment, the provided Bluetooth connection apparatus may further include an identifier storing module <NUM>, which is configured to send the terminal identifier to the second processor through the serial peripheral interface bus, and store the terminal identifier in the memory corresponding to the second processor through the second processor.

The division of the modules in the above Bluetooth connection apparatus is only used as an example. In other embodiments, the Bluetooth connection apparatus may be divided into different modules as needed to complete all or part of the functions of the above Bluetooth connection apparatus.

For the specific limitation of the Bluetooth connection apparatus, please refer to the above limitation of the Bluetooth connection method, which will not be repeated here. Each module in the above-mentioned Bluetooth connection apparatus may be implemented in whole or in part by software, hardware and a combination thereof. The above-mentioned modules may be embedded in the form of hardware or independent of the processor in the computer equipment, or may be stored in the memory of the computer equipment in the form of software, so that the processor may call and execute the operations corresponding to the above-mentioned modules.

The implementation of each module in the Bluetooth connection apparatus provided in the embodiment of the present application may be in the form of a computer program. The computer program may be run on a wearable device. The program module composed of the computer program may be stored in the memory of the wearable device. When the computer program is executed by the processor, it realizes the operations of the method described in the embodiments of the present application.

The embodiment of the present application also provides a computer-readable storage medium. One or more non-transitory computer-readable storage media containing computer-executable instructions, when the computer-executable instructions are executed by one or more processors, cause the processors to execute the operations of the method for Bluetooth connection.

A computer program product containing instructions that, when running on a computer, causes the computer to execute the method for Bluetooth connection.

Any reference to memory, storage, database, or other media used in this application may include non- transitory and/or transitory memory. Non-transitory memory may include read only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Transitory memory may include random access memory (RAM), which acts as external cache memory. As an illustration and not a limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), enhanced SDRAM (ESDRAM), synchronous Link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).

Claim 1:
A method for Bluetooth connection, performed by a wearable device comprising a first processor, a second processor, a first Bluetooth module, and a second Bluetooth module, the first processor being configured to run a first system, the second processor being configured to run a second system, the first processor being configured to communicate with the first Bluetooth module, and the second processor being configured to communicate with the second Bluetooth module, wherein the wearable device comprises a watch mode and a bracelet mode, and when the wearable device is in the watch mode, the first system and the second system run simultaneously; when the wearable device is in the bracelet mode, the first system is turned off and the second system is running, the method comprises:
when the wearable device is in the watch mode and the first system is running, pairing (<NUM>; <NUM>) with a terminal through the first Bluetooth module so as to obtain a terminal identifier corresponding to the terminal;
in response to a mode switching instruction, turning off (<NUM>; <NUM>) the first system and the first Bluetooth module and turning on the second Bluetooth module, wherein the mode switching instruction indicates the wearable device to switch from the watch mode to the bracelet mode; and
establishing (<NUM>; <NUM>) by the second system, a connection to the terminal through the second Bluetooth module according to the terminal identifier.