Vous êtes sur la page 1sur 2

CUMMINS CENTINEL

Cummins Centinel: a design review


By Bill Gatliff and strict air quality standards were to be offered as an after- selected for its low price, high in-
Embedded Systems Consultant make an all-mechanical solution market, owner-installed device, tegration, and availability (at the
Paul Cantrell impractical. Centinel is better meaning its sales price had to be time, competing chips from other
Management Consultant than mechanical systems at significantly less than the savings vendors had lead times that were
maintaining engine oil quality it could achieve. This made for an beyond the intended project
Welcome to the first edition of because it contains a sophisti- aggressive cost target. completion date). Other chip se-
Inside Look, a periodic column cated algorithm that replaces lection criteria included tempera-
that takes an in-depth look at oil at a rate proportional to Approach ture range, number of onboard
the design of a successful, unsuc- the engines workload, and Centinel is an electromechani- timers, amount of memory (RAM,
cessful, or just plain interesting also because it adds fault cal design featuring a TMS370 ROM, and EEPROM), and the
embedded system. This isnt a detection logic that cannot be microcontroller, an SAE J1587 chips packaging options.
marketing pitch. Were scrutiniz- implemented mechanically. automotive datalink interface, a The variant of the TMS370
ing the technical aspects of the mechanical valve assembly to chosen sports 256 bytes of
design, to find out what went Problems to solve transfer oil in and out of the en- onboard RAM, 8KB of OTPROM,
right, what went wrong, and From the beginning, Centinels gine, sensors to measure oil lev- 256 bytes of EEPROM, a se-
what would go differently if the designers knew that the device els, and a tank to hold fresh oil. rial communications interface
designers had the opportunity to needed to be reliable. Significant During normal operation, the (SCI), two 16-bit counters, 23
do it all over again. damage can occur to an engine microcontroller reads engine digital inputs, an 8-channel
This month features a device if the oil quality deteriorates or information from the J1587 dat- analogue-to-digital converter
called Centinel, a system that the oil level drops, and since alink to determine the engines (ADC), and a 12MHz system
works to eliminate oil changes Centinel removes oil from an current workload and to detect clock. Additional components
for big diesel trucks and other engine, it must take precau- the occurrence of various en- in the Centinel design include
diesel powered equipment. This tions to ensure that the oil gine- and oil-related system power conditioning and power
product has been an amazing level and quality are maintained faults. This information is used failure detection circuitry, and
success, and chances are youve throughout the process. This to calculate an oil burn rate, an SAE J1587 datalink interface
passed or been passed by trucks problem was trickier than it which is then translated into a (similar to an RS-485 network)
with this hardware built in. Enjoy sounds, because inexpensive oil series of electrical pulses that to connect to the engines com-
the inside look. level sensors capable of surviv- cause the oil transfer valve as- munications datalink.
ing the harsh conditions found sembly to transfer used oil from To improve reliability and
Centinel inside of a diesel engine did not the engines crankcase to the durability, all of Centinels data
The Centinel Advanced Oil exist at the time. Centinel also fuel tank. The oil transfer valves inputs are extensively qualified
Management System is an em- had to be durable. On-highway design combines the used and in both hardware and software
bedded system that extends oil diesel trucks routinely travel as fresh oil pistons into the same before the values are used.
change intervals on electroni- many as 200,000 miles a year in mechanical package, yielding a Clever hardware detects open
cally controlled diesel engines all types of climates and condi- device that reliably transfers a and short circuits on inputs
by periodically removing a small tions, and industrial machinery, fixed, known quantity of used and outputs, and careful range
amount of used oil from the like construction equipment, of- oil to the fuel tank, and replaces checking of all input values
engines crankcase and replac- ten goes without maintenance it with an identical quantity of prevents improper operation in
ing it with fresh oil. The used oil for months at a time (although fresh oil on the return stroke. the event of tampering or elec-
is sent to the engines fuel tank, this is not generally considered The valve and related plumbing trical failure. The primary control
where it is blended with the a good idea). Furthermore, com- are heated by the engine, which algorithm runs on a fixed 20ms
fuel and burned during normal mercial diesel applications seek helps keep the oil flowing even interval, and combines engine
combustion. to maintain the highest pro- in the coldest climates. workload, climate, and other
Centinel allows diesel-pow- ductivity possible, which means A sensor indicates when the information received from the
ered trucks, tractors, generators, they cannot stand idle while an fresh oil reservoir is empty, and engine datalink to compute
and other equipment to spend accessory like Centinel is down Centinel will postpone pulses un- the proper oil burn rate. The
more time at work, and less time for repairs. Centinels software til additional oil is provided. The oil replacement rate, therefore,
in the shop for oil changes and quality was also an issue, since engine operator must still moni- varies in real time, and seeks
other routine maintenance. And the microcontroller would be tor the dipstick in the engines to maintain oil quality at a
by burning the used oil as fuel, an one-time-programmable crankcase, and manually add oil level that approximates a typical
Centinel also saves money and part: the firmware could not be as necessary to replace the small 20,000 mile oil change interval,
reduces environmental damage updated once the system was amount the engine burns inter- regardless of the engines actual
by eliminating the need to dis- manufactured. A defect in soft- nally during normal operation. duty cycle.
pose of used oil. This idea is not ware found after production Once the proper oil burn
new. Mechanical systems with would result in the replacement Details rate is calculated, the value is
similar functionality have been of all existing Centinel units. Texas InstrumentsTMS370 micro- passed to a second algorithm
around for years, but todays Finally, the product had to be controller forms the foundation that computes the rate at which
sophisticated engine controllers affordable. The first Centinel units of the design. This controller was pulses must be sent to the oil

EE Times-India | July 2001 | eetindia.com 


transfer valve assembly in order checksum fields of the incom- The shutdown and EEPROM plication that was remarkably
to actually burn and replace the ing packets; packets with invalid updating process was reviewed free from defects and missed re-
requested volume of oil. The checksums or out-of-range data and revised almost continuously quirements, and even contained
logic at this stage is challenging, are discarded. A timer measures during development. Particular unspecified, supplemental logic
because pulses are postponed the duration between success- attention was given to the logic to combat what were viewed to
when the fresh oil tank is empty, fully received packets and halts that induced the writing process, be the most likely bugs, such as
the oil is cold, or a system fault the burn rate computation if an the order in which bytes were the EEPROM overrun example
is detected. When the opera- excessive delay-indicating a written, checksums, and how mentioned previously. What
tor refills the fresh oil tank, the cut datalink cable-is detected. much data was queued before might have been perceived as a
oil warms, or the fault is fixed, This prevents Centinel from writing began, to make sure that costly delay actually produced a
pulses are sent at an accelerated transferring oil when it lacks the amount of time required to better quality product in the end,
rate in order to catch up to the the engine information needed perform the write operation was with minimal long-term impact
requested volume. to determine what the proper absolutely bounded, and to help to the project schedule.
To minimise air pollution burn rate should be. assure that the system would A peer review process was
concerns, EPA guidelines limit Other interrupt service rou- reawaken in a safe state if an un- also employed, and all work
the amount of oil that can be tines force periodic sampling of anticipated error or early power products like code and circuit
burned as fuel in an automotive the TMS370s onboard ADCs, failure somehow did occur. designs were studied by other
diesel engine. To prevent Cen- and notify Centinel of an im- One unexpected surprise dur- developers before they became
tinel from exceeding this limit, pending power failure induced ing early field testing was that part of the final solution. These
a third algorithm restricts the when the operator shuts down the excessively high-powered extra eyes not only helped un-
maximum pulse rate sent to the the engine (Centinel is powered (in some cases illegally so) CB cover bugs and missed require-
oil transfer valve under all cir- by the ignition switch). radios favoured by many truck- ments, it also fostered a sense of
cumstances, so much so that in Unused interrupt vectors are ers could induce voltage swings teamwork that let more people
extreme cases, the recovery of filled with pointers to the start-up of nearly 30V peak-to-peak on within the company participate
delayed pulses can take hours, function, essentially rebooting the trucks main power system in Centinels success.
or even days to complete. the system when an unexpected (typically a 12V DC supply). These
interrupt is detected. voltage spikes would trip Cen- The results
Software architecture Centinels EEPROM is used to tinels impending-power-failure Centinel is one of Cummins
On start-up, the software store important persistent data, circuitry, triggering excessive Engine Companys most suc-
configures the microcontrollers like the number of oil pulses EEPROM writes and generally cessful products, apart from their
I/O hardware, timers, serial com- needed vs. the number actually compromising system perfor- award-winning family of elec-
munications port, ADC, and other sent. Unfortunately, these values mance. To combat this, ad- tronically controlled diesel en-
peripherals. It then enters an cannot be updated on every ditional hysteresis code had to gines. Even after more than five
endless do-nothing loop. Inter- iteration of the control loop, be added to Centinels already years of production, the Centinel
rupt service routines contain because doing so would surpass extensive set of signal analysis system has yet to need major im-
the bulk of Centinels code, a the EEPROMs write cycle limit logic, to prevent false power fail provements or revisions.
common approach in applica- well before the end of Centinels indications from initiating an The Centinel design won an
tions that need multi-threaded expected lifetime. Instead, data avalanche of EEPROM updates OEMmie award from OEM Off-
behaviour yet lack an operating is mirrored in RAM and written when the radio was in use. Highway Magazine, and is largely
system scheduler. to EEPROM only at shutdown, regarded within Cummins as an
A periodic timer interrupt initi- during a 200ms holdup provided Process was key example of how their continuous
ates the main control loop code, by capacitors built into Centinels One lesson that the Centinel de- improvements in system engi-
which resets a hardare watchdog power supply circuitry. velopment team learned was the neering practices are yielding
timer only on successful comple- The holdup time provides a benefits of good software design superior products. In fact, the de-
tion. By resetting the watchdog good balance between reliability and process. Development tools sign is so successful, it has served
timer at the end of the compu- and cost (longer values would were unexpectedly late in arriv- as a platform for several other
tation, a natural immunity to require more capacitance), but ing, which gave the team further new products, some of which
overruns is imposed: if the code is critically close to the EEPROMs opportunity to refine Centinels will undoubtedly be featured in
ever takes too long to execute, write cycle time, which means implementation on paper before future Inside Looks.
the watchdog reset code gets that there is virtually no room for coding began. Structured design The authors wish to acknowl-
interrupted by the next iteration unexpected delays during the tools were employed, along with edge the efforts of Andy Paja-
of the algorithm, and eventually shutdown process. And since use-case analysis and failure kowski, Alex Knight, and Gary
the watchdog timer expires. the EEPROM contains vital in- mode studies, so that by the time Gron, all of Cummins Engine
Another interrupt service rou- formation about the state of the coding started the requirements Company, for their assistance in
tine receives engine datalink oil burning process, its contents were fairly complete. preparing this article.
information from the serial port. must be maintained under all By resisting the urge to start
This code includes a simple state real-world conditions other than writing code too early, Centinels
machine to parse the data and outright device failure. software team produced an ap- Email Send inquiry

 eetindia.com | July 2001 | EE Times-India

Vous aimerez peut-être aussi