Dynamic networking method and communication method based on RS-485

A technology of RS-485 and communication method, which is applied in the field of communication, can solve the problems such as the inability to dynamically add or delete nodes, and achieve the effect of expanding application scenarios

Inactive Publication Date: 2015-03-11
SHENZHEN ZHONGKE XUNLIAN TECH
View PDF9 Cites 45 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] The purpose of the present invention is to provide a dynamic networking method and communication method based on RS-485 in view of the defects in the

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
  • Dynamic networking method and communication method based on RS-485
  • Dynamic networking method and communication method based on RS-485
  • Dynamic networking method and communication method based on RS-485

Examples

Experimental program
Comparison scheme
Effect test

Example Embodiment

[0034] Example 1

[0035] In a dynamic networking method based on RS-485 provided in this embodiment, a point-to-multipoint bus mode is used for dynamic networking between the master and the slave, such as figure 1 As shown, a host is connected to multiple slaves through the RS-485 bus, and the host communicates with the slaves in a specified frame format, and each communication is initiated by the host.

[0036] Specifically, as figure 2 As shown, the dynamic networking method based on RS-485 includes the following steps:

[0037] S1. The host has a heartbeat time T every interval a Send query frames to all slaves through the RS-485 bus;

[0038] S2. After all slaves on the RS-485 bus receive the query frame, in the first time period T w The query response frame is sent to the host by means of time-sharing response. The current slave address and slave ID of the slave are recorded in the query response frame; when the newly mounted slave in the network generates the quer...

Example Embodiment

[0045] Embodiment 2

[0046] This embodiment proposes a communication method based on RS-485. On the basis of the existing technology, the dynamic networking method based on RS-485 described in Embodiment 1 is integrated into the communication process. When using RS-485 When the bus is networked, nodes can be dynamically added or deleted, and the efficient and stable communication can be ensured.

[0047] Specifically, the design of the RS-485 communication protocol generally adopts a typical hierarchical structure, which mainly includes a physical layer and a data link layer. The physical layer mainly completes the following functions: when sending data, the data sent by the data link layer is converted into serial-to-parallel bytes, and the corresponding start bit, check bit and stop bit are added, and then the converted signal is sent. On the physical channel; when receiving data, serially receive the level signal from the physical channel, then perform level conversion, c...

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 a dynamic networking method and a communication method based on RS-485. The dynamic networking method comprises the following steps: step S1, sending a query frame to all slave machines through an RS-485 bus at every a heartbeat time interval by a host machine; step S2, sending query response frames to the host machine by all the slave machines on the RS-485 bus after receiving the query frame; step S3, judging whether the slave machines of which the addresses are not within an effective addressing range exit by the host machine, and if the addresses of the slave machines are not within an effective addressing range, identifying the slave machines as to-be-addressed equipment; step S4, broadcasting an addressing frame by the host machine through the RS-485 bus; and step S5, receiving the addressing frame corresponding to an ID of the slave machine by each slave machine and changing the current slave machine address into a new slave machine address. According to the method disclosed by the invention, the host machine is used for periodically querying address information of the slave machines and identifying new equipment in a network by comparing the current address information of the slave machine with the effective addressing range so that each piece of new equipment has an effective address, and thus the problem of inconvenience caused in dynamic addition and deletion of nodes because the R-485 bus adopts a master-slave type communication method is solved.

Description

technical field [0001] The invention relates to the technical field of communication, in particular to a dynamic networking method and a communication method based on RS-485. Background technique [0002] RS-485 is a serial data interface standard formulated and released by EIA (U.S. Energy Information Administration, American Electronics Industry Association). With "RS" as the prefix, in the field of communication industry, TIA / EIA-485-A is usually called RS-485. RS-485 is developed from the RS-422 standard. On the basis of it, it adds the ability of multi-point and two-way communication, as well as the driving ability and conflict protection characteristics of the transmitter. When using a termination matching resistor, it can support up to 32 Each node expands the common mode range of the bus and adopts a balanced transmission method. [0003] The RS-485 standard only specifies the electrical characteristics of the interface and does not involve specific connectors, cab...

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/40
Inventor 余斐张明宇
Owner SHENZHEN ZHONGKE XUNLIAN 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