According to a study from the U.S. Department of Transportation1, the average American spends the equivalent of just under 2 1/2 weeks behind the wheel every year. The longer drivers and passengers spend in cars, the greater their need for real-time data transmission and in-vehicle entertainment.
Consequently, premium audio is becoming one of the biggest growth areas for automotive infotainment systems such as automotive head units, with audio-video bridging (AVB) a key focus area. This article explains how to optimize eAVB through clocking solutions to enable high-speed data transmission in vehicles.
Ethernet AVB (eAVB) standards
Six standards from the Institute of Electrical and Electronics Engineers (IEEE) define the implementation of AVB: 802.1AS, 802.1Qat, 802.1Qav, 802.1BA, 802.1Q and 1722. These standards help engineers enable the transmission of audio and video content over Ethernet in real time with reduced latency that other protocols may not be able to assure, and allow Ethernet networks to stream high-bandwidth audio/video data in a time-synchronized manner by:
Synchronization in eAVB
An AVB implementation in automotive systems should include:
Optimizing media-domain synchronization requires a clocking solution with frequency-margining capability such as the CDCE6214-Q1, which is a compact and ultra-low-power programmable clock generator that supports output frequency tuning and has a step size less than 1 ppm.
A typical AVB network, as shown in Figure 1, consists of three main components:
Figure 1: Example of a typical AVB network
Figure 2: AVB end-station block diagram – talker and listener
Clocks (generators) for synchronization in eAVB
Media clock sources can be simple, free-running local oscillators because the media clock does not need to lock to any reference, as long as all media clocks in the same domain are frequency-synchronized. The media clock signal goes into a local timestamp generator that generates timestamps every certain number of clock rising edges. These timestamps are generated based off of a local time reference. The wall clock, as shown in Figure 3, then translates the local time-based timestamps to generalized precision time control (gPTP) timestamps. The audio/video transport talker (AVTP) adds a fixed offset and generates presentation timestamps.
The AVTP presentation time represents the gPTP time at which a designated media sample or event transfers to the time-sensitive application within each listener. This enables multiple listeners to present data at the same time, regardless of their location in the network. The AVTP tells a listener when to start processing (that is, playing) the stream’s data, and is also used to recover the stream’s media clock.
Figure 3: Simplified block diagram of an AVB talker
Figure 4 depicts how to use presentation time to recover the stream’s media clock.
Figure 4: Simplified block diagram of an AVB listener
Figure 4 shows how a listener extracts presentation timestamps and recovers the source media clock from the incoming stream generated by a talker. The time difference between two presentation timestamps divided by the number of samples in between gives you an estimate of the source media clock in the gPTP time base. Continually performing this calculation and applying appropriate filtering techniques yields an accurate measurement of the source’s media clock period.
Similarly, it is possible to timestamp the local media clock generator’s output with a local time base that is then translated to a gPTP time base in order to accurately measure its period. After comparing the two clock periods, the media clock recovery module continually generates commands to incrementally increase or decrease the output frequency of the clock generator, thus synchronizing the local media clock to the source media clock.
Synchronization for common time referencing is important in eAVB implementations in order to avoid packet loss, bunching and latency caused by high network traffic. As drivers and passengers continue to spend more time in their vehicles and demand more high-speed data transmission, reliable clocking solutions with frequency-margining capability can help optimize both media clock generation and synchronization. The CDCE6214-Q1 is an example of a reliable clocking solution with a frequency-adjustable phase-locked loop that can be used for media clock generation and synchronization. To learn more about AVB system architecture and media clock synchronization design with the CDCE6214-Q1, read the application report, “eAVB Media Clock Synchronization Using CDCE6214-Q1.”
1United States Department of Transportation. (2017). How Much Time Do Americans Spend Behind the Wheel?
All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.
TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs andembedded processors, along with software, tools and the industry’s largest sales/support staff.