Device control record

The device control record contains configuration parameters for controlling some external devices and the operation of some receiver options. The number of bytes contained in the record and the length of the record are determined by the device type entry.

The following table shows the additional records provided when the device type record is included with Command Packet 64h.

Device type

Byte

Item

Type

Value

Notes

All

0

RECORD TYPE

1 (Char)

09h

Device Control record

1

RECORD LENGTH

1 (Char)

02h or 0Dh

Number of bytes in record, excluding bytes 0 and 1

2

DEVICE TYPE

1 (Char)

01h, 02h or 07h

01h = Event Marker
02h = 1PPS (one pulse-per-second) output
07h = CAN device

1PPS Output only

 

 

3

1PPS CONTROL

1 (Char)

00h or 01h

Enables or disables 1PPS output; when byte 2 is set to 02h

00h = disabled
01h = enabled

4

POSITIVE OR NEGATIVE TRIGGER EDGE

1 (Char)

00h or 01h

00h = Positive Trigger Edge
01h = Negative Trigger Edge

5

Always on

1 (Char)

00h or 01h

00h = On only when time is valid.
01h = Always on. A pulse will be output even if time has not been set or after satellite tracking has been lost and the clock is no longer believed to be accurate.

6

ADJUST 1PPS WIDTH

1 (Char)

00h or 01h

00h = Use default 8000 nanoseconds width
01h = Use the specified 1PPS Width (following)

7–10

1PPS WIDTH

uint32

160 ns – 10485600 ns

1PPS width in nanoseconds

Event Marker only

 

 

 

3

EVENT CONTROL

1 (Char)

00h or 01h

Enables or disables event marker; when byte 2 is set to 01h

00h = disabled
01h = enabled

4

EVENT 1 TRIGGER SENSE

1 (Char)

00h or 01h

00h = Positive Trigger Edge
01h = Negative Trigger Edge

5

EVENT 2 CONTROL

1 (Char)

00h or 01h

00h = disabled
01h = enabled

6

EVENT 2 TRIGGER SENSE

1 (Char)

00h or 01h

00h = Positive Trigger Edge
01h = Negative Trigger Edge

CAN Device only

3

CAN Port

1 (Char)

00h or 01h

CAN port (zero-based)

 

4

Bus Speed

1 (Char)

00h, 01h or 02h

00h = 250 kB/s
01h = 125 kB/s
02h = 500 kB/s

 

5

J1939 Local Address

1 (Char)

??h

Default: DAh

 

6

RESERVED

1 (Char)

00h

 

 

7

RESERVED

1 (Char)

00h