B&B Electronics HVD100A3 manual Set Filter 1 to

Page 28

The mask can be used to look at a group of messages:

To set the mask to filter on the J1939 priority field, the mask would be loaded with:

(01, 06, 02, 04, E0, 00, 00, 00, 00, ED)

To set the mask to filter on the J1939 PGN field, the mask would be loaded with:

(01, 06, 02, 04, 07, FF, F8, 00, 00, 0B)

To set mask to filter on both the priority field and the PGN field the mask would be loaded with:

(01, 06, 02, 04, B7, FF, F8, 00, 00, BB)

Set Filter 1 to 4

Function codes 18 and 19, 28 and 29, 38 and 39, 48 and 49 are filter pairs. These filters are set by sending the desired arbitration code to each filter, 1 to 4. The filters work with the mask function. If the mask is set to zero in a position (don’t care) the value of the filter in that position doesn’t matter.

The filter arbitration field is set to match the aberration code of the incoming message. A match of the filter “and” the mask will pass the message to the PC. The X9 sets the filter On; X8 sets the filter Off, where X=1 through 4. Important: the receiver and each filter must have a different arbitration code. If the receiver and a filter are given the same arbitration code the controller may become erratic. It will need to be powered-off reset to recover from this error.

Byte

Byte

Function

Number

Value

 

1

01

Start of Frame

2

06

Control bytes

3

02

ID byte = J1708 message

4

YY

Function byte (18 or 19) (28 or 29) (38 or 39) (48 or 49)

5

XX

MSB of arbitration field (J1939 priority bits)

6

XX

MSB-1

7

XX

MSB-2

8

XX

LSB of arbitration field (J1939 source address)

9

00

Number of data bytes

10

CS

Checksum

To use the HDV100A3, the filter for a particular J1939 PGN the following procedure must be followed.

1. Turn off the “Receive” function by sending (01, 02, 02, 00, 00, 05).

24

HDV100A3 Command & Response Manual-1306cr

B&B Electronics --

707 Dayton Rd.

-- PO Box 1040 -- Ottawa, IL 61350

PH (815) 433-5100 --

FAX (815) 433-5104

Image 28
Contents HDV100A3 Command Response Protocol Page Table of Contents Do Not Transmit Any Messages to the network Intelligent Mode Verification IntroductionIntelligent Mode Command Protocol Intelligent Mode Message StructureSOF Control Field StructureFormatting the Control Bytes Command Acknowledgement Detailed Description of General Function CodesRS-232 Baud Rate Setup HDV100A3 Command & Response Manual-1306cr Setting Baud 1, Baud Baud Rate Setup Table Byte Byte Function Number Value Hex Baud Rate ExampleUB3 Byte Function Number Value Reply from HDV100A3Function code 20 = stop time stamping Master Reset Command Vendor InformationReceiving Data from the J1708 Bus J1708 CommandsByte Byte Value Byte Function Number Hex Function code 10 hex stop receive Transmitting Data to the J1708 Bus Priority Byte Value Binary Value Hex ValueID bytes 9 = transmit OK Set Filter Active Byte Function Number Value J1708 Message FilterSet Filter Off Byte Function Number Value Broadcast Message DataByte 4 Values Byte 6 Priority ValuesJ1939 Commands Start Receive on J1939 Bus Stop Receive on J1939 BusArbitration Field Y1, Y2, Y3, Y4 Message received from the HDV will be formatted as follows Transmit Data to J1939 Bus MSB-1MSB-2 Set MaskSet Filter 1 to HDV100A3 Command & Response Manual-1306cr J1939 Header Worksheet Error Codes DEC HEX