background image

RS485 TO ETH ( B)

4 . 2 . HARDWARE CONNECTION

Generally speaking, the serial server only needs to be connected to the power supply, serial

port, and network cable.

The network port is connected to a common network cable, which can be directly connected

to a computer or connected to the network through a

switch.

4 . 3 . SOFTWARE INSTALLATION

Vircom can be used to configure parameters such as device IP and create 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 software illustrate

VirCom

Chinese version configuration software

VirCom_ en

English version configuration software

Virtual- serial- port Virtual serial port software

4 . 4 . PARAMETER CONFIGURATION

After Vircom is installed and the device hardware is connected, run the software as shown

in the figure, and then click "Device Management" as shown in the figure. Using Vircom, you can

11

/

52

www.waveshare.com

Содержание UART TO ETH

Страница 1: ...RS485 TO ETH B UART TO ETH B User Manual Figure 1 UART TO ETH B 1 52 www waveshare com...

Страница 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...

Страница 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...

Страница 4: ...RS485 TO ETH B 2 2 SOFTWARE FEATURES 3 52 www waveshare com...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 12: ...RS485 TO ETH B time the LINK will change to 1 10 52 www waveshare com...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Отзывы: