Automatic allocation method for serial device communication addresses

A technology for automatic allocation and communication of addresses, applied in electrical components, transmission systems, etc., can solve the problems of prolonged address allocation response speed and complex process, and achieve the effect of saving costs, improving flexibility and convenience

Active Publication Date: 2019-11-05
ZHEJIANG TENGEN ELECTRIC +1
View PDF9 Cites 12 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0009] However, the above two allocation methods both use the host to send allocation instructions, and use the lock between each series-connected slave to realize the sequential reception of allocation instructions for each sl

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
  • Automatic allocation method for serial device communication addresses
  • Automatic allocation method for serial device communication addresses
  • Automatic allocation method for serial device communication addresses

Examples

Experimental program
Comparison scheme
Effect test

Example Embodiment

[0034] The technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative work shall fall within the protection scope of the present invention.

[0035] The invention discloses a method for automatically assigning a communication address of a serial device, which is based on a serial device. The serial device includes a gateway and a plurality of slave devices. The gateway has a wireless module, and the wireless module includes a WIFI module, a Bluetooth module, 4G module, Ethernet and other modules.

[0036] The connection between the gateway and the slave device includes RS485 or ...

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 automatic allocation method for serial device communication addresses, which comprises the following steps: after an instruction is received from a device, setting an address recognition output pin to be high or low, and judging whether the levels of the output pin and an input pin are consistent or not; and if the levels of the input pin and the output pin are inconsistent, setting the own equipment address to be 1, sending the equipment address to the gateway, and outputting two pulses to the next equipment at the output pin after delaying for a period of time; ifthe level of the output pin is consistent with the level of the input pin, enabling the slave equipment to configure the address recognition input pin to be in an edge or level triggering interrupt mode; accumulating the number of the pulses in the interruption, setting the number of the pulses as the address of the device itself after the number of the pulses is transmitted, sending the addressto the gateway, and then adding one pulse to the number of the addresses output by the address recognition output pin to the next device. Therefore, the method for automatically allocating the addresses of the gateway and the following slave devices in the serial port mode is realized, and the flexibility and convenience of allocating the addresses of the plurality of slave devices are improved.

Description

technical field [0001] The invention relates to a method for automatically assigning addresses, in particular to a method for automatically assigning communication addresses of serial devices. Background technique [0002] In the application of serial communication systems, there is usually a communication-related dominant device and a plurality of terminal devices subordinate to the dominant device, and in the general industrial control field, most of them use one-master-multiple-slave communication architecture. Under this architecture, the serial communication system is composed of a master device and several slave devices. In order to establish a good communication between the master device and the slave devices, the address of the slave device must be unique, otherwise the address of the slave device will be unique. If there is a conflict, the data transmission will fail. [0003] For the serial communication system under the one-master-multi-slave communication archi...

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): H04L29/12
CPCH04L61/5038
Inventor 徐丽玲陶晓东高平吴梦伟潘传佑李巍
Owner ZHEJIANG TENGEN ELECTRIC
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