background image

CANFDNET-400U

 

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

 

                                                 

         

©2021 Guangzhou ZLG Microelectronics Technology Corp.,Ltd.

 

 

 

     

16 

User Manual

 
 

4. Conversion Modes 

CANFDCOM-100IE  converter  is  an  intelligent  protocol  converter  that  supports 

conversion between serial port and CAN and conversion between serial port and CANFD. 

Before use, you need to set the CAN type to be converted to the normal CAN or CANFD. 

The  converter  provides  four  conversion  modes,  including  transparent  conversion, 

transparent  conversion  with  flags,  format  conversion,  and  Modbus  conversion.  The 

parameters  can  be  selected  and  set  during  converter  configuration.  Note:  In  the  same 

conversion mode, the CAN type is different, and the conversion method will change. For 

example,  in  "transparent  conversion",  for  ordinary  CAN,  the  serial  port  receives  a 

maximum  of  eight  bytes  and  must  be  converted  into  a  CAN  message.  For  CANFD,  a 

maximum of 64 bytes of data can be received and converted into CANFD messages. 

"Transparent conversion" means that the converter just converts the bus data of one 

format  to  the  data  bus  of  another  format  without  appending  or  modifying  the  data.  This 

realizes the exchange of data format without changing the data content. The converter is 

transparent  to  the  bus  at  both  ends.  This  method  will  not  increase  the  user's 

communication burden, but can convert the data as it is in real time, and can undertake 

the transmission of data with a large flow. 

"

Transparent  conversion  with  flags

"  is  a  special  transparent  conversion,  with  no 

protocol  attached.  This  conversion  method  is  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 

serial  frame  into  the  identification  field  of  the  CAN  (CANFD)  message.  The  starting 

position  and  length  of  the  serial  frame  "address"  in  the  serial  frame  can  be  configured. 

Therefore,  in  this  way,  the  converter  can  adapt  to  the  user's  custom  protocol  to  the 

greatest extent. 

"

Format  conversion

"  is  one  of  the  simplest  usage  patterns.  The  data  is  in  a  fixed 

length. The fixed length of CAN is 13 bytes, and the fixed length of CANFD is 69 bytes. 

That is, when the CAN type is set to ordinary CAN, the fixed serial frame data of 13 bytes 

corresponds to a CAN message. When it is CANFD, the fixed 69-byte serial frame data 

corresponds to one CANFD message. The fixed serial port frame content includes frame 

information  (1  byte)  +  ID  (4  bytes)  +  data  (8  bytes  for  CAN,  64  bytes  for  CANFD).  By 

correctly configuring the frame information (the data of the first byte), when the CAN type 

is ordinary CAN, standard frames, extended frames and even remote frames of CAN can 

be  flexibly  sent.  When  it  is  CANFD,  it  can  send  CANFD  standard  frame  and  extended 

frame.  Details  of  standard  frames,  extended  frames  and  even  remote  frames  can  be 

obtained by correctly parsing fixed-byte serial frames. 

"

Modbus  conversion

"  refers  to  the  conversion  between  the  UART  data  of  the 

Modbus protocol and the CAN data. The Modbus protocol is a standard application layer 

protocol, which is widely used in various industrial control scenarios. The protocol is open, 

real-time, and has a good communication verification mechanism. It is ideal for scenarios 

with  high  communication  reliability  requirements.  The  converter  uses  the  standard 

Содержание 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...

Отзывы: