To meet demands for increasingly complex new vehicles while continuing to reduce costs, where possible Jaguar develops and tests new functionality using existing production vehicles instead of building expensive prototypes. This approach involves adding a special-purpose electronic control unit (ECU) to the vehicle.
Jaguar, based in Coventry, England, uses products from MathWorks to generate control software and deploy it on commercially available, general-purpose ECU hardware based on the Motorola MPC555 microcontroller. Jaguar selected the Microgen product from the UK company add2 Limited as its hardware platform (see: www.add2.co.uk/MicroGen.htm).
In this way Jaguar can develop new features in an offline mode on a desktop in the lab and then try them out in a vehicle. It can support a variety of application areas, such as the transmission, driver entertainment, and body system. By testing the new features on real hardware Jaguar improves the quality of specifications that it provides to its suppliers.
Most vehicles today contain several control units that are interconnected via realtime network standards such as CAN and J1850. Messages sent over these networks are used to continually transfer vehicle data and control information between ECUs. When a new ECU is received (by Jaguar) from a supplier, the ECU 'expects' to be installed in a vehicle with other ECUs that use the same message format and network protocol. However, initial development of systems with the new ECUs begins on existing production vehicles, presenting problems with incompatible message formats and protocols.
Previously, Jaguar would deal with this problem by commissioning a special-purpose ECU that would perform 'protocol conversion' between a new ECU and an existing network on the production vehicle. This work was subcontracted to external code developers - a slow and costly option. It involved giving specifications to a vendor, who would write software and send them the code. On-vehicle debugging would identify problems with the code, requiring Jaguar to go through several iterations before implementation. Jaguar needed a quicker, more cost-effective approach.
In proposing a solution it soon became apparent that the resulting system could be used, not only for protocol conversion, but also as a rapid prototyping system for implementing and testing new control algorithms or diagnostic features. The scope of the project was widened accordingly.
For targeting Microgen, its general-purpose ECU, Jaguar selected the MathWorks complete software environment, based on Simulink, Stateflow, and Real-Time Workshop.
A new product, the Embedded Target for Motorola MPC555, was created. Jaguar used these MathWorks products to design, simulate, and test control algorithms and generate custom code that was downloaded to Microgen hardware. For a typical project, it builds the control system as a block diagram in Simulink and Stateflow. To access I/O such as PWM, analog input, or CAN that is incorporated in the MPC55 microcontroller, it uses blocks that are included with the Embedded Target for Motorola MPC555.
Additional Simulink blocks have been developed by add2 Ltd to provide access to I/O devices that are external to the MPC555 chip. In this way, the control algorithms that Jaguar developed could process signals received via a CAN or J1850 bus or directly from sensor inputs. The algorithm output could be transmitted as a bus message or used to drive output devices directly.
Because the Simulink and Stateflow model was an executable specification, algorithms could be simulated and tested offline as they were being developed. Once the algorithm was validated in simulation, a complete application could be automatically generated and downloaded to ECU hardware.
Once the code was generated, test engineers downloaded the application over CAN into either RAM or flash memory on the target ECU.
Jaguar can customise, document, test, and validate the algorithm model, and then generate code for Microgen, all within the MathWorks environment. For example, the Embedded Target for Motorola MPC555, in conjunction with Jaguar's ECU hardware, allows some prototype work to be completed in-house, which in turn allows more complete and accurate specifications to be sent to suppliers for them to develop the actual system.
Jaguar is now using the code with general-purpose ECU hardware to aid in the development of control strategies. For example, during Engine Management Systems (EMS) development, it ran code on Microgen to simulate the vehicle transmission control unit. This allowed the engine and EMS to be tested through a number of drive cycles. The cycles were simulated by using the ECU hardware to send transmission position information to the EMS, which in turn 'thought' it was in a certain gear. The gear selected was easily controlled by the test engineer or by an automated test procedure.
* Time and cost savings. Using MathWorks tools cuts several weeks from a typical development project. Without the general-purpose ECU, Jaguar would have had to ask the supplier to provide special, development-grade ECUs and software update every time it wanted to test a new strategy. Today it can test many more design iterations and save a great deal of time and money.
* Ability to test more design options. Reduced validation effort and the increased use of general-purpose and cost-effective ECU hardware allow the simultaneous trial of prototype control modules across a fleet of engineering vehicles, thereby enabling more rapid evaluation of proposed features.
* Faster development of embedded control designs. MathWorks products enable Jaguar to test innovative new vehicle features faster and more effectively.
|Tel:||+27 11 325 6238|
|Fax:||+27 11 325 6239|
|Articles:||More information and articles about Opti-Num Solutions|
© Technews Publishing (Pty) Ltd | All Rights Reserved