ZLG CANSwitch-AN2S2 Скачать руководство пользователя страница 79

CANSwitch-AN2S2 

High-Performance Dual-CAN to Ethernet Switch User Manual 

       

                                                   

©2021 Guangzhou ZLG Microelectronics Technology Corp.,Ltd.

 

75 

User Manual

 
 

 

 

Figure 5.18 Firmware upgrade

 

3.  Click 

. The device starts firmware upgrade, as shown in Figure 5.19.

 

 

Figure 5.19 Firmware upgrade in progress

 

4.  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.

 

Содержание CANSwitch-AN2S2

Страница 1: ...CAN Dual Ethernet Switch High Performance Description The CANSwitch AN2S2 high performance dual channel CAN to Ethernet switch uses ZLG Electronics advanced CAN bus technologies and operating system...

Страница 2: ...i User Manual Revision History Version Date Reason V1 00 December 6 2015 Created V1 01 August 11 2017 Changed the company name and sales network information V1 02 March 14 2019 Updated the document he...

Страница 3: ...net Interface 8 2 6 CAN Port 8 2 7 LED Indicator 9 3 Quick Use in Hub Mode Hub Mode 10 3 1 Device Configuration Method 10 3 1 1 Configuring the Device Using the Serial Port 10 3 1 2 Configuring the De...

Страница 4: ...Diagram 43 4 5 2 Configuring the CANSwitch AN2S2 Device 45 4 5 3 TCP UDP Software Operation 45 4 5 4 CANTest Software Operation 47 4 5 5 Test Result 49 5 ZNetCom Software Configuration 53 5 1 Install...

Страница 5: ...work It can also be configured in hub mode for device cascading The CANSwitch AN2S2 is an industrial grade product and works in a temperature range of 40 to 85 It has two 10M 100M 1000M adaptive Ether...

Страница 6: ...u can select the ID range to be received so as to filter unwanted CAN frames Each CAN port can be configured into different working modes which can be flexibly used in various fields Each CAN port ope...

Страница 7: ...red into different working modes which can be flexibly used in various fields Each CAN port opens a diagnostic port and the host computer can obtain the error status of the corresponding CAN port by c...

Страница 8: ...tware ZNetCom 1 2 6 EMC Characteristics Electrostatic Discharge Immunity ESD Contact discharge 8KV Class A Air discharge 15KV Class A Electrical fast transient EFT burst immunity Power port 2 kV Class...

Страница 9: ...logy Corp Ltd 5 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 heigh...

Страница 10: ...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 ap...

Страница 11: ...Interface As shown in Figure 2 5 this interface is specially used to configure the CANSwitch AN2S2 device Figure 2 5 Configuring ports 2 4 Reset Button Default Restoration Button and Function Switch...

Страница 12: ...always on the Active indicator is yellow indicating whether there is data transmission If the Ethernet has data transmission the Active indicator flashes Figure 2 7 Ethernet interface and indicators F...

Страница 13: ...dicators PWR SYS LAN0 LAN1 CAN0 and CAN1 as shown in Figure 2 9 Figure 2 9 Indicators Table 2 3 describes the indicators Table 2 3 Description of LED indicators LED Description PWR The power indicator...

Страница 14: ...vice can be configured as long as the dedicated RS232 configuration port is connected to the PC Figure 3 1 Dedicated configuration port 3 1 2 Configuring the Device Using the Network Port CANSwitch AN...

Страница 15: ...ub mode 3 3 Configuring the Device Search for devices CANSwitch supports two ways to search for devices search by Ethernet and search by serial port when searching by Ethernet you can search and confi...

Страница 16: ...tworking Select 3 as the number of networking devices a maximum of 32 devices are supported for cascading this device is the first networking device so select 1 as the device number The baud rate shou...

Страница 17: ...re supported for cascading this device is the second networking device so select 2 as the device number Be sure to submit the configuration modifications The default password is 88888 The baud rate sh...

Страница 18: ...igure 3 7 Configuration of the third CANSwitch Be sure to submit the configuration modifications The default password is 88888 A total of three devices are used for networking Select 3 as the number o...

Страница 19: ...Configure a 120 ohm terminal resistance Then connect the USBCAN interface card with the PC by using a USB cable Finally connect power to the USBCAN interface card and the CANSwitch AN2S2 device Then...

Страница 20: ...ters If the device is connected properly there will be no prompt If the connection is abnormal an error message appears Figure 3 11 Starting USBCAN E U successfully On the tab page of any CANtest soft...

Страница 21: ...nd 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 sendin...

Страница 22: ...s 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 fifth a...

Страница 23: ...CANSwitch AN2S2 High Performance Dual CAN to Ethernet Switch User Manual 2021 Guangzhou ZLG Microelectronics Technology Corp Ltd 19 User Manual Figure 3 16 Fifth and sixth CAN buses sending data...

Страница 24: ...pports configuration using the LAN port As shown in Figure 4 2 just connect one of the network ports to the PC Figure 4 2 LAN port 4 2 IP Address Operation 4 2 1 Default IP Address The default IP addr...

Страница 25: ...ce IP address using ZnetCom software is as follows 1 Connect the device to a 9 36 V DC power supply Use a crossover cable to connect the device s LAN port to the PC s network port 2 Install ZNetCom ve...

Страница 26: ...as the user s PC according to the process shown in Figure 4 5 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 follow...

Страница 27: ...vanced 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 car...

Страница 28: ...General page displays the current IP address subnet mask and default gateway and other information Click Advanced as shown in Figure 4 8 Figure 4 8 TCP Ipv4 Properties Click the Add button as shown i...

Страница 29: ...displayed dialog box select Internet Protocol Version 4 TCP Ipv4 and click Properties The page shown in Figure 4 11 is displayed Select Use the following IP address and enter the IP address 192 168 0...

Страница 30: ...User Manual 2021 Guangzhou ZLG Microelectronics Technology Corp Ltd 26 User Manual Figure 4 12 Communication in TCP Sever mode Tip In this mode the client connects to the CANSwitch AN2S2 device over...

Страница 31: ...P UDP software and click to create a connection as shown in Figure 4 15 Figure 4 13 Configuration in TCP Sever mode Be sure to submit the configuration modifications The default password is 88888 The...

Страница 32: ...ics Technology Corp Ltd 28 User Manual Figure 4 15 Open the TCP UDP test tool Select TCP mode in Type enter the IP address and the working port number of CANSwitch AN2S2 and click Create See Figure 4...

Страница 33: ...et Switch User Manual 2021 Guangzhou ZLG Microelectronics Technology Corp Ltd 29 User Manual Figure 4 17 Opening connection When the triangle below the client mode turns green the connection is succes...

Страница 34: ...NTest Software Operation Double click the CANTest software icon to run the software as shown in Figure 4 19 Figure 4 19 CANTest software Choose the correct device Select USBCAN E U here as shown in Fi...

Страница 35: ...igure 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...

Страница 36: ...test tool to receive data Because the frame ID filter is set and ID00000000 is no longer in the receiving range no data is received as shown in Figure 4 24 Figure 4 24 PC receives data 1 The CAN frame...

Страница 37: ...Technology Corp Ltd 33 User Manual Figure 4 25 USBCAN send data 2 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 d...

Страница 38: ...et 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 frames of data USBCAN can be received p...

Страница 39: ...two way data communication can be carried out Figure 4 29 shows the communication establishment process Figure 4 29 Communication in TCP Client mode Tip In this mode the TCP server IP address is dete...

Страница 40: ...orking port and click OK See Figure 4 32 Figure 4 30 Configuration in TCP Clarinet mode Be sure to submit the configuration modifications The default password is 88888 The IP address configuration sho...

Страница 41: ...ou ZLG Microelectronics Technology Corp Ltd 37 User Manual 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...

Страница 42: ...oelectronics Technology Corp Ltd 38 User Manual Figure 4 34 Connection created 4 4 4 CANTest Software Operation Double click the CANTest software icon to run the software as shown in Figure 4 35 Figur...

Страница 43: ...ngzhou ZLG Microelectronics Technology Corp Ltd 39 User Manual Figure 4 36 Selecting a device Select the correct baud rate click OK and start the CAN as shown in Figure 4 37 Figure 4 37 Starting the d...

Страница 44: ...e 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 USBCA...

Страница 45: ...Manual ID00000000 is no longer in the receiving range no data is received as shown in Figure 4 40 Figure 4 40 PC receives data 1 The CAN frame with ID 00000011 and data 0001020304050607 is sent and t...

Страница 46: ...42 For the format of the received data see Appendix A Figure 4 42 PC receiving data 2 Use the TCP UDP test tool to send CAN frames as shown in Figure 4 43 For the data format see Appendix A Figure 4...

Страница 47: ...rectly Therefore in the scenarios with high reliability requirements the upper layer communication protocol must be used to ensure that the data is correct however because UDP is a simple communicatio...

Страница 48: ...chnology Corp Ltd 44 User Manual 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...

Страница 49: ...e TCP UDP software and click to create a connection as shown in Figure 4 48 Figure 4 46 Configuration in UDP mode Be sure to submit the configuration modifications The default password is 88888 The IP...

Страница 50: ...ology Corp Ltd 46 User Manual 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...

Страница 51: ...echnology Corp Ltd 47 User Manual Figure 4 50 Opening a connection 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...

Страница 52: ...User Manual Figure 4 52 CANTest software Choose the correct device Select USBCAN E U here as shown in Figure 4 53 Figure 4 53 Selecting a device Select the correct baud rate click OK and start the CAN...

Страница 53: ...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 00010203...

Страница 54: ...50 User Manual Figure 4 57 PC receiving data 1 Send the CAN frame whose ID is 00000022 and data is 0001020304050607 The peer device can receive the data correctly as shown in Figure 4 58 Figure 4 58 U...

Страница 55: ...logy Corp Ltd 51 User Manual Figure 4 59 PC receiving data 2 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...

Страница 56: ...CANSwitch AN2S2 High Performance Dual CAN to Ethernet Switch User Manual 2021 Guangzhou ZLG Microelectronics Technology Corp Ltd 52 User Manual Figure 4 61 USBCAN receiving data 1...

Страница 57: ...talling the Configuration Software Insert the CD ROM into the CD ROM drive and open the CD ROM you can also download the latest ZnetCom software at http www zlg cn canbus download php Double click the...

Страница 58: ...e 5 3 Selecting an installation path Click Install to copy the files to the installation path If the dialog box shown in Figure 5 4 appears select Yes Figure 5 4 Installing the runtime library After t...

Страница 59: ...lled 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 devi...

Страница 60: ...you use the LAN port to connect to the PC choose Ethernet if you use the RS232 configuration serial port to connect to the PC choose the serial port If you choose the serial port you should select th...

Страница 61: ...re After the search is completed the searched devices appear in the device list of the ZNetCom software as shown in Figure 5 9 Figure 5 9 Obtaining CANSwitch AN2S2 device configuration properties Doub...

Страница 62: ...echnology Corp Ltd 58 User Manual 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 Figur...

Страница 63: ...High Performance Dual CAN to Ethernet Switch User Manual 2021 Guangzhou ZLG Microelectronics Technology Corp Ltd 59 User Manual Figure 5 12 CANSwitch AN2S2 device configuration information converter...

Страница 64: ...tch 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...

Страница 65: ...t password 88888 Before changing other items you must enter the correct password The password contains a maximum of 10 characters including a to z A to Z 0 to 9 Whether to change the password No You c...

Страница 66: ...est The CAN port works in self transmitting and self receiving mode This is used to check whether if it can properly and whether it is damaged CAN_AF Disabled CAN interface acceptance filter enabling...

Страница 67: ...parameter values of CAN1 are exactly the same the meaning of each parameter is the same as that of each parameter of CAN0 5 4 2 Configuration in Converter Mode Converter Mode Table 5 2 describes the d...

Страница 68: ...word cannot be changed Used to confirm the new password It must be the same as New Password IP address informati on operation Device IP address 192 168 0 178 X X X 0 or X X X 255 cannot be filled An I...

Страница 69: ...o select Dynamic acquisition Static acquisition means that you directly enters the IP address Subnet mask and Gateway Dynamic acquisition means that the CANSwitch AN2S2 module uses the DHCP protocol t...

Страница 70: ...ress and port When the device works in UDP mode by setting the destination IP address the device can communicate with multiple network devices with different IP addresses at the same time Whether the...

Страница 71: ...CP connection is established If no data is received before the timeout period expires the TCP connection is disconnected 0 indicates it will not be disconnected all the time Heartbeat time 10 ms 200 T...

Страница 72: ...interval exceeds the packet time interval the received data is also encapsulated into an Ethernet packet and sent If the number of packetized frames is set to 1 it means no packetization Each CAN fram...

Страница 73: ...e filter enabling After enabling enter the upper and lower limits of the standard frame ID and the upper and lower limits of the extended frame ID to be received in the following four items Only the f...

Страница 74: ...ither the client controls the transmission speed of the Ethernet to match the transmission speed of the CAN port or the buffer is changed to a smaller size and the frame is dropped appropriately to en...

Страница 75: ...2 168 1 x If the subnet mask is 255 255 255 0 the IP 192 168 1 255 is a broadcast address and cannot be used to represent a host But if the subnet mask is 255 255 0 0 192 168 1 255 is an illegitimate...

Страница 76: ...Used for shielding To enable it set the number of TCP connections Start addresses 2 6 0 0 0 0 The function is the same as the starting address 1 To enable it set the number of TCP connections End add...

Страница 77: ...function button is located on the property column as shown in Figure 5 14 Figure 5 14 Device configurations import export 5 5 1 Saving Settings Click In the Save As dialog box as shown in Figure 5 15...

Страница 78: ...oftware 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 1 In the device list...

Страница 79: ...chnology Corp Ltd 75 User Manual Figure 5 18 Firmware upgrade 3 Click The device starts firmware upgrade as shown in Figure 5 19 Figure 5 19 Firmware upgrade in progress 4 After about 1 minute the fir...

Страница 80: ...ser Manual 2021 Guangzhou ZLG Microelectronics Technology Corp Ltd 76 User Manual Figure 5 20 Firmware upgraded If the upgrade fails due to an accident such as power failure and network cable disconne...

Страница 81: ...tronics 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 guarant...

Страница 82: ...working port data conversion format CAN CAN CAN CAN CAN UDP CAN 40 1 CAN 1 CAN 13 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 F...

Страница 83: ...rames 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 use...

Страница 84: ...has overflowed 0 0 5s 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 o...

Страница 85: ...ual CAN to Ethernet Switch User Manual 2021 Guangzhou ZLG Microelectronics Technology Corp Ltd 81 User Manual 0Bh CAN controller bus error as long as there is an error Number of occurrences 2s 0Ch Oth...

Страница 86: ...r Manual 2021 Guangzhou ZLG Microelectronics Technology Corp Ltd 82 User Manual Dreams come true with professionalism and dedication Guangzhou ZLG Electronics Co Ltd For more details please visit www...

Отзывы: