Tag Archives: car access

How Ethernet AVB is playing a central role in automotive streaming applications


Ethernet is emerging as the network of choice for infotainment and advanced driver assistance systems, Atmel’s Tim Grai explains.


Imagine you’re driving down the highway with the music blaring, enjoying the open road. Now imagine that the sound from your rear speaker system is delayed by a split second from the front; your enjoyment of the fancy in-car infotainment system comes to a screeching halt.

Ethernet is emerging as the network of choice for infotainment and advanced driver assistance systems that include cameras, telematics, rear-seat entertainment systems and mobile phones. But standard Ethernet protocols can’t assure timely and continuous audio/video (A/V) content delivery for bandwidth intensive and latency sensitive applications without buffering, jitter, lags or other performance hits.

fig1_popup

Audio-Video Bridging (AVB) over Ethernet is a collection of extensions to the IEEE802.1 specifications that enables local Ethernet networks to stream time synchronised, loss sensitive A/V data. Within an Ethernet network, the AVB extensions help differentiate AVB traffic from the non-AVB traffic that can also flow through the network. This is done using an industry standard approach that allows for plug-and-play communication between systems from multiple vendors.

The extensions that define the AVB standard achieve this by:

  • reserving bandwidth for AVB data transfers to avoid packet loss due to network congestion from ‘talker’ to ‘listener(s)’
  • establishing queuing and forwarding rules for AVB packets that keep packets from bunching and guarantee delivery of packets with a bounded latency from talker to listener(s) via intermediate switches, if needed
  • synchronizing time to a global clock so the time bases of all network nodes are aligned precisely to a common network master clock, and
  • creating time aware packets which include a ‘presentation time’ that specifies when A/V data inside a packet has to be played.

Designers of automotive A/V systems need to understand the AVB extensions and requirements, as well as how their chosen microcontroller will support that functionality.

AVB: A basket of standards

AVB requires that three extensions be met in order to comply with IEEE802.1:

  • IEEE802.1AS – timing and synchronisation for time-sensitive applications (gPTP)
  • IEEE802.1Qat – stream reservation protocol (SRP)
  • IEEE802.1Qav – forwarding and queuing for time-sensitive streams (FQTSS).

In order to play music or video from one source, such as a car’s head unit, to multiple destinations, like backseat monitors, amplifiers and speakers, the system needs a common understanding of time in order to avoid lags or mismatch in sound or video. IEEE802.1AS-2011 specifies how to establish and maintain a single time reference – a synchronised ‘wall clock’ – for all nodes in a local network. The generalized precision time protocol (gPTP), based on IEEE1588, is used to synchronize and syntonize all network nodes to sub-microsecond accuracy. Nodes are synchronized if their clocks show the same time and are syntonised if their clocks increase at the same rate.

fig.2

This protocol selects a Grand Master Clock from which the current time is propagated to all network end-stations. In addition, the protocol specifies how to correct for clock offset and clock drifts by measuring path delays and frequency offsets. New MCUs, such as the Atmel | SMART SAMV7x (shown above), detect and capture time stamps automatically when gPTP event messages cross MII layers. They can also transport gPTP messages over raw Ethernet, IPv4 or IPv6. This hardware recognition feature helps to calculate clock offset and link delay with greater accuracy and minimal software load.

Meanwhile, SRP guarantees end-to-end bandwidth reservation for all streams to ensure packets aren’t delayed or dropped at any switch due to network congestion, which can occur with standard Ethernet. For the in-vehicle environment, SRP is typically configured in advance by the car maker, who defines data streams and bandwidth allocations.

Talkers (the source of A/V data) ‘advertise’ data streams and their characteristics. Switches process these announcements from talker and listeners to:

  • register and prune streams’ path through the network
  • reserve bandwidth and prevent over subscription of available bandwidth
  • establish forwarding rules for incoming packets
  • establish the SRP domain, and
  • merge multiple listener declarations for the same stream

The standard stipulates that AVB data can reserve only 75% of total available bandwidth, so for a 100Mbit/s link, the maximum AVB data is 75Mbit/s. The remaining bandwidth can be used for all other Ethernet protocols.

In automotive systems, the streams may be preconfigured and bandwidth can be reserved statically at system startup to reduce the time needed to bring the network into a fully operational state. This supports safety functions, such as driver alerts and the reversing camera, that must be displayed within seconds.

SRP uses other signalling protocols, such as Multiple MAC Registration Protocol, Multiple VLAN Registration Protocol and Multiple Stream Registration Protocol to establish bandwidth reservations for A/V streams dynamically.

The third extension is FQTSS, which guarantees that time sensitive A/V streams arrive at their listeners within a bounded latency. It also defines procedures for priority regenerations and credit based traffic shaper algorithms to meet stream reservations for all available devices.

The AVB standard can support up to eight traffic classes, which are used to determine quality of service. Typically, nodes support at least two traffic classes – Class A, the highest priority, and Class B. Microcontroller features help manage receive and transmit data with multiple priority queues to support AVB and ‘best effort class’ non AVB data.

box

Automotive tailored requirements

Automotive use cases typically fix many parameters at the system definition phase, which means that AVB implementation can be optimised and simplified to some extent.

  • Best Master Clock algorithm (BMCA): the best clock master is fixed at the network definition phase so dynamic selection using BCMA isn’t needed.
  • SRP: all streams, their contents and their characteristics are known at system definition and no new streams are dynamically created or destroyed; the proper reservation of data is known at the system definition phase; switches, talkers and listeners can have their configurations loaded at system startup from pre-configured tables, rather than from dynamic negotiations
  • Latency; while this is not critical, delivery is. Automotive networks are very small with only a few nodes between a talker and listener. It is more important not to drop packets due to congestion.

Conclusion

The requirement to transfer high volumes of time sensitive audio and video content inside vehicles necessitates developers to understand and apply the Ethernet AVB extensions. AVB standardization results in interoperable end-devices from multiple vendors that can deliver audio and video streams to distributed equipment on the network with micro-second accuracy or better. While the standard brings complexities, new MCUs with advanced features are simplifying automotive A/V design.


This article was originally published on New Electronics on October 13, 2015 and authored by Tim Grai, Atmel’s Director of Automotive MCU Application Engineering. 

Atmel’s Rob Valiton talks automotive

Rob Valiton, Senior VP and General Manager at Atmel, was recently interviewed by Alix Paultre of Power Systems Design.

During the podcast – which can be heard here – the two spoke about various issues surrounding automotive systems and the multiple, often conflicting challenges involved in designing for the application space.

The interview was conducted in the midst of CES 2014, shortly after Atmel officially unveiled its AvantCar curved touch screen console concept. 

The fully functional console features two large curved touchscreen displays – without mechanical buttons. Instead, the touchscreens integrate capacitive touch buttons and sliders, allowing users to navigate general applications typically found within an automotive center console.

As we’ve previously discussed on Bits & Pieces, Atmel’s extensive automotive portfolio encompasses a wide range of products including body electronics, networking and access systems, as well as engine, lighting and entertainment components.

 More specifically, our components are designed to fit small footprints, consume very little power and operate in high temperature and electromagnetic environments. To be sure, Atmel’s highly integrated designs can help save manufacturers significant component costs and months of development, integration and prototype time.

“Atmel’s broad product portfolio ranges from low-cost, entry level devices to advanced, highly integrated ICs with a broad range of functionalities, extensive connectivity, refined interfaces and strong security,” and Atmel engineering rep told Bits & Pieces. “Our products are designed in state-of-the-art BCDMOS, BDC-on-SOI, or non-volatile CMOS technologies and meet strict automotive qualification standards.”

Interested in learning more about Atmel’s automotive portfolio? You can check out our automotive-qualified category breakdown below:

Hot August Nights Fever? Atmel Automotive Infographic

People love their cars. It’s one of those near universal facts. Whether they live in big cities or small rural hamlets, drive a mini or a hummer, there is just something about the sexy vroom vroom of an engine that excites people on a primal level.

Perhaps it’s the destructive force in us that is drawn to what is basically a controlled explosion on wheels. Perhaps it’s something to do with an automobile’s sleek and contoured chassis – or the human need for speed.

Or maybe, it’s because there is a certain zen to be found in tinkering with an engine. Of souping up and optimizing an already lean, mean machine, and making it purr. Somewhere in all of us is an engineer who simply wants to solve puzzles – and what greater puzzle to solve than the many moving parts to be found under the hood?

We at Atmel are especially passionate about the automotive space, having been one of the first semiconductor companies to enter the market, embracing both the productive and the creative passion from the get-go.

Atmel_August Auto_Final

Telefunken (the pre- predecessor of Atmel Automotive) was founded as early as 1903, while the Heilbronn fab in Germany, acquired by Atmel in the 1980’s, was founded way back in 1960.

Atmel’s first success in automotive was (rather fittingly) the electronic ignition IC which, in 1979/1980, was installed in every Volkswagen car.

Another early milestone along Atmel’s automotive roadmap was, ironically, braking. A start-to-stop scenario, so to speak.

The market for connected vehicles is expected to grow to a whopping $53 billion by 2018, with consumers demanding more and more connectivity each year.

A study by Deloitte in 2011 determined that 46% of people between the ages of 18-24 cited connectivity as being “extremely important” to them when it came to cars, with 37% wanting to stay as connected as possible while in their vehicles. A resounding 65% identified remote vehicle control as an important feature in their next automotive purchase; while 77% favored remote diagnostics minimizing dealer visits. And let’s face it, who can blame them?

A 2013 study by Cisco went even further, positing that Vehicle-to-vehicle (V2V) communications could enable cars to detect each other’s presence and location, helping avoid accidents, lower road costs and decrease carbon emissions. The report also found that intelligent cars would lead to 7.5% less time wasted in traffic congestion and 4% lower costs for vehicle fuel.

With over 1 billion passenger cars careening through the world’s streets already, increased digitization can’t come fast enough!

Today, Atmel supplies all 10 of the top 10 tier 1 automotive electronic suppliers in the world, not only with microcontrollers (MCUs), but with touch sensor technology too. Indeed, Atmel’s latest touch innovation, the bendable, flexible, printed wonder that is Xsense, has now been fully qualified and is ready to ramp, meaning sexy curved glass dashboards are closer than you’d imagine… Not bad for a feature originally developed as a piece of wood attached to the front of a horse drawn carriage to prevent mud from splattering the driver!

Atmel is also renowned for being a leading car access supplier, meaning we make the chips that enable cool remote keyless entry (RKE) systems with immobilizers, to reduce the risk of anyone stealing your steel beauty away from you. In fact, Atmel has already delivered over 250 Million ICs for this specific application, so that’s a whole lot of key fobs! Speaking of key fobs, here’s a fun fact; holding a remote car key to your head doubles its range because the human skull acts as an amplifier.

Moving from cool keyfobs to total hotness, it’s also worth noting that Atmel sells some of the highest temperature resistant parts in the market, some of which can handle heat of up to 200°C.

Last, but certainly not least, Atmel boasts the world’s largest portfolio of Local Interconnect Network (LIN) devices, for communication between components in vehicles. The firm’s devices have OEM approvals from all major car manufacturers worldwide, which is certainly something to be proud of.

So next time you find yourself on that long and winding road, kicking into high gear and hugging those curves, spare a thought for the components, because when it comes to cars, the devil really is in the details.

A closer look at Atmel’s vehicle portfolio

Earlier this morning, Atmel announced the expansion of an already formidable automotive maXTouch lineup with the mXT336S (optimized for 7-inch touchscreens) and mXT224S (targeted at smaller touchscreens and tablets).

In addition to touchscreens, Atmel boasts an extensive automotive ecosystem that meets strict quality demands, helping to make vehicles more safe and affordable. Primary solutions include battery management (Li-ion), car access, radio, networking, motor control systems and microcontrollers.

As previously discussed on Bits & Pieces, Atmel’s versatile AVR microcontrollers deliver power, performance and flexibility – making them appropriate for a wide range of automotive applications.

So what differentiates AVR microcontrollers from the competition in the automotive sphere? Well, according to an engineering rep, Atmel offers functionality and high temperature capabilities in its vehicle-oriented chip designs.

“Plus, complete system-in-package (SIP) solutions integrate components such as an AVR microcontroller, LIN and CAN interfaces, voltage regulator, watchdog, floating point unit (FPU), FlashVault code protection, high-speed Ethernet and USB with OTG connectivity in a single cost-effective package,” the engineering rep told Bits & Pieces. “In fact, Atmel’s highly integrated designs can reduce system costs by up to 60 percent, while saving time in development, integration and prototyping.”

Key specs include:

  • High performance – Executing powerful instructions in a single clock cycle, Atmel’s 8-bit automotive AVR MCUs achieve throughputs approaching 1 MIPS per MHz, balancing power consumption with processing speed.
  • Code protection – Atmel FlashVault allows devs to partially program and lock flash memory for secure on-chip storage. Code stored in FlashVault will execute as normal, but cannot be read, copied or debugged. It is also capable of carrying software such as math libraries or encryption algorithms to potentially untrustworthy environments where the rest of the source code can be developed and debugged.
  • Built-in voltage protection – The on-chip voltage regulator with short-circuit monitoring interface featured in several 8-bit microcontrollers ensures reliable operation and extends the useful life of the device and the product it controls.
  • Optimized power efficiency – Thanks to more than a decade of research, Atmel picoPower technology reduces microcontroller power usage in both sleep and active mode to achieve the industry’s lowest power consumption numbers.

Interested in learning more? Additional information about Atmel’s expansive automotive portfolio is available here and here.

Creating an RF RSSI Sniffer Tool for Car Access Systems

By Chris Wunderlich and George Rueter

By reconfiguring the Atmel ATA5830N UHF transceiver chip through a simple method using its Flash program capability, you can create a received signal strength indicator (RSSI) monitoring tool that you can use both in a lab setting as well as in a vehicle.

The ATA5830N chip integrates a high-performance UHF transceiver with a low-power Atmel AVR 8-bit microcontroller. The device also has 6KB of Flash memory—this Flash memory space is what you can use to develop an application for an RSSI monitor that generates USART-formatted messages with RSSI data.  

To create the RSSI monitoring tool, we developed the software using the ATAK51002-V1 evaluation kit, a +5V power supply and the RF signal input. The kit includes a reference design that consumes about 9mA when running our application—low enough to support battery operation. Once we powered up the reference design, we awakened the ATA5830N device by momentarily connecting any of the “npwron” pins to ground or the “pwron” pin to +5V. Once the part was awake and active, we didn’t need to provide additional input and the RSSI data was available at PC3 pin 17.

Using the EEPROM configuration file, we programmed desired radio parameters into the part. You can select these values using an Excel spreadsheet tool that automatically generates the EEPROM file. Once we programmed the values into the EEPROM, the application of power automatically initiated the self-configuration and execution of the Flash application program.

You can use the resulting application for several common RF engineering tasks, including RF environment analysis, performance tuning of the receiver section, RF component selection and antenna performance evaluation. For diagrams and the full details about creating the RSSI tool, read our full article, “RF RSSI Sniffer Tool for Car Access Systems.”