HDV100A3 Command & Response Manual Table of Contents i
B&B Electronics -- 707 Dayton Rd. -- PO Box 1040 -- Ottawa, IL 61350
PH (815) 433-5100 -- FAX (815) 433-5104
WARNING!
This Model HDV100A3 Converter Module allows
you to connect to active J1708 / J1939 networks.
It is possible that your transmissions through this
converter module could cause malfunction of the
network operation, damage to software or
equipment, or bodily harm.
Do Not Transmit Any Messages to the
network without a complete understanding
of the operation of the network.
B&B Electronics Mfg. Co. specifically disclaims
any responsibility for damage or injury to
software, hardware, equipment or persons as a
result of using this product.
WARNING!
ii HDV100A3 Command & Response Manual
B&B Electronics -- 707 Dayton Rd. -- PO Box 1040 -- Ottawa, IL 61350
PH (815) 433-5100 -- FAX (815) 433-5104
Introduction
The HDV100A3 works with a command protocol to send and receive data
from J1708/J1587 and J1939 vehicle networks. Networks can be addressed
individually or to/from both at once if they are both present on the vehicle.
Note that the HDV100A3 is powered from the vehicle side of the interface.
If the device is to be used without a vehicle, it will be necessary to connect
power to the device through the 15-pin connector. Positive voltage is
connected on pin 8. Pin 7 is connected to ground.
Operation
The HDV100A3 performs several functions in order to reduce the overhead
and timing requirements of the host application when communicating with
the J1708 and J1939 bus. The device handles collision detection and retries
with no additional interaction from the host application. This greatly reduces
the processor overhead required by the host in order to communicate
efficiently with the vehicle bus.
HDV100A3 Command & Response Manual 1 Cover Page
B&B Electronics -- 707 Dayton Rd. -- PO Box 1040 -- Ottawa, IL 61350
PH (815) 433-5100 -- FAX (815) 433-5104
SOF
Number of
Control Bytes
Control Bytes
Number of
Data Bytes
Data Bytes
CS
1 byte
1 byte
1 to 20 bytes
1 byte
1 to 100 bytes
1 byte
Number of Control
Bytes to Follow
ID Byte
Function Byte
Control Data Bytes
1 byte
1 byte
1 byte
Up to 20 bytes
Number of
Data Bytes
Data Bytes
1 byte
Up to 100 bytes
Command Protocol
The HDV100A3 uses a simple protocol to communicate to vehicle bus. The
protocol is divided into four parts:
Start Of Frame (SOF)
Control Field (shown in light gray)
Data Field (shown in dark gray)
Checksum (CS)
Intelligent Mode Message Structure
The Start of Frame byte is the first byte in a valid frame and is
always 01 hex.
The Control Field sets up the function and control of the
HDV100A3 hardware and is formatted as shown below.
Control Field Structure
the message. This value indicates the number of control bytes, excluding
itself, to follow. If the message doesn’t contain any control bytes, the
Number of Control Bytes value will be set to 00 hex as a placeholder.
is preceded by the number of data bytes, excluding itself, to follow and is set
to 00 hex if no data is present in the message. The data field is reserved for
data that is to be communicated to the vehicle bus.
Data Field Structure
is calculated by adding ALL bytes from the Start of Frame (inclusive) to the
last data byte and using the last 8 bits as a checksum.
2 HDV100A3 Command & Response Manual
B&B Electronics -- 707 Dayton Rd. -- PO Box 1040 -- Ottawa, IL 61350
The first byte of the Control Field is the number of control bytes in
The next part of the message frame is the data field. The data field
The last element of a valid message is the checksum. The checksum
PH (815) 433-5100 -- FAX (815) 433-5104
Formatting the Control Bytes
The 2
nd
byte is “Number of Control Bytes” to follow and always
precedes the control field. The third byte is the ID byte. This byte tells the
hardware where to direct the message. Valid entries for functions are:
ID Codes
=01 Message for J1708
=02 Message for J1939
=08 General message (for control of the HDV100A3 device)
=05 Device identification (reverse compatible)
The fourth byte is the function byte. The functions that are
supported are listed below. Note that some of the function codes are followed
by additional bytes of information. These bytes must be included in the
control byte count.
Valid General Function Codes
Function codes
=01 change PC baud rate, followed by 3 bytes (UB3, Baud1, Baud2)
=02 send time stamp
=04 hardware handshaking
=08 reset converter, followed by 2 bytes (01,and 02)
=10 time stamp off
=20 time stamp on
Valid Entries for J1708 Functions
Function codes = 07 set broadcast message
= X8 set filter X off
= X9 set filter X on
= 11 Sync with J1708 bus and start reception
= 10 Stop reception
= 12 Transmit to J1708 bus
Valid Entries for J1939 Functions
Function codes =00 Receive off
=01 Receive on
=02 Transmit message
=08 Set mask
=X8 set filter X off
=X9 set filter X on
HDV100A3 Command & Response Manual 3 Cover Page
B&B Electronics -- 707 Dayton Rd. -- PO Box 1040 -- Ottawa, IL 61350
PH (815) 433-5100 -- FAX (815) 433-5104
Detailed Description of General Function Codes
Byte
Number
Byte
Value
Function
1
01
Start of frame
2
01 or 03
Number of control bytes = 1 for ACK, 3 for NACK
3
aa
ID byte 08 = internal command
4
bb
Function code 02 = send time stamp
5
cc 6
00
Number data bytes
7
CS
Checksum
Command Acknowledgement
All commands sent to the device will be acknowledged. If no error occurs an
ACK will be sent with the ID byte that accompanied the command. If an
error occurred, a NACK will be sent with the ID byte that accompanied the
command as well as a Function code of $05 and the Error Code. The
responses will not be shown for each command since it is the same for almost
all commands. Below is the format of the ACK/NACK response. If an
ACK/NACK response is different for a particular command, it will be
specified.
ACK/NACK Format:
aa – ID Byte
$01 = J1708 Interface
$02 = J1939 Interface
$05 = Device Id
$08 = RS-232 Interface
$09 = Message Xmit OK Response
bb – FC Byte
None = Command Received and Valid
$05 = A error was detected, NACK
cc – CD Byte
None = No Error Condition
Error Code = See Section 5.10
4 HDV100A3 Command & Response Manual
B&B Electronics -- 707 Dayton Rd. -- PO Box 1040 -- Ottawa, IL 61350
PH (815) 433-5100 -- FAX (815) 433-5104
RS-232 Baud Rate Setup
Function
Start
of
Frame
Control
Bytes
Command
Code
Function
Code
UB3
Baud
1
Baud
2
Data
Bytes
Check
Sum
Byte #
1 2 3 4 5
6
8
9
10
Value
01
05
08
01 00
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
Divisor
Latch
Set
Break
Set
Parity
Even
Parity
Parity
Enable
Stop
Bits
Word
Length 1
Word
Length 0
Bit 5
Bit 4
Bit 3
Parity Selection
*
*
0
No parity (default)
0
0
1
Odd parity
0
1
1
Even parity
1
0
1
Force parity “1”
1
1
1
Force parity “0”
Bit 2
Word Length (bits)
Stop Bit Length
0
5,6,7,8
1 (default)
1
5
1½
1
6,7,8
2
To set the baud rate for the RS-232 port, set a general command code of 08.
Set the function code to 01. Then set 3 control bytes as follows.
Setting UB3
Bit 7 = 1 allows baud rate divisor to be changed. 0 baud rate change is
blocked. Bit 7 should not be set. The setting and resetting of this bit is
handled internally.
Bit 6 = 1 forces the transmitter output to a logic 0 for alerting the remote
receiver to a line break. 0 indicates no break condition.
Bit 5, 4 and 3 work together to set parity
*Don’t care state.
Bit 2, stop bit, works in conjunction with bits 1 and bit 0
HDV100A3 Command & Response Manual 5 Cover Page
B&B Electronics -- 707 Dayton Rd. -- PO Box 1040 -- Ottawa, IL 61350
PH (815) 433-5100 -- FAX (815) 433-5104
Bit 0
Bit 1
Word Length
0 0 5
0 1 6
1 0 7
1 1 8 (default)
Bits 1 and 0 set the word length
Default value. The HDV100A3 should always be set to 8-bit word length.
6 HDV100A3 Command & Response Manual
B&B Electronics -- 707 Dayton Rd. -- PO Box 1040 -- Ottawa, IL 61350
PH (815) 433-5100 -- FAX (815) 433-5104
Loading...
+ 21 hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.