RS232/485 TO ETH

From Waveshare Wiki
Jump to: navigation, search
RS232/485 TO ETH
RS232/485 TO ETH

RS232/485 TO ETHernet Converter
{{{name2}}}

{{{name3}}}

{{{name4}}}

{{{name5}}}

{{{name6}}}

Internet login

Method 1: Access router or switch test

  • Connect the RS232/485 TO ETH to the computer and the switch or router connected to the LAN respectively (in this way, firstly, the network cable of the computer does not need to be unplugged to avoid network disconnection; secondly, the RS232/485 TO ETH connected to the Internet can be connected to the public network TCP Server communication), fixed IP of RS232/485 TO ETH.
  • Control Panel (File Explorer) -> Network Connections -> Double-click the network card -> Details -> See the computer IP (here is 192.168.11.121).

RS232-RS485 net.png

  • Click the device factory IP: 192.168.0.7- > set the static IP to the same frequency band IP as the computer () -> subnet mask default -> set the corresponding gateway -> click set.

RS232-RS485 net (1).png

  • Double-click the upper right corner of the webpage -> enter the account and password (the initial value is: admin).

RS232-RS485 net (3).png

Method 2: Test directly with the computer

If you only have one network cable and no router or switch, you can connect the computer and RS232/485 TO ETH through a single network cable (similar to one-to-one communication between two computers through a network cable).

  • Control Panel (File Explorer) -> Network Connections -> Double-click the network card -> Properties -> Internet Protocol Sakamoto 4 (TCP/IPV4) -> Use the following IP address -> Set the IP of the same frequency band as RS232/RS485 TO ETH -> OK.

RS232-RS485 net (5).png

RS232 TCP communication

Hardware connection

RS232-RS485-NET(6).png

RS232-RS485-NET(8).png

  • Start the server -> open the serial port assistant -> select the corresponding serial port:

RS232-RS485-NET(9).png

Resources


FAQ

 Answer:

Set the IP of RS232/485 TO ETH and computer to the same network address and different node address IP:
For example,If RS232/485 TO ETH IP is 192.168.0.7; computer IP is 192.168.0.8


 Answer:
  • After confirming that the network communication is normal, you can observe whether the 232RX (485RX) light is flashing. If it does not flash, it means that there is no data in the RS232/485 TO ETH. Check whether the RS232/RS485 wiring is correct.

If the RXD and TXD of some RS232 lines are not cross-connected, they cannot communicate (check with a multimeter, if 2 and 2 are connected, 3 and 3 are directly connected to the serial line; if 2 and 3 are connected, 3 and 2 are connected. .), you can replace the crossover serial cable:

  • If the indicator light is normal, please turn off the tool and then turn it on to test.


RS232-RS485-TO-ETH-HEX.png


 Answer:

After the module is powered on, press and hold the reload button for more than 5 seconds to restore the factory settings: RS232 RS485 TO ETH reload.png


 Answer:
  • The serial device sends "++++" continuously to the module, and when the module receives "++++", it sends 'a' to the device. No data can be sent during the packetization time before sending the '+++'.
  • When the device receives 'a', it must send an 'a' to the module within 3 seconds.
  • After receiving the 'a', the module sends "+OK" to the device and enters the "AT command mode".
  • After receiving "+OK", the device knows that the module has entered "AT command mode" and can send AT command to it.
  • The serial device sends the command "AT+ENTM" to the module, and after receiving the command, the module displays "+OK" and returns to the previous working mode.

{{{5}}}


 Answer:

Use Hex Data Transparent Transmission Mode (Recommended)

  • 1. Connect the RS485 TO ETH and Modbus device.
  • 2. Configure RS485 TO ETH's IP address and COM port, and ensure it is connected to the local network.
  • 3. Use Modbus TCP protocol to connect the device through RS485 TO ETH, correctly configure the parameters such as the baud rate, and set the working mode as "None".
  • 4. Send data to the Modbus device like USB to RS485, and return the corresponding data:
Transmit: 01 05 00 00 FF 00 8C 3A
Receive: 01 05 00 00 FF 00 8C 3A

Modbus RTU and Modbus TCP Bidirectional Convertion

  • 1. Connect RS485 TO ETH to Modbus devices.
  • 2. Configure the IP and COM port of RS485 TO ETH, and ensure it can be connected to the local network.
  • 3. Use Modbus TCP protocol to connect RS485 TO ETH to the device, and correctly configure the parameters such as baudrate.

RS232-485 to ETH FAQ.png

  • 4. According to the Modbus device manual, you can use the corresponding commands (Address code, function code, etc.) to read the data in Modbus TCP protocol.
  • 5. Convert the Modbus TCP data package to Modbus RTU, and use RS485 TO ETH to send the data pack to the device.
  • 6. Receive the Modbus RTU response from the device, and convert it to Modbus TCP format.
The serial port sends 01 03 10 01 00 07 51 08
ETH receives 00 00 00 00 00 06 01 03 10 01 00 07

RS232-485 to ETH faq.png

  • 7. Deal with response data in the application.
  • 8. Note that the Modbus TCP to Modbus RTU requires the specified gateway hardware or software. In addition, you need to understand more about Modbus TCP and Modbus RTU protocol so that you can correctly configure and use the gateway devices.

{{{5}}}


 Answer:

Set one is the client, and the other one is the server. The remote IP and COM port of the client is the local IP and COM port of the server.
RS232-485 TO ETH FAQ04.png

{{{5}}}



 Answer:

Modbus TCP for remote, multi-device communication with high security, Modbus RTU for local or physical interface limitations.
RS232-485 TO ETH FAQ04.png

{{{5}}}


 Answer:
  • Check the network (ETH):

1. Can the device IP be pinged (by default)? If pingable, it indicates the device is not dead. The host software should attempt to connect to the device's IP and port to verify normal connectivity.
RS232-485 TO ETH-faq09.png
2. In the case where a TCP connection is established but no data is received, following the assessment in 1), if the TCP channel is established but no data is received, further investigation is necessary.
3. Set RS485 TO ETH to 192.168.0.7 with port number 1111; Set the computer to 192.168.0.8 with port number 1111.
4. If the network host machine fails to send data normally, consider configuring network heartbeat packet verification. If normal, data will be periodically transmitted.
5. Ensure SSCOM is added to the firewall, otherwise the firewall may block TCP connections, or test by temporarily disabling all firewalls on the computer.

  • Detecting RS485 Serial Port Issues:

1. Confirm hardware connections including serial port devices, and check if your gateway and energy meter are correctly connected. Ensure power and data lines are connected properly and there are no loose connections.
2. If the serial port terminal device receives data but does not respond properly, monitor the data from the serial port device. Use a 485 to USB serial cable, connect it to the interface of the 485 device and the computer's USB port, assign a COM port on the computer, open serial debugging assistant software, set the serial port parameters consistently, input the corresponding COM port, and monitor the data from the 485 device. 485 Wiring: T+ --A T- --B; Check if the instructions sent to 485 are correct; Are there proper responses from 485 after sending correct instructions?
3. Confirm serial port parameters such as baud rate, data bits, and stop bits: Baud rate should be configured according to the connected RS485 device, commonly used rates are 9600 and 115200; Refer to the device manual or contact RS485 device technical support for configuration, especially if set to Modbus mode, confirm if the function code matches.

{{{5}}}


 Answer:

You can establish an automatic device network failure detection system, which triggers a restart when data anomalies are detected.
RS232-485 TO ETH09.png

{{{5}}}


 Answer:

Yes, you can connect RS232 and RS485 simultaneously (same time) with Ethernet.

{{{5}}}


 Answer:

Yes, it's possible to enable termination using the jumper. The attached image shows the jumper installed.
RS232-485-jumper.jpg

{{{5}}}


Support



Technical Support

If you need technical support or have any feedback/review, please click the Submit Now button to submit a ticket, Our support team will check and reply to you within 1 to 2 working days. Please be patient as we make every effort to help you to resolve the issue.
Working Time: 9 AM - 6 PM GMT+8 (Monday to Friday)