![ZLG CANSwitch-AN2S2 User Manual Download Page 29](http://html1.mh-extra.com/html/zlg/canswitch-an2s2/canswitch-an2s2_user-manual_3898675029.webp)
CANSwitch-AN2S2
High-Performance Dual-CAN to Ethernet Switch User Manual
©2021 Guangzhou ZLG Microelectronics Technology Corp.,Ltd.
25
User Manual
Figure 4.10 Adding an IP address
Enter the content, and click the Add button. Press OK. Now you can communicate
with the CANSwitch-AN2S2 device.
4.2.5 Modifying the Local IP Address
Enter the operating system, click the Start button
→
Control Panel
→
Network and
sharing center to modify the advanced sharing settings, select the "Local Connection"
corresponding to the network card connected to the CANSwitch-AN2S2 device, right-click
and choose "Properties". In the 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.22, 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 wait until the system is configured.
Figure 4.11 TCP/IP Properties window
Now you can communicate with the CANSwitch-AN2S2 device.
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.