Waveshare RS485 TO ETH User Manual
Hide thumbs Also See for RS485 TO ETH:

Advertisement

RS485 TO ETH
RS485 TO ETH
User Manual

Advertisement

Table of Contents
loading

Summary of Contents for Waveshare RS485 TO ETH

  • Page 1 RS485 TO ETH RS485 TO ETH User Manual...
  • Page 2: Table Of Contents

    RS485 TO ETH CONTENT Features ..............................4 Get Start ............................5 1.1. Application Diagram ......................5 1.2. Hardware Design ......................... 6 Hardware Dimensions ......................6 Product Functions ..........................7 2.1. Basic Functions ........................7 2.1.1. Static IP/DHCP ......................7 2.1.2.
  • Page 3 RS485 TO ETH 2.4.7. Non-Persistent Connection ................... 19 2.4.8. Timeout Reset Function ..................20 Parameter Setting .......................... 21 3.1. Setup Software Configuration ................... 21 3.2. Web Server Configuration ....................22 3.3. AT Command ........................23 3.3.1. Serial AT CoFmmand ..................... 23 Contact US ............................
  • Page 4: Features

    RS485 TO ETH FEATURES ⚫ 10/100Mbps Ethernet port, support Auto-MDI/MDIX. ⚫ Support TCP Server, TCP Client, UDP Client, UDP Server, HTTPD Client. ⚫ Support Baud rate from 600bps to 230.4bps; Support None, Odd, Even, Mark, Space. ⚫ Support heartbeat packet and identity packet.
  • Page 5: Get Start

    RS485 TO ETH 1. GET START ⚫ Product link: https://www.waveshare.com/wiki/RS485_TO_ETH ⚫ Setup software: https://www.waveshare.com/wiki/RS485_TO_ETH_Software ⚫ Demo codes: https://www.waveshare.com/wiki/File:PC_Socket_Demo.zip 1.1. APPLICATION DIAGRAM Figure 1 Application...
  • Page 6: Hardware Design

    RS485 TO ETH 1.2. HARDWARE DESIGN HARDWARE DIMENSIONS Figure 2 Hardware Dimension...
  • Page 7: Product Functions

    RS485 TO ETH 2. PRODUCT FUNCTIONS This chapter introduces the functions of RS485 TO ETH as the following diagram shown, you can get an overall knowledge of it. Serial port Figure 3 Product Functions diagram 2.1. BASIC FUNCTIONS 2.1.1. STATIC IP/DHCP There are two ways for module to get IP address: Static IP and DHCP.
  • Page 8: Restore Default Settings

    RS485 TO ETH Figure 4 Static IP/DHCP 2.1.2. RESTORE DEFAULT SETTI NGS Hardware: User can press Reload over 5 seconds and less than 15 seconds then release to restore default settings. Software: User can use setup software to restore default settings.
  • Page 9: Socket Functions

    RS485 TO ETH work in TCP Client mode need connect to TCP Server and need set the parameters: Remote Server Addr and Remote Port Number. RS485 TO ETH work in TCP Client won’t accept other connection request except target server and will access server with random local port if user set local port to zero.
  • Page 10: Tcp Server

    TCP Server mode also support Keep-Alive function. RS485 TO ETH work in TCP Server mode will listen local port which user set and build connection after receiving connection request. Serial data will be sent to all TCP Client devices connected to RS485 TO ETH in TCP Server mode simultaneously.
  • Page 11: Udp Client

    2.2.3. UDP CLIENT UDP transport protocol provides simple and unreliable communication services. No connection connected/disconnected. In UDP Client mode, RS485 TO ETH will only communicate with target IP/Port. If data not from target IP/Port, it won’t be received by RS485 TO ETH.
  • Page 12: Udp Server

    User can set RS485 TO ETH in UDP Client mode and related parameters by setup software or web server as follows: Figure 8 UDP Client 2.2.4. UDP SERVER In UDP Server mode, RS485 TO ETH will change target IP every time after receiving UDP data from a new IP/Port and will send data to latest communication IP/Port.
  • Page 13: Httpd Client

    In HTTPD Client mode, RS485 TO ETH can achieve data transmission between serial port device and HTTP server. User just need set RS485 TO ETH in HTTPD Client and set the HTTPD header, URL and some other related parameters, then can achieve data transmission between serial port device and...
  • Page 14: Serial Port

    RS485 TO ETH User can set RS485 TO ETH in HTTPD Client mode and related parameters by web server as follow: Figure 10 HTTPD Client 2.3. SERIAL PORT 2.3.1. SERIAL PORT BASIC PAR AMETERS Table 1 Serial Port Parameters Parameters...
  • Page 15: Baud Rate Synchronization

    The data will be sent to Network as Package. There are 2 ways to end the package and send package to network - Time Trigger Mode and Length Trigger Mode. RS485 TO ETH adopt fixed Package time (four bytes sending time) and fixed Package length (400 bytes).
  • Page 16: Features

    Identity data will be add on the front of every data packet. Identity packet can be MAC address or user editable data (User editable data at most 40 bytes). User can set RS485 TO ETH with Identity Packet function by web server as follow: Figure 13 Identity Packet...
  • Page 17: Editable Web Server

    Figure 14 Heartbeat Packet 2.4.3. EDITABLE WEB SERVER RS485 TO ETH support user modify the web server based on template according to needs, then use related tool to upgrade. If user have this demand can contact to our salespersons for web server source and tool.
  • Page 18: Index Function

    RS485 TO ETH Figure 15 Reset Function 2.4.5. INDEX FUNCTION Index function: Used in situation when 304 work in TCP Server mode and establish more than one connection to TCP Client. After open Index function, 304 will mark every TCP Client to distinguish them.
  • Page 19: Tcp Server Setting

    Figure 17 TCP Server Setting 2.4.7. NON-PERSISTENT CONNEC TION RS485 TO ETH support non-persistent connection function in TCP Client mode. When RS485 TO ETH adopt this function, RS485 TO ETH will connect to server and send data after receiving data from...
  • Page 20: Timeout Reset Function

    This fixed time can be 2~255s, default is 3s. User can set RS485 TO ETH with non-persistent connection function by web server as follow: Figure 18 Non-persistent Connection 2.4.8.
  • Page 21: Parameter Setting

    User can download setup software from Waveshare Wiki. When user want to configure the RS485 TO ETH by setup software, user can run setup software, search RS485 TO ETH in same LAN and configure the RS485 TO ETH as follow: Figure 20 Setup Software After researching RS485 TO ETH and clicking RS485 TO ETH to configure, user need log in with user name and password.
  • Page 22: Web Server Configuration

    RS485 TO ETH 3.2. WEB SERVER CONFIGURATION User can connect PC to RS485 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...
  • Page 23: At Command

    RS485 TO ETH 3.3. AT COMMAND For AT commands, please refer to specific AT command manual. 3.3.1. SERIAL AT COFMMAND In transparent mode, user can enter AT command mode, then user can send AT command to module. Enter AT Command Mode: ⚫...
  • Page 24: Contact Us

    (order/shipment) sales@waveshare.com (tech support) service@waveshare.com (complaint) complaint@waveshare.com (apply for distributor) distributor@waveshare.com Skype: (order/shipment) sales@waveshare (tech support) service@waveshare Whatsapp: 86-13148830755 Phone: 86-755-82807524 Fax: 86-755-83042572 Address: Waveshare Electronics 10F, International Science & Technology Building, Fuhong Rd, Futian District, Shenzhen, China Website: www.waveshare.com...
  • Page 25: Disclaimer

    RS485 TO ETH 5. DISCLAIMER This document provide the information of RS485 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. We don’t...

Table of Contents