Unlock instant, AI-driven research and patent intelligence for your innovation.

System synchronous sampling method based on rs485 network

A RS485 and synchronous sampling technology, applied in the communication field, can solve the problems of large amount of wiring construction, increased hardware cost, and high cost

Active Publication Date: 2020-07-07
SHANGHAI OUMIAO ELECTRIC INSPECTION CO LTD
View PDF9 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

For such two-way signal lines, the number of communication cables increases, the amount of wiring construction is large, and the cost is high.
The hardware requires that the MCU controllers of the master and the slave have at least two UART communication interfaces. There are too many restrictions on the selection of the MCU, and the hardware cost will increase.
And when the communication command is used to control the synchronous sampling, the sampling is started after the sampling command is analyzed and processed, and the command analysis process will cause the time deviation of the synchronous sampling to be too large due to the different hardware and software running parts of each slave.

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
  • System synchronous sampling method based on rs485 network
  • System synchronous sampling method based on rs485 network
  • System synchronous sampling method based on rs485 network

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0034] The present invention will be described in detail below in conjunction with specific embodiments. The following examples will help those skilled in the art to further understand the present invention, but do not limit the present invention in any form. It should be noted that those skilled in the art can make several changes and improvements without departing from the concept of the present invention. These all belong to the protection scope of the present invention.

[0035] The invention provides a master and slave synchronous sampling method based on the RS485 network.

[0036] An embodiment of the present invention realizes the principle of synchronous sampling as follows:

[0037] Consists of a master and multiple slaves. Both the host and the slave use the single-chip microcomputer as the control unit, and the single-chip microcomputer has a UART interface and an external interrupt pin. Among them, the UART is connected to the RS485 chip, and after the UART si...

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 invention discloses a system synchronous sampling method based on an RS485 network. The system comprises a host and a slave, the host and the slave are connected through an RS485 interface. the connecting line of the RS485 interface is not only used as a communication connecting line between the host computer and the slave computer, and meanwhile, used as a synchronous signal line between thehost and the slave to control the sampling starting time of the slave by the host to realize synchronous sampling, and the configuration of the communication baud rate as the RS485 communication connecting line does not influence the synchronous sampling control as the RS485 synchronous signal line. According to the RS485-based system synchronous sampling method disclosed by the invention, synchronous sampling of the host and each slave is realized through combination of hardware and software.

Description

technical field [0001] The present invention relates to the technical field of communication, and more specifically, relates to a system synchronous sampling method based on an RS485 distributed network. Background technique [0002] With the wide application of RS485 communication in measurement systems, especially in distributed measurement systems, the problem of clock synchronization for data sampling of each device in the network is extremely prominent. In the RS485 network system, it is generally composed of a host and multiple slaves. The master and all slaves sample synchronously, and the master reads the data of each slave for analysis and processing. The usual practice is to use two RS485 signals, one for communication and one for synchronous sampling. For such two-way signal lines, the number of communication cables increases, the amount of wiring construction is large, and the cost is high. The hardware requires that the MCU controllers of the host and slave h...

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 Patents(China)
IPC IPC(8): H04L7/00G06F13/42
CPCG06F13/4282H04L7/00
Inventor 刘红阳张祖泷陈险峰毕喜飞张治新于涵廖添泉
Owner SHANGHAI OUMIAO ELECTRIC INSPECTION CO LTD