WO2023207067A1 - Data sending apparatus, data receiving apparatus, data transmission method, and data transmission system - Google Patents

Data sending apparatus, data receiving apparatus, data transmission method, and data transmission system Download PDF

Info

Publication number
WO2023207067A1
WO2023207067A1 PCT/CN2022/134820 CN2022134820W WO2023207067A1 WO 2023207067 A1 WO2023207067 A1 WO 2023207067A1 CN 2022134820 W CN2022134820 W CN 2022134820W WO 2023207067 A1 WO2023207067 A1 WO 2023207067A1
Authority
WO
WIPO (PCT)
Prior art keywords
data
data packets
data frame
clock
frame
Prior art date
Application number
PCT/CN2022/134820
Other languages
French (fr)
Chinese (zh)
Inventor
高林
韩云锋
岳华伟
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2023207067A1 publication Critical patent/WO2023207067A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/90Buffering arrangements
    • H04L49/9084Reactions to storage capacity overflow
    • H04L49/9089Reactions to storage capacity overflow replacing packets in a storage arrangement, e.g. pushout
    • H04L49/9094Arrangements for simultaneous transmit and receive, e.g. simultaneous reading/writing from/to the storage element
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04JMULTIPLEX COMMUNICATION
    • H04J3/00Time-division multiplex systems
    • H04J3/02Details
    • H04J3/06Synchronising arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/90Buffering arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes

Definitions

  • the present application relates to the technical field of data synchronous transmission, and in particular to a data sending device, receiving device, transmission method and transmission system.
  • Synchronous transmission is to send data in real time through a synchronous link based on the same clock beat.
  • Embodiments of the present application provide a data sending device, a receiving device, a transmission method and a transmission system to solve the problem of synchronization transmission deviation between the data clock of the data and the link clock of the synchronization link during synchronous transmission.
  • a data sending device for transmitting data to a data receiving device through a data frame in a synchronization link; the data carries a data clock, and the synchronization link has a link clock; the data sending device includes: A controller and a first communication interface; the first controller is used to: control the first communication interface, send data in the form of data packets through data frames to the data receiving device within a preset time; obtain the link within the preset time The count value of the link clock and the count value of the data clock; calculate the clock count difference; the clock count difference is the difference between the count value change of the link clock and the count value change of the data clock within the preset time; according to The clock count difference controls the first communication interface to adjust the number of data packets transmitted in the data frame, and sends instruction information to the data receiving device.
  • the instruction information is used to instruct the adjustment of the number of data packets transmitted in the data frame.
  • the above-mentioned data sending device obtains the count value of the data clock of the data and the count value of the link clock of the synchronization link, thereby calculating the clock count difference, and calculates the data clock through the clock count difference. and the link clock, and adjusts the number of data packets in a single data frame on the synchronization link according to the calculated deviation, and sends the indication information to the data receiving device.
  • the deviation between the data clock of the data in the synchronized wireless transmission and the link clock of the synchronized link is accurately measured, and the data packets are adjusted according to the measurement results, thereby avoiding the problem that the data receiving device is receiving data due to the deviation. Errors occur during the packetization process, ultimately affecting the quality of the data being transmitted.
  • the indication information includes adjustment direction information; the adjustment direction information indicates increasing the number of data packets transmitted in the data frame; or the adjustment direction information indicates reducing the number of data packets transmitted in the data frame.
  • the adjustment direction information is used to indicate to the data receiving device whether the number of data packets in the adjusted data frame is increased or decreased. The data receiving device correspondingly adjusts and analyzes the number of data packets transmitted in the data frame according to the adjustment direction information.
  • the indication information also includes adjustment quantity information; when the adjustment direction information indicates increasing the number of data packets transmitted in the data frame, the adjustment quantity information is the increased number of data packets transmitted in the data frame. Alternatively, when the adjustment direction information indicates reducing the number of data packets transmitted in the data frame, the adjustment quantity information is the reduced number of data packets transmitted in the data frame.
  • the data receiving device can increase the number of parsed data packets or reduce the number of parsed data packets according to the preset number.
  • the data sending device may also include the actual number of adjusted data packets, that is, the adjustment quantity information, in the instruction information and send it to the data receiving device, and then the data receiving device adjusts the data according to the adjustment quantity information included in the received instruction information.
  • the number of packets parsed may also include the actual number of adjusted data packets, that is, the adjustment quantity information, in the instruction information and send it to the data receiving device, and then the data receiving device adjusts the data according to the adjustment quantity information included in the received instruction information.
  • the number of packets parsed.
  • the indication information also includes an adjustment time point; the adjustment time point is used to indicate a time point at which to increase or decrease the number of data packets on the data frame, and the adjustment time point includes absolute time A or relative time B; Absolute time A is the corresponding time point when the count value of the link clock is A; relative time B is the time point after time B has passed after the time point of the indication information.
  • the data sending device sends the time of the adjusted data packet of the data frame to the data receiving device in the form of absolute time A or relative time B.
  • the data receiving device can locate the adjusted data packet according to the absolute time A or relative time B. frames, and then adjust the number of parsed packets accordingly.
  • the data is audio data or video data.
  • the data sending device further includes a first player; the first controller is further configured to adjust the progress of playing audio data or video data on the first player according to the clock count difference.
  • the clock count difference is used to adjust the progress of playing audio data or video data on the first player to achieve synchronization of the playback progress on the first player of the data sending device and the playback progress on the data receiving device.
  • a data receiving device for receiving a data packet from a data sending device through a data frame in a synchronization link.
  • the data packet carries data; the data carries a data clock, and the synchronization link has a link clock.
  • the data receiving device includes: a second controller and a second communication interface; the second controller is used to: control the second communication interface, receive data packets through the data frame, and receive indication information, the indication information is used to instruct the adjustment of the data frame for transmission The number of data packets; adjust and parse the number of data packets received through the data frame according to the instruction information.
  • the indication information includes adjustment direction information; the adjustment direction information indicates increasing the number of data packets transmitted in the data frame.
  • the adjustment direction information indicates reducing the number of data packets transmitted in the data frame.
  • the second controller is configured to: if the received adjustment direction information indicates increasing the number of data packets transmitted in the data frame, increase the number of parsed data packets received through the data frame; if the received adjustment direction information indicates decreasing the number of data packets transmitted in the data frame The number of packets transmitted is reduced by the number of packets received via parsing the data frame.
  • the indication information also includes adjustment quantity information; the adjustment quantity information is an increase in the number of data packets transmitted in the data frame, or a decrease in the number of data packets transmitted in the data frame.
  • the second controller is configured to: if the received adjustment direction information indicates increasing the number of data packets transmitted in the data frame, increase parsing of the data packets received through the data frame; increase the number of parsed data packets to the adjustment quantity information; if receiving The received adjustment direction information indicates that the number of data packets transmitted in the data frame is reduced, and the number of data packets received through the data frame is reduced; the number of parsed data packets is reduced to the adjustment quantity information.
  • the indication information also includes an adjustment time point; the adjustment time point is used to indicate a time point at which to increase or decrease the number of data packets on the data frame, and the adjustment time point includes absolute time A or relative time B; Absolute time A is the corresponding time point when the count value of the link clock is A; relative time B is the time point after time B has passed after the time point of the indication information.
  • the second controller is used to: if the received adjustment direction information indicates increasing the number of data packets transmitted in the data frame, after the adjustment time point, increase the number of parsed data packets received through the data frame; if the received adjustment direction If the information indicates that the number of data packets transmitted in the data frame is reduced, then after the adjustment time point, the number of data packets received through the data frame is reduced.
  • the data is audio data or video data.
  • a data transmission method which sends data in the form of data packets to the data receiving device through the data frame of the synchronization link within a preset time; the data carries a data clock, and the synchronization link has a link path clock; obtain the count value of the link clock and the count value of the data clock within the preset time; calculate the clock count difference; the clock count difference is the change in the count value of the link clock and the count value of the data clock within the preset time The difference between the changes; according to the clock count difference, control the first communication interface to adjust the number of data packets transmitted in the data frame, and send instruction information to the data receiving device, the instruction information is used to instruct the adjustment of the data transmitted in the data frame The number of packages.
  • the indication information includes adjustment direction information; the adjustment direction information is used to indicate increasing the number of data packets transmitted in the data frame. Alternatively, the adjustment direction information is used to indicate reducing the number of data packets transmitted in the data frame.
  • the indication information also includes adjustment quantity information; when the adjustment direction information indicates increasing the number of data packets transmitted in the data frame, the adjustment quantity information is the increased number of data packets transmitted in the data frame. Alternatively, when the adjustment direction information indicates reducing the number of data packets transmitted in the data frame, the adjustment quantity information is the reduced number of data packets transmitted in the data frame.
  • the indication information also includes an adjustment time point; the adjustment time point is used to indicate a time point at which to increase or decrease the number of data packets on the data frame, and the adjustment time point includes absolute time A or relative time B; Absolute time A is the corresponding time point when the count value of the link clock is A; relative time B is the time point after time B has passed after the time point of the indication information.
  • the data is audio data or video data.
  • a data transmission method which receives data packets through the data frame of the synchronization link and receives indication information; the indication information is used to indicate adjusting the number of data packets transmitted on the data frame; the data packets carry data; The data carries the data clock, and the synchronization link has a link clock; the number of data packets received through the data frame is adjusted and parsed according to the instruction information.
  • the indication information includes adjustment direction information; the adjustment direction information indicates increasing the number of data packets transmitted in the data frame; or the adjustment direction information indicates reducing the number of data packets transmitted in the data frame. If the received adjustment direction information indicates to increase the number of data packets transmitted in the data frame, increase the number of data packets received through the data frame; if the received adjustment direction information indicates to decrease the number of data packets transmitted in the data frame , then reduce the number of packets received through the data frame parsed.
  • the indication information also includes adjustment quantity information; the adjustment quantity information is an increase in the number of data packets transmitted in the data frame, or a decrease in the number of data packets transmitted in the data frame. If the received adjustment direction information indicates that the number of data packets transmitted in the data frame is increased, the number of data packets received through the data frame is increased; the number of data packets that are parsed is increased by the number of the adjustment quantity information. If the received adjustment direction information indicates to reduce the number of data packets transmitted in the data frame, the number of data packets received through the data frame is reduced; the number of parsed data packets is reduced to the adjustment quantity information.
  • the indication information also includes an adjustment time point; the adjustment time point is used to indicate a time point at which to increase or decrease the number of data packets on the data frame, and the adjustment time point includes absolute time A or relative time B; Absolute time A is the corresponding point in time when the count value of the link clock is A; relative time B is the point in time that elapses after time B after the point in time indicating the information; if the received adjustment direction information indicates increasing the value transmitted in the data frame The number of data packets, then after the adjustment time point, increase the number of data packets received through the analysis of the data frame; if the received adjustment direction information indicates to reduce the number of data packets transmitted in the data frame, then after the adjustment time point, Reduce the number of packets received via data frames parsed.
  • a communication device in a fifth aspect, includes a transceiver module.
  • the transceiver module is used to send data in the form of data packets to the data receiving device through the data frame of the synchronous link within a preset time; data
  • the data clock is carried in the synchronization link, and the synchronization link has a link clock; the number of data packets transmitted on the data frame is adjusted, and indication information is sent to the data receiving device, and the indication information is used to instruct the adjustment of the number of data packets transmitted on the data frame.
  • a communication device in a sixth aspect, includes a transceiver module.
  • the transceiver module is used to receive data packets through the data frame of the synchronization link and receive indication information; the indication information is used to instruct the adjustment of the data transmitted on the data frame.
  • the number of packets; the data packets carry data; the data carries the data clock, and the synchronization link has a link clock; adjust and parse the number of data packets received through the data frame according to the instruction information.
  • a seventh aspect provides a data transmission system, including the data sending device of the first aspect and the data receiving device of the second level; the data sending device is used to transmit data in the form of data packets through a synchronous link
  • the data frame is sent to the data receiving device, and indication information is also sent to the data receiving device through the synchronization link;
  • the data carries the data clock, and the indication information is used to indicate adjusting the number of data packets transmitted on the data frame;
  • the data receiving device is used to Receive data packets and indication information from the synchronization link, parse the data packets to obtain data, and adjust and parse the number of data packets received through the data frame according to the indication information.
  • An eighth aspect provides a chip system.
  • the chip system includes at least one processor and at least one interface circuit. At least one processor and at least one interface circuit may be interconnected by wires.
  • the processor is used to support the electronic device to implement various functions or steps in the above method embodiments.
  • At least one interface circuit can be used to receive signals from other devices (such as memory) or send signals to other devices (such as communication interfaces).
  • the chip system may include chips and may also include other discrete devices.
  • a computer-readable storage medium includes instructions.
  • the chip system causes the chip system to perform various functions or steps in the above-mentioned method embodiments, such as executing The method described in the third or fourth aspect above.
  • a computer program product including instructions is provided.
  • the chip system causes the chip system to perform various functions or steps in the above-mentioned method embodiments, such as executing the above-mentioned third or fourth aspect. method of recording.
  • Figure 1 is a schematic structural diagram of a data frame on a synchronization link provided by an embodiment of the present application
  • Figure 2 is a schematic structural diagram of a data transmission system provided by an embodiment of the present application.
  • Figure 3 is a schematic structural diagram of a data sending device provided by an embodiment of the present application.
  • Figure 4 is a cumulative schematic diagram of clock errors provided by an embodiment of the present application.
  • Figure 5 is an example diagram of adjusting the number of data packets in a data frame provided by an embodiment of the present application
  • Figure 6 is another example diagram of adjusting the number of data packets in a data frame provided by the embodiment of the present application.
  • Figure 7 is an example diagram for determining absolute time A provided by the embodiment of the present application.
  • Figure 8 is an example diagram for determining relative time B provided by the embodiment of the present application.
  • Figure 9A is an example diagram of multiple data frames without adjusting the number of data packets provided by the embodiment of the present application.
  • Figure 9B is an example diagram of adding one data packet to multiple data frames according to the embodiment of the present application.
  • Figure 9C is an example diagram of adding multiple data packets to multiple data frames provided by the embodiment of the present application.
  • Figure 10 is a schematic flow chart of a data transmission method provided by an embodiment of the present application.
  • Figure 11 is a schematic flow chart of another data transmission method provided by an embodiment of the present application.
  • Figure 12 is a schematic structural diagram of a communication device provided by an embodiment of the present application.
  • Figure 13 is a schematic structural diagram of a chip system provided by an embodiment of the present application.
  • Coupled and “connection” involved in the embodiments of this application should be understood in a broad sense. For example, they may refer to a physical direct connection, or they may refer to an indirect connection realized through electronic devices, such as resistance, inductance, capacitance or other electronic devices.
  • the connection implemented by the device.
  • Wireless real-time network transmission is one of the key technologies for wireless digital communications.
  • it includes a sending end and a receiving end.
  • the sending end transmits data synchronously to the receiving end in real time through the transmission link.
  • the data is usually not compressed during data transmission.
  • the data stream when transmitting data can be regarded as a fixed code rate service, or Called isochronous business.
  • it is often necessary to ensure a low transmission delay.
  • the transmission link carrying data can be divided into two types: competition-based links and non-competition-based links.
  • Wi-Fi Wireless Fidelity
  • all senders need to detect the idle state of the transmission link.
  • the sender can only send signals when the transmission link is idle.
  • the data transmission system uses competing links, if there are many senders, there may be a large number of senders competing for channel access, resulting in uncontrollable time for each sender to occupy the transmission link. Therefore, a wireless real-time network using competing links cannot guarantee the low transmission delay requirement of the sender during the wireless real-time transmission of data.
  • the transmission link is often a synchronous link 200 that is a non-contention link.
  • a synchronous transmission network based on a central control system.
  • Common synchronous transmission networks include cellular wireless communication networks, etc.
  • the clocks of the sending end and the receiving end are unified.
  • time synchronization and frequency synchronization on the synchronization link are achieved through symbol correlation technology.
  • symbol related technology mainly refers to symbol synchronization.
  • wireless digital communication in order to recover the signal received in the synchronization link 200 into data, the receiving end must periodically sample and determine the received signal.
  • a clock signal synchronized in symbol rate with the signal received from the synchronization link 200 needs to be set at the receiving end to obtain accurate sampling.
  • the synchronous transmission network based on the central control system will reserve periodic and equally spaced link resources on the synchronous link 200 to carry data of a specific length, which is very conducive to data transmission. This equally spaced link resource is the data frame 210.
  • the data is transmitted in the form of data packets 214 through data frames 210 of the synchronization link 200 .
  • Data transmitted by a synchronous transmission network using non-competition links can be divided into data carrying a data clock and data without a data clock according to whether it carries a data clock.
  • the playback rate can be specified by the playback device or the transmission device, so the synchronization link 200 of the synchronous transmission network can be directly used for transmission according to the link clock.
  • Common data that does not carry a data clock include audio or video streams from either the network or the file system.
  • for data carrying a data clock when the synchronous link 200 is used for transmission, there is often a synchronous transmission deviation accumulated over a long period of time because the data clock and the link clock are not synchronized.
  • a data with a sampling rate of 48KHz will produce a deviation of 20 microseconds per second, which is approximately equal to one sampling period.
  • the sender will accumulate one data packet 214 that is not sent to the receiving end every second, or will accumulate one data packet 214 that is not sent to the receiving end every second, which ultimately results in the quality of the transmitted data being compromised.
  • Resampling methods include converting data from digital signals to analog signals and then resampling; or using simple interpolation to resample the data.
  • both resampling methods will cause the sampling accuracy of the data to be damaged, thereby reducing the quality of the transmitted data.
  • the resampling process will also consume a certain amount of additional computing resources from the device.
  • Another solution is to sample the data during the transmission process, periodically discard a certain amount of data or leave a certain number of gaps in the data frame 210, and then send the data through the data frame 210 of the synchronization link 200. Transmitted from the sender to the receiver. This method is simple and easy to implement, but it will also cause the quality of the data to be compromised.
  • Another solution is to adjust the data clock and link clock during the transmission process so that the data transmission rate and data consumption rate are always synchronized.
  • this method can ensure the quality of transmitted data, the stability of the link clock is often greater than the data clock. It is very difficult to adjust the link clock to achieve clock synchronization. At the same time, due to changes in the link clock, the Will introduce more other problems.
  • the embodiment of the present application additionally proposes a data transmission system, as shown in FIG. 2 , including a data sending device 100 and a data receiving device 300 .
  • the data sending device 100 is configured to carry the data in the form of a data packet 214 on the data frame 210 of the synchronization link 200 with a link clock, and send it to the data receiving device 300; the data carries the data clock.
  • the data sending device 100 is also used to detect the deviation between the data clock and the link clock, adjust the number of data packets 214 in the data frame 210 according to the deviation, and send instruction information to the data receiving device 300.
  • the instruction information is used to instruct the adjustment of the data packets 214 on the data frame. Number of packets 214 transmitted.
  • the data receiving device 300 is configured to receive the data packet 214 from the data sending device 100 through the data frame 210 in the synchronization link 200; and adjust and parse the number of data packets 214 received from the data frame 210 according to the received instruction information.
  • the data sending device 100 includes a first controller 110 and a first communication interface 120 .
  • the first controller 110 is used to: control the first communication interface 120 to carry the data in the form of a data packet 214 on the data frame 210 and send it to the data receiving device 300 within a preset time; control the first communication interface 120 to adjust the The number of data packets 214 transmitted on the current data frame 210 is sent to the data receiving device 300 at the same time.
  • the data sending device 100 receives sampled data; the data carries a data clock.
  • the data sending device 100 transmits data to the data receiving device 300 through the synchronization link 200.
  • the first controller 110 controls the first communication interface 120 to carry data in the form of a data packet 214 on a data frame 210 and send it to the data receiving device 300 within a preset time. ; Obtain the count value of the link clock and the calculated value of the data clock within the preset time, calculate the difference between the count value change of the link clock and the count value change of the data clock, and obtain the clock count difference; according to the clock The count difference controls the first communication interface 120 to adjust the number of data packets 214 transmitted on the current data frame 210 and at the same time send indication information to the data receiving device 300 .
  • step S120 includes steps S121-S124:
  • the first controller 110 of the data sending device 100 converts the received data into a data packet 214, and sends transmission signaling to the data receiving device 300.
  • the transmission signaling is used to instruct the data receiving device 300 to receive the synchronization link 200.
  • the data sending device 100 first sends transmission signaling to the data receiving device 300 .
  • the transmission signaling includes the following parameter information of the transmission data: start time domain, end time domain, start frequency domain, end frequency domain, transmission power; after receiving the transmission signaling, the data receiving device 300 receives the transmission signaling according to the information included in the transmission signaling.
  • the parameter information is ready for receiving data for synchronous transmission.
  • the method by which the data sending device 100 converts data into data packets 214 includes modulation or encoding.
  • the transmission signaling sent by the data sending device 100 to the data receiving device 300 also includes modulation parameters, so that the data receiving device 300 demodulates the data packet 214 according to the received modulation parameters to obtain data.
  • the transmission signaling sent by the data sending device 100 to the data receiving device 300 also includes encoding parameters, so that the data receiving device 300 decodes the data packet 214 according to the received encoding parameters to obtain data.
  • the first controller 110 of the data sending device 100 controls the first communication interface 120 to send the data packet 214 to the data receiving device 300 through the data frame 210 in the synchronization link 200 within a preset time.
  • the first controller 110 obtains the count value of the link clock and the count value of the data clock of the synchronization link 200, and based on the difference between the change amount of the count value of the link clock and the change amount of the count value of the data clock within the preset time Difference, get the clock count difference.
  • the first controller 110 controls the first communication interface 120 to adjust the number of data packets 214 transmitted by the data frame 210 according to the clock count difference, and sends instruction information to the data receiving device 300 .
  • the data sending device 100 counts the link clock and the data clock respectively through counters, where the count value of the data clock represents the amount of data received when the data receiving device 300 receives the sampled data.
  • the count value of the link clock represents the amount of transmission of the data packet 214 on the synchronous link 200.
  • the data sending device 100 obtains the clock count difference by calculating the difference between the change amount of the count value of the link clock and the change amount of the count value of the data clock within a preset time.
  • the resulting clock count difference reflects the skew of the link clock and data clock. When the clock count difference reaches a certain value, the deviation between the two has reached the time required to generate a data packet 214.
  • the first controller 110 has converted one more data packet 214 and has not sent it to the data receiver.
  • the device 300 or at least one data packet 214, is converted to the data receiving device 300.
  • the skew here can be either the data clock being slower than the link clock or the data clock being faster than the link clock.
  • the data consumption rate is lower than the data transmission rate.
  • the first controller 110 converts more than one data packet 214 less; when the data clock When it is faster than the link clock, the data consumption rate is higher than the data transmission rate, the deviation gradually increases, and the first controller 110 converts more than one data packet 214.
  • the data sending device 100 adjusts the number of data packets 214 in a single data frame 210 according to the obtained clock count difference, generates indication information according to the adjustment, and sends both the indication information and the adjusted data frame 210 to the data receiving device. 300.
  • the data receiving device 300 obtains the count value of the link clock of the synchronization link 200, and receives the data frame 210 according to the obtained count value of the link clock. After the data receiving device 300 receives the data frame 210, it will cache the received data frame 210. Within this buffering time difference, the data receiving device 300 determines whether the data frame 210 has been adjusted according to the instruction information. The number of data packets 214 has been adjusted. of data frame 210, and whether the adjusted data frame 210 adds data packets 214 or decreases data packets 214, and then adaptively adjusts the number of parsed data packets 214 from the data frame 210.
  • the operation of the data sending device 100 to adjust the number of data packets 214 in the data frame 210 is as follows:
  • the data clock being slower than the link clock.
  • the data sending device 100 carries the data packets 214 in a group of four in a single data frame 210.
  • the data clock and the link clock begin to deviate, but the deviation is still small at this time and no obvious deviation has yet occurred.
  • the data clock is generated from the data.
  • Four data packets 214 are carried on the bearer part 212 of the first data frame 210 .
  • the data sending device 100 With the transmission of data, when the data sending device 100 is preparing to transmit the third data frame 210 in the diagram, it is detected that the deviation between the data clock and the link clock accumulates over time. At this time, the data clock is already slower than the link clock. The time required for the road clock to transmit a data packet 214. At this time, the data sending device 100 only generates three data packets 214 from the data, and the synchronization link 200 has already transmitted the third data frame 210, so the data sending device 100 has already transmitted the third data frame 210. The device 100 puts three data packets 214 into the bearer part 212 of the third data frame 210, leaving one gap 215, and then sends the third data frame 210 to the data receiving device 300 through the synchronization link 200. While sending the third data frame 210, the data sending device 100 also generates an indication message and sends it to the data receiving device 300. The indication information indicates that the data receiving device 300 generates a gap 215 when sending the data frame 210.
  • the data clock being faster than the link clock.
  • FIG. 6 there is a series of data frames 210 on the synchronization link 200. It is assumed that the data sending device 100 carries the data packets 214 in a group of four in a single data frame 210. When the data sending device 100 sends the first data frame 210 through the synchronization link 200, the data clock and the link clock begin to deviate, but the deviation is still small at this time and no obvious deviation has yet occurred. At this time, the data clock is generated from the data.
  • Four data packets 214 are carried on the bearer part 212 of the first data frame 210 .
  • the data sending device 100 With the transmission of data, when the data sending device 100 is preparing to transmit the third data frame 210 in the diagram, it is detected that the deviation between the data clock and the link clock accumulates over time. At this time, the data clock is already faster than the link clock. The time it takes for the road clock to transmit a data packet 214. At this time, the data sending device 100 generates five data packets 214 from the data, and the synchronization link 200 is preparing to transmit the third data frame 210 and is not ready to start transmission. The fourth data frame 210.
  • the data sending device 100 puts five data packets 214 into the bearer part 212 of the third data frame 210 (that is, increases the number of data packets 214 transmitted in the third data frame 210), and then puts the third data packet 214 into the bearer part 212 of the third data frame 210.
  • a data frame 210 is sent to the data receiving device 300 through the synchronization link 200. While sending the third data frame 210, the data sending device 100 also generates an indication message and sends it to the data receiving device 300.
  • the indication information instructs the data receiving device 300 to add a data packet 214 when sending the third data frame 210. , so the data receiving device 300 increases the number of parsed data packets 214 transmitted in the third data frame 210 .
  • the above are two examples of adjusting the data packet 214 on the synchronization link. However, when multiple data packets 214 need to be adjusted, the number of multiple data packets 214 can be increased in one data frame 210, or The number of data packets 214 is increased in the plurality of data frames 210 respectively.
  • the first controller 110 converts the received data into 20 data packets 214 respectively, which are carried in five data frames 210 and transmitted to the data receiving device 300 , each data frame 210 carries four data packets 214.
  • the link clock as being faster than the data clock as an example, when transmission is to be performed, the first controller 110 finds that there is a deviation between the data clock and the link clock to transmit four data packets 214 .
  • the first controller 110 can add a data packet 214 to the data frame 210, that is, four data frames 210 are used to transmit 20 data packets 214 to the data receiving device 300.
  • Each data frame 210 carries 5 packets 214.
  • the first controller 110 can use four data frames 210 to transmit 20 data packets 214 to the data receiving device 300.
  • the first two data frames 210 each carry 6 data packets 214, and the last two data frames 210 carry 6 data packets 214 each.
  • Each data frame 210 carries four data packets 214.
  • the indication information includes adjustment direction information; the adjustment direction information indicates increasing the number of data packets 214 transmitted in the data frame 210; or the adjustment direction information indicates reducing the number of data packets 214 transmitted in the data frame 210.
  • the data sending device 100 can indicate to the data receiving device 300 whether to increase the number of data packets 214 transmitted in the data frame 210 or to decrease the number of data packets 214 transmitted in the data frame 210 .
  • the data receiving device 300 can increase or decrease the number of data packets 214 transmitted in the parsed corresponding data frame 210 without additional judgment.
  • the indication information also includes adjustment quantity information; the adjustment quantity information is an increased number of data packets transmitted in the data frame, or a decreased number of data packets transmitted in the data frame.
  • the data sending device 100 can indicate to the data receiving device 300 that the specific number of data packets 214 transmitted in the data frame 210 has been increased or decreased, and the data receiving device 300 can increase or decrease the parsed corresponding data without additional judgment.
  • the corresponding number of data packets 214 transmitted in frame 210 can be indicated to the data receiving device 300 that the specific number of data packets 214 transmitted in the data frame 210 has been increased or decreased, and the data receiving device 300 can increase or decrease the parsed corresponding data without additional judgment. The corresponding number of data packets 214 transmitted in frame 210.
  • the indication information also includes an adjustment time point; the adjustment time point is used to indicate a time point to increase or decrease the number of data packets on the data frame, and the adjustment time point includes absolute time A or relative time B; absolute time A is the corresponding time point when the count value of the link clock is A; relative time B is the time point after time B has passed after the time point of the indication information.
  • the data sending device 100 sends the adjustment time point to the data receiving device 300.
  • the data receiving device 300 can accurately find the data frame with the adjusted number of data packets 214 according to the adjustment time point, and perform corresponding adjustment operations.
  • the time point when the data sending device 100 sends the indication information to the data receiving device 300 may be before or after the time point when the data frame 210 corresponding to the indication information is sent, or it may be the time point when the data frame 210 corresponding to the indication information is sent. 210 time point.
  • the indication information can be sent to the data receiving device 300 first, and then the data sending device 100 can send the instruction information to the data receiving device 300.
  • the data frame 210 with the adjusted number of data packets 214 may also be sent in the same message with the indication information and the data frame 210 with the adjusted number of data packets 214, or the data frame 210 with the adjusted number of data packets 214 may be sent first and then Send instructions again. Because after the data receiving device 300 receives the data frame 210, it needs to cache the data packet 214 in the data frame 210 before parsing the data packet 214.
  • the data receiving device 300 receives the instruction information during the period from buffering the data packet 214 in the data frame 210 to parsing the data packet 214 and adjusts the number of parsed data packets 214 in the corresponding data frame 210 according to the instruction information.
  • the first controller 110 of the data sending device 100 includes a control module 111 , a deviation calculation module 112 and a clock synchronization module 113 .
  • the clock control module 113 is used to obtain the count value of the link clock and the calculated value of the data clock within a preset time; the deviation calculation module 112 is used to calculate the link based on the count value of the link clock and the calculated value of the data clock within the preset time.
  • the difference between the count value change of the channel clock and the count value change of the data clock is used to obtain the clock count difference; the control module 111 is used to pass the data in the form of a data packet 214 through the synchronization chain through the first communication interface 120
  • the data frame 210 of the path 200 is sent to the data receiving device 300; the control module 111 is also used to control the first communication interface 120 to adjust the number of data packets 214 transmitted on the current data frame 210 according to the clock count difference, and at the same time to the data receiving device 300.
  • Device 300 sends instruction information.
  • the data carrying the data clock is audio data or video data.
  • the data sending device 100 further includes a first player 130 .
  • the first controller 110 is configured to adjust the progress of playing audio data or video data on the first player 130 according to the clock count difference.
  • the data sending device 100 needs to send the received sampled audio data or video data to the data receiving device 300 through the synchronization link 200 .
  • the local end of the data sending device 100 also needs to play the audio data or video data synchronously with the data receiving device 300 side. Therefore, the first controller 110 of the data sending device 100 can adjust the progress of playing the audio data or video data on the first player 130 according to the clock count difference, thereby achieving synchronous playing of the audio data or video data with the data receiving device 300 .
  • the first controller 110 adjusts the progress of playing audio data or video data on the first player 130 according to the clock count difference.
  • the data sending device 100 transmits data to the data receiving device 300 in real time.
  • the data carrying the data clock is audio data or video data.
  • the audio data or video data needs to be processed in real time on the data sending device 100 side. Play synchronously.
  • the playback progress of the audio data and video data played on the first player 130 is adjusted through the clock count difference.
  • the adjustment of the playback progress is essentially the amount of data sent by the first controller 110 to the first player 130, as long as the progress of the data sent by the first controller 110 to the first player 130 is consistent with the data frame passed by the first controller 110. If the progress of the data packets 214 transmitted by 210 is consistent, synchronous playback can be achieved.
  • the data receiving device 300 includes a second controller 310 and a second communication interface 320 .
  • the second controller 310 is configured to receive the data packet 214 from the data frame 210 of the synchronization link 200 through the second communication interface 320, and parse the data packet 214 to obtain data.
  • the second controller 310 is also configured to receive indication information through the second communication interface 320 and adjust the number of parsed data packets 214 from the data frame 210 according to the indication information.
  • the second controller 310 receives the data packet 214 from the data sending device 100 from the data frame 210 in the synchronization link 200 through the second interface 320, and parses the data packet 214 to obtain data.
  • the data sending device 100 carries the data packets 214 in a group of four in a single data frame 210.
  • the data receiving device 300 receives the data frames 210 respectively, and parses the data of the four data packets 214 from the bearer part 212 of each data frame 210. Due to deviations, the third data frame 210 sent by the data sending device 100 carries three data packets 214 and a gap 215 in its carrying part 212 .
  • the data sending device 100 also sends instruction information to the data receiving device 300 to indicate that the number of data packets 214 in the data frame 210 has been adjusted, specifically to reduce the number of data frames 210, and then the data frame 210 is adjusted according to the received
  • the instruction information reduces the number of parsed data packets 214 in the data frame 210 .
  • the second controller 310 increases the parsing of the data packets 214 received through the data frame 210; increases the number of parsed data packets 214.
  • the number is the quantity corresponding to the adjusted quantity information.
  • the second controller 310 reduces the number of parsed data packets 214 received through the data frame 210; and reduces the number of parsed data packets 214 to the adjusted number. The quantity corresponding to the information.
  • the data receiving device 300 may set an adjustment number, and each time the indication information is received, increase or decrease the parsing of the data packets 214 transmitted in the set adjustment number of data frames 210 .
  • the data receiving device 300 correspondingly adjusts the number of data packets 214 in the parsed data frame 210 according to the adjustment quantity information in the instruction information. This method can achieve more accurate analysis of the data packets 214 in the data frame 210 and improve the quality of the analyzed data.
  • the second controller 310 of the data receiving device 300 receives the instruction information, it can know based on the absolute time three that it is necessary to adjust the number of data packets 214 in the third data frame 210, and at the same time, according to the instruction information According to the adjustment direction information, it can be known that the number of parsed data packets 214 is reduced. According to the adjustment quantity information in the indication information, it can be known that one data packet 214 is parsed less.
  • the second controller 310 of the data receiving device 300 receives the instruction information, it can know based on the relative time therein that it is necessary to adjust the number of data packets 214 in the third data frame 210 and at the same time, according to the instruction information According to the adjustment direction information, it can be known that the number of parsed data packets 214 is reduced. According to the adjustment quantity information in the indication information, it can be known that one data packet 214 is parsed less.
  • the data receiving device 300 further includes a second player 330 .
  • the second controller 310 is configured to transmit the audio data or video data parsed from the data packet 214 to the second player 330 for playing.
  • the second controller 310 sends the analyzed audio data or video data to the second player 330 for playing.
  • the data sending device 100 when the data sending device 100 includes the first player 130 and the data receiving device 300 includes the second player 330, the data sending device 100 can play audio on the first player 130 by adjusting the clock count difference. The progress of the data or video data, so that the first player 130 and the second player 330 can play the audio data or video data synchronously.
  • the data sending device, receiving device, transmission method and transmission system respectively obtain the count value of the data clock of the data and the count value of the link clock of the synchronization link, thereby calculating the clock count difference.
  • the clock count difference calculates the deviation between the data clock and the link clock, adjusts the number of data packets in a single data frame on the synchronization link based on the calculated deviation, and sends indication information to the data receiving device.
  • An embodiment of the present application also provides a communication device.
  • the communication device may be the data sending device 100 in the above method embodiment, or a device including the above data sending device 100, or a chip or functional module in the data sending device 100.
  • the communication device may be the data receiving device 300 in the above method embodiment, or a device including the above data receiving device 300, or a chip or functional module in the data receiving device 300.
  • the communication device includes hardware structures and/or software modules corresponding to each function.
  • the present application can be implemented in the form of hardware or a combination of hardware and computer software with the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein. Whether a function is performed by hardware or computer software driving the hardware depends on the specific application and design constraints of the technical solution. Skilled artisans may implement the described functionality using different methods for each specific application, but such implementations should not be considered beyond the scope of this application.
  • Embodiments of the present application can divide the communication device into functional modules according to the above method embodiments.
  • functional modules can be divided into corresponding functional modules, or two or more functions can be integrated into one processing module.
  • the above integrated modules can be implemented in the form of hardware or software function modules. It should be noted that the division of modules in the embodiment of the present application is schematic and is only a logical function division. In actual implementation, there may be other division methods.
  • FIG. 12 shows a schematic structural diagram of a communication device 500.
  • the communication device 500 includes a processing module 510 and a transceiver module 520; the processing module 510 can also be called a processing unit to implement the data sending device or data in the above method embodiment.
  • the transceiver module 520 may be called a transceiver circuit, transceiver, transceiver or communication interface, and is used to implement the transceiver function of the data sending device or data receiving device in the above method embodiment.
  • the communication device 500 is caused to perform various functions or steps performed by the data sending device or the data receiving device in the above method embodiment, for example, the methods shown in FIG. 10 and FIG. 11 are executed.
  • the transceiver module 520 is used to send data in the form of data packets to the data receiving device through the data frame of the synchronization link within a preset time; the data carries the data clock, the synchronization link It has a link clock; adjusts the number of data packets transmitted on the data frame, and sends indication information to the data receiving device, where the indication information is used to instruct the adjustment of the number of data packets transmitted on the data frame.
  • the transceiver module 520 is configured to receive data packets through the data frame of the synchronization link, and receive indication information; the indication information is used to indicate adjusting the number of data packets transmitted on the data frame; the data packet carries Data; the data carries the data clock, and the synchronization link has a link clock; adjusts and parses the number of data packets received through the data frame according to the instruction information.
  • the embodiment of this application also provides a chip system 400.
  • the chip system 400 includes at least one processor 401 and at least one interface circuit 402 .
  • At least one processor 401 and at least one interface circuit 402 may be interconnected via lines.
  • the processor 401 is used to support the chip system 400 to implement various functions or steps in the above method embodiments.
  • At least one interface circuit 402 can be used to receive signals from other devices (such as memory) or send signals to other devices (such as communication interfaces). .
  • the chip system 400 may include chips and may also include other discrete devices.
  • the embodiment of the present application also proposes a computer-readable storage medium.
  • the computer-readable storage medium includes instructions. When the instructions are run on the above-mentioned chip system 2, the chip system 2 is caused to perform each function or step in the above-mentioned method embodiment. , for example, perform the method shown in Figure 10 or Figure 11.
  • the embodiment of the present application also proposes a computer program product including instructions.
  • the instructions When the instructions are run on the above-mentioned chip system 2, the chip system 2 is caused to perform various functions or steps in the above-mentioned method embodiments, for example, as shown in FIG. 10 or FIG. The method shown in 11.
  • the processor involved in the embodiment of this application may be a chip.
  • it can be a field programmable gate array (FPGA), an application specific integrated circuit (ASIC), a system on chip (SoC), or a central processing unit
  • It can be a central processor unit (CPU), a network processor (NP), a digital signal processing circuit (digital signal processor, DSP), or a microcontroller (micro controller unit, MCU).
  • it can also be a programmable logic device (PLD) or other integrated chip.
  • non-volatile memory may be read-only memory (ROM), programmable ROM (PROM), erasable programmable read-only memory (erasable PROM, EPROM), electrically removable memory. Erase electrically programmable read-only memory (EPROM, EEPROM) or flash memory. Volatile memory can be random access memory (RAM), which is used as an external cache.
  • RAM random access memory
  • RAM static random access memory
  • DRAM dynamic random access memory
  • SDRAM synchronous dynamic random access memory
  • double data rate SDRAM double data rate SDRAM
  • DDR SDRAM double data rate SDRAM
  • ESDRAM enhanced synchronous dynamic random access memory
  • SLDRAM synchronous link dynamic random access memory
  • direct rambus RAM direct rambus RAM
  • the size of the sequence numbers of the above-mentioned processes does not mean the order of execution.
  • the execution order of each process should be determined by its functions and internal logic, and should not be used in the embodiments of the present application.
  • the implementation process constitutes any limitation.
  • the disclosed systems, devices and methods can be implemented in other ways.
  • the device embodiments described above are only illustrative.
  • the division of modules is only a logical function division. In actual implementation, there may be other division methods.
  • multiple modules or components may be combined or can be integrated into another device, or some features can be ignored, or not implemented.
  • the coupling or direct coupling or communication connection between each other shown or discussed may be through some interfaces, indirect coupling or communication connection of devices or modules, which may be in electrical, mechanical or other forms.
  • modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical modules, that is, they may be located on one device, or they may be distributed to multiple devices. Some or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
  • each functional module in each embodiment of the present application can be integrated in one device, or each module can exist physically alone, or two or more modules can be integrated in one device.
  • the above embodiments it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof.
  • a software program it may be implemented in whole or in part in the form of a computer program product.
  • the computer program product includes one or more computer instructions.
  • computer program instructions When computer program instructions are loaded and executed on a computer, the processes or functions described in the embodiments of the present application are generated in whole or in part.
  • the computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device.
  • the computer instructions may be stored in or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transferred from a website, computer, server, or data center Transmission to another website, computer, server or data center through wired (such as coaxial cable, optical fiber, Digital Subscriber Line (DSL)) or wireless (such as infrared, wireless, microwave, etc.) means.
  • the computer-readable storage medium can be any available medium that can be accessed by a computer or include one or more data storage devices such as servers and data centers that can be integrated with the medium.
  • the available media may be magnetic media (eg, floppy disk, hard disk, magnetic tape), optical media (eg, DVD), or semiconductor media (eg, Solid State Disk (SSD)), etc.

Abstract

Provided in the embodiments of the present application are a data sending apparatus, a data receiving apparatus, a data transmission method, and a data transmission system. The data sending apparatus is used for transmitting data to the data receiving apparatus by means of a data frame in a synchronization link, wherein the data carries a data clock, and the synchronization link is provided with a link clock. The data sending apparatus comprises a first controller and a first communication interface. The first controller is used for: controlling the first communication interface, and sending, within a preset time, data to the data receiving apparatus in the form of a data packet by means of the data frame; acquiring a count value of the link clock and a count value of the data clock within the preset time, and obtaining a clock count difference value according to a difference value between a count value variation of the link clock and a count value variation of the data clock within the preset time; and according to the clock count difference value, controlling the first communication interface to adjust the number of data packets which are transmitted by the data frame, and sending instruction information to the data receiving apparatus, wherein the instruction information is used for instructing the adjustment of the number of data packets which are transmitted on the data frame.

Description

数据发送装置、接收装置、传输方法及传输系统Data sending device, receiving device, transmission method and transmission system
本申请要求于2022年04月26日提交国家知识产权局、申请号为202210451952.X,申请名称为“数据发送装置、接收装置、传输方法及传输系统”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application requires the priority of the Chinese patent application submitted to the State Intellectual Property Office on April 26, 2022, with the application number 202210451952.X, and the application name is "data sending device, receiving device, transmission method and transmission system", all of which The contents are incorporated into this application by reference.
技术领域Technical field
本申请涉及数据同步传输技术领域,尤其涉及一种数据发送装置、接收装置、传输方法及传输系统。The present application relates to the technical field of data synchronous transmission, and in particular to a data sending device, receiving device, transmission method and transmission system.
背景技术Background technique
同步传输是通过基于同一的时钟节拍的同步链路,来实时发送数据。Synchronous transmission is to send data in real time through a synchronous link based on the same clock beat.
而在使用同步链路对携带数据时钟的数据进行同步传输时,会因为数据时钟与同步链路的链路时钟不属于同一时钟域,从而产生同步传输偏差,这种同步传输偏差会大大降低实时同步传输的数据的质量,且这种同步传输偏差会随着时间的累积越来越大。When using a synchronous link to synchronously transmit data carrying a data clock, a synchronous transmission deviation will occur because the data clock and the link clock of the synchronous link do not belong to the same clock domain. This synchronous transmission deviation will greatly reduce the real-time performance. The quality of synchronously transmitted data, and this synchronous transmission deviation will become larger and larger over time.
发明内容Contents of the invention
本申请实施例提供一种数据发送装置、接收装置、传输方法及传输系统,用于解决数据的数据时钟与同步链路的链路时钟在同步传输时产生同步传输偏差的问题。Embodiments of the present application provide a data sending device, a receiving device, a transmission method and a transmission system to solve the problem of synchronization transmission deviation between the data clock of the data and the link clock of the synchronization link during synchronous transmission.
为达到上述目的,本申请的实施例采用如下技术方案:In order to achieve the above objectives, the embodiments of the present application adopt the following technical solutions:
第一方面,提供了一种数据发送装置,用于将数据通过同步链路中的数据帧传输给数据接收装置;数据中携带数据时钟,同步链路具有链路时钟;数据发送装置包括:第一控制器和第一通信接口;第一控制器用于:控制第一通信接口,在预设时间内,将数据以数据包的形式通过数据帧向数据接收装置进行发送;获取预设时间内链路时钟的计数值以及数据时钟的计数值;计算时钟计数差值;时钟计数差值为预设时间内链路时钟的计数值变化量和数据时钟的计数值变化量之间的差值;根据时钟计数差值,控制第一通信接口调整数据帧传输的数据包的数量,并向数据接收装置发送指示信息,指示信息用于指示调整数据帧上传输的数据包的数量。In a first aspect, a data sending device is provided for transmitting data to a data receiving device through a data frame in a synchronization link; the data carries a data clock, and the synchronization link has a link clock; the data sending device includes: A controller and a first communication interface; the first controller is used to: control the first communication interface, send data in the form of data packets through data frames to the data receiving device within a preset time; obtain the link within the preset time The count value of the link clock and the count value of the data clock; calculate the clock count difference; the clock count difference is the difference between the count value change of the link clock and the count value change of the data clock within the preset time; according to The clock count difference controls the first communication interface to adjust the number of data packets transmitted in the data frame, and sends instruction information to the data receiving device. The instruction information is used to instruct the adjustment of the number of data packets transmitted in the data frame.
本申请实施例提供的上述数据发送装置,通过分别获取数据的数据时钟的计数值和同步链路的链路时钟的计数值,从而计算得到时钟计数差值,通过时钟计数差值计算出数据时钟和链路时钟之间的偏差,并根据计算得到的偏差调整在同步链路上单个数据帧中的数据包的数量,并将指示信息发送给数据接收装置。通过上述设置实现了对同步无线传输中数据的数据时钟和同步链路的链路时钟之间偏差的精确测量,并根据测量结果调整数据包,从而避免了在因偏差导致数据接收装置在接收数据包的过程中产生误差,最终影响被传输的数据的质量。The above-mentioned data sending device provided by the embodiment of the present application obtains the count value of the data clock of the data and the count value of the link clock of the synchronization link, thereby calculating the clock count difference, and calculates the data clock through the clock count difference. and the link clock, and adjusts the number of data packets in a single data frame on the synchronization link according to the calculated deviation, and sends the indication information to the data receiving device. Through the above settings, the deviation between the data clock of the data in the synchronized wireless transmission and the link clock of the synchronized link is accurately measured, and the data packets are adjusted according to the measurement results, thereby avoiding the problem that the data receiving device is receiving data due to the deviation. Errors occur during the packetization process, ultimately affecting the quality of the data being transmitted.
在一种可能的实施方式中,指示信息包括调整方向信息;调整方向信息指示增加数据帧中传输的数据包的数量;或者,调整方向信息指示减少数据帧中传输的数据包的数量。在本实施例中,通过调整方向信息指示数据接收装置被调整的数据帧中是增加了数据包的数量还是减少了数据包的数量。数据接收装置根据调整方向信息对应调 整解析数据帧中传输的数据包的数量。In a possible implementation, the indication information includes adjustment direction information; the adjustment direction information indicates increasing the number of data packets transmitted in the data frame; or the adjustment direction information indicates reducing the number of data packets transmitted in the data frame. In this embodiment, the adjustment direction information is used to indicate to the data receiving device whether the number of data packets in the adjusted data frame is increased or decreased. The data receiving device correspondingly adjusts and analyzes the number of data packets transmitted in the data frame according to the adjustment direction information.
在一种可能的实施方式中,指示信息还包括调整数量信息;当调整方向信息指示增加数据帧中传输的数据包的数量时,调整数量信息为在数据帧中传输的数据包增加的数量。或者,当调整方向信息指示减少数据帧中传输的数据包的数量时,调整数量信息为在数据帧中传输的数据包减少的数量。数据接收装置可以在接收到指示信息后,根据预设的数量增加解析的数据包数量或者减少解析数据包的数量。也可以通过本实施例中由数据发送装置将实际调整数据包的数量即调整数量信息包含在指示信息中发送给数据接收装置,然后数据接收装置根据接收到的指示信息中包括的调整数量信息调整解析的数据包的数量。In a possible implementation, the indication information also includes adjustment quantity information; when the adjustment direction information indicates increasing the number of data packets transmitted in the data frame, the adjustment quantity information is the increased number of data packets transmitted in the data frame. Alternatively, when the adjustment direction information indicates reducing the number of data packets transmitted in the data frame, the adjustment quantity information is the reduced number of data packets transmitted in the data frame. After receiving the instruction information, the data receiving device can increase the number of parsed data packets or reduce the number of parsed data packets according to the preset number. In this embodiment, the data sending device may also include the actual number of adjusted data packets, that is, the adjustment quantity information, in the instruction information and send it to the data receiving device, and then the data receiving device adjusts the data according to the adjustment quantity information included in the received instruction information. The number of packets parsed.
在一种可能的实施方式中,指示信息还包括调整时刻点;调整时刻点用于指示在数据帧上增加或减少数据包的数量的时刻点,调整时刻点包括绝对时间A或相对时间B;绝对时间A为当链路时钟的计数值为A时对应的时刻点;相对时间B为指示信息的时刻点之后经过时间B的时刻点。数据发送装置以绝对时间A或者相对时间B的形式将调整数据帧的数据包的时刻发送给数据接收装置,数据接收装置根据绝对时间A或相对时间B即可定位到被调整了数据包的数据帧,然后对应调整解析的数据包的数量。In a possible implementation, the indication information also includes an adjustment time point; the adjustment time point is used to indicate a time point at which to increase or decrease the number of data packets on the data frame, and the adjustment time point includes absolute time A or relative time B; Absolute time A is the corresponding time point when the count value of the link clock is A; relative time B is the time point after time B has passed after the time point of the indication information. The data sending device sends the time of the adjusted data packet of the data frame to the data receiving device in the form of absolute time A or relative time B. The data receiving device can locate the adjusted data packet according to the absolute time A or relative time B. frames, and then adjust the number of parsed packets accordingly.
在一种可能的实施方式中,数据为音频数据或视频数据。In a possible implementation, the data is audio data or video data.
在一种可能的实施方式中,数据发送装置还包括第一播放器;第一控制器还用于根据时钟计数差值调整在第一播放器上播放音频数据或视频数据的进度。本实施例通过时钟计数差值调整第一播放器上播放音频数据或视频数据的进度,实现在数据发送装置的第一播放器上的播放进度与数据接收装置上的播放进度的同步。In a possible implementation, the data sending device further includes a first player; the first controller is further configured to adjust the progress of playing audio data or video data on the first player according to the clock count difference. In this embodiment, the clock count difference is used to adjust the progress of playing audio data or video data on the first player to achieve synchronization of the playback progress on the first player of the data sending device and the playback progress on the data receiving device.
第二方面,提供了一种数据接收装置,用于通过同步链路中的数据帧接收来自数据发送装置的数据包,数据包中承载数据;数据中携带数据时钟,同步链路具有链路时钟;数据接收装置包括:第二控制器和第二通信接口;第二控制器用于:控制第二通信接口,通过数据帧接收数据包,并接收指示信息,指示信息用于指示调整数据帧上传输的数据包的数量;根据指示信息调整解析通过数据帧接收的数据包的数量。In a second aspect, a data receiving device is provided for receiving a data packet from a data sending device through a data frame in a synchronization link. The data packet carries data; the data carries a data clock, and the synchronization link has a link clock. ; The data receiving device includes: a second controller and a second communication interface; the second controller is used to: control the second communication interface, receive data packets through the data frame, and receive indication information, the indication information is used to instruct the adjustment of the data frame for transmission The number of data packets; adjust and parse the number of data packets received through the data frame according to the instruction information.
在一种可能的实施方式中,指示信息包括调整方向信息;调整方向信息指示增加数据帧中传输的数据包的数量。或者,调整方向信息指示减少数据帧中传输的数据包的数量。第二控制器用于:如果接收到的调整方向信息指示增加数据帧中传输的数据包的数量,则增加解析通过数据帧接收的数据包的数量;如果接收到的调整方向信息指示减少数据帧中传输的数据包的数量,则减少解析通过数据帧接收的数据包的数量。In a possible implementation, the indication information includes adjustment direction information; the adjustment direction information indicates increasing the number of data packets transmitted in the data frame. Alternatively, the adjustment direction information indicates reducing the number of data packets transmitted in the data frame. The second controller is configured to: if the received adjustment direction information indicates increasing the number of data packets transmitted in the data frame, increase the number of parsed data packets received through the data frame; if the received adjustment direction information indicates decreasing the number of data packets transmitted in the data frame The number of packets transmitted is reduced by the number of packets received via parsing the data frame.
在一种可能的实施方式中,指示信息还包括调整数量信息;调整数量信息为在数据帧中传输的数据包增加的数量,或者在数据帧中传输的数据包减少的数量。第二控制器用于:如果接收到的调整方向信息指示增加数据帧中传输的数据包的数量,则增加解析通过数据帧接收的数据包;增加解析的数据包数量为调整数量信息个;如果接收到的调整方向信息指示减少数据帧中传输的数据包的数量,则减少解析通过数据帧接收的数据包;减少解析的数据包数量为调整数量信息个。In a possible implementation, the indication information also includes adjustment quantity information; the adjustment quantity information is an increase in the number of data packets transmitted in the data frame, or a decrease in the number of data packets transmitted in the data frame. The second controller is configured to: if the received adjustment direction information indicates increasing the number of data packets transmitted in the data frame, increase parsing of the data packets received through the data frame; increase the number of parsed data packets to the adjustment quantity information; if receiving The received adjustment direction information indicates that the number of data packets transmitted in the data frame is reduced, and the number of data packets received through the data frame is reduced; the number of parsed data packets is reduced to the adjustment quantity information.
在一种可能的实施方式中,指示信息还包括调整时刻点;调整时刻点用于指示在数据帧上增加或减少数据包的数量的时刻点,调整时刻点包括绝对时间A或相对时间 B;绝对时间A为当链路时钟的计数值为A时对应的时刻点;相对时间B为指示信息的时刻点之后经过时间B的时刻点。第二控制器用于:如果接收到的调整方向信息指示增加数据帧中传输的数据包的数量,则在调整时刻点之后,增加解析通过数据帧接收的数据包的数量;如果接收到的调整方向信息指示减少数据帧中传输的数据包的数量,则在调整时刻点之后,减少解析通过数据帧接收的数据包的数量。In a possible implementation, the indication information also includes an adjustment time point; the adjustment time point is used to indicate a time point at which to increase or decrease the number of data packets on the data frame, and the adjustment time point includes absolute time A or relative time B; Absolute time A is the corresponding time point when the count value of the link clock is A; relative time B is the time point after time B has passed after the time point of the indication information. The second controller is used to: if the received adjustment direction information indicates increasing the number of data packets transmitted in the data frame, after the adjustment time point, increase the number of parsed data packets received through the data frame; if the received adjustment direction If the information indicates that the number of data packets transmitted in the data frame is reduced, then after the adjustment time point, the number of data packets received through the data frame is reduced.
在一种可能的实施方式中,数据为音频数据或视频数据。In a possible implementation, the data is audio data or video data.
第三方面,提供了一种数据传输方法,在预设时间内,将数据以数据包的形式通过同步链路的数据帧向数据接收装置进行发送;数据中携带数据时钟,同步链路具有链路时钟;获取预设时间内链路时钟的计数值以及数据时钟的计数值;计算时钟计数差值;时钟计数差值为预设时间内链路时钟的计数值变化量和数据时钟的计数值变化量之间的差值;根据时钟计数差值,控制第一通信接口调整数据帧传输的数据包的数量,并向数据接收装置发送指示信息,指示信息用于指示调整数据帧上传输的数据包的数量。In the third aspect, a data transmission method is provided, which sends data in the form of data packets to the data receiving device through the data frame of the synchronization link within a preset time; the data carries a data clock, and the synchronization link has a link path clock; obtain the count value of the link clock and the count value of the data clock within the preset time; calculate the clock count difference; the clock count difference is the change in the count value of the link clock and the count value of the data clock within the preset time The difference between the changes; according to the clock count difference, control the first communication interface to adjust the number of data packets transmitted in the data frame, and send instruction information to the data receiving device, the instruction information is used to instruct the adjustment of the data transmitted in the data frame The number of packages.
在一种可能的实施方式中,指示信息包括调整方向信息;调整方向信息用于指示增加数据帧中传输的数据包的数量。或者,调整方向信息用于指示减少数据帧中传输的数据包的数量。In a possible implementation, the indication information includes adjustment direction information; the adjustment direction information is used to indicate increasing the number of data packets transmitted in the data frame. Alternatively, the adjustment direction information is used to indicate reducing the number of data packets transmitted in the data frame.
在一种可能的实施方式中,指示信息还包括调整数量信息;当调整方向信息指示增加数据帧中传输的数据包的数量时,调整数量信息为在数据帧中传输的数据包增加的数量。或者,当调整方向信息指示减少数据帧中传输的数据包的数量时,调整数量信息为在数据帧中传输的数据包减少的数量。In a possible implementation, the indication information also includes adjustment quantity information; when the adjustment direction information indicates increasing the number of data packets transmitted in the data frame, the adjustment quantity information is the increased number of data packets transmitted in the data frame. Alternatively, when the adjustment direction information indicates reducing the number of data packets transmitted in the data frame, the adjustment quantity information is the reduced number of data packets transmitted in the data frame.
在一种可能的实施方式中,指示信息还包括调整时刻点;调整时刻点用于指示在数据帧上增加或减少数据包的数量的时刻点,调整时刻点包括绝对时间A或相对时间B;绝对时间A为当链路时钟的计数值为A时对应的时刻点;相对时间B为指示信息的时刻点之后经过时间B的时刻点。In a possible implementation, the indication information also includes an adjustment time point; the adjustment time point is used to indicate a time point at which to increase or decrease the number of data packets on the data frame, and the adjustment time point includes absolute time A or relative time B; Absolute time A is the corresponding time point when the count value of the link clock is A; relative time B is the time point after time B has passed after the time point of the indication information.
在一种可能的实施方式中,数据为音频数据或视频数据。In a possible implementation, the data is audio data or video data.
第四方面,提供了一种数据传输方法,通过同步链路的数据帧接收数据包,并接收指示信息;指示信息用于指示调整数据帧上传输的数据包的数量;数据包中承载数据;数据中携带数据时钟,同步链路具有链路时钟;根据指示信息调整解析通过数据帧接收的数据包的数量。In the fourth aspect, a data transmission method is provided, which receives data packets through the data frame of the synchronization link and receives indication information; the indication information is used to indicate adjusting the number of data packets transmitted on the data frame; the data packets carry data; The data carries the data clock, and the synchronization link has a link clock; the number of data packets received through the data frame is adjusted and parsed according to the instruction information.
在一种可能的实施方式中,指示信息包括调整方向信息;调整方向信息指示增加数据帧中传输的数据包的数量;或者,调整方向信息指示减少数据帧中传输的数据包的数量。如果接收到的调整方向信息指示增加数据帧中传输的数据包的数量,则增加解析通过数据帧接收的数据包的数量;如果接收到的调整方向信息指示减少数据帧中传输的数据包的数量,则减少解析通过数据帧接收的数据包的数量。In a possible implementation, the indication information includes adjustment direction information; the adjustment direction information indicates increasing the number of data packets transmitted in the data frame; or the adjustment direction information indicates reducing the number of data packets transmitted in the data frame. If the received adjustment direction information indicates to increase the number of data packets transmitted in the data frame, increase the number of data packets received through the data frame; if the received adjustment direction information indicates to decrease the number of data packets transmitted in the data frame , then reduce the number of packets received through the data frame parsed.
在一种可能的实施方式中,指示信息还包括调整数量信息;调整数量信息为在数据帧中传输的数据包增加的数量,或者在数据帧中传输的数据包减少的数量。如果接收到的调整方向信息指示增加数据帧中传输的数据包的数量,则增加解析通过数据帧接收的数据包;增加解析的数据包数量为调整数量信息个。如果接收到的调整方向信息指示减少数据帧中传输的数据包的数量,则减少解析通过数据帧接收的数据包;减 少解析的数据包数量为调整数量信息个。In a possible implementation, the indication information also includes adjustment quantity information; the adjustment quantity information is an increase in the number of data packets transmitted in the data frame, or a decrease in the number of data packets transmitted in the data frame. If the received adjustment direction information indicates that the number of data packets transmitted in the data frame is increased, the number of data packets received through the data frame is increased; the number of data packets that are parsed is increased by the number of the adjustment quantity information. If the received adjustment direction information indicates to reduce the number of data packets transmitted in the data frame, the number of data packets received through the data frame is reduced; the number of parsed data packets is reduced to the adjustment quantity information.
在一种可能的实施方式中,指示信息还包括调整时刻点;调整时刻点用于指示在数据帧上增加或减少数据包的数量的时刻点,调整时刻点包括绝对时间A或相对时间B;绝对时间A为当链路时钟的计数值为A时对应的时刻点;相对时间B为指示信息的时刻点之后经过时间B的时刻点;如果接收到的调整方向信息指示增加数据帧中传输的数据包的数量,则在调整时刻点之后,增加解析通过数据帧接收的数据包的数量;如果接收到的调整方向信息指示减少数据帧中传输的数据包的数量,则在调整时刻点之后,减少解析通过数据帧接收的数据包的数量。In a possible implementation, the indication information also includes an adjustment time point; the adjustment time point is used to indicate a time point at which to increase or decrease the number of data packets on the data frame, and the adjustment time point includes absolute time A or relative time B; Absolute time A is the corresponding point in time when the count value of the link clock is A; relative time B is the point in time that elapses after time B after the point in time indicating the information; if the received adjustment direction information indicates increasing the value transmitted in the data frame The number of data packets, then after the adjustment time point, increase the number of data packets received through the analysis of the data frame; if the received adjustment direction information indicates to reduce the number of data packets transmitted in the data frame, then after the adjustment time point, Reduce the number of packets received via data frames parsed.
第五方面,提供了一种通信装置,该通信装置包括收发模块,收发模块用于在预设时间内,将数据以数据包的形式通过同步链路的数据帧向数据接收装置进行发送;数据中携带数据时钟,同步链路具有链路时钟;调整数据帧传输的数据包的数量,并向数据接收装置发送指示信息,指示信息用于指示调整数据帧上传输的数据包的数量。In a fifth aspect, a communication device is provided. The communication device includes a transceiver module. The transceiver module is used to send data in the form of data packets to the data receiving device through the data frame of the synchronous link within a preset time; data The data clock is carried in the synchronization link, and the synchronization link has a link clock; the number of data packets transmitted on the data frame is adjusted, and indication information is sent to the data receiving device, and the indication information is used to instruct the adjustment of the number of data packets transmitted on the data frame.
第六方面,提供了一种通信装置,该通信装置包括收发模块,收发模块用于通过同步链路的数据帧接收数据包,并接收指示信息;指示信息用于指示调整数据帧上传输的数据包的数量;数据包中承载数据;数据中携带数据时钟,同步链路具有链路时钟;根据指示信息调整解析通过数据帧接收的数据包的数量。In a sixth aspect, a communication device is provided. The communication device includes a transceiver module. The transceiver module is used to receive data packets through the data frame of the synchronization link and receive indication information; the indication information is used to instruct the adjustment of the data transmitted on the data frame. The number of packets; the data packets carry data; the data carries the data clock, and the synchronization link has a link clock; adjust and parse the number of data packets received through the data frame according to the instruction information.
第七方面,提供了一种数据传输系统,包括如上述第一方面的数据发送装置和如上述第二层面的数据接收装置;数据发送装置用于将数据以数据包的形式,通过同步链路的数据帧向数据接收装置进行发送,同时还通过同步链路向数据接收装置发送指示信息;数据携带数据时钟,指示信息用于指示调整数据帧上传输的数据包的数量;数据接收装置用于从同步链路上接收数据包和指示信息,并解析数据包得到数据,根据指示信息调整解析通过数据帧接收的数据包的数量。A seventh aspect provides a data transmission system, including the data sending device of the first aspect and the data receiving device of the second level; the data sending device is used to transmit data in the form of data packets through a synchronous link The data frame is sent to the data receiving device, and indication information is also sent to the data receiving device through the synchronization link; the data carries the data clock, and the indication information is used to indicate adjusting the number of data packets transmitted on the data frame; the data receiving device is used to Receive data packets and indication information from the synchronization link, parse the data packets to obtain data, and adjust and parse the number of data packets received through the data frame according to the indication information.
第八方面,提供了一种芯片系统。该芯片系统包括至少一个处理器和至少一个接口电路。至少一个处理器和至少一个接口电路可通过线路互联。处理器用于支持电子设备实现上述方法实施例中的各个功能或者步骤,至少一个接口电路可用于从其它装置(例如存储器)接收信号,或者,向其它装置(例如通信接口)发送信号。该芯片系统可以包括芯片,还可以包括其他分立器件。An eighth aspect provides a chip system. The chip system includes at least one processor and at least one interface circuit. At least one processor and at least one interface circuit may be interconnected by wires. The processor is used to support the electronic device to implement various functions or steps in the above method embodiments. At least one interface circuit can be used to receive signals from other devices (such as memory) or send signals to other devices (such as communication interfaces). The chip system may include chips and may also include other discrete devices.
第九方面,提供了一种计算机可读存储介质,该计算机可读存储介质包括指令,当指令在上述芯片系统上运行时,使得该芯片系统执行上述方法实施例中各个功能或者步骤,例如执行上述第三方面或第四方面记载的方法。In a ninth aspect, a computer-readable storage medium is provided. The computer-readable storage medium includes instructions. When the instructions are run on the above-mentioned chip system, the chip system causes the chip system to perform various functions or steps in the above-mentioned method embodiments, such as executing The method described in the third or fourth aspect above.
第十方面,提供了一种包括指令的计算机程序产品,当指令在上述芯片系统上运行时,使得该芯片系统执行上述方法实施例中各个功能或者步骤,例如执行上述第三方面或第四方面记载的方法。In a tenth aspect, a computer program product including instructions is provided. When the instructions are run on the above-mentioned chip system, the chip system causes the chip system to perform various functions or steps in the above-mentioned method embodiments, such as executing the above-mentioned third or fourth aspect. method of recording.
关于第二方面至第十方面的技术效果参照前面第一方面的技术效果的描述。Regarding the technical effects of the second to tenth aspects, refer to the previous description of the technical effects of the first aspect.
附图说明Description of the drawings
图1为本申请实施例提供的一种同步链路上的数据帧的结构示意图;Figure 1 is a schematic structural diagram of a data frame on a synchronization link provided by an embodiment of the present application;
图2为本申请实施例提供的一种数据传输系统的结构示意图;Figure 2 is a schematic structural diagram of a data transmission system provided by an embodiment of the present application;
图3为本申请实施例提供的一种数据发送装置的结构示意图;Figure 3 is a schematic structural diagram of a data sending device provided by an embodiment of the present application;
图4为本申请实施例提供的一种时钟误差的累积示意图;Figure 4 is a cumulative schematic diagram of clock errors provided by an embodiment of the present application;
图5为本申请实施例提供的一种调整数据帧内的数据包的数量的示例图;Figure 5 is an example diagram of adjusting the number of data packets in a data frame provided by an embodiment of the present application;
图6为本申请实施例提供的又一种调整数据帧内的数据包的数量的示例图;Figure 6 is another example diagram of adjusting the number of data packets in a data frame provided by the embodiment of the present application;
图7为本申请实施例提供的一种确定绝对时间A的示例图;Figure 7 is an example diagram for determining absolute time A provided by the embodiment of the present application;
图8为本申请实施例提供的一种确定相对时间B的示例图;Figure 8 is an example diagram for determining relative time B provided by the embodiment of the present application;
图9A为本申请实施例提供的一种多个数据帧未调整数据包的数量的示例图;Figure 9A is an example diagram of multiple data frames without adjusting the number of data packets provided by the embodiment of the present application;
图9B为本申请实施例提供的一种在多个数据帧中都增加一个数据包的示例图;Figure 9B is an example diagram of adding one data packet to multiple data frames according to the embodiment of the present application;
图9C为本申请实施例提供的一种在多个数据帧中增加多个数据包的示例图;Figure 9C is an example diagram of adding multiple data packets to multiple data frames provided by the embodiment of the present application;
图10为本申请实施例提供的一种数据传输方法的流程示意图;Figure 10 is a schematic flow chart of a data transmission method provided by an embodiment of the present application;
图11为本申请实施例提供的又一种数据传输方法的流程示意图;Figure 11 is a schematic flow chart of another data transmission method provided by an embodiment of the present application;
图12为本申请实施例提供的一种通信装置的结构示意图;Figure 12 is a schematic structural diagram of a communication device provided by an embodiment of the present application;
图13为本申请实施例提供的一种芯片系统的结构示意图。Figure 13 is a schematic structural diagram of a chip system provided by an embodiment of the present application.
具体实施方式Detailed ways
需要说明的是,本申请实施例涉及的术语“第一”、“第二”等仅用于区分同一类型特征的目的,不能理解为用于指示相对重要性、数量、顺序等。It should be noted that the terms "first", "second", etc. involved in the embodiments of this application are only used for the purpose of distinguishing features of the same type and cannot be understood as indicating relative importance, quantity, order, etc.
本申请实施例涉及的术语“示例性的”或者“例如”等词用于表示作例子、例证或说明。本申请中被描述为“示例性的”或者“例如”的任何实施例或设计方案不应被解释为比其他实施例或设计方案更优选或更具优势。确切而言,使用“示例性的”或者“例如”等词旨在以具体方式呈现相关概念。The terms “exemplary” or “for example” used in the embodiments of this application are used to represent examples, illustrations or descriptions. Any embodiment or design described herein as "exemplary" or "such as" is not intended to be construed as preferred or advantageous over other embodiments or designs. Rather, use of the words "exemplary" or "such as" is intended to present the concept in a concrete manner.
本申请实施例涉及的术语“耦合”、“连接”应做广义理解,例如,可以指物理上的直接连接,也可以指通过电子器件实现的间接连接,例如通过电阻、电感、电容或其他电子器件实现的连接。The terms "coupling" and "connection" involved in the embodiments of this application should be understood in a broad sense. For example, they may refer to a physical direct connection, or they may refer to an indirect connection realized through electronic devices, such as resistance, inductance, capacitance or other electronic devices. The connection implemented by the device.
首先对本申请涉及的一些概念进行描述:First, some concepts involved in this application are described:
在多媒体系统中,以往常常采用信号线对数据进行传输。这种传输方式对于场地布线有着较高的要求,同时在传输上也有较大的限制。随着传输技术的发展,无线实时传输技术凭借其设备部署简单、传输方便等特点,得以广泛应用。In multimedia systems, signal lines are often used to transmit data. This transmission method has higher requirements for site wiring and also has greater restrictions on transmission. With the development of transmission technology, wireless real-time transmission technology has been widely used due to its simple equipment deployment and convenient transmission.
无线实时网络传输是无线数字通讯的关键技术之一。在其应用中,包括发送端和接收端,发送端通过传输链路将数据实时同步传输到接收端。Wireless real-time network transmission is one of the key technologies for wireless digital communications. In its application, it includes a sending end and a receiving end. The sending end transmits data synchronously to the receiving end in real time through the transmission link.
在一些对被传输的数据的质量要求较高的应用场景中,在进行数据传输时,通常不对数据进行压缩,此时传输数据时的数据流可以被看做一种固定码率的业务,或者称为等时业务。在对此种数据进行无线实时传输时,常常需要保证有着较低的传输时延。In some application scenarios that require high quality of transmitted data, the data is usually not compressed during data transmission. At this time, the data stream when transmitting data can be regarded as a fixed code rate service, or Called isochronous business. When wirelessly transmitting this kind of data in real time, it is often necessary to ensure a low transmission delay.
从无线实时网络传输的传输链路的物理层特点上分析,可以将承载数据的传输链路分为两种:基于竞争的链路和基于非竞争的链路。From the analysis of the physical layer characteristics of the transmission link of wireless real-time network transmission, the transmission link carrying data can be divided into two types: competition-based links and non-competition-based links.
在基于竞争的链路中,例如无线保真网络(Wireless Fidelity,Wi-Fi),所有的发送端都需要检测传输链路的空闲状态。只有当传输链路为空闲时,发送端才能发送信号。当数据传输系统采用竞争的链路时,如果存在发送端较多,则可能会存在大量的发送端之间关于信道的接入竞争,从而导致各个发送端占用传输链路的时间不可控。故而采用竞争的链路的无线实时网络,无法保证发送端在对数据进行无线实时传输的过程中关于低传输时延的要求。In contention-based links, such as Wireless Fidelity (Wi-Fi), all senders need to detect the idle state of the transmission link. The sender can only send signals when the transmission link is idle. When the data transmission system uses competing links, if there are many senders, there may be a large number of senders competing for channel access, resulting in uncontrollable time for each sender to occupy the transmission link. Therefore, a wireless real-time network using competing links cannot guarantee the low transmission delay requirement of the sender during the wireless real-time transmission of data.
因此,在对传输时延有着较高要求的情况下,如图1所示,传输链路常常采用为非竞争的链路的同步链路200。例如基于中心控制系统的同步传输网络(synchronous transmission),常见的同步传输网络有蜂窝无线通信网络等。在同步传输网络中,发送端和接收端的时钟是统一的。在传输的过程中,通过符号相关技术实现在同步链路上的时间同步和频率同步。符号相关技术主要是指符号同步。在无线数字通讯中,接收端为了将同步链路200中接收到的信号恢复为数据,则要对接收到的信号进行周期性地采样、判决。故而在接收端需要设置一个与从同步链路200中接收到的信号在符号速率上相同步的时钟信号,以得到准确的采样。基于中心控制系统的同步传输网络会在同步链路200上预留周期性、等间隔的链路资源,用来承载特定长度的数据,这十分利于数据的传输。这种等间隔的链路资源就是数据帧210。将数据以数据包214的形式通过同步链路200的数据帧210进行传输。Therefore, when there is a high requirement for transmission delay, as shown in FIG. 1 , the transmission link is often a synchronous link 200 that is a non-contention link. For example, a synchronous transmission network based on a central control system. Common synchronous transmission networks include cellular wireless communication networks, etc. In a synchronous transmission network, the clocks of the sending end and the receiving end are unified. During the transmission process, time synchronization and frequency synchronization on the synchronization link are achieved through symbol correlation technology. Symbol related technology mainly refers to symbol synchronization. In wireless digital communication, in order to recover the signal received in the synchronization link 200 into data, the receiving end must periodically sample and determine the received signal. Therefore, a clock signal synchronized in symbol rate with the signal received from the synchronization link 200 needs to be set at the receiving end to obtain accurate sampling. The synchronous transmission network based on the central control system will reserve periodic and equally spaced link resources on the synchronous link 200 to carry data of a specific length, which is very conducive to data transmission. This equally spaced link resource is the data frame 210. The data is transmitted in the form of data packets 214 through data frames 210 of the synchronization link 200 .
采用非竞争的链路的同步传输网络所传输的数据,可以根据是否携带数据时钟分为携带数据时钟的数据和未携带数据时钟的数据。对于未携带数据时钟的数据,其播放速率可由播放设备或传输设备指定,故而可以直接采用同步传输网络的同步链路200按照链路时钟进行传输。常见的未携带数据时钟的数据包括来自或联网或者文件系统的音频流或视频流。如图4所示,对于携带数据时钟的数据而言,在采用同步链路200传输时,常常会因为数据时钟和链路时钟不同步,存在长期累积下的同步传输偏差,进一步因同步传输偏差导致在传输过程中对数据采样的丢失。例如,在相对偏差为20ppm的数据时钟和链路时钟下,一个采样率为48KHz的数据每秒会产生20微秒的偏差,该偏差约等于一个采样周期。在这种情况下,发送端每秒都会累积一个数据包214未发送给接收端,或者每秒都会累积少发送一个数据包214给接收端,最终导致传输的数据质量受损。Data transmitted by a synchronous transmission network using non-competition links can be divided into data carrying a data clock and data without a data clock according to whether it carries a data clock. For data that does not carry a data clock, the playback rate can be specified by the playback device or the transmission device, so the synchronization link 200 of the synchronous transmission network can be directly used for transmission according to the link clock. Common data that does not carry a data clock include audio or video streams from either the network or the file system. As shown in Figure 4, for data carrying a data clock, when the synchronous link 200 is used for transmission, there is often a synchronous transmission deviation accumulated over a long period of time because the data clock and the link clock are not synchronized. Further, due to the synchronous transmission deviation Resulting in the loss of data samples during transmission. For example, with a relative deviation of 20 ppm between the data clock and the link clock, a data with a sampling rate of 48KHz will produce a deviation of 20 microseconds per second, which is approximately equal to one sampling period. In this case, the sender will accumulate one data packet 214 that is not sent to the receiving end every second, or will accumulate one data packet 214 that is not sent to the receiving end every second, which ultimately results in the quality of the transmitted data being compromised.
一种解决方法是在传输时,对携带数据时钟的数据执行重采样,然后将重采样后的数据转换为数据包214后经过同步链路200进行传输。重采样的方法有将数据从数字信号转换为模拟信号,然后进行重采样;或者使用简单的插值方式对数据进行重采样。但两种重采样的方式都会导致数据的采样精度受损,从而降低传输的数据的质量。除此以外,重采样的过程也会额外消耗器件一定的计算资源。One solution is to resample the data carrying the data clock during transmission, and then convert the resampled data into data packets 214 for transmission through the synchronization link 200 . Resampling methods include converting data from digital signals to analog signals and then resampling; or using simple interpolation to resample the data. However, both resampling methods will cause the sampling accuracy of the data to be damaged, thereby reducing the quality of the transmitted data. In addition, the resampling process will also consume a certain amount of additional computing resources from the device.
另一种解决方式是在传输过程中,对数据进行采样后,周期性地丢弃一定数量的数据或者在数据帧210上留一定数量的空缺,然后再通过同步链路200的数据帧210将数据从发送端传输到接收端。这种方式简单易行,但同样会导致数据的质量受损。Another solution is to sample the data during the transmission process, periodically discard a certain amount of data or leave a certain number of gaps in the data frame 210, and then send the data through the data frame 210 of the synchronization link 200. Transmitted from the sender to the receiver. This method is simple and easy to implement, but it will also cause the quality of the data to be compromised.
还有一种解决方式是在传输过程中,对数据时钟和链路时钟进行调整,使得数据传输速率与数据消耗速率始终保持同步。这种方式虽然可以保证传输的数据的质量,但链路时钟的稳定度常常是大于数据时钟的,调整链路时钟来实现时钟的同步的操作非常困难,同时由于对链路时钟的更改,反而会引入更多其他问题。Another solution is to adjust the data clock and link clock during the transmission process so that the data transmission rate and data consumption rate are always synchronized. Although this method can ensure the quality of transmitted data, the stability of the link clock is often greater than the data clock. It is very difficult to adjust the link clock to achieve clock synchronization. At the same time, due to changes in the link clock, the Will introduce more other problems.
为此,本申请实施例另外提出了一种数据传输系统,如图2所示,包括数据发送装置100和数据接收装置300。数据发送装置100用于将数据以数据包214的形式,承载在具有链路时钟的同步链路200的数据帧210上,发送给数据接收装置300;该数据携带有数据时钟。数据发送装置100还用于检测数据时钟和链路时钟的偏差,根据偏差调整数据帧210中的数据包214的数量,并向数据接收装置300发送指示信息, 指示信息用于指示调整数据帧上传输的数据包214的数量。数据接收装置300用于通过同步链路200中的数据帧210接收来自数据发送装置100的数据包214;并根据接收到的指示信息调整解析从数据帧210中接收到的数据包214的数量。To this end, the embodiment of the present application additionally proposes a data transmission system, as shown in FIG. 2 , including a data sending device 100 and a data receiving device 300 . The data sending device 100 is configured to carry the data in the form of a data packet 214 on the data frame 210 of the synchronization link 200 with a link clock, and send it to the data receiving device 300; the data carries the data clock. The data sending device 100 is also used to detect the deviation between the data clock and the link clock, adjust the number of data packets 214 in the data frame 210 according to the deviation, and send instruction information to the data receiving device 300. The instruction information is used to instruct the adjustment of the data packets 214 on the data frame. Number of packets 214 transmitted. The data receiving device 300 is configured to receive the data packet 214 from the data sending device 100 through the data frame 210 in the synchronization link 200; and adjust and parse the number of data packets 214 received from the data frame 210 according to the received instruction information.
数据发送装置100包括第一控制器110和第一通信接口120。第一控制器110用于:控制第一通信接口120,在预设时间内,将数据以数据包214的形式承载在数据帧210上向数据接收装置300发送;控制第一通信接口120调整在当前的数据帧210上传输的数据包214的数量,同时向数据接收装置300发送指示信息。The data sending device 100 includes a first controller 110 and a first communication interface 120 . The first controller 110 is used to: control the first communication interface 120 to carry the data in the form of a data packet 214 on the data frame 210 and send it to the data receiving device 300 within a preset time; control the first communication interface 120 to adjust the The number of data packets 214 transmitted on the current data frame 210 is sent to the data receiving device 300 at the same time.
通过上述操作即可实现在数据时钟和链路时钟产生偏差的情况下简单易操作地同步传输携带数据时钟的数据,同时这种传输保证了传输数据的质量。Through the above operations, it is possible to achieve simple and easy-to-operate synchronous transmission of data carrying the data clock when the data clock and the link clock deviate. At the same time, this transmission ensures the quality of the transmitted data.
通过图2所示的数据传输系统可以实现如图10所示的以下数据传输方法,包括步骤S110-S140:The following data transmission method as shown in Figure 10 can be implemented through the data transmission system shown in Figure 2, including steps S110-S140:
S110、数据发送装置100接收采样后的数据;该数据携带有数据时钟。S110. The data sending device 100 receives sampled data; the data carries a data clock.
S120、数据发送装置100通过同步链路200向数据接收装置300传输数据。S120. The data sending device 100 transmits data to the data receiving device 300 through the synchronization link 200.
在一些实施方式中,如图2所示,第一控制器110控制第一通信接口120,在预设时间内,将数据以数据包214的形式承载在数据帧210上向数据接收装置300发送;获取预设时间内链路时钟的计数值和数据时钟的计算值,计算链路时钟的计数值变化量和数据时钟的计数值变化量之间的差值,得到时钟计数差值;根据时钟计数差值控制第一通信接口120调整在当前的数据帧210上传输的数据包214的数量,同时向数据接收装置300发送指示信息。In some embodiments, as shown in FIG. 2 , the first controller 110 controls the first communication interface 120 to carry data in the form of a data packet 214 on a data frame 210 and send it to the data receiving device 300 within a preset time. ; Obtain the count value of the link clock and the calculated value of the data clock within the preset time, calculate the difference between the count value change of the link clock and the count value change of the data clock, and obtain the clock count difference; according to the clock The count difference controls the first communication interface 120 to adjust the number of data packets 214 transmitted on the current data frame 210 and at the same time send indication information to the data receiving device 300 .
具体的,如图11所示,步骤S120包括步骤S121-S124:Specifically, as shown in Figure 11, step S120 includes steps S121-S124:
S121、数据发送装置100的第一控制器110将接收到的数据转换为数据包214,并向数据接收装置300发送传输信令,传输信令用于指示数据接收装置300接收同步链路200的数据帧210中传输的数据。S121. The first controller 110 of the data sending device 100 converts the received data into a data packet 214, and sends transmission signaling to the data receiving device 300. The transmission signaling is used to instruct the data receiving device 300 to receive the synchronization link 200. Data transmitted in data frame 210.
示例性地,数据发送装置100在接收到采样后的数据后,首先向数据接收装置300发送传输信令。传输信令中包括以下传输数据的参数信息:起始时间域、终止时间域、起始频率域、终止频率域、发送功率;数据接收装置300接收到传输信令后,根据传输信令中包括的参数信息做好同步传输的接收数据的准备。For example, after receiving the sampled data, the data sending device 100 first sends transmission signaling to the data receiving device 300 . The transmission signaling includes the following parameter information of the transmission data: start time domain, end time domain, start frequency domain, end frequency domain, transmission power; after receiving the transmission signaling, the data receiving device 300 receives the transmission signaling according to the information included in the transmission signaling. The parameter information is ready for receiving data for synchronous transmission.
通过提前发送传输信令,保证了数据发送装置100和数据接收装置300通过同步链路200进行同步、实时地传输。By sending the transmission signaling in advance, it is ensured that the data sending device 100 and the data receiving device 300 perform synchronous and real-time transmission through the synchronization link 200 .
示例性地,数据发送装置100将数据转化为数据包214的方法包括调制或编码。当为调制时,数据发送装置100发送给数据接收装置300的传输信令中还包括调制参数,以便数据接收装置300根据接收到的调制参数对数据包214进行解调从而得到数据。当为编码时,数据发送装置100发送给数据接收装置300的传输信令中还包括编码参数,以便数据接收装置300根据接收到的编码参数对数据包214进行解码从而得到数据。Exemplarily, the method by which the data sending device 100 converts data into data packets 214 includes modulation or encoding. When it is modulated, the transmission signaling sent by the data sending device 100 to the data receiving device 300 also includes modulation parameters, so that the data receiving device 300 demodulates the data packet 214 according to the received modulation parameters to obtain data. When encoding, the transmission signaling sent by the data sending device 100 to the data receiving device 300 also includes encoding parameters, so that the data receiving device 300 decodes the data packet 214 according to the received encoding parameters to obtain data.
S122、数据发送装置100的第一控制器110控制第一通信接口120,在预设时间内,将数据包214通过同步链路200中的数据帧210向数据接收装置300进行发送。S122. The first controller 110 of the data sending device 100 controls the first communication interface 120 to send the data packet 214 to the data receiving device 300 through the data frame 210 in the synchronization link 200 within a preset time.
S123、第一控制器110获取同步链路200的链路时钟的计数值和数据时钟的计数值,根据预设时间内链路时钟的计数值变化量和数据时钟的计数值变化量之间的差值, 得到时钟计数差值。第一控制器110根据时钟计数差值,控制第一通信接口120调整数据帧210传输的数据包214的数量,并向数据接收装置300发送指示信息。S123. The first controller 110 obtains the count value of the link clock and the count value of the data clock of the synchronization link 200, and based on the difference between the change amount of the count value of the link clock and the change amount of the count value of the data clock within the preset time Difference, get the clock count difference. The first controller 110 controls the first communication interface 120 to adjust the number of data packets 214 transmitted by the data frame 210 according to the clock count difference, and sends instruction information to the data receiving device 300 .
示例性地,在开始传输数据后,数据发送装置100通过计数器分别对链路时钟和数据时钟进行计数,其中数据时钟的计数值代表在数据接收装置300在接收采样后的数据时的数据接收量,链路时钟的计数值代表在数据包214在同步链路200上的传输量。数据发送装置100通过计算预设时间内链路时钟的计数值变化量和数据时钟的计数值变化量之间的差值,得到时钟计数差值。得到的时钟计数差值可反映链路时钟和数据时钟的偏差。当时钟计数差值到达一定值时,两者之间的偏差已经到达生成一个数据包214所需要消耗的时间,此时会出现第一控制器110多转换了一个数据包214未发送给数据接收装置300,或者少转换了一个数据包214给数据接收装置300。此处的偏差既可以是数据时钟慢于链路时钟,也可以是数据时钟快于链路时钟。当数据时钟慢于链路时钟时,数据的消耗速率低于数据的传输速率,随着时间的累积,偏差逐渐增大,第一控制器110少转换了一个以上的数据包214;当数据时钟快于链路时钟时,数据的消耗速率高于数据的传输速率,偏差逐渐增大,第一控制器110多转换了一个以上的数据包214。Exemplarily, after starting to transmit data, the data sending device 100 counts the link clock and the data clock respectively through counters, where the count value of the data clock represents the amount of data received when the data receiving device 300 receives the sampled data. , the count value of the link clock represents the amount of transmission of the data packet 214 on the synchronous link 200. The data sending device 100 obtains the clock count difference by calculating the difference between the change amount of the count value of the link clock and the change amount of the count value of the data clock within a preset time. The resulting clock count difference reflects the skew of the link clock and data clock. When the clock count difference reaches a certain value, the deviation between the two has reached the time required to generate a data packet 214. At this time, it will appear that the first controller 110 has converted one more data packet 214 and has not sent it to the data receiver. The device 300, or at least one data packet 214, is converted to the data receiving device 300. The skew here can be either the data clock being slower than the link clock or the data clock being faster than the link clock. When the data clock is slower than the link clock, the data consumption rate is lower than the data transmission rate. As time accumulates, the deviation gradually increases, and the first controller 110 converts more than one data packet 214 less; when the data clock When it is faster than the link clock, the data consumption rate is higher than the data transmission rate, the deviation gradually increases, and the first controller 110 converts more than one data packet 214.
数据发送装置100根据得到的时钟计数差值的大小,调整单个数据帧210中的数据包214的数量,并根据调整生成指示信息,将指示信息和调整后的数据帧210都发送给数据接收装置300。数据接收装置300获取同步链路200的链路时钟的计数值,并根据获取的链路时钟的计数值接收数据帧210。在数据接收装置300接收到数据帧210后,会对接收到的数据帧210进行缓存,在缓存的这个时间差内,数据接收装置300根据指示信息判断数据帧210是否为被调整了数据包214数量的数据帧210,以及被调整的数据帧210是增加了数据包214还是减少了数据包214,然后适应性地调整从数据帧210中解析数据包214的数量。The data sending device 100 adjusts the number of data packets 214 in a single data frame 210 according to the obtained clock count difference, generates indication information according to the adjustment, and sends both the indication information and the adjusted data frame 210 to the data receiving device. 300. The data receiving device 300 obtains the count value of the link clock of the synchronization link 200, and receives the data frame 210 according to the obtained count value of the link clock. After the data receiving device 300 receives the data frame 210, it will cache the received data frame 210. Within this buffering time difference, the data receiving device 300 determines whether the data frame 210 has been adjusted according to the instruction information. The number of data packets 214 has been adjusted. of data frame 210, and whether the adjusted data frame 210 adds data packets 214 or decreases data packets 214, and then adaptively adjusts the number of parsed data packets 214 from the data frame 210.
示例性地,关于数据发送装置100调整数据帧210中的数据包214的数量的操作举例如下:Exemplarily, the operation of the data sending device 100 to adjust the number of data packets 214 in the data frame 210 is as follows:
以数据时钟慢于链路时钟为例。如图5所示,同步链路200上有一连串的数据帧210。假设数据发送装置100将数据包214以四个一组的形式承载在单个数据帧210中。在数据发送装置100通过同步链路200发送第一个数据帧210时,数据时钟和链路时钟开始产生偏差,但此时偏差还较小,尚未产生明显的偏差,此时从数据中生成了四个数据包214并承载在第一个数据帧210的承载部分212上。随着数据的传输,在数据发送装置100在准备传输图中第三个数据帧210时,检测到数据时钟和链路时钟之间的偏差随着时间的累积,此时数据时钟已经慢于链路时钟传输一个数据包214所需要消耗的时间,此时数据发送装置100只从数据中生成了三个数据包214,而同步链路200已经要传输第三个数据帧210走,故数据发送装置100在第三个数据帧210的承载部分212中放入三个数据包214,遗留一个空缺215,然后将第三个数据帧210通过同步链路200发送给数据接收装置300。数据发送装置100在发送第三个数据帧210的同时,还生成一个指示信息发送给数据接收装置300,通过指示信息指示数据接收装置300在发送数据帧210时产生了空缺215。Take for example the data clock being slower than the link clock. As shown in Figure 5, there is a series of data frames 210 on the synchronization link 200. It is assumed that the data sending device 100 carries the data packets 214 in a group of four in a single data frame 210. When the data sending device 100 sends the first data frame 210 through the synchronization link 200, the data clock and the link clock begin to deviate, but the deviation is still small at this time and no obvious deviation has yet occurred. At this time, the data clock is generated from the data. Four data packets 214 are carried on the bearer part 212 of the first data frame 210 . With the transmission of data, when the data sending device 100 is preparing to transmit the third data frame 210 in the diagram, it is detected that the deviation between the data clock and the link clock accumulates over time. At this time, the data clock is already slower than the link clock. The time required for the road clock to transmit a data packet 214. At this time, the data sending device 100 only generates three data packets 214 from the data, and the synchronization link 200 has already transmitted the third data frame 210, so the data sending device 100 has already transmitted the third data frame 210. The device 100 puts three data packets 214 into the bearer part 212 of the third data frame 210, leaving one gap 215, and then sends the third data frame 210 to the data receiving device 300 through the synchronization link 200. While sending the third data frame 210, the data sending device 100 also generates an indication message and sends it to the data receiving device 300. The indication information indicates that the data receiving device 300 generates a gap 215 when sending the data frame 210.
以数据时钟快于链路时钟为例。如图6所示,同步链路200上有一连串的数据帧 210。假设数据发送装置100将数据包214以四个一组的形式承载在单个数据帧210中。在数据发送装置100通过同步链路200发送第一个数据帧210时,数据时钟和链路时钟开始产生偏差,但此时偏差还较小,尚未产生明显的偏差,此时从数据中生成了四个数据包214并承载在第一个数据帧210的承载部分212上。随着数据的传输,在数据发送装置100在准备传输图中第三个数据帧210时,检测到数据时钟和链路时钟之间的偏差随着时间的累积,此时数据时钟已经快于链路时钟传输一个数据包214所需要消耗的时间,此时数据发送装置100从数据中生成了五个数据包214,而同步链路200正在准备传输第三个数据帧210,并未准备开始传输第四个数据帧210。故数据发送装置100在第三个数据帧210的承载部分212中放入五个数据包214(即增加了在第三个数据帧210中传输的数据包214的个数),然后将第三个数据帧210通过同步链路200发送给数据接收装置300。数据发送装置100在发送第三个数据帧210的同时,还生成一个指示信息发送给数据接收装置300,通过指示信息指示数据接收装置300在发送第三个数据帧210时增加了一个数据包214,于是数据接收装置300增加解析第三数据帧210中传输的数据包214的数量。Take for example the data clock being faster than the link clock. As shown in Figure 6, there is a series of data frames 210 on the synchronization link 200. It is assumed that the data sending device 100 carries the data packets 214 in a group of four in a single data frame 210. When the data sending device 100 sends the first data frame 210 through the synchronization link 200, the data clock and the link clock begin to deviate, but the deviation is still small at this time and no obvious deviation has yet occurred. At this time, the data clock is generated from the data. Four data packets 214 are carried on the bearer part 212 of the first data frame 210 . With the transmission of data, when the data sending device 100 is preparing to transmit the third data frame 210 in the diagram, it is detected that the deviation between the data clock and the link clock accumulates over time. At this time, the data clock is already faster than the link clock. The time it takes for the road clock to transmit a data packet 214. At this time, the data sending device 100 generates five data packets 214 from the data, and the synchronization link 200 is preparing to transmit the third data frame 210 and is not ready to start transmission. The fourth data frame 210. Therefore, the data sending device 100 puts five data packets 214 into the bearer part 212 of the third data frame 210 (that is, increases the number of data packets 214 transmitted in the third data frame 210), and then puts the third data packet 214 into the bearer part 212 of the third data frame 210. A data frame 210 is sent to the data receiving device 300 through the synchronization link 200. While sending the third data frame 210, the data sending device 100 also generates an indication message and sends it to the data receiving device 300. The indication information instructs the data receiving device 300 to add a data packet 214 when sending the third data frame 210. , so the data receiving device 300 increases the number of parsed data packets 214 transmitted in the third data frame 210 .
以上为同步链路上一个对数据包214进行调整的两种情况举例,但当出现多个数据包214需要调整时,可在一个数据帧210中增加多个数据包214的数量,也可在多个数据帧210中分别增加数据包214的数量。The above are two examples of adjusting the data packet 214 on the synchronization link. However, when multiple data packets 214 need to be adjusted, the number of multiple data packets 214 can be increased in one data frame 210, or The number of data packets 214 is increased in the plurality of data frames 210 respectively.
示例性地,如图9A所示,在未发生偏差的情况下,第一控制器110分别将接收到数据转换为20个数据包214,承载在五个数据帧210中传输给数据接收装置300,每个数据帧210中承载4个数据包214。以链路时钟快于数据时钟为例,当在要进行传输时,第一控制器110发现数据时钟和链路时钟存在传输四个数据包214的偏差。如图9B所示,第一控制器110可以在数据帧210中增加一个数据包214,即采用四个数据帧210将20个数据包214传输给数据接收装置300,每个数据帧210中承载5个数据包214。如图9C所示,第一控制器110可以采用四个数据帧210将20个数据包214传输给数据接收装置300,其中,前两个数据帧210中各承载6个数据包214,后两个数据帧210各承载4个数据包214。For example, as shown in FIG. 9A , when no deviation occurs, the first controller 110 converts the received data into 20 data packets 214 respectively, which are carried in five data frames 210 and transmitted to the data receiving device 300 , each data frame 210 carries four data packets 214. Taking the link clock as being faster than the data clock as an example, when transmission is to be performed, the first controller 110 finds that there is a deviation between the data clock and the link clock to transmit four data packets 214 . As shown in Figure 9B, the first controller 110 can add a data packet 214 to the data frame 210, that is, four data frames 210 are used to transmit 20 data packets 214 to the data receiving device 300. Each data frame 210 carries 5 packets 214. As shown in Figure 9C, the first controller 110 can use four data frames 210 to transmit 20 data packets 214 to the data receiving device 300. The first two data frames 210 each carry 6 data packets 214, and the last two data frames 210 carry 6 data packets 214 each. Each data frame 210 carries four data packets 214.
在一些实施方式中,指示信息包括调整方向信息;调整方向信息指示增加数据帧210中传输的数据包214的数量;或者,调整方向信息指示减少数据帧210中传输的数据包214的数量。In some embodiments, the indication information includes adjustment direction information; the adjustment direction information indicates increasing the number of data packets 214 transmitted in the data frame 210; or the adjustment direction information indicates reducing the number of data packets 214 transmitted in the data frame 210.
通过调整方向信息,数据发送装置100可以向数据接收装置300指示是增加了数据帧210中传输的数据包214的数量,还是减少数据帧210中传输的数据包214的数量。数据接收装置300无需额外判断,即可增加或减少解析对应的数据帧210中传输的数据包214的数量。By adjusting the direction information, the data sending device 100 can indicate to the data receiving device 300 whether to increase the number of data packets 214 transmitted in the data frame 210 or to decrease the number of data packets 214 transmitted in the data frame 210 . The data receiving device 300 can increase or decrease the number of data packets 214 transmitted in the parsed corresponding data frame 210 without additional judgment.
在一些实施方式中,指示信息还包括调整数量信息;调整数量信息为在数据帧中传输的数据包增加的数量,或者在数据帧中传输的数据包减少的数量。In some embodiments, the indication information also includes adjustment quantity information; the adjustment quantity information is an increased number of data packets transmitted in the data frame, or a decreased number of data packets transmitted in the data frame.
通过调整数量信息,数据发送装置100可以向数据接收装置300指示增加或减少了数据帧210中传输的数据包214的具体数量,数据接收装置300无需额外判断,即可增加或减少解析对应的数据帧210中传输的数据包214的相应数量。By adjusting the quantity information, the data sending device 100 can indicate to the data receiving device 300 that the specific number of data packets 214 transmitted in the data frame 210 has been increased or decreased, and the data receiving device 300 can increase or decrease the parsed corresponding data without additional judgment. The corresponding number of data packets 214 transmitted in frame 210.
在一些实施方式中,指示信息还包括调整时刻点;调整时刻点用于指示在数据帧 上增加或减少数据包的数量的时刻点,调整时刻点包括绝对时间A或相对时间B;绝对时间A为当链路时钟的计数值为A时对应的时刻点;相对时间B为指示信息的时刻点之后经过时间B的时刻点。In some embodiments, the indication information also includes an adjustment time point; the adjustment time point is used to indicate a time point to increase or decrease the number of data packets on the data frame, and the adjustment time point includes absolute time A or relative time B; absolute time A is the corresponding time point when the count value of the link clock is A; relative time B is the time point after time B has passed after the time point of the indication information.
数据发送装置100向数据接收装置300发送调整时刻点,数据接收装置300根据调整时刻点即可准确找到调整了数据包214数量的数据帧,并进行对应的调整操作。The data sending device 100 sends the adjustment time point to the data receiving device 300. The data receiving device 300 can accurately find the data frame with the adjusted number of data packets 214 according to the adjustment time point, and perform corresponding adjustment operations.
在一些实施方式中,数据发送装置100发送指示信息给数据接收装置300的时刻点可以在发送指示信息所对应的数据帧210的时刻点之前或之后,也可以为发送指示信息所对应的数据帧210的时刻点。In some embodiments, the time point when the data sending device 100 sends the indication information to the data receiving device 300 may be before or after the time point when the data frame 210 corresponding to the indication information is sent, or it may be the time point when the data frame 210 corresponding to the indication information is sent. 210 time point.
示例性地,当数据发送装置100检测到时钟计数差值到达一定数值,将要产生较大偏差导致产生空缺215或者多的数据包214时,可以先向数据接收装置300发送指示信息,然后再发送调整了数据包214数量的数据帧210,也可以将指示信息和调整了数据包214数量的数据帧210在同一消息中进行发送,也可以先发送调整了数据包214数量的数据帧210发送后再发送指示信息。因为数据接收装置300接收到数据帧210后,需要先缓存数据帧210中的数据包214,然后才解析数据包214。只要数据接收装置300在缓存数据帧210中的数据包214到解析数据包214的这段时间中接收到指示信息并根据指示信息调整解析对应的数据帧210中的数据包214的数量即可。For example, when the data sending device 100 detects that the clock count difference reaches a certain value and a large deviation is about to result in gaps 215 or more data packets 214, the indication information can be sent to the data receiving device 300 first, and then the data sending device 100 can send the instruction information to the data receiving device 300. The data frame 210 with the adjusted number of data packets 214 may also be sent in the same message with the indication information and the data frame 210 with the adjusted number of data packets 214, or the data frame 210 with the adjusted number of data packets 214 may be sent first and then Send instructions again. Because after the data receiving device 300 receives the data frame 210, it needs to cache the data packet 214 in the data frame 210 before parsing the data packet 214. As long as the data receiving device 300 receives the instruction information during the period from buffering the data packet 214 in the data frame 210 to parsing the data packet 214 and adjusts the number of parsed data packets 214 in the corresponding data frame 210 according to the instruction information.
示例性地,如图3所示,数据发送装置100的第一控制器110包括控制模块111、偏差计算模块112和时钟同步模块113。时钟控制模块113用于获取预设时间内链路时钟的计数值和数据时钟的计算值;偏差计算模块112用于根据预设时间内链路时钟的计数值和数据时钟的计算值,计算链路时钟的计数值变化量和数据时钟的计数值变化量之间的差值,得到时钟计数差值;控制模块111用于通过第一通信接口120,将数据以数据包214的形式通过同步链路200的数据帧210向数据接收装置300发送;控制模块111还用于根据时钟计数差值控制第一通信接口120调整在当前的数据帧210上传输的数据包214的数量,同时向数据接收装置300发送指示信息。For example, as shown in FIG. 3 , the first controller 110 of the data sending device 100 includes a control module 111 , a deviation calculation module 112 and a clock synchronization module 113 . The clock control module 113 is used to obtain the count value of the link clock and the calculated value of the data clock within a preset time; the deviation calculation module 112 is used to calculate the link based on the count value of the link clock and the calculated value of the data clock within the preset time. The difference between the count value change of the channel clock and the count value change of the data clock is used to obtain the clock count difference; the control module 111 is used to pass the data in the form of a data packet 214 through the synchronization chain through the first communication interface 120 The data frame 210 of the path 200 is sent to the data receiving device 300; the control module 111 is also used to control the first communication interface 120 to adjust the number of data packets 214 transmitted on the current data frame 210 according to the clock count difference, and at the same time to the data receiving device 300. Device 300 sends instruction information.
在一些实施方式中,携带数据时钟的数据为音频数据或者视频数据。In some implementations, the data carrying the data clock is audio data or video data.
在一些实施方式中,如图2所示,数据发送装置100还包括第一播放器130。第一控制器110用于根据时钟计数差值调整在第一播放器130上播放音频数据或视频数据的进度。In some implementations, as shown in FIG. 2 , the data sending device 100 further includes a first player 130 . The first controller 110 is configured to adjust the progress of playing audio data or video data on the first player 130 according to the clock count difference.
在一些应用场景中,对于接收到的采样后的音频数据或视频数据,数据发送装置100需要通过同步链路200发送给数据接收装置300。同时在数据发送装置100的本地端也需要对音频数据或视频数据进行与数据接收装置300一侧同步地播放。故数据发送装置100的第一控制器110可以根据时钟计数差值调整在第一播放器130上播放音频数据或视频数据的进度,从而实现与数据接收装置300同步播放音频数据或视频数据。In some application scenarios, the data sending device 100 needs to send the received sampled audio data or video data to the data receiving device 300 through the synchronization link 200 . At the same time, the local end of the data sending device 100 also needs to play the audio data or video data synchronously with the data receiving device 300 side. Therefore, the first controller 110 of the data sending device 100 can adjust the progress of playing the audio data or video data on the first player 130 according to the clock count difference, thereby achieving synchronous playing of the audio data or video data with the data receiving device 300 .
S124、第一控制器110根据时钟计数差值调整在第一播放器130上播放音频数据或视频数据的进度。S124. The first controller 110 adjusts the progress of playing audio data or video data on the first player 130 according to the clock count difference.
数据发送装置100将数据实时传输到数据接收装置300。在一些如多媒体数据应用的场景下,携带数据时钟的数据为音频数据或视频数据,在进行音频数据或视频数据传输的时候,需要在数据发送装置100这一侧对音频数据或视频数据进行实时同步 地播放。通过时钟计数差值对第一播放器130上播放的音频数据和视频数据进行播放进度的调整。该播放进度的调整实质为第一控制器110发送给第一播放器130的数据的数量,只要第一控制器110向第一播放器130发送的数据的进度与第一控制器110通过数据帧210传输的数据包214的进度一致,即可实现同步播放。The data sending device 100 transmits data to the data receiving device 300 in real time. In some scenarios such as multimedia data applications, the data carrying the data clock is audio data or video data. When transmitting audio data or video data, the audio data or video data needs to be processed in real time on the data sending device 100 side. Play synchronously. The playback progress of the audio data and video data played on the first player 130 is adjusted through the clock count difference. The adjustment of the playback progress is essentially the amount of data sent by the first controller 110 to the first player 130, as long as the progress of the data sent by the first controller 110 to the first player 130 is consistent with the data frame passed by the first controller 110. If the progress of the data packets 214 transmitted by 210 is consistent, synchronous playback can be achieved.
在一些实施方式中,如图2所示,数据接收装置300包括第二控制器310和第二通信接口320。第二控制器310用于通过第二通信接口320从同步链路200的数据帧210上接收数据包214,并对数据包214进行解析得到数据。第二控制器310还用于通过第二通信接口320接收指示信息,并根据指示信息调整从数据帧210上解析数据包214的数量。In some implementations, as shown in FIG. 2 , the data receiving device 300 includes a second controller 310 and a second communication interface 320 . The second controller 310 is configured to receive the data packet 214 from the data frame 210 of the synchronization link 200 through the second communication interface 320, and parse the data packet 214 to obtain data. The second controller 310 is also configured to receive indication information through the second communication interface 320 and adjust the number of parsed data packets 214 from the data frame 210 according to the indication information.
S130、第二控制器310通过第二接口320,从同步链路200中的数据帧210接收来自数据发送装置100的数据包214,并将数据包214解析得到数据。S130. The second controller 310 receives the data packet 214 from the data sending device 100 from the data frame 210 in the synchronization link 200 through the second interface 320, and parses the data packet 214 to obtain data.
示例性地,以数据时钟慢于链路时钟为例。如图5所示,同步链路200上有一连串的数据帧210。假设数据发送装置100将数据包214以四个一组的形式承载在单个数据帧210中。数据接收装置300分别接收数据帧210,并从每个数据帧210的承载部分212中解析出四个数据包214的数据。而数据发送装置100发送的第三个数据帧210,因为出现偏差的原因,其承载部分212中承载了三个数据包214以及一个空缺215。同时,数据发送装置100也向数据接收装置300发送指示信息来指示调整了该数据帧210中的数据包214的数量,具体调整为减少了数据帧210的数量,然后数据帧210根据接收到的指示信息减少对该数据帧210中的数据包214的解析数量。As an example, take the data clock being slower than the link clock. As shown in Figure 5, there is a series of data frames 210 on the synchronization link 200. It is assumed that the data sending device 100 carries the data packets 214 in a group of four in a single data frame 210. The data receiving device 300 receives the data frames 210 respectively, and parses the data of the four data packets 214 from the bearer part 212 of each data frame 210. Due to deviations, the third data frame 210 sent by the data sending device 100 carries three data packets 214 and a gap 215 in its carrying part 212 . At the same time, the data sending device 100 also sends instruction information to the data receiving device 300 to indicate that the number of data packets 214 in the data frame 210 has been adjusted, specifically to reduce the number of data frames 210, and then the data frame 210 is adjusted according to the received The instruction information reduces the number of parsed data packets 214 in the data frame 210 .
示例性地,如果接收到的调整方向信息指示增加数据帧210中传输的数据包214的数量,则第二控制器310增加解析通过数据帧210接收的数据包214;增加解析的数据包214个数为调整数量信息对应的数量。For example, if the received adjustment direction information indicates to increase the number of data packets 214 transmitted in the data frame 210, the second controller 310 increases the parsing of the data packets 214 received through the data frame 210; increases the number of parsed data packets 214. The number is the quantity corresponding to the adjusted quantity information.
如果接收到的调整方向信息指示减少数据帧210中传输的数据包214的数量,则第二控制器310减少解析通过数据帧210接收的数据包214;减少解析的数据包214个数为调整数量信息对应的数量。If the received adjustment direction information indicates reducing the number of data packets 214 transmitted in the data frame 210, the second controller 310 reduces the number of parsed data packets 214 received through the data frame 210; and reduces the number of parsed data packets 214 to the adjusted number. The quantity corresponding to the information.
示例性地,数据接收装置300可以设置一个调整数量,每当接收到指示信息后,就增加或减少解析设置的调整数量个数据帧210中传输的数据包214。For example, the data receiving device 300 may set an adjustment number, and each time the indication information is received, increase or decrease the parsing of the data packets 214 transmitted in the set adjustment number of data frames 210 .
或者数据接收装置300接收到指示信息后,根据指示信息中的调整数量信息对应调整解析数据帧210中数据包214的数量。此种方式可以更加准确地实现对数据帧210中数据包214的准确解析,提高解析得到的数据的质量。Or after receiving the instruction information, the data receiving device 300 correspondingly adjusts the number of data packets 214 in the parsed data frame 210 according to the adjustment quantity information in the instruction information. This method can achieve more accurate analysis of the data packets 214 in the data frame 210 and improve the quality of the analyzed data.
示例性地,如图7所示,以绝对时间A为例,假设数据发送装置100在准备发送第二个数据帧210时,根据时钟计数差值判断到需要在第三个数据帧210中减少一个数据包214。故在发送第二个数据帧210的同时发送了一个指示信息,因为第二个数据帧210的链路时钟计数值为二,则在指示信息中包括的绝对时间A为绝对时间三,其代表的意思为第三个数据帧210所对应的时刻点。则在数据接收装置300的第二控制器310接收到指示信息时,根据其中的绝对时间三即可得知需要调整解析第三个数据帧210中的数据包214的数量,同时根据指示信息中的调整方向信息可知是减少解析数据包214,根据指示信息中的调整数量信息可知是减少解析一个数据包214。Illustratively, as shown in Figure 7, taking absolute time A as an example, assume that when preparing to send the second data frame 210, the data sending device 100 determines based on the clock count difference that it needs to be reduced in the third data frame 210. A packet of 214. Therefore, an indication information is sent while sending the second data frame 210. Because the link clock count value of the second data frame 210 is two, the absolute time A included in the indication information is the absolute time three, which represents means the time point corresponding to the third data frame 210. Then when the second controller 310 of the data receiving device 300 receives the instruction information, it can know based on the absolute time three that it is necessary to adjust the number of data packets 214 in the third data frame 210, and at the same time, according to the instruction information According to the adjustment direction information, it can be known that the number of parsed data packets 214 is reduced. According to the adjustment quantity information in the indication information, it can be known that one data packet 214 is parsed less.
如图8所示,以相对时间B为例,假设数据发送装置100在准备发送第二个数据 帧210时,根据时钟计数差值判断到需要在第三个数据帧210中减少一个数据包214。故在发送第二个数据帧210的同时发送了一个指示信息,因为第二个数据帧210和第三个数据帧210之间相差一个时刻点。故在指示信息中包括相对时间一。则在数据接收装置300的第二控制器310接收到指示信息时,根据其中的相对时间一即可得知需要调整解析第三个数据帧210中的数据包214的数量,同时根据指示信息中的调整方向信息可知是减少解析数据包214,根据指示信息中的调整数量信息可知是减少解析一个数据包214。As shown in Figure 8, taking relative time B as an example, assume that when preparing to send the second data frame 210, the data sending device 100 determines based on the clock count difference that it is necessary to reduce one data packet 214 in the third data frame 210. . Therefore, an indication information is sent while sending the second data frame 210, because there is a time point difference between the second data frame 210 and the third data frame 210. Therefore, relative time one is included in the instruction information. Then when the second controller 310 of the data receiving device 300 receives the instruction information, it can know based on the relative time therein that it is necessary to adjust the number of data packets 214 in the third data frame 210 and at the same time, according to the instruction information According to the adjustment direction information, it can be known that the number of parsed data packets 214 is reduced. According to the adjustment quantity information in the indication information, it can be known that one data packet 214 is parsed less.
在一些实施方式中,如图2所示,数据接收装置300还包括第二播放器330。第二控制器310用于将从数据包214中解析到的音频数据或视频数据传输到第二播放器330上进行播放。In some implementations, as shown in FIG. 2 , the data receiving device 300 further includes a second player 330 . The second controller 310 is configured to transmit the audio data or video data parsed from the data packet 214 to the second player 330 for playing.
S140、第二控制器310将解析得到音频数据或视频数据发送到第二播放器330进行播放。S140. The second controller 310 sends the analyzed audio data or video data to the second player 330 for playing.
示例性地,当数据发送装置100中包括第一播放器130,数据接收装置300中包括第二播放器330时,数据发送装置100可以通过时钟计数差值调整在第一播放器130上播放音频数据或视频数据的进度,以实现第一播放器130和第二播放器330同步播放音频数据或视频数据。For example, when the data sending device 100 includes the first player 130 and the data receiving device 300 includes the second player 330, the data sending device 100 can play audio on the first player 130 by adjusting the clock count difference. The progress of the data or video data, so that the first player 130 and the second player 330 can play the audio data or video data synchronously.
本申请实施例提供的数据发送装置、接收装置、传输方法及传输系统,通过分别获取数据的数据时钟的计数值和同步链路的链路时钟的计数值,从而计算得到时钟计数差值,通过时钟计数差值计算出数据时钟和链路时钟之间的偏差,并根据计算得到的偏差调整在同步链路上单个数据帧中的数据包的数量,并将指示信息发送给数据接收装置。通过上述设置实现了对同步无线传输中数据的数据时钟和同步链路的链路时钟之间偏差的精确测量,并根据测量结果调整数据包,从而避免了在因偏差导致数据接收装置在接收数据包的过程中产生误差,最终影响被传输的数据的质量。The data sending device, receiving device, transmission method and transmission system provided by the embodiments of the present application respectively obtain the count value of the data clock of the data and the count value of the link clock of the synchronization link, thereby calculating the clock count difference. The clock count difference calculates the deviation between the data clock and the link clock, adjusts the number of data packets in a single data frame on the synchronization link based on the calculated deviation, and sends indication information to the data receiving device. Through the above settings, the deviation between the data clock of the data in the synchronized wireless transmission and the link clock of the synchronized link is accurately measured, and the data packets are adjusted according to the measurement results, thereby avoiding the problem that the data receiving device is receiving data due to the deviation. Errors occur during the packetization process, ultimately affecting the quality of the data being transmitted.
本申请实施例还提供了一种通信装置。该通信装置可以为上述方法实施例中的数据发送装置100,或者包含上述数据发送装置100的装置,或者为数据发送装置100内的芯片或功能模块。或者,该通信装置可以为上述方法实施例中的数据接收装置300,或者包含上述数据接收装置300的装置,或者为数据接收装置300内的芯片或功能模块。从而实现上述各种方法。An embodiment of the present application also provides a communication device. The communication device may be the data sending device 100 in the above method embodiment, or a device including the above data sending device 100, or a chip or functional module in the data sending device 100. Alternatively, the communication device may be the data receiving device 300 in the above method embodiment, or a device including the above data receiving device 300, or a chip or functional module in the data receiving device 300. Thus realizing the various methods mentioned above.
该通信装置为了实现上述功能,其包含了执行各个功能相应的硬件结构和/或软件模块。本领域技术人员可以很容易意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,本申请能够以硬件或硬件和计算机软件的结合形式来实现。某个功能究竟以硬件还是计算机软件驱动硬件的方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。In order to realize the above functions, the communication device includes hardware structures and/or software modules corresponding to each function. Those skilled in the art can easily realize that the present application can be implemented in the form of hardware or a combination of hardware and computer software with the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein. Whether a function is performed by hardware or computer software driving the hardware depends on the specific application and design constraints of the technical solution. Skilled artisans may implement the described functionality using different methods for each specific application, but such implementations should not be considered beyond the scope of this application.
本申请实施例可以根据上述方法实施例对通信装置进行功能模块的划分,例如,可以对应各个功能划分各个功能模块,也可以将两个或两个以上的功能集成在一个处理模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。需要说明的是,本申请实施例中对模块的划分是示意性的,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。Embodiments of the present application can divide the communication device into functional modules according to the above method embodiments. For example, functional modules can be divided into corresponding functional modules, or two or more functions can be integrated into one processing module. The above integrated modules can be implemented in the form of hardware or software function modules. It should be noted that the division of modules in the embodiment of the present application is schematic and is only a logical function division. In actual implementation, there may be other division methods.
图12示出了一种通信装置500的结构示意图,该通信装置500包括处理模块510和收发模块520;处理模块510也可以称为处理单元,用以实现上述方法实施例中数据发送装置或数据接收装置的处理功能。收发模块520可以称为收发电路、收发机、收发器或者通信接口,用以实现上述方法实施例中数据发送装置或数据接收装置的收发功能。使得该通信装置500执行上述方法实施例中由数据发送装置或数据接收装置执行的各个功能或者步骤,例如执行图10、图11所示的方法。Figure 12 shows a schematic structural diagram of a communication device 500. The communication device 500 includes a processing module 510 and a transceiver module 520; the processing module 510 can also be called a processing unit to implement the data sending device or data in the above method embodiment. The processing functions of the receiving device. The transceiver module 520 may be called a transceiver circuit, transceiver, transceiver or communication interface, and is used to implement the transceiver function of the data sending device or data receiving device in the above method embodiment. The communication device 500 is caused to perform various functions or steps performed by the data sending device or the data receiving device in the above method embodiment, for example, the methods shown in FIG. 10 and FIG. 11 are executed.
以通信装置500为上述方法实施例中的数据接收装置为例。Take the communication device 500 as the data receiving device in the above method embodiment as an example.
在一种可能的实施方式中,收发模块520用于在预设时间内,将数据以数据包的形式通过同步链路的数据帧向数据接收装置进行发送;数据中携带数据时钟,同步链路具有链路时钟;调整数据帧传输的数据包的数量,并向数据接收装置发送指示信息,指示信息用于指示调整数据帧上传输的数据包的数量。In a possible implementation, the transceiver module 520 is used to send data in the form of data packets to the data receiving device through the data frame of the synchronization link within a preset time; the data carries the data clock, the synchronization link It has a link clock; adjusts the number of data packets transmitted on the data frame, and sends indication information to the data receiving device, where the indication information is used to instruct the adjustment of the number of data packets transmitted on the data frame.
以通信装置500为上述方法实施例中的数据接收装置为例。Take the communication device 500 as the data receiving device in the above method embodiment as an example.
在一种可能的实施方式中,收发模块520用于通过同步链路的数据帧接收数据包,并接收指示信息;指示信息用于指示调整数据帧上传输的数据包的数量;数据包中承载数据;数据中携带数据时钟,同步链路具有链路时钟;根据指示信息调整解析通过数据帧接收的数据包的数量。In a possible implementation, the transceiver module 520 is configured to receive data packets through the data frame of the synchronization link, and receive indication information; the indication information is used to indicate adjusting the number of data packets transmitted on the data frame; the data packet carries Data; the data carries the data clock, and the synchronization link has a link clock; adjusts and parses the number of data packets received through the data frame according to the instruction information.
本申请实施例还提出了一种芯片系统400。如图13所示,该芯片系统400包括至少一个处理器401和至少一个接口电路402。至少一个处理器401和至少一个接口电路402可通过线路互联。处理器401用于支持芯片系统400实现上述方法实施例中的各个功能或者步骤,至少一个接口电路402可用于从其它装置(例如存储器)接收信号,或者,向其它装置(例如通信接口)发送信号。该芯片系统400可以包括芯片,还可以包括其他分立器件。The embodiment of this application also provides a chip system 400. As shown in FIG. 13 , the chip system 400 includes at least one processor 401 and at least one interface circuit 402 . At least one processor 401 and at least one interface circuit 402 may be interconnected via lines. The processor 401 is used to support the chip system 400 to implement various functions or steps in the above method embodiments. At least one interface circuit 402 can be used to receive signals from other devices (such as memory) or send signals to other devices (such as communication interfaces). . The chip system 400 may include chips and may also include other discrete devices.
本申请实施例还提出了一种计算机可读存储介质,该计算机可读存储介质包括指令,当指令在上述芯片系统2上运行时,使得该芯片系统2执行上述方法实施例中各个功能或者步骤,例如执行如图10或图11所示的方法。The embodiment of the present application also proposes a computer-readable storage medium. The computer-readable storage medium includes instructions. When the instructions are run on the above-mentioned chip system 2, the chip system 2 is caused to perform each function or step in the above-mentioned method embodiment. , for example, perform the method shown in Figure 10 or Figure 11.
本申请实施例还提出了一种包括指令的计算机程序产品,当指令在上述芯片系统2上运行时,使得该芯片系统2执行上述方法实施例中各个功能或者步骤,例如执行如图10或图11所示的方法。The embodiment of the present application also proposes a computer program product including instructions. When the instructions are run on the above-mentioned chip system 2, the chip system 2 is caused to perform various functions or steps in the above-mentioned method embodiments, for example, as shown in FIG. 10 or FIG. The method shown in 11.
关于通信装置、芯片系统、计算机可读存储介质、计算机程序产品的技术效果参照前面方法实施例的技术效果。Regarding the technical effects of communication devices, chip systems, computer-readable storage media, and computer program products, refer to the technical effects of the previous method embodiments.
本申请实施例涉及的处理器可以是一个芯片。例如,可以是现场可编程门阵列(field programmable gate array,FPGA),可以是专用集成芯片(application specific integrated circuit,ASIC),还可以是系统芯片(system on chip,SoC),还可以是中央处理器(central processor unit,CPU),还可以是网络处理器(network processor,NP),还可以是数字信号处理电路(digital signal processor,DSP),还可以是微控制器(micro controller unit,MCU),还可以是可编程控制器(programmable logic device,PLD)或其他集成芯片。The processor involved in the embodiment of this application may be a chip. For example, it can be a field programmable gate array (FPGA), an application specific integrated circuit (ASIC), a system on chip (SoC), or a central processing unit It can be a central processor unit (CPU), a network processor (NP), a digital signal processing circuit (digital signal processor, DSP), or a microcontroller (micro controller unit, MCU). , it can also be a programmable logic device (PLD) or other integrated chip.
本申请实施例涉及的存储器可以是易失性存储器或非易失性存储器,或可包括易失性和非易失性存储器两者。其中,非易失性存储器可以是只读存储器(read-only  memory,ROM)、可编程只读存储器(programmable ROM,PROM)、可擦除可编程只读存储器(erasable PROM,EPROM)、电可擦除可编程只读存储器(electrically EPROM,EEPROM)或闪存。易失性存储器可以是随机存取存储器(random access memory,RAM),其用作外部高速缓存。通过示例性但不是限制性说明,许多形式的RAM可用,例如静态随机存取存储器(static RAM,SRAM)、动态随机存取存储器(dynamic RAM,DRAM)、同步动态随机存取存储器(synchronous DRAM,SDRAM)、双倍数据速率同步动态随机存取存储器(double data rate SDRAM,DDR SDRAM)、增强型同步动态随机存取存储器(enhanced SDRAM,ESDRAM)、同步连接动态随机存取存储器(synchlink DRAM,SLDRAM)和直接内存总线随机存取存储器(direct rambus RAM,DR RAM)。应注意,本文描述的系统和方法的存储器旨在包括但不限于这些和任意其它适合类型的存储器。The memory involved in the embodiments of the present application may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memories. Among them, non-volatile memory can be read-only memory (ROM), programmable ROM (PROM), erasable programmable read-only memory (erasable PROM, EPROM), electrically removable memory. Erase electrically programmable read-only memory (EPROM, EEPROM) or flash memory. Volatile memory can be random access memory (RAM), which is used as an external cache. By way of illustration, but not limitation, many forms of RAM are available, such as static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (synchronous DRAM, SDRAM), double data rate synchronous dynamic random access memory (double data rate SDRAM, DDR SDRAM), enhanced synchronous dynamic random access memory (enhanced SDRAM, ESDRAM), synchronous link dynamic random access memory (synchlink DRAM, SLDRAM) ) and direct memory bus random access memory (direct rambus RAM, DR RAM). It should be noted that the memory of the systems and methods described herein is intended to include, but is not limited to, these and any other suitable types of memory.
应理解,在本申请的各种实施例中,上述各过程的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本申请实施例的实施过程构成任何限定。It should be understood that in the various embodiments of the present application, the size of the sequence numbers of the above-mentioned processes does not mean the order of execution. The execution order of each process should be determined by its functions and internal logic, and should not be used in the embodiments of the present application. The implementation process constitutes any limitation.
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的模块及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。Those of ordinary skill in the art can appreciate that the modules and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented with electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Skilled artisans may implement the described functionality using different methods for each specific application, but such implementations should not be considered beyond the scope of this application.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统、装置和模块的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working processes of the systems, devices and modules described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be described again here.
在本申请所提供的几个实施例中,应该理解到,所揭露的系统、装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述模块的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个模块或组件可以结合或者可以集成到另一个设备,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,设备或模块的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of modules is only a logical function division. In actual implementation, there may be other division methods. For example, multiple modules or components may be combined or can be integrated into another device, or some features can be ignored, or not implemented. On the other hand, the coupling or direct coupling or communication connection between each other shown or discussed may be through some interfaces, indirect coupling or communication connection of devices or modules, which may be in electrical, mechanical or other forms.
所述作为分离部件说明的模块可以是或者也可以不是物理上分开的,作为模块显示的部件可以是或者也可以不是物理模块,即可以位于一个设备,或者也可以分布到多个设备上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical modules, that is, they may be located on one device, or they may be distributed to multiple devices. Some or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
另外,在本申请各个实施例中的各功能模块可以集成在一个设备中,也可以是各个模块单独物理存在,也可以两个或两个以上模块集成在一个设备中。In addition, each functional module in each embodiment of the present application can be integrated in one device, or each module can exist physically alone, or two or more modules can be integrated in one device.
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件程序实现时,可以全部或部分地以计算机程序产品的形式来实现。该计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行计算机程序指令时,全部或部分地产生按照本申请实施例所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储 介质传输,例如,所述计算机指令可以从一个网站站点、计算机、服务器或者数据中心通过有线(例如同轴电缆、光纤、数字用户线(Digital Subscriber Line,DSL))或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可以用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质(例如,软盘、硬盘、磁带),光介质(例如,DVD)、或者半导体介质(例如固态硬盘(Solid State Disk,SSD))等。In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented using a software program, it may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When computer program instructions are loaded and executed on a computer, the processes or functions described in the embodiments of the present application are generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transferred from a website, computer, server, or data center Transmission to another website, computer, server or data center through wired (such as coaxial cable, optical fiber, Digital Subscriber Line (DSL)) or wireless (such as infrared, wireless, microwave, etc.) means. The computer-readable storage medium can be any available medium that can be accessed by a computer or include one or more data storage devices such as servers and data centers that can be integrated with the medium. The available media may be magnetic media (eg, floppy disk, hard disk, magnetic tape), optical media (eg, DVD), or semiconductor media (eg, Solid State Disk (SSD)), etc.
以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以所述权利要求的保护范围为准。The above are only specific embodiments of the present application, but the protection scope of the present application is not limited thereto. Any person familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application. should be covered by the protection scope of this application. Therefore, the protection scope of this application should be subject to the protection scope of the claims.

Claims (21)

  1. 一种数据发送装置,其特征在于,用于将数据通过同步链路中的数据帧传输给数据接收装置;所述数据中携带数据时钟,所述同步链路具有链路时钟;所述数据发送装置包括:第一控制器和第一通信接口;A data sending device, characterized in that it is used to transmit data to a data receiving device through a data frame in a synchronization link; the data carries a data clock, and the synchronization link has a link clock; the data sending The device includes: a first controller and a first communication interface;
    所述第一控制器用于:The first controller is used for:
    控制所述第一通信接口,在预设时间内,将所述数据以数据包的形式通过所述数据帧向所述数据接收装置进行发送;Control the first communication interface to send the data in the form of data packets through the data frame to the data receiving device within a preset time;
    获取所述预设时间内所述链路时钟的计数值以及所述数据时钟的计数值;Obtain the count value of the link clock and the count value of the data clock within the preset time;
    计算时钟计数差值;所述时钟计数差值为所述预设时间内所述链路时钟的计数值变化量和所述数据时钟的计数值变化量之间的差值;Calculate the clock count difference; the clock count difference is the difference between the count value change of the link clock and the count value change of the data clock within the preset time;
    根据所述时钟计数差值,控制所述第一通信接口调整所述数据帧传输的所述数据包的数量,并向所述数据接收装置发送指示信息,所述指示信息用于指示调整所述数据帧上传输的所述数据包的数量。According to the clock count difference, the first communication interface is controlled to adjust the number of data packets transmitted by the data frame, and sends instruction information to the data receiving device, where the instruction information is used to instruct the adjustment of the data packets. The number of packets transmitted on the data frame.
  2. 根据权利要求1所述的装置,其特征在于,所述指示信息包括调整方向信息;The device according to claim 1, wherein the indication information includes adjustment direction information;
    所述调整方向信息指示增加所述数据帧中传输的所述数据包的数量;The adjustment direction information indicates increasing the number of the data packets transmitted in the data frame;
    或者,or,
    所述调整方向信息指示减少所述数据帧中传输的所述数据包的数量。The adjustment direction information indicates reducing the number of data packets transmitted in the data frame.
  3. 根据权利要求2所述的装置,其特征在于,所述指示信息还包括调整数量信息;The device according to claim 2, wherein the indication information further includes adjustment quantity information;
    当所述调整方向信息指示增加所述数据帧中传输的所述数据包的数量时,所述调整数量信息为在所述数据帧中传输的所述数据包增加的数量,When the adjustment direction information indicates increasing the number of the data packets transmitted in the data frame, the adjustment quantity information is the increased number of the data packets transmitted in the data frame,
    或者,or,
    当所述调整方向信息指示减少所述数据帧中传输的所述数据包的数量时,所述调整数量信息为在所述数据帧中传输的所述数据包减少的数量。When the adjustment direction information indicates reducing the number of the data packets transmitted in the data frame, the adjustment quantity information is the reduced number of the data packets transmitted in the data frame.
  4. 根据权利要求2或3所述的装置,其特征在于,所述指示信息还包括调整时刻点;The device according to claim 2 or 3, characterized in that the instruction information also includes an adjustment time point;
    所述调整时刻点用于指示在所述数据帧上增加或减少所述数据包的数量的时刻点,所述调整时刻点包括绝对时间A或相对时间B;The adjustment time point is used to indicate the time point at which the number of data packets is increased or decreased on the data frame, and the adjustment time point includes absolute time A or relative time B;
    所述绝对时间A为当所述链路时钟的计数值为A时对应的时刻点;The absolute time A is the corresponding time point when the count value of the link clock is A;
    所述相对时间B为所述指示信息的时刻点之后经过时间B的时刻点。The relative time B is a time point after the time point of the indication information and time B has passed.
  5. 根据权利要求1-4任一项所述的装置,其特征在于,所述数据为音频数据或视频数据。The device according to any one of claims 1-4, characterized in that the data is audio data or video data.
  6. 根据权利要求5所述的装置,其特征在于,所述数据发送装置还包括第一播放器;The device according to claim 5, wherein the data sending device further includes a first player;
    所述第一控制器还用于根据所述时钟计数差值调整在所述第一播放器上播放所述音频数据或视频数据的进度。The first controller is further configured to adjust the progress of playing the audio data or video data on the first player according to the clock count difference.
  7. 一种数据接收装置,其特征在于,用于通过同步链路中的数据帧接收来自数据发送装置的数据包,所述数据包中承载数据;所述数据中携带数据时钟,所述同步链路具有链路时钟;所述数据接收装置包括:第二控制器和第二通信接口;A data receiving device, characterized in that it is used to receive a data packet from a data sending device through a data frame in a synchronization link, the data packet carries data; the data carries a data clock, and the synchronization link Having a link clock; the data receiving device includes: a second controller and a second communication interface;
    所述第二控制器用于:The second controller is used for:
    控制所述第二通信接口,通过所述数据帧接收所述数据包,并接收指示信息,所述指示信息用于指示调整所述数据帧上传输的所述数据包的数量;Control the second communication interface, receive the data packet through the data frame, and receive indication information, the indication information being used to indicate adjusting the number of the data packets transmitted on the data frame;
    根据所述指示信息调整解析通过所述数据帧接收的所述数据包的数量。Adjust and parse the number of data packets received through the data frame according to the indication information.
  8. 根据权利要求7所述的装置,其特征在于,所述指示信息包括调整方向信息;The device according to claim 7, wherein the indication information includes adjustment direction information;
    所述调整方向信息指示增加所述数据帧中传输的所述数据包的数量;The adjustment direction information indicates increasing the number of the data packets transmitted in the data frame;
    或者,or,
    所述调整方向信息指示减少所述数据帧中传输的所述数据包的数量;The adjustment direction information indicates reducing the number of data packets transmitted in the data frame;
    所述第二控制器用于:The second controller is used for:
    如果接收到的所述调整方向信息指示增加所述数据帧中传输的所述数据包的数量,则增加解析通过所述数据帧接收的所述数据包的数量;If the received adjustment direction information indicates increasing the number of the data packets transmitted in the data frame, increasing the number of parsing the data packets received through the data frame;
    如果接收到的所述调整方向信息指示减少所述数据帧中传输的所述数据包的数量,则减少解析通过所述数据帧接收的所述数据包的数量。If the received adjustment direction information indicates reducing the number of the data packets transmitted in the data frame, reducing the number of parsed data packets received through the data frame.
  9. 根据权利要求8所述的装置,其特征在于,所述指示信息还包括调整数量信息;所述调整数量信息为在所述数据帧中传输的所述数据包增加的数量,或者在所述数据帧中传输的所述数据包减少的数量;The device according to claim 8, characterized in that the indication information further includes adjustment quantity information; the adjustment quantity information is the increased number of the data packets transmitted in the data frame, or the number of data packets transmitted in the data frame. the reduced number of said data packets transmitted in the frame;
    所述第二控制器用于:The second controller is used for:
    如果接收到的所述调整方向信息指示增加所述数据帧中传输的所述数据包的数量,则增加解析通过所述数据帧接收的所述数据包;增加解析的所述数据包的数量为所述调整数量信息个;If the received adjustment direction information indicates increasing the number of data packets transmitted in the data frame, then increasing parsing of the data packets received through the data frame; increasing the number of parsed data packets as The adjustment quantity information;
    如果接收到的所述调整方向信息指示减少所述数据帧中传输的所述数据包的数量,则减少解析通过所述数据帧接收的所述数据包;减少解析的所述数据包的数量为所述调整数量信息个。If the received adjustment direction information indicates reducing the number of data packets transmitted in the data frame, then parsing the data packets received through the data frame is reduced; reducing the number of parsed data packets is The adjustment quantity information.
  10. 根据权利要求8或9所述的装置,其特征在于,所述指示信息还包括调整时刻点;The device according to claim 8 or 9, characterized in that the instruction information further includes an adjustment time point;
    所述调整时刻点用于指示在所述数据帧上增加或减少所述数据包的数量的时刻点,所述调整时刻点包括绝对时间A或相对时间B;The adjustment time point is used to indicate the time point at which the number of data packets is increased or decreased on the data frame, and the adjustment time point includes absolute time A or relative time B;
    所述绝对时间A为当所述链路时钟的计数值为A时对应的时刻点;The absolute time A is the corresponding time point when the count value of the link clock is A;
    所述相对时间B为所述指示信息的时刻点之后经过时间B的时刻点;The relative time B is the time point after time B has passed after the time point of the indication information;
    所述第二控制器用于:The second controller is used for:
    如果接收到的所述调整方向信息指示增加所述数据帧中传输的所述数据包的数量,则在调整时刻点之后,增加解析通过所述数据帧接收的所述数据包的数量;If the received adjustment direction information indicates increasing the number of the data packets transmitted in the data frame, then after the adjustment time point, increase the number of parsed data packets received through the data frame;
    如果接收到的所述调整方向信息指示减少所述数据帧中传输的所述数据包的数量,则在调整时刻点之后,减少解析通过所述数据帧接收的所述数据包的数量。If the received adjustment direction information indicates reducing the number of data packets transmitted in the data frame, then after the adjustment time point, reduce the number of parsed data packets received through the data frame.
  11. 根据权利要求7-10任一项所述的装置,其特征在于,所述数据为音频数据或视频数据。The device according to any one of claims 7-10, characterized in that the data is audio data or video data.
  12. 一种数据传输方法,其特征在于,包括:A data transmission method, characterized by including:
    在预设时间内,将数据以数据包的形式通过同步链路的数据帧向数据接收装置进行发送;所述数据中携带数据时钟,所述同步链路具有链路时钟;Within a preset time, the data is sent to the data receiving device in the form of data packets through the data frame of the synchronization link; the data carries a data clock, and the synchronization link has a link clock;
    获取所述预设时间内所述链路时钟的计数值以及所述数据时钟的计数值;Obtain the count value of the link clock and the count value of the data clock within the preset time;
    计算时钟计数差值;所述时钟计数差值为所述预设时间内所述链路时钟的计数值变化量和所述数据时钟的计数值变化量之间的差值;Calculate the clock count difference; the clock count difference is the difference between the count value change of the link clock and the count value change of the data clock within the preset time;
    根据所述时钟计数差值,调整所述数据帧传输的所述数据包的数量,并向所述数据接收装置发送指示信息,所述指示信息用于指示调整所述数据帧上传输的所述数据包的数量。According to the clock count difference, adjust the number of data packets transmitted in the data frame, and send instruction information to the data receiving device, where the instruction information is used to instruct to adjust the number of data packets transmitted in the data frame. The number of packets.
  13. 根据权利要求12所述的方法,其特征在于,所述指示信息包括调整方向信息;The method according to claim 12, wherein the indication information includes adjustment direction information;
    所述调整方向信息用于指示增加所述数据帧中传输的所述数据包的数量;The adjustment direction information is used to indicate increasing the number of the data packets transmitted in the data frame;
    或者,or,
    所述调整方向信息用于指示减少所述数据帧中传输的所述数据包的数量。The adjustment direction information is used to indicate reducing the number of data packets transmitted in the data frame.
  14. 根据权利要求13所述的方法,其特征在于,所述指示信息还包括调整数量信息;The method according to claim 13, wherein the indication information further includes adjustment quantity information;
    当所述调整方向信息指示增加所述数据帧中传输的所述数据包的数量时,所述调整数量信息为在所述数据帧中传输的所述数据包增加的数量,When the adjustment direction information indicates increasing the number of the data packets transmitted in the data frame, the adjustment quantity information is the increased number of the data packets transmitted in the data frame,
    或者,or,
    当所述调整方向信息指示减少所述数据帧中传输的所述数据包的数量时,所述调整数量信息为在所述数据帧中传输的所述数据包减少的数量。When the adjustment direction information indicates reducing the number of the data packets transmitted in the data frame, the adjustment quantity information is the reduced number of the data packets transmitted in the data frame.
  15. 根据权利要求13或14所述的方法,其特征在于,所述指示信息还包括调整时刻点;The method according to claim 13 or 14, characterized in that the instruction information also includes an adjustment time point;
    所述调整时刻点用于指示在所述数据帧上增加或减少所述数据包的数量的时刻点,所述调整时刻点包括绝对时间A或相对时间B;The adjustment time point is used to indicate the time point at which the number of data packets is increased or decreased on the data frame, and the adjustment time point includes absolute time A or relative time B;
    所述绝对时间A为当所述链路时钟的计数值为A时对应的时刻点;The absolute time A is the corresponding time point when the count value of the link clock is A;
    所述相对时间B为所述指示信息的时刻点之后经过时间B的时刻点。The relative time B is a time point after the time point of the indication information and time B has passed.
  16. 根据权利要求12-15任一项所述的方法,其特征在于,所述数据为音频数据或视频数据。The method according to any one of claims 12 to 15, characterized in that the data is audio data or video data.
  17. 一种数据传输方法,其特征在于,包括:A data transmission method, characterized by including:
    通过同步链路的数据帧接收数据包,并接收指示信息;所述指示信息用于指示调整所述数据帧上传输的所述数据包的数量;所述数据包中承载数据;所述数据中携带数据时钟,所述同步链路具有链路时钟;Data packets are received through the data frame of the synchronization link, and indication information is received; the indication information is used to indicate adjusting the number of data packets transmitted on the data frame; the data packets carry data; the data Carrying a data clock, the synchronization link has a link clock;
    根据所述指示信息调整解析通过所述数据帧接收的所述数据包的数量。Adjust and parse the number of data packets received through the data frame according to the indication information.
  18. 根据权利要求17所述的方法,其特征在于,所述指示信息包括调整方向信息;The method according to claim 17, wherein the indication information includes adjustment direction information;
    所述调整方向信息指示增加所述数据帧中传输的所述数据包的数量;The adjustment direction information indicates increasing the number of the data packets transmitted in the data frame;
    或者,or,
    所述调整方向信息指示减少所述数据帧中传输的所述数据包的数量;The adjustment direction information indicates reducing the number of data packets transmitted in the data frame;
    如果接收到的所述调整方向信息指示增加所述数据帧中传输的所述数据包的数量,则增加解析通过所述数据帧接收的所述数据包的数量;If the received adjustment direction information indicates increasing the number of the data packets transmitted in the data frame, increasing the number of parsing the data packets received through the data frame;
    如果接收到的所述调整方向信息指示减少所述数据帧中传输的所述数据包的数量,则减少解析通过所述数据帧接收的所述数据包的数量。If the received adjustment direction information indicates reducing the number of the data packets transmitted in the data frame, reducing the number of parsed data packets received through the data frame.
  19. 根据权利要求18所述的方法,其特征在于,所述指示信息还包括调整数量信息;所述调整数量信息为在所述数据帧中传输的所述数据包增加的数量,或者在所述 数据帧中传输的所述数据包减少的数量;The method according to claim 18, characterized in that the indication information further includes adjustment quantity information; the adjustment quantity information is an increased number of the data packets transmitted in the data frame, or the number of data packets transmitted in the data frame. the reduced number of said data packets transmitted in the frame;
    如果接收到的所述调整方向信息指示增加所述数据帧中传输的所述数据包的数量,则增加解析通过所述数据帧接收的所述数据包;增加解析的所述数据包的数量为所述调整数量信息个;If the received adjustment direction information indicates increasing the number of data packets transmitted in the data frame, then increasing parsing of the data packets received through the data frame; increasing the number of parsed data packets as The adjustment quantity information;
    如果接收到的所述调整方向信息指示减少所述数据帧中传输的所述数据包的数量,则减少解析通过所述数据帧接收的所述数据包;减少解析的所述数据包的数量为所述调整数量信息个。If the received adjustment direction information indicates reducing the number of data packets transmitted in the data frame, then parsing the data packets received through the data frame is reduced; reducing the number of parsed data packets is The adjustment quantity information.
  20. 根据权利要求18或19所述的方法,其特征在于,所述指示信息还包括调整时刻点;The method according to claim 18 or 19, characterized in that the instruction information also includes an adjustment time point;
    所述调整时刻点用于指示在所述数据帧上增加或减少所述数据包的数量的时刻点,所述调整时刻点包括绝对时间A或相对时间B;The adjustment time point is used to indicate the time point at which the number of data packets is increased or decreased on the data frame, and the adjustment time point includes absolute time A or relative time B;
    所述绝对时间A为当所述链路时钟的计数值为A时对应的时刻点;The absolute time A is the corresponding time point when the count value of the link clock is A;
    所述相对时间B为所述指示信息的时刻点之后经过时间B的时刻点;The relative time B is the time point after time B has passed after the time point of the indication information;
    如果接收到的所述调整方向信息指示增加所述数据帧中传输的所述数据包的数量,则在调整时刻点之后,增加解析通过所述数据帧接收的所述数据包的数量;If the received adjustment direction information indicates increasing the number of the data packets transmitted in the data frame, then after the adjustment time point, increase the number of parsed data packets received through the data frame;
    如果接收到的所述调整方向信息指示减少所述数据帧中传输的所述数据包的数量,则在调整时刻点之后,减少解析通过所述数据帧接收的所述数据包的数量。If the received adjustment direction information indicates reducing the number of data packets transmitted in the data frame, then after the adjustment time point, reduce the number of parsed data packets received through the data frame.
  21. 一种数据传输系统,其特征在于,包括如权利要求1-6任一项所述的数据发送装置和如权利要求7-11任一项所述的数据接收装置;A data transmission system, characterized by comprising the data sending device according to any one of claims 1-6 and the data receiving device according to any one of claims 7-11;
    所述数据发送装置用于将数据以数据包的形式,通过同步链路的数据帧向所述数据接收装置进行发送,同时还通过所述同步链路向所述数据接收装置发送指示信息;所述数据携带数据时钟,所述指示信息用于指示调整所述数据帧上传输的所述数据包的数量;The data sending device is used to send data in the form of data packets to the data receiving device through the data frame of the synchronization link, and at the same time, also sends indication information to the data receiving device through the synchronization link; The data carries a data clock, and the indication information is used to indicate adjusting the number of the data packets transmitted on the data frame;
    所述数据接收装置用于从所述同步链路上接收所述数据包和所述指示信息,并解析所述数据包得到所述数据,根据所述指示信息调整解析通过所述数据帧接收的所述数据包的数量。The data receiving device is configured to receive the data packet and the indication information from the synchronization link, analyze the data packet to obtain the data, and adjust and parse the data received through the data frame according to the indication information. The number of packets.
PCT/CN2022/134820 2022-04-26 2022-11-28 Data sending apparatus, data receiving apparatus, data transmission method, and data transmission system WO2023207067A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210451952.X 2022-04-26
CN202210451952.XA CN116996460A (en) 2022-04-26 2022-04-26 Data transmitting apparatus, data receiving apparatus, data transmitting method, and data transmitting system

Publications (1)

Publication Number Publication Date
WO2023207067A1 true WO2023207067A1 (en) 2023-11-02

Family

ID=88517169

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/134820 WO2023207067A1 (en) 2022-04-26 2022-11-28 Data sending apparatus, data receiving apparatus, data transmission method, and data transmission system

Country Status (2)

Country Link
CN (1) CN116996460A (en)
WO (1) WO2023207067A1 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103873180A (en) * 2014-03-31 2014-06-18 重庆华伟工业(集团)有限责任公司 Receiving clock generating method and device for synchronous service in time division multiple access communication system
US9749123B1 (en) * 2016-06-08 2017-08-29 Google Inc. Fast clock and data recovery for free-space optical communications
CN111628841A (en) * 2020-05-20 2020-09-04 武汉东湖学院 Method and system for realizing multi-service transmission clock synchronization
CN114257772A (en) * 2021-11-26 2022-03-29 苏州华兴源创科技股份有限公司 Data transmission adjusting method and device, computer equipment and readable storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103873180A (en) * 2014-03-31 2014-06-18 重庆华伟工业(集团)有限责任公司 Receiving clock generating method and device for synchronous service in time division multiple access communication system
US9749123B1 (en) * 2016-06-08 2017-08-29 Google Inc. Fast clock and data recovery for free-space optical communications
CN111628841A (en) * 2020-05-20 2020-09-04 武汉东湖学院 Method and system for realizing multi-service transmission clock synchronization
CN114257772A (en) * 2021-11-26 2022-03-29 苏州华兴源创科技股份有限公司 Data transmission adjusting method and device, computer equipment and readable storage medium

Also Published As

Publication number Publication date
CN116996460A (en) 2023-11-03

Similar Documents

Publication Publication Date Title
JP5321923B2 (en) Clock synchronization system, node, clock synchronization method and program
US8489758B2 (en) Method of transmitting data in a communication system
CN109787703B (en) Timestamp correction method, clock synchronization method and system
WO2016119560A1 (en) Self-adaptive audio transmission method and device
US20110134766A1 (en) Method and apparatus for finding latency floor in packet networks
US8351437B2 (en) Stereo bit clock tuning
WO2012151808A1 (en) Method and system for improving synchronization precision based on precision time protocol
JP2015506626A (en) Method and apparatus for communicating time information between time recognition devices
US20110187926A1 (en) Apparatus and method for correcting jitter
CN101599965A (en) Based on the self-adaption high-speed information transmission protocol of measuring
US9804633B2 (en) Indirect clock measuring and media adjustment
JP6232870B2 (en) Wireless communication system, wireless communication method, program, and recording medium
CN110830460A (en) Connection establishing method and device, electronic equipment and storage medium
US7283548B2 (en) Dynamic latency management for IP telephony
CN115296764A (en) Timestamp confidence level
US20120249347A1 (en) Variable bitrate equipment
KR20080012920A (en) Method and apparatus for adaptive polling in a wireless communication device
WO2023207067A1 (en) Data sending apparatus, data receiving apparatus, data transmission method, and data transmission system
JP4800250B2 (en) Packet receiving apparatus, method and program for determining necessary and sufficient reception buffer size
JP3499818B2 (en) Time stamp offset adjusting method and packet transmission device using the same
GB2485977A (en) Audio playback system
JP6885463B2 (en) Transmitter, bandwidth estimation device, bandwidth estimation system, method
JP2017139521A (en) Stream distributing device, stream receiving device, stream distributing system, stream distributing method, and stream distributing program
CN114762274B (en) Rate adjustment apparatus and method
US11343007B2 (en) Time synchronization method and device

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22939882

Country of ref document: EP

Kind code of ref document: A1