Page 1
USR-TCP232-30x Series User Manual Serial to Ethernet User Manual (Cost effective) USR-TCP232-302/304/306 V2.0 Be Honest & Do Best Your Trustworthy Smart Industrial IoT Partner pusr.com...
These products are widely used in smart traffic, unattended Weighing, manufacturing industry etc. USR-TCP232-302, 304 and 306 are identical in software features, they both support transparent data transmission, Modbus gateway, user-defined webpage, heartbeat packet, registration packet, index function etc. In hardware, TCP232-302 is RS232 to Ethernet converter, TCP232-304 is RS485 to Ethernet, TCP232-306 supports RS485/RS232/RS422, but RS485/RS232/RS422 can’t work at the same time.
2. Get Started 2.1. Hardware interface introduction 2.1.1. Power supply The USR-TCP232-302 and USR-TCP232-304 provide DC jack power supply interface. Power supply range: 5~7V DC. Figure 1. TCP232-302/304 DC power supply The USR-TCP232-306 provides 2-pin power supply terminal blocks and DC jack. The power supply support anti-reverse protection.
USR-TCP232-30x Series User Manual 2.1.2. Serial port Table 2. Serial port pin description Model Type Description 2: RxD USR-TCP232-302 RS232, DB9 female 3: TxD 5: GND A: Data+ USR-TCP232-304 RS485 B: Data- 2: TxD RS232, DB9 male 3: RxD 5: GND...
Blinking Serial port is receiving data 2.1.5. Reload button After the USR-TCP232-30x is powered on, keep pressing the reload button for 3~15 seconds and then release to restore the 30x device to the factory default settings. pusr.com - 7 -...
For specific function details and instructions, please refer to the subsequent chapters. 2.2.1. Download software Download the software from PUSR’s website: Config software: 插入设置软件下载链接 Test software: https://www.pusr.com/support/download/usr-tcp232-test-V13.html...
Page 9
USR-TCP232-30x Series User Manual Figure 5. Config software Figure 6. Test software pusr.com - 9 -...
1. Users can search out the 30x device, 2. Set the IP type as DHCP/Auto IP, 3. Save config, 4. Search the device again, 5. Open the webpage,the user will be navigated to the login page, the username and password are both “admin”. pusr.com - 10 -...
Page 11
After entering the username and password, click "OK" and the server will authenticate. After success, you will enter the main page of the Web server, as shown in the following figure. Figure 9. Current status In serial port page, set the remote IP to 172.16.11.31, then save parameters and restart the module. pusr.com - 11 -...
Page 12
30x to PC directly via a net cable. The default IP address of serial server is: 192.168.0.7. Set the PC's IP address as: 192.168.0.X (X is any valid value from 2 to 253 except 7). The specific pusr.com - 12 -...
In this test, we use the default serial port parameters (115200, N, 8, 1) to test. Users can also to modify the baud rate, data bit and other parameters of the serial port via webpage or config software as needed. The following picture shows an example of parameters setting to test transparent transmission. pusr.com - 13 -...
Please visit the USR IoT website: https://www.pusr.com where you can find the latest information about the product. Contact your distributor, sales representative, or PUSR's support center: http://h.usriot.com/index.php?c=frontTicket&m=sign for technical support if you need additional assistance. Please have the following information ready before you submit a ticket: –...
Figure 15 illustrates the status page of the web interface. pusr.com - 15 -...
Page 16
IP:The IP of remote host, it displayed once the TCP connection is established, Tx: The data count from serial to network Rx: The data count from network to serial When the TCO232-30X work in TCP server mode, the page can display up to 5 connection information. pusr.com - 16 -...
Class A, B, and C addresses are unicast addresses, Class D addresses are multicast addresses, Class E addresses are reserved addresses for future special purposes. The IP addresses currently in large numbers belong to three types of addresses: A, B, and C. pusr.com - 17 -...
IP packet. All packets whose destination is not in the router's routing table will use the default route. The IP address of the DNS server. When users need to access information online through domain name, like www.pusr.com. DNS translates domain names to so browsers can load Internet resources.
Page 19
Default is None (which is the default for the majority of serial devices). Stop bits This indicates that a character has been transmitted. Set this to match the stop bit pusr.com - 19 -...
3.1.4. Expand function settings USR-TCP232-30X series provide rich additional function which is displayed in this function tab page. The function detail information will be described in the following table, some more important function is introduced in relevant chapters. pusr.com - 20 -...
Page 21
Data with: TCP232-30X add register packet in front of each packet of data sent by the serial port device. Both of above: Impersistent This function is available in TCP client mode. If the serial port or network port receives connection pusr.com - 21 -...
The name of the device, up to 5 characters, can’t be null Webserver port Webserver listen port NO. The default is 80. Range 1-65535 Username The username of web console and can be modified. up to 5 characters, can’t be pusr.com - 22 -...
PC, the device can be accessed via broadcast packets. Users can search all the TCP232-30X Series device servers on the network and show them on the Serial Device Server List Area of the utility. Figure 20. Search device pusr.com - 23 -...
External web config ,you will open the web server with default browser such as Google Chrome. 1. Right-click a desired device to display the settings menu, 2. Select OpenWeb pusr.com - 24 -...
Users can upgrade the firmware by themselves. When upgrading firmware, the 30X device must be in the same LAN network with PC. 3. Right-click a desired device to display the settings menu, 4. Select Firmware upgrade Figure 23. Firmware upgrade pusr.com - 25 -...
The configuration utility provides the function to restore the serial device server to factory default settings. If you really want to restore the serial device sever to factory default settings, please click reset button to continue. 1. Right-click a desired device to display the settings menu, 2. Select Reset pusr.com - 26 -...
When the device work as TCP server, it allows up to 16 clients to access. The default is 4. We can test it with test software. Setting of the software is shown in the following picture. Once the TCP connection is established, the pusr.com - 27 -...
4.2. TCP client When the work mode is TCP client, the remote device must work in TCP server mode. The USR-TCP232-30x will initiate the TCP connection and the remote server IP and port should be configured. pusr.com - 28 -...
Page 29
USR-TCP232-306. After the connection is established, we can see the IP and port of USR-TCP232- 306, as shown in the red box of the following picture. Figure 30. Setting of USR device and test software pusr.com - 29 -...
1. The local host port is the same with the remote port of the USR-TCP232-306, 2. The remote host IP is IP address of USR-TCP232-306, and the remote port is local port of USR-TCP232-306, 3. Then serial device and network device can transmit data bidirectionally. pusr.com - 30 -...
Page 31
USR-TCP232-306(work as UDP server). Figure 35. Different UDP port transmitted successfully, the test result If we send the first data packet from serial to network, the data isn’t can be seen in the following picture. pusr.com - 31 -...
Figure 37. Test result with data transmission 4.4. UDP client 4.4.1. Transparent data transmission In UDP client mode, TCP232-306 will only communicate with target IP/Port. If data is not from target IP/Port, it won’t be received by TCP232-306. pusr.com - 32 -...
USR-TCP232-30x Series User Manual Figure 38. UDP client Figure 39. Test result of UDP client 4.4.2. Broadcast If the remote IP of TCP232-306 is set to 255.255.255.255, TCP232-306 can broadcast to entire network segment and receive broadcast data. pusr.com - 33 -...
IP address, and join the multicast group at the same time. Members of the multicast group are dynamic, and the entry and exit of a member does not affect the original multicast group. The valid address range of a multicast group is 224.0.0.2 to 239.255.255.255. pusr.com - 34 -...
The http connection of TCP232-30X is short connection, if the device does not receive the data sent by the serial port device after waiting for the pre-set time, it will actively disconnect. The default pre-set time is 3 second. pusr.com - 35 -...
Figure 43. Settings of Httpd client Figure 44. Test result of httpd client 5. Modbus Gateway 5.1. Modbus RTU to Modbus TCP The USR-TCP232-30x series support Modbus protocol conversion. Users can enable this function in “Expand Function” tab. pusr.com - 36 -...
5.1.1. Ethernet master with serial slave In this condition, USR-TCP232-30x should work as TCP server and local port can’t be 0 and 80 etc. that maybe occupied by the other functions. Figure 46. Ethernet master with serial slave pusr.com - 37 -...
Figure 47. Settings of Modbus poll/slave Figure 48. Test result 5.1.2. Serial master with Ethernet slave In this condition, USR-TCP232-30x should work as TCP client and the remote port keep the same with the listening port of the Modbus slave. pusr.com - 38 -...
Page 39
Settings of Modbus poll and Modbus slave and the test result. The serial parameters of the Modbus poll like baud rate, data bits and so on should keep same with the 30x’. Figure 50. Settings of Modbus poll/slave Figure 51. Test result pusr.com - 39 -...
Note: Once this feature is enabled, the Modbus master must be network device and the serial device must be Modbus slave. Figure 52. Settings of Modbus multi-host polling Figure 53. Test result of Modbus multi-host polling pusr.com - 40 -...
USR-TCP232-30x Series User Manual 6. Additional features 6.1. Built-in webpage PUSR opens the source code of the built-in webpage to users. Users can modify it according to their own needs, which helps customers fully develop the products. 6.1.1. Edit webpage file Users can download the built-in webpage package first: The file in usr_web folder can be edited as user needed.
30X and sends and receives data at the same time, the data source cannot be distinguished or cannot be sent to a specific client. Figure 56. Settings of index function When the TCP connection is established, the serial will out put the connection order showing in the red pusr.com - 42 -...
Need help?
Do you have a question about the USR-TCP232-302 and is the answer not in the manual?
Questions and answers