High-performance dual-can to fiber optic switch (86 pages)
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.
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.
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.
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.
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.
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.
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.
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.
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 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...
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.
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.
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.
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...
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.
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...
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 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)".
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.
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.
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.
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...
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.
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...
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 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.
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.
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.
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.
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...
Need help?
Do you have a question about the CANSwitch-AN2S2 and is the answer not in the manual?
Questions and answers