The test is using 1 PC to test the USR-TCP232-302(serial to ethernet converter).You can send the data with Ethernet and receive with serial port. And you also can send data with serial port and receive with Ethernet.
1. PC and USR-TCP232-302(serial to ethernet converter) connect to the router through the network cable, USR-TCP232-304(serial to ethernet converter) serial connection sensor.
2. Open V-COM, and add a v-com, set it work at “TCP server”, define a local port.
Figure 1 add V-COM
3. Setup 302 by USR-M0.exe, IP:DHCP/Auto IP, work mode: TCP Client, remote IP:172.16.11.18(V-VOM IP), remote port:8234(V-COM port), then save config
Figure 2 setup 302
4. Open two USR-TCP232-TEST.exe, one is COM1(V-COM),another is COM11(302’s serial port). Actually, you just need to open a TCP232-TEST (V-VOM) because your sensor connects to 302 and sends data to 302 through the serial port. Because I didn't have a sensor to do the test, I connected the 302 serial port to the computer and sent the data to simulate the sensor. Now the data can interact.
Figure 3 data interact