Communication processing method and device, electronic equipment and computer readable storage medium

By performing clock synchronization between the terminal device and the terminal expansion module, the delay problem in the existing communication technology is solved, especially in scenarios with high latency requirements, lower communication delay and better user experience are achieved.

CN119945604APending Publication Date: 2025-05-06SHENZHEN TCL DIGITAL TECH CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202510070254.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-01-15
Publication Date
2025-05-06

AI Technical Summary

Technical Problem

There are still delay problems in existing communication technologies, especially in scenarios such as voice, calls or games where delay requirements are high, it cannot meet the user's low latency needs, resulting in poor user experience.

Method used

After the terminal device establishes a connection with the terminal expansion module, the clock synchronization process is performed to ensure the clock synchronization between the terminal expansion module and the counter-end device, thereby reducing communication delay.

Benefits of technology

Through clock synchronization processing, the delay impact caused by communication clock is improved, communication delay is reduced, and user experience is improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119945604A_ABST
    Figure CN119945604A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses a communication processing method and device, electronic equipment and a computer readable storage medium, and the method comprises the steps: carrying out the clock synchronization processing of a terminal extension module after the terminal equipment is connected with the terminal extension module; and the terminal expansion module after the clock synchronization processing communicates with opposite terminal equipment. The clock synchronization processing is carried out after the connection is established, so that the delay influence caused by the asynchronous communication clock is improved, the communication delay is reduced, and the user experience is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of communication technology, and specifically to a communication processing method, device, electronic device, and computer-readable storage medium. Background Art

[0002] With the development of communication technology, the way and quality of information dissemination have been greatly improved. Based on communication technology, audio and video data can be transmitted to complete functions such as calls, video playback or games.

[0003] Latency is an important performance indicator in communication technology, which reflects the quality of communication. Low-latency communication design can respond faster and improve user experience.

[0004] However, delays still exist in current communication scenarios, and for scenarios with high delay requirements such as voice, calls, or games, the low-latency requirements of users cannot be met, and the user experience needs to be improved. Summary of the invention

[0005] The embodiments of the present application provide a communication processing method, device, electronic device and computer-readable storage medium, which can reduce communication delay and improve user experience.

[0006] In a first aspect, an embodiment of the present application provides a communication processing method, which is applied to a terminal device, and the method includes:

[0007] After establishing a connection with the terminal extension module, performing clock synchronization processing on the terminal extension module;

[0008] The terminal expansion module communicates with the opposite device based on the clock synchronization processing.

[0009] In a second aspect, an embodiment of the present application further provides a communication processing device, applied to a terminal device, the device comprising:

[0010] A processing module, used for performing clock synchronization processing on the terminal extension module after establishing a connection with the terminal extension module;

[0011] The communication module is used to communicate with the opposite device based on the terminal extension module after clock synchronization processing.

[0012] Optionally, in some embodiments of the present application, after establishing a connection with the terminal extension module, performing clock synchronization processing on the terminal extension module includes:

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

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

[0015] After establishing a connection with the terminal extension module, acquiring first clock information of the terminal extension module based on a synchronization pin preset in the terminal extension module;

[0016] Generate clock synchronization information according to the first clock information and the second clock information of the terminal device;

[0017] The clock synchronization information is sent to the terminal extension module through the synchronization pin, wherein the terminal extension module establishes clock synchronization with the terminal device based on the received clock synchronization information.

[0018] Optionally, in some embodiments of the present application, a communication host is provided in the terminal device, and after establishing a connection with the terminal extension module and performing clock synchronization processing on the terminal extension module, the method further includes:

[0019] 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 extension module reading the first data to be transmitted from the communication host to a second frequency, wherein the first frequency is the same as the second frequency;

[0020] The terminal extension module communicates with the opposite end device based on the clock synchronization processing, including:

[0021] The first data to be transmitted is transmitted to the opposite-end device according to the first frequency and the second frequency based on the terminal extension module after clock synchronization processing.

[0022] Optionally, in some embodiments of the present application, before adjusting the frequency of writing the first data to be transmitted to the communication host to the first frequency, and adjusting the frequency of the terminal extension module reading the first data to be transmitted from the communication host to the second frequency, the method further includes:

[0023] Acquire an original write frequency of writing the first data to be transmitted to the communication host, and acquire an original read frequency of reading the first data to be transmitted from the communication host by the terminal extension module;

[0024] A target frequency is selected from the original write frequency and the original read frequency, and the target frequency is used as the original first frequency and the original second frequency.

[0025] Optionally, in some embodiments of the present application, a communication host is provided in the terminal device, and after establishing a connection with the terminal extension module and performing clock synchronization processing on the terminal extension module, the method further includes:

[0026] Adjusting the frequency at which the terminal extension module writes the second data to be transmitted to the communication host to a third frequency, and adjusting the frequency at which the second data to be transmitted is read from the communication host to a fourth frequency, wherein the third frequency is the same as the fourth frequency;

[0027] The terminal extension module communicates with the opposite end device based on the clock synchronization processing, including:

[0028] The second data to be transmitted transmitted by the opposite device is received based on the terminal extension module after clock synchronization processing and according to the third frequency and the fourth frequency.

[0029] Optionally, in some embodiments of the present application, the terminal device includes a Bluetooth master device, the terminal extension module includes a Bluetooth extension device, the synchronization pin is pre-set in the Bluetooth extension device, and the peer device includes a Bluetooth slave device;

[0030] The terminal extension module communicates with the opposite end device based on the clock synchronization processing, including:

[0031] The Bluetooth master device communicates with the Bluetooth slave device through the Bluetooth extension device after clock synchronization processing.

[0032] In a third aspect, an embodiment of the present application further provides an electronic device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program implements the steps in the above-mentioned communication processing method when executed by the processor.

[0033] In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps in the above-mentioned communication processing method are implemented.

[0034] In a fifth aspect, the embodiments of the present application further provide a computer program product or a computer program, which includes a computer instruction stored in a computer-readable storage medium. The processor of the computer device reads the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the computer device executes the method provided in various optional implementations described in the embodiments of the present application.

[0035] After establishing a connection with the terminal extension module, the terminal device of the embodiment of the present application performs clock synchronization processing on the terminal extension module, and communicates with the opposite end device based on the terminal extension module after the clock synchronization processing.

[0036] Among them, by performing clock synchronization processing after establishing a connection, the delay caused by communication clock asynchrony is improved, communication delay is reduced, and user experience is improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] In order to more clearly illustrate the technical solutions in the present application, the drawings required for use 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 work.

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

[0039] Figure 2 It is a flowchart of a communication processing method provided in an embodiment of the present application;

[0040] Figure 3 It is a schematic diagram of the process of audio data transmission provided by an embodiment of the present application;

[0041] Figure 4 is a schematic diagram of the structure of a communication processing device provided in an embodiment of the present application;

[0042] Figure 5 It is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0043] The following will be combined with the drawings in this application to clearly and completely describe the technical solutions in this application. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of them. Based on the embodiments in the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.

[0044] The embodiments of the present application provide a communication processing method, device, electronic device and computer-readable storage medium. Specifically, the embodiments of the present application provide a communication processing device suitable for electronic devices, which is used to reduce the delay in communication between devices through clock synchronization and improve user experience. Specifically, the electronic device includes a terminal device or a server, and the terminal device includes but is not limited to mobile phones, tablet computers, laptops or desktop computers. The server can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers. It can also be a cloud server that provides cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content distribution networks (CDN, Content Delivery Network), and big data and artificial intelligence platforms and other basic cloud computing services, etc. The server can be directly or indirectly connected via wired or wireless communication.

[0045] See also Figure 1 , Figure 1 : is a schematic diagram of a scenario in which a terminal device according to an embodiment of the present application executes the communication processing method, wherein the specific execution process of the terminal device executing the communication processing method is as follows:

[0046] After establishing a connection with the terminal extension module, the terminal device 10 performs clock synchronization processing on the terminal extension module, and the terminal device 10 communicates with the opposite terminal device 11 based on the terminal extension module after the clock synchronization processing.

[0047] In summary, the embodiments of the present application improve the delay caused by communication clock asynchrony by performing clock synchronization processing after establishing a connection, reduce communication delay, and improve user experience.

[0048] It should be noted that the order of description of the following embodiments is not intended to limit the priority order of the embodiments.

[0049] See also Figure 2 , Figure 2 A flow chart of a communication processing method provided for an embodiment of the present application. Although a logical order is shown in the flow chart, in some cases, the steps shown or described may be performed in an order different from that shown in the flow chart. Specifically, the execution subject of the communication processing method is a terminal device, which can communicate with the opposite device directly or through a terminal extension module. The embodiment of the present application takes the scenario in which the terminal device communicates with the opposite device based on the terminal extension module as an example. Accordingly, the terminal device includes mobile phones, tablet computers, televisions and other devices. Specifically, the process of the terminal device executing the communication processing method specifically includes:

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

[0051] It should be noted that the terminal extension module refers to a module that extends the communication capability of the terminal device. For example, for some devices that do not have the ability to communicate with other devices, the terminal device can be connected to the terminal extension module, and the information of the terminal device can be transmitted to other devices through the terminal extension module to achieve communication between the terminal device and other devices. Among them, the terminal extension module can be externally connected to the terminal device, such as connecting the terminal device via USB, and can also be built into the terminal device content, such as being set on the chip of the terminal device in a patch-type manner. For example, in the embodiment of the present application, taking Bluetooth communication as an example, the terminal extension module includes but is not limited to a Bluetooth extension module, that is, a Bluetooth Dongle.

[0052] Among them, after establishing a connection with the terminal extension module, the clock synchronization processing is performed with the terminal extension module, so that the clocks of the terminal device and the terminal extension module can be synchronized, avoiding communication delays caused by clock asynchrony. Among them, clock synchronization refers to maintaining time consistency between multiple devices or systems, and clock synchronization processing refers to a series of measures taken to achieve the effect of clock synchronization, such as master-slave synchronization, timestamp synchronization, etc., which are not limited here.

[0053] 102. The terminal extension module communicates with the opposite device based on the clock synchronization processing.

[0054] It can be understood that the terminal extension module communicates with the peer device based on clock synchronization processing, which not only realizes the communication between the terminal device and the peer device through the same patriotic terminal extension module, but also reduces the delay in communication between the terminal device and the peer device through clock synchronization processing, thereby improving user experience.

[0055] The peer device includes a device that can communicate with other devices. For example, the peer device can communicate with other devices directly 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 after clock synchronization processing.

[0056] In summary, the embodiments of the present application improve the delay caused by communication clock asynchrony by performing clock synchronization processing after establishing a connection, reduce communication delay, and improve user experience.

[0057] It should be noted that in order to realize the clock synchronization processing between the terminal device and the terminal extension module, it is necessary to interact the clock information between the terminal device and the terminal extension module. In order to realize the interaction of the clock information between the terminal device and the terminal extension module, in an embodiment of the present application, a synchronization pin is set on the terminal extension module, and clock information is sent or received based on the synchronization pin to realize the clock synchronization processing between the terminal device and the terminal extension module. That is, optionally, in some embodiments of the present application, the step of "after establishing a connection with the terminal extension module, performing clock synchronization processing on the terminal extension module" includes:

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

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

[0060] For example, the terminal extension module sends its own clock information to the terminal device through the synchronization pin, and then the terminal device generates clock synchronization information based on its own clock information and the received clock information of the terminal extension module, and sends the clock synchronization information to the terminal extension module based on the synchronization pin, so that the terminal extension module synchronizes the clock with the terminal device based on the clock synchronization information.

[0061] That is, optionally, in some embodiments of the present application, the step of “after establishing a connection with the terminal extension module, performing clock synchronization processing on the terminal extension module based on a synchronization pin preset in the terminal extension module” includes:

[0062] After establishing a connection with the terminal extension module, acquiring first clock information of the terminal extension module based on a synchronization pin preset in the terminal extension module;

[0063] Generate clock synchronization information according to the first clock information and the second clock information of the terminal device;

[0064] The clock synchronization information is sent to the terminal extension module through the synchronization pin, wherein the terminal extension module establishes clock synchronization with the terminal device based on the received clock synchronization information.

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

[0066] It is understandable that in some scenarios, the terminal device may also send its own clock information to the terminal extension module, which generates clock synchronization information based on its own clock information and the clock information received from the terminal device, and then sends the clock synchronization information to the terminal device through the synchronization pin to instruct the terminal device to make clock adjustments to complete clock synchronization with the terminal extension module.

[0067] In summary, the terminal device of the embodiment of the present application is connected to the terminal extension module so that the terminal device can communicate with other devices (such as the opposite device) by using the terminal extension module. And by setting a synchronization pin on the terminal extension module, the terminal device and the terminal extension module can be synchronized by clock, and the communication delay between the terminal device and the terminal extension module is slowed down by clock synchronization processing, thereby reducing the communication delay when the terminal device communicates with other devices.

[0068] Among them, by setting a synchronization pin on the terminal extension module, clock information can be exchanged between the terminal device and the terminal extension module, solving the problem that the terminal device and the terminal extension module cannot exchange clock information and thus cannot perform clock synchronization under traditional circumstances.

[0069] It should be noted that there are many situations in which communication delays occur. In addition to the clock asynchrony between devices, if the reading and writing frequencies of data are inconsistent, data accumulation (such as fast writing and slow reading) or data cannot be read for a long time (such as slow writing and fast reading) may also result in communication delays. Therefore, in an embodiment of the present application, on the basis of clock synchronization processing between devices, the delay in communication between devices is also slowed down by controlling the reading and writing frequency. That is, optionally, in some embodiments of the present application, after the step of "after establishing a connection with the terminal extension module, performing clock synchronization processing on the terminal extension module", the method further includes:

[0070] 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 extension module reading the first data to be transmitted from the communication host to a second frequency, wherein the first frequency is the same as the second frequency;

[0071] The terminal extension module communicates with the opposite end device based on the clock synchronization processing, including:

[0072] The first data to be transmitted is transmitted to the opposite-end device according to the first frequency and the second frequency based on the terminal extension module after clock synchronization processing.

[0073] The communication host is a device or module built into the terminal device, which is responsible for managing the communication of the terminal device. For example, for a Bluetooth device, the communication host is the Bluetooth HOST. The terminal device communicates with the opposite device through the communication host and the terminal expansion module.

[0074] In order to more clearly explain how the terminal device communicates with the peer device based on the communication host and the terminal extension module, the transmission process of the communication data or the data to be transmitted will be described below. For example, refer to Figure 3 , taking the communication data or the data to be transmitted as audio data as an example, Figure 3 : is a schematic diagram of the process of audio data transmission provided in an embodiment of the present application. Specifically, the process of audio data transmission includes:

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

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

[0077] 113. The terminal extension module sends the read audio data to the peer device.

[0078] Based on this, if the frequency of writing to the communication host is different from the frequency of reading from the communication host, communication delays will occur. For example, if the frequency of writing to the communication host is high and the frequency of reading from the communication host is slow, the audio data will accumulate in the communication host, resulting in the audio data being unable to be read immediately, causing communication delays. Conversely, if the frequency of writing to the communication host is low and the frequency of reading from the communication host is high, data will not be read from the communication host for a long time, causing delays.

[0079] Therefore, the embodiment of the present 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 delays based on clock synchronization to alleviate delays.

[0080] Among them, in the embodiment of the present application, the process of writing to the communication host has an original frequency, and similarly, the process of reading from the communication host also has an original frequency. In order to ensure the orderly processing of data, one of the two original frequencies can be selected as the target of frequency adjustment to control the reading and writing frequencies to be consistent, that is, optionally, in some embodiments of the present application, the step of "adjusting the frequency of writing the first data to be transmitted to the communication host to the first frequency, and adjusting the frequency of the terminal extension module reading the first data to be transmitted from the communication host to the second frequency" includes:

[0081] Acquire an original write frequency of writing the first data to be transmitted to the communication host, and acquire an original read frequency of reading the first data to be transmitted from the communication host by the terminal extension module;

[0082] A target frequency is selected from the original write frequency and the original read frequency, and the target frequency is used as the first frequency and the second frequency.

[0083] The original write frequency is the frequency at which the terminal device or the application in the terminal device controls writing data to the communication host before the frequency adjustment, and the original read frequency is the frequency at which the terminal extension module controls reading data from the communication host before the frequency adjustment.

[0084] Among them, by selecting one of the original write frequency and the original read frequency as the target frequency, it is helpful to ensure the stability of the reading, for example, at least the frequency on one side is guaranteed to be unchanged. In order to ensure fast and efficient data transmission, the larger frequency can be selected from the original write frequency and the original read frequency as the target frequency.

[0085] Accordingly, in the embodiment of the present application, for the receiving end (e.g., the peer device), or when the terminal device of the embodiment of the present application receives the 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 extension 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 the present application, after the step of "after establishing a connection with the terminal extension module, performing clock synchronization processing on the terminal extension module", the method further includes:

[0086] Adjusting the frequency at which the terminal extension module writes the second data to be transmitted to the communication host to a third frequency, and adjusting the frequency at which the second data to be transmitted is read from the communication host to a fourth frequency, wherein the third frequency is the same as the fourth frequency;

[0087] The terminal extension module communicates with the opposite end device based on the clock synchronization processing, including:

[0088] The second data to be transmitted transmitted by the opposite device is received based on the terminal extension module after clock synchronization processing and according to the third frequency and the fourth frequency.

[0089] For example, after the terminal device receives audio data through the terminal extension module, the terminal extension module will write the audio data to the communication host, and then the terminal device or the application in the terminal device will read the audio data from the communication host. The embodiment of the present application helps to alleviate the delay in receiving audio data by controlling the consistency of the reading and writing frequency when receiving data.

[0090] Among them, in an embodiment of the present application, the data that needs to be interacted during the frequency adjustment process can also be transmitted through the synchronization pin. For example, the terminal extension module can transmit its own read and write frequency to the terminal device based on the synchronization pin, so that the terminal device can determine the target frequency according to the read and write frequency of the communication host and the read and write frequency of the terminal extension module, and then send the target frequency to the terminal extension module to tend to the terminal extension module to adjust the reading frequency based on the target frequency, so as to achieve the consistency between the frequency written to the communication host and the frequency read by the terminal extension module from the communication host, or to achieve the consistency between the frequency written by the terminal extension module to the communication host and the frequency read by the terminal device from the communication host.

[0091] In summary, the terminal device of the embodiment of the present application is connected to the terminal extension module so that the terminal device can communicate with other devices (such as the opposite device) by using the terminal extension module. And by setting a synchronization pin on the terminal extension module, the terminal device and the terminal extension module can be synchronized by clock, and the communication delay between the terminal device and the terminal extension module is slowed down by clock synchronization processing, thereby reducing the communication delay when the terminal device communicates with other devices.

[0092] Among them, by setting a synchronization pin on the terminal extension module, clock information can be exchanged between the terminal device and the terminal extension module, solving the problem that the terminal device and the terminal extension module cannot exchange clock information and thus cannot perform clock synchronization under traditional circumstances.

[0093] Among them, by adjusting the read and write frequencies between the communication host of the terminal device and the terminal expansion module to be the same, the read and write balance is maintained during data transmission, reducing the delay problem caused by different read and write frequencies.

[0094] In summary, the communication processing method of the embodiment of the present application is suitable for scenarios based on low-power Bluetooth communication (LE Audio). It can alleviate the delay problem during low-power Bluetooth communication through clock synchronization based on the synchronization pin and consistency adjustment based on the read and write frequency, thereby improving the user experience.

[0095] Among them, both the terminal device and the opposite device can use this communication processing method to further improve the delay mitigation effect.

[0096] In order to better implement the communication processing method of the present application, the present application also provides a communication processing device based on the above communication processing method. The meanings of the terms are the same as those in the above communication processing method, and the specific implementation details can refer to the description in the method embodiment.

[0097] See also Figure 4 , Figure 4 : is a schematic diagram of the structure of a communication processing device provided in an embodiment of the present application. The communication processing device is applied to a terminal device. The communication processing device may be specifically as follows:

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

[0099] The communication module 202 is used to communicate with the opposite end device based on the terminal extension module after clock synchronization processing.

[0100] Optionally, in some embodiments of the present application, after establishing a connection with the terminal extension module, performing clock synchronization processing on the terminal extension module includes:

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

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

[0103] After establishing a connection with the terminal extension module, acquiring first clock information of the terminal extension module based on a synchronization pin preset in the terminal extension module;

[0104] Generate clock synchronization information according to the first clock information and the second clock information of the terminal device;

[0105] The clock synchronization information is sent to the terminal extension module through the synchronization pin, wherein the terminal extension module establishes clock synchronization with the terminal device based on the received clock synchronization information.

[0106] Optionally, in some embodiments of the present application, a communication host is provided in the terminal device, and after establishing a connection with the terminal extension module and performing clock synchronization processing on the terminal extension module, the method further includes:

[0107] 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 extension module reading the first data to be transmitted from the communication host to a second frequency, wherein the first frequency is the same as the second frequency;

[0108] The terminal extension module communicates with the opposite end device based on the clock synchronization processing, including:

[0109] The first data to be transmitted is transmitted to the opposite-end device according to the first frequency and the second frequency based on the terminal extension module after clock synchronization processing.

[0110] Optionally, in some embodiments of the present application, before adjusting the frequency of writing the first data to be transmitted to the communication host to the first frequency, and adjusting the frequency of the terminal extension module reading the first data to be transmitted from the communication host to the second frequency, the method further includes:

[0111] Acquire an original write frequency of writing the first data to be transmitted to the communication host, and acquire an original read frequency of reading the first data to be transmitted from the communication host by the terminal extension module;

[0112] A target frequency is selected from the original write frequency and the original read frequency, and the target frequency is used as the original first frequency and the original second frequency.

[0113] Optionally, in some embodiments of the present application, a communication host is provided in the terminal device, and after establishing a connection with the terminal extension module and performing clock synchronization processing on the terminal extension module, the method further includes:

[0114] Adjusting the frequency at which the terminal extension module writes the second data to be transmitted to the communication host to a third frequency, and adjusting the frequency at which the second data to be transmitted is read from the communication host to a fourth frequency, wherein the third frequency is the same as the fourth frequency;

[0115] The terminal extension module communicates with the opposite end device based on the clock synchronization processing, including:

[0116] The second data to be transmitted transmitted by the opposite device is received based on the terminal extension module after clock synchronization processing and according to the third frequency and the fourth frequency.

[0117] Optionally, in some embodiments of the present application, the terminal device includes a Bluetooth master device, the terminal extension module includes a Bluetooth extension device, the synchronization pin is pre-set in the Bluetooth extension device, and the peer device includes a Bluetooth slave device;

[0118] The terminal extension module communicates with the opposite end device based on the clock synchronization processing, including:

[0119] The Bluetooth master device communicates with the Bluetooth slave device through the Bluetooth extension device after clock synchronization processing.

[0120] In the embodiment of the present application, the processing module 201 is used to perform clock synchronization processing on the terminal extension module after establishing a connection with the terminal extension module, and the communication module 202 is used to communicate with the opposite device based on the terminal extension module after the clock synchronization processing.

[0121] Among them, the embodiment of the present application improves the delay effect caused by communication clock asynchrony by performing clock synchronization processing after establishing a connection, reduces communication delay, and improves user experience.

[0122] In addition, the present application also provides an electronic device, such as Figure 5 As shown, it shows a schematic diagram of the structure of the electronic device involved in this application, specifically:

[0123] 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 appreciate that Figure 5 The electronic device structure shown in the figure does not constitute a limitation on the electronic device, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.

[0124] The processor 301 is the control center of the electronic device. It uses various interfaces and lines to connect various parts of the entire electronic device. By running or executing software programs and / or modules stored in the memory 302, and calling data stored in the memory 302, it executes various functions of the electronic device and processes data, thereby monitoring the electronic device as a whole. 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 processes the operating system, user interface, and application programs, and the modem processor mainly processes wireless communications. It is understandable that the above-mentioned modem processor may not be integrated into the processor 301.

[0125] The memory 302 can be used to store software programs and modules. The processor 301 executes various functional applications and communication processing 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, wherein the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an 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 a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices. Accordingly, the memory 302 may also include a memory controller to provide the processor 301 with access to the memory 302.

[0126] The electronic device also includes a power supply 303 for supplying power to various components. Preferably, the power supply 303 can be logically connected to the processor 301 through a power management system, so as to manage charging, discharging, and power consumption through the power management system. The power supply 303 can also include any components such as one or more DC or AC power supplies, recharging systems, power supply device debugging circuits, power converters or inverters, and power status indicators.

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

[0128] Although not shown, the electronic device may further include a display unit, etc., which will not be described in detail herein. Specifically in this embodiment, the processor 301 in the electronic device will load the executable file corresponding to the process of one or more application programs into the memory 302 according to the following instructions, and the processor 301 will run the application program stored in the memory 302, thereby implementing the steps in any one of the communication processing methods provided in the embodiments of the present application.

[0129] After establishing a connection with the terminal extension module, the terminal device of the embodiment of the present application performs clock synchronization processing on the terminal extension module, and communicates with the opposite end device based on the terminal extension module after the clock synchronization processing.

[0130] Among them, by performing clock synchronization processing after establishing a connection, the delay caused by communication clock asynchrony is improved, communication delay is reduced, and user experience is improved.

[0131] The specific implementation of the above operations can be found in the previous embodiments, which will not be described in detail here.

[0132] A person of ordinary skill in the art will appreciate that all or part of the steps in the various methods of the above embodiments may be completed by instructions, or by controlling related hardware through instructions. The instructions may be stored in a computer-readable storage medium and loaded and executed by a processor.

[0133] To this end, the present application provides a computer-readable storage medium, on which a computer program is stored. The computer program can be loaded by a processor to execute the steps in any communication processing method provided in the present application.

[0134] The specific implementation of the above operations can be found in the previous embodiments, which will not be described in detail here.

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

[0136] Since the instructions stored in the computer-readable storage medium can execute the steps in any communication processing method provided in the present application, the beneficial effects that can be achieved by any communication processing method provided in the present application can be achieved. Please refer to the previous embodiments for details and will not be repeated here.

[0137] The above is a detailed introduction to a communication processing method, device, electronic device and computer-readable storage medium provided by the present application. Specific examples are used in this article to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea; at the same time, for technical personnel in this field, according to the idea of ​​the present invention, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.

Claims

1. A communication processing method, characterized in that: Applied to a terminal device, the method comprises: After establishing a connection with the terminal extension module, performing clock synchronization processing on the terminal extension module; The terminal expansion module communicates with the opposite device based on the clock synchronization processing.

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

3. The communication processing method according to claim 1, characterized in that: After establishing a connection with the terminal extension module, performing clock synchronization processing on the terminal extension module based on a synchronization pin pre-set in the terminal extension module includes: After establishing a connection with the terminal extension module, acquiring first clock information of the terminal extension module based on a synchronization pin preset in the terminal extension module; Generate clock synchronization information according to the first clock information and the second clock information of the terminal device; The clock synchronization information is sent to the terminal extension module through the synchronization pin, wherein the terminal extension module establishes clock synchronization with the terminal device based on the received clock synchronization information.

4. The communication processing method according to claim 1, characterized in that: The terminal device is provided with a communication host. After establishing a connection with the terminal extension module and performing clock synchronization processing on the terminal extension module, the method further includes: 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 extension module reading the first data to be transmitted from the communication host to a second frequency, wherein the first frequency is the same as the second frequency; The terminal extension module communicates with the opposite end device based on the clock synchronization processing, including: The first data to be transmitted is transmitted to the opposite-end device based on the terminal extension module after clock synchronization processing and according to the first frequency and the second frequency.

5. The communication processing method according to claim 4, characterized in that: Before adjusting the frequency of writing the first data to be transmitted to the communication host to the first frequency, and adjusting the frequency of the terminal extension module reading the first data to be transmitted from the communication host to the second frequency, the method further includes: Acquire an original write frequency of writing the first data to be transmitted to the communication host, and acquire an original read frequency of reading the first data to be transmitted from the communication host by the terminal extension module; A target frequency is selected from the original write frequency and the original read frequency, and the target frequency is used as the first frequency and the second frequency.

6. The communication processing method according to claim 1, characterized in that: The terminal device is provided with a communication host. After establishing a connection with the terminal extension module and performing clock synchronization processing on the terminal extension module, the method further includes: Adjusting the frequency at which the terminal extension module writes the second data to be transmitted to the communication host to a third frequency, and adjusting the frequency at which the second data to be transmitted is read from the communication host to a fourth frequency, wherein the third frequency is the same as the fourth frequency; The terminal extension module communicates with the opposite end device based on the clock synchronization processing, including: The second data to be transmitted transmitted by the opposite device is received based on the terminal extension module after clock synchronization processing and according to the third frequency and the fourth frequency.

7. The communication processing method according to claim 2, characterized in that: The terminal device comprises a Bluetooth master device, the terminal extension module comprises a Bluetooth extension device, the synchronization pin is pre-set in the Bluetooth extension device, and the peer device comprises a Bluetooth slave device; The terminal extension module communicates with the opposite end device based on the clock synchronization processing, including: The Bluetooth master device communicates with the Bluetooth slave device through the Bluetooth extension device after clock synchronization processing.

8. A communication processing device, characterized in that: The device comprises: A processing module, used for performing clock synchronization processing on the terminal extension module after establishing a connection with the terminal extension module; The communication module is used to communicate with the opposite device based on the terminal extension module after clock synchronization processing.

9. An electronic device, characterized in that: The method comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the communication processing method according to any one of claims 1 to 7 when executing the computer program.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in the communication processing method according to any one of claims 1 to 7 are implemented.

Citation Information

Cited By

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

    WO2026153091A1