Transparent Conversion With Flags; Frame Formats - ZLG CANFDNET-400U Product User Manual

Rs232/485/422-can fd-bus intelligent protocol converter
Hide thumbs Also See for CANFDNET-400U:
Table of Contents

Advertisement

CANFDNET-400U
High-performance Four-channel CANFD Bus-to-Ethernet Converter User Manual
converted to the first byte (0x38) in the serial frame, and the ID: 0x0123 in the CANFD
message is converted to the second byte (0x01) and the third byte (0x23) in the serial
frame in turn.. The data field of the CANFD message will be converted into the data part of
the serial frame without any modification.

4.2 Transparent Conversion with Flags

Transparent conversion with flags is a special transparent conversion. The ID
information of the CAN (CANFD) message is carried in the serial frame, and CAN
(CANFD) messages with different IDs can be sent as required. It helps users set up their
own network conveniently by using the converter, and use the self-defined application
protocol. This method automatically converts the ID information in the serial frame into the
frame ID of the CAN (CANFD) bus. Just tell the converter in the configuration that the ID
information is at the start and length of the serial frame. The converter extracts the frame
ID and fills it in the frame ID field of the CAN (CANFD) message during conversion as the
ID of the CAN (CANFD) message when the serial frame is forwarded. When the CAN
(CANFD) message is converted into a serial frame, the ID of the CAN (CANFD) message
is also converted into the corresponding position of the serial frame.
Note: In this conversion mode, the "CAN ID" of the "CAN parameter" item of the
configuration software is invalid, because the identifier (frame ID) sent at this time is filled
with the ID information data in the above-mentioned serial frame.
4.2.1

Frame Formats

1. Serial bus frame
In conversion with flags, the complete serial data frame must be obtained. The
converter uses the time interval between two frames as the frame division. In addition, the
interval can be set by the user. Figure 4.1 shows the frame format. The maximum length
of the serial frame is the length of the buffer: 5,000 bytes.
Figure 4.1 Serial frame time format (transparent conversion with flags)
The first data detected by the converter while the serial bus is idle is taken as the first
character of the received frame. During transmission, the time interval between characters
in the same frame must be less than the time interval between serial frames set by the
user.
After the converter receives a character, if no character is received within the time
interval between serial frames set by the user, the converter considers the frame
transmission to be over and takes this character as the last character of the frame. The
characters after the timeout do not belong to this frame, but to the next frame.
©2021 Guangzhou ZLG Microelectronics Technology Corp.,Ltd.
23
User Manual

Advertisement

Table of Contents
loading

Table of Contents