Data acquisition system and method for RS485 bus

A data acquisition system, RS485 technology, applied in the field of communication, can solve the problems of limited RS485 bus topology characteristics, inability to guarantee, and the number of communication connection lines, etc., to achieve the effect of facilitating accurate location of fault points, simplifying construction wiring, and improving stability

Active Publication Date: 2019-07-09
SHENZHEN XBROTHER TECH
View PDF19 Cites 13 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

In the industrial field, RS485 bus is used for communication, which solves the communication between one master and multiple slaves, and realizes the network communication of multiple devices with few communication lines, but it is limited to the topological characteristics of RS485 bus and the standard connection of RS485 bus The topology is a hand-in-hand daisy-chain topology. In this case, as long as one of the nodes on the bus is disconnected, the slaves behind the node can no longer communicate with the master.
[0003] In order to reduce the risk of circuit breakage, topological structures such as star topology and tree topology are mostly used to avoid them. However, these methods achieve communication stability at the cost of increasing a large number of bus connection lines and reducing the load capacity of bus slaves, which cannot be guaranteed. Minimum number of communication lines
In addition, due to the use of dual serial port resources on the host side to perform transceiver switching to achieve the purpose of enhancing the reliability of the communication link, it needs to occupy the host dual serial port resources to achieve this, which is not high in resource utilization and cost performance, and in the RS485 bus. The data acquisition system needs to make very complex logical judgments, resulting in a decrease in the efficiency of data acquisition in the communication link

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Data acquisition system and method for RS485 bus
  • Data acquisition system and method for RS485 bus
  • Data acquisition system and method for RS485 bus

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0052] see again figure 1 , the host 310 includes a first transceiver state control port 360 connected to the first transceiver 330, and a second transceiver state control port 370 connected to the second transceiver 340;

[0053] The first transceiver state control port 360 is used to set the first transceiver 330 to switch between the sending state and the receiving state;

[0054] When the main link fails, the second transceiver state control port 370 is used to set the second transceiver 340 to switch between the sending state and the receiving state.

[0055] After the host 310, the first transceiver 330, the plurality of slaves 350 and the second transceiver 340 form a daisy-chain communication link, the host 310 communicates with the plurality of slaves 350 To collect data, it is necessary to detect the communication link. At this time, the host 310 preferentially sets the first transceiver 330 to the sending state through the first transceiver state control port 360 a...

Embodiment 2

[0071] refer to image 3 , the serial port 320 is also connected to the first transceiver 330 and the second transceiver 340 respectively through a double-pole double-throw switch 390, and the host 310 also includes a switch for controlling the double-pole double-throw switch 390 Control port 380;

[0072] When the serial port 320 is connected to the first transceiver 330, the first transceiver state control port 360 is used to switch the first transceiver 330 between the sending state and the receiving state;

[0073] When the main link fails, the serial port 320 is connected to the second transceiver 340, and the second transceiver state control port 370 is used to control the second transceiver 340 between the sending state and the receiving state. to switch between.

[0074] The double pole double throw switch 390 includes a fixed end and a movable end, the fixed end is connected to the serial port 320, and the movable end is used to connect with the first transceiver 33...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The embodiment of the invention discloses a data acquisition system and method for a RS485 bus. The data acquisition system comprises a host, a first transceiver, a second transceiver and a pluralityof slaves, wherein the host comprises at least one serial port; both the first transceiver and the second transceiver are connected with one serial port; the plurality of slaves are connected in series between the first transceiver and the second transceiver; a communication link formed by the plurality of slaves in the direction from the first transceiver to the second transceiver is preset as amain link; a communication link formed in a direction from the second transceiver to the first transceiver is preset as a standby link; the host is used for acquiring data from each slave through themain link; and when the main link fails, the communication link is switched to the standby link to acquire data of the slaves in the direction from the second transceiver to the first transceiver tilla failure point. The invention also provides a data acquisition method for the RS485 bus. The communication reliability and failure detection accuracy of the RS485 BUS are improved.

Description

technical field [0001] The invention relates to the technical field of communication, in particular to a data acquisition system and method of an RS485 bus. Background technique [0002] Currently. In the industrial field, RS485 bus is used for communication, which solves the communication between one master and multiple slaves, and realizes the network communication of multiple devices with few communication lines, but it is limited to the topology characteristics of RS485 bus, and the connection of RS485 bus standard The topology is a hand-in-hand daisy-chain topology. In this case, as long as one of the nodes on the bus is disconnected, the slaves behind the node can no longer communicate with the master. [0003] In order to reduce the risk of circuit breakage, topological structures such as star topology and tree topology are mostly used to avoid them. However, these methods achieve communication stability at the cost of adding a large number of bus connection lines an...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G08C19/00G08C25/00
CPCG08C19/00G08C25/00
Inventor 林波
Owner SHENZHEN XBROTHER TECH
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products