ZLG CANET-8E-U User Manual

High-performance eight-channel ethernet to can converter

Advertisement

Quick Links

CANET-8E-U
High-Performance Eight-Channel Ethernet to CAN Converter
User Manual
UM01010101 V1.03
Date: 2020/11/17
Product User Manual
Category
Contents
Keywords
CAN-bus Ethernet Eight-Channel CAN
The CANET-8E-U high-performance eight-channel
Ethernet to CAN converter is a derivative product on the
Description
new generation hardware and software platform, which
improves the communication flow and system reliability.
©2021 Guangzhou ZLG Electronics Technology Co.,Ltd.

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the CANET-8E-U and is the answer not in the manual?

Questions and answers

Summary of Contents for ZLG CANET-8E-U

  • Page 1 Keywords CAN-bus Ethernet Eight-Channel CAN The CANET-8E-U high-performance eight-channel Ethernet to CAN converter is a derivative product on the Description new generation hardware and software platform, which improves the communication flow and system reliability. ©2021 Guangzhou ZLG Electronics Technology Co.,Ltd.
  • Page 2 October 9, 2017 Fixed bugs Updated the document header and footer and "Sales and V1.02 March 12, 2019 Service Network" content and added the "Disclaimer" content V1.03 November 17, 2020 Added 1000M network port pin definition ©2021 Guangzhou ZLG Electronics Technology Co.,Ltd.
  • Page 3: Table Of Contents

    5.3 PC and Device Network Segment Detection ............17 5.3.1 Windows98/ME Network Settings .............. 17 5.3.2 Windows 2000/XP Network Settings ............19 5.4 CANET-8E-U and USBCAN Interface Card Communication....... 22 6. ZNetCom Software Configuration .............. 27 6.1 Installing Configuration Software ................. 27 6.2 Obtaining Device Configurations ................
  • Page 4 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 ©2021 Guangzhou ZLG Electronics Technology Co.,Ltd.
  • Page 5: Functions

    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.
  • Page 6: Features

    The operating parameters can be configured using the Windows configuration software;  Provide Windows platform configuration software function library for free, including easy-to-use API function library, which helps users write their own configuration software;  Support local system firmware upgrade. ©2021 Guangzhou ZLG Electronics Technology Co.,Ltd.
  • Page 7: Specifications

    IEC61000-4-2 Air discharge indicators 1.3.5 Electrical Parameters Unless otherwise specified, the parameters listed in the following table refer to the value at Tamb=25° C. Parameter Name Symbol Rating Unit Power voltage 4000 Power consumption ©2021 Guangzhou ZLG Electronics Technology Co.,Ltd.
  • Page 8 CANFDNET-400U High-Performance Four-Channel CANFD Bus-to-Ethernet Converter User Manual User Manual Operating ambient temperature Tamb -40° C~85° C ° C Storage temperature Tstg -40° C~85° C ° C ©2021 Guangzhou ZLG Electronics Technology Co.,Ltd.
  • Page 9: Mechanical Dimensions

    High-Performance Four-Channel CANFD Bus-to-Ethernet Converter User Manual 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.
  • Page 10: Hardware Interfaces

    CANFDNET-400U High-Performance Four-Channel CANFD Bus-to-Ethernet Converter User Manual 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 ©2021 Guangzhou ZLG Electronics Technology Co.,Ltd.
  • Page 11: Power Interfaces

    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.
  • Page 12: Terminal Resistance Dip Switch

     Improve signal quality. CANET-8E-U uses a mechanical switch to select a terminal resistor. The DIP switch is at the bottom of the device, as shown in Table 2.2. The device's DIP switch is "ON" by default; that is, the default access terminal resistance is 120 ohm.
  • Page 13: Can Communication Interface

    2.6 CAN Communication Interface The commonly used electrical connectors for CAN-bus communication interface are: DB9 socket, OPEN5 socket, OPEN3 socket, etc. The CANET-8E-U interface card integrates 1 to 8 CAN channels, which can be used to connect CAN-bus network or devices equipped with CAN-bus interface.
  • Page 14: Signal Indicators

    User Manual 2.7 Signal Indicators The CANET-8E-U interface card has a power indicator PWR and a SYS indicator. Each corresponding channel has two CAN interface status indicators to indicate the operating status of the channel. Table 2.5 describes the indicators.
  • Page 15: Hardware Connection

    User Manual 3. Hardware 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.
  • Page 16: Working Modes

    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 "working port (see Table 6.1)" corresponding to the CAN port. ©2021 Guangzhou ZLG Electronics Technology Co.,Ltd.
  • Page 17: Tcp Client Mode

    4.2 TCP Client Mode Figure 4.2 TCP Client mode communication In TCP Client mode, the CANET-8E-U will actively connect to the preset TCP server. If the connection fails, the client continuously tries to establish a connection with the TCP server based on the preset connection conditions. After establishing a TCP connection with the TCP server, two-way data communication can be carried out.
  • Page 18: Udp Mode

    Tip: In this mode, CANET-8E-U uses "working port (see Table 6.1)" to receive UDP packets sent by user equipment; the data received by the CAN port of the CANET-8E-U device will be sent to the "destination port (see Table 6.1)" of six groups of valid "destination IP (see Table 6.1)".
  • Page 19: Quick Instructions

    High-Performance Four-Channel CANFD Bus-to-Ethernet Converter User Manual User Manual 5. Quick Instructions This chapter describes the basic usage of CANET-8E-U and the installation settings of related software and hardware. Before using the CANET device, learn about the network parameters such as the IP address of the device.
  • Page 20 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 ©2021 Guangzhou ZLG Electronics Technology Co.,Ltd.
  • Page 21: Pc And Device Network Segment Detection

    Windows98/ME Network Settings If you use Windows 98/ME, enter the operating system, click the "Start" "Settings"  "Control Panel" on the taskbar, and double-click the "Network" icon. The interface shown in Figure 5.4 is displayed. ©2021 Guangzhou ZLG Electronics Technology Co.,Ltd.
  • Page 22 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 prompted. ©2021 Guangzhou ZLG Electronics Technology Co.,Ltd.
  • Page 23: Windows 2000/Xp Network Settings

    Figure 5.6 appears. Figure 5.6 Network properties Select "Internet Protocol (TCP/IP)" under "This connection uses the following (D):" on the "General" page. Click Properties. The window shown in Figure 5.7 appears. ©2021 Guangzhou ZLG Electronics Technology Co.,Ltd.
  • Page 24 "Control Panel" in "My Computer"), double-click "Network and Dial-up Connections" (or "Network Connections" ). Select "Local Area Connection" corresponding to the network card connected to the CANET device, right-click and choose "Properties". ©2021 Guangzhou ZLG Electronics Technology Co.,Ltd.
  • Page 25 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 ©2021 Guangzhou ZLG Electronics Technology Co.,Ltd.
  • Page 26: Canet-8E-U And Usbcan Interface Card Communication

    Figure 5.11 Software used to test communication The following communication operations are based on the premise that the parameters have been configured for CANET-8E-U. The device IP address is changed to the IP address of the same network segment of the test computer, 192.168.7.190. The CAN0 port is configured as TCP Server, and the working port is 4001.
  • Page 27 Click the "OK and start CAN" button or click "OK". Click "Start" on the data operation interface (as shown in Figure 5.15). If the device is connected properly, no message appears; if the connection is abnormal, an error message appears. ©2021 Guangzhou ZLG Electronics Technology Co.,Ltd.
  • Page 28 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 ©2021 Guangzhou ZLG Electronics Technology Co.,Ltd.
  • Page 29 Figure 5.18 Starting the USBCAN card On the tab interface of any CANtest software, click the "Send" button. You can receive the data you just sent on another CANtest software tab page, as shown in Figure 5.19. ©2021 Guangzhou ZLG Electronics Technology Co.,Ltd.
  • Page 30 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. ©2021 Guangzhou ZLG Electronics Technology Co.,Ltd.
  • Page 31: Znetcom Software Configuration

    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.
  • Page 32: Obtaining Device Configurations

    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 software. The interface shown in Figure 6.4 appears. ©2021 Guangzhou ZLG Electronics Technology Co.,Ltd.
  • Page 33 [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 device list of the ZNetCom software, as shown in Figure 6.6. ©2021 Guangzhou ZLG Electronics Technology Co.,Ltd.
  • Page 34 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. ©2021 Guangzhou ZLG Electronics Technology Co.,Ltd.
  • Page 35: Modifying Device Configurations

    After you modify the device configurations in the property column, enter the device configuration password in the current password, click complete the device configuration modification. 6.4 Configuring Parameters Table 6.1 describes the default settings for the CANET-8E-U device. Table 6.1 "Property Column" description ©2021 Guangzhou ZLG Electronics Technology Co.,Ltd.
  • Page 36 Device IP an address on a network assigned by a network device 192.168.0.178 address (such as a PC and CANET-8E-U). It is unique on the same network. The subnet mask is very important to the network. Device subnet Within the same network, the IP address and subnet addre 255.255.255.0...
  • Page 37 (10 ms) every time interval filled in this item. The CANET-8E-U will disconnect the connection if the other party does not respond to three consecutive heartbeat packets. If you fill in "0", the "heartbeat packet"...
  • Page 38 Buffer will be sent after the CANBuffer connection is established. If it is cleared when TCP connection is selected, the saved CAN buffer will be cleared when the TCP connection is established. ©2021 Guangzhou ZLG Electronics Technology Co.,Ltd.
  • Page 39 Policy when the CAN interface transmit buffer is full: Discard new CAN transmit data when Discard new data when the buffer is full and discard old buffer policy buffer is full data when the buffer is full ©2021 Guangzhou ZLG Electronics Technology Co.,Ltd.
  • Page 40 CANFDNET-400U High-Performance Four-Channel CANFD Bus-to-Ethernet Converter User Manual User Manual When CANET-8E-U works in TCP Sever, each CAN port can have a maximum of 255 TCP connections by default without configuration; Number of When working in TCP Client mode, this item is used to...
  • Page 41 End address 1 192.168.0.55 address, multiple network devices will communicate with CANET-8E-U at the same time. The first three bytes of the IP address segment must conform to the subnet mask 1 limit, and the fourth byte of the ending address must be greater than or equal to the fourth byte of the starting IP address.
  • Page 42: Saving Restored Settings

    [Save]. Device configurations will be saved in XML format. Figure 6.10 Saving device configurations 6.5.2 Restoring Settings Click . In the "Open" dialog box, select the saved device configuration file, ©2021 Guangzhou ZLG Electronics Technology Co.,Ltd.
  • Page 43: Upgrading Firmware

     In the device list column of ZNetCom software, select the device to be upgraded in the list item, and right-click the mouse. The menu items appear, as shown in Figure 6.12. ©2021 Guangzhou ZLG Electronics Technology Co.,Ltd.
  • Page 44 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". ©2021 Guangzhou ZLG Electronics Technology Co.,Ltd.
  • Page 45 . 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 ©2021 Guangzhou ZLG Electronics Technology Co.,Ltd.
  • Page 46: Providing The Secondary Development Guidance For The Host Computer

    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 support most mainstream development environments;...
  • Page 47 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: Interface Library Function Usage Process

    VCI_ERR_INFO VCI_FILTER_RECORD CHGDESIPANDPORT CANET通讯结构体 错误信息结构体 滤波结构体 VCI_OpenDevice 打开设备 VCI_Init 初始化某一路CAN VCI_GetReference VCI_SetReference 读特殊设置信息 写特殊设置信息 VCI_ReadBoardInfo VCI_ReadCANStatus 读某一路CAN状态 读设备信息 VCI_ReadErrInfo VCI_ClearBuffer 读错误信息 清空接收缓冲区 VCI_StartCAN 启动某一路CAN VCI_ResetCAN 复位CAN VCI_GetReceiveNum 读接收缓冲区帧数 VCI_Transmit VCI_Receive 发送CAN帧 读取CAN帧 VCI_CloseDevice 关闭设备 ©2021 Guangzhou ZLG Electronics Technology Co.,Ltd.
  • Page 49: Appendix

    CAN帧 CAN帧 … 1个CAN帧包含13个字节 帧信息:长度1个字节,用于标识该CAN帧的一些信息,如类型、长度等 Bit7 Bit0 保留 保留 FF: 标准帧和扩展帧的标识,1为扩展帧,0为标准帧。 RTR: 远程帧和数据帧的标识,1为远程帧,0为数据帧。 保留值为0,不可写入1。 D3~D0 :标识该CAN帧的数据长度。 帧ID:长度4个字节,标准帧有效位是11位,扩展帧有效位是29位。 高字节 低字节 高字节 低字节 如上为扩展帧ID号 如上为标帧ID号 0x12345678的表示方式 0x3FF的表示方式 帧数据:长度8个字节,有效长度由帧信息的D3~D0的值决定。 DATA1 DATA8 如上为8个字节有效数据 的表示方式 DATA1 DATA8 如上为6个字节有效数据 的表示方式 ©2021 Guangzhou ZLG Electronics Technology Co.,Ltd.
  • Page 50 Even with a baud rate of 1,000 kbps, the CAN cannot send it so fast. Therefore, it is recommended that you should not send more than 400 UDP frames per second, and should not convert more than 4000 frames per second into CAN frames. ©2021 Guangzhou ZLG Electronics Technology Co.,Ltd.
  • Page 51: State

    CANFDNET-400U High-Performance Four-Channel CANFD Bus-to-Ethernet Converter User Manual User Manual 8.2 CANET-8E-U Data Conversion Format of TCP Notification Port in CAN Port State 某路CAN对应的TCP通知端口被连接后,如果此路CAN发生错误, 通知端口将向主机定时发出状态警告,TCP包数据段格式如下: CMD Time1 Time2 Time3 Time4 55h 固定格式。包头AAh 00h,包尾55h 状态码 Time1 Time2 Time3 Time4 错误计数(32bit),高字节在前,即Time1为高字节 Status meaning (both are CANET devices)
  • Page 52: Disclaimer

    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 ZLG Electronics regularly or contact ZLG Electronics. Thank you!
  • Page 53 CANFDNET-400U High-Performance Four-Channel CANFD Bus-to-Ethernet Converter User Manual User Manual Dreams come true with professionalism and dedication. Guangzhou ZLG more details, Welcome call please visit national service hotline Electronics Co., Ltd. www.zlg.cn 400-888-4005 ©2021 Guangzhou ZLG Electronics Technology Co.,Ltd.

Table of Contents