CN115022927A - Data processing method, terminal device and computer readable storage medium - Google Patents

Data processing method, terminal device and computer readable storage medium Download PDF

Info

Publication number
CN115022927A
CN115022927A CN202210604734.5A CN202210604734A CN115022927A CN 115022927 A CN115022927 A CN 115022927A CN 202210604734 A CN202210604734 A CN 202210604734A CN 115022927 A CN115022927 A CN 115022927A
Authority
CN
China
Prior art keywords
link
communication channel
terminal device
period
processing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210604734.5A
Other languages
Chinese (zh)
Inventor
韦韧
吴限
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Wuqi Microelectronics Co Ltd
Original Assignee
Shanghai Wuqi Microelectronics Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Wuqi Microelectronics Co Ltd filed Critical Shanghai Wuqi Microelectronics Co Ltd
Priority to CN202210604734.5A priority Critical patent/CN115022927A/en
Publication of CN115022927A publication Critical patent/CN115022927A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • H04W28/02Traffic management, e.g. flow control or congestion control
    • H04W28/08Load balancing or load distribution
    • H04W28/082Load balancing or load distribution among bearers or channels
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B1/00Details of transmission systems, not covered by a single one of groups H04B3/00 - H04B13/00; Details of transmission systems not characterised by the medium used for transmission
    • H04B1/69Spread spectrum techniques
    • H04B1/713Spread spectrum techniques using frequency hopping
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W56/00Synchronisation arrangements
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Abstract

The application provides a data processing method, terminal equipment and a computer readable storage medium, and relates to the technical field of communication. The data processing method is applied to the terminal equipment and comprises the following steps: allocating a first link corresponding to first equipment connected with the terminal equipment to a first communication channel for processing; and allocating a second link corresponding to second equipment connected with the terminal equipment to a second communication channel for processing, wherein the first communication channel and the second communication channel share the same clock source. According to the method and the device, the plurality of communication channels sharing the clock source are arranged in the terminal equipment, when the terminal equipment is connected and communicated with the external equipment by using the Bluetooth function, the logic links of the plurality of external equipment can be distributed to different communication channels for processing, and synchronous processing of data in different links of the plurality of external equipment is realized. The delay condition during the Bluetooth transmission is effectively reduced, and the data processing efficiency and the data transmission efficiency in the Bluetooth system are improved.

Description

Data processing method, terminal device and computer readable storage medium
Technical Field
The present application relates to the field of communications technologies, and in particular, to a data processing method, a terminal device, and a computer-readable storage medium.
Background
In the existing bluetooth system, one link in the receiving end of bluetooth usually carries multiple logical links of the opposite end of bluetooth, and when data transmission is performed, the multiple logical links multiplex the same physical frequency hopping link in a time-sharing manner, so that different signals are transmitted in different time periods of the same physical frequency hopping link to perform multiplexing transmission.
However, in the prior art, when performing multiplexing, the bluetooth system can only process the data transmitted in each path in turn. However, in some transmission scenarios where there are many transmission nodes and the requirement for the real-time performance of bluetooth transmission is high, for example, when audio data is transmitted, the time for processing in the current manner is long, and the delay condition when the bluetooth system performs data transmission is severe, which results in low transmission efficiency during bluetooth communication.
Disclosure of Invention
In view of the above, embodiments of the present invention provide a data processing method, a terminal device and a computer readable storage medium to solve the problem of low transmission efficiency in bluetooth communication in the prior art.
In order to solve the above problem, in a first aspect, the present application provides a data processing method applied to a terminal device, where the method includes:
allocating a first link corresponding to first equipment connected with the terminal equipment to a first communication channel for processing;
and allocating a second link corresponding to a second device connected with the terminal device to a second communication channel for processing, wherein the first communication channel and the second communication channel share the same clock source.
In the implementation process, when a plurality of external devices are connected with a terminal device of a communication channel with a plurality of shared clock sources in a bluetooth manner, a plurality of links of the devices are respectively distributed to the communication channels for processing, and the links of the devices can be synchronously processed in the communication channels, so that the time for carrying out serial processing and scheduling on the links is reduced, a larger data volume in the devices can be synchronously processed, the transmission efficiency of data between the terminal device and the external devices is improved, the bandwidth in the bluetooth transmission is expanded, and the requirement of the external devices on low delay in the transmission is met. The delay condition during the Bluetooth transmission is effectively reduced, and the data processing efficiency and the data transmission efficiency in the Bluetooth system are improved.
Optionally, the first communication channel includes: a first address, a first interface and a first antenna; the allocating a first link corresponding to a first device connected to the terminal device to a first communication channel for processing includes:
when the first device is connected with the terminal device, allocating a first link corresponding to the first device to the first address in the first communication channel based on the first interface and the first antenna, so that the first link is connected with the first address;
acquiring an interval period of the first equipment;
and determining a first transceiving timing sequence of the first link according to the interval time period.
In the implementation process, the first communication channel includes a first address, a first interface, a first antenna, and other structures, and when the first device is connected to the terminal device via bluetooth, the first communication channel can implement connection according to the first antenna, so as to receive the first link in the first device, and place the first link in the corresponding first interface, so as to allocate the first link to the corresponding first address, and process the connected first link by the first address. After the connection, an interval period between the current time and the preset next interaction time in the first device can be obtained, so that the first transceiving time sequence occupied by the first link in the first address is determined according to the interval period, and the effect of reducing the delay can be improved.
Optionally, the determining a first transceiving timing of the first link according to the interval period includes:
and allocating a first receiving period and a first transmitting period of the first link according to the interval period, wherein the first receiving period and the first transmitting period are used as the first transceiving timing of the first link.
In the implementation process, when the terminal device is connected to the first device via bluetooth, the terminal device may receive data in the first device and send corresponding data to the first device, and the bluetooth is a frequency hopping system, and frequencies in respective time sequences are not necessarily the same, so that when the first address receives and sends data, a corresponding transceiving time period exists, and a first receiving time period and a first sending time period which are opposite to each other can be determined by the determined interval time period to serve as a first transceiving time sequence for receiving and sending data of the first link in the first communication channel. The time sequence for receiving and sending in the terminal equipment can be determined according to the interval period during communication between the external equipment and the terminal equipment, so that the terminal equipment can interact with the first equipment at corresponding time, isochronous and symmetric receiving and sending are realized, the time delay condition during Bluetooth communication is further reduced, and the real-time performance and the transmission efficiency during Bluetooth communication of the terminal equipment are improved.
Optionally, the second communication channel comprises: a second address, a second interface, and a second antenna; the allocating a second link corresponding to a second device connected to the terminal device to a second communication channel for processing includes:
when the second device is connected with the terminal device, allocating a second link corresponding to the second device to the second address in the second communication channel based on the second interface and the second antenna, so that the second link is connected with the second address;
performing clock alignment on the second device according to the acquired interval time period of the first device;
and determining a second transceiving timing in the second link when the first transceiving timing is equal to the second transceiving timing according to the interval period.
In the implementation process, the structure of the second communication channel is similar to that of the first communication channel, and also includes structures such as a second address, a second interface, a second antenna, and the like, and when the second device is bluetooth connected to the terminal device, the connection can be implemented according to the second antenna, so as to receive the second link in the second device, place the second link in the corresponding second interface, allocate the second link to the corresponding second address, and process the connected second link by the second address. Since the first device may be a reference device of a timing sequence in a bluetooth communication process, after the second link is connected to the second address, the scheduler and the link manager corresponding to the first device may acquire the interval period in the first device, so as to determine, according to the interval period, a second transceiving timing sequence, which is occupied by the second link in the second address and is equal to the first transceiving timing sequence. By time aligning the receiving and transmitting time sequences of the links, when the terminal equipment is in Bluetooth communication with a plurality of external equipment, the symmetric receiving and transmitting of simultaneous receiving and simultaneous transmitting with the plurality of external equipment are realized, and the delay condition during the Bluetooth communication is further reduced.
Optionally, the determining, according to the interval period, a second transceiving timing sequence corresponding to the first transceiving timing sequence in the second link includes:
and allocating a second receiving period and a second transmitting period of the second link according to the interval period, wherein the second receiving period and the second transmitting period are used as the second transceiving timing of the second link.
In the implementation process, after the clocks of the two links are aligned, a second receiving time period and a second sending time period which are opposite to each other can be determined according to the acquired interval time period of the first device, so as to serve as a second transceiving time sequence for receiving and sending data of the second link in the second communication channel. The time points and the time period lengths of the second receiving time period and the second transmitting time period and the first receiving time period and the first transmitting time period are the same, so that the first transceiving time sequence and the second transceiving time sequence are equal time sequences. When the links of a plurality of devices are processed simultaneously by a plurality of communication channels, the isochronous transceiving sequence can be set for the links in the plurality of communication channels according to clock alignment, isochronous and symmetric transceiving is realized, the time delay condition during bluetooth communication is further reduced, and the real-time performance and the transmission efficiency during the bluetooth communication of the terminal device are improved.
Optionally, the method further comprises:
acquiring a first link quantity in the first communication channel and a second link quantity in the second communication channel;
and determining the distribution channel of the link to be processed based on the first link quantity and the second link quantity.
In the implementation process, due to the time-division multiplexing characteristic of bluetooth, the first communication channel and the second communication channel may include one or more links that need time-division multiplexing, and the number of the links in the communication channels may affect the efficiency of the communication channels to process the links. The link quantity in the plurality of communication channels can be respectively counted, so that the links to be processed are distributed to the communication channels with the small link quantity according to the link quantity, the plurality of links can be efficiently and reasonably distributed, the situation that the excessive links are distributed to the same communication channel for processing is effectively reduced, and the processing efficiency of each communication channel on the links is improved.
Optionally, the method further comprises:
acquiring first data obtained in the first communication channel based on the first link processing and second data obtained in the second communication channel based on the second link processing;
and processing according to the first data and the second data to obtain target data.
In the implementation process, the first device and the second device are external multiple associated devices, and after each communication channel processes each link to obtain corresponding multiple uplink data, the multiple uplink data and downlink data in the terminal device are integrated to obtain corresponding target data, so that the occupied comprehensive bandwidth is reduced.
Optionally, the method further comprises:
forwarding the target data to the first device based on the first communication channel;
forwarding the target data to the second device based on the second communication channel.
In the implementation process, the terminal device may further forward the target data obtained by integration to the device corresponding to each link through the communication channel corresponding to each link, thereby implementing comprehensive processing and sending of the data, and further reducing the occupied comprehensive bandwidth.
In a second aspect, the present application further provides a terminal device, where the terminal device includes a clock source, a first communication channel and a second communication channel, and the first communication channel and the second communication channel are respectively connected to the clock source to share the clock source;
the first communication channel is used for processing a first link corresponding to first equipment connected with the terminal equipment;
and the second communication channel is used for processing a second link corresponding to a second device connected with the terminal device.
In a third aspect, an embodiment of the present application further provides a computer-readable storage medium, where computer program instructions are stored, and when the computer program instructions are read and executed by a processor, the computer program instructions execute steps in any implementation manner of the data processing method.
To sum up, the present application provides a data processing method, a terminal device, and a computer readable storage medium, which implement synchronous processing of different links through a plurality of communication channels sharing a clock source, reduce time for performing serial processing and scheduling on a plurality of links, improve data transmission efficiency between the terminal device and an external device, and expand bandwidth during bluetooth transmission, so as to meet requirements of various external devices on low latency during transmission. The delay condition during the Bluetooth transmission is effectively reduced, and the data processing efficiency and the data transmission efficiency in the Bluetooth system are improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required to be used in the embodiments of the present application will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and that those skilled in the art can also obtain other related drawings based on the drawings without inventive efforts.
Fig. 1 is a schematic view of an operating environment of a data processing method according to an embodiment of the present application;
fig. 2 is a schematic flowchart of a data processing method according to an embodiment of the present application;
fig. 3 is a detailed flowchart of a step S200 according to an embodiment of the present disclosure;
fig. 4 is a detailed flowchart of a step S300 according to an embodiment of the present disclosure;
fig. 5 is a schematic flow chart of another data processing method according to an embodiment of the present application;
fig. 6 is a schematic flowchart of another data processing method according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of a terminal device 100 according to an embodiment of the present application.
Icon: 100-a terminal device; 110-a first device; 120-a second device; 130-a first communication channel; 131 — a first link; 132 — first address; 133 — a first interface; 134-a first antenna; 140-a second communication channel; 141-a second link; 142-a second address; 143-a second interface; 144-a second antenna; 150-clock source.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. It is obvious that the described embodiments are only a few of the embodiments of the present application, and not all embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present application without any creative effort belong to the protection scope of the embodiments of the present application.
In the current bluetooth system for communication, one link of a receiving end of bluetooth usually carries a plurality of logical links of an opposite bluetooth end, and when data transmission is performed, the plurality of logical links multiplex the same physical frequency hopping link in a time-sharing manner, so that different signals are transmitted in different time periods of the same physical frequency hopping link to perform multiplex transmission.
However, in the prior art, when performing multiplexing, the bluetooth system can only process the data transmitted in each path in turn. However, in a transmission scenario where there are many transmission nodes and the requirement for the real-time performance of bluetooth transmission is high, for example, when audio data is transmitted, the time for processing in the current manner is long. For example, in the application of a wireless MIC (Microphone), a plurality of MIC terminals are generally provided at present, a receiving terminal is linked through bluetooth, and then the receiving terminal is connected to a mobile phone or other recording equipment for recording through a USB interface or other wired interfaces or wireless connection manners. If there are many wireless MIC devices, the receiving end of bluetooth needs to receive all data of the MIC in the same time period before performing the integration process and outputting the data. However, the bluetooth system is a Time Division Multiple Access (TDMA) Time division system, and only a link of one wireless MIC terminal can be connected at the same Time to independently receive or transmit data to one wireless MIC terminal, so that at each interactive Time, after the first wireless MIC terminal is completed by Time division reception or transmission, the second wireless MIC terminal can be served, i.e., processed in a serial manner.
In this case, the more wireless MIC terminals exist, the greater the bluetooth transmission pressure for the receiving terminal, and the more wireless MIC terminals connected to the receiving terminal, the longer the processing time, which results in a larger delay when bluetooth supports multiplexing, but the current wireless MIC has a higher demand for low delay, for example, the delay is controlled within 15 ms. Therefore, the delay condition during bluetooth transmission is serious at present, which results in low data processing efficiency, transmission efficiency and communication efficiency during bluetooth communication, and cannot meet the requirements of users.
In order to solve the above problem, an embodiment of the present application provides a data processing method, which is applied to a terminal device, where the terminal device may be an electronic device with a logic computation function, such as a server, a Personal Computer (PC), an earphone, a tablet Computer, a smart phone, and a Personal Digital Assistant (PDA).
To facilitate understanding of the present embodiment, a detailed description is first given of a terminal device and an operating environment for executing a data processing method disclosed in the embodiments of the present application.
Referring to fig. 1, fig. 1 is a schematic diagram of an operating environment of a data processing method according to an embodiment of the present application, where the operating environment includes the following interactive devices: the terminal device 100 is connected with the first device 110 and the second device 120 through Bluetooth respectively to carry out data communication or interaction.
It is noted that the first device 110 and the second device 120 may be the same type of associated devices, or may be different types of associated devices, such as devices associated with multiple wireless MIC terminals or earphone terminals. In the embodiment provided by the present application, only one implementation that the terminal device 100 is connected to two external devices is shown, the terminal device 100 may also be connected to a greater number of external devices, and the method for processing data of multiple devices is similar to that for processing data of two devices, and is not described again.
Alternatively, the terminal device 100 may be used as a receiving end of bluetooth, and may be connected to other devices for processing data through a wired connection manner or a wireless connection manner such as a USB interface, or the terminal device 100 may directly process data.
Referring to fig. 2, fig. 2 is a schematic flow chart of a data processing method according to an embodiment of the present application, where the method includes: steps S200-S300.
Step S200, allocating a first link corresponding to the first device connected to the terminal device to a first communication channel for processing.
The first link is a logical link established when the first device and the terminal device are in Bluetooth connection, and corresponding data are transmitted through a control and adaptive protocol.
Step S300, allocating a second link corresponding to a second device connected to the terminal device to a second communication channel for processing.
The second link is also a logical link established when the second device is in bluetooth connection with the terminal device, and transmits corresponding data through a control and adaptive protocol.
Optionally, the first device and the second device are external devices that establish a bluetooth connection with the terminal device, for example, multiple devices of the same type or different types, such as a wireless MIC device and an earphone device. And the external device may further include a larger number of devices such as a third device and a fourth device, and when the external device establishes a bluetooth connection with the terminal device, the terminal device is used as a Master device (Master device), and one or more external devices are used as Slave devices (Slave devices), and the connection is established through the processes of page and role switch.
Optionally, when the plurality of external devices are connected to the terminal device, the plurality of external devices may be further sorted according to the time when the external devices establish the bluetooth connection with the terminal device, so that the links of the respective devices are correspondingly allocated according to the time when the connection is established.
It is worth mentioning that a plurality of communication channels extending may be included in the terminal device. For example, the extension mode may be to establish a plurality of communication channels corresponding to the structures in the same communication chip during design and production, or to connect a plurality of communication chips, where each communication chip may include one communication channel, so that the plurality of communication channels have relevance. And, in the case of expanding to obtain a plurality of communication channels, delay condition in data processing is reduced by setting a clock source. The multiple communication channels in the same communication chip can be respectively connected with the same clock source in the chip, and the multiple communication channels in different communication chips can also be connected with an external clock source, so that the communication channels sharing the clock source can be obtained, the time in the multiple communication channels is synchronized, and subsequent scheduling is facilitated.
Illustratively, the clock source may be a hardware clock source or Timer such as a HW Timer or a Trans Queue.
Optionally, in the terminal device, the software layer may be modified correspondingly according to the extension of the hardware structure, and the processor is provided with a Link Manager (LM) and a Link Driver (LD) for each communication channel, and a Scheduler (Scheduler) for scheduling a process of connecting and processing the plurality of communication channels and links. The link managers corresponding to each communication channel respectively distribute the links of the external equipment acquired from the terminal equipment to the communication channels corresponding to the links, so that the links of the equipment can be distributed to different communication channels for processing, but not all the links are processed in a serial mode in one communication channel, the processing time is reduced, larger data volume in the equipment can be processed synchronously, the processing efficiency of the terminal equipment on the links is improved, the transmission efficiency of data between the terminal equipment and the external equipment is improved, the bandwidth during Bluetooth transmission is expanded, and the requirement of various external equipment on low delay during transmission is met.
In the embodiment shown in fig. 2, the delay condition during bluetooth transmission is effectively reduced, and the processing efficiency and transmission efficiency of data in the bluetooth system are improved.
Optionally, the first communication channel may include: referring to fig. 3, fig. 3 is a detailed flowchart of a step S200 according to an embodiment of the present application, where the step S200 may further include: steps S210-S230.
Step S210, when the first device is connected to the terminal device, allocating a first link corresponding to the first device to the first address in the first communication channel based on the first interface and the first antenna, so that the first link is connected to the first address.
The first link of the first device is allocated to the first communication channel by the link manager corresponding to the first communication channel, and the first antenna in the first communication channel can receive the first link and place the first link into the first interface for multiplexing, so that the first link is allocated to the corresponding first address for processing.
Step S220, acquiring an interval period of the first device.
The first device may be an external device that establishes a bluetooth connection with the terminal device first in the time domain, or may be an external device that is designated for performing time alignment. After the first device is connected with the terminal device through the Bluetooth, the link manager can acquire the next interactive time in the first device according to the corresponding interactive communication mode, and determine the time interval between the current time and the next interactive time between the first device and the terminal device by combining the current time.
Step S230, determining a first transceiving timing of the first link according to the interval period.
When the terminal device is connected with the first device through bluetooth, the terminal device may receive data in the first device and send corresponding data to the first device, and the bluetooth is a frequency hopping system, and frequencies in each time sequence are not necessarily the same, so that, in order to further reduce transmission efficiency during bluetooth communication, a first transceiving time sequence occupied by the first address when the terminal device interacts with the first device to receive and send data in the first link may be determined according to the determined interval time period, so as to symmetrically and isochronously transceive the data.
Optionally, the first receiving period and the first transmitting period of the first link are allocated according to the interval period, and the first receiving period and the first transmitting period are used as the first transceiving timing of the first link. In order to perform symmetric and equal-field transceiving, the first receiving period and the second receiving period may be set to the same period, for example, both may be set to 2 slots. The Bluetooth Connection can be similar to an SCO (Synchronous Connection ordered, which is mainly used for transmitting data communication Connection with high time requirement), so that the terminal equipment can regularly transmit and receive with the first equipment at corresponding time, the delay condition during the Bluetooth communication is further reduced, and the real-time performance and the transmission efficiency during the Bluetooth communication of the terminal equipment are improved.
In the embodiment shown in fig. 3, an interval period between the current time and the preset next interaction time in the first device may be obtained based on the connection, so as to determine the first transceiving timing sequence occupied by the first link in the first address according to the interval period, thereby improving the effect of reducing the delay.
Optionally, the second communication channel may include: referring to fig. 4, fig. 4 is a detailed flowchart of a step S300 according to an embodiment of the present disclosure, where the step S300 may further include: steps S310-S330.
Step S310, when the second device is connected to the terminal device, allocating a second link corresponding to the second device to the second address in the second communication channel based on the second interface and the second antenna, so that the second link connects to the second address.
And allocating a second link of the second device to a second communication channel by a link manager corresponding to the second communication channel, wherein a second antenna in the second communication channel can receive the second link and place the second link into a second interface for multiplexing so as to allocate the second link to a corresponding second address for processing.
Step S320, performing clock alignment on the second device according to the acquired interval period of the first device.
In the present application, the first device is used as a reference device, the interval time interval in the first device is used as a reference time interval when clocks are aligned, other devices may also be used as reference devices, the interval time interval corresponding to the other devices is used as a reference time interval when clocks are always aligned, and other cases are not described again. The scheduler may obtain an interval period of the first device obtained in the link manager corresponding to the first communication channel, and send the interval period to the link manager corresponding to the second communication channel, so as to align a time when the second device interacts with the terminal device with a time in the first device according to the shared clock source and the interval period, thereby enabling the first device and the second device to interact with the terminal device in a communication mode with the same time.
Optionally, since the interval period in the first device can be changed correspondingly according to the change of the communication mode, when the second communication channel performs clock alignment, the second communication channel can also perform corresponding alignment according to the acquired interval period, and when the communication mode of the reference device changes, the time alignment condition of the other device can be adjusted correspondingly.
Step S330, determining a second transceiving timing in the second link when the first transceiving timing is equal to the second transceiving timing according to the interval period.
When a plurality of external devices are connected with the terminal device through Bluetooth, synchronous processing of simultaneously receiving data and simultaneously sending data by the plurality of devices and the terminal device is realized, and communication modes of the plurality of devices can be further synchronized. The synchronization mode may be that on the basis of clock alignment, the scheduler and the link manager acquire a first transceiving timing in the first communication channel, so as to determine a second transceiving timing, which is occupied in the second communication channel and is equal to the first transceiving timing, according to the aligned interval period.
Optionally, a second receiving period and a second transmitting period of the second link are allocated according to the interval period, and the second receiving period and the second transmitting period are used as a second transceiving timing of the second link. The first receiving time interval and the first sending time interval are equal to the second receiving time interval and the second sending time interval in time domain, so the first transceiving time sequence and the second transceiving time sequence are equal time sequences. When the links of a plurality of devices are processed simultaneously by a plurality of communication channels, isochronous transmission and reception orders can be set for the plurality of links in the plurality of communication channels according to clock alignment, and isochronous and symmetric transmission and reception between the plurality of devices and the terminal device can be realized.
It should be noted that the first antenna and the second antenna may both be RF (Radio Frequency, video) antennas, the first interface and the second interface may both be PHY (Physical Layer) interfaces, and the first Address and the second Address may both be MAC (Media Access Control Address) addresses, such as local area network Address (LAN Address), MAC Address, Ethernet Address, and the like.
When a communication chip of a terminal device is manufactured, distances, angles, couplings, a manufacturing process and the like among a plurality of antennas all affect the isolation of a plurality of communication channels, and when the isolation is poor, the communication efficiency of the communication channels may be negatively affected. Therefore, the adverse effect brought by the antenna isolation can be reduced by adopting the clock alignment and synchronous transceiving modes, the bandwidth is optimized through scheduling, and even if the Bluetooth connection of a plurality of devices has a frequency hopping conflict condition, the Bluetooth communication efficiency of the plurality of devices cannot be greatly influenced.
In the embodiment shown in fig. 4, by time-aligning the transceiving timings of the multiple links, when the terminal device performs bluetooth communication with multiple external devices, symmetric transceiving for simultaneously receiving and simultaneously transmitting with the multiple external devices is realized, thereby further reducing the delay time during bluetooth communication.
Optionally, referring to fig. 5, fig. 5 is a schematic flow chart of another data processing method provided in the embodiment of the present application, where the method may further include: steps S410-S420.
Step S410, acquiring a first link number in the first communication channel and a second link number in the second communication channel.
When the number of external devices connected to the terminal device is large, a plurality of links are provided and need to be processed. When the terminal device receives a plurality of links to be processed, there may be a situation that the plurality of links are queued to be processed in a time-sharing manner in a plurality of communication channels in the terminal device. In order to improve the processing efficiency of the terminal device on a plurality of links, the number of links in each communication channel can be respectively counted through the corresponding link manager.
Step S420, determining an allocation channel of the link to be processed based on the first link quantity and the second link quantity.
When the number of the links is large, the processing pressure of the communication channel is large, and the processing efficiency is low. Therefore, the scheduler can compare the number of the links obtained by statistics, and allocate the link to be processed to the communication channel for processing by using the communication channel with the smaller number of links as the allocation channel of the current link to be processed through the corresponding link manager, so as to improve the overall efficiency of the terminal device in processing the link.
For example, when the number of the first links in the first communication channel is 10, and the number of the second links in the second communication channel is 5, the second communication channel may be preferentially used as the distribution channel of the links to be processed.
Alternatively, for some links which are processed by the specified channel, the links may not be allocated according to the number of the links, but may be directly allocated to the corresponding communication channel by the corresponding link manager for processing.
In the embodiment shown in fig. 5, the links to be processed are allocated to the communication channels with a smaller number of links according to the number of links, so that multiple links can be efficiently and reasonably allocated, the situation that too many links are allocated to the same communication channel for processing is effectively reduced, and the processing efficiency of each communication channel on the links is improved.
Optionally, referring to fig. 6, fig. 6 is a schematic flowchart of another data processing method provided in the embodiment of the present application, where the method may further include: steps S510-S540.
Step S510, obtain first data obtained in the first communication channel based on the first link processing, and second data obtained in the second communication channel based on the second link processing.
Since the first device and the second device are external multiple related slave devices, the data transmitted by the multiple devices to the terminal device via different links is multiple uplink data. Each link is processed in each communication channel, and a plurality of uplink data, such as audio data uploaded by a plurality of wireless MIC devices, can be obtained, and the processor can further obtain the plurality of uplink data to perform corresponding operations.
Step S520, processing according to the first data and the second data to obtain target data.
The processor can perform integration processing according to the plurality of uplink data and the downlink data of the terminal device to obtain target data for output. For example, audio data uploaded by a plurality of wireless MIC devices may be mixed to obtain mixed data for output.
Step S530, forwarding the target data to the first device based on the first communication channel.
Step S540, forwarding the target data to the second device based on the second communication channel.
In order to improve the sending efficiency of the target data, the target data can be forwarded to the corresponding external device in a downlink manner through each address in each communication channel, so that the occupied comprehensive bandwidth is further reduced.
In the embodiment shown in fig. 6, the data can be comprehensively processed and synchronously forwarded, so that the occupied comprehensive bandwidth is effectively reduced.
Referring to fig. 7, fig. 7 is a schematic structural diagram of a terminal device 100 according to an embodiment of the present disclosure, where the terminal device 100 may include a first communication channel 130, a second communication channel 140, and a clock source 150. The first communication channel 130 and the second communication channel 140 are respectively connected to the clock source 150 to share the clock source 150, and may be electrically connected through one or more communication buses or signal lines.
A first communication channel 130, configured to process a first link 131 corresponding to a first device connected to the terminal device 100;
and a second communication channel 140 for processing a second link 141 corresponding to a second device connected to the terminal device 100.
In an optional implementation manner, the terminal device 100 may further include a processor, where the processor may include a first manager and a scheduler, and the first communication channel 130 may further include a first address 132, a first interface 133, and a first antenna 134;
when the first device is connected to the terminal device 100, a first manager, configured to assign a first link 131 corresponding to the first device to a first address 132 in the first communication channel based on the first interface 133 and the first antenna 134, so that the first link 131 is connected to the first address 132; a scheduler for acquiring an interval period of the first device; the first transceiving timing of the first link 131 is determined according to the interval period.
In an optional embodiment, the scheduler is further configured to allocate a first receiving period and a first transmitting period of the first link 131 according to the interval period, and use the first receiving period and the first transmitting period as the first transceiving timing of the first link 131.
In an optional implementation manner, the processor may further include a second manager, and the second communication channel may further include: a second address 142, a second interface 143, and a second antenna 144;
a second manager, configured to assign a second link 141 corresponding to the second device to a second address 142 in the second communication channel based on the second interface 143 and the second antenna 144 when the second device is connected to the terminal device 100, so that the second link 141 is connected to the second address 142;
the scheduler is used for carrying out clock alignment on the second equipment according to the acquired interval time period of the first equipment; the second transceiving timing in the second link 141, which is equal to the first transceiving timing, is determined according to the interval period.
In an optional embodiment, the scheduler is further configured to allocate a second receiving period and a second transmitting period of the second link 141 according to the interval period, and use the second receiving period and the second transmitting period as the second transceiving timing of the second link 141.
In an optional implementation manner, the first manager is further configured to obtain the number of the first links 131 in the first communication channel; the second manager is further used for acquiring the number of the second links 141 in the second communication channel;
the scheduler is further configured to determine an allocation channel of the pending link based on the number of the first links 131 and the number of the second links 141.
In an optional embodiment, the processor is configured to obtain first data processed based on the first link 131 in the first communication channel, and second data processed based on the second link 141 in the second communication channel; and processing according to the first data and the second data to obtain target data.
In an optional embodiment, the first communication channel 130 is further configured to forward the target data to the first device;
the second communication channel 140 is further configured to forward the target data to the second device.
Alternatively, the processor may be an integrated circuit chip having signal processing capabilities. The Processor may be a general-purpose Processor, and includes a Central Processing Unit (CPU), a Network Processor (NP), and the like; the Integrated Circuit may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other programmable logic device, a discrete gate or transistor logic device, or a discrete hardware component.
Since the principle of the terminal device 100 in the embodiment of the present application to solve the problem is similar to that in the foregoing embodiment of the data processing method, the implementation of the terminal device 100 in the embodiment of the present application may refer to the description in the foregoing embodiment of the data processing method, and repeated details are not repeated.
The embodiment of the present application further provides a computer-readable storage medium, where computer program instructions are stored, and when the computer program instructions are read and executed by a processor, the steps in any one of the data processing methods provided in the present embodiment are executed.
To sum up, the embodiments of the present application provide a data processing method, a terminal device, and a computer readable storage medium, which implement synchronous processing on different links through multiple communication channels sharing a clock source, reduce time for performing serial processing and scheduling on multiple links, improve data transmission efficiency between the terminal device and an external device, and expand bandwidth during bluetooth transmission, so as to meet low latency requirements of multiple external devices during transmission. The delay condition during the Bluetooth transmission is effectively reduced, and the data processing efficiency and the data transmission efficiency in the Bluetooth system are improved.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus may be implemented in other manners. The apparatus embodiments described above are merely illustrative, and for example, the block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of devices according to various embodiments of the present application. In this regard, each block in the block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams, and combinations of blocks in the block diagrams, can be implemented by special purpose hardware-based systems that perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, functional modules in the embodiments of the present application may be integrated together to form an independent part, or each module may exist alone, or two or more modules may be integrated to form an independent part.
The functions, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Therefore, the present embodiment further provides a readable storage medium, in which computer program instructions are stored, and when the computer program instructions are read and executed by a processor, the computer program instructions perform the steps of any of the block data storage methods. Based on such understanding, the technical solution of the present application or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above description is only an example of the present application and is not intended to limit the scope of the present application, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present application shall be included in the protection scope of the present application. It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures.
The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily think of the changes or substitutions within the technical scope of the present application, and shall be covered by the scope of the present application.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.

Claims (10)

1. A data processing method is applied to terminal equipment, and is characterized in that the method comprises the following steps:
allocating a first link corresponding to first equipment connected with the terminal equipment to a first communication channel for processing;
and allocating a second link corresponding to a second device connected with the terminal device to a second communication channel for processing, wherein the first communication channel and the second communication channel share the same clock source.
2. The method of claim 1, wherein the first communication channel comprises: a first address, a first interface and a first antenna; the allocating a first link corresponding to a first device connected to the terminal device to a first communication channel for processing includes:
when the first device is connected with the terminal device, allocating a first link corresponding to the first device to the first address in the first communication channel based on the first interface and the first antenna, so that the first link is connected with the first address;
acquiring an interval period of the first equipment;
and determining a first transceiving timing sequence of the first link according to the interval time period.
3. The method of claim 2, wherein the determining the first transceiving timing for the first link according to the gap period comprises:
and allocating a first receiving period and a first transmitting period of the first link according to the interval period, wherein the first receiving period and the first transmitting period are used as the first transceiving timing of the first link.
4. The method of claim 2, wherein the second communication channel comprises: a second address, a second interface, and a second antenna; the allocating a second link corresponding to a second device connected to the terminal device to a second communication channel for processing includes:
when the second device is connected with the terminal device, allocating a second link corresponding to the second device to the second address in the second communication channel based on the second interface and the second antenna, so that the second link is connected with the second address;
performing clock alignment on the second device according to the acquired interval time period of the first device;
and determining a second transceiving timing in the second link when the first transceiving timing is equal to the second transceiving timing according to the interval period.
5. The method according to claim 4, wherein said determining a second transceiving timing in the second link corresponding to the first transceiving timing according to the gap period comprises:
and allocating a second receiving period and a second transmitting period of the second link according to the interval period, wherein the second receiving period and the second transmitting period are used as the second transceiving timing of the second link.
6. The method of claim 1, further comprising:
acquiring a first link quantity in the first communication channel and a second link quantity in the second communication channel;
and determining the distribution channel of the link to be processed based on the first link quantity and the second link quantity.
7. The method of claim 1, further comprising:
acquiring first data obtained in the first communication channel based on the first link processing and second data obtained in the second communication channel based on the second link processing;
and processing according to the first data and the second data to obtain target data.
8. The method of claim 7, further comprising:
forwarding the target data to the first device based on the first communication channel;
forwarding the target data to the second device based on the second communication channel.
9. A terminal device is characterized in that the terminal device comprises a clock source, a first communication channel and a second communication channel, wherein the first communication channel and the second communication channel are respectively connected with the clock source so as to share the clock source;
the first communication channel is used for processing a first link corresponding to first equipment connected with the terminal equipment;
and the second communication channel is used for processing a second link corresponding to a second device connected with the terminal device.
10. A computer-readable storage medium having computer program instructions stored thereon for execution by a processor to perform the steps of the method of any of claims 1-8.
CN202210604734.5A 2022-05-30 2022-05-30 Data processing method, terminal device and computer readable storage medium Pending CN115022927A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210604734.5A CN115022927A (en) 2022-05-30 2022-05-30 Data processing method, terminal device and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210604734.5A CN115022927A (en) 2022-05-30 2022-05-30 Data processing method, terminal device and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN115022927A true CN115022927A (en) 2022-09-06

Family

ID=83071990

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210604734.5A Pending CN115022927A (en) 2022-05-30 2022-05-30 Data processing method, terminal device and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN115022927A (en)

Similar Documents

Publication Publication Date Title
US9485778B2 (en) WiFi real-time streaming and bluetooth coexistence
US9008149B2 (en) Synchronous access method, and communication device and system in frequency hopping radio communication
US10517111B2 (en) Mitigating scheduling conflicts in wireless communication devices
US7801153B2 (en) Communication scheduling of network nodes using fair access and weighting techniques
US8873587B2 (en) Communication method using time-division multiplexing
CN101821967B (en) Method for sharing wireless channel resource in communication system
CN102017717A (en) MAC protocol for multi-channel wireless networks
US11540140B2 (en) Neighbor awareness networking time slot allocation
WO2015196685A1 (en) Clock synchronization method and apparatus
TW201032656A (en) Method and apparatus of dynamic bandwidth management
CN111885553A (en) Bluetooth device communication method and related device
CN111901730A (en) TWS earphone interaction method and system and TWS earphone
KR20160035024A (en) System and method for ofdma resource management in wlan
US20230164827A1 (en) Communications method and apparatus
CN112165733A (en) Method and system for building point-to-point multichannel network of private protocol
US10064097B2 (en) Interface shaping for virtual interfaces
CN115022927A (en) Data processing method, terminal device and computer readable storage medium
WO2023065328A1 (en) Resource allocation method and apparatus in multi-connection scenario
US9203505B2 (en) Virtual data framing for data packet transmission over channels of a communications network
WO2023030052A1 (en) Communication method and device
WO2023279359A1 (en) Communication method and apparatus
WO2023093461A1 (en) Resource allocation method in dual wifi mode, and device and storage medium
CN113473626B (en) Multi-user ranging method and system for wireless self-organizing network
WO2023028863A1 (en) Communication method and apparatus
US20230309146A1 (en) Over-the-air ble link-cluster operation

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination