Global Sources
EE Times-Asia
Stay in touch with EE Times Asia
EE Times-Asia > T&M

High-speed measurements for hybrid vehicles

Posted: 05 Apr 2013 ?? ?Print Version ?Bookmark and Share

Keywords:ECU? hybrid vehicles? microcontrollers?

In the design of electric and hybrid automobiles, in particular, the requirements for instrumentation used to measure internal ECU signals are very high. Nonetheless, measurement data rates of up to 30 MB/s and the necessary sampling rates of 100kHz can be achieved with the latest generations of microcontrollers and an intelligent measuring instrumentation solution. The ECU's CPU is not loaded here.

The drives of electric or hybrid vehicles are generally controlled by pulse-width modulation (PWM) signals. The advantage of PWM technology is that it incurs very low power losses at power switches, because they only need to be operated in two operating states: fully conducting or fully blocking. The frequency of the PMW signals typically lies in the 10 每 20kHz range, and in exceptional cases up to 100kHz. Maximum sampling rates of only 1kHz are achievable for internal ECU signals when XCP 每 a widely used standardised measurement and calibration protocol for vehicle development 每 is used together with communication over the CAN or FlexRay bus system. PMW signals cannot be acquired in this method.

That is why the debug and data trace interfaces are used for fast access to ECU variables. These interfaces can vary significantly depending on the type of microcontroller that is implemented. The measurement hardware is interfaced to the ECU over a "Plug-On Device" (POD). The maximum allowable distance between the microcontroller's debug pins and the POD is 10 cm. Communication between the measuring instrumentation module and the test PC is over XCP on Ethernet in accordance with the MCD-1 XCP standard from ASAM. The physical connection is made by a standard CAT-5 Ethernet cable. Essentially, two different measurement methods are distinguished: the "RAM copy method" and the "data trace method." They are presented in this article, together with their advantages and disadvantages, based on current microcontrollers and new microcontrollers that will be available soon. The different data trace methods refer to two types of 32bit microcontrollers that are primarily used in powertrain ECUs and their successors: Freescale PowerPC (primary market: USA) and Infineon TriCore (primary market: Europe).

RAM copy method
The RAM copy method is a generic method, and can be used for current and future generations of 32bit microcontrollers from various manufacturers. For the Infineon TriCore or XC2000, access is via the Device Access Port (DAP) interface; for the PowerPC devices from Freescale or V850 E2 processors from Renesas, access is via the Nexus Class 2+ interface. In this method, the ECU software initiates a RAM copy function according to the cycle time of the various ECU tasks. The measurement signals must be preconfigured over XCP on Ethernet. The mapping of signal names and RAM addresses is described in an A2L file (ASAM standardised ECU description file for signal-oriented RAM accesses). Once all measurement signals have been copied, the signals are transmitted to the base module for measurement data according to the existing debug interfaces (figure 1). This concept is referred to as "Online Data Acquisition" (OLDA).

Figure 1: Data flow concept for measurement signals by the RAM copy method and Nexus Class 2+ interface.

Compared to CAN, the measurement data rate and sampling rate are improved by a factor of 20, i.e. 0.5 to 1 MB/s of measurement data can be acquired with a sampling rate of 10 每 20kHz. The copying operation loads the CPU approx. 4% at 1 MB/s.

Data trace concept for Nexus Class 3 每 current Freescale PowerPC
Most devices of the current Freescale PowerPC series support the data trace method of Nexus Class 3. In this case, the developer configures one or two monitoring windows with a maximum total size of 512 kByte in the ECU RAM. Any changes within these monitoring windows are transmitted to the POD via Nexus Class 3 without any additional CPU load. Transmission rates for raw data of up to 100 MB/s are possible over the High Speed Serial Link cable. The advantage of this concept is that the base module for measurement data always contains a consistent mirrored RAM of the ECU's RAM. An ECU software trigger interrupts the data flow within the measurement data base module, where new changes are saved in a First In, First Out (FIFO) buffer in RAM. The measurement is initiated by one of up to 256 different software triggers, and the contents of the mirrored RAM are "frozen". Based on the measurement configuration, the signals are read out from the mirrored RAM in the base module for measurement data and are sent to the measurement and calibration tool over XCP on Ethernet (figure 2).

Figure 2: Data flow concept of measurement signals by the data trace concept and Nexus Class 3 interface.

Advantages of the Nexus Class 3 solution:

???The maximum measurement data rate of 30 MB/s is a factor of 30 times larger than with Nexus Class 2+ and 600 times larger than with XCP on CAN.
???The CPU is typically not loaded by the measurement.
All PWM drive signals can be measured at the 100kHz sampling rate without any problems.

1???2?Next Page?Last Page

Article Comments - High-speed measurements for hybrid v...
*? You can enter [0] more charecters.
*Verify code:


Visit Asia Webinars to learn about the latest in technology and get practical design tips.

Back to Top