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

RS485 bus communication time sequence control method

A timing control and bus communication technology, applied in the field of communication, can solve problems such as slow data update, not allowing data transmission, affecting communication efficiency, etc., and achieve the effect of improving communication efficiency

Inactive Publication Date: 2020-10-09
NINGBO SANXING MEDICAL & ELECTRIC CO LTD
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] In the industrial field, the RS485 bus usually adopts a half-duplex communication method. A master and multiple slaves are mounted on the bus, and the slaves are not allowed to initiate data transmission. Usually, the working mode is that the master performs data transmission on the slaves mounted on the bus. A question-and-answer query to read data, and each device needs to be delayed when reading and writing switching, which leads to slower data update in a single cycle when there are many hardware modules connected to the same bus, which affects communication efficiency

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
  • RS485 bus communication time sequence control method
  • RS485 bus communication time sequence control method
  • RS485 bus communication time sequence control method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0025] Embodiments of the present invention are described in detail below, examples of which are shown in the drawings, wherein the same or similar reference numerals designate the same or similar elements or elements having the same or similar functions throughout. The embodiments described below by referring to the figures are exemplary only for explaining the present invention and should not be construed as limiting the present invention.

[0026] Such as Figures 1 to 2 Shown are respectively the working flow diagrams of the master and the slave in the method of the present application. As shown in the figure, this kind of RS485 communication timing control method includes,

[0027] S1, the host initiates a query message, and arranges the n slaves to be queried according to the serial number seq to form a frame message and send it through the bus;

[0028] S2, the slave machine receives the query message;

[0029] S3, the slave machine sets the delayed sending time tsend...

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 relates to an RS485 bus communication time sequence control method which is characterized by comprising the following steps that: S1, a host initiates a query message, arranges and combines n slaves to be queried into a frame of message according to a serial number seq, and sends the frame of message to the slaves through a bus; S2, the slaves receive a query message; S3, the slavesset delay sending time tsend according to the seq serial number; S4, the slaves determine whether the waiting time is greater than the delay sending time tsend or not, and send a response message when the waiting time is greater than the delay sending time tsend; S5, the host receives a slave response message; S6, the host determines whether the current operation time t exceeds a set value twaitor not, if so, the host ends the query, and if not, the host returns to execute the step S5. According to the method, a one-question multi-answer query mode between the host and the slaves can be realized, and the communication efficiency is greatly improved.

Description

technical field [0001] The invention relates to the technical field of communication, in particular to a timing control method for RS485 bus communication. Background technique [0002] The RS485 bus is an interface standard developed from RS232. It is suitable for point-to-point, one-master-to-multiple-slave communication, which makes up for the interconnection problems of the RS232 interface standard, and has the advantages of simple interface, low cost, long communication distance and high reliability. Widely used in transportation, aviation, aerospace, automatic control and other fields. [0003] In the industrial field, the RS485 bus usually adopts a half-duplex communication method. A master and multiple slaves are mounted on the bus, and the slaves are not allowed to initiate data transmission. Usually, the working mode is that the master performs data transmission on the slaves mounted on the bus. A question-and-answer query to read data, and each device needs to be...

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
IPC IPC(8): H04L12/403
CPCH04L12/403H04L12/4035
Inventor 王豪凯苏守志
Owner NINGBO SANXING MEDICAL & ELECTRIC CO LTD