Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

RS485 communication system and method preventing master-slave equipment conflict

A RS485, communication system technology, applied in the field of RS485 communication system to avoid master-slave equipment conflict, can solve the problems of reduced RS485 bus communication efficiency, poor system real-time performance, etc. The effect of reliability

Active Publication Date: 2017-10-24
FENGHUO COMM SCI & TECH CO LTD
View PDF5 Cites 10 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0013] It can be seen that when the number of RS485 nodes is large, the time overhead required to scan each node in turn is considerable, which means that the real-time performance of the system is poor and the communication efficiency of the RS485 bus is reduced

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 communication system and method preventing master-slave equipment conflict
  • RS485 communication system and method preventing master-slave equipment conflict
  • RS485 communication system and method preventing master-slave equipment conflict

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0037] The present invention will be further described in detail below in conjunction with the accompanying drawings and specific embodiments.

[0038] An embodiment of the present invention provides an RS485 communication system that avoids conflicts between master and slave devices. The system includes a master device and multiple slave devices.

[0039] The embodiment of the present invention also provides a kind of RS485 communication method that avoids master-slave device conflict, comprises the following steps:

[0040] The master and slave devices perform RS485 initialization respectively. The process of RS485 initialization is: create RS485 sending task, RS485 sending task queue, RS485 receiving task, RS485 receiving task queue;

[0041] When the master device detects that a slave device is powered on, the master device packs the current time and timestamp of the master device as time synchronization data in its own time slot and sends it to the powered-on slave device...

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 RS485 communication system and method preventing master-slave equipment conflicts, and relates to the RS485 communication field; the method comprises the following steps: the master equipment detects slave equipment is powered up, packs the master equipment present time and time stamp into time synchronization data in a self time slot, and sends the packed data to the powered slave equipment; the slave equipment receives the time synchronization data sent by the master equipment and group packs the data, and updates the self time and time stamp according to the group packed time synchronization data until the update succeeds; the slave equipment sends the successfully synchronized response data to the master equipment in a self time slot; the master equipment receives the response data sent by the slave equipment and group packs the data, and confirms the master-slave equipment time to be successfully synchronized according to the group packed response data; the master-slave equipment send data in self gap time slots so as to avoid conflicts. The system and method allow the master equipment and slave equipment to send data in self time slots, thus effectively improving the equipment instantaneity and reliability.

Description

technical field [0001] The invention relates to the field of RS485 communication, in particular to an RS485 communication system and method for avoiding conflict between master and slave equipment. Background technique [0002] When the communication distance is required to be tens of meters to thousands of meters, the RS485 serial bus standard is widely used. RS485 uses balanced transmission and differential reception, so it has the ability to suppress common mode interference. In addition, the bus transceiver has high sensitivity and can detect the voltage as low as 200mV, so the transmission signal can be recovered beyond a kilometer. RS485 adopts half-duplex working mode, and only one point is in the sending state at any time. Therefore, the sending circuit must be controlled by the enable signal. RS485 is very convenient for multi-point interconnection, which can save many signal lines. RS485 can be used to network to form a distributed system, which allows up to 32 ...

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): H04L12/40H04J3/06
Inventor 周鸣张智孟庆锐
Owner FENGHUO COMM SCI & TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products