Google Chat: zj734465502@gmail.com
+86-0755-88291180
sales01@spotpear.com
dragon_manager@163.com
services01@spotpear.com
manager01@spotpear.com
WhatsApp:13246739196
This is a multi-functional device data acquisitor/IoT gateway with 4-ch RS485 and an Ethernet port (PoE version optional), small in size, easy to install, and cost-effective. It is suitable for applications like data acquisition, IoT gateway, safety & security IoT, and intelligent instrument monitoring, meeting various application scenarios.
Model | 4-CH RS485 TO ETH (B) | 4-CH RS485 TO POE ETH (B) |
---|---|---|
Product Type | Serial server, Modbus Gateway, MQTT Gateway | |
Basic Function | Bi-directional transparent data transmission between RS485 and Ethernet | |
Communication Interface | RS485 port × 4, Ethernet port × 1 | |
Power Supply | DC 6 ~ 45V screw terminal | |
Without PoE | With PoE | |
Isolation Protection | Power isolation, Signal isolation | |
COMMUNICATION | ||
Ethernet | Common Ethernet Port | RJ45 with PoE support, IEEE 802.3af compliant |
10/100M auto-negotiation RJ45 connector, 2 KV surge protection | ||
UART Port | Isolated RS485 (the 4 channels can receive and transmit independently at the same time) | |
UART | ||
Baud Rate | 300 ~ 115200 bps | |
Parity Bit | none, odd, even, mark, space | |
Data Bit | 5 ~ 9 bits | |
Flow Control | 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 (coexisting with TCP server), UDP, UDP multicast | |
OTHERS | ||
Operating Temperature | -40℃ ~ 85℃ | |
Humidity Range | 5% ~ 95% relative humidity | |
Dimensions | L × W × H: 91.0 × 64.5 × 24.2 mm |
Note: This module features four channels, and each channel enjoys the above functions separately.
Here is an example of 4-CH RS485 TO POE ETH (B). 4-CH RS485 TO ETH (B) is connected in the same way. The following connection diagram is for testing purposes only, if the actual application needs to consider the use of the environment to ensure that the module can work properly.
Generally, a serial port server typically requires a connection to power, a serial port, and an Ethernet cable. For power, directly connect the positive and negative terminals. As for the serial port, it needs to be connected based on the user's serial device. Connect 485-1 A to 485-2 A, and 485-1 B to 485-2 B. For the Ethernet connection, use a standard Ethernet cable. You can either directly connect it to a computer or route it through a switch to connect to the network.
Vircom can be used to configure the parameters such as the device IP and create the virtual serial port. If there is no serial port function, you can download the non-installation config software.
Driver installation needs to be decompressed, double-click the software to install, if the virtual serial port in Vircom is not displayed, restart and check again.
After Vircom is installed and the device hardware is connected, run the software as shown in the figure, and then click on "Device Management" as shown in the figure. It is very convenient to use Vircom 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.
UART to ETH and ETH to UART of the serial server and the data transparent forwarding function is shown below:
In addition, you need to open another serial assistant window as the TCP client. Enter the target IP as the IP of the serial server (192.168.1.200 and 192.168.1.201), the target port 4196, and click "Open". As shown below:
If you input "TCPClient:Waveshare_RS485_1" in SSCOM1, which is set as TCPClient, and click Send, the data will be transferred to the RS485 interface through the network port of the serial server and then sent to another TCPClient. Then it will be displayed in SSCOM2 of the serial debugging assistant; conversely, input "TCPClient:Waveshare_RS485_2" in SSCOM1 and click Send to send it to SSCOM2, and it will be displayed.
SSCOM2 in the figure communicates directly with the serial port server through TCP. In order to enable 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, and Vircom virtualizes a COM port, making this COM port correspond to the serial port server. When the user program opens the COM communication, it can be sent to the user's serial device through the Vircom serial server. The following demonstrates this operation step:
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.
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", 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.
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. The following figure shows how both sides send and receive data. If COM4 is replaced with a user serial device, COM5 can be used to communicate with the user device.
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.
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:
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
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:
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 configuration interface web page file, resulting in the configuration web page not opening, follow these steps to re-download the web page file:
The default configuration for the four RS485 ports is as follows:
We should rely on the details obtained through Vircom search for precise configurations:
Long-press the reset button for 5s, as shown below:
Monday-Friday (9:30-6:30) Saturday (9:30-5:30)
Email: services01@spotpear.com