On-chip Bluetooth system, information interaction method, chip and electronic equipment
By designing Bluetooth clock and data interaction circuits in the Bluetooth system, clock synchronization and data interaction of the on-chip Bluetooth controller were achieved, solving the coordination problem between Bluetooth controllers and improving the system's working efficiency.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- ACTIONS ZHUHAI TECH CO
- Filing Date
- 2024-10-29
- Publication Date
- 2026-05-01
AI Technical Summary
In Bluetooth communication, when two or more Bluetooth controllers are integrated on-chip, the interaction and coordination issues are not effectively resolved, and problems arise in clock synchronization and data interaction.
Design an on-chip Bluetooth system, including a first Bluetooth controller, a second Bluetooth controller, and a Bluetooth clock interaction circuit. The Bluetooth clock interaction circuit enables clock synchronization, and the Bluetooth data interaction circuit and shared memory enable data interaction, allowing the two Bluetooth controllers to work collaboratively.
It improves the performance of the on-chip Bluetooth system, solves the interaction and coordination problems between Bluetooth controllers, and improves communication efficiency and synchronous collaborative work efficiency.
Smart Images

Figure CN121968055A_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of Bluetooth technology, and more specifically, to an on-chip Bluetooth system, an information interaction method, a chip, and an electronic device. Background Technology
[0002] In Bluetooth communication technologies, a single Bluetooth chip typically performs Bluetooth communication tasks. However, using dual Bluetooth chips can improve the system's data throughput and communication speed.
[0003] However, when two or more Bluetooth controllers are integrated into a single chip, the interaction and coordination between the Bluetooth controllers are often not well resolved, and problems often arise in clock synchronization and data exchange. Summary of the Invention
[0004] The purpose of this disclosure is to provide an on-chip Bluetooth system, information exchange method, chip, and electronic device. It can solve the problem of interaction and coordination between two on-chip Bluetooth controllers.
[0005] To achieve the above objectives, according to a first aspect of the present disclosure, an on-chip Bluetooth system is provided, the system comprising: a first Bluetooth controller, a second Bluetooth controller, and a Bluetooth clock interaction circuit;
[0006] The first Bluetooth controller and the second Bluetooth controller are connected through the Bluetooth clock interaction circuit, which is used for clock synchronization and interaction between the first Bluetooth controller and the second Bluetooth controller.
[0007] Optionally, the Bluetooth clock interaction circuit includes a first Bluetooth clock interaction circuit and a second Bluetooth clock interaction circuit. The first Bluetooth clock interaction circuit is used to latch the clock of the first Bluetooth controller and store the clock of the second Bluetooth controller in response to a first clock latch trigger signal of the first Bluetooth controller. The second Bluetooth clock interaction circuit is used to latch the clock of the second Bluetooth controller and store the clock of the first Bluetooth controller in response to a second clock latch trigger signal of the second Bluetooth controller.
[0008] The first Bluetooth clock interaction circuit includes: a first clock latch circuit and a second clock latch circuit that are interconnected.
[0009] The first clock latch circuit is connected to the first clock counter of the first Bluetooth controller and is used to latch the clock of the first Bluetooth controller and store the clock of the second Bluetooth controller.
[0010] The second clock latch circuit is connected to the second clock counter of the second Bluetooth controller and is used to latch the clock of the second Bluetooth controller and store the clock of the first Bluetooth controller.
[0011] The second Bluetooth clock interaction circuit includes: a third clock latch circuit and a fourth clock latch circuit that are interconnected;
[0012] The third clock latch circuit is connected to the first clock counter of the first Bluetooth controller and is used to latch the clock of the first Bluetooth controller and store the clock of the second Bluetooth controller.
[0013] The fourth clock latch circuit is connected to the second clock counter of the second Bluetooth controller and is used to latch the clock of the second Bluetooth controller and store the clock of the first Bluetooth controller.
[0014] Optionally, the first clock latch circuit includes: a first synchronizer, a first latch, and a second latch;
[0015] The input terminal of the first synchronizer is connected to the first Bluetooth controller and is used to generate a first clock latch signal in response to the first clock latch trigger signal of the first Bluetooth controller.
[0016] The first latch is connected to the output of the first synchronizer and the first clock counter, and is used to latch the value of the first clock counter in response to the first clock latch signal;
[0017] The second latch is connected to the second clock latch circuit and is used to store the clock of the second Bluetooth controller.
[0018] Optionally, the second clock latch circuit includes: a second synchronizer, a third latch, and a fourth latch;
[0019] The input of the second synchronizer is connected to the first Bluetooth controller and is used to generate a second clock latch signal in response to the first clock latch trigger signal of the first Bluetooth controller.
[0020] The third latch is connected to the output of the second synchronizer and the second clock counter, and is used to latch the value of the second clock counter in response to the second clock latch signal;
[0021] The fourth latch is connected to the first clock latch circuit and is used to store the clock of the first Bluetooth controller.
[0022] Optionally, the third clock latch circuit includes: a third synchronizer, a fifth latch, and a sixth latch;
[0023] The input of the third synchronizer is connected to the second Bluetooth controller and is used to generate a third clock latch signal in response to the second clock latch trigger signal of the second Bluetooth controller.
[0024] The fifth latch is connected to the output of the third synchronizer and the first clock counter, and is used to latch the value of the first clock counter in response to the third clock latch signal.
[0025] The sixth latch is connected to the fourth clock latch circuit and is used to store the clock of the second Bluetooth controller.
[0026] Optionally, the fourth clock latch circuit includes: a fourth synchronizer, a seventh latch, and an eighth latch;
[0027] The input terminal of the fourth synchronizer is connected to the second Bluetooth controller and is used to generate a fourth clock latch signal in response to the second clock latch trigger signal of the second Bluetooth controller.
[0028] The seventh latch is connected to the output of the fourth synchronizer and the second clock counter, and is used to latch the value of the second clock counter in response to the fourth clock latch signal;
[0029] The eighth latch is connected to the third clock latch circuit and is used to store the clock of the first Bluetooth controller.
[0030] Optionally, the system further includes: a Bluetooth data interaction circuit;
[0031] The Bluetooth data interaction circuit is connected to the first Bluetooth controller and the second Bluetooth controller respectively, and is used for data communication between the first Bluetooth controller and the second Bluetooth controller.
[0032] Optionally, the Bluetooth data interaction circuit includes: a first arbitrator and a second arbitrator;
[0033] The input of the first arbiter is connected to the first Bluetooth bus and the second Bluetooth bus, and the output of the first arbiter is connected to the first Bluetooth controller, used to arbitrate when data conflicts occur between the first Bluetooth bus and the second Bluetooth bus;
[0034] The input of the second arbitrator is connected to the first Bluetooth bus and the second Bluetooth bus, and the output of the second arbitrator is connected to the second Bluetooth controller, for arbitrating when data conflicts occur between the first Bluetooth bus and the second Bluetooth bus.
[0035] Optionally, the system further includes: shared memory, which is connected to the first Bluetooth controller and the second Bluetooth controller respectively, for information interaction between the first Bluetooth controller and the second Bluetooth controller.
[0036] Optionally, the first Bluetooth controller and the second Bluetooth controller can be interrupt sources for each other.
[0037] Optionally, the system further includes: a Bluetooth application processor;
[0038] The Bluetooth application processor is connected to the first Bluetooth controller and the second Bluetooth controller via shared memory, and is used for upper-layer application control of the first Bluetooth controller and the second Bluetooth controller.
[0039] According to a second aspect of the present disclosure, a method for information interaction between an on-chip Bluetooth device is provided, applied to the system described in any one of the first aspects, the method comprising:
[0040] The first Bluetooth controller and the second Bluetooth controller synchronize their clocks via a Bluetooth clock interaction circuit.
[0041] The first Bluetooth controller and the second Bluetooth controller interact and communicate via a Bluetooth data interaction circuit.
[0042] The first Bluetooth controller and the second Bluetooth controller also interact with each other via shared memory;
[0043] The first Bluetooth controller and the second Bluetooth controller are each other's interrupt sources when they are interacting and communicating.
[0044] According to a third aspect of the present disclosure, a chip is provided, the chip including any of the on-chip Bluetooth systems described in the first aspect.
[0045] According to a fourth aspect of the present disclosure, an electronic device is provided, including the chip described in the third aspect.
[0046] In summary, this disclosure provides an on-chip Bluetooth system, comprising: a first Bluetooth controller, a second Bluetooth controller, and a Bluetooth clock interaction circuit; the first Bluetooth controller and the second Bluetooth controller are connected via the Bluetooth clock interaction circuit, which is used for clock synchronization and interaction between the first Bluetooth controller and the second Bluetooth controller. The first Bluetooth controller and the second Bluetooth controller can also interact and communicate via a Bluetooth data interaction circuit or shared memory. During data interaction and communication, the first Bluetooth controller and the second Bluetooth controller act as interrupt sources for each other. Through the above measures and means, this disclosure can solve the interaction and coordination problem between the two on-chip Bluetooth controllers, improving the working efficiency of the on-chip Bluetooth system.
[0047] Other features and advantages of this disclosure will be described in detail in the following detailed description section. Attached Figure Description
[0048] The accompanying drawings are provided to further illustrate the present disclosure and form part of the specification. They are used together with the following detailed description to explain the present disclosure, but do not constitute a limitation thereof. In the drawings:
[0049] Figure 1 This is a schematic diagram illustrating an on-chip Bluetooth system according to an exemplary embodiment.
[0050] Figure 2 This is a schematic diagram of a Bluetooth clock interaction circuit according to an exemplary embodiment.
[0051] Figure 3a This is a schematic diagram of a first clock latch circuit and a second clock latch circuit according to an exemplary embodiment.
[0052] Figure 3b This is a schematic diagram illustrating a third clock latch circuit and a fourth clock latch circuit according to an exemplary embodiment.
[0053] Figure 4 This is a schematic diagram illustrating an on-chip Bluetooth system according to an exemplary embodiment.
[0054] Figure 5 This is a schematic diagram of a Bluetooth data interaction circuit according to an exemplary embodiment.
[0055] Figure 6 This is a schematic diagram illustrating an on-chip Bluetooth system according to an exemplary embodiment.
[0056] Figure 7 This is a schematic diagram illustrating an on-chip Bluetooth system according to an exemplary embodiment.
[0057] Figure 8 This is a schematic diagram illustrating an on-chip Bluetooth system according to an exemplary embodiment.
[0058] Figure 9 This is a block diagram illustrating a chip according to an exemplary embodiment.
[0059] Figure 10 This is a block diagram illustrating an electronic device according to an exemplary embodiment. Detailed Implementation
[0060] The specific embodiments of this disclosure will be described in detail below with reference to the accompanying drawings. It should be understood that the specific embodiments described herein are for illustration and explanation only and are not intended to limit this disclosure.
[0061] It should be understood that the term "comprising" and its variations as used herein are open-ended, meaning "including but not limited to". The term "based on" means "at least partially based on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". Definitions of other terms will be given in the following description.
[0062] It should be noted that the concepts of "first," "second," etc., mentioned in this disclosure are used only to distinguish different devices, modules, or units, and are not used to limit the order of functions performed by these devices, modules, or units or their interdependencies. The modifiers "a" and "a plurality of" mentioned in this disclosure are illustrative rather than restrictive, and those skilled in the art should understand that, unless explicitly stated in the context, they should be understood as "one or more." In the description of this disclosure, unless otherwise stated, "a plurality of" means two or more, and other quantifiers are similar; "at least one," "one or more," or similar expressions refer to any combination of these items, including any combination of single or multiple items.
[0063] Although operations or steps are described in a specific order in the accompanying drawings in the embodiments of this disclosure, it should not be construed as requiring these operations or steps to be performed in the specific order or serial order shown, or requiring all of the shown operations or steps to be performed to obtain the desired result. In the embodiments of this disclosure, these operations or steps may be performed serially; they may be performed in parallel; or a portion of these operations or steps may be performed.
[0064] The names of messages or information exchanged between multiple devices in the embodiments of this disclosure are for illustrative purposes only and are not intended to limit the scope of these messages or information. It is understood that before using the technical solutions disclosed in the embodiments of this disclosure, users should be informed of the types, scope of use, and usage scenarios of the personal information involved in this disclosure in an appropriate manner in accordance with relevant laws and regulations, and user authorization should be obtained.
[0065] First, the application scenarios of this disclosure are described. The applicant discovered that when two Bluetooth controllers are present in the chip, each Bluetooth controller has Bluetooth wireless transceiver functionality. In dual / multiple Bluetooth simultaneous transmission and reception scenarios, this offers advantages such as high real-time performance, high synchronous collaborative efficiency, and low power consumption. However, due to the close proximity of the two Bluetooth controllers, mutual interference can occur during operation. Therefore, necessary information exchange is required between the two Bluetooth controllers, and further frequency division or time division strategies are adopted to reduce mutual interference. Besides resolving interference issues, the two Bluetooth controllers may also collaborate to complete a unified task; therefore, communication circuitry is also needed between the Bluetooth controllers for necessary information exchange to achieve this collaborative task. Furthermore, due to chip size limitations, the maximum physical distance between the two Bluetooth controllers cannot exceed the diagonal distance of the chip. The following describes this disclosure in conjunction with specific embodiments.
[0066] Figure 1 This is a schematic diagram illustrating an on-chip Bluetooth system according to an exemplary embodiment. Figure 1 As shown, this disclosure provides an on-chip Bluetooth system, which may include: a first Bluetooth controller 10, a second Bluetooth controller 20, and a Bluetooth clock interaction circuit 30.
[0067] The first Bluetooth controller 10 and the second Bluetooth controller 20 are connected via a Bluetooth clock interaction circuit 30, which is used for clock synchronization and interaction between the two controllers. For example, the first Bluetooth controller 10 can latch the clock of the second Bluetooth controller 20 through the Bluetooth clock interaction circuit 30, and the second Bluetooth controller 20 can also latch the clock of the first Bluetooth controller 10 through the same circuit. This allows either the first Bluetooth controller 10 or the second Bluetooth controller 20 to obtain the deviation between the two clocks, and then synchronize them through a synchronization circuit. This enables the two Bluetooth controllers to work collaboratively, improving the efficiency of the entire on-chip Bluetooth system.
[0068] In summary, this disclosure provides an on-chip Bluetooth system, comprising: a first Bluetooth controller, a second Bluetooth controller, and a Bluetooth clock interaction circuit; the first Bluetooth controller and the second Bluetooth controller are connected via the Bluetooth clock interaction circuit, which is used for clock synchronization and interaction between the first Bluetooth controller and the second Bluetooth controller. This disclosure can solve the interaction and coordination problem between two on-chip Bluetooth controllers, improving the working efficiency of the on-chip Bluetooth system.
[0069] Figure 2 This is a schematic diagram illustrating a Bluetooth clock interaction circuit according to an exemplary embodiment. Figure 2 As shown, the Bluetooth clock interaction circuit 30 may include a first Bluetooth clock interaction circuit 30a and a second Bluetooth clock interaction circuit 30b. The first Bluetooth clock interaction circuit 30a is used to latch the clock of the first Bluetooth controller 10 and store the clock of the second Bluetooth controller 20 in response to a first clock latch trigger signal of the first Bluetooth controller 10. The second Bluetooth clock interaction circuit 30b is used to latch the clock of the second Bluetooth controller 20 and store the clock of the first Bluetooth controller 10 in response to a second clock latch trigger signal of the second Bluetooth controller 20.
[0070] The first Bluetooth clock interaction circuit 30a includes: a first clock latch circuit 301a and a second clock latch circuit 302a that are interconnected.
[0071] The first clock latch circuit 301a is connected to the first clock counter 101 of the first Bluetooth controller 10 and is used to latch the clock of the first Bluetooth controller 10 and store the clock of the second Bluetooth controller 20.
[0072] The second clock latch circuit 302a is connected to the second clock counter 201 of the second Bluetooth controller 20 and is used to latch the clock of the second Bluetooth controller 20 and store the clock of the first Bluetooth controller 10.
[0073] The second Bluetooth clock interaction circuit 30b includes: a third clock latch circuit 301b and a fourth clock latch circuit 302b that are interconnected.
[0074] The third clock latch circuit 301b is connected to the first clock counter 101 of the first Bluetooth controller 10 and is used to latch the clock of the first Bluetooth controller 10 and store the clock of the second Bluetooth controller 20.
[0075] The fourth clock latch circuit 302b is connected to the second clock counter 201 of the second Bluetooth controller 20 and is used to latch the clock of the second Bluetooth controller 20 and store the clock of the first Bluetooth controller 10.
[0076] In this way, two independent Bluetooth clock interaction circuits are designed in the hardware. The two Bluetooth controllers can initiate clock latch trigger signals at any time to synchronize the clock. The synchronization efficiency of the two independent circuits is higher. If a single clock interaction circuit is reused, only one controller can initiate a clock latch trigger signal at the same time, which requires waiting time and reduces efficiency.
[0077] In some embodiments, the first Bluetooth clock interaction circuit 30a and the second Bluetooth clock interaction circuit 30b may retain only one set of circuits, and the two Bluetooth controllers may reuse this set of circuits. This can save hardware resources, but the disadvantage is that it is not as efficient as having two independent sets of circuits. The chip design can make a choice based on the actual situation.
[0078] Figure 3a This is a schematic diagram illustrating a first clock latch circuit and a second clock latch circuit according to an exemplary embodiment. Figure 3a As shown, the first clock latch circuit 301a may include: a first synchronizer 3011a, a first latch 3012a, and a second latch 3013a.
[0079] The input terminal of the first synchronizer 3011a is connected to the first Bluetooth controller 10 and is used to generate a first clock latch signal in response to the first clock latch trigger signal of the first Bluetooth controller 10.
[0080] The first latch 3012a is connected to the output of the first synchronizer 3011a and the first clock counter 101, and is used to latch the value of the first clock counter 101 in response to the first clock latch signal.
[0081] The second latch 3013a is connected to the third latch 3022a of the second clock latch circuit 302a and is used to store the clock of the second Bluetooth controller 20.
[0082] The second clock latch circuit 302a may include: a second synchronizer 3021a, a third latch 3022a and a fourth latch 3023a.
[0083] The input of the second synchronizer 3021a is connected to the first Bluetooth controller 10 and is used to generate a second clock latch signal in response to the first clock latch trigger signal of the first Bluetooth controller 10.
[0084] The third latch 3022a is connected to the output of the second synchronizer 3021a and the second clock counter 201, and is used to latch the value of the second clock counter 201 in response to the second clock latch signal.
[0085] The fourth latch 3023a is connected to the first latch 3012a of the first clock latch circuit 301a and is used to store the clock of the first Bluetooth controller 10.
[0086] It should be noted that, in the presence of two independent Bluetooth clock interaction circuits 30a and 30b, the fourth latch 3023a can be omitted to save hardware resources.
[0087] Figure 3b This is a schematic diagram illustrating a third clock latch circuit and a fourth clock latch circuit according to an exemplary embodiment. Figure 3b As shown, the third clock latch circuit 301b includes: a third synchronizer 3011b, a fifth latch 3012b, and a sixth latch 3013b;
[0088] The input of the third synchronizer 3011b is connected to the second Bluetooth controller 20 and is used to generate a third clock latch signal in response to the second clock latch trigger signal of the second Bluetooth controller 20.
[0089] The fifth latch 3012b is connected to the output of the third synchronizer 3011b and the first clock counter 101, and is used to latch the value of the first clock counter 101 in response to the third clock latch signal.
[0090] The sixth latch 3013b is connected to the seventh latch 3022b of the fourth clock latch circuit 302b and is used to store the clock of the second Bluetooth controller 20.
[0091] The fourth clock latch circuit 302b includes: a fourth synchronizer 3021b, a seventh latch 3022b, and an eighth latch 3023b;
[0092] The input of the fourth synchronizer 3021b is connected to the second Bluetooth controller 20 and is used to generate a fourth clock latch signal in response to the second clock latch trigger signal of the second Bluetooth controller 20.
[0093] The seventh latch 3022b is connected to the output of the fourth synchronizer 3021b and the second clock counter 201, and is used to latch the value of the second clock counter 201 in response to the fourth clock latch signal.
[0094] The eighth latch 3023b is connected to the fifth latch 3012b of the third clock latch circuit 301b and is used to store the clock of the first Bluetooth controller 10.
[0095] It should be noted that, with two independent Bluetooth clock interaction circuits 30a and 30b, the eighth latch 3023b can be omitted to save hardware resources.
[0096] Figure 4 This is a schematic diagram illustrating an on-chip Bluetooth system according to an exemplary embodiment. Figure 4As shown, the on-chip Bluetooth system may also include: Bluetooth data interaction circuit 40.
[0097] The Bluetooth data interaction circuit 40 is connected to the first Bluetooth controller 10 and the second Bluetooth controller 20 respectively, and is used for data communication between the first Bluetooth controller 10 and the second Bluetooth controller 20. This enables data interaction between the two Bluetooth controllers, thereby improving communication efficiency.
[0098] Figure 5 This is a schematic diagram illustrating a Bluetooth data interaction circuit according to an exemplary embodiment. Figure 5 As shown, the Bluetooth data interaction circuit 40 may include: a first arbitrator 401 and a second arbitrator 402.
[0099] The input of the first arbitrator 401 is connected to the first Bluetooth bus and the second Bluetooth bus, and the output of the first arbitrator 401 is connected to the first Bluetooth controller 10. It is used to arbitrate when there is a data conflict between the first Bluetooth bus and the second Bluetooth bus.
[0100] The input of the second arbitrator 402 is connected to the first Bluetooth bus and the second Bluetooth bus, and the output of the second arbitrator 402 is connected to the second Bluetooth controller 20. It is used to arbitrate when there is a data conflict between the first Bluetooth bus and the second Bluetooth bus.
[0101] By connecting two Bluetooth data buses and two arbitrators to the two Bluetooth controllers respectively, data conflicts between the two Bluetooth controllers can be arbitrated, enabling unimpeded data communication between the two Bluetooth controllers and improving communication efficiency.
[0102] Figure 6 This is a schematic diagram illustrating an on-chip Bluetooth system according to an exemplary embodiment. Figure 6 As shown, the on-chip Bluetooth system may further include: shared memory 50, which is connected to the first Bluetooth controller 10 and the second Bluetooth controller 20 respectively, for information exchange between the first Bluetooth controller 10 and the second Bluetooth controller 20. Through the shared memory 50, the first Bluetooth controller 10 and the second Bluetooth controller 20 can also exchange information, such as reading or writing some global variables. This can further improve the efficiency of Bluetooth communication.
[0103] Figure 7 This is a schematic diagram illustrating an on-chip Bluetooth system according to an exemplary embodiment. Figure 7As shown, the first Bluetooth controller 10 and the second Bluetooth controller 20 are interrupt sources for each other. In the figure, interrupt 1 is an interrupt signal sent from the first Bluetooth controller 10 to the second Bluetooth controller 20, and interrupt 2 is an interrupt signal sent from the second Bluetooth controller 20 to the first Bluetooth controller 10. Communication between the two Bluetooth controllers can be achieved through interrupts. This ensures the quality and efficiency of communication between the Bluetooth controllers.
[0104] Figure 8 This is a schematic diagram illustrating an on-chip Bluetooth system according to an exemplary embodiment. Figure 8 As shown, the on-chip Bluetooth system may also include: a Bluetooth application processor 60.
[0105] The Bluetooth application processor 60 is connected to the first Bluetooth controller 10 and the second Bluetooth controller 20 via shared memory 50, and is used for upper-layer application control of the first Bluetooth controller 10 and the second Bluetooth controller 20.
[0106] In summary, this disclosure provides an on-chip Bluetooth system, comprising: a first Bluetooth controller, a second Bluetooth controller, and a Bluetooth clock interaction circuit; the first Bluetooth controller and the second Bluetooth controller are connected via the Bluetooth clock interaction circuit, which is used for clock synchronization and interaction between the first Bluetooth controller and the second Bluetooth controller. The first Bluetooth controller and the second Bluetooth controller can also interact and communicate via a Bluetooth data interaction circuit or shared memory. During data interaction and communication, the first Bluetooth controller and the second Bluetooth controller act as interrupt sources for each other. Through the above measures and means, this disclosure can solve the interaction and coordination problem between the two on-chip Bluetooth controllers, improving the working efficiency of the on-chip Bluetooth system.
[0107] In some embodiments, this disclosure also provides an information interaction method for an on-chip Bluetooth device, applied to any of the systems described in the above embodiments, the method comprising:
[0108] In step S110, the first Bluetooth controller 10 and the second Bluetooth controller 20 synchronize their clocks through the Bluetooth clock interaction circuit 30.
[0109] In step S120, the first Bluetooth controller 10 and the second Bluetooth controller 20 perform data interaction and communication through the Bluetooth data interaction circuit 40.
[0110] In step S130, the first Bluetooth controller 10 and the second Bluetooth controller 20 also interact with each other through the shared memory 50.
[0111] In step S140, the first Bluetooth controller 10 and the second Bluetooth controller 20 are each other's interrupt sources when performing data interaction and communication.
[0112] In summary, this disclosure provides an information interaction method for an on-chip Bluetooth device, applicable to any of the systems described in the above embodiments. The method includes: a first Bluetooth controller and a second Bluetooth controller synchronizing their clocks via a Bluetooth clock interaction circuit; the first Bluetooth controller and the second Bluetooth controller interacting and communicating via a Bluetooth data interaction circuit; the first Bluetooth controller and the second Bluetooth controller also interacting via shared memory; and the first Bluetooth controller and the second Bluetooth controller acting as interrupt sources for each other during data interaction and communication. Through these measures and means, this disclosure can solve the interaction and coordination problem between two on-chip Bluetooth controllers, improving the working efficiency of the on-chip Bluetooth system.
[0113] Figure 9 This is a block diagram illustrating a chip according to an exemplary embodiment. Figure 9 As shown, this disclosure provides a chip 900, which may include any of the on-chip Bluetooth systems described in the above embodiments.
[0114] Figure 10 This is a block diagram illustrating an electronic device according to an exemplary embodiment. The electronic device 1000 may include a chip 900 (not shown in the figure). Figure 10 As shown, the electronic device 1000 may include: a processor 1001 and a memory 1002. The electronic device 1000 may also include one or more of a multimedia component 1003, an input / output (I / O) interface 1004, and a communication component 1005.
[0115] The processor 1001 controls the overall operation of the electronic device 1000. The memory 1002 stores various types of data to support the operation of the electronic device 1000. This data may include, for example, instructions for any application or method operating on the electronic device 1000, and application-related data such as contact data, sent and received messages, pictures, audio, video, etc. The memory 1002 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as Static Random Access Memory (SRAM), Electrically Erasable Programmable Read-Only Memory (EEPROM), Erasable Programmable Read-Only Memory (EPROM), Programmable Read-Only Memory (PROM), Read-Only Memory (ROM), magnetic storage, flash memory, magnetic disk, or optical disk. The multimedia component 1003 may include a screen and audio components. The screen may be, for example, a touchscreen, and the audio component is used to output and / or input audio signals. For example, the audio component may include a microphone for receiving external audio signals. The received audio signals may be further stored in memory 1002 or transmitted via communication component 1005. The audio component also includes at least one speaker for outputting audio signals. I / O interface 1004 provides an interface between processor 1001 and other interface modules, such as a keyboard, mouse, buttons, etc. These buttons may be virtual or physical buttons. Communication component 1005 is used for wired or wireless communication between the electronic device 1000 and other devices. Wireless communication, such as Wi-Fi, Bluetooth, Near Field Communication (NFC), 2G, 3G, 4G, NB-IoT, eMTC, or other 5G technologies, or combinations thereof, is not limited here. Therefore, the corresponding communication component 1005 may include: a Wi-Fi module, a Bluetooth module, an NFC module, etc.
[0116] In an exemplary embodiment, the electronic device 1000 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field-programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components.
[0117] In another exemplary embodiment, a computer-readable storage medium including program instructions is also provided. For example, the computer-readable storage medium may be the memory 1002 including program instructions described above, which may be executed by the processor 1001 of the electronic device 1000.
[0118] In another exemplary embodiment, a computer program product is also provided, the computer program product comprising a computer program executable by a programmable device.
[0119] The preferred embodiments of this disclosure have been described in detail above with reference to the accompanying drawings. However, this disclosure is not limited to the specific details of the above embodiments. Within the scope of the technical concept of this disclosure, various simple modifications can be made to the technical solutions of this disclosure, and these simple modifications all fall within the protection scope of this disclosure.
[0120] It should also be noted that the various specific technical features described in the above specific embodiments can be combined in any suitable manner without contradiction. In order to avoid unnecessary repetition, this disclosure will not describe the various possible combinations separately.
[0121] Furthermore, various different embodiments of this disclosure can be combined in any way, as long as they do not violate the spirit of this disclosure, they should also be regarded as the content disclosed in this disclosure.
Claims
1. An on-chip Bluetooth system, characterized in that, The system includes: a first Bluetooth controller, a second Bluetooth controller, and a Bluetooth clock interaction circuit; The first Bluetooth controller and the second Bluetooth controller are connected through the Bluetooth clock interaction circuit, which is used for clock synchronization and interaction between the first Bluetooth controller and the second Bluetooth controller.
2. The system according to claim 1, characterized in that, The Bluetooth clock interaction circuit includes a first Bluetooth clock interaction circuit and a second Bluetooth clock interaction circuit. The first Bluetooth clock interaction circuit is used to latch the clock of the first Bluetooth controller and store the clock of the second Bluetooth controller in response to a first clock latch trigger signal of the first Bluetooth controller. The second Bluetooth clock interaction circuit is used to latch the clock of the second Bluetooth controller and store the clock of the first Bluetooth controller in response to a second clock latch trigger signal of the second Bluetooth controller. The first Bluetooth clock interaction circuit includes: a first clock latch circuit and a second clock latch circuit that are interconnected. The first clock latch circuit is connected to the first clock counter of the first Bluetooth controller and is used to latch the clock of the first Bluetooth controller and store the clock of the second Bluetooth controller. The second clock latch circuit is connected to the second clock counter of the second Bluetooth controller and is used to latch the clock of the second Bluetooth controller and store the clock of the first Bluetooth controller. The second Bluetooth clock interaction circuit includes: a third clock latch circuit and a fourth clock latch circuit that are interconnected; The third clock latch circuit is connected to the first clock counter of the first Bluetooth controller and is used to latch the clock of the first Bluetooth controller and store the clock of the second Bluetooth controller. The fourth clock latch circuit is connected to the second clock counter of the second Bluetooth controller and is used to latch the clock of the second Bluetooth controller and store the clock of the first Bluetooth controller.
3. The system according to claim 2, characterized in that, The first clock latch circuit includes: a first synchronizer, a first latch, and a second latch; The input terminal of the first synchronizer is connected to the first Bluetooth controller and is used to generate a first clock latch signal in response to the first clock latch trigger signal of the first Bluetooth controller. The first latch is connected to the output of the first synchronizer and the first clock counter, and is used to latch the value of the first clock counter in response to the first clock latch signal; The second latch is connected to the second clock latch circuit and is used to store the clock of the second Bluetooth controller.
4. The system according to claim 2, characterized in that, The second clock latch circuit includes: a second synchronizer, a third latch, and a fourth latch; The input of the second synchronizer is connected to the first Bluetooth controller and is used to generate a second clock latch signal in response to the first clock latch trigger signal of the first Bluetooth controller. The third latch is connected to the output of the second synchronizer and the second clock counter, and is used to latch the value of the second clock counter in response to the second clock latch signal; The fourth latch is connected to the first clock latch circuit and is used to store the clock of the first Bluetooth controller.
5. The system according to claim 2, characterized in that, The third clock latch circuit includes: a third synchronizer, a fifth latch, and a sixth latch; The input of the third synchronizer is connected to the second Bluetooth controller and is used to generate a third clock latch signal in response to the second clock latch trigger signal of the second Bluetooth controller. The fifth latch is connected to the output of the third synchronizer and the first clock counter, and is used to latch the value of the first clock counter in response to the third clock latch signal. The sixth latch is connected to the fourth clock latch circuit and is used to store the clock of the second Bluetooth controller.
6. The system according to claim 2, characterized in that, The fourth clock latch circuit includes: a fourth synchronizer, a seventh latch, and an eighth latch; The input terminal of the fourth synchronizer is connected to the second Bluetooth controller and is used to generate a fourth clock latch signal in response to the second clock latch trigger signal of the second Bluetooth controller. The seventh latch is connected to the output of the fourth synchronizer and the second clock counter, and is used to latch the value of the second clock counter in response to the fourth clock latch signal; The eighth latch is connected to the third clock latch circuit and is used to store the clock of the first Bluetooth controller.
7. The system according to claim 1, characterized in that, The system also includes: a Bluetooth data interaction circuit; The Bluetooth data interaction circuit is connected to the first Bluetooth controller and the second Bluetooth controller respectively, and is used for data communication between the first Bluetooth controller and the second Bluetooth controller.
8. The system according to claim 7, characterized in that, The Bluetooth data interaction circuit includes: a first arbitrator and a second arbitrator; The input of the first arbiter is connected to the first Bluetooth bus and the second Bluetooth bus, and the output of the first arbiter is connected to the first Bluetooth controller, used to arbitrate when data conflicts occur between the first Bluetooth bus and the second Bluetooth bus; The input of the second arbitrator is connected to the first Bluetooth bus and the second Bluetooth bus, and the output of the second arbitrator is connected to the second Bluetooth controller, for arbitrating when data conflicts occur between the first Bluetooth bus and the second Bluetooth bus.
9. The system according to claim 1, characterized in that, The system further includes a shared memory, which is connected to the first Bluetooth controller and the second Bluetooth controller respectively, and is used for information interaction between the first Bluetooth controller and the second Bluetooth controller.
10. The system according to any one of claims 1-9, characterized in that, The first Bluetooth controller and the second Bluetooth controller are each other's interrupt sources.
11. The system according to any one of claims 1-9, characterized in that, The system also includes: a Bluetooth application processor; The Bluetooth application processor is connected to the first Bluetooth controller and the second Bluetooth controller via shared memory, and is used for upper-layer application control of the first Bluetooth controller and the second Bluetooth controller.
12. A method for information interaction in an on-chip Bluetooth device, characterized in that, The method, applied to the system of any one of claims 1-11, comprises: The first Bluetooth controller and the second Bluetooth controller synchronize their clocks via a Bluetooth clock interaction circuit. The first Bluetooth controller and the second Bluetooth controller interact and communicate via a Bluetooth data interaction circuit. The first Bluetooth controller and the second Bluetooth controller also interact with each other via shared memory; The first Bluetooth controller and the second Bluetooth controller are each other's interrupt sources when they are interacting and communicating.
13. A chip, characterized in that, The chip includes the on-chip Bluetooth system according to any one of claims 1-11.
14. An electronic device, characterized in that, Includes the chip described in claim 13.