background image

CANFDNET-400U

 

High-performance Four-channel CANFD Bus-to-Ethernet Converter User Manual 

 

                                                 

         

©2021 Guangzhou ZLG Microelectronics Technology Corp.,Ltd.

 

 

 

     

31 

User Manual

 
 

indicates a remote frame. It can only be 0 for CANFD; 

 

EDL:  CAN  and  CANFD  identifier.  0  indicates  the  CAN,  while  1  is  indicates  the 

CANFD; 

 

BRS:  baud  rate  switching  enable  flag.  0  indicates  no  rate  conversion,  while  1 

indicates variable rate conversion, only valid for CANFD; this bit should be 0 in CAN; 

 

DLC3-DLC0: identifies the data length of the CAN (CANFD) message. 

 

The length of the 

frame ID

 is 4 bytes. The valid bits of the standard frame are 11 bits, 

and the valid bits of the extended frame are 29 bits. 

Table 4.21 Frame ID example 

Standard frame ID 0x12345678 

 

Standard frame ID 0x3FF 

0x12 

0x34 

0x56 

0x78 

 

0x00 

0x00 

0x03 

0xFF 

 

When the 

frame data

 is converted in CAN format, the length is fixed to 8 bytes. In 

CANFD  format  conversion,  the  length  is  fixed  to  64  bytes.  The  effective  length  is 

determined by the value of DLC3-DLC0. When the valid data is less than the fixed length, 

add 0 to the fixed length. As listed in Table 4.22, it is the representation of 6-byte valid data 

during CAN format conversion. The last two bytes are filled with 0s.

 

In this mode, pay attention to the serial data format in strict accordance with the fixed 

byte  format.  Table  4.23  and  Table  4.24  shows  the  reference  examples  for  CAN  mode 

conversion. It is similar in CANFD mode, except that the frame data is fixed 64 bytes. In 

the  conversion,  first  ensure  correct  frame  information.  The  data  length must  be  correct; 

otherwise, no conversion will occur. 

Each  frame  of  CAN  format  conversion  is  fixed  to  13  bytes,  while  each  frame  of 

CANFD format conversion is fixed to 69 bytes. If it is insufficient, it must be filled with 0. 

The serial data satisfying the fixed byte format in the same serial data frame corresponds 

to a CAN (CANFD) message. Serial data frames that are less than fixed bytes will not be 

converted. Therefore, make sure that the serial data frame being converted is aligned with 

the corresponding fixed byte. If the number of fixed bytes is insufficient, a timeout of about 

100  ms  will  occur.  If  fixed  bytes  of  data  have  not  been  received  after  the  timeout,  the 

previously received data will be cleared. 

In the conversion of serial frames to CAN (CANFD) messages, if the data format of a 

certain  segment  of  fixed  byte  in  the  serial  data  frame  aligned  with  fixed  bytes  (fixed  13 

bytes  for  CAN  and  69  bytes  for  CANFD)  is  not  standard,  fixed  byte  lengths  will  not  be 

converted, and subsequent data will be converted. If some CAN messages are missing 

after  conversion,  check  whether  the  fixed-byte-length  serial  data  format  of  the 

corresponding message is not the standard format. 

Table 4.22 Data frame 

CAN format conversion 6-byte valid data representation 

0x11 

0x22 

0x33 

0x44 

0x55 

0x66 

0x00 

0x00 

Table 4.23 Example of converting CAN formats to extension frames 

The following example is a CAN extended data frame. The ID is 0x12345678, which 

Содержание CANFDNET-400U

Страница 1: ...converter User Manual UM01010101 V1 02 Date 2019 08 20 Category Contents Keywords RS232 CAN conversion baud rate Description This converter quickly connects RS232 485 422 communication equipment to t...

Страница 2: ...Microelectronics Technology Corp Ltd i User Manual Revision History Version Date Reason V1 00 April 11 2018 Created V1 01 March 15 2019 Updated the document header and footer and Sales and Service Net...

Страница 3: ...arameters 11 3 2 3 CAN Parameters 11 3 2 4 Filter Parameters 14 3 2 5 Button Description 14 4 Conversion Modes 16 4 1 Transparent Conversion 17 4 1 1 Frame Formats 17 4 1 2 Conversion Methods 17 4 1 3...

Страница 4: ...bus communication interface and support user defined communication baud rate CANFDCOM 100IE integrates one 3 wire RS 232 communication interface one 2 wire RS 485 communication interface and one 4 wir...

Страница 5: ...o Ethernet Converter User Manual 2021 Guangzhou ZLG Microelectronics Technology Corp Ltd 2 User Manual Low speed CAN FD network data acquisition data analysis CAN FD bus application system such as the...

Страница 6: ...electronics Technology Corp Ltd 3 User Manual 2 Hardware 2 1 Appearance Figure 2 1 shows the appearance Figure 2 1 CANFDCOM 100IE appearance 2 2 Interfaces The CANFDCOM 100IE converter has three user...

Страница 7: ...D RS232 receive 5 RS232_GND RS232 isolated ground 1 4 6 7 8 9 NC Dangling OPEN8 terminal 1 2 3 4 5 6 7 8 1 485A_R 485A 422 receive positive phase signal 2 485B_R 485B 422 receive inverted signal 3 485...

Страница 8: ...ble in the configured state Only in the configuration state can the host computer or AT commands be used for parameter configuration 2 5 CAN Bus Connection The physical layer mainly transmits inter de...

Страница 9: ...istor needs to be connected to the network terminal node to eliminate signal reflection on the bus and avoid signal distortion Figure 2 2 shows the high speed CAN network topology The device has a bui...

Страница 10: ...CANFDNET 400U High performance Four channel CANFD Bus to Ethernet Converter User Manual 2021 Guangzhou ZLG Microelectronics Technology Corp Ltd 7 User Manual Figure 2 3 Mechanical dimensions...

Страница 11: ...hods require the repeater to enter configuration mode 3 1 Entering Configuration Mode To put the converter into configuration mode a dedicated configuration switch is set as shown in Figure 3 1 Set th...

Страница 12: ...electable conversion modes transparent conversion transparent conversion with flags format conversion and Modbus mode Conversion direction Bidirectional The converter converts the data of the serial b...

Страница 13: ...e standard frame is 11 bits and the ID of the extended frame is 29 bits Time interval ms between serial frames This parameter is used only in transparent conversion and transparent conversion with fla...

Страница 14: ...e is too long it may cause too much data accumulation at the serial port which results in overflow and loss 3 2 2 Serial Port Parameters As shown in Figure 3 3 this option mainly sets serial port rela...

Страница 15: ...has an ID parameter so this parameter is invalid Terminal resistance enable This parameter enables the built in CAN bus 120 ohm terminal resistance of the device Baud rate includes the arbitration do...

Страница 16: ...4 Select the arbitration domain baud rate for the appropriate sampling point If the value is selected the blue background color appears indicating that the value is selected as shown in 5 Select the d...

Страница 17: ...ing is enabled but there is no filtering item in the filtering table all packets will be filtered at this time The maximum number of filter items can be set to 64 Example As shown in Figure 3 6 the ac...

Страница 18: ...el CANFD Bus to Ethernet Converter User Manual 2021 Guangzhou ZLG Microelectronics Technology Corp Ltd 15 User Manual Save configuration After the parameters are set click this button to write the con...

Страница 19: ...based on the common characteristics of common serial frames and CAN CANFD messages so that the two bus types can easily form the same communication network This method can convert the address in the...

Страница 20: ...4 1 Transparent Conversion In transparent conversion mode the converter receives the data on one side of the bus and immediately converts it and sends it to the other side of the bus In this way the d...

Страница 21: ...ntil the data is converted Table 4 2 Converting serial frames to CAN messages transparent mode CAN message standard frame Frame information User Profile Serial frame Frame ID User Profile Address Data...

Страница 22: ...rmation User Profile Serial frame Frame ID User Profile Address Data User Profile 0 Data 1 Data field Data 1 1 Data 2 Data 2 2 Data 3 Data 3 3 Data 4 Data 4 45 Data 46 Data 46 46 Data 47 Data 47 47 Da...

Страница 23: ...61 Data 61 Data 62 Data 62 Data 63 Data 63 Data 64 Data 64 4 1 3 Conversion Examples 1 Serial frames to CAN messages Suppose the CAN type is ordinary CAN the frame information is standard frame the f...

Страница 24: ...S bit corresponding to baud rate acceleration is 1 and the data in the serial frame part will be converted into CANFD message without any modification Because there are 70 bytes of data and the maximu...

Страница 25: ...te 0x23 in the serial frame The data field of the CAN message will be converted into the data part of the serial frame without any modification 4 Converting CANFD messages to serial frames The CAN typ...

Страница 26: ...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 mod...

Страница 27: ...sage is filled with 0 Other data are converted sequentially If a frame of CAN CANFD message has not finished converting the serial frame data the same ID is still used as the frame ID of the CAN CANFD...

Страница 28: ...Data 1 CANFD frame ID1 Frame ID 1 Data 1 CANFD frame ID1 Data 1 CANFD frame ID1 Data 1 CANFD frame ID1 Address 1 Data 2 CANFD frame ID0 Frame ID0 Data 2 CANFD frame ID0 Data 2 CANFD frame ID0 Data 2 C...

Страница 29: ...extended frame should meet the pre configured frame format requirements otherwise the communication may fail Table 4 12 Converting CAN standard frame messages into serial frames transparent conversio...

Страница 30: ...x05 0x0D Address 8 0x08 0x06 0x0E Address 9 0x09 0x07 Address 10 0x0A 0x08 Address 11 0x0B 0x09 Address 12 0x0C 0x0A Address 13 0x0D Address 14 0x0E As shown in Table 4 14 because the pre configured C...

Страница 31: ...CANFD messages is 4 bytes Because the starting address in the configuration serial frame is 2 and the length is 3 three bytes are taken continuously from the address 2 in the serial frame which are 0...

Страница 32: ...will be sequentially converted to the unfilled part of the serial frame without any modification 4 Converting CANFD messages to serial frames Assume that the start address of the configured CANFD ide...

Страница 33: ...rmation frame ID frame data Note In this conversion mode the preset CAN ID is invalid because the identifier frame ID sent at this time is filled with the frame ID data in the above mentioned format s...

Страница 34: ...similar in CANFD mode except that the frame data is fixed 64 bytes In the conversion first ensure correct frame information The data length must be correct otherwise no conversion will occur Each fra...

Страница 35: ...easy to use segmented communication format is developed to realize Modbus communication The role of the converter is still protocol verification and forwarding It supports Modbus protocol transmissio...

Страница 36: ...X X ID 28 ID 24 Frame ID 2 ID 23 ID 16 Frame ID1 ID 15 ID 8 Frame ID0 ID 7 ID 0 Data 1 Segment marker Segment type Segment counter Data 2 Character 1 Data 3 Character 2 Data 4 Character 3 Data 5 Chara...

Страница 37: ...st segment If the segment counter contains the value 0 this is The first segment in a series of segments 1 Middle segment This is an intermediate segment 2 Last segment Mark the last segment Segment c...

Страница 38: ...ata 7 Data 8 Table 4 29 CANFD communication frame mutual conversion format Modbus mode Modbus RTU frame CANFD message CANFD message 1 CANFD message x Address field Frame information Frame information...

Страница 39: ...he segmentation protocol the group of data is discarded without conversion 4 4 3 Conversion Examples When the CAN mode is configured and the frame type is set to extended frame as shown in Table 4 30...

Страница 40: ...ata 6 0x02 CRC field 0xED Data 7 0x04 0x69 Data 8 0x00 Table 4 31 Example of mutual conversion format of the CAN extended frame communication frame independent message in Modbus mode Modbus RTU frame...

Страница 41: ...iguration state and the CFG indicator is on The converter can be configured Figure 5 1 Entering the configuration mode 5 1 2 Connecting the Converter by Using the Configuration Tool In the configurati...

Страница 42: ...so display the Device connection verification failed message and check whether the serial port on the selected PC is connected 5 1 3 Setting the Save Parameters After the connection is successful conf...

Страница 43: ...d the baud rate of the serial port must be the same Otherwise the communication fails and the indicator flashes red Conduct data conversion tests Use the serial port debugging software to send data by...

Страница 44: ...irmware bin file by using the host computer configuration tool The procedure is as follows Step 1 Click the firmware upgrade button below the host computer configuration tool The firmware upgrade wind...

Страница 45: ...s flashing fast the device stays in Bootloader mode Turn the switch to ON within this second At this time the time spent in Bootloader mode will increase by 1 second In this 1 second turn the switch b...

Страница 46: ...ZLG Electronics will try to present detailed and accurate product information in this manual However due to the effectiveness of this manual within a particular period of time ZLG Electronics does not...

Страница 47: ...ter User Manual 2021 Guangzhou ZLG Microelectronics Technology Corp Ltd 44 User Manual Dreams come true with professionalism and dedication Guangzhou ZLG Electronics Co Ltd For more details please vis...

Отзывы: