Difference between revisions of "RS485 TO ETH (B)"

From Waveshare Wiki
Jump to: navigation, search
 
(80 intermediate revisions by 5 users not shown)
Line 1: Line 1:
 +
<div class="wiki-pages jet-green-color">
 
{{Infobox item
 
{{Infobox item
|img=[[File:RS485-TO-ETH-B-intro.jpg|300px|alt=RS485-TO-ETH-B|link=http://www.waveshare.com/RS485-TO-ETH-B.htm | RS485 TO ETH (B)]]
+
|name=[[RS485 TO ETH (B)]]
|caption=RS485 TO ETH (B)ernet Converter
+
|name2=[[RS485 TO POE ETH (B)]]
 +
|brief=Common Ethernet port
 +
|brief2=PoE Ethernet port + Electrical isolation
 +
|img=[[File:RS485-TO-ETH-B-intro.jpg|300px|alt=RS485-TO-ETH-B|{{Amazon_nolink|default={{#ifeq: {{#urlget:amazon|0}}|{{#urlget:Amazon|0}}| default|}}|url=link=http://www.waveshare.com/RS485-TO-ETH-B.htm}} | RS485 TO ETH (B)]]
 +
|img2=[[File:RS485-TO-POE-ETH-B-intro.jpg|300px|alt=RS485-TO-POE-ETH-B|{{Amazon_nolink|default={{#ifeq: {{#urlget:amazon|0}}|{{#urlget:Amazon|0}}| default|}}|url=link=http://www.waveshare.com/RS485-TO-POE-ETH-B.htm}} | RS485 TO POE ETH (B)]]
 +
|caption=RS485 to Ethernet serial server
 
|category=[[:Category:Modules|Modules]], [[:Category:Ethernet|Ethernet]]
 
|category=[[:Category:Modules|Modules]], [[:Category:Ethernet|Ethernet]]
 
|brand=Waveshare
 
|brand=Waveshare
|{{#urlget:amazon|default}}=display
+
|{{#ifeq: {{#urlget:amazon|0}}|{{#urlget:Amazon|0}}| default|}}=display
 
|website_cn=[http://www.waveshare.net/shop/RS485-TO-ETH-B.htm 官网]
 
|website_cn=[http://www.waveshare.net/shop/RS485-TO-ETH-B.htm 官网]
 
|website_en=[http://www.waveshare.com/product/RS485-TO-ETH-B.htm Website]
 
|website_en=[http://www.waveshare.com/product/RS485-TO-ETH-B.htm Website]
Line 12: Line 18:
 
{{Product List|Modules/Wired Communication/Ethernet to UART}}
 
{{Product List|Modules/Wired Communication/Ethernet to UART}}
 
}}
 
}}
== Introduction ==
+
 
 +
= Overview =
 +
{{Note|There are two versions of this product, the two are the same in software functions , and the differences in hardware as follows:
 +
* RS485 TO ETH (B):Common Ethernet port,9~24V wide voltage power supply via terminal block.
 +
* RS485 TO POE ETH (B):Hardware upgrade version, can support PoE network port power supply, can also support 6~36V wide voltage via terminal block, with electrical isolation.|warn
 +
}}
 +
[[File:RS485-TO-ETH-B-Version-en.jpg|800px]]
 +
 
 
Industrial Serial Server, RS485 To RJ45 Ethernet, TCP/IP To Serial, Rail-Mount Support
 
Industrial Serial Server, RS485 To RJ45 Ethernet, TCP/IP To Serial, Rail-Mount Support
 +
{{Amazon|{{#ifeq: {{#urlget:amazon|0}}|{{#urlget:Amazon|0}}| default|}}=display
 +
|More = [http://www.waveshare.com/RS485-TO-ETH-B.htm More]}}
 +
{{RS485 TO ETH (B) Manual}}
  
{{Amazon|{{#urlget:amazon|default}}=display
+
=Resource=
|More = [http://www.waveshare.com/RS485-TO-ETH-B.htm More]}}
+
==Documentation==
 +
*[https://files.waveshare.com/upload/4/4d/RS485-to-eth-b-user-manual-EN-v1.33.pdf User Manual]
 +
*[https://files.waveshare.com/upload/a/a6/EN-RS485-TO-ETH-B-MQTT-and-json-user-manual2.pdf MQTT and JSON Manual]
 +
<!-- 
 +
*[https://files.waveshare.com/upload/4/4d/RS485-to-eth-b-user-manual-EN-v1.33.pdf User Manual]
 +
*[https://files.waveshare.com/upload/6/66/RS485-to-eth-b-user-manual-EN-v1.3.pdf User Manual]
 +
*[https://files.waveshare.com/upload/9/94/EN-RS485-TO-ETH-B-MQTT-and-json-user-manual.pdf MQTT and JSON Manual]
 +
-->
  
==Resources==
+
==Software==
*[[File:Rs232_485-to-eth-user-manual-en-v1.0.pdf | User Manual]]
 
 
{{RS485-TO-ETH-B_software}}
 
{{RS485-TO-ETH-B_software}}
 +
<!--*[https://files.waveshare.com/upload/4/40/2043_waveshare_web_zx.zip web]-->
 +
 +
==Certificate==
 +
*[https://files.waveshare.com/upload/e/e2/RS485_TO_ETH_%28B%29_CE_EMC.pdf CE EMC]
 +
==Related Application==
 +
*[https://www.waveshare.com/wiki/RS485_TO_ETH_(B)_Connect_Alibaba_Cloud_And_EMQX RS485 TO ETH (B) Connect Alibaba Cloud And EMQX]
 +
*[https://files.waveshare.com/wiki/RS485-TO-ETH-B/Manual/RS485%20TO%20ETH%20code%20Serial%20port%20modification%20parameters%20and%20hardware%20TCPIP%20protocol%20stack.docx Command and Control Instruction Manual]
 +
 +
=FAQ=
 +
{{FAQ|Why the speed cannot reach 100M, it is not as advertised?|
 +
Just like USB2.0 devices support USB3.0/USB2.0 interface;It can be connected to a 100M network port and is suitable for use. It is compatible with 100M switches, routers and other gateway interfaces. However, the network speed can reach more than 100M. This is a serial port to Ethernet module, and the speed is within 10M.|||}}
 +
 +
{{FAQ|RS485 TO ETH (B)LINK is yellow, what should I do if I cannot access the network? |
 +
1)Set static IP, for example:
 +
RS485 TO ETH (B) set to 192.168.1.200 port number 1111;<br>
 +
The computer is set to 192.168.1.199 port number 1111;
 +
 +
2)Tested with the TCP server shared by the Internet community:  [https://tcpbin.com  45.79.112.203] port number 4242
 +
 +
3)Please close all firewalls of the computer, if the firewall is open, the device may not be scanned
 +
[[File:turn-off-all-firewalls .png|600px]]<br>[[File:add_firewalls.png|600px]]<br>
 +
4)If necessary, restore the module to factory settings to avoid problems caused by abnormal module configuration.
 +
 +
|||}}
 +
 +
{{FAQ|RS485 TO ETH (B) How to restore factory settings? |
 +
1) After power on, short the NC pin for 5 seconds: <br>
 +
[[File:RS485_B_NC.png]]<br>
 +
2) Get the default parameters and modify the settings: <br>
 +
[[File:600px-RS485_B_modify_setting.png]]
 +
|||}}
 +
 +
{{FAQ|What is the power of RS485 TO ETH (B)? |
 +
The detailed data is as follows:<br>
 +
[[File:RS485-TO-ETH-B-POWER-EN.png]]
 +
|||}}
 +
{{FAQ|What should I do if the web configuration interface cannot be opened? |
 +
Configuration and download other firmware such as MQTT and Jetson Modbus cover the configuration interface web page file, you need to re-download [[:File:2043_waveshare_web_zx.zip | "configuration interface web file"]] to RS485 TO ETH (B):<br>
 +
[[File:Web-config-tool.png]]<br>
 +
|||}}
 +
 +
<!--
 +
{{FAQ|After configuring the server IP as a client, the LINK indicator turns yellow, what should I do if I have not connected to the network? |
 +
It is generally a server problem. If you fail to connect to the server, you can try the following server IP and port numbers:
 +
120.76.100.197  10002
 +
[[File:485(B)_IP_Port.png]]
 +
|||}}
 +
 +
{{FAQ|Network exception, no data transmission, how to restart automatically?|
 +
 +
After checking the restart without data function, set the interval time, such as 1 minute. If the device does not receive or receive data within one minute (network abnormality), it will restart automatically, as shown in the following figure:<br/>
 +
[[File:restar_for_no_date.png|600px]]
 +
|||}}
 +
-->
 +
{{FAQ|What specification guide rail is it suitable for?
 +
|Can be connected to 35mm wide rails:<br>
 +
 +
||}}
 +
{{FAQ|Can multiple RS485 devices be connected to the RS485 interface?
 +
|
 +
1. Multiple RS485 devices can be cascaded and need to be connected to external RS485 devices in a handshake cascade as shown in the figure below.<br/>
 +
[[File: RS485 TO WIFI-ETH-02.png]]<br/>
 +
2. With Modbus protocol, up to 32 RS485 devices can be connected.<br/>
 +
3. If it is a modbus rtu/645 application, support up to 25 registers.
 +
 +
||}}
 +
{{FAQ|What should I do if I can't receive data and the communication is abnormal?
 +
|
 +
*Check the network (ETH)
 +
1) check the status of the indicator light, the link light blue is always on that tcp channel is established; Vircom software on the automatic search view, TCP has been established, indicating that the channel is established.<BR/>
 +
2) If the link light is not blue always on, it is yellow-green/not on, then first vircom software/webpage login to see if you can log in, ping the device IP, whether this ping through? If you can search, ping through, indicating that the device is not dead, the upper computer software to connect the device IP and port, to see if it can be connected normally.<BR/>
 +
3) TCP connection channel established, no data up, according to the above 1 after the judgment, found that the TCP channel is established, but no data up, then need to troubleshoot.<BR/>
 +
4) RS485 TO ETH (B) is set to 192.168.1.200 port number 1111; the computer is set to 192.168.1.199 port number 1111.<BR/>
 +
5) The network supervisor is not sending data normally? can configure network heartbeat packet verification, if normal, it will send down data regularly.<BR/>
 +
6) SSCOM needs to be added to the firewall, otherwise, the firewall will organize the TCP connection, or close all firewall tests on the computer.<BR/>
 +
*Check the device (RS485)
 +
1) Confirm hardware connections such as serial devices and check that your gateway and energy meter are properly connected. Ensure that the power and data cables are connected correctly and that there are no loose connections.<BR/>
 +
2) The serial terminal device received data and did not answer properly? Then you need to listen to the serial device data judgment, find a 485 to USB serial cable and received a 485 device interface to the computer USB, computer mapping a com port number, open the serial debugging assistant software - set the serial port parameters to maintain consistency, enter the corresponding com port - listen to the 485 device data to see. 485 wiring: T + - A T - - B; - see 485 this side is received by the next command is correct; correct command sent, 485 whether the normal answer?<BR/>
 +
3) Confirm the baud rate, data bits, stop bits, and other serial parameters configuration: baud rate should be configured according to the access RS485 device, commonly used is 9600 and 115200; specifically check the device manual or contact RS485 device technical support to confirm; if set to Modbus mode, please confirm whether the function code matches.<BR/>
 +
||}}
 +
 +
{{FAQ|What is the default access IP of the webpage? |
 +
*The default is from 192.168.1.200 to 192.168.1.207;If the factory settings have been restored, the default IP is 192.168.1.254.
 +
* If it doesn't work, please use [https://files.waveshare.com/upload/4/42/VirCom_en.rar Vircom]to search for the device first to get the corresponding IP:
 +
[[File:485_B_IP.png|600px]]<br/>
 +
[[File:485_B_IP2.png|600px]]<br/>
 +
*If it still doesn't work, please restore the module to factory settings, and then burn the corresponding web page
 +
|||}}
 +
 +
{{FAQ|How can I change the login password of the webpage?
 +
|
 +
*The default is no password, log in directly to the main page, enter "new password, and confirm the new password (123456789)" at the bottom of the page.
 +
*After modifying, you can't log in with an empty password or other passwords; you can log in with 123456789 and change it successfully.
 +
[[File:RS485 to eth b faq03.gif]]
 +
||}}
 +
 +
{{FAQ|Why can't I get power with a network cable?
 +
|
 +
To use a router or switch that complies with the 802.3af/at network standard. <br>
 +
[[File:RS485 TO ETH (B)-faq6.png]]<br>
 +
[[File:RS485 TO ETH (B)-faq05.png]]<br>
 +
||}}
 +
 +
{{FAQ| How do you use two modules, one as a server and the second as a client?
 +
|
 +
Connect both modules and computers to the same gateway such as switch or router, so that they are in the same LAN, and set all devices to the same subnet IP (e.g. 192.168.200.XXX).<br>
 +
Set one module as the client and the other module as a server, the destination IP and port number of the client is the local IP and port number of the server:<br>
 +
[[File:RS485-to-eth-b-faq7.png]]
 +
*After the configuration is OK, the data received on the client's side of the serial port will be transmitted to the server's side of the serial port, and vice versa.
 +
||}}
 +
{{FAQ|How to establish communication between RS485 TO ETH (B) and modbus instrument?
 +
|
 +
1) Connect RS485 TO ETH (B) and Modbus instrument.<br>
 +
2) Configure the IP address and port number of RS485 TO ETH (B) to ensure it is connected to the local network.<br>
 +
3) Use Modbus TCP protocol to connect to the instrument via RS485 TO ETH (B) and configure the serial port baud rate and other parameters correctly.<br>
 +
4) Combine with the Modbus device manual, and use the corresponding read command (address code, function code) in Modbus TCP protocol to read data from the instrument.<br>
 +
5) Convert the Modbus TCP packet to Modbus RTU and send the packet to the instrument using RS485 TO ETH (B).<br>
 +
6) Receive the Modbus RTU response from the instrument and convert it back to Modbus TCP format.<br>
 +
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
 +
||}}
  
==FAQ==
+
{{FAQ|Why my MQTT communication is abnormal?
 +
|
 +
Please test by replacing a different MQTT server.<br>
 +
Maybe your MQTT firmware configuration is wrong, please refer to the following steps to configure:<br>
 +
[[File:RS485 TO ETH (B)-faq08.png]]<br>
 +
||}}
 +
{{FAQ|How to deal with packet loss?
 +
|
 +
*On the network side, you can use Wireshark software to capture network packets exchanged between the host computer and the gateway. This is usually done when the host computer software is directly connected to the gateway, or through a mirroring switch (HUB) to capture packets and observe the data transmission and reception.<br>
 +
*On the serial port side, you can monitor by finding a 485 to USB serial cable, connecting it to the 485 device interface on the computer via USB, mapping a COM port on the computer, opening a serial port debugging assistant software, setting the serial port parameters to be consistent, and inputting the corresponding COM port to monitor the data from the 485 device. The 485 wiring is as follows: T+ to A, T- to B; Check whether the commands received on the 485 side are correct. If the correct commands are issued, check whether the 485 device responds normally.
 +
||}}
 +
{{FAQ|Storage Modbus gateway, non-storage Modbus gateway, device for the client as a slave, simple Modbus RTU to TCP, configurable Modbus gateway, what is the difference between these?
 +
|
 +
*Storage-type Modbus gateway and non-storage-type Modbus gateway have differences in whether they can store the read register contents internally. The storage-type Modbus gateway can store this content, significantly improving the speed of Modbus TCP queries, especially when supporting multiple host accesses, providing superior performance. 
 +
*Non-storage-type Modbus gateway: Although storage-type Modbus has faster response speeds, some users may not want RTU devices to receive a large number of query instructions, which could impact internal device processing speed. In such cases, the storage-type function can be disabled.
 +
*A simple Modbus RTU to TCP conversion lacks a mechanism for multiple hosts.
 +
*Device for the client as a slave: typically used in applications where a serial port host reads from a Modbus TCP slave.
 +
*Configurable Modbus gateway functions: according to the standard instructions you configure, periodically send commands via the serial port for data collection. Your network host then reads the collected data via Modbus TCP (programmable, supporting writing to registers with a recommended address quantity not exceeding 30).
 +
||}}
  
==Support==
+
=Support=
{{Service00}}
+
{{Servicebox1}}

Latest revision as of 01:39, 12 April 2024

RS485 TO ETH (B)
Common Ethernet port
RS485-TO-ETH-B

RS485 to Ethernet serial server
RS485 TO POE ETH (B)
PoE Ethernet port + Electrical isolation
RS485-TO-POE-ETH-B
{{{name3}}}

{{{name4}}}

{{{name5}}}

Overview

There are two versions of this product, the two are the same in software functions , and the differences in hardware as follows:
  • RS485 TO ETH (B):Common Ethernet port,9~24V wide voltage power supply via terminal block.
  • RS485 TO POE ETH (B):Hardware upgrade version, can support PoE network port power supply, can also support 6~36V wide voltage via terminal block, with electrical isolation.

RS485-TO-ETH-B-Version-en.jpg

Industrial Serial Server, RS485 To RJ45 Ethernet, TCP/IP To Serial, Rail-Mount Support

More

Introduction

This is an RS485 device data collector/IoT gateway specially designed for the industrial environment, which combines serial server, Modbus gateway, MQTT gateway, RS485 to JSON, and other functions. It has an RS485 interface and an Ethernet interface. It adopts the rail-type installation, which is compact and easy to install. It is very suitable for the collection of various RS485 instruments and sensors in the industrial field, including the collection of the local network or the autonomous collection of uploading to the cloud server.

Parameters

Model UART TO ETH (B) RS232 TO ETH (B) RS485 TO ETH (B) RS232 TO POE ETH (B) RS485 TO POE ETH (B) RS232/485/422 TO POE ETH (B)
UART-TO-ETH-B-1 120.jpg RS232-TO-ETH-B-1 120.jpg RS485-TO-ETH-B-1 120.jpg RS232-TO-POE-ETH-B-1 120.jpg RS232-TO-POE-ETH-B-1 120.jpg RS232-485-422-TO-POE-ETH-B-1 120.jpg
Product Description Castellated holes module Common version PoE Network port + isolated RS232 PoE Network port + isolated RS485 PoE Network port + isolated RS232/485/422
Enclosure - Rail-mount plastic case Aluminium alloy case
(supports wall-mount and rail-mount installations)
Basic Function Bi-directional transparent data transmission between serial port and Ethernet
Ethernet Common network port PoE network port, support IEEE 802.3af standard
Isolation Protection N/C Power isolation, Signal isolation
UART Port TTL RS232 RS485 Isolated RS232 Isolated RS485 Isolated RS232/485/422
Power Supply Pinheader / pads Screw terminal Screw terminal, or PoE port DC power port, screw terminal, or PoE port
Dimensions 34×23×11.5mm 87×36×59mm 88.7×72.5×24.2mm
Application Scenarios Can be used as Serial server, Modbus gateway, MQTT gateway, suitable for applications like data acquisition, IoT gateway, safety & security IoT, and intelligent instrument monitoring...
UART Specification
Baudrate 300 ~ 115200 bps
Parity Bit None, odd, even, mark, space
Data Bit 5 ~ 9 bits
Flow Control Support N/A
Software
Protocol ETHERNET, IP, TCP, UDP, HTTP, ARP, ICMP, DHCP, DNS
Configuration Host, web browser, device management functions library
Communication Method TCP/IP direct communication, VCOM
Operating Mode TCP server, TCP client, UDP Group, UDP
Modbus Gateway Modbus TCP to RTU
Other Functions User-defined heartbeat/registration packet, User-defined web page...
Other
Operating Temperature -40℃ ~ 85℃
Humidity Range 5% ~ 95% relative humidity


Hardware Description

ETH TO 485 POE.png

Indicator light State description
Power Light Power Indicator
Link light (1) Link is green when the network cable is connected.

(2) When the TCP connection is established (or in UDP mode), Link is blue (actually with faint green light). Can be used to judge whether the serial port server has established communication with the host computer software communication link.

Active light (1) When the network port sends data to the serial port, the light is green. Shiny time than actual communication

The time delay is 1 second longer, making it easier to spot short data communications.
(2) When the serial port sends data to the network port, the indicator light is blue and green at the same time. due to blue It is brighter, so if you see blue, it means that there is a serial port returning data to the network port. This can judge whether the device has a response to the command of the host computer, if there is no response, it indicates that the string The port baud rate is incorrect or the serial port is not connected properly.

Software Features

  • Support TCP server, TCP client, UDP mode, and UDP multicast. When acting as a TCP client, it also supports TCP server-side functions. Supports 30 TCP connections as a TCP server and 7 destination IPs as a TCP client.
  • The baud rate supports 300~115200bps, the data bit supports 5~9 bits, and the check digit can be no check, odd check, even check, mark, or space.
  • Support the function of sending MAC address when the device is connected, which is convenient for cloud management of the device.
  • Provides a secondary development kit DLL development library for searching and configuring devices on the computer side.
  • Support Web browser configuration, support DHCP to obtain IP dynamically, and DNS protocol to connect domain name server address.
  • Support cloud remote search for devices, the configuration of device parameters, and device program upgrades.
  • Support remote viewing of the device's TCP connection status, and serial port data sending and receiving status through software. The virtual serial port supports the data monitoring function.

Advanced Software Function

  • Support Modbus gateway function, support Modbus RTU to Modbus TCP. It can support storage-type Modbus, and can automatically collect device data and store it; it also supports a non-storage mode Modbus gateway.
  • Support multi-host function: In the query mode of one question and one answer, the support network port allows multiple computers to access the same serial device at the same time.
  • Support MQTT gateway function.
  • Support JSON to Modbus RTU and 645-meter protocol, support HTTP POST, and HTTP GET format to upload data.
  • Support NTP protocol to obtain network time, which is used for serial output, and the latter is used for protocol content upload.
  • Support custom heartbeat package and registration package function: It is convenient to communicate with the cloud and identify devices.
  • It supports the function that password authentication is required to establish a connection through TCP to ensure connection security.
  • It supports the function of data submission and delivery in HTTP mode, and the cloud can directly use the HTTP GET command to interact with the serial port data of the device.

Application

  • As an IoT gateway as a communication bridge between devices and the cloud.
  • Power, Smart Meter, and Energy Monitoring.
  • Remote monitoring and program download of various automation PLCs.
  • Various configuration software and equipment communication interfaces.
  • Access control security field equipment networking.

Quick Test

Hardware Connection

  • Here RS485 TO ETH (B) is taken as an example, and RS485 TO POE ETH (B) is connected in the same way.

Generally speaking, the serial server only needs to connect the power supply, serial port, and network cable. Among them, the power supply can use the field 2-wire power supply, which can be directly connected to the positive and negative terminals of the power supply. The serial port needs to be connected according to the user's serial port device. Connect 485 positive to 485A and 485 negative to 485B. The network port is connected to a common network cable, which can be directly connected to the computer or connected to the network through a switch.
RS485 TO ETH (B)010.jpg
RS485 TO ETH (B)011.jpg

Software Installation

Vircom can be used to configure parameters such as device IP and create virtual serial ports. If you don't need the virtual serial port function, you can just download the free version configuration software.

The driver installation needs to be decompressed. Double-click the software to install. If the virtual serial port in Vircom is not displayed, restart it and check it again.

Examples

TCP Communication Test

Software Preparation

Operating steps

After Vircom is installed and the device hardware connection is finished, the software is run as shown in the figure, and then you can click "Device Management" as shown in the figure. With Vircom, it is very convenient to search and configure device parameters in different network segments, as long as the device and the computer running Vircom are under the same switch.
RS485 TO ETH (B) Manual102.png
RS485 TO ETH (B) Manual100.png
RS485 TO ETH (B) Manual103.png
The following tests also require a USB TO RS485 device.

RS485 TO ETH (B) Manual01010.jpg
The serial port to network port and network port to serial port data transparent forwarding function of the serial port server. Assuming that the COM port (USB TO RS485) of the PC is now connected to the serial port of the serial port server, then open the serial port debugging assistant window and open the corresponding COM port, as shown below:
In addition, open another serial port debugging assistant window and use it as a TCP client mode, fill in the destination IP as the IP of the serial port server (currently 192.168.1.200), the destination port as 4196, and then click the "Open" button, as shown in the figure below:

RS485 TO ETH (B) Manual104.jpg
In the serial debugging assistant SSCOM2 set as TCPClient, enter "TCPClient: Waveshare Test" and click send, then the data will be transferred to the RS485 interface through the serial server's network port, and then sent to the USB TO RS485, and then displayed in the serial debugging assistant SSCOM1 out; conversely, enter "USB TO RS485:Waveshare Test" in SSCOM1, click send, you can also send to SSCOM2, and display it.

Virtual Serial Port Test

The SSCOM2 in the figure communicates directly with the serial port server through TCP. In order to allow the user's already developed serial port software to communicate with the serial port server, a virtual serial port needs to be added between the user program and the serial port server. As shown in the figure, Vircom, and user programs run on one computer, Vircom virtualizes a COM port and makes this COM port correspond to the serial port server. When the user program opens COM communication, it can be sent to the user's serial device through the Vircom serial server. The steps to do this are shown below:
RS485 TO ETH (B) Manual 102.jpg
Click the "UART management" in the Vircom interface, click "add", and then choose COM2. Among them, COM5 is the COM port that did not exist in the computer.
RS485 TO ETH (B) Manual 103.png
Then enter the device management, and double-click the device that needs to be bound to COM2. As shown in the figure, select COM2 in the "Virtual Serial Port" list in the upper left corner. Then click "Modify Settings", and then click "Restart Device". and return to the main interface of Vircom. It can be seen that COM2 has been connected to the device whose IP is 192.168.1.200. In this case, COM2 can be used instead of SSCOM2 for communication.
RS485 TO ETH (B) Manual 104.png
Open SSCOM to simulate the user's serial port program, open COM2 (the virtual serial port above), open another SSCOM to simulate a serial port device, and open COM3 (hardware serial port). At this time, the data link sent by COM2 is as follows: COM2 —>Vircom —>the network port of the serial server—>the serial port of the serial server—>COM3.
Conversely, COM3 to COM2 can also transmit data: COM3 -> the serial port of the serial server-> the network port of the serial server-> Vircom -> COM2. As shown in the figure below, both parties send and receive data. If COM4 is replaced with the user serial device, then COM5 can realize the communication with the user device.
RS485 TO ETH (B) Manual 105.jpg

MODBUS TCP Test

By default, the data between the serial port and network port is transparently transmitted. If you need to convert Modbus TCP to RTU, you need to select the conversion protocol as "Modbus TCP<-->RTU" in the device settings dialog box, as shown in the figure below. At this time, the device port automatically changes to 502. At this time, the user's Modbus TCP tool is connected to the IP port 502 of the serial server and the sent Modbus TCP command will be converted into an RTU command and output from the serial port. For example, if the serial port server network port receives the Modbus TCP command of 00 00 00 00 00 0601 03 00 00 0a, the serial port outputs the command of 01 03 00 00 00 0a c5 cd. Note: The serial port may send multiple 01 03 00 00 00 0a c5 cd commands because the default Modbus adopts the storage mode, which will automatically train the query commands. How to switch to non-storage mode will be explained later.
RS485 TO ETH (B) Manual 050.png
If the user's Modbus TCP software is used as a slave station (Slave), it is necessary to select the conversion protocol, then change the working mode to the client, the destination IP to the IP of the computer where the Modbus TCP software is located, and the destination port to 502, as shown in the figure below shows.
RS485 TO ETH (B) Manual 051.png

WEB Configuration

Using Vircom, you can search and configure device parameters in different network segments. For Web configuration, you must first ensure that the computer and the serial server are in the same IP segment, and you need to know the IP address of the serial server in advance. But web configuration can be done on any computer without Vircom.
1. Enter the IP address of the serial server in the browser, such as http://192.168.1.200 RS485 TO ETH (B) Manual 0051.jpg
2. Enter a password in Password: There is no login password set by default in the factory, you can enter a password at will, and click the Login button to log in. After setting the password to log in, the settings at "Modify webpage login password" will take effect:
RS485 TO ETH (B) Manual 052.png
3. The serial server parameters can be modified on the web page that appears. For the relevant parameters, please refer to Table 4 for the meaning of the parameters.
4. After modifying the parameters, click the "Submit Modification" button.
5. If configuring and downloading MQTT and Jetson Modbus firmware overwrites the webpage file of the configuration interface, resulting in the failure to open the configuration webpage, please follow the steps below to re-download the webpage file:

Web-config-tool.png

For more using instructions, please refer to user manual

Resource

Documentation

Software

Certificate

Related Application

FAQ

 Answer:
Just like USB2.0 devices support USB3.0/USB2.0 interface;It can be connected to a 100M network port and is suitable for use. It is compatible with 100M switches, routers and other gateway interfaces. However, the network speed can reach more than 100M. This is a serial port to Ethernet module, and the speed is within 10M.


 Answer:

1)Set static IP, for example: RS485 TO ETH (B) set to 192.168.1.200 port number 1111;
The computer is set to 192.168.1.199 port number 1111;

2)Tested with the TCP server shared by the Internet community: 45.79.112.203 port number 4242

3)Please close all firewalls of the computer, if the firewall is open, the device may not be scanned Turn-off-all-firewalls .png
Add firewalls.png
4)If necessary, restore the module to factory settings to avoid problems caused by abnormal module configuration.


 Answer:

1) After power on, short the NC pin for 5 seconds:
RS485 B NC.png
2) Get the default parameters and modify the settings:
600px-RS485 B modify setting.png


 Answer:

The detailed data is as follows:
RS485-TO-ETH-B-POWER-EN.png


 Answer:

Configuration and download other firmware such as MQTT and Jetson Modbus cover the configuration interface web page file, you need to re-download "configuration interface web file" to RS485 TO ETH (B):
Web-config-tool.png


 Answer:
Can be connected to 35mm wide rails:

{{{5}}}


 Answer:

1. Multiple RS485 devices can be cascaded and need to be connected to external RS485 devices in a handshake cascade as shown in the figure below.
RS485 TO WIFI-ETH-02.png
2. With Modbus protocol, up to 32 RS485 devices can be connected.
3. If it is a modbus rtu/645 application, support up to 25 registers.

{{{5}}}


 Answer:
  • Check the network (ETH)

1) check the status of the indicator light, the link light blue is always on that tcp channel is established; Vircom software on the automatic search view, TCP has been established, indicating that the channel is established.
2) If the link light is not blue always on, it is yellow-green/not on, then first vircom software/webpage login to see if you can log in, ping the device IP, whether this ping through? If you can search, ping through, indicating that the device is not dead, the upper computer software to connect the device IP and port, to see if it can be connected normally.
3) TCP connection channel established, no data up, according to the above 1 after the judgment, found that the TCP channel is established, but no data up, then need to troubleshoot.
4) RS485 TO ETH (B) is set to 192.168.1.200 port number 1111; the computer is set to 192.168.1.199 port number 1111.
5) The network supervisor is not sending data normally? can configure network heartbeat packet verification, if normal, it will send down data regularly.
6) SSCOM needs to be added to the firewall, otherwise, the firewall will organize the TCP connection, or close all firewall tests on the computer.

  • Check the device (RS485)

1) Confirm hardware connections such as serial devices and check that your gateway and energy meter are properly connected. Ensure that the power and data cables are connected correctly and that there are no loose connections.
2) The serial terminal device received data and did not answer properly? Then you need to listen to the serial device data judgment, find a 485 to USB serial cable and received a 485 device interface to the computer USB, computer mapping a com port number, open the serial debugging assistant software - set the serial port parameters to maintain consistency, enter the corresponding com port - listen to the 485 device data to see. 485 wiring: T + - A T - - B; - see 485 this side is received by the next command is correct; correct command sent, 485 whether the normal answer?
3) Confirm the baud rate, data bits, stop bits, and other serial parameters configuration: baud rate should be configured according to the access RS485 device, commonly used is 9600 and 115200; specifically check the device manual or contact RS485 device technical support to confirm; if set to Modbus mode, please confirm whether the function code matches.

{{{5}}}


 Answer:
  • The default is from 192.168.1.200 to 192.168.1.207;If the factory settings have been restored, the default IP is 192.168.1.254.
  • If it doesn't work, please use Vircomto search for the device first to get the corresponding IP:

485 B IP.png
485 B IP2.png

  • If it still doesn't work, please restore the module to factory settings, and then burn the corresponding web page


 Answer:
  • The default is no password, log in directly to the main page, enter "new password, and confirm the new password (123456789)" at the bottom of the page.
  • After modifying, you can't log in with an empty password or other passwords; you can log in with 123456789 and change it successfully.

RS485 to eth b faq03.gif

{{{5}}}


 Answer:

To use a router or switch that complies with the 802.3af/at network standard.
RS485 TO ETH (B)-faq6.png
RS485 TO ETH (B)-faq05.png

{{{5}}}


 Answer:

Connect both modules and computers to the same gateway such as switch or router, so that they are in the same LAN, and set all devices to the same subnet IP (e.g. 192.168.200.XXX).
Set one module as the client and the other module as a server, the destination IP and port number of the client is the local IP and port number of the server:
RS485-to-eth-b-faq7.png

  • After the configuration is OK, the data received on the client's side of the serial port will be transmitted to the server's side of the serial port, and vice versa.

{{{5}}}


 Answer:

1) Connect RS485 TO ETH (B) and Modbus instrument.
2) Configure the IP address and port number of RS485 TO ETH (B) to ensure it is connected to the local network.
3) Use Modbus TCP protocol to connect to the instrument via RS485 TO ETH (B) and configure the serial port baud rate and other parameters correctly.
4) Combine with the Modbus device manual, and use the corresponding read command (address code, function code) in Modbus TCP protocol to read data from the instrument.
5) Convert the Modbus TCP packet to Modbus RTU and send the packet to the instrument using RS485 TO ETH (B).
6) Receive the Modbus RTU response from the instrument and convert it back to Modbus TCP format.

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 

{{{5}}}


 Answer:

Please test by replacing a different MQTT server.
Maybe your MQTT firmware configuration is wrong, please refer to the following steps to configure:
RS485 TO ETH (B)-faq08.png

{{{5}}}


 Answer:
  • On the network side, you can use Wireshark software to capture network packets exchanged between the host computer and the gateway. This is usually done when the host computer software is directly connected to the gateway, or through a mirroring switch (HUB) to capture packets and observe the data transmission and reception.
  • On the serial port side, you can monitor by finding a 485 to USB serial cable, connecting it to the 485 device interface on the computer via USB, mapping a COM port on the computer, opening a serial port debugging assistant software, setting the serial port parameters to be consistent, and inputting the corresponding COM port to monitor the data from the 485 device. The 485 wiring is as follows: T+ to A, T- to B; Check whether the commands received on the 485 side are correct. If the correct commands are issued, check whether the 485 device responds normally.

{{{5}}}


 Answer:
  • Storage-type Modbus gateway and non-storage-type Modbus gateway have differences in whether they can store the read register contents internally. The storage-type Modbus gateway can store this content, significantly improving the speed of Modbus TCP queries, especially when supporting multiple host accesses, providing superior performance.
  • Non-storage-type Modbus gateway: Although storage-type Modbus has faster response speeds, some users may not want RTU devices to receive a large number of query instructions, which could impact internal device processing speed. In such cases, the storage-type function can be disabled.
  • A simple Modbus RTU to TCP conversion lacks a mechanism for multiple hosts.
  • Device for the client as a slave: typically used in applications where a serial port host reads from a Modbus TCP slave.
  • Configurable Modbus gateway functions: according to the standard instructions you configure, periodically send commands via the serial port for data collection. Your network host then reads the collected data via Modbus TCP (programmable, supporting writing to registers with a recommended address quantity not exceeding 30).

{{{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 AM GMT+8 (Monday to Friday)