Method for realizing automatic address allocation based on RS485

A technology for automatically assigning and assigning addresses, applied in the field of communication, can solve problems such as the inability to achieve the purpose of intelligent testing, and achieve the effect of realizing intelligent testing, improving production efficiency, and reducing labor costs

Active Publication Date: 2021-04-20
SHANGHAI HOLYSTAR INFORMATION TECH
View PDF4 Cites 5 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] In order to overcome the problem in the prior art that the purpose of intelligent testing cannot be achieved when RS-485 communication is completed, the present invention provides an automatic address allocation based on RS485 method

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
  • Method for realizing automatic address allocation based on RS485
  • Method for realizing automatic address allocation based on RS485
  • Method for realizing automatic address allocation based on RS485

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0021] In order to make the purpose, technical solutions and advantages of the present invention more clear, the present invention will be further described in detail below in conjunction with the accompanying drawings and implementation examples. It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.

[0022] see figure 1 and figure 2 , a method for automatically assigning addresses based on RS485 in the present invention, a master device and a plurality of slave devices are set, and the communication connection between the master device and the slave devices is based on the RS485 communication standard, and the bus of the RS485 communication standard It includes two lines A and B. A master device and N slave devices are connected to the A line and the B line. The master device assigns an address to each slave device through an automatic address allocation method.

[0023] In ...

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 provides a method for realizing automatic address allocation based on RS485. A host device and a plurality of slave devices are provided. The host device and the slave devices are in communication connection based on RS485 communication standards, and the method comprises the following steps: S1, the host device issuing a search command, searching whether the slave equipment with the unallocated address exists or not; if so, turning to the step S2; if not, returning to the step S1; S2, the host device issuing an address message including address information to indicate the slave device to preempt the address information, wherein the slave device is not allocated with an address; and S3, after receiving feedback information of the unique slave device preempting the address information, the host device allocating the address information to the slave device. According to the RS485-based method for realizing automatic address allocation, the labor cost is greatly reduced, the production efficiency is improved, and intelligent testing is realized.

Description

technical field [0001] The invention relates to the technical field of communication, in particular to a method for realizing automatic address allocation based on RS485. Background technique [0002] RS-485 is a standard that defines the electrical characteristics of drivers and receivers in a balanced digital multipoint system. The standard is defined by the Telecommunications Industry Association and the Electronics Industry Alliance. Efficient signal transmission in noisy environments. RS-485 enables connection to local networks as well as configuration of multi-drop communication links. In the RS-485 communication network, the master-slave communication mode is generally adopted, that is, one master has multiple slaves. [0003] In the prior art, the RS-485 host generally needs to know the number of slaves and the slave address in advance before connecting to RS-485, and then set it through external software or its own button LCD to communicate with the slave device. ...

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): H04L29/12
Inventor 冷春田唐捷王泽元李标平于义广张伟陈致远
Owner SHANGHAI HOLYSTAR INFORMATION 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