Communication processing method and apparatus, electronic device, and computer-readable storage medium

By synchronizing the clock and adjusting the frequency between the terminal device and the expansion module, the communication latency problem is solved, improving the user experience, especially by significantly reducing latency in low-power Bluetooth communication.

WO2026153091A1PCT designated stage Publication Date: 2026-07-23SHENZHEN TCL DIGITAL TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
SHENZHEN TCL DIGITAL TECH CO LTD
Filing Date
2025-12-26
Publication Date
2026-07-23

AI Technical Summary

Technical Problem

Latency issues exist in existing communication scenarios, especially in scenarios with high latency requirements such as voice, calls, or games, where the user experience has not yet met the low-latency requirements.

Method used

After establishing a connection between the terminal device and the expansion module, clock synchronization is performed. Clock information is exchanged using the synchronization pin, and the read/write frequency is adjusted to achieve clock synchronization and frequency consistency, thereby reducing communication latency.

Benefits of technology

It improves the latency caused by communication clock asynchrony, enhances the user experience, and reduces latency and improves communication efficiency, especially in low-power Bluetooth communication scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2025146124_23072026_PF_FP_ABST
    Figure CN2025146124_23072026_PF_FP_ABST
Patent Text Reader

Abstract

Embodiments of the present application disclose a communication processing method and apparatus, an electronic device, and a computer-readable storage medium. The method comprises: when establishing a connection with a terminal extension module, a terminal device performing clock synchronization processing on the terminal extension module; and communicating with a peer device on the basis of the terminal extension module having experienced the clock synchronization processing. By performing clock synchronization processing when a connection is established, the delay impact caused by asynchronous communication clocks is mitigated, communication delay is reduced, and user experience is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Communication processing methods, apparatus, electronic devices and computer-readable storage media

[0001] This application claims priority to Chinese patent application filed on January 15, 2025, with application number 202510070254.9 and entitled "Communication Processing Method, Apparatus, Electronic Device and Computer-Readable Storage Medium", the entire contents of which are incorporated herein by reference. Technical Field

[0002] This application relates to the field of communication technology, specifically to a communication processing method, apparatus, electronic device, and computer-readable storage medium. Background Technology

[0003] With the development of communication technology, the methods and quality of information dissemination have been greatly improved. Communication technology enables the transmission of audio and video data, thereby facilitating functions such as phone calls, video playback, and gaming.

[0004] Latency, as an important performance indicator in communication technology, reflects the quality of communication. Low-latency communication designs enable faster response times and improve user experience. Technical issues

[0005] Latency still exists in current communication scenarios, and for scenarios with high latency requirements such as voice, calls, or games, it cannot yet meet users' low-latency needs, and the user experience needs to be improved. Technical solutions

[0006] This application provides a communication processing method, apparatus, electronic device, and computer-readable storage medium, which can reduce communication latency and improve user experience.

[0007] In a first aspect, embodiments of this application provide a communication processing method applied to a terminal device, the method comprising:

[0008] After establishing a connection with the terminal expansion module, clock synchronization processing is performed on the terminal expansion module;

[0009] The terminal expansion module, after clock synchronization processing, communicates with the peer device.

[0010] Secondly, embodiments of this application also provide a communication processing apparatus for use in a terminal device, the apparatus comprising:

[0011] The processing module is used to perform clock synchronization processing on the terminal expansion module after establishing a connection with the terminal expansion module;

[0012] The communication module is used for communication between the terminal expansion module and the peer device based on clock synchronization processing.

[0013] Optionally, in some embodiments of this application, the step of performing clock synchronization processing on the terminal expansion module after establishing a connection with the terminal expansion module includes:

[0014] After establishing a connection with the terminal expansion module, clock synchronization processing is performed on the terminal expansion module based on the synchronization pin pre-set in the terminal expansion module.

[0015] Optionally, in some embodiments of this application, the step of performing clock synchronization processing on the terminal expansion module based on a pre-set synchronization pin in the terminal expansion module after establishing a connection with the terminal expansion module includes:

[0016] After establishing a connection with the terminal expansion module, the first clock information of the terminal expansion module is obtained based on the synchronization pin pre-set in the terminal expansion module.

[0017] Clock synchronization information is generated based on the first clock information and the second clock information of the terminal device;

[0018] The clock synchronization information is sent to the terminal expansion module via the synchronization pin, wherein the terminal expansion module establishes clock synchronization with the terminal device based on the received clock synchronization information.

[0019] Optionally, in some embodiments of this application, the terminal device is equipped with a communication host, and after establishing a connection with the terminal expansion module and performing clock synchronization processing on the terminal expansion module, the method further includes:

[0020] The frequency of writing the first data to be transmitted to the communication host is adjusted to a first frequency, and the frequency of reading the first data to be transmitted from the communication host by the terminal expansion module is adjusted to a second frequency, wherein the first frequency and the second frequency are the same.

[0021] The terminal extension module, based on clock synchronization processing, communicates with the peer device, including:

[0022] The terminal extension module, after clock synchronization processing, transmits the first data to be transmitted to the peer device at the first frequency and the second frequency.

[0023] Optionally, in some embodiments of this application, before adjusting the frequency of writing the first data to be transmitted to the communication host to a first frequency, and adjusting the frequency of reading the first data to be transmitted from the communication host by the terminal expansion module to a second frequency, the method further includes:

[0024] Obtain the original write frequency for writing the first data to be transmitted to the communication host, and obtain the original read frequency for the terminal expansion module to read the first data to be transmitted from the communication host;

[0025] Select a target frequency from the original write frequency and the original read frequency, and use the target frequency as the original first frequency and the original second frequency.

[0026] Optionally, in some embodiments of this application, the terminal device is equipped with a communication host, and after establishing a connection with the terminal expansion module and performing clock synchronization processing on the terminal expansion module, the method further includes:

[0027] The frequency at which the terminal expansion module writes the second data to be transmitted to the communication host is adjusted to a third frequency, and the frequency at which the terminal expansion module reads the second data to be transmitted from the communication host is adjusted to a fourth frequency, wherein the third frequency and the fourth frequency are the same;

[0028] The terminal extension module, based on clock synchronization processing, communicates with the peer device, including:

[0029] The terminal extension module, after clock synchronization processing, receives the second data to be transmitted from the peer device according to the third and fourth frequencies.

[0030] Optionally, in some embodiments of this application, the terminal device includes a Bluetooth master device, the terminal expansion module includes a Bluetooth expansion device, the synchronization pin is pre-configured in the Bluetooth expansion device, and the peer device includes a Bluetooth slave device;

[0031] The terminal extension module, based on clock synchronization processing, communicates with the peer device, including:

[0032] The Bluetooth master device communicates with the Bluetooth slave device through a Bluetooth extension device that has undergone clock synchronization processing.

[0033] Thirdly, embodiments of this application also provide an electronic device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the computer program is executed by the processor, it implements the steps in the communication processing method described above.

[0034] Fourthly, embodiments of this application also provide a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the steps in the above-described communication processing method.

[0035] Fifthly, embodiments of this application also provide a computer program product or computer program, which includes computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the methods provided in the various optional implementations described in embodiments of this application. Beneficial effects

[0036] After establishing a connection with the terminal expansion module, the terminal device in this application embodiment performs clock synchronization processing on the terminal expansion module, and then communicates with the peer device based on the clock-synchronized terminal expansion module.

[0037] Among these improvements, clock synchronization after connection establishment mitigates the latency caused by asynchronous communication clocks, reducing communication delays and enhancing user experience. Attached Figure Description

[0038] To more clearly illustrate the technical solutions in this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0039] Figure 1 is a schematic diagram of a scenario in which a terminal device according to an embodiment of this application executes the communication processing method;

[0040] Figure 2 is a flowchart illustrating the communication processing method provided in an embodiment of this application;

[0041] Figure 3 is a schematic diagram of the audio data transmission process provided in an embodiment of this application;

[0042] Figure 4 is a schematic diagram of the communication processing device provided in an embodiment of this application;

[0043] Figure 5 is a schematic diagram of the structure of the electronic device provided in an embodiment of this application. Embodiments of the present invention

[0044] The technical solutions of this application will now be clearly and completely described with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0045] This application provides a communication processing method, apparatus, electronic device, and computer-readable storage medium. Specifically, this application provides a communication processing apparatus suitable for electronic devices, used to reduce latency during communication between devices through clock synchronization, thereby improving user experience. Specifically, the electronic device includes a terminal device or a server. The terminal device includes, but is not limited to, devices such as mobile phones, tablets, laptops, or desktop computers. The server can be an independent physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server providing basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, content delivery networks (CDNs), and big data and artificial intelligence platforms. The server can be directly or indirectly connected via wired or wireless communication.

[0046] Please refer to Figure 1, which is a schematic diagram of a scenario in which a terminal device according to an embodiment of this application executes the communication processing method. The specific execution process of the terminal device executing the communication processing method is as follows:

[0047] After establishing a connection with the terminal expansion module, the terminal device 10 performs clock synchronization processing on the terminal expansion module, and then the terminal device 10 communicates with the peer device 11 based on the clock-synchronized terminal expansion module.

[0048] In summary, the embodiments of this application improve the latency caused by communication clock asynchrony by performing clock synchronization processing after the connection is established, thereby reducing communication latency and improving user experience.

[0049] The following sections provide detailed descriptions of each example. It should be noted that the order in which the embodiments are described is not intended to limit the priority of the embodiments.

[0050] Please refer to Figure 2, which is a flowchart illustrating the communication processing method provided in this embodiment. Although the flowchart shows a logical order, in some cases, the steps shown or described may be executed in a different order than that shown in the flowchart. Specifically, the execution subject of this communication processing method is a terminal device. This terminal device can communicate directly with the peer device or communicate with the peer device through a terminal extension module. This embodiment uses the scenario of a terminal device communicating with a peer device based on a terminal extension module as an example. Accordingly, the terminal device includes devices such as mobile phones, tablets, and televisions. Specifically, the process of the terminal device executing the communication processing method includes:

[0051] 101. After establishing a connection with the terminal expansion module, perform clock synchronization processing on the terminal expansion module.

[0052] It should be noted that the terminal expansion module refers to a module that expands the communication capabilities of a terminal device. For example, for devices that do not have the ability to communicate with other devices, this terminal expansion module can be connected to transmit information from the terminal device to other devices, thereby enabling communication between the terminal device and other devices. The terminal expansion module can be externally connected to the terminal device, such as via USB, or it can be built into the terminal device's internal components, such as being mounted on the terminal device's chip. For example, in this embodiment of the application, taking Bluetooth communication as an example, the terminal expansion module includes, but is not limited to, a Bluetooth expansion module, i.e., a Bluetooth dongle.

[0053] Specifically, after establishing a connection with the terminal expansion module, clock synchronization processing is performed with the terminal expansion module to ensure that the clocks of the terminal device and the terminal expansion module are synchronized, avoiding communication delays caused by clock asynchrony. Clock synchronization refers to maintaining time consistency among multiple devices or systems, and clock synchronization processing refers to a series of measures taken to achieve clock synchronization, such as master-slave synchronization and timestamp synchronization, which are not limited here.

[0054] 102. The terminal expansion module, after clock synchronization processing, communicates with the peer device.

[0055] Understandably, the communication between the terminal expansion module and the peer device based on clock synchronization processing not only enables communication between the terminal device and the peer device, but also reduces the latency during communication between the terminal device and the peer device through clock synchronization processing, thereby improving the user experience.

[0056] The peer device includes devices capable of communicating with other devices. For example, the peer device can communicate directly with other devices or through a terminal extension module. Taking Bluetooth communication as an example, the terminal device includes a Bluetooth master device, and the peer device includes a Bluetooth slave device. The Bluetooth master device communicates with the Bluetooth slave device through a Bluetooth extension device that has undergone clock synchronization processing.

[0057] In summary, the embodiments of this application improve the latency caused by communication clock asynchrony by performing clock synchronization processing after the connection is established, thereby reducing communication latency and improving user experience.

[0058] It should be noted that, in order to achieve clock synchronization between the terminal device and the terminal expansion module, clock information exchange between the terminal device and the terminal expansion module is required. To achieve this exchange, in this embodiment, a synchronization pin is provided on the terminal expansion module. Clock information is sent or received based on this synchronization pin to achieve clock synchronization between the terminal device and the terminal expansion module. Optionally, in some embodiments of this application, the step "after establishing a connection with the terminal expansion module, performing clock synchronization processing on the terminal expansion module" includes:

[0059] After establishing a connection with the terminal expansion module, clock synchronization processing is performed on the terminal expansion module based on the synchronization pin pre-set in the terminal expansion module.

[0060] Among them, the synchronization pin is a physical connection point on the electronic device, such as a sync pin, which can mark the start and end of a data frame. By setting a synchronization pin on the terminal expansion module, clock information can be sent or received using the synchronization pin, and then clock synchronization processing can be performed based on the sent or received clock information to establish clock synchronization between the terminal device and the terminal expansion module.

[0061] For example, the terminal expansion module sends its own clock information to the terminal device through the synchronization pin. Then, the terminal device generates clock synchronization information based on its own clock information and the clock information received from the terminal expansion module, and sends the clock synchronization information to the terminal expansion module through the synchronization pin, so that the terminal expansion module synchronizes its clock with the terminal device based on the clock synchronization information.

[0062] That is, optionally, in some embodiments of this application, the step "after establishing a connection with the terminal expansion module, performing clock synchronization processing on the terminal expansion module based on the synchronization pin pre-set in the terminal expansion module" includes:

[0063] After establishing a connection with the terminal expansion module, the first clock information of the terminal expansion module is obtained based on the synchronization pin pre-set in the terminal expansion module.

[0064] Clock synchronization information is generated based on the first clock information and the second clock information of the terminal device;

[0065] The clock synchronization information is sent to the terminal expansion module via the synchronization pin, wherein the terminal expansion module establishes clock synchronization with the terminal device based on the received clock synchronization information.

[0066] The first clock information and the second clock information are the current clock information of the terminal expansion module and the terminal device, respectively. It can be understood that the clock synchronization information is determined based on the first clock information and the second clock information and is used to control the clock synchronization of the terminal device and the terminal expansion module.

[0067] Understandably, in some scenarios, the terminal device can also send its own clock information to the terminal expansion module. The terminal expansion module then generates clock synchronization information based on its own clock information and the received clock information from the terminal device. This clock synchronization information is then sent to the terminal device via the synchronization pin to instruct the terminal device to make clock adjustments in order to achieve clock synchronization with the terminal expansion module.

[0068] In summary, the terminal device in this application embodiment connects to a terminal expansion module, enabling the terminal device to communicate with other devices (e.g., peer devices) using the terminal expansion module. Furthermore, by providing a synchronization pin on the terminal expansion module, clock synchronization between the terminal device and the terminal expansion module is achieved. This clock synchronization process reduces communication latency between the terminal device and the terminal expansion module, thereby reducing communication latency when the terminal device communicates with other devices.

[0069] By setting a synchronization pin on the terminal expansion module, the terminal device and the terminal expansion module can exchange clock information, which solves the drawback that the terminal device and the terminal expansion module cannot exchange clock information and thus cannot synchronize clocks in the traditional case.

[0070] It should be noted that there are various reasons for communication delays. Besides clock asynchrony between devices, inconsistent data read / write frequencies can also lead to data accumulation (e.g., fast writes but slow reads) or prolonged periods without data access (e.g., slow writes but fast reads), resulting in communication delays. Therefore, in this embodiment, in addition to clock synchronization between devices, the read / write frequency is controlled to mitigate communication delays. Specifically, in some embodiments of this application, after the step "after establishing a connection with the terminal expansion module, perform clock synchronization processing on the terminal expansion module," the method further includes:

[0071] The frequency of writing the first data to be transmitted to the communication host is adjusted to a first frequency, and the frequency of reading the first data to be transmitted from the communication host by the terminal expansion module is adjusted to a second frequency, wherein the first frequency and the second frequency are the same.

[0072] The terminal extension module, based on clock synchronization processing, communicates with the peer device, including:

[0073] The terminal extension module, after clock synchronization processing, transmits the first data to be transmitted to the peer device at the first frequency and the second frequency.

[0074] The communication host is a device or module built into the terminal device, responsible for managing the terminal device's communication. For example, for a Bluetooth device, the communication host is the Bluetooth host. The terminal device communicates with the peer device through the communication host and the terminal expansion module.

[0075] To more clearly illustrate how the terminal device communicates with the peer device based on the communication host and terminal expansion module, the transmission process of communication data or data to be transmitted will be described below. For example, please refer to Figure 3. Taking audio data as an example, Figure 3 is a schematic diagram of the audio data transmission process provided in this embodiment of the application. Specifically, the audio data transmission process includes:

[0076] 111. The terminal device generates audio data and writes it into the communication host;

[0077] 112. The terminal expansion module connected to the terminal device reads the audio data from the communication host;

[0078] 113. The terminal expansion module will send the read audio data to the peer device.

[0079] Therefore, if the frequency of writing to the communication host is different from the frequency of reading from the communication host, it will cause communication delay. For example, if the frequency of writing to the communication host is high and the frequency of reading from the communication host is slow, audio data will accumulate in the communication host, causing the audio data to be unable to be read in time, resulting in communication delay. Conversely, if the frequency of writing to the communication host is low and the frequency of reading from the communication host is high, it will result in no data being read from the communication host for a long time, resulting in delay.

[0080] Therefore, this embodiment of the application controls the frequency of writing to the communication host to be consistent with the frequency of reading from the communication host, so that the reading and writing of audio data are balanced, thereby further alleviating communication delay on the basis of alleviating delay based on clock synchronization.

[0081] In this embodiment, the process of writing to the communication host has an initial frequency, and similarly, the process of reading from the communication host also has an initial frequency. To ensure orderly data processing, one of the two initial frequencies can be selected as the target frequency for adjustment, controlling the reading and writing frequencies to remain consistent. Optionally, in some embodiments of this application, the step "adjusting the frequency of writing the first data to be transmitted to the communication host to a first frequency, and adjusting the frequency of the terminal expansion module reading the first data to be transmitted from the communication host to a second frequency" includes:

[0082] Obtain the original write frequency for writing the first data to be transmitted to the communication host, and obtain the original read frequency for the terminal expansion module to read the first data to be transmitted from the communication host;

[0083] Select a target frequency from the original write frequency and the original read frequency, and use the target frequency as the first frequency and the second frequency.

[0084] The original write frequency is the frequency at which the terminal device or the application control in the terminal device writes data to the communication host before the frequency adjustment, and the original read frequency is the frequency at which the control terminal expansion module reads data from the communication host before the frequency adjustment.

[0085] Choosing either the original write frequency or the original read frequency as the target frequency helps ensure read stability; for example, it ensures that at least one frequency remains constant. To ensure fast and efficient data transmission, the larger of the original write frequency and the original read frequency can be selected as the target frequency.

[0086] Accordingly, in the embodiments of this application, for the receiving end (e.g., the peer device), or when the terminal device in the embodiments of this application receives audio data sent by the peer device, in order to ensure the consistency of the read and write frequencies, it is also necessary to adjust the frequency at which the terminal expansion module writes to the communication host to be consistent with the frequency at which the terminal device reads from the communication host. That is, optionally, in some embodiments of this application, after the step "after establishing a connection with the terminal expansion module, perform clock synchronization processing on the terminal expansion module", the method further includes:

[0087] The frequency at which the terminal expansion module writes the second data to be transmitted to the communication host is adjusted to a third frequency, and the frequency at which the terminal expansion module reads the second data to be transmitted from the communication host is adjusted to a fourth frequency, wherein the third frequency and the fourth frequency are the same;

[0088] The terminal extension module, based on clock synchronization processing, communicates with the peer device, including:

[0089] The terminal extension module, after clock synchronization processing, receives the second data to be transmitted from the peer device according to the third and fourth frequencies.

[0090] For example, after a terminal device receives audio data through a terminal expansion module, the terminal expansion module writes the audio data to a communication host. Then, the terminal device or an application within the terminal device reads the audio data from the communication host. This embodiment of the application helps alleviate latency when receiving audio data by controlling the consistency of the read and write frequencies during data reception.

[0091] In this embodiment, the data that needs to be exchanged during frequency adjustment can also be transmitted through the synchronization pin. For example, the terminal expansion module can transmit its own read / write frequency to the terminal device based on the synchronization pin, so that the terminal device can determine the target frequency based on the read / write frequency of the communication host and the read / write frequency of the terminal expansion module, and then send the target frequency to the terminal expansion module so that the terminal expansion module can adjust the read frequency based on the target frequency, so that the frequency written to the communication host is consistent with the frequency read by the terminal expansion module from the communication host, or the frequency written by the terminal expansion module to the communication host is consistent with the frequency read by the terminal device from the communication host.

[0092] In summary, the terminal device in this application embodiment connects to a terminal expansion module, enabling the terminal device to communicate with other devices (e.g., peer devices) using the terminal expansion module. Furthermore, by providing a synchronization pin on the terminal expansion module, clock synchronization between the terminal device and the terminal expansion module is achieved. This clock synchronization process reduces communication latency between the terminal device and the terminal expansion module, thereby reducing communication latency when the terminal device communicates with other devices.

[0093] By setting a synchronization pin on the terminal expansion module, the terminal device and the terminal expansion module can exchange clock information, which solves the drawback that the terminal device and the terminal expansion module cannot exchange clock information and thus cannot synchronize clocks in the traditional case.

[0094] By adjusting the read / write frequencies between the communication host of the terminal device and the terminal expansion module to be the same, a read / write balance is maintained during data transmission, reducing latency issues caused by different read / write frequencies.

[0095] In summary, the communication processing method of this application embodiment is applicable to scenarios based on Bluetooth Low Energy (LE Audio) communication. It improves the user experience by mitigating the latency problem of LE Audio communication through clock synchronization based on synchronization pins and consistency adjustment based on read / write frequencies.

[0096] This communication processing method can be used on both the terminal device and the peer device to further improve latency mitigation.

[0097] To facilitate better implementation of the communication processing method of this application, this application also provides a communication processing apparatus based on the above-described communication processing method. The meanings of the terms used are the same as in the above-described communication processing method, and specific implementation details can be found in the descriptions of the method embodiments.

[0098] Please refer to Figure 4, which is a schematic diagram of the communication processing device provided in an embodiment of this application. This communication processing device is applied to a terminal device, and the communication processing device can be specifically as follows:

[0099] The processing module 201 is used to perform clock synchronization processing on the terminal expansion module after establishing a connection with the terminal expansion module;

[0100] The communication module 202 is used for communication between the terminal expansion module and the peer device based on clock synchronization processing.

[0101] Optionally, in some embodiments of this application, the step of performing clock synchronization processing on the terminal expansion module after establishing a connection with the terminal expansion module includes:

[0102] After establishing a connection with the terminal expansion module, clock synchronization processing is performed on the terminal expansion module based on the synchronization pin pre-set in the terminal expansion module.

[0103] Optionally, in some embodiments of this application, the step of performing clock synchronization processing on the terminal expansion module based on a pre-set synchronization pin in the terminal expansion module after establishing a connection with the terminal expansion module includes:

[0104] After establishing a connection with the terminal expansion module, the first clock information of the terminal expansion module is obtained based on the synchronization pin pre-set in the terminal expansion module.

[0105] Clock synchronization information is generated based on the first clock information and the second clock information of the terminal device;

[0106] The clock synchronization information is sent to the terminal expansion module via the synchronization pin, wherein the terminal expansion module establishes clock synchronization with the terminal device based on the received clock synchronization information.

[0107] Optionally, in some embodiments of this application, the terminal device is equipped with a communication host, and after establishing a connection with the terminal expansion module and performing clock synchronization processing on the terminal expansion module, the method further includes:

[0108] The frequency of writing the first data to be transmitted to the communication host is adjusted to a first frequency, and the frequency of reading the first data to be transmitted from the communication host by the terminal expansion module is adjusted to a second frequency, wherein the first frequency and the second frequency are the same.

[0109] The terminal extension module, based on clock synchronization processing, communicates with the peer device, including:

[0110] The terminal extension module, after clock synchronization processing, transmits the first data to be transmitted to the peer device at the first frequency and the second frequency.

[0111] Optionally, in some embodiments of this application, before adjusting the frequency of writing the first data to be transmitted to the communication host to a first frequency, and adjusting the frequency of reading the first data to be transmitted from the communication host by the terminal expansion module to a second frequency, the method further includes:

[0112] Obtain the original write frequency for writing the first data to be transmitted to the communication host, and obtain the original read frequency for the terminal expansion module to read the first data to be transmitted from the communication host;

[0113] Select a target frequency from the original write frequency and the original read frequency, and use the target frequency as the original first frequency and the original second frequency.

[0114] Optionally, in some embodiments of this application, the terminal device is equipped with a communication host, and after establishing a connection with the terminal expansion module and performing clock synchronization processing on the terminal expansion module, the method further includes:

[0115] The frequency at which the terminal expansion module writes the second data to be transmitted to the communication host is adjusted to a third frequency, and the frequency at which the terminal expansion module reads the second data to be transmitted from the communication host is adjusted to a fourth frequency, wherein the third frequency and the fourth frequency are the same;

[0116] The terminal extension module, based on clock synchronization processing, communicates with the peer device, including:

[0117] The terminal extension module, after clock synchronization processing, receives the second data to be transmitted from the peer device according to the third and fourth frequencies.

[0118] Optionally, in some embodiments of this application, the terminal device includes a Bluetooth master device, the terminal expansion module includes a Bluetooth expansion device, the synchronization pin is pre-configured in the Bluetooth expansion device, and the peer device includes a Bluetooth slave device;

[0119] The terminal extension module, based on clock synchronization processing, communicates with the peer device, including:

[0120] The Bluetooth master device communicates with the Bluetooth slave device through a Bluetooth extension device that has undergone clock synchronization processing.

[0121] In this embodiment, the processing module 201 performs clock synchronization processing on the terminal expansion module after establishing a connection with it, and the communication module 202 communicates with the peer device based on the clock-synchronized terminal expansion module.

[0122] In this embodiment, clock synchronization is performed after the connection is established to mitigate the delay caused by asynchronous communication clocks, reduce communication latency, and improve user experience.

[0123] In addition, this application also provides an electronic device, as shown in Figure 5, which illustrates the structural schematic diagram of the electronic device involved in this application. Specifically:

[0124] The electronic device may include components such as a processor 301 with one or more processing cores, a memory 302 with one or more computer-readable storage media, a power supply 303, and an input unit 304. Those skilled in the art will understand that the electronic device structure shown in FIG5 does not constitute a limitation on the electronic device, and may include more or fewer components than shown, or combine certain components, or have different component arrangements. Wherein:

[0125] The processor 301 is the control center of the electronic device. It connects various parts of the electronic device via various interfaces and lines, and performs various functions and processes data by running or executing software programs and / or modules stored in the memory 302, and by calling data stored in the memory 302, thereby providing overall monitoring of the electronic device. Optionally, the processor 301 may include one or more processing cores; preferably, the processor 301 may integrate an application processor and a modem processor, wherein the application processor mainly handles the operating system, user interface, and applications, and the modem processor mainly handles wireless communication. It is understood that the modem processor may not be integrated into the processor 301.

[0126] The memory 302 can be used to store software programs and modules. The processor 301 executes various functional applications and communication processes by running the software programs and modules stored in the memory 302. The memory 302 may mainly include a program storage area and a data storage area. The program storage area may store the operating system, application programs required for at least one function (such as sound playback function, image playback function, etc.), etc.; the data storage area may store data created according to the use of the electronic device, etc. In addition, the memory 302 may include high-speed random access memory, and may also include non-volatile memory, such as at least one disk storage device, flash memory device, or other volatile solid-state storage device. Accordingly, the memory 302 may also include a memory controller to provide the processor 301 with access to the memory 302.

[0127] The electronic device also includes a power supply 303 that supplies power to the various components. Preferably, the power supply 303 can be logically connected to the processor 301 through a power management system, thereby enabling functions such as charging, discharging, and power consumption management through the power management system. The power supply 303 may also include one or more DC or AC power supplies, recharging systems, power equipment debugging circuits, power converters or inverters, power status indicators, and other arbitrary components.

[0128] The electronic device may also include an input unit 304, which can be used to receive input digital or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control.

[0129] Although not shown, the electronic device may also include a display unit, etc., which will not be described in detail here. Specifically, in this embodiment, the processor 301 in the electronic device loads the executable files corresponding to the processes of one or more applications into the memory 302 according to the following instructions, and the processor 301 runs the applications stored in the memory 302, thereby implementing the steps in any of the communication processing methods provided in the embodiments of this application.

[0130] After establishing a connection with the terminal expansion module, the terminal device in this application embodiment performs clock synchronization processing on the terminal expansion module, and then communicates with the peer device based on the clock-synchronized terminal expansion module.

[0131] Among these improvements, clock synchronization after connection establishment mitigates the latency caused by asynchronous communication clocks, reducing communication delays and enhancing user experience.

[0132] For details on the implementation of each of the above operations, please refer to the previous examples, which will not be repeated here.

[0133] Those skilled in the art will understand that all or part of the steps in the various methods of the above embodiments can be performed by instructions, or by instructions controlling related hardware. These instructions can be stored in a computer-readable storage medium and loaded and executed by a processor.

[0134] Therefore, this application provides a computer-readable storage medium storing a computer program that can be loaded by a processor to execute the steps of any of the communication processing methods provided in this application.

[0135] For details on the implementation of each of the above operations, please refer to the previous examples, which will not be repeated here.

[0136] The computer-readable storage medium may include: read-only memory (ROM), random access memory (RAM), disk or optical disk, etc.

[0137] Since the instructions stored in the computer-readable storage medium can execute the steps of any of the communication processing methods provided in this application, the beneficial effects that any of the communication processing methods provided in this application can achieve can be realized, as detailed in the preceding embodiments, and will not be repeated here.

[0138] The foregoing has provided a detailed description of a communication processing method, apparatus, electronic device, and computer-readable storage medium provided in this application. Specific examples have been used to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only for the purpose of helping to understand the method and core ideas of the present invention. At the same time, those skilled in the art will recognize that, based on the ideas of the present invention, there will be changes in the specific implementation methods and application scope. Therefore, the content of this specification should not be construed as a limitation of the present invention.

Claims

1. A communication processing method, wherein, Applied to a terminal device, the method includes: After establishing a connection with the terminal expansion module, clock synchronization processing is performed on the terminal expansion module; The terminal expansion module, after clock synchronization processing, communicates with the peer device.

2. The communication processing method according to claim 1, wherein The step of performing clock synchronization processing on the terminal expansion module after establishing a connection includes: After establishing a connection with the terminal expansion module, clock synchronization processing is performed on the terminal expansion module based on the synchronization pin pre-set in the terminal expansion module.

3. The communication processing method according to claim 1, wherein After establishing a connection with the terminal expansion module, the step of performing clock synchronization processing on the terminal expansion module based on the synchronization pin pre-set in the terminal expansion module includes: After establishing a connection with the terminal expansion module, the first clock information of the terminal expansion module is obtained based on the synchronization pin pre-set in the terminal expansion module. Clock synchronization information is generated based on the first clock information and the second clock information of the terminal device; The clock synchronization information is sent to the terminal expansion module via the synchronization pin, wherein the terminal expansion module establishes clock synchronization with the terminal device based on the received clock synchronization information.

4. The communication processing method according to claim 1, wherein The terminal device is equipped with a communication host. After establishing a connection with the terminal expansion module and performing clock synchronization processing on the terminal expansion module, the method further includes: The frequency of writing the first data to be transmitted to the communication host is adjusted to a first frequency, and the frequency of reading the first data to be transmitted from the communication host by the terminal expansion module is adjusted to a second frequency, wherein the first frequency and the second frequency are the same. The terminal extension module, based on clock synchronization processing, communicates with the peer device, including: The terminal extension module, after clock synchronization processing, transmits the first data to be transmitted to the peer device at the first frequency and the second frequency.

5. The communication processing method according to claim 4, wherein Before adjusting the frequency of writing the first data to be transmitted to the communication host to a first frequency, and adjusting the frequency of reading the first data to be transmitted from the communication host by the terminal expansion module to a second frequency, the method further includes: Obtain the original write frequency for writing the first data to be transmitted to the communication host, and obtain the original read frequency for the terminal expansion module to read the first data to be transmitted from the communication host; Select a target frequency from the original write frequency and the original read frequency, and use the target frequency as the first frequency and the second frequency.

6. The communication processing method according to claim 1, wherein, The terminal device is equipped with a communication host. After establishing a connection with the terminal expansion module and performing clock synchronization processing on the terminal expansion module, the method further includes: The frequency at which the terminal expansion module writes the second data to be transmitted to the communication host is adjusted to a third frequency, and the frequency at which the terminal expansion module reads the second data to be transmitted from the communication host is adjusted to a fourth frequency, wherein the third frequency and the fourth frequency are the same; The terminal extension module, based on clock synchronization processing, communicates with the peer device, including: The terminal extension module, after clock synchronization processing, receives the second data to be transmitted from the peer device according to the third and fourth frequencies.

7. The communication processing method according to claim 2, wherein, The terminal device includes a Bluetooth master device, the terminal expansion module includes a Bluetooth expansion device, the synchronization pin is pre-set in the Bluetooth expansion device, and the peer device includes a Bluetooth slave device. The terminal extension module, based on clock synchronization processing, communicates with the peer device, including: The Bluetooth master device communicates with the Bluetooth slave device through a Bluetooth extension device that has undergone clock synchronization processing.

8. The communication processing method according to claim 7, wherein, The terminal expansion module includes a Bluetooth dongle.

9. The communication processing method according to claim 1, wherein, The terminal expansion module includes a module that expands the communication capabilities of the terminal device, and the terminal device communicates with the peer device through the terminal expansion module; The terminal expansion module may be externally connected to the terminal device, or the terminal expansion module may be built into the terminal device.

10. The communication processing method according to claim 1, wherein, The peer device includes a terminal expansion module, and communication between the terminal device and the peer device is carried out through the terminal expansion module corresponding to the terminal device and the terminal expansion module corresponding to the peer device.

11. The communication processing method according to claim 2, wherein, The synchronization pin includes a physical connection point set on the terminal expansion module, and the physical connection point includes a sync pin.

12. The communication processing method according to claim 1, wherein, After establishing a connection with the terminal expansion module, the step of performing clock synchronization processing on the terminal expansion module based on the synchronization pin pre-set in the terminal expansion module includes: The second clock information of the terminal device is sent to the terminal expansion module through the synchronization pin pre-set in the terminal expansion module; The terminal expansion module receives clock synchronization information sent through the synchronization pin, wherein the clock synchronization information is generated by the terminal expansion module based on the second clock information and its own first clock information; Clock synchronization is established with the terminal expansion module through the clock synchronization information.

13. A communication processing apparatus, wherein, Applied to a terminal device, the device includes: The processing module is used to perform clock synchronization processing on the terminal expansion module after establishing a connection with the terminal expansion module; The communication module is used for communication between the terminal expansion module and the peer device based on clock synchronization processing.

14. The communication processing apparatus according to claim 13, wherein, The step of performing clock synchronization processing on the terminal expansion module after establishing a connection includes: After establishing a connection with the terminal expansion module, clock synchronization processing is performed on the terminal expansion module based on the synchronization pin pre-set in the terminal expansion module.

15. The communication processing apparatus according to claim 13, wherein, After establishing a connection with the terminal expansion module, the step of performing clock synchronization processing on the terminal expansion module based on the synchronization pin pre-set in the terminal expansion module includes: After establishing a connection with the terminal expansion module, the first clock information of the terminal expansion module is obtained based on the synchronization pin pre-set in the terminal expansion module. Clock synchronization information is generated based on the first clock information and the second clock information of the terminal device; The clock synchronization information is sent to the terminal expansion module via the synchronization pin, wherein the terminal expansion module establishes clock synchronization with the terminal device based on the received clock synchronization information.

16. The communication processing apparatus according to claim 13, wherein, The terminal device includes a communication host. After establishing a connection with the terminal expansion module and performing clock synchronization processing on the terminal expansion module, the device further includes: The frequency of writing the first data to be transmitted to the communication host is adjusted to a first frequency, and the frequency of reading the first data to be transmitted from the communication host by the terminal expansion module is adjusted to a second frequency, wherein the first frequency and the second frequency are the same. The terminal extension module, based on clock synchronization processing, communicates with the peer device, including: The terminal extension module, after clock synchronization processing, transmits the first data to be transmitted to the peer device at the first frequency and the second frequency.

17. The communication processing apparatus according to claim 16, wherein, Before adjusting the frequency of writing the first data to be transmitted to the communication host to a first frequency, and adjusting the frequency of reading the first data to be transmitted from the communication host by the terminal expansion module to a second frequency, the device further includes: Obtain the original write frequency for writing the first data to be transmitted to the communication host, and obtain the original read frequency for the terminal expansion module to read the first data to be transmitted from the communication host; Select a target frequency from the original write frequency and the original read frequency, and use the target frequency as the first frequency and the second frequency.

18. The communication processing apparatus according to claim 13, wherein, The terminal device includes a communication host. After establishing a connection with the terminal expansion module and performing clock synchronization processing on the terminal expansion module, the device further includes: The frequency at which the terminal expansion module writes the second data to be transmitted to the communication host is adjusted to a third frequency, and the frequency at which the terminal expansion module reads the second data to be transmitted from the communication host is adjusted to a fourth frequency, wherein the third frequency and the fourth frequency are the same; The terminal extension module, based on clock synchronization processing, communicates with the peer device, including: The terminal extension module, after clock synchronization processing, receives the second data to be transmitted from the peer device according to the third and fourth frequencies.

19. An electronic device, wherein, It includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the steps of the communication processing method as described in any one of claims 1-12.

20. A computer-readable storage medium, wherein, The computer-readable storage medium stores a computer program that, when executed by a processor, implements the steps of the communication processing method as described in any one of claims 1-12.