RS232/485 TO ETH User Manual RS232/485 TO ETH User Manual 5/22/19 www.waveshare.
RS232/485 TO ETH User Manual CONTENTS Features ............................................................................................................................................... 4 1. Get Start ........................................................................................................................... 5 1.1. Application Diagram ................................................................................................... 5 1.2. Hardware Design ..........................
RS232/485 TO ETH User Manual 3.3.2. Network AT command ................................................................................. 17 4. Contact Us ..................................................................................................................... 19 5. Disclaimer..................................................................................................................... 20 6. Update History .............................................................................
RS232/485 TO ETH User Manual FEATURES ⚫ 10/100Mbps Ethernet interface and support Auto-MDI/MDIX. ⚫ Support TCP Server, TCP Client, UDP Client, UDP Server, HTTP Client. ⚫ Support configuring through Web Server ⚫ Support RS232 and RS485 and they can work independently. ⚫ Support RTS/CTS hardware flow control and Xon/Xoff software flow control. ⚫ Support USR-VCOM. ⚫ Support Modbus Gateway. ⚫ Support serial port baud rate 600bps~230.4K bps; support None, Odd, Even, Mark, Space parity way.
RS232/485 TO ETH User Manual 1. GET START Product link: https://www.waveshare.com/wiki/RS232/485_TO_ETH Setup software: https://www.waveshare.com/wiki/RS232/485_TO_ETH_Software Demo Code: https://www.waveshare.com/wiki/File:PC_Socket_Demo.zip 1.1. APPLICATION DIAGRAM Figure 1 Application Diagram 1.2. HARDWARE DESIGN 1.2.1. HARDWARE DIMENSIONS Figure 2 Hardware Dimensions 5/22/19 www.waveshare.
RS232/485 TO ETH User Manual 1.2.2.
RS232/485 TO ETH User Manual 2. PRODUCT FUNCTIONS This chapter introduces the functions of USR-TCP232-RS232/485 TO ETH as the following diagram shown, you can get an overall knowledge of it.
RS232/485 TO ETH User Manual 2.1. BASIC FUNCTIONS 2.1.1. STATIC IP/DHCP There are two ways for module to get IP address: Static IP and DHCP. Static IP: Default setting of module is Static IP and default IP is 192.168.0.7. When user configures module in Static IP mode, user need set IP, subnet mask and gateway and must pay attention to the relation among IP, subnet mask and gateway. DHCP: Module in DHCP mode can dynamically get IP, Gateway, and DNS server address from Gateway Host.
RS232/485 TO ETH User Manual 2.2. SOCKET FUNCTIONS RS232/485 TO ETH supports dual sockets mode. Socket A supports TCP Server, TCP Client, UDP Server, UDP Client and HTTP Client. Socket B supports TCP Client and UDP Client. 2.2.1. TCP CLIENT Figure 4 TCP Client TCP Client provides Client connections for TCP network services. TCP Client device will connect to server to realize data transmission between the serial port device and server.
RS232/485 TO ETH User Manual RS232/485 TO ETH works in TCP Server mode will listen network connections and build network connections, commonly be used for communication with TCP clients on a LAN. According to the TCP protocol, TCP Server has connection/disconnection status differences to ensure reliable data transmission. RS232/485 TO ETH works in TCP Server mode will listen local port which user set and build connection after receiving connection request.
RS232/485 TO ETH User Manual 2.2.4. UDP SERVER Figure 7 UDP Server In UDP Server mode, RS232/485 TO ETH will change Remote IP every time after receiving UDP data from a new IP/Port and will send data to latest communication IP/Port. 2.2.5. HTTP CLIENT Figure 8 HTTP Client GET/1.php?data=ABC HTTP/1.1 Host: www.usr.cn:80 User-Agent: Mozilla/4.0 Connection: close data=ABC RS232/485 Serial Device TO ETH HTTP/1.1 200 OK HTTP Server Data: Wed, 24 Jun 2015 04:08:35 GMT Server.Apache/2.0.63(Win32)PHP/5.
RS232/485 TO ETH User Manual In HTTP Client mode, RS232/485 TO ETH can achieve data transmission between serial port device and HTTP server. User just needs to configure RS232/485 TO ETH in HTTP Client and configure the HTTP header, URL and some other related parameters, then can achieve data transmission between serial port device and HTTP server and don’t need care about the HTTP format of data. 2.2.6.
RS232/485 TO ETH User Manual 2.3. 2.3.1. 2.3.2. SERIAL PORT SERIAL PORT BASIC PARAMETERS Parameters Range Baud Rate 600~230.4Kbps Data Bits 5, 6, 7, 8 Stop Bits 1, 2 Parity Bits None, Odd, Even, Mark, Space VCOM APPLICATION Figure 11 Serial port basic parameters User can download VCOM software from: Figure 14 VCOM application https://www.waveshare.com/wiki/RS232/485_TO_ETH_Software.
RS232/485 TO ETH User Manual 2.4. 2.4.1. FEATURES IDENTITY PACKET FUNC TION Figure 12 Identity Packet application diagram Identity packet is used for identifying the device when RS232/485 TO ETH works as TCP client/UDP client. There are two methods to send identity packet. ⚫ Identity packet will be sent after connection is established. ⚫ Identity packet will be added on the front of every data package. Identity packet can be MAC address or user editable identity packet.
RS232/485 TO ETH User Manual Modbus RTU<=>Modbus TCP: Set RS232/485 TO ETH in TCP Server or TCP Client mode, then user can set RS232/485 TO ETH with Modbus RTU<=>Modbus TCP function. Data transmission diagram as follow: Figure 13 Modbus RTU<=>Modbus TCP Modbus polling: RS232/485 TO ETH support Modbus polling function. Figure 14 Modbus polling 2.4.5. NETWORK PRINTING The network printing function is similar to the printer server.
RS232/485 TO ETH User Manual 3. PARAMETER SETTING There are three ways to configure RS232/485 TO ETH. They are setup software, Web Server and AT command. 3.1. SETUP SOFTWARE User can download setup software from https://www.waveshare.
RS232/485 TO ETH User Manual 3.2. WEB SERVER User can connect PC to RS232/485 TO ETH through LAN port and enter Web Server to configure. Web Server default parameters as follow: Table 2 Web server default parameters Parameter Default settings Web server IP address 192.168.0.7 User name admin Password admin After firstly connecting PC to RS232/485 TO ETH, user can open browser and enter default IP 192.168.0.7 into address bar, then log in user name and password, user will enter Web Server.
RS232/485 TO ETH User Manual network AT command must in same network segment). If user enter network AT command mode but don’t send any command over 30 seconds, module will exit network AT command mode. User can enter network AT command mode as follow way: Figure 17 Network AT Command 5/22/19 www.waveshare.
RS232/485 TO ETH User Manual 4. CONTACT US Email: (order/shipment) (tech support) sales@waveshare.com service@waveshare.com (complaint) complaint@waveshare.com (apply for distributor) distributor@waveshare.
RS232/485 TO ETH User Manual 5. DISCLAIMER This document provides the information of USR-TCP232-RS232/485 TO ETH products, it hasn’t been granted any intellectual property license by forbidding speak or other ways either explicitly or implicitly. Except the duty declared in sales terms and conditions, we don’t take any other responsibilities.
RS232/485 TO ETH User Manual 6. UPDATE HISTORY ⚫ 2019-05-06 V1.0.0 Established. 5/22/19 www.waveshare.