EasyManua.ls Logo

Titan Electronics USB-2CAN-M - Transmitting a Standard CAN Frame; Transmitting a Standard Remote Request CAN Frame

Titan Electronics USB-2CAN-M
76 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
23
8.3.5 Transmitting a Standard CAN Frame
Transmitting a standard CAN frame (ID: 11 bit) over a CAN bus can be done with the
command tiiildddddd[CR]. The return value will be z[CR] or the normal error byte
(BELL). The command is only available when the CAN bus channel is open.
Command
Response
Function
tiiildddd…dd[CR] z[CR]
Transmits a standard CAN message (11 bit) over
the CAN bus
iii: Standard CAN frame (11 bit) identifier in hexadecimal format (000-7FF).
l: CAN data length (0-8) DLC, with the maximum value being 8 (8 bytes).
dd: Data byte value in hexadecimal format (00-FF). The number of bytes must be equal
to the data length field.
Example: t00231199FF[CR] will send a standard CAN frame with ID = 002h, DLC = 3,
Data = 11 99 FF.
8.3.6 Transmitting a Standard Remote Request CAN Frame
Transmitting a standard remote request CAN frame (ID: 11 bit) over a CAN bus can be
done with the command riiil[CR]. The return value will be z[CR] or the normal error
byte (BELL). The command is only available when the CAN bus channel is open.
Command
Response
Function
riiil[CR] z[CR]
Transmits a standard remote request (11 bit) over
the CAN bus
iii: Standard remote request CAN frame (11 bit) identifier in hexadecimal format (000-
7FF).
l: CAN data length to request (0-8) DLC, with the maximum value being 8 (8 bytes).
Example: r0023[CR] will send a standard remote request CAN frame with ID = 002h,
DLC = 3 and request 3 data bytes.

Table of Contents