Dual-system Bluetooth devices and electronic equipment
By introducing a system switching method into dual-system electronic devices, the first operating system and the second operating system jointly support Bluetooth services, solving the problem of Bluetooth service interruption during system switching, and achieving seamless switching and improvement of user experience.
Patent Information
- Application Number
- CN202210065587.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-12-08
- Publication Date
- 2025-08-08
- Estimated Expiration
- 2040-12-08
AI Technical Summary
When electronic devices equipped with dual systems switch, Bluetooth services are prone to complete interruption.
By introducing a system switching method into the electronic device, the first operating system and the second operating system jointly support Bluetooth service, ensuring that during the system switching process, the Bluetooth module of the second operating system always maintains a communication connection state, thereby avoiding interruption of Bluetooth service.
It realizes seamless switching of Bluetooth services during system switching, avoids complete interruption of Bluetooth services and improves user experience.
Smart Images

Figure CN114422992B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a dual-system Bluetooth device and electronic equipment. Background Art
[0002] As electronic devices become more and more powerful, a single operating system sometimes cannot meet people's demands for the functions of electronic devices. Therefore, some electronic devices have begun to be equipped with dual systems to provide users with a better user experience.
[0003] However, when an electronic device equipped with dual systems uses Bluetooth services, the Bluetooth services may be completely interrupted as the two systems switch. Summary of the Invention
[0004] The embodiments of the present application provide a dual-system Bluetooth device and electronic device, which can maintain an intact Bluetooth service during a system switching process.
[0005] A system switching method is applied to an electronic device, the electronic device including a first processor, a second processor, and a Bluetooth module, the first processor capable of running a first operating system, the second processor capable of running a second operating system, the first processor and the second processor capable of communication connection, and the Bluetooth module capable of communication connection with the second processor, the method comprising:
[0006] When the electronic device runs the second operating system, the second operating system supports the first Bluetooth service;
[0007] In response to the first instruction, the electronic device runs the first operating system. When the electronic device runs the first operating system, the first operating system and the second operating system jointly support the first Bluetooth service.
[0008] A system switching device is applied to an electronic device, the electronic device including a first processor, a second processor, and a Bluetooth module, the first processor being capable of running a first operating system, the second processor being capable of running a second operating system, the first processor and the second processor being capable of communicating with each other, and the Bluetooth module being capable of communicating with the second processor, the method comprising:
[0009] a second operating system running module, configured to enable the second operating system to support the first Bluetooth service when the electronic device runs the second operating system;
[0010] The system switching module is configured to enable the electronic device to run the first operating system in response to a first instruction, and when the electronic device runs the first operating system, the first operating system and the second operating system jointly support the first Bluetooth service.
[0011] An electronic device includes a memory and a processor, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the processor executes the steps of the Bluetooth communication method described above.
[0012] A computer-readable storage medium stores a computer program, which implements the steps of the Bluetooth communication method described above when executed by a processor.
[0013] The above-mentioned system switching method and apparatus, electronic device, and computer-readable storage medium are applied to an electronic device, wherein the electronic device includes a first processor, a second processor, and a Bluetooth module. The first processor is capable of running a first operating system, the second processor is capable of running a second operating system, the first processor and the second processor are capable of communicating with each other, and the Bluetooth module is capable of communicating with the second processor. The method includes: when the electronic device runs the second operating system, the second operating system supports a first Bluetooth service; in response to a first instruction, the electronic device runs the first operating system, and when the electronic device runs the first operating system, the first operating system and the second operating system jointly support the first Bluetooth service.
[0014] The first processor can run the first operating system, and the second processor can run the second operating system. Since the Bluetooth module and the second processor can be communicatively connected, when the electronic device runs the second operating system, the second operating system can independently support the first Bluetooth service. The first processor and the second processor can be communicatively connected, that is, the first processor can only communicate with the Bluetooth module indirectly through the second processor. Therefore, when the electronic device runs the first operating system, the first operating system needs to communicate with the Bluetooth module indirectly through the second operating system. That is, when the electronic device runs the first operating system, the first operating system and the second operating system jointly support the first Bluetooth service. Therefore, when the electronic device responds to the first instruction and switches from running the second operating system to running the first operating system, the second processor running the second operating system is always in a communication connection state with the Bluetooth module, and no communication interruption occurs. This avoids the situation where the Bluetooth service is completely interrupted when the system switches. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0016] Figure 1A diagram illustrating an application environment of a system switching method in one embodiment;
[0017] Figure 2A is a flow chart of a system switching method in one embodiment;
[0018] Figure 2B is a flow chart of a system switching method in one embodiment;
[0019] Figure 3 FIG. 1 is a hardware framework diagram of a dual system in an electronic device according to an embodiment;
[0020] Figure 4 A schematic diagram of the architecture of Bluetooth in a dual system in one embodiment;
[0021] Figure 5 is a flow chart of a system switching method in another embodiment;
[0022] Figure 6 A flowchart of a system switching method in yet another embodiment;
[0023] Figure 7A is a flowchart of a system switching method in a specific embodiment;
[0024] Figure 7B is a flow chart of a system switching method in another specific embodiment;
[0025] Figure 8 is a structural block diagram of a system switching device in yet another embodiment;
[0026] Figure 9 is a structural block diagram of a system switching device in one embodiment;
[0027] Figure 10 FIG. 1 is a schematic diagram of the internal structure of an electronic device in one embodiment. DETAILED DESCRIPTION
[0028] In order to make the purpose, technical solutions and advantages of this application more clearly understood, the present application is further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain this application and are not intended to limit this application.
[0029] Figure 1 FIG. 1 is an application scenario diagram of a system switching method in an embodiment. Figure 1As shown, the application environment includes an electronic device 120, which can run a first operating system and a second operating system at the same time. The second operating system can support the first Bluetooth service alone, and the first operating system and the second operating system can also jointly support the first Bluetooth service. The electronic device 120 uses the system switching method in the present application, and when the electronic device runs the second operating system, the second operating system supports the first Bluetooth service; in response to the first instruction, the electronic device runs the first operating system, and when the electronic device runs the first operating system, the first operating system and the second operating system jointly support the first Bluetooth service. Here, the electronic device 120 can be any terminal device such as a mobile phone, a tablet computer, a PDA (Personal Digital Assistant), a wearable device (smart watch, etc.), a smart home, etc.
[0030] In traditional methods, when an electronic device equipped with dual systems uses Bluetooth services, the Bluetooth services may be completely interrupted as the two systems switch. Specifically, in traditional methods, the implementation of Bluetooth services in the dual systems is completely separate and runs independently. That is, when the Bluetooth service is implemented on the first operating system, the CPU running the first operating system communicates directly with the Bluetooth chip and does not need to rely on the second operating system at all. Correspondingly, when the Bluetooth service is implemented on the second operating system, the CPU running the second operating system also communicates directly with the Bluetooth chip and does not need to rely on the first operating system at all. The Bluetooth chip has a Bluetooth module for implementing Bluetooth communication functions.
[0031] Because there's only one underlying Bluetooth chip, the traditional method for switching systems requires first disabling the Bluetooth service on one operating system and then reinitializing the Bluetooth service on the other. However, during this process, the Bluetooth service is briefly and completely interrupted, preventing a seamless Bluetooth service switch.
[0032] Therefore, in an embodiment of the present application, a system switching method is proposed, which no longer completely separates the Bluetooth services of different operating systems. Instead, the first operating system and the second operating system jointly support the first Bluetooth service or the second Bluetooth service, and the second operating system supports the first Bluetooth service. It can be understood that the first Bluetooth service is the basic service, and the second Bluetooth service is the upper-layer service based on the first Bluetooth service. That is, when implementing the first Bluetooth service on an electronic device, the first Bluetooth service can be independently implemented on the second operating system of the electronic device. Of course, the first Bluetooth service can also be jointly implemented by the first operating system and the second operating system. However, when implementing the second Bluetooth service on an electronic device, it is necessary for the first operating system and the second operating system to jointly support the second Bluetooth service.
[0033] In this way, the process of switching from the second operating system to the first operating system is: if it is monitored that the first operating system is awakened from the sleep state, then other Bluetooth services in the second Bluetooth service except the first Bluetooth service are enabled in the first operating system, and the first Bluetooth service continues to be supported in the second operating system.
[0034] The process of switching from the first operating system to the second operating system is as follows: if the first operating system is detected to enter a dormant state, all Bluetooth services in the second Bluetooth service except the first Bluetooth service are disabled in the first operating system. The first operating system is controlled to switch to the second operating system, and the first Bluetooth service is continued to be supported in the second operating system. Because the second operating system can continue to support the first Bluetooth service in the background regardless of whether the electronic device is running under the first operating system or the second operating system, no matter how the system is switched, the Bluetooth service will not be completely interrupted during the system switching process.
[0035] Figure 2A FIG. 1 is a flow chart of a system switching method in one embodiment. The system switching method in this embodiment is to run Figure 1 The electronic device 120 in FIG. 1 is described as an example. The electronic device includes a first processor, a second processor, and a Bluetooth module. The first processor can run a first operating system, the second processor can run a second operating system, the first processor and the second processor can be communicatively connected, and the Bluetooth module and the second processor can be communicatively connected.
[0036] Specifically, such as Figure 2A As shown, a system switching method is provided, including:
[0037] Step 220: When the electronic device runs the second operating system, the second operating system supports the first Bluetooth service;
[0038] Step 240: In response to the first instruction, the electronic device runs the first operating system. When the electronic device runs the first operating system, the first operating system and the second operating system jointly support the first Bluetooth service.
[0039] It can be understood that the first Bluetooth service is the basic service, and the second Bluetooth service mentioned later is the upper-layer service based on the first Bluetooth service. Among them, the first instruction may be an instruction sent by the second operating system to the first operating system, which carries wake-up information, and the first operating system can be awakened based on the wake-up information. After the first operating system is awakened, the electronic device switches from the second operating system to the first operating system. And the interface and application running on the second operating system on the electronic device may be different from the interface and application running on the first operating system on the electronic device. For example, for Bluetooth, Bluetooth APP1 (Application) runs in the second operating system, and Bluetooth APP2 runs in the first operating system. However, when Bluetooth APP1 runs in the second operating system, the first Bluetooth service can be supported by the second operating system. When Bluetooth APP2 runs in the first operating system, the first Bluetooth service needs to be supported by both the first operating system and the second operating system.
[0040] In an embodiment of the present application, the first processor is capable of running a first operating system, and the second processor is capable of running a second operating system. Since the Bluetooth module is communicatively connected to the second processor, when the electronic device runs the second operating system, the second operating system can independently support the first Bluetooth service. The first processor is communicatively connected to the second processor, that is, the first processor can only communicate with the Bluetooth module indirectly through the second processor. Therefore, when the electronic device runs the first operating system, the first operating system needs to communicate with the Bluetooth module indirectly through the second operating system. That is, when the electronic device runs the first operating system, the first operating system and the second operating system jointly support the first Bluetooth service. Therefore, when the electronic device switches from running the second operating system to running the first operating system in response to the first instruction, the second processor running the second operating system is always in a communication connection state with the Bluetooth module, and no communication interruption occurs. This avoids the situation where the Bluetooth service is completely interrupted when the system switches.
[0041] Continuing from the previous embodiment, the first operating system and the second operating system may also jointly support a second Bluetooth service.
[0042] In the embodiment of the present application, the first operating system and the second operating system can not only jointly support the first Bluetooth service, but also jointly support the second Bluetooth service. And when the second Bluetooth service is supported on the electronic device, it needs to be jointly supported by the first operating system and the second operating system. It can be understood that the first Bluetooth service is the basic service, and the second Bluetooth service is the upper-layer service based on the first Bluetooth service. That is, when implementing the first Bluetooth service on the electronic device, the first Bluetooth service can be independently implemented on the second operating system of the electronic device. Of course, the first Bluetooth service can also be jointly implemented by the first operating system and the second operating system. However, when implementing the second Bluetooth service on the electronic device, the second Bluetooth service needs to be jointly supported by the first operating system and the second operating system.
[0043] In the embodiments of the present application, regardless of whether the electronic device is running the first operating system or the second operating system, the second operating system can continue to support the first Bluetooth service in the background. Therefore, no matter how the system is switched, the Bluetooth service will not be completely interrupted during the system switching process. Furthermore, the first operating system and the second operating system can jointly support the second Bluetooth service to meet the user's higher usage needs.
[0044] In one embodiment, Figure 2B As shown, a system switching method is also provided, including:
[0045] Step 260: If it is detected that the first operating system is awakened from the dormant state, the second Bluetooth service is enabled in the first operating system.
[0046] Nowadays, battery life is an increasingly important performance indicator in electronic devices. In order to solve the battery life problem of electronic devices, dual-system solutions are increasingly used in electronic devices to reduce power consumption. Generally, one of the systems in the dual system (such as the RTOS system (real-time operating system)) consumes less power when running, while the other system in the dual system (such as the Android system) consumes more power when running, and the dual systems can switch between each other. Therefore, the power consumption of electronic devices can be reduced by means of system switching. In an embodiment of the present application, the first operating system runs on the first processor, and the power consumption when the first operating system runs on the first processor is higher. The second operating system runs on the second processor, and the power consumption when the second operating system runs on the second processor is lower than the power consumption when the first operating system runs on the first processor. Among them, the first processor can be a system-on-chip SOC, and the second processor can be an MCU. Of course, this application does not limit this.
[0047] Among them, Figure 3The figure shows a hardware framework diagram of a dual system in an electronic device in one embodiment. The electronic device includes a system-on-a-chip SOC (System-on-a-Chip) 320, a microcontroller unit MCU (Microcontroller Unit) 340 and a Bluetooth chip 360. Among them, the first operating system in the dual system can run on the system-on-chip SOC 320, the second operating system in the dual system can run on the microcontroller unit MCU 340, and the Bluetooth chip 360 can realize the function of the Bluetooth module. Among them, the Bluetooth chip 360 can communicate with the microcontroller unit MCU340 through the UART bus, and then the microcontroller unit MCU340 communicates with the system-on-chip SOC 320 through the UART bus. For example, the first operating system can be an Android system or an IOS system, and the second operating system can be an MCU system, which is not limited in this application. The system-on-chip SOC has a processor that is independent of the microcontroller unit MCU and can be used to process different tasks separately. By Figure 3 It can be seen that because the system-on-chip SOC 320 cannot communicate directly with the Bluetooth chip 360, it needs to communicate with the Bluetooth chip 360 indirectly through the microcontroller unit MCU 340. Therefore, when an electronic device implements certain Bluetooth services on the system-on-chip SOC, it needs to rely on the microcontroller unit MCU for joint support.
[0048] For example, for Bluetooth services, they can be divided into the first Bluetooth service and the second Bluetooth service, among which. The first Bluetooth service or the second Bluetooth service is jointly supported by the first operating system and the second operating system, and the first Bluetooth service is supported by the second operating system. It can be understood that the first Bluetooth service is the basic service, and the second Bluetooth service is the upper-layer service based on the first Bluetooth service. That is, when implementing the first Bluetooth service on an electronic device, the first Bluetooth service can be independently implemented on the second operating system of the electronic device. Of course, the first Bluetooth service can also be jointly implemented by the first operating system and the second operating system. However, when implementing the second Bluetooth service on an electronic device, the second Bluetooth service needs to be jointly supported by the first operating system and the second operating system.
[0049] Specifically, if the electronic device detects that the first operating system has been awakened from a dormant state, the electronic device will respond to the first instruction and switch from the second operating system to the first operating system. Generally, when the electronic device is in a dormant state, in power saving mode, or when no applications are running, in order to reduce power consumption, the first operating system is controlled to be in a dormant state. However, when the electronic device currently has a high-performance service to be processed, the first operating system needs to be awakened in time to process the high-performance service.
[0050] Then, at this time, it is necessary to enable the second Bluetooth service in the first operating system so that after the first operating system is awakened from the dormant state, the electronic device can support the second Bluetooth service.
[0051] Step 280: Control the second operating system to switch to the first operating system, and continue to support the first Bluetooth service in the second operating system.
[0052] Then, the electronic device controls the system running thereon to switch from the second operating system to the first operating system, and continues to support the first Bluetooth service in the second operating system. In this way, the second operating system can still continue to support the first Bluetooth service during the system switch, so that the first Bluetooth service is not affected during the system switch, thereby avoiding frequent complete interruption of the Bluetooth service.
[0053] In the embodiment of the present application, because the second Bluetooth service requires the joint support of the first operating system and the second operating system, and the first Bluetooth service is supported solely by the second operating system, and the second operating system continues to support the first Bluetooth service when the system is switched. Therefore, if it is detected that the first operating system is awakened from the dormant state, it is necessary to switch the electronic device from the second operating system to the first operating system, then the first Bluetooth service will continue to be supported in the second operating system, and the second Bluetooth service will be enabled in the first operating system, thereby completing the system switch, so that the first operating system and the second operating system can jointly support the second Bluetooth service. Because the second operating system can still continue to support the first Bluetooth service when the system is switched, the first Bluetooth service is not affected when the system is switched, thereby avoiding the situation where the Bluetooth service is completely interrupted when the system is switched.
[0054] In one embodiment, the protocol stack supporting the first Bluetooth service includes a second communication protocol stack running on the second operating system; the protocol stack supporting the second Bluetooth service includes a first communication protocol stack running on the first operating system and a second communication protocol stack running on the second operating system;
[0055] The performance of the second Bluetooth service supported jointly by the first communication protocol stack and the second communication protocol stack is higher than the performance of the first Bluetooth service supported by the second communication protocol stack.
[0056] Specifically, the protocol stack supporting the second Bluetooth service is divided into a first communication protocol stack and a second communication protocol stack in advance. A protocol stack (English: Protocol stack), also known as a protocol stack, is a specific software implementation of a computer network protocol suite.
[0057] like Figure 4, which is a schematic diagram of the architecture of Bluetooth in a dual system. The Bluetooth in the dual system includes a Bluetooth protocol stack (wherein the Bluetooth protocol stack includes a first communication protocol stack 422 (BlueDriord Stack) and a second communication protocol stack 444 (BTEStack)) and a Bluetooth module 426. The first communication protocol stack 422 runs on a first operating system, and the second communication protocol stack 424 runs on a second operating system. The first communication protocol stack 422 and the second communication protocol stack 424 transmit data to the Bluetooth module 426 via a message pipe or a Bluetooth pipe, respectively. The Bluetooth pipe is used to transmit information related to the Bluetooth protocol stack, and the message pipe is used to transmit other information outside the Bluetooth protocol stack.
[0058] When the electronic device is implementing the second Bluetooth service, the first communication protocol stack is controlled to run on the first operating system, and the second communication protocol stack is controlled to run on the second operating system, so that the second Bluetooth service is jointly supported by the first operating system and the second operating system. When the electronic device is implementing the first Bluetooth service, only the second communication protocol stack is controlled to run on the second operating system, so that the first Bluetooth service can be supported by the second operating system. The performance of the second Bluetooth service jointly supported by the first communication protocol stack and the second communication protocol stack is higher than the performance of the first Bluetooth service supported by the second communication protocol stack. The performance of the Bluetooth service can be measured or evaluated based on some performance indicators of the Bluetooth service, and this application does not specifically limit the performance indicators.
[0059] In an embodiment of the present application, the protocol stack supporting the second Bluetooth service is divided into a first communication protocol stack and a second communication protocol stack in advance. When the electronic device is implementing the first Bluetooth service, only the second communication protocol stack is controlled to run on the second operating system. When the electronic device is implementing the second Bluetooth service, the first communication protocol stack is controlled to run on the first operating system, and the second communication protocol stack is controlled to run on the second operating system. By having the two protocol stacks run independently in the two systems, when the first operating system enters a dormant state, the second operating system can still run the second communication protocol stack to continue to support the first Bluetooth service when the system is switched, so that the first Bluetooth service is not affected when the system is switched, thereby avoiding the frequent occurrence of complete interruption of the Bluetooth service.
[0060] In one embodiment, the performance of the second Bluetooth service jointly supported by the first communication protocol stack and the second communication protocol stack is higher than the performance of the first Bluetooth service supported by the second communication protocol stack, including:
[0061] The data volume of the second Bluetooth service supported jointly by the first communication protocol stack and the second communication protocol stack is higher than the data volume of the first Bluetooth service supported by the second communication protocol stack.
[0062] Specifically, the performance of a Bluetooth service can be measured or evaluated based on certain performance indicators of the Bluetooth service. These performance indicators include data volume, computational complexity, and the like, which are not specifically limited in this application. For example, if the data volume of a second Bluetooth service supported jointly by the first communication protocol stack and the second communication protocol stack is greater than the data volume of the first Bluetooth service supported by the second communication protocol stack, the performance of the second Bluetooth service is considered to be greater than the performance of the first Bluetooth service.
[0063] In the embodiment of the present application, because the second Bluetooth service is jointly supported by the first communication protocol stack and the second communication protocol stack, that is, the first communication protocol stack is controlled to run on the first operating system, and the second communication protocol stack is controlled to run on the second operating system. The first Bluetooth service is supported by the second communication protocol stack, that is, only the second communication protocol stack is controlled to run on the second operating system. Since the second Bluetooth service needs to be implemented by two operating systems, that is, more resources are called, the second Bluetooth service with a larger data volume is jointly processed by the two operating systems, and only the first Bluetooth service with a smaller data volume is processed by the second operating system. In this way, a uniform allocation of resources is achieved, thereby achieving the goal of reducing the power consumption of electronic equipment while avoiding the frequent complete interruption of Bluetooth services.
[0064] In one embodiment, the second Bluetooth service includes at least one of a Bluetooth multimedia service and a Bluetooth Internet access service; the first Bluetooth service includes at least one of a communication connection establishment service and a physiological data transmission service.
[0065] The performance of the second Bluetooth service is higher than that of the first Bluetooth service. For example, the data volume of the second Bluetooth service is greater than the data volume of the first Bluetooth service. Specifically, the second Bluetooth service may include at least one of a Bluetooth multimedia service and a Bluetooth internet service. Bluetooth multimedia services include at least one of Bluetooth phone calls, Bluetooth music, and Bluetooth video calls. Bluetooth phone calls may include Bluetooth voice calls or Bluetooth video calls. A Bluetooth internet service refers to a service where an electronic device indirectly establishes a communication connection with the internet via a Bluetooth connection, allowing the electronic device to access the internet.
[0066] Since the first Bluetooth service includes at least one of the communication connection establishment service and the physiological data transmission service. Among them, the communication connection establishment service is a service for establishing a communication connection between the second operating system and the Bluetooth module. Therefore, after the smart watch is turned on, the first operating system runs, and the second operating system runs in the background with low energy consumption. Then, the communication connection establishment service in the first Bluetooth service is first run in the second operating system to establish Bluetooth communication with the smartphone. Then, when the smart watch is running on the first operating system, the smart watch can perform the second Bluetooth service through the Bluetooth communication connection. When the first operating system of the smart watch enters the dormant state, the first communication protocol stack running in the first operating system is turned off. The first operating system is controlled to switch to the second operating system. At this time, the second operating system runs normally, and the second communication protocol stack continues to run in the second operating system. At this time, the smart watch can continue to support the first Bluetooth service.
[0067] The physiological data transmission service includes a service for transmitting at least one of heartbeat data, heart rate data, blood oxygen saturation data, and motion data. The data volume of the heartbeat data, heart rate data, blood oxygen saturation data, and motion data is relatively small compared to the data volume of the aforementioned Bluetooth multimedia service and Bluetooth Internet access service. Of course, the first Bluetooth service may also include services for transmitting other data of relatively small data volumes, which is not limited in this application.
[0068] In the embodiment of the present application, the performance of the second Bluetooth service is higher than that of the first Bluetooth service. The second Bluetooth service includes at least one of a Bluetooth multimedia service and a Bluetooth Internet access service. The first Bluetooth service includes at least one of a communication connection establishment service and a physiological data transmission service. The second Bluetooth service with higher performance is implemented using two operating systems, which means that more resources are called upon. Therefore, the second Bluetooth service with a larger data volume is processed jointly by the two operating systems, and only the first Bluetooth service with a smaller data volume is processed by the second operating system. In this way, a uniform allocation of resources is achieved, thereby reducing the power consumption of electronic devices while avoiding the frequent complete interruption of Bluetooth services.
[0069] In one embodiment, in response to the first instruction, the electronic device running the first operating system includes:
[0070] In response to the first instruction, the first operating system enters the awake state from the dormant state. When the first operating system is in the awake state, the first communication protocol stack runs on the first operating system, and the second communication protocol stack continues to run on the second operating system.
[0071] Specifically, in response to the first instruction, the first operating system is awakened from the dormant state, and the first communication protocol stack is controlled to run on the first operating system, and the second communication protocol stack continues to run on the second operating system.
[0072] When the first operating system on the electronic device is awakened from a dormant state, the first communication protocol stack is controlled to run on the first operating system, and the second communication protocol stack is controlled to run on the second operating system, so that the first operating system and the second operating system jointly support the second Bluetooth service.
[0073] In the embodiment of the present application, when the first operating system is in a dormant state, the first communication protocol stack on the first operating system is originally in a disabled state. If the electronic device responds to the first instruction and wakes up the first operating system from the dormant state, the electronic device first activates the first communication protocol stack on the first operating system. The electronic device then controls the switch from the second operating system to the first operating system and controls the second communication protocol stack to continue running on the second operating system.
[0074] Therefore, by controlling the protocol stack during system switching, the first communication protocol stack is accurately started in the first operating system. The second Bluetooth protocol stack in the second operating system is controlled to continue to operate normally, thereby ensuring that the first and second operating systems jointly support the second Bluetooth service, avoiding the frequent complete interruption of Bluetooth service during system switching.
[0075] In one embodiment, before the electronic device runs the first operating system in response to the first instruction, the electronic device includes:
[0076] When the first operating system is in a dormant state, the first communication protocol stack is controlled to stop running, and the second communication protocol stack is controlled to run on the second operating system.
[0077] like Figure 5 As shown, a system switching method is provided, including:
[0078] Step 520: After the electronic device is powered on, the first communication protocol stack is controlled to run on the first operating system, and the second communication protocol stack is controlled to run on the second operating system.
[0079] Specifically, after the electronic device is powered on, the first communication protocol stack is controlled to run on the first operating system, and the second communication protocol stack is controlled to run on the second operating system, so that the first operating system and the second operating system can jointly support the second Bluetooth service, or the second operating system can support the first Bluetooth service. In other words, the electronic device can now support both the first Bluetooth service and the second Bluetooth service.
[0080] Step 540: If it is detected that the first operating system enters the dormant state, the first communication protocol stack running on the first operating system is shut down.
[0081] If the first operating system is detected to enter a dormant state, it is necessary to shut down various protocol stacks related to the first operating system and switch the electronic device to the second operating system. This is because the protocol stack supporting the second Bluetooth service is pre-divided into a first communication protocol stack and a second communication protocol stack, and the first communication protocol stack runs on the first operating system, while the second communication protocol stack runs on the second operating system. Therefore, switching the electronic device from the first operating system to the second operating system requires shutting down various protocol stacks related to the first operating system. For the Bluetooth protocol stack, only the first communication protocol stack needs to be shut down, and the second communication protocol stack will not be shut down.
[0082] Step 560: Control the second communication protocol stack to continue running on the second operating system.
[0083] Therefore, after the electronic device shuts down the first communication protocol stack on the first operating system, it can control the second communication protocol stack to continue running on the second operating system.
[0084] In an embodiment of the present application, after the electronic device is turned on, the first communication protocol stack is controlled to run on the first operating system, and the second communication protocol stack is controlled to run on the second operating system. At this time, the electronic device can support both the first Bluetooth service and the second Bluetooth service. If it is monitored that the first operating system enters a dormant state, it is necessary to shut down various protocol stacks related to the first operating system in order to perform system switching, then the first communication protocol stack running on the first operating system can be shut down, and it will not have any impact on the second communication protocol stack running on the second operating system. During the system switching process, although the first communication protocol stack is shut down and cannot support the second Bluetooth service, the second communication protocol stack still runs normally on the second operating system to support the first Bluetooth service, thereby avoiding the situation where the Bluetooth service is completely interrupted frequently during system switching.
[0085] In one embodiment, in response to the first instruction, the first operating system enters the awake state from the sleep state, including:
[0086] Determine whether the first operating system enters the awake state from the sleep state according to the business type of the current pending business; the business type includes the first type of performance business and the second type of performance business; wherein the performance index of the first type of performance business is higher than the performance index of the second type of performance business.
[0087] Specifically, determining whether the service to be processed at the current moment belongs to a first-category performance service or a second-category performance service; wherein the performance index of the first-category performance service is higher than the performance index of the second-category performance service;
[0088] It is determined whether to control the first operating system to be awakened from the dormant state according to the judgment result.
[0089] Specifically, it is determined whether the pending business of the electronic device at the current moment belongs to the first category performance business or the second category performance business. Among them, the performance index of the first category performance business is higher than the performance index of the second category performance business. Performance indexes may include data volume or computing volume, etc., which are not limited in this application. By setting the performance index of the first category performance business to be higher than the performance index of the second category performance business, different businesses can be divided into the first category performance business or the second category performance business according to the business type in advance, and a corresponding relationship data table is formed. Then, the business type of the pending business at the current moment is obtained, and then by querying the corresponding relationship data table, it can be determined whether the pending business at the current moment is the first category performance business or the second category performance business. Then, based on the judgment result, it can be determined whether to control the first operating system to be awakened from the sleep state.
[0090] In the embodiment of the present application, the performance index of the first-category performance service is higher than the performance index of the second-category performance service. A determination is made as to whether the currently pending service is the first-category performance service or the second-category performance service, and a determination is made based on the determination result as to whether to control the first operating system to be awakened from a dormant state. This allows for accurate control of whether the first operating system is awakened from a dormant state based on the performance index of the pending service, thereby avoiding situations where the first operating system is not awakened in a timely manner.
[0091] In one embodiment, determining whether the first operating system enters the awake state from the dormant state according to the service type of the current to-be-processed service includes:
[0092] If it is determined that the service to be processed belongs to the first type of performance service, the first operating system enters the awake state from the dormant state, and the first communication protocol stack runs on the first operating system, and the second communication protocol stack runs on the second operating system;
[0093] If it is determined that the service to be processed belongs to the second type of performance service, the first operating system remains in the dormant state, and the second communication protocol stack runs on the second operating system.
[0094] like Figure 6 As shown, a system switching method is provided, further comprising:
[0095] Step 620: Determine whether the service to be processed by the electronic device at the current moment belongs to the first type of performance service or the second type of performance service.
[0096] The performance indicators of Category 1 performance services are set higher than those of Category 2 performance services. Different services can be pre-classified into Category 1 performance services or Category 2 performance services based on their service types, creating a corresponding data table. Then, the service type of the currently pending service is obtained, and by querying the corresponding data table, it can be determined whether the currently pending service belongs to Category 1 performance services or Category 2 performance services.
[0097] Step 640: If it is determined that the service to be processed is a first-class performance service, the first operating system is controlled to be awakened from the dormant state, and the first communication protocol stack is controlled to run on the first operating system, and the second communication protocol stack is controlled to run on the second operating system.
[0098] If it is determined that the service to be processed by the electronic device is a first-category performance service, and since the performance indicators of the first-category performance service are higher than those of the second-category performance service, the first-category performance service can be considered a high-performance service. Then, the first operating system is controlled to be awakened from the dormant state, and the first communication protocol stack is controlled to run on the first operating system, and the second communication protocol stack is controlled to run on the second operating system. At this time, the electronic device can normally support multiple functions (including but not limited to Bluetooth services), such as WiFi functions.
[0099] Step 660: If it is determined that the service to be processed is a second-class performance service, the first operating system is controlled to remain in the dormant state, and the second communication protocol stack is controlled to run on the second operating system.
[0100] If the service to be processed is determined to be a second-class performance service, since the performance index of the first-class performance service is higher than that of the second-class performance service, the first operating system is controlled to remain in the dormant state. The second-class performance service can be considered a low-performance service, which is relative to the high-performance service.
[0101] In an embodiment of the present application, it is determined whether the pending business of the electronic device is a high-performance business or a low-performance business. If it is determined that the pending business is a high-performance business, the first operating system is controlled to be awakened from the sleep state, and the first communication protocol stack is controlled to run on the first operating system, and the second communication protocol stack is controlled to run on the second operating system. If it is determined that the pending business is a low-performance business, the first operating system is controlled to remain in the sleep state, and the second communication protocol stack is controlled to run on the second operating system. Based on whether the pending business of the electronic device is a high-performance business, it is determined whether the electronic device needs to wake up the first operating system from the sleep state, and then the first Bluetooth protocol stack is turned on. Thus, the demand for supporting high-performance business on the electronic device is met by system switching, while avoiding the situation where the Bluetooth business is completely interrupted.
[0102] In one embodiment, the first operating system enters a wake-up state from a dormant state, including:
[0103] sending a first instruction to the first operating system through the second operating system;
[0104] The first operating system is controlled to enter a wake-up state from a sleep state in response to a first instruction.
[0105] In the embodiment of the present application, the first instruction may carry a wake-up message. If it is necessary to control the first operating system to enter a wake-up state from a dormant state, the first instruction is sent to the first operating system via the second operating system, and the first operating system is controlled to be awakened from the dormant state in response to the first instruction. By sending the first instruction from the second operating system to the first operating system, the system switching can be accurately performed.
[0106] In one embodiment, in response to the first instruction, after the electronic device runs the first operating system, a system switching method is provided, further comprising:
[0107] determining whether the first operating system enters a dormant state from an awake state according to a service type of a current pending service; the pending service includes a first-category performance service and a second-category performance service; wherein a performance indicator of the first-category performance service is higher than a performance indicator of the second-category performance service;
[0108] If the service to be processed is a first-class performance service, the first operating system is still in the awake state, the first communication protocol stack runs on the first operating system, and the second communication protocol stack runs on the second operating system;
[0109] If the service to be processed is a second-category performance service, the first operating system enters a dormant state from an awake state, controls the first communication protocol stack to stop running, and controls the second communication protocol stack to run on the second operating system.
[0110] like Figure 7A As shown, a system switching method is provided, which is applied to an electronic device with dual systems and is described using a first operating system, including:
[0111] Step 702: After the electronic device is powered on, the first operating system (Android system) runs normally.
[0112] Step 704: monitor whether the service to be processed at the current moment is a first-class performance service; if not, proceed to step 706; if so, proceed to step 702;
[0113] Step 706: Send a system switching instruction to the second operating system;
[0114] Step 708, determining whether a reply message sent by the second operating system is received; if so, proceeding to step 710;
[0115] Step 710: Control the first operating system to enter a dormant state, and shut down the first communication protocol stack running on the first operating system;
[0116] Step 712: Determine whether a wake-up message sent by the second operating system is received; if so, proceed to step 714;
[0117] Step 714: The first operating system is awakened, and the first communication protocol stack is controlled to run on the first operating system to process high-performance services.
[0118] like Figure 7B As shown, a system switching method is provided, which is applied to an electronic device with dual systems and described with the second operating system, including:
[0119] Step 716, after the electronic device is powered on, the second operating system (MCU system) runs normally;
[0120] Step 718, determining whether a system switching instruction sent by the first operating system is received; if so, proceeding to step 720; if not, proceeding to step 716;
[0121] Step 720, sending a reply message to the first operating system;
[0122] Step 722: take over the Bluetooth system and keep the second communication protocol stack running on the second operating system;
[0123] Step 724: determine whether the service to be processed at the current moment is a first-class performance service; if so, proceed to step 726;
[0124] Step 726: Send a wake-up message to the first operating system.
[0125] In this embodiment of the present application, the first operating system sends a system switching instruction to the second operating system, and the second operating system sends a reply message to the first operating system, accurately switching from the first operating system to the second operating system. After the system switch, the electronic device determines in real time whether the service currently being processed is a Class I performance service. If so, the second operating system promptly sends a wake-up message to the first operating system, thereby waking up the first operating system to process the high-performance service. This allows for timely switching of systems to process services of different performance levels.
[0126] In one embodiment, a system switching device 800 is provided. An electronic device includes a first processor, a second processor, and a Bluetooth module. The first processor can run a first operating system, the second processor can run a second operating system, the first processor and the second processor can be communicatively connected, and the Bluetooth module and the second processor can be communicatively connected. The device includes:
[0127] The second operating system running module 820 is used for enabling the second operating system to support the first Bluetooth service when the electronic device runs the second operating system;
[0128] The first operating system running module 840 is configured to enable the electronic device to run the first operating system in response to the first instruction. When the electronic device runs the first operating system, the first operating system and the second operating system jointly support the first Bluetooth service.
[0129] In one embodiment, the first operating system and the second operating system may also jointly support a second Bluetooth service.
[0130] In one embodiment, the protocol stack supporting the first Bluetooth service includes a second communication protocol stack running on a second operating system; the protocol stack supporting the second Bluetooth service includes a first communication protocol stack running on the first operating system and a second communication protocol stack running on the second operating system; wherein, the performance of the second Bluetooth service jointly supported by the first communication protocol stack and the second communication protocol stack is higher than the performance of the first Bluetooth service supported by the second communication protocol stack.
[0131] In one embodiment, the performance of the second Bluetooth service jointly supported by the first communication protocol stack and the second communication protocol stack is higher than the performance of the first Bluetooth service supported by the second communication protocol stack, including: the data volume of the second Bluetooth service jointly supported by the first communication protocol stack and the second communication protocol stack is higher than the data volume of the first Bluetooth service supported by the second communication protocol stack.
[0132] In one embodiment, the second Bluetooth service includes at least one of a Bluetooth multimedia service and a Bluetooth Internet access service; the first Bluetooth service includes at least one of a communication connection establishment service and a physiological data transmission service.
[0133] In one embodiment, the first operating system running module 840 is also used to respond to the first instruction, and the first operating system enters the awake state from the sleep state. When the first operating system is in the awake state, the first communication protocol stack runs on the first operating system, and the second communication protocol stack continues to run on the second operating system.
[0134] In one embodiment, the second operating system running module 820 is used to control the first communication protocol stack to stop running when the first operating system is in a dormant state, and to control the second communication protocol stack to run on the second operating system.
[0135] In one embodiment, the first operating system running module 840 is also used to determine whether the first operating system enters the awake state from the sleep state based on the business type of the current pending business; the business type includes the first type of performance business and the second type of performance business; wherein the performance indicator of the first type of performance business is higher than the performance indicator of the second type of performance business.
[0136] In one embodiment, the first operating system running module 840 is also used to, if the to-be-processed business belongs to the first category of performance business, the first operating system enters the awake state from the sleep state, the first communication protocol stack runs on the first operating system, and the second communication protocol stack runs on the second operating system; if the to-be-processed business belongs to the second category of performance business, the first operating system remains in the sleep state, and the second communication protocol stack runs on the second operating system.
[0137] In one embodiment, the first operating system running module 840 is further configured to send a first instruction to the first operating system through the second operating system; and control the first operating system to enter a wake-up state from a dormant state in response to the first instruction.
[0138] In one embodiment, Figure 9 As shown, a system switching module 800 is provided, further comprising:
[0139] The first operating system state switching module 860 is used to determine whether the first operating system enters the sleep state from the awake state according to the business type of the current pending business; the pending business includes the first type of performance business and the second type of performance business; wherein, the performance index of the first type of performance business is higher than the performance index of the second type of performance business; if the pending business is the first type of performance business, the first operating system is still in the awake state, the first communication protocol stack runs on the first operating system, and the second communication protocol stack runs on the second operating system; if the pending business is the second type of performance business, the first operating system enters the sleep state from the awake state, controls the first communication protocol stack to stop running, and controls the second communication protocol stack to run on the second operating system.
[0140] In one embodiment, the first operating system runs on a system-on-chip (SOC), and the second operating system runs on a microcontroller unit (MCU).
[0141] In one embodiment, the power consumption when the first operating system is run on the system-on-chip (SOC) is greater than the power consumption when the second operating system is run on the microcontroller unit (MCU).
[0142] It should be understood that, although the various steps in the flowcharts in the above-mentioned figures are shown in sequence as indicated by the arrows, these steps are not necessarily performed in sequence in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and these steps may be performed in other orders. Moreover, at least a portion of the steps in the above-mentioned figures may include a plurality of sub-steps or a plurality of stages, and these sub-steps or stages are not necessarily performed at the same time, but may be performed at different times, and the execution order of these sub-steps or stages is not necessarily performed in sequence, but may be performed in turn or alternately with at least a portion of other steps or sub-steps or stages of other steps.
[0143] The division of the modules in the above-mentioned system switching device is only for illustration. In other embodiments, the system switching device may be divided into different modules as needed to complete all or part of the functions of the above-mentioned system switching device.
[0144] The specific definition of the system switching device can be found in the definition of the system switching method above and will not be repeated here. Each module in the above-mentioned system switching device can be implemented in whole or in part through software, hardware, or a combination thereof. Each of the above-mentioned modules can be embedded in or independent of the processor of the computer device in hardware form, or can be stored in the memory of the computer device in software form, so that the processor can call and execute the corresponding operations of each of the above modules.
[0145] In one embodiment, an electronic device is provided, including a memory and a processor. The memory stores a computer program. When the computer program is executed by the processor, the processor executes the steps of a system switching method provided in the above embodiments.
[0146] Figure 10 FIG. 1 is a schematic diagram of the internal structure of an electronic device in one embodiment. Figure 10 As shown, the electronic device includes a processor and a memory connected via a system bus. The processor is used to provide computing and control capabilities to support the operation of the entire electronic device. The memory may include a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The computer program can be executed by the processor to implement a system switching method provided in each of the above embodiments. The internal memory provides a cached operating environment for the operating system computer program in the non-volatile storage medium. The electronic device can be any terminal device such as a mobile phone, a tablet computer, a PDA (Personal Digital Assistant), a POS (Point of Sales), a vehicle-mounted computer, a wearable device, etc.
[0147] The various modules in the system switching device provided in the embodiments of the present application may be implemented in the form of a computer program. The computer program may be executed on an electronic device or an electronic device. The program modules comprising the computer program may be stored in the electronic device or the memory of the electronic device. When the computer program is executed by a processor, the steps of the method described in the embodiments of the present application are implemented.
[0148] The present application also provides a computer-readable storage medium, one or more non-volatile computer-readable storage media containing computer-executable instructions, which, when executed by one or more processors, cause the processors to perform the steps of the system switching method.
[0149] A computer program product comprising instructions, when executed on a computer, causes the computer to execute a system switching method.
[0150] Any reference to memory, storage, database or other media used in the embodiments of the present application may include non-volatile and / or volatile memory. Suitable non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM), which is used as an external cache memory. As an illustration and not limitation, RAM is available in various 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).
[0151] The above system switching examples only represent several implementation methods of the present application. While the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of the present application. It should be noted that a person of ordinary skill in the art could make several variations and improvements without departing from the concept of the present application, all of which fall within the scope of protection of the present application. Therefore, the scope of protection of the present patent application shall be based on the appended claims.
Claims
1. A dual-system Bluetooth device, characterized in that: The dual-system Bluetooth device includes a first operating system and a second operating system; The first operating system is used to run a first communication protocol stack, and the second operating system is used to run a second communication protocol stack; the second communication protocol stack is used to support a first Bluetooth service, and the first communication protocol stack and the second communication protocol stack are used to jointly support a second Bluetooth service; the dual-system Bluetooth device is configured to control the first communication protocol stack to run on the first operating system if the first operating system is awakened from a sleep state, and control the second communication protocol stack to continue running on the second operating system.
2. The dual-system Bluetooth device according to claim 1, wherein: The dual-system Bluetooth device further includes a Bluetooth channel and a message channel; The Bluetooth pipe is used to transmit Bluetooth information related to the first communication protocol stack and the second communication protocol stack between the first operating system and the second operating system; The message pipe is used to transmit other information except Bluetooth information related to the first communication protocol stack and the second communication protocol stack between the first operating system and the second operating system.
3. The dual-system Bluetooth device according to claim 2, wherein: When the first communication protocol stack and the second communication protocol stack are used to jointly support the second Bluetooth service, the first communication protocol stack is used to transmit data with the second communication protocol stack through a Bluetooth pipe; after the second communication protocol stack receives the data, the second communication protocol stack is used to transmit data with the Bluetooth module through a bus.
4. The dual-system Bluetooth device according to any one of claims 1 to 3, characterized in that: When the second communication protocol stack is used to support the first Bluetooth service, the second communication protocol stack is used to transmit data with the Bluetooth module through the bus.
5. The dual-system Bluetooth device according to claim 1, wherein: The protocol stack supporting the first Bluetooth service includes a second Bluetooth protocol stack running on the second operating system, and the protocol stack supporting the second Bluetooth service includes a first Bluetooth protocol stack running on the first operating system and a second Bluetooth protocol stack running on the second operating system.
6. The dual-system Bluetooth device according to claim 1, wherein: The performance of the second Bluetooth service jointly supported by the first communication protocol stack and the second communication protocol stack is higher than the performance of the first Bluetooth service supported by the second communication protocol stack.
7. The dual-system Bluetooth device according to claim 6, wherein: The data volume of the second Bluetooth service jointly supported by the first communication protocol stack and the second communication protocol stack is higher than the data volume of the first Bluetooth service supported by the second communication protocol stack.
8. The dual-system Bluetooth device according to claim 1, wherein: The first Bluetooth service is a basic service, and the second Bluetooth service is an upper-layer service based on the first Bluetooth service.
9. The dual-system Bluetooth device according to claim 1, wherein: The second Bluetooth service includes at least one of a Bluetooth multimedia service and a Bluetooth Internet access service; the first Bluetooth service includes at least one of a communication connection establishment service and a physiological data transmission service.
10. The dual-system Bluetooth device according to claim 1, wherein: The second operating system is configured to continuously support the first Bluetooth service in the background.
11. The dual-system Bluetooth device according to claim 1, wherein: When the first operating system enters a dormant state, the dual-system Bluetooth device is configured to shut down the first communication protocol stack running on the first operating system and control the second communication protocol stack to continue running on the second operating system.
12. The dual-system Bluetooth device according to claim 1, wherein: The performance of the Bluetooth service is measured or evaluated based on a performance indicator of the Bluetooth service; the performance indicator includes data volume and / or calculation volume.
13. The dual-system Bluetooth device according to claim 1, wherein: The first communication protocol stack and the second communication protocol stack are Bluetooth protocol stacks.
14. The dual-system Bluetooth device according to claim 1, wherein: The first Bluetooth service can be independently implemented by the second operating system, or the first Bluetooth service can be implemented by the first operating system and the second operating system together; or the second Bluetooth service can be implemented by the first operating system and the second operating system together.
15. The dual-system Bluetooth device according to claim 1, wherein: The first operating system is configured to enable other Bluetooth services in the second Bluetooth service except the first Bluetooth service when the first operating system is awakened from a sleep state; the second operating system is configured to continue supporting the first Bluetooth service when the first operating system is awakened from a sleep state.
16. The dual-system Bluetooth device according to claim 1, wherein: The first operating system is configured to shut down other Bluetooth services in the second Bluetooth service except the first Bluetooth service when the first operating system enters a dormant state; and the second operating system is configured to continue supporting the first Bluetooth service.
17. An electronic device comprising a first processor, a second processor, a Bluetooth module, and the dual-system Bluetooth device according to any one of claims 1 to 16, wherein: The first processor is used to run a first operating system, the second processor is used to run a second operating system, the first processor and the second processor are communicatively connected, and the Bluetooth module is communicatively connected to the second processor; When the electronic device implements the first Bluetooth service, the dual-system Bluetooth device is used to control the second communication protocol stack to run on the second operating system to support the first Bluetooth service through the second communication protocol stack; when the first operating system of the electronic device is awakened from a sleep state and the electronic device switches from the second operating system to the first operating system, the dual-system Bluetooth device is used to start the first communication protocol stack running on the first operating system and control the second communication protocol stack to continue running on the second operating system.
18. The electronic device according to claim 17, wherein: The protocol stack supporting the first Bluetooth service includes a second communication protocol stack running on the second operating system, and the protocol stack supporting the second Bluetooth service includes a first communication protocol stack running on the first operating system and the second communication protocol stack running on the second operating system.
19. The electronic device according to claim 17, wherein: When the first operating system enters a dormant state and the electronic device switches from the first operating system to the second operating system, the dual-system Bluetooth device is used to shut down the first communication protocol stack running on the first operating system and control the second communication protocol stack to continue running on the second operating system.
20. The electronic device according to claim 17, wherein: When the electronic device implements the second Bluetooth service, the dual-system Bluetooth device is used to control the first communication protocol stack to run on the first operating system, and to control the second communication protocol stack to run on the second operating system, so as to support the second Bluetooth service through the first communication protocol stack and the second communication protocol stack.
21. The electronic device according to any one of claims 17 to 20, characterized in that: The first processor is a system-on-chip (SOC), and the second processor is a microcontroller unit (MCU).
22. The electronic device according to claim 21, wherein: The power consumption when the first operating system is run on the system-on-chip (SOC) is greater than the power consumption when the second operating system is run on the microcontroller unit (MCU).
23. The electronic device according to claim 17, wherein: The electronic device is a wearable device.
Citation Information
Patent Citations
System and method for connecting bluetooth-enabled devices to a personal computer
US20020159419A1
Method for processing data based on bluetooth protocol and electronic device thereof
US20150365999A1