background image

 

 

 

Product User Manual 

CANET-8E-U 

High-Performance Eight-Channel Ethernet to CAN Converter 
 

 

 
 
 
 

User Manual

 

UM01010101  V1.03 

Date: 2020/11/17 

 

 

Category 

Contents 

Keywords

 

CAN-bus Ethernet Eight-Channel CAN 

Description

 

The CANET-8E-U high-performance eight-channel 

Ethernet to CAN converter is a derivative product on the 

new generation hardware and software platform, which 

improves the communication flow and system reliability. 

 

©2021 Guangzhou ZLG Electronics Technology Co.,Ltd.

 

Summary of Contents for CANET-8E-U

Page 1: ... Category Contents Keywords CAN bus Ethernet Eight Channel CAN Description The CANET 8E U high performance eight channel Ethernet to CAN converter is a derivative product on the new generation hardware and software platform which improves the communication flow and system reliability 2021 Guangzhou ZLG Electronics Technology Co Ltd ...

Page 2: ...Manual Revision History Version Date Description V0 90 August 23 2017 Created V1 00 August 29 2017 Improved the document V1 01 October 9 2017 Fixed bugs V1 02 March 12 2019 Updated the document header and footer and Sales and Service Network content and added the Disclaimer content V1 03 November 17 2020 Added 1000M network port pin definition ...

Page 3: ...DIP Switch 8 2 6 CAN Communication Interface 9 2 7 Signal Indicators 10 3 Hardware Connection 11 4 Working Modes 12 4 1 TCP Server Mode 12 4 2 TCP Client Mode 13 4 3 UDP Mode 14 5 Quick Instructions 15 5 1 Default Settings of the Device IP Address 15 5 2 Obtaining the Device IP Address 15 5 3 PC and Device Network Segment Detection 17 5 3 1 Windows98 ME Network Settings 17 5 3 2 Windows 2000 XP Ne...

Page 4: ...viding the Secondary Development Guidance for the Host Computer 42 7 1 Preliminary Preparation for CAN Card Interface Function Development 42 7 2 Interface Library Function Usage Process 44 8 Appendix 45 8 1 CANET 8E U Working Port Data Conversion Format 45 8 2 CANET 8E U Data Conversion Format of TCP Notification Port in CAN Port State 47 9 Disclaimer 48 ...

Page 5: ...hich allows you to easily interconnect CAN bus network and Ethernet and further expand the scope of CAN bus network The CANET 8E U is an industrial grade product and works in the temperature range of 40 C to 85 C It has 100M 1000M adaptive Ethernet interface The highest baud rate of CAN port communication is 1 Mbps It has various working modes such as TCP Server TCP Client and UDP Each CAN port su...

Page 6: ...tablished reliably Manage one CAN port while satisfying six groups of users In UDP mode each CAN port supports six groups of target IP segments Multiple users can manage a CAN device at the same time Supported protocols include ETHERNET ARP IP ICMP UDP DHCP DNS and TCP Compatible with SOCKET working methods TCP Server TCP Client UDP The writing of the host computer communication software follows t...

Page 7: ...dards Test Voltage Test Result Remarks Power interface Electrostatic test IEC61000 4 2 6kV A Contact discharge 8kV Air discharge Group pulse test IEC61000 4 4 2kV A Capacitive coupling Surge test IEC61000 4 5 1kV A Differential mode 2kV A Common mode Ethernet interface Electrostatic test IEC61000 4 2 6kV A Contact discharge 8kV Air discharge CAN interface Electrostatic test IEC61000 4 2 6kV A Cont...

Page 8: ...gh Performance Four Channel CANFD Bus to Ethernet Converter User Manual 2021 Guangzhou ZLG Electronics Technology Co Ltd 4 User Manual Operating ambient temperature Tamb 40 C 85 C C Storage temperature Tstg 40 C 85 C C ...

Page 9: ...ctronics Technology Co Ltd 5 User Manual 1 4 Mechanical Dimensions To install CANET 8E U refer to the appearance and mechanical dimensions unit mm provided in Figure 1 2 The figure specifies the length width height and part of the mechanical structure of the product Figure 1 2 CANET 8E U installation dimensions ...

Page 10: ...nel CANFD Bus to Ethernet Converter User Manual 2021 Guangzhou ZLG Electronics Technology Co Ltd 6 User Manual 2 Hardware Interfaces This chapter describes the hardware interfaces of CANET 8E U 2 1 Appearance Figure 2 1 CANET 8E U appearance ...

Page 11: ...ply and GND is connected to the negative pole of the power supply If the power is fully connected the PWR indicator will remain red The power port of CANET 8E U also has a ground terminal which is used to connect to the ground for static electricity or surge discharge Figure 2 2 Power interface signals 2 3 Ethernet Interface CANET 8E U has two Ethernet RJ45 ports as shown in Figure 2 3 Table 2 1 l...

Page 12: ...hm termination resistors The CANET 8E U interface card adopts CTM8251KT transceiver If other nodes on the network use different transceivers the terminal resistance must be calculated separately The function of the CAN bus terminal resistor Improve the anti interference ability to ensure that the bus quickly enters the recessive state Improve signal quality CANET 8E U uses a mechanical switch to s...

Page 13: ... socket Table 2 3 lists the DB9 pin definitions Table 2 3 DB9 pin socket pin signal definitions of CANET 8E U Pin Signal Description Function 1 NC Unused 2 CAN_L CAN_L signal cable 3 CGND Reference ground 4 NC Unused 5 CAN_SHIELD Shielded cable 6 CGND Reference ground 7 CAN_H CAN_H signal cable 8 NC Unused 9 NC Unused In some applications some CAN bus interfaces are OPEN 5 interfaces and CANET 8E ...

Page 14: ...us indicators to indicate the operating status of the channel Table 2 5 describes the indicators Table 2 5 Indicators of the CANET 8E U interface card Indicator Status Description PWR Red Device powered on SYS Off CANET device initialization has not completed Green flashing The CANET device is initialized and is running properly USE Green on No meaning STA Off The corresponding channel has no mess...

Page 15: ...re Connection In general the CANET 8E U can be used to bridge CAN_Bus and Ethernet which interconnects your CAN_Bus and Ethernet and allows PCs to control the devices on the your CAN_Bus network through the Ethernet Figure 3 1 shows a typical application Figure 3 1 Typical application of the CANET device Simple tests can be performed using the CANTest software ...

Page 16: ...ode Figure 4 1 TCP Sever mode communication In TCP Server mode CANET 8E U will not actively connect to other devices It always waits for the connection of the client TCP Client and can perform two way data communication after establishing a TCP connection with the client Figure 4 1 shows the communication establishment process Tip In this mode the client connects to the CANET 8E U device over the ...

Page 17: ...r based on the preset connection conditions After establishing a TCP connection with the TCP server two way data communication can be carried out 错误 未找到引用源 shows the communication establishment process Tip In this mode the TCP server IP address is determined by destination IP see Table 6 1 the TCP server port is determined by destination port see Table 6 1 There are six groups of valid Destination...

Page 18: ...ver because UDP is a simple communication method it will not increase too much additional communication volume and can provide a higher communication speed than the TCP method to ensure the real time transmission of data packets In fact when the network environment is simple and the network communication load is not too large the UDP working method is not error prone The devices working in this mo...

Page 19: ...router otherwise the CANET 8E U cannot be assigned with an IP address 5 1 Default Settings of the Device IP Address The default IP address of CANET 8E U is 192 168 0 178 5 2 Obtaining the Device IP Address When you forget the IP address of the device or the device uses the DHCP protocol to obtain the IP address automatically you can obtain the current IP address of the device by using the ZNetCom ...

Page 20: ... User Manual 2021 Guangzhou ZLG Electronics Technology Co Ltd 16 User Manual Figure 5 1 ZNetCom software running interface Click The interface shown in Figure 5 2 appears and you can learn the IP address of the device Figure 5 2 Searching a device by using the ZNetCom software ...

Page 21: ...ce is on the same network segment as the user s PC according to the process shown in Figure 5 3 If you are on the same network segment you do not need to read the following content about the PC network settings If different the following PC network settings are very important for you Figure 5 3 Checking whether the IP address of the CANET device and the PC are on the same network segment The follo...

Page 22: ...ties of TCP IP on the Configuration page Probably you will see more than one TCP IP Select the TCP IP property of the network card connecting the CANET device The interface appears as shown in Figure 5 5 Figure 5 5 TCP IP properties Select Specify IP Address on the IP Address page and enter the IP address 192 168 0 55 and the subnet mask 255 255 255 0 Click OK on this page and restart the PC as pr...

Page 23: ...and the IP address of the CANET device is the default IP address 192 168 0 178 In the operating system right click My Network Neighborhood The Network Connections window is displayed Select the local area connection icon Note The connection is a CANET device network connection If the user has multiple network cards there may be multiple local area connections right click the local area connection ...

Page 24: ...the IP Address R column The window shown in Figure 5 9 reappears Figure 5 9 Adding an IP address Enter the content and press the Add button Press OK Now you can communicate with the CANET device 2 Modify the local IP address In the operating system click Start Settings Control Panel on the taskbar or directly open Control Panel in My Computer double click Network and Dial up Connections or Network...

Page 25: ...tocol TCP IP view its Properties The page shown in Figure 5 10 appears Select Use the following IP address and enter the IP address 192 168 0 55 the subnet mask 255 255 255 0 and the default gateway 192 168 0 1 the DNS part can be left blank Click OK on this page and OK on the Local Area Connection Properties page and wait until the system is configured Figure 5 10 TCP IP Properties window ...

Page 26: ...wisted pair CANH is connected CANL is connected connect the USBCAN II by using a USB cable connect power to the device Run the CANtest software on the PC as shown in Figure 5 11 The CANtest test software can be downloaded from the delivered CD ROM or the www zlg cn Figure 5 11 Software used to test communication The following communication operations are based on the premise that the parameters ha...

Page 27: ...f the device appears The IP address of the device has been changed to 192 168 7 190 using the ZNETCOM software and the working port is 4001 Therefore enter 192 168 7 190 and 4001 in the IP address and port number of the device as shown in Figure 5 14 Figure 5 13 Selecting a device type Figure 5 14 Setting device parameters Click the OK and start CAN button or click OK Click Start on the data opera...

Page 28: ...ology Co Ltd 24 User Manual Figure 5 15 Starting CANET 8E U Click the CANtest software again to select a device This time we choose USBCAN2 as shown in Figure 5 16 Select the Open Device menu in the Device Operation main menu The parameter setting interface appears as shown in Figure 5 17 Figure 5 16 Selecting a device type ...

Page 29: ...efault values for other parameters After you click OK the main interface is displayed On the main interface click the Start CAN button as shown in Figure 5 18 to start the corresponding CAN port All preparations are made Next you can realize the communication between CANET and USBCAN II Figure 5 18 Starting the USBCAN card On the tab interface of any CANtest software click the Send button You can ...

Page 30: ...gzhou ZLG Electronics Technology Co Ltd 26 User Manual Figure 5 19 Demonstrating two way communication After you have an intuitive understanding of the CANET device you can continue to understand the following content which will help you master how to configure the CANET device as your CANET device ...

Page 31: ...ge the device configuration parameters and upgrade the device firmware by using the ZNetCom software 6 1 Installing Configuration Software Search for ZNetCom at the ZLG Electronics official website www zlg cn to download the latest version Double click the unzipped EXE file The welcome window shown in Figure 6 1 appears Click Next Figure 6 1 Welcome interface The window shown in Figure 6 2 is disp...

Page 32: ... path After the installation is complete the prompt window for successful installation as shown in Figure 6 3 appears Click Finish to exit the installation software Figure 6 3 Installation complete The configuration software is installed Check whether the CANET device and the PC network card have been connected over the matching network cable 6 2 Obtaining Device Configurations Run the ZNetCom sof...

Page 33: ...search for CANET devices connected to the PC as shown in Figure 6 5 In the search window we can see the searched device and the corresponding MAC address and IP address The search window closes automatically after 10 seconds You can also click the Stop button to close it Figure 6 5 Searching the device by using the ZNetCom software After the search is completed the searched devices appear in the d...

Page 34: ...ation properties Double click the device item in the device list or after selecting the device item click in the toolbar or in the property bar The Get Device Information dialog box appears as shown in Figure 6 7 Figure 6 7 Getting configuration data When the Get Device Information dialog box disappears you can see the CANET device configurations as shown in Figure 6 8 from the property column ...

Page 35: ...igurations by using the ZNetCom software the device configuration password the default value is 88888 is required to submit the change successfully After you modify the device configurations in the property column enter the device configuration password in the current password click to complete the device configuration modification 6 4 Configuring Parameters Table 6 1 describes the default setting...

Page 36: ...ou select Yes Pass word opera tion New password None If Whether to change the password is No the password cannot be changed Used to enter a new password The password contains a maximum of 9 characters For the character range see the description in the Current Password column Confirm the new password None If Whether to change the password is No the password cannot be changed Used to confirm the new...

Page 37: ...N port config uratio ns Heartbeat time 10 ms 200 The values that can be filled are 0 and 100 65525 This item is meaningful only when the TCP protocol is used for communication When the TCP connection is established a heartbeat packet non application data will not be forwarded to the working port will be sent every time interval filled in this item The CANET 8E U will disconnect the connection if t...

Page 38: ...h CAN frame is sent as a separate Ethernet packet and the real time performance is the best at this time but the network load is the highest If the number of sub packet frames is set to 50 the channel traffic is the largest and the network load is the smallest Packet time interval ms 1 The value ranges from 1 to 254 When the CAN port does not receive a new data frame within the time defined by the...

Page 39: ... limit of the extended frame 000000000 HEX CAN send buffer number 10 frames 65535 CAN interface transmit buffer size The default value is 65535x10 frames You can set the buffer size to adjust the balance between the real time performance of the CAN port and the large capacity buffer Because the speed of Ethernet is much higher than the transmission speed of CAN the CAN needs to buffer transmission...

Page 40: ... is 6 segments When working in UDP mode this item is used to define the number of IP segments where the network device communicating with the corresponding CAN port is located The maximum value is 6 segments Destination port 1 8001 8004 Available values are 1 to 65535 Only valid in TCP Client and UDP working modes Used to define the port of the network device that communicates with the CANET devic...

Page 41: ...can be a domain name End address 1 192 168 0 55 Only valid in TCP Client and UDP working modes Used to define the end IP address in the IP address segment If there is only one destination address the end address can be the same as the start address Note If the IP address segment is filled in the end address multiple network devices will communicate with CANET 8E U at the same time The first three ...

Page 42: ...help users modify the configurations of CANET equipment in batches the ZNetCom software provides the function of importing exporting configurations The Import Export function button is located on the property column as shown in Figure 6 9 Figure 6 9 Device configurations import export 6 5 1 Saving Settings Click In the Save As dialog box as shown in Figure 6 10 select the save path enter the file ...

Page 43: ...g device configurations 6 6 Upgrading Firmware CANET series devices support local firmware upgrade When you upgrade the CANET device by using the ZNetCom software the PC and the CANET device must be on the same network segment refer to 错误 未找到引用源 The firmware upgrade procedure is as follows In the device list column of ZNetCom software select the device to be upgraded in the list item and right cli...

Page 44: ... User Manual 2021 Guangzhou ZLG Electronics Technology Co Ltd 40 User Manual Figure 6 12 Firmware Upgrade menu Click Upgrade Firmware On the firmware upgrade interface shown in Figure 6 13 enter the password the default password is 88888 select the upgrade file and click Open ...

Page 45: ...LG Electronics Technology Co Ltd 41 User Manual Figure 6 13 Firmware upgrade interface Click The device starts firmware upgrade After about 1 minute the firmware can be upgraded as shown in Figure 6 14 Wait about 30 seconds until the system is initialized and starts Figure 6 14 Firmware upgrade completed ...

Page 46: ...en using the Socket function If the second method is used the received data format is shown in Figure 7 2 For the same data the Socket link will only display 13 bytes of data for the specific meaning see Section 8 1 follow the rules to write a program for analysis If you choose the first method ZLG Electronics provides 32 bit and 64 bit CAN card application programming interface functions to suppo...

Page 47: ...gy Co Ltd 43 User Manual The CAN interface card secondary development interface function library provides 32 bit and 64 bit versions including a kerneldlls folder and a ControlCAN dll file The CANET 8E U upper computer routine provides related demonstration codes which helps you learn the calling process of interface functions ...

Page 48: ...结构体 VCI_CAN_OBJ CAN帧结构体 VCI_INIT_CONFIG 板卡初始化结构体 VCI_CAN_STATUS CAN状态结构体 CHGDESIPANDPORT CANET通讯结构体 VCI_FILTER_RECORD 滤波结构体 VCI_OpenDevice 打开设备 VCI_Init 初始化某一路CAN VCI_StartCAN 启动某一路CAN VCI_ResetCAN 复位CAN VCI_GetReceiveNum 读接收缓冲区帧数 VCI_Receive 读取CAN帧 VCI_Transmit 发送CAN帧 VCI_CloseDevice 关闭设备 VCI_GetReference 读特殊设置信息 VCI_ReadBoardInfo 读设备信息 VCI_ReadErrInfo 读错误信息 VCI_SetReference 写特殊设置信息 VCI_ReadCANSt...

Page 49: ...帧信息 长度1个字节 用于标识该CAN帧的一些信息 如类型 长度等 FF RTR 保留 保留 D3 D2 D1 D0 Bit7 Bit0 FF 标准帧和扩展帧的标识 1为扩展帧 0为标准帧 RTR 远程帧和数据帧的标识 1为远程帧 0为数据帧 保留值为0 不可写入1 D3 D0 标识该CAN帧的数据长度 帧ID 长度4个字节 标准帧有效位是11位 扩展帧有效位是29位 12h 34h 56h 78h 高字节 低字节 如上为扩展帧ID号 0x12345678的表示方式 00h 00h 03h FFh 高字节 低字节 如上为标帧ID号 0x3FF的表示方式 帧数据 长度8个字节 有效长度由帧信息的D3 D0的值决定 11h 22h 33h 44h DATA1 DATA8 55h 66h 77h 88h 如上为8个字节有效数据 的表示方式 11h 22h 33h 44h DATA1 DATA8 ...

Page 50: ...ames on the PC the number of CAN frames contained in each UDP frame cannot be greater than 50 frames It is recommended that the sending speed of UDP frames should not exceed 400 packets per second There is another condition If the user has 400 packets of UDP frames per second and each UDP frame contains 50 CAN frames you can calculate that it is equivalent to 20 000 CAN frames per second Even with...

Page 51: ...02h Ethernet receive buffer is about to overflow 0 2s 03h Ethernet receive buffer has overflowed 0 0 5s 04h The CAN controller sends an error alarm send error counter 96 Number of occurrences 2s 05h The CAN controller receives an error alarm receive error counter 96 Number of occurrences 2s 06h CAN controller transmit error passive transmit error counter 127 Number of occurrences 2s 07h CAN contro...

Page 52: ... 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 guarantee the applicability of this document at any time ZLG Electronics shall reserve the right to update this manual without prior notice To get the latest version please visit the official website of...

Page 53: ...onverter User Manual 2021 Guangzhou ZLG Electronics Technology Co Ltd 49 User Manual Dreams come true with professionalism and dedication Guangzhou ZLG Electronics Co Ltd For more details please visit www zlg cn Welcome to call the national service hotline 400 888 4005 ...

Reviews: