ZLG CANSwitch-AN2S2 User Manual

ZLG CANSwitch-AN2S2 User Manual

High-performance dual-can to ethernet switch
Table of Contents

Advertisement

Quick Links

CANSwitch-AN2S2 User Manual
High-Performance Dual-CAN to Ethernet Switch
User Manual
UM01010101 V1.03
Date: 2019/03/26
Product User Manual
Category
Contents
Keywords
Dual CAN Dual Ethernet Switch High Performance
The CANSwitch-AN2S2 high-performance dual-channel
CAN to Ethernet switch uses ZLG Electronics' advanced
Description
CAN bus technologies and operating system technologies.
It has two conversion modes: Hub and Converter. It is
unique in ensuring data integrity and real time.
©2021 Guangzhou ZLG Microelectronics Technology Corp.,Ltd.

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the CANSwitch-AN2S2 and is the answer not in the manual?

Questions and answers

Summary of Contents for ZLG CANSwitch-AN2S2

  • Page 1 Contents Keywords Dual CAN Dual Ethernet Switch High Performance The CANSwitch-AN2S2 high-performance dual-channel CAN to Ethernet switch uses ZLG Electronics' advanced Description CAN bus technologies and operating system technologies. It has two conversion modes: Hub and Converter. It is unique in ensuring data integrity and real time.
  • Page 2 Changed the company name and sales network information 2017 March 14, Updated the document header and footer and "Sales and Service Network" V1.02 2019 content, and added the "Disclaimer" content March 26, V1.03 Updated product images 2019 ©2021 Guangzhou ZLG Microelectronics Technology Corp.,Ltd.
  • Page 3: Table Of Contents

    4.2.3 PC and Device Network Segment Detection ........... 22 4.2.4 Adding the IP Address (Windows7 Used as an Example) ....... 22 4.2.5 Modifying the Local IP Address ..............25 TCP Server Mode .................... 25 4.3.1 System Block Diagram ................25 ©2021 Guangzhou ZLG Microelectronics Technology Corp.,Ltd.
  • Page 4 CANSwitch-AN2S2 High-Performance Dual-CAN to Ethernet Switch User Manual User Manual 4.3.2 Configuring the CANSwitch-AN2S2 Device ..........27 4.3.3 TCP&UDP Software Operation ..............27 4.3.4 CANTest Software Operation ..............30 4.3.5 Test Result ....................31 TCP Client Mode ..................... 34 4.4.1 System Block Diagram ................34 4.4.2 Configuring the CANSwitch-AN2S2 Device ..........
  • Page 5: Functions

    1.1 Overview The CANSwitch-AN2S2 is a high-performance industrial-grade Ethernet and CAN-bus data conversion device developed by Guangzhou ZLG Electronics Co., Ltd. It integrates two CAN-bus interfaces and two Ethernet interfaces, and provides a mature and stable TCP/IP protocol stack. It helps you easily interconnect CAN-bus network and Ethernet network, further expanding the scope of CAN-bus network.
  • Page 6: Powerful Hardware

    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 ©2021 Guangzhou ZLG Microelectronics Technology Corp.,Ltd.
  • Page 7: Product Specifications

    Signal cable: CAN0H, CAN0L, CAN1H, CAN1L; ⚫ Shielded wire: FGND; ⚫ Terminal resistance wiring: R-, R+; ⚫ Baud rate: 5 k-1000 kbps. 1.2.3 Power Interface ⚫ Round hole socket: positive inside and negative outside; ⚫ Terminal: OPEN2. ©2021 Guangzhou ZLG Microelectronics Technology Corp.,Ltd.
  • Page 8: Configuring The Interface

    Unless otherwise specified, the parameters listed in Table 1.1 refer to the values at Tamb=25° C. Table 1.1 Electrical parameters Parameter Name Symbol Rating Unit Power voltage +9~36V Power consumption 3350 ℃ Operating ambient Tamb -40℃~85℃ temperature ℃ Storage temperature Tstg -40℃~85℃ ©2021 Guangzhou ZLG Microelectronics Technology Corp.,Ltd.
  • Page 9: Mechanical Dimensions

    High-Performance Dual-CAN to Ethernet Switch User Manual User Manual 1.3 Mechanical Dimensions To install CANSwitch-AN2S2, see the appearance and mechanical dimensions (unit: mm) provided in Figure 1.3. The figure specifies the length, width, height, and part of the mechanical structure of the product.
  • Page 10: Hardware Interfaces

    High-Performance Dual-CAN to Ethernet Switch User Manual User Manual 2. Hardware Interfaces This section introduces the hardware interfaces of CANSwitch-AN2S2. 2.1 Appearance Figure 2.1 shows the front appearance of the product. Figure 2.2 and Figure 2.3 show the side appearance.
  • Page 11: Power Interface

    User Manual 2.2 Power Interface CANSwitch-AN2S2 uses a 9-36 V DC power supply that is easily available at the industrial site, and is equipped with two wiring ports. One is a round hole socket and the other is a terminal block. Both interfaces support positive and negative connections, with no need to confirm the positive and negative poles.
  • Page 12: Ethernet Interface

    Table 2.1 RJ45 pin definition Signal 2.6 CAN Port The CANSwitch-AN2S2 device has two CAN ports. Figure 2.8 shows its appearance. It has two indicators: CAN0 and CAN1. When a device is connected, when there is data communication; Table 2.2 describes the pin definition.
  • Page 13: Led Indicator

    Tip: The terminal resistance can be configured if R- and R+ are short-circuited with wires. 2.7 LED Indicator The CANSwitch-AN2S2 device has six indicators, PWR, SYS, LAN0, LAN1, CAN0, and CAN1, as shown in Figure 2.9. Figure 2.9 Indicators Table 2.3 describes the indicators.
  • Page 14: Quick Use In Hub Mode (Hub Mode)

    Hub mode. For details, see Section 2.4. 3.1.1 Configuring the Device Using the Serial Port CANSwitch-AN2S2 supports using the serial port to configure the device, as shown in Figure 3.1. The device can be configured as long as the dedicated RS232 configuration port is connected to the PC.
  • Page 15: Configuring The Device

    COM port must be selected correctly. See Figure 3.4. Figure 3.4 Searching for devices Note: For details about how to configure the device, see 5. ZNetCom software configuration. ©2021 Guangzhou ZLG Microelectronics Technology Corp.,Ltd.
  • Page 16 CAN1 port. The data of CAN1 port can only be forwarded to CAN0 port of device 2 and CAN1 port of device 2 Figure 3.5 Configuration of the first CANSwitch Figure 3.7. ©2021 Guangzhou ZLG Microelectronics Technology Corp.,Ltd.
  • Page 17 The baud rate should be 500K, which should be consistent with the CAN device connected to the CAN1 port. The data of CAN1 port can only be forwarded to all CAN buses Figure 3.6 Configuration of the second CANSwitch ©2021 Guangzhou ZLG Microelectronics Technology Corp.,Ltd.
  • Page 18: Cantest Software Operation

    3.4 CANTest Software Operation We need a device equipped with a CAN port to demonstrate how the CANSwitch-AN2S2 device realizes bidirectional transparent conversion of CAN network data and Ethernet data. Here, select the USBCAN interface card, which is convenient to...
  • Page 19 User Manual use. Its related information is available at http://www.zlg.cn. Note: For details about how to use the CANTest software, see ZLG Electronics CAN Test Software and Interface Function User Manual. First, connect the CANSwitch-AN2S2 device to the PC by using a network cable, and connect the CANSwitch-AN2S2 device to the USBCAN interface card by using a twisted pair cable (CANH is connected, and CANL is connected.
  • Page 20: Test Result

    On the tab page of any CANtest software, click the "Send" button. You can then receive the data you just sent on the tab page of another CANtest software. 3.5 Test Result Open all six CAN cards, as shown in Figure 3.12. ©2021 Guangzhou ZLG Microelectronics Technology Corp.,Ltd.
  • Page 21 The first CAN bus sends data, the second, fifth, and sixth CAN buses receive data, and the third and fourth CAN buses do not receive data, which conforms to the configuration of the first CANSwitch-AN2S2. See Figure 3.13. Figure 3.13 First CAN bus sending data...
  • Page 22 Figure 3.14 Second CAN bus sending data The third and fourth CAN buses send data, and all other CAN buses can receive data, which conforms with the configuration of the second CANSwitch-AN2S2. See Figure 3.15. Figure 3.15 Third and fourth CAN buses sending data...
  • Page 23 CANSwitch-AN2S2 High-Performance Dual-CAN to Ethernet Switch User Manual User Manual Figure 3.16 Fifth and sixth CAN buses sending data ©2021 Guangzhou ZLG Microelectronics Technology Corp.,Ltd.
  • Page 24: Quick Use In Converter Mode (Converter Mode)

    The device will beep twice if the configuration is successful. 4.1.1 Configuring the Device over the Serial Port CANSwitch-AN2S2 supports using the serial port to configure the device, as shown in Figure 4.1. The device can be configured as long as the dedicated RS232 configuration port is connected to the PC.
  • Page 25 The ZNetCom software is the configuration software of CANSwitch-AN2S2 device running on Windows. No matter what the current IP address of the CANSwitch-AN2S2 device is, you can obtain the current IP address of the CANSwitch-AN2S2 device by using ZNetCom software and configure it. The procedure for obtaining CANSwitch-AN2S2 device IP address using ZnetCom software is as follows: Connect the device to a 9-36 V DC power supply.
  • Page 26: Pc And Device Network Segment Detection

    4.2.3 PC and Device Network Segment Detection Before using the PC to communicate with the CANSwitch-AN2S2 device, ensure that there is an Ethernet card in the PC, and the PC and the CANSwitch-AN2S2 device must be on the same network segment.
  • Page 27 Sharing Center → to modify the advanced sharing settings. The Network Connections window is displayed. Select the local connection icon (Note: The connection is a CANSwitch-AN2S2 device network connection. If you have multiple network cards, there may be multiple local connections), right-click the local connection → properties. The window shown in Figure 4.6 appears.
  • Page 28 Click the "Add" button, as shown in Figure 4.9. Figure 4.9 TCP/IP settings Enter the IP address and subnet mask in this window. The IP address should be on the same network segment as CANSwitch-AN2S2, as shown in Figure 4.10. ©2021 Guangzhou ZLG Microelectronics Technology Corp.,Ltd.
  • Page 29: Modifying The Local Ip Address

    4.3 TCP Server Mode 4.3.1 System Block Diagram In TCP Server mode, CANSwitch-AN2S2 will not actively connect with 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.12 shows the process of establishing communication.
  • Page 30 High-Performance Dual-CAN to Ethernet Switch User Manual User Manual Figure 4.12 Communication in TCP Sever mode Tip: In this mode, the client connects to the CANSwitch-AN2S2 device over the "working port (see Table 5.2)" corresponding to the CAN port. ©2021 Guangzhou ZLG Microelectronics Technology Corp.,Ltd.
  • Page 31: Configuring The Canswitch-An2S2 Device

    CANSwitch-AN2S2 High-Performance Dual-CAN to Ethernet Switch User Manual User Manual 4.3.2 Configuring the CANSwitch-AN2S2 Device Figure 4.13 shows the configuration in TCP Server mode. sure submit configuration modifications The default password is 88888 The IP address configuration should be correct, and the PC and the device should be...
  • Page 32 Select TCP mode in Type, enter the IP address and the working port number of CANSwitch-AN2S2, and click Create. See Figure 4.16. Figure 4.16 Creating a connection Click Connect to connect the CANSwitch-AN2S2 device. See Figure 4.17. ©2021 Guangzhou ZLG Microelectronics Technology Corp.,Ltd.
  • Page 33 CANSwitch-AN2S2 High-Performance Dual-CAN to Ethernet Switch User Manual User Manual Figure 4.17 Opening connection When the triangle below the client mode turns green, the connection is successful. See Figure 4.18. Figure 4.18 Connection created ©2021 Guangzhou ZLG Microelectronics Technology Corp.,Ltd.
  • Page 34: Cantest Software Operation

    Choose the correct device. Select USBCAN-E-U here, as shown in Figure 4.20. Figure 4.20 Selecting a device Select the correct baud rate, click OK, and start the CAN, as shown in Figure 4.21. Figure 4.21 Starting the device ©2021 Guangzhou ZLG Microelectronics Technology Corp.,Ltd.
  • Page 35: Test Result

    After starting the device properly, the page appear, as shown in Figure 4.22. Figure 4.22 Device started For details about how to use the CANTest software, see the ZLG Electronics CAN Test Software and Interface Function User Manual. 4.3.5 Test Result Send a CAN frame whose ID is 00000000 and data is 0001020304050607 by using the CANTest software over USBCAN.
  • Page 36 Figure 4.24 PC receives data 1 The CAN frame with ID 00000009 and data 0001020304050607 is sent, and the ID is within the receiving range. The peer device can receive data correctly, as shown in Figure 4.25. ©2021 Guangzhou ZLG Microelectronics Technology Corp.,Ltd.
  • Page 37 The device has received the data, as shown in Figure 4.26. For the format of the received data, see Appendix A. Figure 4.26 PC receiving data 2 Use the TCP&UDP test tool to send CAN frames, as shown in Figure 4.26. For the data format, see Appendix A. ©2021 Guangzhou ZLG Microelectronics Technology Corp.,Ltd.
  • Page 38: Tcp Client Mode

    USBCAN can be received properly as shown in Figure 4.28. Figure 4.28 USBCAN receive data 1 4.4 TCP Client Mode 4.4.1 System Block Diagram In TCP Client mode, CANSwitch-AN2S2 actively connects to the preset TCP server. ©2021 Guangzhou ZLG Microelectronics Technology Corp.,Ltd.
  • Page 39 There are six groups of valid "Destination Port" and "Destination IP". The device will connect to the TCP server specified by the six groups of parameters in turn based on the preset number of connections until the connection is successful. ©2021 Guangzhou ZLG Microelectronics Technology Corp.,Ltd.
  • Page 40: Configuring The Canswitch-An2S2 Device

    CANSwitch-AN2S2 High-Performance Dual-CAN to Ethernet Switch User Manual User Manual 4.4.2 Configuring the CANSwitch-AN2S2 Device Figure 4.30 shows the configuration in TCP CLIENT mode. sure submit configuration modifications The default password is 88888 The IP address configuration should be correct, and the PC and the device should be...
  • Page 41 Figure 4.32 Creating a connection Click Start Server to start the service. See Figure 4.33. Figure 4.33 Opening a connection When the triangle under the server mode turns green, the server is created successfully. See Figure 4.34. ©2021 Guangzhou ZLG Microelectronics Technology Corp.,Ltd.
  • Page 42: Cantest Software Operation

    4.4.4 CANTest Software Operation Double-click the CANTest software icon to run the software, as shown in Figure 4.35. Figure 4.35 CANTest software Choose the correct device. Select USBCAN-E-U here, as shown in Figure 4.36. ©2021 Guangzhou ZLG Microelectronics Technology Corp.,Ltd.
  • Page 43 Select the correct baud rate, click OK, and start the CAN, as shown in Figure 4.37. Figure 4.37 Starting the device After starting the device properly, the page appear, as shown in Figure 4.38. ©2021 Guangzhou ZLG Microelectronics Technology Corp.,Ltd.
  • Page 44: Test Result

    High-Performance Dual-CAN to Ethernet Switch User Manual User Manual Figure 4.38 Device started For details about how to use the CANTest software, see the ZLG Electronics CAN Test Software and Interface Function User Manual. 4.4.5 Test Result Send a CAN frame whose ID is 00000000 and data is 0001020304050607 by using the CANTest software over USBCAN.
  • Page 45 The CAN frame with ID 00000011 and data 0001020304050607 is sent, and the ID is within the receiving range. The peer device can receive data correctly, as shown in Figure 4.41. Figure 4.41 USBCAN sending data 2 ©2021 Guangzhou ZLG Microelectronics Technology Corp.,Ltd.
  • Page 46 Because the preset frame ID filter only filters the frame ID sent from the CAN port to the Ethernet, and the frame ID sent from the Ethernet to the CAN port is not filtered, both ©2021 Guangzhou ZLG Microelectronics Technology Corp.,Ltd.
  • Page 47: Udp Mode

    UDP working method is not error prone. The devices working in this mode are equal, and there is no server and client. Figure 4.45 shows the communication process. Figure 4.45 UDP mode communication ©2021 Guangzhou ZLG Microelectronics Technology Corp.,Ltd.
  • Page 48 Tip: In this mode,CANSwitch-AN2S2 uses "working port (see Table 5.2)" to receive UDP packets sent by user equipment; the data received by the CAN port of the CANSwitch-AN2S2 device will be sent to the "destination port (see Table 5.2)" of six groups of valid "destination IP (see Table 5.2)".
  • Page 49: Configuring The Canswitch-An2S2 Device

    CANSwitch-AN2S2 High-Performance Dual-CAN to Ethernet Switch User Manual User Manual 4.5.2 Configuring the CANSwitch-AN2S2 Device Figure 4.46 shows the configuration in UDP mode. Be sure to submit the configuration modifications The default password is 88888 The IP address configuration should be correct,...
  • Page 50 Figure 4.48 Running the TCP&UDP test tool Select UDP mode in Type, enter the IP address and the working port number of CANSwitch-AN2S2, and local port, and click Create. See Figure 4.49. Figure 4.49 Creating a connection Click Connect to connect the CANSwitch-AN2S2 device. See Figure 4.50.
  • Page 51: Cantest Software Operation

    When the triangle below the client mode turns green, the connection is successful. See Figure 4.51. Figure 4.51 Connection created 4.5.4 CANTest Software Operation Double-click the CANTest software icon to run the software, as shown in Figure 4.52. ©2021 Guangzhou ZLG Microelectronics Technology Corp.,Ltd.
  • Page 52 Select the correct baud rate, click OK, and start the CAN, as shown in Figure 4.54. Figure 4.54 Starting the device After starting the device properly, the page appear, as shown in Figure 4.55. ©2021 Guangzhou ZLG Microelectronics Technology Corp.,Ltd.
  • Page 53: Test Result

    High-Performance Dual-CAN to Ethernet Switch User Manual User Manual Figure 4.55 Device started For details about how to use the CANTest software, see the ZLG Electronics CAN Test Software and Interface Function User Manual. 4.5.5 Test Result Send a CAN frame whose ID is 00000000 and data is 0001020304050607 by using the CANTest software over USBCAN, as shown in Figure 4.56.
  • Page 54 Figure 4.58. Figure 4.58 USBCAN sending data 2 The device has received the data, as shown in Figure 4.59. For the format of the received data, see Appendix A. ©2021 Guangzhou ZLG Microelectronics Technology Corp.,Ltd.
  • Page 55 Use the TCP&UDP test tool to send CAN frames, as shown in Figure 4.60. For the data format, see Appendix A. Figure 4.60 PC sending data 1 Since there is no preset frame ID filtering, both frames of data USBCAN can be received properly, as shown in Figure 4.61. ©2021 Guangzhou ZLG Microelectronics Technology Corp.,Ltd.
  • Page 56 CANSwitch-AN2S2 High-Performance Dual-CAN to Ethernet Switch User Manual User Manual Figure 4.61 USBCAN receiving data 1 ©2021 Guangzhou ZLG Microelectronics Technology Corp.,Ltd.
  • Page 57: Znetcom Software Configuration

    5. ZNetCom Software Configuration The ZNetCom software is dedicated configuration software for CANSwitch-AN2S2 device running on Windows. You can obtain the IP address of the CANSwitch-AN2S2 device, view and change the device configuration parameters, and upgrade the device firmware by using the ZNetCom software.
  • Page 58 5.4 appears, select Yes. Figure 5.4 Installing the runtime library After the installation is complete, the window for successful installation as shown in Figure 5.5 will appear. Click [Finish] to exit the installation software. ©2021 Guangzhou ZLG Microelectronics Technology Corp.,Ltd.
  • Page 59: Obtaining Device Configurations

    5.2 Obtaining Device Configurations Before obtaining the configuration information, check whether the RS232 configuration serial port has been connected to the computer or the CANSwitch-AN2S2 device and the PC network card have been connected with a network cable. Run the ZNetCom software (if the system is later than Windows 7, right-click it and run as administrator).
  • Page 60 Figure 5.7 Searching configuration Click OK. The ZNetCom configuration software starts to search for the CANSwitch-AN2S2 device connected to the PC, as shown in Figure 5.8. In the search window, we can see the searched device, and the corresponding MAC address and IP address.
  • Page 61 ZNetCom software, as shown in Figure 5.9. Device list Figure 5.9 Obtaining CANSwitch-AN2S2 device configuration 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 5.10.
  • Page 62 Figure 5.10 Obtaining configuration data When the "Get Device Information" dialog box disappears, you can see the CANSwitch-AN2S2 device configurations as shown in Figure 5.11 and Figure 5.12 from the property column. Figure 5.11 CANSwitch-AN2S2 device configuration hub (Hub) mode...
  • Page 63 CANSwitch-AN2S2 High-Performance Dual-CAN to Ethernet Switch User Manual User Manual Figure 5.12 CANSwitch-AN2S2 device configuration information converter (Converter) mode ©2021 Guangzhou ZLG Microelectronics Technology Corp.,Ltd.
  • Page 64: Modifying Device Configurations

    User Manual 5.3 Modifying Device Configurations When you modify the CANSwitch-AN2S2 device configurations by using the ZNetCom software, the device configuration password (the default value is "88888") is required. 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.
  • Page 65: Configuring Parameters

    High-Performance Dual-CAN to Ethernet Switch User Manual User Manual 5.4 Configuring Parameters 5.4.1 Configuration in Hub Mode (Hub Mode) Table 5.1 describes the default settings in the CANSwitch-AN2S2 device hub mode. Table 5.1 Description of "Property column" items in hub mode Category Name...
  • Page 66 ID set by the user Lower limit of the 00(HEX) together determine the range of the standard frame standard frame ID to be received. ©2021 Guangzhou ZLG Microelectronics Technology Corp.,Ltd.
  • Page 67: Configuration In Converter Mode (Converter Mode)

    A to Z, 0 to 9. Modifying this value is very CANSwitch-AN2S2 name useful users identify multiple CANSwitch-AN2S2 devices on the same network. Before changing other items, you must enter Current the correct password. The password contains a “88888” password...
  • Page 68 Device IP 192.168.0.178 by a network device (such as a PC and address CANSwitch-AN2S2). It is unique on the same network. address The subnet mask is very important to the informati network. Within the same network, the IP address and subnet mask are the same value.
  • Page 69 Static acquisition means that you directly informati enters the "IP address", "Subnet mask", and "Gateway". Dynamic acquisition means that operation the CANSwitch-AN2S2 module uses the DHCP How to get an Static acquisition protocol to obtain the IP address, subnet mask IP address...
  • Page 70 UDP. When TCP is used, a connection is established before data can be transferred. TCP Sever mode is to wait for client connection; 2. TCP Client is the CANSwitch-AN2S2 device actively connecting to the destination IP and port. Among the two CANSwitch-AN2S2s, one How TCP...
  • Page 71 Listen only: The CAN port works in listening CAN working mode and does not respond; Normal mode Self-test: port works self-transmitting and self-receiving mode. This is used to check whether if it can properly and whether it is damaged. ©2021 Guangzhou ZLG Microelectronics Technology Corp.,Ltd.
  • Page 72 (unit: ms), and the number of packet interval (ms) frames has not been reached, all data frames that have been received and have not been sent will be encapsulated into an Ethernet packet and sent to the network port. ©2021 Guangzhou ZLG Microelectronics Technology Corp.,Ltd.
  • Page 73 1FFFFFFF(HEX) limit values of the received extended frame ID frame set by the user together determine the range of the extended frame ID to be received. Lower limit of the extended 00(HEX) frame ©2021 Guangzhou ZLG Microelectronics Technology Corp.,Ltd.
  • Page 74 When CANSwitch-AN2S2 works in TCP Sever, each CAN port can have a maximum of 200 connections default without configuration;...
  • Page 75 CANSwitch-AN2S2 device. Only the network data sent through this Destination 8001/8002 port can be received by the CANSwitch-AN2S2 port 1 device, and the data frame received by the CAN port of the CANSwitch-AN2S2 device will also be sent to this port through Ethernet. The default CAN0 destination port 1 is 8001, and the default CAN1 destination port 1 is 8002.
  • Page 76 Except for the working port, destination port and destination IP address, the default parameter values of CAN1 are exactly the same; the meaning of each parameter is the same as that of each parameter of CAN0. ©2021 Guangzhou ZLG Microelectronics Technology Corp.,Ltd.
  • Page 77: Saving Restored Settings

    User Manual 5.5 Saving Restored Settings To help users modify the configurations of the CANSwitch-AN2S2 device 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 5.14.
  • Page 78: Upgrading The Firmware

    CANSwitch-AN2S2 series devices support local firmware upgrade. When you upgrade the CANSwitch-AN2S2 device by using the ZNetCom software, the PC and the CANSwitch-AN2S2 device must be on the same network segment (refer to 4.2 PC and device network segment detection). 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-click the mouse.
  • Page 79 . The device starts firmware upgrade, as shown in Figure 5.19. Figure 5.19 Firmware upgrade in progress After about 1 minute, the firmware can be upgraded, as shown in Figure 5.20. Wait about 30 seconds until the system is initialized and starts. ©2021 Guangzhou ZLG Microelectronics Technology Corp.,Ltd.
  • Page 80 High-Performance Dual-CAN to Ethernet Switch User Manual User Manual Figure 5.20 Firmware upgraded If the upgrade fails due to an accident (such as power failure and network cable disconnection), power on the device, and perform search and upgrade again. ©2021 Guangzhou ZLG Microelectronics Technology Corp.,Ltd.
  • Page 81: Disclaimer

    Ltd. ("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 guarantee the applicability of this document at any time. ZLG Electronics shall reserve the right to update this manual without prior notice.
  • Page 82: Appendix A Lan Port Working Port Data Conversion Format

    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 Microelectronics Technology Corp.,Ltd.
  • Page 83 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 Microelectronics Technology Corp.,Ltd.
  • Page 84: Appendix B Data Conversion Format Of Tcp Notification Port In Can Port State

    CAN Port State 某路CAN对应的TCP通知端口被连接后,如果此路CAN发生错误, 通知端口将向主机定时发出状态警告,TCP包数据段格式如下: CMD Time1 Time2 Time3 Time4 55h 固定格式。包头AAh 00h,包尾55h 状态码 Time1 Time2 Time3 Time4 错误计数(32bit),高字节在前,即Time1为高字节 Status Description (All Are CANSwitch-AN2S2 Devices) Time Error Notification Value Count Value Period (s) Ethernet send buffer is about to overflow Ethernet send buffer has overflowed 0.5s...
  • Page 85 CANSwitch-AN2S2 High-Performance Dual-CAN to Ethernet Switch User Manual User Manual CAN controller bus error (as long as there is an error) Number occurrences Other errors Number occurrences ©2021 Guangzhou ZLG Microelectronics Technology Corp.,Ltd.
  • Page 86 CANSwitch-AN2S2 High-Performance Dual-CAN to Ethernet Switch 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 Microelectronics Technology Corp.,Ltd.

Table of Contents