USERCANSTATUS

Status of commands sent to a CAN port

Platform:

OEM719, OEM729, OEM7700, OEM7720, PwrPak7, CPT7, CPT7700, SMART7

The USERCANSTATUS log reports the status of a previously executed USERCANOPEN, USERCANCLOSE or USERCANWRITE command. There is one log output for each command that is executed.

For the USERCANWRITE command, the Number of Frames field of the USERCANSTATUS log indicates the number of frames placed into the TX FIFO buffer, 0 or 1.

Message ID: 2315

Recommended Input:

log USERCANSTATUS onnew

Abbreviated ASCII Examples:

USERCANWRITE CAN1 STANDARD 0x234 8 ABCDEF0123456789 23 234578

<USERCANSTATUS COM1 0 84.0 FINESTEERING 1994 257885.895 02000000 e3f6 32768

<     CAN1 WRITE 234578 OK 1

Field

Field Type

Description

Format

Binary Bytes

Binary Offset

1

Log header

USERCANSTATUS header

For information about log headers, see ASCII, Abbreviated ASCII or Binary.

H

0

2

Port ID

The CAN port Identifier. See Table: CAN Port ID.

Enum

4

H

3

Operation

Operation performed. See Table: Operation Mode.

Enum

4

H+4

4

TransactionID

This is the copy of Transaction ID provided to the command.

HexUlong

4

H+8

5

Status

Status message. See Table: CAN Status Message.

Enum

4

H+12

6

Number of Frames

For a WRITE operation, this is the number of frames placed in the TX FIFO (0 - 1).

For a READ operation, this is the number of frames available in RX FIFO (0 - 32).

Ulong

4

H+16

CAN Port ID

Binary

ASCII

Description

1

CAN1

CAN port 1

2

CAN2

CAN port 2

Operation Mode

Binary

ASCII

Description

0

NONE

No operation

1

OPEN

Open operation

2

CLOSE

Close operation

3

READ

Read operation

4

WRITE

Write operation

CAN Status Message

Binary

ASCII

Description

0

OK

CAN operation is successful.

1

FAIL

CAN operation failed.

2

PortAlreadOpened

Attempt to open a CAN port that is already open

3

PortAlreadyClosed

Attempt to close a CAN port that is already closed

4

TX FIFO full

Unable to write a frame to the TX FIFO as the buffer is full

5

RX FIFO empty

No frame available to read from the RX FIFO