Beruflich Dokumente
Kultur Dokumente
Fetah Basic
The Vehicle Network Gateway or VNG The VNG interfaces to the OBD through the
types of in-vehicle networks that are and other electronic components and
integrated on today’s electronic engines. The monitor there performance. These standards
Vehicle Network Gateway multiplexes SAE and protocols have been regulated by the US
J1708, J1939, and J1850 vehicle networks government and they have been required by
on a single asynchronous serial channel to federal law since 1996 for passenger
reduce the hardware overhead of a host vehicles and even earlier for medium to
system. A simple and easy to use interface heavy duty vehicles. The J1708 and J1939
eliminates the complexities of dealing with protocols are for medium to heavy duty
each protocol and their timing constraints. vehicles while the J1850 is for passenger
description can be found in the SAE J1708, with car mechanics that use OBD
SAE J1939 and SAE J1850 publications technology to diagnose engine troubles. But
The VNG is envisioned for the big the fleet management market. This
the private and commercial sector of First Responders (e.g., Ambulance, Police,
etc), etc. These OBD capabilities are usually driving, on duty, resting or off duty. This is
integrated in some sort of fleet management used to regulate the driver’s driving time
system that trucking companies use to and resting time to help prevent accidents
monitor their drivers. The common from fatigue, and help trucking companies
J1708 protocols support communication to 255. A MID value in the field is a unique
(e.g., bus, truck). The physical connection of transmitter and indicates the characteristics
SAE J1708 Protocol is a modification of the of the data following the MID value. MID
ISO EIA/RS 485 standard for electrical values ranging between 128 and 255 are
for use in balanced digital multipoint components which may be installed in a bus
channel as a character of 10 bits. The embedded from higher layers. They conform
Figure 1. Message Structure in SAE J1708 characters including MID and checksum.
assigned by different MID values have asynchronous mode. The start and stop bits
compliant-components are allowed to access J1708, which defines data and message
the vehicle network simultaneously. This identifiers. It expands SAE J1708 to handle
order to solve this problem, J1708 assigns a in a heavy-duty vehicle like class 8 trucks.
delay that determines the time when the The messages defined in SAE J1587
delay is based on the priority of the message 1. Vehicle and component information
content and device. Clearly, the which pertains to the operational status
the SAE J1708 protocol is a peer-to-peer (or 2. Routing and scheduling information
Under this configuration, devices attempt to route of the vehicle, current vehicle
transmit whenever they have a message to location, and estimated time of arrival
Currently, the SAE J1587 protocol is limited data transfer. The connection management
to the formats for basic vehicle and includes connection requesting and closing,
The SAE J1587 functions on the data link operations used for transferring user-defined
Instead of using the term data characters, it SAE J1587 protocol can act as an
Identification (PID) character and a series of units) that can be passed down to the data
data characters (see Figure 2). Currently, link layer to form parameters are not
various activities associated with a heavy- network services used to create and map the
support.
Figure 1. PDU Structure in SAE J1939
J1939 uses the CAN protocol which permits
address at the same time. The PGNs are received from the CAN bus by waiting for
independent of the Source Address, thus any the CAN controller to send an interrupt
ECU can transmit any message. signifying that it has received a message and
Each J1939 message is limited to 1785 data then reading the message from the CAN
bytes. Messages greater than eight bytes in controller’s registers. The CAN controller
length are too large to fit into a single CAN ensures that messages are transmitted
data frame. They must therefore be broken according to the message priority and at the
into several smaller packets, and those specified rate of the network.
frames. At the destination end, the The SAE J1850 On-Board Diagnostics
individual message frames must be received, standard used in On and Off-Road vehicles
reassembled from the received packets. The low cost, intended for “masterless” bus
Transport Protocol Message is used to control, and it is a single level bus topology.
transmit these multiple packet messages. J1850 has two main operation methods,
accomplished with the help of an integrated Kb/s, and a Variable Pulse Width (VPW) at
CAN controller. Messages are transmitted 10.4 Kb/s approach. The VNG will support
on the CAN bus by writing the appropriate both approaches. J1850 has three main
response signifying that the message was respectfully for each class. VNG will
primarily be utilizing the B class. The B to all network nodes to access the network.
class usually supports intermodule, non-real Because in J1850 the transmitting node
time control and communication. In class B broadcasts its message, all the other nodes
the high speed PWM uses two wire see the message including the transmitting
differential approach and the 10.4 Kb/s node itself. Because of its asynchronous
VPW uses single wire approach. VPW nature some kind of arbitration scheme
Chrysler, while PWM supports Ford. J1850 environment that supports the peer-to-peer
network for sharing information passed in transmits a frame it first listens to the bus for
frames between all vehicle electronic some pre set amount of time. If the bus is
components that are connected on the J1850 not busy then the message is transmitted,
between these electronic components can be another message then the listing node waits
achieved using multiplexing. The two types for the current message to finish transmitting
of multiplexing are frequency division and before it sends its. Collision Resolution
time division. Frequency division sends two allows multiple transmitting nodes to talk at
or more frames at the same time on a single the same time, and it resolves the issue of
channel. Time division sends two or more who controls the bus by utilizing a message
signals with fixed or variable time delays or prioritization scheme. Checking is done
high potential nominal period of 200us Cyclical Redundancy Check) byte. The CRC
called the Start of Frame (SOF). This is divides the entire message excluding the
followed by bit symbols representing data SOF, by a special polynomial. The 1’s
bytes. Anywhere between one byte to eleven complement result of the polynomial is
bytes can be transmitted. The field following appended to the frame after the data field.
the SOF is the Header Field. The HF can The receiving nodes do a similar polynomial
either be one or three bytes in length. HF calculation to the received frame and if no
contains critical information about what a errors occurred the result will always be the
receiving node should expect in the same (C4 in hex). After the CRC byte,
proceeding frame, such as how many bytes comes the End of Data (EOD) which is a
are in the HF or how many data bytes the 200us low potential. The receiving nodes
frame contains. For more information on the after this symbol can immediately respond
header byte bit definition, a bit by bit break with an In-Frame Response (IFR) message
down of the header field and the meaning which is a form of error handling that J1850
refer to the SAE J1850 manual. The Data supports. Otherwise if no IFR is needed by
Field consists of ones and zeros. A passive the receiver then the EOD extends into an
1-bit symbol is 128us long low potential, End of Frame (EOF) symbol. These to
and a dominate 1-bit symbol is 64us long combined make the EOF which is 280us
high potential. The zero bit symbol is the long low potential.
opposite, passive is 64us long low potential There are much more detailed explanations,
and dominate is 128us long high potential. tables and definitions of the J1850 protocol
Only one transition is required per bit. At in the SAE J1850 manual.
2. Tasks/Interface/Parts components that will be needed to make the
VNG board.
2.2 Interface
2.3 Parts
microcontroller will be running on the compiler and debugger, meaning when you
uCOS-II (microCOS-II) operating system. step through the code you are stepping
This is a real time operating system. The through the physical chip in real time.
ROMable, very scalable, preemptive real- everything else is taken care of since my two
time, multitasking kernel (RTOS) for co-workers have already done the J1708 and
microprocessors and microcontrollers. J1939 long time ago. The VNG board is
tasks and provides the following services: part the J1850 capability. I may need few
V2.04) 3. Testing/Demo
• Task Management (Create, Delete, also be done by simulating ECU input and
• Fixed Sized Memory Block device that captures the output data and can
Vehicle ECU output, which will be hooked Tie up any looses ends left over. Finalize all
up to the VNG. If time permits I will write the components. Test the finished product
an application in C# or C++ to take what and prepare for the Demo. Finish the Report.
observer, and display it in a meaningful way Everything has tested fine. The project is
when the gas pedal is being pressed the Have project assessment get together every
RPM gage mirrors this by increasing or week. Review the progress of the project.
with the different protocols and standards. I am looking forward to doing this project
Have all the material needed for the project. and completing my undergraduate capstone.
Begin writing the procedures and processes already completed J1708 and J1939
manual
[2] www.sae.org
[3] http://www.ucos-ii.com/contents
/products/ucos-ii/benefits.html
[4] http://www.freescale.com/files/
microcontrollers/doc/prod_breif/
MC9S12DJ256FS.pdf