Bluetooth service starting method, multi-core processor, electronic equipment and storage medium

By utilizing multiple core parallel processing tasks of multi-core processors in electronic devices, the problem of long boot time of Bluetooth service after Linux system startup is solved, and the Bluetooth service is quickly started and the user experience is improved.

CN119938148APending Publication Date: 2025-05-06JINGCHEN SEMICON SHENZHEN CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311446685.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-11-01
Publication Date
2025-05-06

AI Technical Summary

Technical Problem

In the prior art, the Linux system of electronic devices must first load the boot loader and the Linux system kernel before starting the Bluetooth system can be started, resulting in a long boot time for Bluetooth services and affecting the user experience.

Method used

Through multiple cores of the multi-core processor in parallel processing tasks, during the startup of the Linux system, the first core controls the startup of the Linux system, and the second core starts the Bluetooth service of the freertos system, thereby starting the Linux system and Bluetooth service at the same time.

Benefits of technology

This method greatly shortens the startup time of Bluetooth service, enables users to quickly use Bluetooth services, and improves user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119938148A_ABST
    Figure CN119938148A_ABST
Patent Text Reader

Abstract

The invention discloses a Bluetooth service starting method, a multi-core processor, electronic equipment and a storage medium, and the Bluetooth service starting method comprises the steps: responding to a Linux system starting instruction, and controlling the starting of a Linux system through a first core; in the starting process of the Linux system, the Bluetooth service of the freertos system is started through the second core, and the Linux system is controlled to continue to be started through the first core. By adopting the method, the linux system and the Bluetooth service can be simultaneously started through the plurality of cores of the multi-core processor, so that the starting time of the Bluetooth service is greatly shortened, a user can quickly use the Bluetooth service, and the user experience is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of electronic equipment, and in particular to a Bluetooth service starting method, a multi-core processor, an electronic device and a storage medium. Background Art

[0002] In the related art, during the startup process of the Linux system of the electronic device, it is necessary to first load the boot loader and the Linux system kernel, and then start the Bluetooth system of the Linux system, wherein the Bluetooth system includes a Bluetooth driver, a Bluetooth protocol stack and a Bluetooth service, that is, loading the boot loader, the Linux system kernel and starting the Bluetooth system of the Linux system are performed serially, that is, before the loading of the boot loader and the Linux system kernel is completed, the Bluetooth protocol stack and the Bluetooth service of the Linux system cannot be started, and loading the boot loader and the Linux system kernel will take a certain amount of time, thereby greatly extending the startup time of the Bluetooth service, causing inconvenience to users using Bluetooth and reducing the user experience. Summary of the invention

[0003] The present invention aims to solve at least one of the technical problems existing in the prior art. To this end, one purpose of the present invention is to provide a method for starting a Bluetooth service, which can start a Linux system and a Bluetooth service simultaneously through multiple cores of a multi-core processor, greatly shortening the startup time of the Bluetooth service, so that users can quickly use the Bluetooth service and improve user experience.

[0004] A second objective of the present invention is to provide a multi-core processor.

[0005] A third objective of the present invention is to provide an electronic device.

[0006] A fourth objective of the present invention is to provide a computer-readable storage medium.

[0007] In order to solve the above problems, an embodiment of the first aspect of the present invention provides a Bluetooth service startup method, characterized in that a multi-core processor is used for an electronic device, and the electronic device is configured with a Linux system and a FreeRTOS system. The Bluetooth service startup method comprises: responding to a Linux system startup instruction, controlling the startup of the Linux system through a first core; during the startup process of the Linux system, starting the Bluetooth service of the FreeRTOS system through a second core, and controlling the Linux system to continue to start through the first core.

[0008] According to the Bluetooth service startup method of the embodiment of the present invention, based on the electronic device being configured with a Linux system and a FreeRTOS system, and utilizing each core of the multi-core processor of the electronic device to process tasks in parallel, during the Linux system startup process, the Bluetooth service of the FreeRTOS system is started and the Linux system is continued to be started through multiple cores of the multi-core processor of the electronic device, that is, the multi-core processor simultaneously starts the Bluetooth service of the FreeRTOS system and continues to start the Linux system, thereby eliminating the need to wait for the boot loader and the Linux system kernel to be loaded before starting the Bluetooth service, greatly shortening the startup time of the Bluetooth service, so that users can quickly use the Bluetooth service and improve user experience.

[0009] In some embodiments, the electronic device also includes a static random access memory. During the startup of the Linux system, the Bluetooth service of the FreeRTOS system is started through the second core, and the Linux system is controlled to continue to start through the first core, including: after loading the romcode of the Linux system and loading bl2, controlling the second core to start, starting the Bluetooth service of the FreeRTOS system from the static random access memory through the second core, and controlling the Linux system to continue to start through the first core.

[0010] In some embodiments, starting the Bluetooth service of the freertos system from the static random access memory through the second core includes: loading the freertos system from the static random access memory through the second core, initializing the Bluetooth driver of the freertos system through the freertos system, initializing the Bluetooth protocol stack of the freertos system, and initializing the Bluetooth service of the freertos system.

[0011] In some embodiments, the Bluetooth service startup method further includes: initializing an audio driver through the FreeRTOS system before the FreeRTOS system initializes the Bluetooth service of the FreeRTOS system.

[0012] In some embodiments, the Bluetooth service startup method also includes: determining whether the Linux system has completed startup and whether the Bluetooth service of the freertos system is used; if the Linux system has completed startup or the Bluetooth service of the freertos system is not used, controlling the freertos system to exit to release the use of the second core.

[0013] In some embodiments, controlling the Linux system to continue booting through the first core includes: controlling the Linux system to perform the following items in sequence through the first core: initializing the double-rate synchronous dynamic random access memory, loading BL31 / BL32, loading the boot loader, loading the Linux system kernel, and starting the Bluetooth service of the Linux system.

[0014] In some embodiments, the Bluetooth service startup method further includes: after the Bluetooth service of the Linux system is started and the FreeRTOS system releases the use of the second core, the Linux system obtains Bluetooth service control authority to use the Bluetooth service.

[0015] A second aspect of the present invention provides a multi-core processor, characterized in that it is used in an electronic device, wherein the electronic device is configured with a Linux system and a FreeRTOS system, and the multi-core processor includes: a first core, configured to control the startup of the Linux system in response to a Linux system startup instruction; a first core and a second core, during the startup of the Linux system, the second core starts the Bluetooth service of the FreeRTOS system, and the first core controls the Linux system to continue to start.

[0016] According to the multi-core processor of the embodiment of the present invention, based on the electronic device being configured with the Linux system and the FreeRTOS system, and utilizing each core of the multi-core processor of the electronic device to process tasks in parallel, during the Linux system startup process, the Bluetooth service of the FreeRTOS system is started and the Linux system is continued to be started through the multiple cores of the multi-core processor of the electronic device, that is, the multi-core processor simultaneously starts the Bluetooth service of the FreeRTOS system and continues to start the Linux system, thereby eliminating the need to wait for the boot loader and the Linux system kernel to be loaded before starting the Bluetooth service, greatly shortening the startup time of the Bluetooth service, so that users can quickly use the Bluetooth service and improve the user experience.

[0017] The third aspect of the present invention provides an electronic device, comprising: at least one processor; a memory communicatively connected to at least one of the processors; wherein the memory stores a computer program executable by at least one of the processors, and when at least one of the processors executes the computer program, the Bluetooth service startup method described in the above embodiment is implemented.

[0018] According to the electronic device of the embodiment of the present invention, by executing the Bluetooth service startup method of the above embodiment, the Linux system and the Bluetooth service can be started simultaneously through multiple cores of the multi-core processor, which greatly shortens the startup time of the Bluetooth service, so that the user can quickly use the Bluetooth service and improve the user experience.

[0019] A fourth aspect of the present invention provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed, the Bluetooth service startup method described in the above embodiment is implemented.

[0020] Additional aspects and advantages of the present invention will be given in part in the following description and in part will be obvious from the following description, or will be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] The above and / or additional aspects and advantages of the present invention will become apparent and easily understood from the description of the embodiments in conjunction with the following drawings, in which:

[0022] Figure 1 is a flowchart of a method for starting a Bluetooth service according to an embodiment of the present invention;

[0023] Figure 2 is a flowchart of starting a Bluetooth service according to an embodiment of the present invention;

[0024] Figure 3 is a structural block diagram of a multi-core processor according to an embodiment of the present invention;

[0025] Figure 4 is a structural block diagram of an electronic device according to an embodiment of the present invention.

[0026] Reference numerals:

[0027] Multi-core processor 10; electronic device 20;

[0028] First core 1; second core 2; processor 4; memory 5. DETAILED DESCRIPTION

[0029] Embodiments of the present invention are described in detail below. The embodiments described with reference to the accompanying drawings are exemplary. Embodiments of the present invention are described in detail below.

[0030] In order to solve the above problems, the first aspect of the present invention provides a Bluetooth service startup method for a multi-core processor of an electronic device. This method can be used to simultaneously start the Linux system and the Bluetooth service through multiple cores of the multi-core processor, greatly shortening the startup time of the Bluetooth service, so that users can quickly use the Bluetooth service and improve the user experience.

[0031] In an embodiment, a multi-core processor is a very large-scale integrated circuit, and is the computing and control core of a computer. Current processors are all multi-core processors. For example, a multi-core processor may be a quad-core processor, etc., and there is no limitation to this. It should be noted that each core of a multi-core processor can run independently and process different tasks in parallel.

[0032] Reference below Figure 1 Describe the Bluetooth service startup method according to an embodiment of the present invention, such as Figure 1 As shown, the method at least includes: step S1 to step S2.

[0033] Step S1, in response to a Linux system startup instruction, controlling the Linux system startup through a first core.

[0034] Specifically, the electronic device is configured with a Linux system and a FreeRTOS system. When the electronic device is powered on and receives a Linux system startup instruction, the first core controls the Linux system startup. Among them, the FreeRTOS system is a lightweight real-time operating system, and its functions include: task management, time management, semaphore, message queue, memory management and recording functions, etc., which can basically meet the needs of smaller systems, and the processing efficiency is higher and faster than that of the Linux system. The electronic device can provide Bluetooth functions for audio or home appliances.

[0035] Step S2, during the booting process of the Linux system, the Bluetooth service of the FreeRTOS system is started through the second core, and the Linux system is controlled to continue booting through the first core.

[0036] Specifically, during the startup process of the existing Linux system, it is necessary to first load the boot loader and the Linux system kernel, and then start the Bluetooth system of the Linux system, that is, loading the boot loader, the Linux system kernel and starting the Bluetooth system of the Linux system are performed serially. In other words, the Bluetooth protocol stack and Bluetooth service of the Linux system cannot be started before the loading of the boot loader and the Linux system kernel is completed. Loading the boot loader and the Linux system kernel will consume a certain amount of time, thereby greatly extending the startup time of the Bluetooth service, causing inconvenience to users in using Bluetooth and reducing the user experience. In order to solve the above problems, the electronic device in the present application is configured with a Linux system and a FreeRTOS system, and the FreeRTOS system has a Bluetooth system, and the FreeRTOS system has the characteristics of simplicity and high processing efficiency. Therefore, during the startup of the Linux system, the principle that each core of the multi-core processor can run independently is utilized, and the Bluetooth service of the FreeRTOS system and the Linux system are started respectively by multiple cores of the multi-core processor of the electronic device. That is, while the first core of the multi-core processor continues to start the Linux system, that is, while the first core is loading the boot loader and the Linux system kernel, the second core of the multi-core processor starts the Bluetooth service of the FreeRTOS system, wherein the Bluetooth service can be Bluetooth connection and Bluetooth playback, etc., and the Bluetooth service of the FreeRTOS system can be started quickly, so there is no need to wait for the boot loader and the Linux system kernel to be loaded before starting the Bluetooth service, but the Bluetooth service is started at the same time as the boot loader and the Linux system kernel, which greatly shortens the startup time of the Bluetooth service, so that users can quickly use the Bluetooth service and improve the user experience.

[0037] According to the Bluetooth service startup method of the embodiment of the present invention, based on the electronic device being configured with a Linux system and a FreeRTOS system, and utilizing each core of the multi-core processor of the electronic device to process tasks in parallel, during the Linux system startup process, the Bluetooth service of the FreeRTOS system is started and the Linux system is continued to be started through multiple cores of the multi-core processor of the electronic device, that is, the multi-core processor simultaneously starts the Bluetooth service of the FreeRTOS system and continues to start the Linux system, thereby eliminating the need to wait for the boot loader and the Linux system kernel to be loaded before starting the Bluetooth service, greatly shortening the startup time of the Bluetooth service, so that users can quickly use the Bluetooth service and improve user experience.

[0038] In some embodiments, the electronic device also includes a static random access memory (SRAM). During the Linux system startup process, the Bluetooth service of the FreeRTOS system is started through the second core, and the Linux system is controlled to continue to start through the first core, including: after loading the romcode of the Linux system and loading bl2, controlling the second core to start, starting the Bluetooth service of the FreeRTOS system from the static random access memory through the second core, and controlling the Linux system to continue to start through the first core.

[0039] Specifically, during the boot process of the Linux system, after the first core loads the romcode of the Linux system and loads the bootloader bl2, that is, after the electronic device is powered on, the romcode of the Linux system is first loaded, wherein the romcode is loaded to initialize the processor of the electronic device, and then the first core loads bl2, after loading the romcode of the Linux system and loading bl2, the code of the freertos system is read from the flash memory in bl2, and then the freertos system is loaded into the static random access memory, and the second core is started in bl2, and the second core starts the Bluetooth service of the freertos system from the static random access memory, thereby ensuring that the Bluetooth service of the freertos system can be quickly started, and the Linux system is controlled to continue to start through the first core. In addition, the static random access memory can store data as long as it is powered on. Among them, bootloader bl2 is the second stage of the bootloader, and the main functions of bl2 are to initialize the hardware devices used in this stage, detect the system memory mapping, read the kernel from Flash into RAM, set startup parameters for the kernel, and call the kernel, etc.

[0040] In some embodiments, starting the Bluetooth service of the freertos system from the static random access memory through the second core includes: loading the freertos system from the static random access memory through the second core, initializing the Bluetooth driver of the freertos system through the freertos system, initializing the Bluetooth protocol stack of the freertos system, and initializing the Bluetooth service of the freertos system.

[0041] Specifically, before the freertos system starts the Bluetooth service, the freertos system initializes the Bluetooth driver, Bluetooth protocol stack, A2DP (Advanced Audio Distribution Profile, Bluetooth audio transmission model agreement) / AVRCP (Audio / VideoRemote Control Profile, audio and video remote control protocol) of the freertos system, that is, the Bluetooth audio transmission protocol and the Bluetooth service, so as to ensure that the Bluetooth service of the freertos system can be used. After the Bluetooth driver, Bluetooth protocol stack, A2DP / AVRCP Bluetooth audio transmission protocol and Bluetooth service are initialized, the second core starts the Bluetooth service of the freertos system from the static random access memory, thereby realizing the startup of the Bluetooth service of the freertos system, so that users can quickly use the Bluetooth service and improve the user experience. In addition, the Bluetooth driver is used for electronic devices to connect to the driver software of other devices, and the Bluetooth protocol stack is an open specification for wireless data and digital communication. The freertos system is also used to load the Bluetooth protocol stack.

[0042] In some embodiments, before the freertos system initializes the Bluetooth service of the freertos system, the audio driver is initialized by the freertos system to ensure that the Bluetooth service can be used. The audio driver is used to transmit audio data.

[0043] In some embodiments, the Bluetooth service startup method further includes: determining whether the Linux system has been started and whether the Bluetooth service of the freertos system is used; if the Linux system has been started or the Bluetooth service of the freertos system is not used, then controlling the freertos system to exit to release the use of the second core. Specifically, determining whether the Linux system has been started and whether the Bluetooth service of the freertos system is used, that is, after the Linux system has been started, its Bluetooth service can be used, and there is no need to use the Bluetooth service of the freertos system at this time. Therefore, if the Linux system has been started, the electronic device can use the Bluetooth service of the Linux system at this time, or the Bluetooth service of the freertos system is not used, that is, the user does not use other devices to connect the Bluetooth service of the electronic device, then controlling the freertos system to exit to release the use of the second core, so as to provide the memory of the multi-core processor to the Linux system, and if the Linux system has not been started, then continuing to use the Bluetooth service of the freertos system, that is, controlling the freertos system to continue normal operation.

[0044] In addition, the Bluetooth service of the freertos system can also be used after the Linux system is started. The Bluetooth service of the Linux system can interact with other modules of the electronic device.

[0045] In some embodiments, the Linux system is controlled to continue to start through the first core, that is, after loading the romcode of the Linux system and loading bl2, the Linux system is initialized, that is, the double data rate synchronous dynamic random access memory (Double Data Rate, DDR), loading BL31 / BL32, loading the boot loader, loading the Linux system kernel (kernel), and starting the Bluetooth service of the Linux system. In other words, the Bluetooth service of the Linux system can be started after the Linux system loads the Linux system kernel, and it should be noted that before starting the Bluetooth service, the Bluetooth driver, Bluetooth protocol stack, A2DP / AVRCP Bluetooth audio transmission protocol and Bluetooth service need to be initialized. Among them, BL31 is a system security monitor, and the main functions of BL31 are as a startup process, initializing hardware and loading BL32; loading BL32 includes setting the stack pointer and initializing hardware, such as initializing the memory pipeline unit, global variables, interrupt controller and timer; the boot loader is used to detect the external memory and load the programs needed in the subsequent process and set the network and memory.

[0046] It should be noted that before the Linux system kernel is loaded through the first core, only the first core is started by default. The first core loads the romcode of the Linux system and loads bl2, and starts the second core in bl2.

[0047] In some embodiments, after the Bluetooth service of the Linux system is started and the freertos system releases the use of the second core, that is, after the Linux system is started, its Bluetooth service can be used, and there is no need to use the Bluetooth service of the freertos system. Then the Bluetooth service of the Linux system is controlled to start, and the Linux system obtains the Bluetooth service control authority so that the electronic device can use the Bluetooth service of the Linux system.

[0048] Reference below Figure 2 The figure illustrates an example of starting the Bluetooth service in an embodiment of the present invention, and the specific contents are as follows.

[0049] Step S3: the first core of the multi-core processor of the electronic device starts the Linux system.

[0050] Step S4: the first core of the multi-core processor loads the romcode of the Linux system.

[0051] Step S5: The first core of the multi-core processor loads bl2 of the Linux system, and executes steps S6 and S13.

[0052] Step S6: the second core of the multi-core processor starts the Bluetooth service of the FreeRTOS system from the static random access memory.

[0053] Step S7, the freertos system initializes the Bluetooth audio driver.

[0054] Step S8, the freertos system initializes the Bluetooth driver.

[0055] Step S9: the freertos system initializes the Bluetooth service.

[0056] Step S10, the second core of the multi-core processor starts the Bluetooth service of the FreeRTOS system, that is, while the first core of the multi-core processor starts the Linux system, the second core starts the Bluetooth service of the FreeRTOS system.

[0057] Step S11, determine whether the Linux system is started and whether the Bluetooth service of the FreeRTOS system is used. If so, execute step S12, otherwise execute step S11.

[0058] Step S12, control the freertos system to exit, and execute step S17.

[0059] Step S13, the first core of the multi-core processor controls the Linux system to initialize the double rate synchronous dynamic random access memory.

[0060] Step S14: the first core of the multi-core processor loads BL31 / BL32.

[0061] Step S15: the first core of the multi-core processor loads a boot loader (Universal Boot Loader, U-boot).

[0062] Step S16: The first core of the multi-core processor loads the Linux system kernel, and initializes the Bluetooth driver and the Bluetooth audio driver.

[0063] Step S17, canceling Bluetooth control.

[0064] Step S18: The electronic device provides Bluetooth service.

[0065] Therefore, during the Linux system startup process, the Bluetooth service of the FreeRTOS system and the Linux system are started respectively by multiple cores of the multi-core processor of the electronic device, that is, the multi-core processor starts the Bluetooth service of the FreeRTOS system and continues to start the Linux system at the same time, so there is no need to wait for the boot loader and the Linux system kernel to be loaded before starting the Bluetooth service, which greatly shortens the startup time of the Bluetooth service, so that users can quickly use the Bluetooth service and improve the user experience.

[0066] A second aspect of the present invention provides a multi-core processor for an electronic device, wherein the electronic device is configured with a Linux system and a FreeRTOS system, such as Figure 3 As shown, the multi-core processor 10 includes: a first core 1 and a second core 2 .

[0067] Among them, the first core is configured to respond to the Linux system startup instruction, control the Linux system startup through the first core, during the Linux system startup process, the second core starts the Bluetooth service of the freertos system, and the first core controls the Linux system to continue to start.

[0068] According to the multi-core processor of the embodiment of the present invention, based on the electronic device being configured with the Linux system and the FreeRTOS system, and utilizing each core of the multi-core processor of the electronic device to process tasks in parallel, during the Linux system startup process, the Bluetooth service of the FreeRTOS system is started and the Linux system is continued to be started through the multiple cores of the multi-core processor of the electronic device, that is, the multi-core processor simultaneously starts the Bluetooth service of the FreeRTOS system and continues to start the Linux system, thereby eliminating the need to wait for the boot loader and the Linux system kernel to be loaded before starting the Bluetooth service, greatly shortening the startup time of the Bluetooth service, so that users can quickly use the Bluetooth service and improve the user experience.

[0069] A third aspect of the present invention provides an electronic device, such as Figure 4 As shown, the electronic device 20 includes: at least one processor 4 and a memory 5 communicatively connected to the at least one processor 4 .

[0070] The memory 5 stores a computer program that can be executed by at least one processor 4 , and when the at least one processor 4 executes the computer program, the Bluetooth service startup method of the above embodiment is implemented.

[0071] According to the electronic device of the embodiment of the present invention, by executing the Bluetooth service startup method of the above embodiment, the Linux system and the Bluetooth service can be started simultaneously through multiple cores of the multi-core processor, which greatly shortens the startup time of the Bluetooth service, so that the user can quickly use the Bluetooth service and improve the user experience.

[0072] A fourth aspect of the present invention provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed, implements the Bluetooth service startup method of the above embodiment.

[0073] In the description of this specification, any process or method description in a flowchart or otherwise described herein may be understood to represent a module, fragment or portion of code including one or more executable instructions for implementing the steps of a custom logical function or process, and the scope of the preferred embodiments of the present invention includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in reverse order depending on the functions involved, which should be understood by technicians in the technical field to which the embodiments of the present invention belong.

[0074] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute the instructions), or in combination with these instruction execution systems, devices or apparatuses. For the purpose of this specification, "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in combination with these instruction execution systems, devices or apparatuses. More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection with one or more wires (electronic device), a portable computer disk box (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), a fiber optic device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium and then editing, interpreting or processing in other suitable ways if necessary, and then stored in a computer memory.

[0075] It should be understood that the various parts of the present invention can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, a plurality of steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.

[0076] A person skilled in the art may understand that all or part of the steps in the method for implementing the above-mentioned embodiment may be completed by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, which, when executed, includes one or a combination of the steps of the method embodiment.

[0077] In addition, each functional unit in each embodiment of the present invention may be integrated into a processing module, or each unit may exist physically separately, or two or more units may be integrated into one module. The above-mentioned integrated module may be implemented in the form of hardware or in the form of a software functional module. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it may also be stored in a computer-readable storage medium.

[0078] The storage medium mentioned above may be a read-only memory, a magnetic disk or an optical disk, etc. Although the embodiments of the present invention have been shown and described above, it can be understood that the above embodiments are exemplary and cannot be understood as limiting the present invention. A person of ordinary skill in the art may change, modify, replace and modify the above embodiments within the scope of the present invention.

[0079] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "illustrative embodiments", "examples", "specific examples", or "some examples" means that the specific features, structures, materials, or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example.

[0080] Although the embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the claims and their equivalents.

Claims

1. A method for starting a Bluetooth service, characterized in that: A multi-core processor for an electronic device, wherein the electronic device is configured with a Linux system and a FreeRTOS system, and the Bluetooth service startup method comprises: In response to a Linux system startup instruction, controlling the startup of the Linux system through the first core; During the booting process of the Linux system, the Bluetooth service of the FreeRTOS system is started through the second core, and the Linux system is controlled to continue booting through the first core.

2. The method for starting a Bluetooth service according to claim 1, characterized in that: The electronic device further includes a static random access memory. During the booting process of the Linux system, a Bluetooth service of the freertos system is started through the second core, and the Linux system is controlled to continue to boot through the first core, including: After loading the romcode of the Linux system and loading bl2, the second core is controlled to start, the Bluetooth service of the freertos system is started from the static random access memory through the second core, and the Linux system is controlled to continue to start through the first core.

3. The method for starting a Bluetooth service according to claim 2, wherein: Starting the Bluetooth service of the FreeRTOS system from the static random access memory through the second core includes: The freertos system is loaded from the static random access memory through the second core, so as to initialize the Bluetooth driver of the freertos system, initialize the Bluetooth protocol stack of the freertos system, and initialize the Bluetooth service of the freertos system through the freertos system.

4. The method for starting a Bluetooth service according to claim 3, characterized in that: The Bluetooth service startup method also includes: Before the freertos system initializes the Bluetooth service of the freertos system, the audio driver is initialized by the freertos system.

5. The method for starting a Bluetooth service according to any one of claims 1 to 4, characterized in that: The Bluetooth service startup method also includes: Determine whether the Linux system has been started and whether the Bluetooth service of the FreeRTOS system is used; If the Linux system is started up or the Bluetooth service of the freertos system is not used, the freertos system is controlled to exit to release the use of the second core.

6. The method for starting a Bluetooth service according to claim 5, characterized in that: Controlling the Linux system to continue booting through the first core includes: The first core controls the Linux system to perform the following items in sequence: initializing the double rate synchronous dynamic random access memory, loading BL31 / BL32, loading the boot loader, loading the Linux system kernel, and starting the Bluetooth service of the Linux system.

7. The method for starting a Bluetooth service according to claim 6, characterized in that: The Bluetooth service startup method also includes: After the Bluetooth service of the Linux system is started and the FreeRTOS system releases the use of the second core, the Linux system obtains the Bluetooth service control authority to use the Bluetooth service.

8. A multi-core processor, characterized in that: Used for electronic equipment, the electronic equipment is configured with a Linux system and a FreeRTOS system, and the multi-core processor includes: A first core is configured to control the startup of the Linux system in response to a Linux system startup instruction; The second core starts the Bluetooth service of the freertos system during the startup of the Linux system, and the first core controls the Linux system to continue to start.

9. An electronic device, characterized in that: include: at least one processor; a memory communicatively coupled to at least one of the processors; The memory stores a computer program executable by at least one of the processors, and when at least one of the processors executes the computer program, the method for starting a Bluetooth service according to any one of claims 1 to 7 is implemented.

10. A computer storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the Bluetooth service startup method according to any one of claims 1 to 7 is implemented.