— Blogs —
—Products—
WhatsApp:+8615367865107
Address:Room 102, District D, Houhu Industrial Park, Yuelu District, Changsha City, Hunan Province, China
Product knowledge
Time:2021-12-04 22:33:43 Popularity:660
Where can 485-to-Ethernet equipment be used
Application of RS485 to Ethernet
In the Internet of Things industry, there are many scenarios in which industrial serial port RS485 is used. So what are the applications and solutions of RS485 serial port to Ethernet, and what is the key technology of RS485 to Ethernet.
RS485 communication technology is in engineering. It is used a lot, and its main advantages are as follows:
The wiring is simple: only 2 wires are needed, and now the shielded wire interface of the network cable is generally used.
Long communication distance: Due to the use of differential mode communication, the communication distance is longer than RS232.
It can support multi-machine network communication: Compared with RS232 which can only connect one-to-one, RS485 can mount multiple terminals online, and realize multi-machine communication by querying one-to-one response.
However, RS485 now often needs to be converted to Ethernet. The main reasons behind these applications are: Ethernet can be connected to intermet so that it can realize long-distance communication and realize monitoring on a global scale, which is not possible with RS485.
When multiple RS485 devices are needed to connect to the computer, the traditional way is to use a multi-serial port card.
That is, use the extended serial port on the computer to realize multiple RS485 serial ports.
After using RS485 to Ethernet, you can leave the RS485 interface on site, and only one network cable can be reserved at the monitoring computer end, which is more convenient to use.
RS485 to Ethernet solution
Realization of RS485 to Ethernet is mainly-a hardware converter and a software driver.
There are two kinds of hardware converters: serial port server (serial port networking server, serial port communication server) and serial port networking module.
The RS485 serial server is with a shell, which can connect existing 485 devices to the Ethernet.
It is suitable for the network transformation of the existing RS485 serial port equipment.
The RS485 serial port networking module does not have a shell. It can be understood as an embedded RS485 to Ethernet module. Using a module solution, the module can be integrated into the user's device to realize the integration of the serial server and the device.
The hardware of the serial server realizes that the RS485 interface is converted into a TCP/IP interface (network interface), then the TCP/IP connection can be converted into a serial port virtually again by using the virtual serial port driver on the computer side.
The virtual serial port driver can virtualize COM5 and C files in the driver layer of the computer and can be transferred to Baidu Netdisk! The serial port server is bound to these virtual serial ports.
In this way, when the user serial port program opens the virtual serial port, it can communicate with the remote serial server, that is, communicate with the serial device.
After using the hardware and software system of the RS485 to Ethernet solution, the user's 485 device is equivalent to the realization of network expansion, and the original hardware and software programs do not need to be modified.
The key technology of RS485 to Ethernet
If RS485 is to be seamlessly upgraded to Ethernet, it contains many key technologies. It is necessary to seamlessly combine Ethernet technology and RS485 communication protocol for transition.
Including: 9-bit technology, framing technology, master-slave mechanism, etc. 9-bit technology: In the 485 mode, the user can send 9-bit data.
And sometimes the 9th bit is used to indicate whether it is a data frame or an address frame.
Since in network communication, Ethernet is 8bit data, there is no space for 9bit to be placed.
So how to transfer the 9 bits of 485 has become a problem.
Framing technology: Framing is a key technology that appears in serial to Ethernet (including RS485 to Ethernet), that is, when the serial server receives data from the serial device, when will the data be packaged and forwarded to the Ethernet, if every It is obviously too inefficient to pack all bytes into one packet, so how many bytes are suitable for packing.
Here, the user is required to set a parameter called the longest data packet length and the longest data packet interval.
Prev:Wireless communication module introduction and application range
Next:What is serial communication? The principle of serial communication
Related recommendations
Sensors & Weather Stations Catalog
Agriculture Sensors and Weather Stations Catalog-NiuBoL.pdf
Weather Stations Catalog-NiuBoL.pdf
Agriculture Sensors Catalog-NiuBoL.pdfRelated products
Screenshot, WhatsApp to identify the QR code
WhatsApp number:+8615367865107
(Click on WhatsApp to copy and add friends)