background image

RS485 TO ETH ( B)

Figure 8 Device parameters

In this interface, the user can set the parameters of the device, and then click "Modify

Setting" , the parameters will be set to the flash of the device, and they will not be lost after
power failure. At the same time, the device will automatically restart.

The main configuration parameters here are: baud rate, data bit, parity bit in serial port

settings; IP address, subnet mask, gateway in network settings; sometimes according to
computer software, you also need to configure the work of the serial server model.

The detailed meanings of other parameters are as follows:

Table 4 Parameter meaning

parameter name Ranges

meaning

Virtual serial

port Unused, created

virtual serial port

You can bind the current device with a created
virtual serial port. Please add a COM port in the
"Serial Port Management" on the main interface
first.

Device model

Only display the model of the core module

Device name

Any

You can give the device an easy-to-read name, up
to 9 characters long

Device ID

Factory unique ID, cannot be modified.

Firmware

version

The firmware version of the core module

Supported

Refer to Table 5 Supported functions of the

13

/

52

www.waveshare.com

Summary of Contents for UART TO ETH

Page 1: ...RS485 TO ETH B UART TO ETH B User Manual Figure 1 UART TO ETH B 1 52 www waveshare com...

Page 2: ...ultiple computer masters to access an RS485 slave device at the same time In this application scenario you need to add some TTL to RS485 circuits or use our ready made RS485 to network port modules su...

Page 3: ...is connected to the computer through a network cable The software on the computer establishes a connection with UART TO ETH B through TCP IP or virtual serial port After that any data sent by the ser...

Page 4: ...RS485 TO ETH B 2 2 SOFTWARE FEATURES 3 52 www waveshare com...

Page 5: ...onnection status serial port data sending and receiving status through software Virtual serial port supports data monitoring function 2 3 ADVANCED SOFTWARE FEATURES Support Modbus gateway function sup...

Page 6: ...port RXD TXD GND Serial port parameters Baud rate 300 115200bps Check Digit None Odd Even Mark Space Data bits 5 9 bits Flow control optional software Protocol ETHERNET IP TCP UDP HTTP ARP ICMP DHCP D...

Page 7: ...P IP COMMUNICATION MODE 28 5 2 1 TCP CLIENT MODE 28 5 2 2 CLIENT CONNECTS TO MULTIPLE SERVERS 29 5 2 3 TCP SERVER MODE 31 5 2 4 ACTING AS BOTH A CLIENT AND A SERVER 31 5 2 5 UDP MODE 32 6 1 NETWORK PH...

Page 8: ...istration package 43 8 1 1 Send MAC address on connection 43 8 1 2 Realcom Agreement 43 8 1 3 Custom registration package 44 8 1 4 Configuration file 45 8 2 Heartbeat package 46 8 2 1 Implied heartbea...

Page 9: ...settings can be saved forever This chapter is the user manual for the product UART TO ETH B It is recommended that users read this chapter systematically and follow the instructions to get a systemic...

Page 10: ...recommended to use max811reus or a similar reset chip Noise can be filtered by a 0 1u capacitor Low level minimum time 100ns TXD OUT Serial data transmitting pin of the module 3 3V TTL level can be c...

Page 11: ...ter the flow control is set to CTS RTS DTR DSR RTS 0 normally if RTS 1 it means the module can t receive data and the user MCU should stop sending data to the module CTS IN Hardware flow control input...

Page 12: ...RS485 TO ETH B time the LINK will change to 1 10 52 www waveshare com...

Page 13: ...eate virtual serial ports If you do not need the virtual serial port function you can only download the installation free version of the configuration software Table 3 Software description name of sof...

Page 14: ...s which is very convenient as long as the device and the computer running Vircom are under the same switch Figure 6 Vircom main interface Figure 7 Device list See all currently online devices from the...

Page 15: ...eed to configure the work of the serial server model The detailed meanings of other parameters are as follows Table 4 Parameter meaning parameter name Ranges meaning Virtual serial port Unused created...

Page 16: ...ction is faster When the serial port server is in TCP client mode it also acts as a TCP server to monitor connections on the port At the same time the local port number used by the TCP client to conne...

Page 17: ...t Modbus TCP protocol to RTU protocol which is convenient to cooperate with Modbus TCP protocol RealCOM is designed to be compatible with the old version of REAL_COM protocol It is a protocol of virtu...

Page 18: ...ult is 80 Adress of multicast Used in UDP multicast Enabling the registration package When the TCP connection is established the registration package is sent to the computer After enabling the registr...

Page 19: ...8 IO outputs UDP multicast UDP multicast Multi destination IP As a TCP client it supports simultaneous connection to 7 destination IPs 4 5 TCP COMMUNICATION TEST After configuring the device parameter...

Page 20: ...as shown in the figure below Figure 11 SSCOM2 TCP Client transceiver interface Enter TCPClient Waveshare Test in the serial debugging assistant SSCOM2 set as TCPClient and click send then the data wil...

Page 21: ...to the user serial device through the Vircom serial server The following demonstrates this operation step Figure 12 Application example of virtual serial port Click Serial on the main interface of Vi...

Page 22: ...imulate the user s serial port program open COM2 the virtual serial port above open another SSCOM to simulate a serial device and open COM3 hardware serial port At this time the COM2 sending data link...

Page 23: ...ol in the device setting dialog box as shown in the figure below At this time the device port is automatically changed to 502 At this time the user s Modbus TCP tool is connected to the 502 port of th...

Page 24: ...e you need to change the working mode to client based on the selection of the conversion protocol and change the destination IP to the IP of the computer where the Modbus TCP software is located and t...

Page 25: ...erial server must be known in advance But the Web configuration can be done on any computer without Vircom 1 Enter the IP address of the serial port server in the browser for example http 192 168 1 20...

Page 26: ...ded into two types with virtual serial port and non virtual serial port as shown in Figure 9 TCP communication diagram and Figure 12 the function of virtual serial port The user software with virtual...

Page 27: ...e user software is Modbus TCP and the user device is Modbus RTU And Modbus TCP is the master station 4 Do not use TCP client Modbus TCP to RTU Applicable to the user software is Modbus TCP and the use...

Page 28: ...in Table 6 The section 4 5 TCP Communication Test mainly briefly describes how to communicate when the serial port server is used as a TCP server Here will describe how TCP client UDP mode and multip...

Page 29: ...can be sent and received after the connection is established Serial server as a client 5 2 2 CLIENT CONNECTS TO MULTIPLE SERVERS When the serial server is used as a TCP client it can connect to 7 des...

Page 30: ...first IP can be a domain name For the remaining 2 7 destination IPs click the More Advanced Setting button in the device setting interface to open More Advanced Settings for setting After all 7 destin...

Page 31: ...CP server When the serial port server is used as a server it can accept 30 TCP connections at the same time The data received by the serial port will be forwarded to all established TCP connections If...

Page 32: ...d as a client is port 1 that is the software on 192 168 1 189 sees that the incoming port of the device is 1024 1 1025 5 2 5 UDP MODE In UDP mode the parameter configuration is shown in Figure 18 The...

Page 33: ...not need to be connected Click on Vircom s device management to find these 2 devices as shown in Figure 20 Then click Edit Device to configure the device Device couplets can be divided into TCP coupl...

Page 34: ...uration parameters are shown in Figure 21 and the parameters corresponding to the arrows must be one to one correspondence UDP couplet does not need to check the connection status as long as the param...

Page 35: ...ease check whether the network cable is connected 6 2 NETWORK TCP CONNECTION When the device is used as a way to dynamically obtain IP it cannot be directly connected to the computer network port Beca...

Page 36: ...o the correct command issued Once there is a reply the serial port sends data to the network port the Active will turn blue Otherwise please check the serial port parameters or whether the serial cabl...

Page 37: ...has been sent and received before now select a virtual serial port to be monitored in the main interface and then select Menu View Monitor as shown in Figure 24 Figure 32 Open Virocm monitoring From t...

Page 38: ...nctions in the Device Settings dialog box should be ticked By default the serial server is in normal transparent transmission mode If you need to switch to Modbus gateway mode please select the option...

Page 39: ...dbus RTU command to the Modbus gateway and then the Modbus gateway is converted to Modbus TCP again and sent to the monitoring host computer We know that Modbus TCP is network communication and the tr...

Page 40: ...reply data to the host within 3ms And showed a good real time update speed of serial port data The register savi ng Modbus gateway is a real Modbus TCP to Modbus RTU It really takes advantage of the...

Page 41: ...n storage Modbus gateway Figure 27 Disable storage function 7 4 MULTI HOST FUNCTION As shown in Figure 27 Enable RS485 Multi Host and Enable RS485 bus conflict detection are multi host functions They...

Page 42: ...the most recent communication host and the query of host A will only reply to A host B queries and replies to host B Another function is that in the normal mode when the host A and the host B send dat...

Page 43: ...nflict time indicates how many milliseconds the serial server waits after receiving the reply of the first command before sending the second command This parameter actually defines the speed of the co...

Page 44: ...etwork port devices at the same time The function that needs to be realized at this time is when the serial port RTU sends a command it can be sent to multiple network port devices the network port de...

Page 45: ...provides the following multiple registration package methods 8 1 1 SEND MAC ADDRESS ON CONNECTION Send the MAC address on the connection This method is not only supported for 4 models such as RS485 T...

Page 46: ...MAC 3 MAC 2 MAC 1 MAC 0 FA FF Among them MAC 5 MAC 0 is the MAC address of the device 2 When the device sends data to the network it will automatically add the 3 byte header prefix of FA 01 01 3 Ever...

Page 47: ...mat however there is no wildcard such as MAC in the registration package and different registration packages need to be configured separately for each device which is more cumbersome The above two met...

Page 48: ...ish the TCP connection so it is a recovery network communication A means Figure 34 Keep Alive Time As shown in Figure 3 4 the sending time of the heartbeat packet is set by the Keep Alive Time 8 2 1 I...

Page 49: ...on the right to Param Dest Figure 35 Customized registration package Note that the sum of the registration packet and the heartbeat packet should be less than 33 bytes The first line is actually the...

Page 50: ...IP where the device is located and then Vircom manually adds the device The IP is the public network IP of the device 3 TCP client When the device acts as a TCP client it will initiate a TCP connecti...

Page 51: ...remote management please give the device a name that is easy to remember 1 0 MQTT AND JSON For related usage please refer to MQTT and JSON Manual https www waveshare com wiki RS485_TO_POE_ETH_ B _MQTT...

Reviews: