A BLUETOOTH communication method includes, when obtaining a BLUETOOTH communication request corresponding to a second terminal device, a first terminal device determine, based on the BLUETOOTH communication request and connection information of an existing BLUETOOTH connection in the first terminal device, a BLUETOOTH operating mode currently corresponding to the first terminal device, to adjust an operating parameter of BLUETOOTH based on the BLUETOOTH operating mode. Further, the first terminal device adjusts current occupation on a BLUETOOTH air interface by the existing BLUETOOTH connection in the first terminal device, to reduce a BLUETOOTH air interface resource conflict in a plurality of BLUETOOTH connections.
Legal claims defining the scope of protection, as filed with the USPTO.
. A method implemented by a first terminal device, wherein the method comprises:
. The method of, further comprising:
. The method of, wherein after performing matching between the first device identifier and the second device identifier, the method further comprises:
. The method of, further comprising:
. The method of, wherein after determining that the BLUETOOTH operating mode comprises the connection first mode and the transmission first mode, the method further comprises:
. The method of, further comprising:
. The method of, further comprising adjusting the operating parameter based on a preset operating parameter corresponding to the BLUETOOTH operating mode, wherein the preset operating parameter is at least one of:
. A first terminal device comprising:
. The first terminal device of, wherein the processor is further configured to execute the instructions to cause the first terminal device to:
. The first terminal device of, wherein the processor is further configured to execute the instructions to cause the first terminal device to:
. The first terminal device of, wherein the processor is further configured to execute the instructions to cause the first terminal device to:
. The first terminal device of, wherein the processor is further configured to execute the instructions to cause the first terminal device to:
. The first terminal device of, wherein the processor is further configured to execute the instructions to cause the first terminal device to:
. The first terminal device of, wherein the processor is further configured to execute the instructions to cause the first terminal device to further adjust the operating parameter based on a preset operating parameter corresponding to the BLUETOOTH operating mode, wherein the preset operating parameter is at least one of:
. A computer program product comprising computer-executable instructions that are stored on a non-transitory readable medium and that, when executed by a processor, cause a first terminal device to:
. The computer program product of, wherein the computer-executable instructions further cause the first terminal device to:
. The computer program product of, wherein the computer-executable instructions further cause the first terminal device to:
. The computer program product of, wherein the computer-executable instructions further cause the first terminal device to:
. The computer program product of, wherein the computer-executable instructions further cause the first terminal device to:
. The computer program product of, wherein the computer-executable instructions further cause the first terminal device to:
Complete technical specification and implementation details from the patent document.
This is a continuation of International Patent Application No. PCT/CN2021/109298 filed on Jul. 29, 2021, which claims priority to Chinese Patent Application No. 202010822689.1 filed on Aug. 13, 2020. The disclosures of the aforementioned applications are hereby incorporated by reference in their entireties.
This disclosure belongs to the field of communication technologies, and in particular, to a BLUETOOTH communication method, a terminal device, and a computer-readable storage medium.
BLUETOOTH of a terminal device usually supports a plurality of connections, that is, a same terminal device may communicate with a plurality of other terminal devices through BLUETOOTH. In the plurality of connections, because BLUETOOTH channels corresponding to all BLUETOOTH connections share a BLUETOOTH air interface, when the terminal device processes a BLUETOOTH communication request, the BLUETOOTH air interface may be occupied by another BLUETOOTH connection. Consequently, processing of the BLUETOOTH communication request fails or processing duration is excessively long, which affects user experience.
Embodiments of this disclosure provide a BLUETOOTH communication method, a terminal device, and a computer-readable storage medium, to resolve the following problem. In a plurality of connections, when a terminal device processes a BLUETOOTH communication request, a BLUETOOTH air interface may have been occupied by another BLUETOOTH connection, consequently, processing of a BLUETOOTH communication request fails or processing duration is excessively long, which affects user experience.
According to a first aspect, an embodiment of this disclosure provides a BLUETOOTH communication method, applied to a first terminal device. The method may include obtaining connection information of an existing BLUETOOTH connection in the first terminal device when obtaining a BLUETOOTH communication request corresponding to a second terminal device, determining, based on the BLUETOOTH communication request and the connection information of the existing BLUETOOTH connection, a BLUETOOTH operating mode corresponding to the first terminal device, and adjusting an operating parameter of BLUETOOTH in the first terminal device based on the BLUETOOTH operating mode, and communicating with the second terminal device through the BLUETOOTH whose operating parameter is adjusted.
According to the BLUETOOTH communication method, when obtaining the BLUETOOTH communication request corresponding to the second terminal device, the first terminal device may obtain the connection information of the existing BLUETOOTH connection in the first terminal device, and may determine, based on the BLUETOOTH communication request and the connection information of the existing BLUETOOTH connection, the BLUETOOTH operating mode currently corresponding to the first terminal device. Then, the first terminal device may adjust the operating parameter of the BLUETOOTH based on the BLUETOOTH operating mode, and communicate with the second terminal device through the BLUETOOTH whose operating parameter is adjusted, to adjust the operating parameter of the BLUETOOTH based on the BLUETOOTH communication request and the existing BLUETOOTH connection. Further, the first terminal device adjusts current occupation on a BLUETOOTH air interface by the existing BLUETOOTH connection, to reduce a BLUETOOTH air interface resource conflict in a plurality of BLUETOOTH connections. In this way, sufficient and stable BLUETOOTH air interface resources may be provided for the first terminal device to process a newly obtained BLUETOOTH communication request. This ensures that the BLUETOOTH communication request is processed in a timely and effective manner, improves efficiency and a success rate of processing the BLUETOOTH communication request, meets an actual communication requirement of a user, and improves user experience, so that usability and practicability are high.
In a possible implementation of the first aspect, the BLUETOOTH communication request carries a data transmission identifier and a first device identifier corresponding to the second terminal device. The connection information of the existing BLUETOOTH connection includes a second device identifier corresponding to a terminal device connected through the existing BLUETOOTH connection.
Determining, based on the BLUETOOTH communication request and the connection information of the existing BLUETOOTH connection, a BLUETOOTH operating mode corresponding to the first terminal device may include performing matching between the first device identifier in the BLUETOOTH communication request and the second device identifier in the connection information, and when a second device identifier matching the first device identifier does not exist, determining, based on the data transmission identifier in the BLUETOOTH communication request, the BLUETOOTH operating mode corresponding to the first terminal device.
Optionally, determining, based on the data transmission identifier in the BLUETOOTH communication request, the BLUETOOTH operating mode corresponding to the first terminal device may include, when the data transmission identifier is a first preset identifier, determining that the BLUETOOTH operating mode corresponding to the first terminal device is a connection first mode, or when the data transmission identifier is a second preset identifier, determining that the BLUETOOTH operating mode corresponding to the first terminal device is a connection first mode and a transmission first mode.
An amount of transmitted data corresponding to the first preset identifier is less than an amount of transmitted data corresponding to the second preset identifier.
It should be noted that the first preset identifier is used to indicate that a small amount of data of less than or equal to 32 kilobytes (kB) is transmitted, and the second preset identifier is used to indicate a large amount of data of greater than 32 kB is transmitted.
Optionally, after performing matching between the first device identifier in the BLUETOOTH communication request and the second device identifier in the connection information, the method may further include, when the second device identifier matching the first device identifier exists, obtaining a BLUETOOTH type of an existing BLUETOOTH connection between the first terminal device and the second terminal device, and determining, based on the BLUETOOTH type and the data transmission identifier in the BLUETOOTH communication request, the BLUETOOTH operating mode corresponding to the first terminal device.
In this embodiment of this disclosure, whether the second terminal device establishes a BLUETOOTH connection to the first terminal device may be determined based on the first device identifier corresponding to the second terminal device and the second device identifier corresponding to the terminal device connected through the existing BLUETOOTH connection in the first terminal device. When the second terminal device does not establish a BLUETOOTH connection to the first terminal device, it may be determined that the second terminal device is a new device communicating with the first terminal device. In this case, the first terminal device may directly determine, based on the data transmission identifier in the BLUETOOTH communication request, the BLUETOOTH operating mode corresponding to the first terminal device. When the second terminal device establishes a BLUETOOTH connection to the first terminal device, the first terminal device may determine, based on the BLUETOOTH type of the BLUETOOTH connection established between the second terminal device and the first terminal device and the data transmission identifier in the BLUETOOTH communication request, the BLUETOOTH operating mode corresponding to the first terminal device.
Further, determining, based on the BLUETOOTH type and the data transmission identifier in the BLUETOOTH communication request, the BLUETOOTH operating mode corresponding to the first terminal device may include, when the BLUETOOTH type is BLUETOOTH Low Energy (BLE), and the data transmission identifier in the BLUETOOTH communication request is the second preset identifier, determining that the BLUETOOTH operating mode corresponding to the first terminal device is a connection first mode and a transmission first mode, or when the BLUETOOTH type is classic BLUETOOTH, and the data transmission identifier in the BLUETOOTH communication request is the second preset identifier, determining that the BLUETOOTH operating mode corresponding to the first terminal device is a transmission first mode.
For example, after the determining that the BLUETOOTH operating mode corresponding to the first terminal device is a connection first mode and a transmission first mode, the adjusting an operating parameter of BLUETOOTH in the first terminal device based on the BLUETOOTH operating mode, and communicating with the second terminal device through the BLUETOOTH whose operating parameter is adjusted may include adjusting the operating parameter of the BLUETOOTH in the first terminal device based on the connection first mode, and establishing a classic BLUETOOTH connection between the first terminal device and the second terminal device through the BLUETOOTH whose operating parameter is adjusted, and after determining that the classic BLUETOOTH connection between the first terminal device and the second terminal device is established, adjusting the operating parameter of the BLUETOOTH in the first terminal device based on the transmission first mode, and performing data transmission between the first terminal device and the second terminal device through the established classic BLUETOOTH connection.
In this embodiment of this disclosure, when the BLUETOOTH connection established between the second terminal device and the first terminal device is BLE, it indicates that only a small amount of data can be transmitted through the BLUETOOTH connection established between the second terminal device and the first terminal device. In this case, if the data transmission identifier in the BLUETOOTH communication request is the second preset identifier that needs to transmit a large amount of data, it indicates that the BLUETOOTH connection established between the second terminal device and the first terminal device cannot meet the BLUETOOTH communication request. Therefore, the first terminal device may determine that the BLUETOOTH operating mode corresponding to the first terminal device is the connection first mode and the transmission first mode. In the connection first mode, a basic rate (BR)/enhanced data rate (EDR) connection through which a large amount of data can be transmitted is established between the second terminal device and the first terminal device. Then, a large amount of data can be transmitted between the first terminal device and the second terminal device through the established BR/EDR connection. When the BLUETOOTH connection established between the second terminal device and the first terminal device is BR/EDR, it indicates that a large amount of data can be transmitted through the BLUETOOTH connection established between the second terminal device and the first terminal device. In this case, if the data transmission identifier in the BLUETOOTH communication request is the second preset identifier that needs to transmit a large amount of data, it indicates that the BLUETOOTH connection established between the second terminal device and the first terminal device can meet the BLUETOOTH communication request. Therefore, the first terminal device may determine that the BLUETOOTH operating mode corresponding to the first terminal device is the transmission first mode. In the transmission first mode, a large amount of data can be directly transmitted through an existing BR/EDR connection between the first terminal device and the second terminal device.
In a possible implementation of the first aspect, when BLUETOOTH communication requests corresponding to a plurality of second terminal devices are obtained, determining, based on the BLUETOOTH communication request and the connection information of the existing BLUETOOTH connection, a BLUETOOTH operating mode corresponding to the first terminal device may include determining, based on each BLUETOOTH communication request and the connection information of the existing BLUETOOTH connection, the BLUETOOTH operating mode corresponding to the first terminal device, and adjusting an operating parameter of BLUETOOTH in the first terminal device based on the BLUETOOTH operating mode, and communicating with the second terminal device through the BLUETOOTH whose operating parameter is adjusted includes, when all BLUETOOTH operating modes are a same BLUETOOTH operating mode, adjusting the operating parameter of the BLUETOOTH in the first terminal device based on the BLUETOOTH operating mode, and communicating with each second terminal device through the BLUETOOTH whose operating parameter is adjusted, or when all BLUETOOTH operating modes include the connection first mode and the transmission first mode, adjusting the operating parameter of the BLUETOOTH in the first terminal device based on the connection first mode, and establishing, through the BLUETOOTH whose operating parameter is adjusted, BLUETOOTH connections between the first terminal device and all of the second terminal devices that request to establish a BLUETOOTH connection, and after determining that the BLUETOOTH connections between the first terminal device and all of the second terminal devices that request to establish a BLUETOOTH connection are established, adjusting the operating parameter of the BLUETOOTH in the first terminal device based on the transmission first mode, and performing data transmission through the BLUETOOTH whose operating parameter is adjusted.
It should be noted that, when the first terminal device receives the BLUETOOTH communication requests corresponding to the plurality of second terminal devices at the same time, the first terminal device may determine, based on the connection information of the existing BLUETOOTH connection in the first terminal device and the BLUETOOTH communication request corresponding to each second terminal device, the BLUETOOTH operating mode corresponding to the first terminal device. When all BLUETOOTH operating modes determined based on each BLUETOOTH communication request are a same BLUETOOTH operating mode, the first terminal device may directly adjust the operating parameter of the BLUETOOTH in the first terminal device based on the BLUETOOTH operating mode, to process the BLUETOOTH communication request corresponding to each second terminal device. When all BLUETOOTH operating modes determined based on the BLUETOOTH communication request are different, the first terminal device may switch, based on determined priorities of all BLUETOOTH operating modes, the BLUETOOTH operating mode corresponding to the first terminal device. That is, the operating parameter of the BLUETOOTH in the first terminal device may be adjusted sequentially based on the priorities and all BLUETOOTH operating modes corresponding to the priorities.
In this embodiment of this disclosure, when the first terminal device does not obtain the BLUETOOTH communication request within preset duration, and the first terminal device currently has no BLUETOOTH channel on which data transmission is being performed, the first terminal device may determine that the BLUETOOTH operating mode corresponding to the first terminal device is a normal mode. In this case, the first terminal device may switch the BLUETOOTH operating mode corresponding to the first terminal device to the normal mode, that is, adjust the operating parameter of the BLUETOOTH in the first terminal device based on an operating parameter corresponding to the normal mode. The normal mode is an operating mode in which the BLUETOOTH in the first terminal device always camps.
It should be understood that adjusting an operating parameter of BLUETOOTH in the first terminal device based on the BLUETOOTH operating mode may include adjusting the operating parameter of the BLUETOOTH in the first terminal device based on a preset operating parameter corresponding to the BLUETOOTH operating mode. The preset operating parameter is at least one of a connection interval of a BLE connection, a connection timeout period of the BLE connection, a broadcast interval of a BLE broadcast, a scanning window ratio of BLE scanning, and a transmission status of classic BLUETOOTH.
According to a second aspect, an embodiment of this disclosure provides a BLUETOOTH communication apparatus, used in a first terminal device. The apparatus may include a status awareness module configured to obtain connection information of an existing BLUETOOTH connection in the first terminal device when a BLUETOOTH communication request corresponding to a second terminal device is obtained, a decision module configured to determine, based on the BLUETOOTH communication request and the connection information of the existing BLUETOOTH connection, a BLUETOOTH operating mode corresponding to the first terminal device, a channel management module configured to adjust an operating parameter of BLUETOOTH in the first terminal device based on the BLUETOOTH operating mode, and a BLUETOOTH module configured to communicate with the second terminal device through the BLUETOOTH whose operating parameter is adjusted.
According to a third aspect, an embodiment of this disclosure provides a terminal device, including a memory, a processor, and a computer program that is stored in the memory and can be run on the processor. When the processor executes the computer program, the terminal device is enabled to implement the BLUETOOTH communication method according to any one of the implementations of the first aspect.
According to a fourth aspect, an embodiment of this disclosure provides a computer-readable storage medium. The computer-readable storage medium stores a computer program. When the computer program is executed by a computer, the computer is enabled to implement the BLUETOOTH communication method according to any one of the implementations of the first aspect.
According to a fifth aspect, an embodiment of this disclosure provides a computer program product. When the computer program product is run on a terminal device, the terminal device is enabled to perform the BLUETOOTH communication method according to any one of the implementations of the first aspect.
It should be understood that, for beneficial effects of the second aspect to the fifth aspect, refer to related descriptions in the first aspect. Details are not described herein again.
It should be understood that, when used in the specification and the appended claims of this disclosure, the term “include” indicates presence of the described features, entireties, steps, operations, elements, and/or components, but does not exclude presence or addition of one or more other features, entireties, steps, operations, elements, components, and/or sets thereof.
It should also be understood that the term “and/or” used in the specification and the appended claims of this disclosure refers to any combination and all possible combinations of one or more associated listed items, and includes these combinations.
As used in the specification and the appended claims of this disclosure, according to the context, the term “if” may be interpreted as “when” or “once” or “in response to determining” or “in response to detecting”. Likewise, the phrase “if it is determined that” or “if (a described condition or event) is detected” may be interpreted as a meaning of “once it is determined that” or “in response to determining” or “once (a described condition or event) is detected” or “in response to detecting (a described condition or event)” depending on the context.
In addition, in the descriptions of the specification and claims of this disclosure, the terms “first”, “second”, “third”, and the like are merely intended for a purpose of differentiated description, but shall not be understood as an indication or an implication of relative importance.
Reference to “an embodiment”, “some embodiments”, or the like described in the specification of this disclosure indicates that one or more embodiments of this disclosure include a specific feature, structure, or characteristic described with reference to the embodiments. Therefore, statements such as “in an embodiment”, “in some embodiments”, “in some other embodiments”, and “in other embodiments” that appear at different places in this specification do not necessarily mean reference to a same embodiment, instead, they mean “one or more but not all of embodiments”, unless otherwise emphasized. The terms “include”, “comprise”, “have”, and their variants all mean “include but are not limited to”, unless otherwise emphasized.
BLUETOOTH (BT) is a wireless communication technology widely used in the world, runs on an open frequency band of 2.4 gigahertz (GHz) to 2.485 GHz, and is widely used in short-range wireless transmission of 1 meter to 10 meters. The BT may include classic BLUETOOTH and BLE. The classic BLUETOOTH may be BR BLUETOOTH, or may be EDR BLUETOOTH. The BR/EDR has a high transmission rate, and is applicable to a scenario in which a data amount is large. For example, the BR/EDR is applicable to scenarios such as voice and music in which a large amount of data is transmitted. The BLE has advantages such as low power consumption and fast connection, but has a lower transmission rate than the BR/EDR. Therefore, the BLE is applicable to a scenario that has a high real-time requirement but a low data transmission rate. For example, the BLE is applicable to scenarios such as a mouse device, a keyboard, and a heart rate meter in which a small amount of data is transmitted.
BLUETOOTH of a terminal device usually supports a plurality of connections. That is, a same terminal device may perform BLUETOOTH communication (for example, BLUETOOTH connection and data transmission) with a plurality of other terminal devices through the BLUETOOTH. In the plurality of connections, BLUETOOTH channels corresponding to each BLUETOOTH connection shares a BLUETOOTH air interface. That is, the BLUETOOTH channels need to share a same BLUETOOTH air interface for data transmission, and the like. Therefore, when the terminal device obtains a new BLUETOOTH communication request, if a BLUETOOTH connection already exists in the terminal device, the BLUETOOTH air interface may have been occupied through the existing BLUETOOTH connection. In this case, when the terminal device performs BLUETOOTH connection and transmission based on the new BLUETOOTH communication request, there may be a BLUETOOTH air interface resource occupation conflict with the existing BLUETOOTH connection. Consequently, processing of the BLUETOOTH communication request may fail or processing duration is excessively long, which affects user experience.
In addition, with rapid development of terminal technologies and BLUETOOTH technologies, a terminal device like a mobile phone or a tablet with rich hardware resources may be integrated with a dual-mode BLUETOOTH chip that can support both the BLE and the BR/EDR. The BLE is usually used for discovery, connection, and networking between devices due to low power consumption and fast connection. The BR/EDR is usually used for data transmission between devices due to a high transmission rate. However, at a chip layer, the BLE and the BR/EDR also share a BLUETOOTH air interface. That is, the BLE channel and the BR/EDR channel also need to share a same BLUETOOTH air interface to transmit data. Therefore, when the terminal device obtains a new BLUETOOTH communication request (for example, a BR data transmission request), if a BLUETOOTH connection (for example, a BLE connection) already exists in the terminal device, the BLUETOOTH air interface may have been occupied by the existing BLE connection. In this case, there may be a BLUETOOTH air interface resource occupation conflict between BR data transmission and the existing BLE connection. Consequently, BR data transmission may fail or take a long time, which affects user experience.
In the conventional technology, conflicts between BLUETOOTH channels may be reduced by adjusting a timeslot. To be specific, when the terminal device receives a broadcast packet sent by a terminal device, the terminal device may obtain a time location of the broadcast packet, and may adjust, based on the time location, a timeslot of sending a BLE connection event, so that the adjusted timeslot of sending the BLE connection event is located in a timeslot not occupied by a BR/EDR synchronization data link packet.
In the foregoing manner, only a BLUETOOTH air interface resource occupation conflict that may exist between the BLE connection and BR data transmission is considered, and a conflict that may exist between BLE broadcast, BLE scanning, BR transmission, and the BLE connection is not involved. In addition, the foregoing manner is applicable only to a one-to-one connection. For a one-to-many connection, because a gap of a BLUETOOTH air interface is limited, an idle timeslot that is not occupied may not be found in a timeslot adjustment manner. In addition, in the foregoing manner, a timeslot is adjusted based on a BLUETOOTH chip layer and a BLUETOOTH protocol stack layer, and a priority of a BLUETOOTH communication request in actual application is not considered. In actual application, a priority of establishing a BLE connection is generally high. In this case, if packets of BR data transmission in the terminal device are frequently sent, a timeslot of sending the BLE connection determined by the terminal device may be relatively late. As a result, the BLE connection times out or the connection fails, and an actual communication requirement cannot be met.
To resolve the foregoing problems, embodiments of this disclosure provide a BLUETOOTH communication method, a terminal device, and a computer-readable storage medium. In the method, when obtaining a BLUETOOTH communication request corresponding to a second terminal device, a first terminal device may obtain connection information of an existing BLUETOOTH connection in the first terminal device, and may determine, based on the BLUETOOTH communication request and the connection information of the existing BLUETOOTH connection, a BLUETOOTH operating mode currently corresponding to the first terminal device. Then, the first terminal device may adjust an operating parameter of BLUETOOTH based on the BLUETOOTH operating mode, and communicate with the second terminal device through the BLUETOOTH whose operating parameter is adjusted, to adjust current occupation on a BLUETOOTH air interface by the existing BLUETOOTH connection, so as to reduce a BLUETOOTH air interface resource conflict in a plurality of BLUETOOTH connections. In this way, sufficient and stable BLUETOOTH air interface resources may be provided for the first terminal device to process a newly obtained BLUETOOTH communication request. This ensures that the BLUETOOTH communication request is processed in a timely and effective manner, improves efficiency and a success rate of processing the BLUETOOTH communication request, meets an actual communication requirement of a user, and improves user experience, so that usability and practicability are high.
In embodiments of this disclosure, the terminal devices (including the first terminal device and the second terminal device) are a terminal device having a BLUETOOTH communication function. The terminal device may be a mobile phone, a tablet computer, a wearable device, a vehicle-mounted device, an augmented reality (AR) device/a virtual reality (VR) device, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, a personal digital assistant (PDA), a laptop, or the like. A specific type of the terminal device is not limited in embodiments of this disclosure.
The following first describes the terminal device in embodiments of this disclosure.is a schematic diagram of a structure of a terminal device.
The terminal devicemay include a processor, an external memory interface, an internal memory, a Universal Serial Bus (USB) interface, a charging management module, a power management module, a battery, an antenna, an antenna, a mobile communication module, a wireless communication module, an audio module, a speakerA, a receiverB, a microphoneC, a headset jackD, a sensor module, a button, a motor, an indicator, a camera, a display, a subscriber identification module (SIM) card interface, and the like. The sensor modulemay include a pressure sensorA, a gyroscope sensorB, a barometric pressure sensorC, a magnetic sensorD, an acceleration sensorE, a distance sensorF, an optical proximity sensorG, a fingerprint sensorH, a temperature sensorJ, a touch sensorK, an ambient light sensorL, a bone conduction sensorM, and the like.
It can be understood that, a structure illustrated in this embodiment of this disclosure does not constitute a specific limitation on the terminal device. In some other embodiments of this disclosure, the terminal devicemay include more or fewer components than those shown in the figure, or combine some components, or split some components, or have different component arrangements. The components shown in the figure may be implemented by hardware, software, or a combination of software and hardware.
The processormay include one or more processing units. For example, the processormay include an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, a neural-network processing unit (NPU), and/or the like. Different processing units may be independent components, or may be integrated into one or more processors.
The controller may generate an operation control signal based on an instruction operation code and a time sequence signal, to complete control of instruction reading and instruction execution.
A memory may be further disposed in the processor, and is configured to store instructions and data. In some embodiments, the memory in the processoris a cache memory. The memory may store an instruction or data that has been used or cyclically used by the processor. If the processorneeds to use the instructions or the data again, the processor may directly invoke the instructions or the data from the memory. This avoids repeated access, reduces waiting time of the processor, and improves system efficiency.
In some embodiments, the processormay include one or more interfaces. The interface may include an Inter-Integrated Circuit (I2C) interface, an I2C Sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver/transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input/output (GPIO) interface, a SIM interface, a USB interface, and/or the like.
The I2C interface is a two-way synchronization serial bus, and includes one serial data line (SDL) and one serial clock line (SCL). In some embodiments, the processormay include a plurality of groups of I2C buses. The processormay be separately coupled to the touch sensorK, a charger, a flash, the camera, and the like through different I2C bus interfaces. For example, the processormay be coupled to the touch sensorK through an I2C interface, so that the processorcommunicates with the touch sensorK through the I2C bus interface to implement a touch function of the terminal device.
The I2S interface may be configured to perform audio communication. In some embodiments, the processormay include a plurality of groups of I2S buses. The processormay be coupled to the audio modulethrough the I2S bus, to implement communication between the processorand the audio module. In some embodiments, the audio modulemay transmit an audio signal to the wireless communication modulethrough the I2S interface, to implement a function of answering a call through a BLUETOOTH headset.
The PCM interface may also be used to perform audio communication, and sample, quantize, and code an analog signal. In some embodiments, the audio modulemay be coupled to the wireless communication modulethrough a PCM bus interface. In some embodiments, the audio modulemay also transmit an audio signal to the wireless communication modulethrough the PCM interface, to implement a function of answering a call through a BLUETOOTH headset. Both the I2S interface and the PCM interface may be used for audio communication.
The UART interface is a universal serial data bus, and is configured to perform asynchronous communication. The bus may be a two-way communications bus. The bus converts to-be-transmitted data between serial communication and parallel communication. In some embodiments, the UART interface is usually configured to connect the processorto the wireless communication module. For example, the processorcommunicates with a BLUETOOTH module in the wireless communication modulethrough the UART interface, to implement a BLUETOOTH function. In some embodiments, the audio modulemay transmit an audio signal to the wireless communication modulethrough the UART interface, to implement a function of playing music through a BLUETOOTH headset.
The MIPI interface may be configured to connect the processorto peripheral components such as the displayand the camera. The MIPI interface includes a camera serial interface (CSI), a display serial interface (DSI), and the like. In some embodiments, the processorcommunicates with the camerathrough the CSI interface, to implement an image shooting function of the terminal device. The processorcommunicates with the displaythrough the DSI interface, to implement a display function of the terminal device.
The GPIO interface may be configured by software. The GPIO interface may be configured as a control signal or a data signal. In some embodiments, the GPIO interface may be configured to connect the processorto the camera, the display, the wireless communication module, the audio module, the sensor module, or the like. The GPIO interface may alternatively be configured as an I2C interface, an I2S interface, a UART interface, an MIPI interface, or the like.
Unknown
May 19, 2026
Browse 5M+ US patents with plain-English claim translations and AI-generated analysis.