Article View: news.software.misc
Article #2124needed C-code implementation for J1587 protocol. Panu & GKR/EEC (Bosch). 20.january.2000/11:31
From: Panu, Sorin
Date: Thu, 20 Jan 2000 00:00
Date: Thu, 20 Jan 2000 00:00
452 lines
19861 bytes
19861 bytes
I'm working as a development engineer in a company called GKR
which belongs to Bosch-group and we develop
air conditioning ECU's for cars and trucks.
Related to this activity i was confronted with a serial bus
defined by J1708 (phisical layer) and
a data protocol on this bus defined by J1587.
Because we have less experience with the implementation of J1587,
I'm searching for some C-language implementations.
We will use in the ECU a Motorola HC011 microcontroller
so apllications which were designed for HC08 or HC011
microcontrollers could fit very good.
Still C-code for other microcontroller families could be a great help.
Could you help us to find proper code examples
or write some proper code for us?
Even some information about who already
had something similar to do, could help a lot!
If you know a better newsgroup to post, please inform me.
Thank you!
Regards
Sorin Panu PhD
GKR/EEC
Daimlerstr. 6
D-71229 Leonberg
phone +49 (0)7152 302-37179
fax +49 (0)7152 302-36155
email sorin.panu@gkr.de
Attached some articles I found which maybe help ...
----------------------------------------------------------------------------
------
White Paper
J1587/J1708 IS Used for Control
By Paul Menig
Over the last several years, as we have struggled as an industry with the
implementation of antilock brakes
for tractors and trailers, the issue of the purpose of SAE J1708/J1587 has
come up many times. Some in
the industry vehemently say that J1587 is for information only, not control.
Even people who originally
developed the standard say it is for information only, not control. I
disagree and hope to prove my point in
this paper. SAE J1708/J1587 provides status information for the purpose of
information display and, at
least, open loop control; specific instances of closed loop control will
also be shown.
Probably the simplest example of open loop control in most vehicles today is
PID 84 Road Speed. An
output shaft speed sensor attached to the transmission is wired to the
electronic engine control. The engine
control places this status information onto the SAE J1587/J1708 data bus.
The electronic instrument
cluster receives this status information and directs either an air core
gauge movement or a stepper motor or
an electronic display to indicate the road speed to the driver. A legally
required item in the truck, the
speedometer, is driven based on information from the data bus. Certainly,
this is not direct control in some
people's minds, but if the road speed changes, the gauge changes in a
one-to-one correspondence.
Another example of open loop control deals with the throttle position. The
throttle is wired directly to the
electronic engine control in most cases. The engine control places
information on the throttle position onto
the SAE J1587/J1708 data bus. A transmission electronic control receives
this status information and
changes its shift points dynamically to shift at lower speeds if the driver
is lightly pressing the throttle pedal
and to raise speeds for shifting if the driver is pressing hard on the
throttle pedal. Again, there is a one-to-one
correspondence between the information sent out by the engine control and
the operation of the
transmission control.
Brake Switch Status, Parking Brake Switch Status and Ignition Switch Status
are further examples of status
information that are used by electronic units to control their operation. An
electronic control is likely to use
the status information on these switches to provide some safety interlocks,
to light lights, to display
information on displays. Power Take Off operations are a good place for this
type of application.
PID's 13 and 14 are also good examples of status information that exists,
probably for no other reason than,
to effect safety interlocks. These identifiers provide information on an
entry assist device and the electric
motor current required to operate it. While I do not know this for a fact, I
suspect that the motor current is
compared to a set limit and some action is taken to stop the motor if the
limit is exceeded.
Closed loop control is possible, as well, with SAE J1587/J1708. PID's
141-146 are good for demonstrating
this operation. An electronic control in the cab of the vehicle has a
digital display and several switches.
The driver selects the type of operation for inflation/deflation of the
tires on the vehicle. For instance, the
driver may select highway mode, off-road mode or run flat mode where the
proper tire inflation pressures
for these modes is 105PSI, 90PSI and 60PSI respectively. When the driver
selects a mode of operation, the
cab unit broadcasts or sends a message using PID's 141-143 to indicate the
target air pressure for the
system. A remote air pressure control unit receives the message and attempts
to inflate/deflate the air
pressure in the tires to achieve the target air pressure. The remote control
unit may regularly broadcast the
actual pressures, or the cab unit may repeatedly request the air pressure
from the remote unit. In either
case, the cab unit continues to monitor the air pressure until the desired
value is achieved. Once attained,
the driver is given a signal that the tire pressure is at the selected
pressure and he may proceed. Thus,
closed loop control of the tire pressure is achieved.
PID 50, Air Conditioner System Status #1 goes even further to indicate it is
for both status and command
information. This parameter identifier is for control and status of the air
conditioner clutch, engine fan and
switches.
PID 87, Cruise Control High Set Limit Speed is an interesting example. A few
fleets have worked with
engine manufacturers and wireless communications providers to effect
reprogramming of this parameter in
the electronic engine control remotely based on dirver performance. Using
wireless equipment that listens
to the data bus continuously, fleets monitor the fuel usage and fuel economy
of a driver. A driver that is
getting good fuel economy, is rewarded with 1-2 miles per hour increase in
the cruise speed of his vehicle.
A message is sent back to the wireless equipment in the truck, which then
sends a message to the electronic
engine control to increase the cruise set speed. I do not know specifically,
how this is implemented by the
fleet, the wireless communications provider and the electronic engine. It
may use proprietary messages
under the escape PID (256), it may use a separate RS232 link to an engine
display that then communicates
with the engine control, or it may use PID 87 as outlined above.
These are just a few examples of how SAE J1587/J1708 can and does get used
today for both open loop
and closed loop control. Additional examples can be found by examining the
list below of Parameter
Identifications that go beyond simply providing status information for the
purpose of information display.
Appendices B, C, D and E deal with communications control commands such as
request to send and clear
to send, display of information to the driver, and control of the engine to
prevent unauthorized starting.
0 Request Parameter
5 Under Range Warning Condition
6 PID Over Range Warning Condition
13 Entry Assist Position/Deployment
14 Entry Assist Motor Current
28 Percent Accelerator Position #3
29 Percent Accelerator Position #2
30 Transmission Range Position
33 Clutch Cylinder Position
40 Engine Retarder Switches Status
41 Cruise Control Switches Status
42 Ignition Switch Status
50 Air Conditioner System Status #1
51 Throttle Position
65 Brake Switch Status
66 Shift Request Switch Status
69 Two Speed Axle Switch Status
70 Parking Brake Switch Status
74 Maximum Road Speed Limit
84 Road Speed
87 Cruise Control High Set Limit Speed
122 Engine Retarder Percent
128 Component Specific Parameter Request
139 Tire Pressure Control System Channel Functional Mode
140 Trailer, Tag, or Push Channel Tire Pressure Target
142
143
144 Gauge Pressure
145
146
150 PTO Engagement Control State
162 Transmission Range Selected
163 Transmission Range Attained
187 Power Takeoff Set Speed
193
194
195 Diagnostic Data Request/Clear Count
196
199 Traction Control Disable State
224 Immobilizer Security Code
257 Cold Restart of Specific Component
258 Warm Restart of Specific Component
379 Transit Door Status
501 Signage Message
504 Annunciator Voice Message
505 Vehicle Control Head Display Message
Appendix B Request to Send and Clear to Send
Appendix C Text Message to Display
Appendix D Electronic Driver Interface Unit
Appendix E Anti-Theft Request
----------------------------------------------------------------------------
----
PLC4Trucks: Our History
SAE J1587 Networking Using Spread Spectrum
Power Line Communications (PLC) over the DC Power Bus
Introduction
PLC Requirements
PLC Solutions
Conclusions
The Heavy Duty Truck and Bus industry is faced with a challenge:
how
to enable reliable tractor-trailer communications without adding
a
second connector beyond the standard SAE J560 connector used
today.
The driving forces behind this issue include a mandate by the
federal government for in-cab trailer ABS warning lights, and an
overall desire for more control and monitoring information as
the
industry strives to take advantage of communications to reduce
operating costs, improve efficiency, and increase safety.
One communication standard, SAE J1587, is well established in
the
industry and is very well suited for low-speed control and
monitoring applications. A second and complementary
communication
standard, SAE J1939 is gaining momentum as the need for
high-speed
communications emerges for applications such as real-time
control
between the engine and transmission.
Both of these standards are "wired" solutions that utilize
unshielded or shielded twisted pair.
The problem is that the standard SAE J560 connector does not
have
any extra wires (or pins) for J1587 or J1939 communications.
Many
solutions have been proposed to solve this problem including the
addition of a second connector, pin multiplexing of the existing
J560 connector, wireless solutions such as infrared (IR) and
radio
frequency (RF), and power line communication (PLC) solutions
that
use the DC power bus. Each has met with limited success in the
marketplace for reasons best explained by exploring the minimum
Requirements for Tractor-Trailer Communications
The requirements for tractor-trailer communications can be
summarized as follows:
Low Cost - Since one of the primary reasons for bringing new
communications solutions to market is to reduce operating costs
and
improve efficiency, it is imperative that the maintenance costs
as
well as the initial costs of the new solutions are low.
For example, solutions that involve a second connector or some
type
of multiplexing of the existing connector are generally not very
well accepted because it is believed that the initial and
maintenance costs will be high.
Reliable - Since safety in the industry is of chief importance
as
demonstrated by the legislation for trailer ABS monitoring, it
is
critical that the solution be sound, both from a technical
design
and maintenance perspective.
Further, it must be able to withstand a wide range of
environmental
and operating conditions and function in various trailer
configurations.
For example, the idea of multiplexing the existing connector
brought
up some serious issues of fail-safe operation. Some early
attempts
at power line communications (PLC) that utilized traditional
amplitude and frequency modulation digital techniques were
inadequate in terms of robustness of the communication link.
Wireless solutions such as IR and RF have also been attempted,
but
again, they have proven to be either robust but expensive, or
affordable but unreliable. Further, each of these solutions had
serious limitations when it came to double and triple trailer
configurations.
SAE Standard Compatible - The industry is presently supporting
two
communication standards, SAE J1587 and J1939. Over the years,
vendors have invested heavily in software and hardware to ensure
robust J1587 networks. And now, these same vendors are investing
heavily to attain the same level of expertise for J1939
networking.It is not the time for another communication standard
in
the trucking industry. The solution must be compatible with one
of
the existing SAE standards, either J1587 or J1939.
For example, vendors have demonstrated new PLC solutions that
are
robust and solve the problem even in double and triple trailer
configurations. However, these solutions have been tied to
proprietary or standard communication protocols from other
industries such as Echelon's LonWorksTM and the EIA-600 CEBus
standard. There is nothing wrong, at least technically, with
these
other protocols. But the trucking industry is not ready nor can
it
afford to invest the time, effort, and dollars required to ramp
up
and support yet another communication standard.
A Robust PLC Solution Emerges
Given the requirements of the industry, it is understandable why
the
approaches to date have failed. It is also clear that a PLC
solution
is the most promising approach given the fact that the existing
J560
connector could be utilized. But, of course, the requirements of
low
cost, reliability, and compatibility with current SAE standards
must
be addressed. Intellon Corporation, an expert in semiconductor,
system design, and power line Spread Spectrum Carrier and radio
frequency (RF) communications, working with industry leaders in
the
trucking industry, has developed a unique approach to meet these
requirements.
Low Cost - The recent and continuing advances in semiconductor
and
communications technologies have allowed companies to implement
very
low-cost solutions in silicon. Robust spread spectrum solutions
can
now be implemented as inexpensively as traditional amplitude and
frequency modulation approaches.
Reliable - The implementation of advanced signal processing
techniques in silicon have enabled very robust communications
solutions to come to market. When combined with proven signaling
technologies such as spread spectrum and highly integrated
output
amplifiers, the result is an extremely reliable solution. Power
line
Spread Spectrum Carrier has been proven and is in use today by
industry leaders in various residential, commercial, and
industrial
environments for critical applications such as environmental
controls, security, remote telemetry, load control, and
substation
automation on both AC and DC power networks. And it has already
been
demonstrated as a viable solution for trailer ABS monitoring by
pioneers in the trucking industry.
SAE Standard Compatible - The bandwidth, required by J1587 (9600
baud), is an ideal fit with existing and proven technologies.
The
physical interface for J1587 is a twisted pair RS485
transceiver.
Intellon has developed a unique method to transparently emulate
a
twisted-pair RS485 transceiver with its Spread Spectrum Carrier
PLC
solution. The result is that vendors need not change their J1587
microcontrollers to communicate over the DC power bus. They need
only modify their hardware design to replace the RS485 circuitry
with spread spectrum PLC components.Therefore, the entire
investment
and experience of the industry of implementing J1587 twisted
pair
networks applies to the DC power bus network, and the
tractor-trailer communication problem is solved with the
approach.
Twisted pair networks applies to the DC power bus network, and
the
tractor-trailer communication problem is solved with the
approach.
Conclusion
A new approach from Intellon Corporation has emerged that
leverages
off its proven power line Spread Spectrum Carrier technology to
solve the problem of tractor-trailer communications. Intellon is
in
a position to apply its advanced signaling technology, low-cost
silicon, and system expertise to produce a low-cost integrated
circuit for power line Spread Spectrum Carrier that emulates a
9600-baud RS485 transceiver. With the commitment of industry
leaders
to bring the solution to market, the problem of tractor-trailer
communications is being solved. The result will be an SAE J1587
network that operates seamlessly over the DC power bus instead
of
its typical J1708 twisted pair network. The industry will
benefit
from a low-cost, highly reliable, and SAE J1587 compatible
solution
that enables new applications to emerge for increasing safety,
improving efficiency, and reducing overall costs.
----------------------------------------------------------------------------
-----
mail2news-20000120-de.sci.electronics+ieee.bbs.help+news.software.misc+sci.e
lectronics.basics+sci.electronics.design+sci.electronics.equipment+sci.elect
ronics.misc@anon.lcs.mit.edu
Technical Details
Message-ID:
<005401bf6331$91301ce0$e4294185@lr.bosch.de>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.misc.mbox.zip!not-for-mailShow Full Headers
Complete Article Headers
Message-ID: <005401bf6331$91301ce0$e4294185@lr.bosch.de> Subject: needed C-code implementation for J1587 protocol. Panu & GKR/EEC (Bosch). 20.january.2000/11:31 Date: Thu, 20 Jan 2000 00:00:00 +0000 From: "Panu, Sorin" <s_panu@writeme.com> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.misc.mbox.zip!not-for-mail X-Deja-AN: 575194082 Content-Transfer-Encoding: 7bit Organization: mail2news@nym.alias.net Mail-To-News-Contact: postmaster@nym.alias.net X-MSMail-Priority: Normal Content-Type: text/plain; charset="iso-8859-1" MIME-Version: 1.0 Reply-To: "Panu, Sorin" <s_panu@writeme.com> Newsgroups: de.sci.electronics,ieee.bbs.help,news.software.misc,sci.electronics.basics,sci.electronics.design,sci.electronics.equipment,sci.electronics.misc X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2014.211