CN108462621B - Method for communication equipment address allocation and equipment quantity statistics - Google Patents
Method for communication equipment address allocation and equipment quantity statistics Download PDFInfo
- Publication number
- CN108462621B CN108462621B CN201810171500.XA CN201810171500A CN108462621B CN 108462621 B CN108462621 B CN 108462621B CN 201810171500 A CN201810171500 A CN 201810171500A CN 108462621 B CN108462621 B CN 108462621B
- Authority
- CN
- China
- Prior art keywords
- equipment
- monitoring system
- address
- communication
- devices
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/40—Bus networks
- H04L12/40006—Architecture of a communication node
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L61/00—Network arrangements, protocols or services for addressing or naming
- H04L61/50—Address allocation
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L61/00—Network arrangements, protocols or services for addressing or naming
- H04L61/50—Address allocation
- H04L61/5038—Address allocation for local use, e.g. in LAN or USB networks, or in a controller area network [CAN]
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
- Small-Scale Networks (AREA)
Abstract
The invention relates to a method for address allocation and equipment quantity statistics of communication equipment, which comprises a plurality of pieces of equipment and a monitoring system, wherein a communication line of each piece of equipment is divided into an input end IN and an output end OUT; each device controls the on-off of an output end OUT through a switch J; the method for allocating the addresses of the communication equipment and counting the number of the equipment comprises the following steps: the monitoring system sends a switch disconnection instruction; step two: the monitoring system sends an address setting command to set the address of the first equipment; step three: repeating the second step until the equipment at the tail end of the communication line; step four: and carrying out quantity statistics. According to the invention, the address signals of the equipment are allocated successively, so that each equipment is ensured to be uniquely corresponding to the address signals, and the statistics of the number of the equipment is simultaneously carried out in the process of allocating the address signals, thereby reducing the huge workload of manual confirmation.
Description
Technical Field
The invention relates to the technical field of address allocation of communication equipment, in particular to a method for address allocation and equipment quantity statistics of the communication equipment.
Background
When using the RS485 or CAN bus, devices already hanging on the bus need to be coded with unique address codes. The existing application codes the communication address of the equipment, and the following methods are generally adopted:
the first method is as follows: a dial switch is used. When the device leaves a factory, the address dial switch dials to a default address. When the device is installed and debugged on site, the needed address is manually dialed by debugging personnel to the side of the device. The disadvantages are that: it is labor-consuming and inconvenient to set the address if the device is installed on a roof or ceiling. If there are two machines with duplicate address settings, the troubleshooting is difficult.
The second method comprises the following steps: the communication R485 or CAN is used for setting. When leaving the factory, the machine sets a default address. This requires address setting to be performed on a one-to-one basis using a computer and a device. The disadvantages are the same.
In practical engineering applications, multiple communication buses may exist in a field at the same time, and it is also a great workload to determine the total number of devices in each communication bus.
Disclosure of Invention
The invention aims to provide a method for allocating addresses of communication equipment and counting the number of the equipment while allocating the addresses orderly aiming at the defects in the prior art.
In order to achieve the purpose, the invention adopts the following technical scheme:
a method for address allocation and device quantity statistics of communication devices comprises a plurality of devices and a monitoring system, wherein a communication line led OUT from a CPU of each device is divided into an input end IN and an output end OUT; each device is controlled to be switched on or off by a switch J, and when the device is electrified and works, a relay J is closed by default; the method for allocating the addresses of the communication equipment and counting the number of the equipment comprises the following steps:
the method comprises the following steps: the monitoring system sends an instruction to inform all the devices on the communication line to enter an automatic address allocation state; the equipment entering the automatic address allocation state stops sending data, and simultaneously, an internal switch J is switched off;
step two: the monitoring system sends an address setting command to set the address of the first equipment; after receiving the address setting command, the first device stores the address data therein, closes the relay J, adds one to the addresses to form a new address setting command and sends the new address setting command to the next device, and transmits a feedback signal to the monitoring system;
step three: the second equipment repeats the step two until reaching the equipment at the tail end of the communication line; the address allocation is finished;
step four: the monitoring system counts the number of the devices on the communication line according to the number of the feedback signals, and the number of the devices on the communication line is equal to the number of times that the monitoring system receives the feedback signals; and finishing counting the number of the devices.
To be more specific, if the output end of one device is connected to the input ends of a plurality of other devices, the method for counting the address assignment and the number of devices for the communication device further includes a preprocessing step:
step A: the output end of one device is connected with the input ends of a plurality of other devices, and the rest communication lines are disconnected at the input ends to ensure that the output end is only connected with the input end of one subsequent device;
and B: sequentially checking subsequent communication lines, only keeping one output end connected with one input end, and disconnecting other connected communication lines; in this way all the equipment is divided into several sections of equipment connected in a linear manner;
and C: the operation method of the first step to the fourth step is carried out on the equipment connected in the first section of the line type;
step D: connecting the monitoring system to the subsequent linear connected equipment of each section in turn and executing the operation methods of the first step to the fourth step in turn,
step E: and connecting the disconnected input end connecting lines according to the original mode after all address allocation and quantity statistics are completed.
In a further description, the switch J is a relay, a contactor or other electrical control switch.
The invention has the beneficial effects that: the address signals of the equipment are allocated one by one, so that each equipment is ensured to be uniquely corresponding to the address signals, and the number of the equipment is counted simultaneously in the address signal allocation process, so that the huge workload of manual confirmation is reduced.
Drawings
The invention is further illustrated with reference to the following figures and examples.
FIG. 1 is a schematic diagram of a device line-type wiring connection of one embodiment of the present invention;
FIG. 2 is another schematic line connection of an embodiment of the present invention;
FIG. 3 is a schematic diagram of address allocation for one embodiment of the present invention;
FIG. 4 is a schematic diagram of address allocation for one embodiment of the present invention.
Detailed Description
The technical scheme of the invention is further explained by the specific implementation mode in combination with the attached drawings.
As shown IN fig. 1-4, a method for address allocation and device quantity statistics of communication devices includes a plurality of devices and a monitoring system, wherein a communication line led OUT from a CPU of each device is divided into an input terminal IN and an output terminal OUT, the devices are connected IN a line type, the input terminal IN of the first device is connected to the monitoring system, and the input terminal IN of each subsequent device is connected to the output terminal OUT of the previous device; each device is controlled to be switched on or off by a switch J, and when the device is electrified and works, a relay J is closed by default; the method for allocating the addresses of the communication equipment and counting the number of the equipment comprises the following steps:
the method comprises the following steps: the monitoring system sends an instruction to inform all the devices on the communication line to enter an automatic address allocation state; the equipment entering the automatic address allocation state stops sending data, and simultaneously, an internal switch J is switched off;
step two: the monitoring system sends an address setting command to set the address of the first equipment; after receiving the address setting command, the first device stores the address data therein, closes the relay J, adds one to the addresses to form a new address setting command and sends the new address setting command to the next device, and transmits a feedback signal to the monitoring system;
step three: the second equipment repeats the step two until reaching the equipment at the tail end of the communication line; the address allocation is finished;
step four: the monitoring system counts the number of the devices on the communication line according to the number of the feedback signals, and the number of the devices on the communication line is equal to the number of times that the monitoring system receives the feedback signals; and finishing counting the number of the devices.
To be more specific, if the output end of one device is connected to the input ends of a plurality of other devices, the method for counting the address assignment and the number of devices for the communication device further includes a preprocessing step:
step A: the output end of one device is connected with the input ends of a plurality of other devices, and the rest communication lines are disconnected at the input ends to ensure that the output end is only connected with the input end of one subsequent device;
and B: sequentially checking subsequent communication lines, only keeping one output end connected with one input end, and disconnecting other connected communication lines; in this way all the equipment is divided into several sections of equipment connected in a linear manner;
and C: the operation method of the first step to the fourth step is carried out on the equipment connected in the first section of the line type;
step D: connecting the monitoring system to the subsequent linear connected equipment of each section in turn and executing the operation methods of the first step to the fourth step in turn,
step E: and connecting the disconnected input end connecting lines according to the original mode after all address allocation and quantity statistics are completed.
In a further description, the switch J is a relay, a contactor or other electrical control switch.
As shown in fig. 2 to fig. 4, eight devices are taken as an example to describe the address allocation and quantity statistics method for connecting the output end of one device with the input ends of multiple devices:
firstly, disconnecting one communication line at the equipment c to form two sections of equipment connected in a linear manner; starting address allocation from the device a, knowing that the number of devices on the communication line is 5 and the addresses are from 1 to 5; then, the monitoring system is connected to the equipment f and address allocation is continued, so that the number of the equipment on the communication line is known to be 3, and the addresses are from 6 to 8; finally, all the devices are restored to the connection mode as shown in FIG. 2.
The above description is only a preferred embodiment of the present invention, and for those skilled in the art, the present invention should not be limited by the description of the present invention, which should be interpreted as a limitation.
Claims (1)
1. A method for communication equipment address allocation and equipment quantity statistics is characterized in that: the system comprises a plurality of devices and a monitoring system, wherein a communication line led OUT from a CPU of each device is divided into an input end IN and an output end OUT, the devices are connected IN a linear mode, the input end IN of the first device is connected with the monitoring system, and the input end IN of each subsequent device is connected with the output end OUT of the last device; each device is controlled to be switched on or off by a switch J, and when the device is electrified and works, a relay J is closed by default; the method for allocating the addresses of the communication equipment and counting the number of the equipment comprises the following steps:
the method comprises the following steps: the monitoring system sends an instruction to inform all the devices on the communication line to enter an automatic address allocation state; the equipment entering the automatic address allocation state stops sending data, and simultaneously, an internal switch J is switched off;
step two: the monitoring system sends an address setting command to set the address of the first equipment; after receiving the address setting command, the first device stores the address data therein, closes the relay J, adds one to the addresses to form a new address setting command and sends the new address setting command to the next device, and transmits a feedback signal to the monitoring system;
step three: the second equipment repeats the step two until reaching the equipment at the tail end of the communication line; the address allocation is finished;
step four: the monitoring system counts the number of the devices on the communication line according to the number of the feedback signals, and the number of the devices on the communication line is equal to the number of times that the monitoring system receives the feedback signals; the equipment number counting is finished;
if the output end of some equipment is connected with the input ends of a plurality of other equipment, the address allocation and equipment quantity statistical timing of the communication equipment also comprises a preprocessing step:
step A: the output end of one device is connected with the input ends of a plurality of other devices, and the rest communication lines are disconnected at the input ends to ensure that the output end is only connected with the input end of one subsequent device;
and B: sequentially checking subsequent communication lines, only keeping one output end connected with one input end, and disconnecting other connected communication lines; in this way all the equipment is divided into several sections of equipment connected in a linear manner;
and C: the operation method of the first step to the fourth step is carried out on the equipment connected in the first section of the line type;
step D: connecting the monitoring system to the subsequent linear connected equipment of each section in turn and executing the operation methods of the first step to the fourth step in turn,
step E: connecting the disconnected input end connecting lines according to the original mode after all address allocation and quantity statistics are completed;
the switch J is a relay, a contactor or other electric appliance control switches.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810171500.XA CN108462621B (en) | 2018-03-01 | 2018-03-01 | Method for communication equipment address allocation and equipment quantity statistics |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810171500.XA CN108462621B (en) | 2018-03-01 | 2018-03-01 | Method for communication equipment address allocation and equipment quantity statistics |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108462621A CN108462621A (en) | 2018-08-28 |
CN108462621B true CN108462621B (en) | 2020-12-29 |
Family
ID=63217009
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810171500.XA Active CN108462621B (en) | 2018-03-01 | 2018-03-01 | Method for communication equipment address allocation and equipment quantity statistics |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108462621B (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111541794A (en) * | 2020-04-07 | 2020-08-14 | 广西松贤科技有限公司 | IPV6 protocol-based address automatic allocation method and device |
CN111865745B (en) * | 2020-06-12 | 2022-02-01 | 深圳拓邦股份有限公司 | Non-delay polling method and system for automatically identifying slave equipment |
CN113852699B (en) * | 2021-08-19 | 2022-09-02 | 依米康软件技术(深圳)有限责任公司 | System and method for automatically distributing bus address |
CN114002994B (en) * | 2021-12-30 | 2022-04-22 | 菲尼克斯(南京)智能制造技术工程有限公司 | PLC-based system and networking and communication method thereof |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1213918A (en) * | 1997-09-20 | 1999-04-14 | 阿尔卡塔尔公司 | Process and devices for establishing point-to-multipoint connections and multipoint-to-point connections |
CN101635637A (en) * | 2008-07-21 | 2010-01-27 | 江森自控楼宇设备科技(无锡)有限公司 | Method and system for distributing intelligent addresses based on serial bus |
CN102868780A (en) * | 2012-09-07 | 2013-01-09 | 深圳睿立方智能科技有限公司 | RS-485 slave computer addressing network system and addressing method thereof |
-
2018
- 2018-03-01 CN CN201810171500.XA patent/CN108462621B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1213918A (en) * | 1997-09-20 | 1999-04-14 | 阿尔卡塔尔公司 | Process and devices for establishing point-to-multipoint connections and multipoint-to-point connections |
CN101635637A (en) * | 2008-07-21 | 2010-01-27 | 江森自控楼宇设备科技(无锡)有限公司 | Method and system for distributing intelligent addresses based on serial bus |
CN102868780A (en) * | 2012-09-07 | 2013-01-09 | 深圳睿立方智能科技有限公司 | RS-485 slave computer addressing network system and addressing method thereof |
Also Published As
Publication number | Publication date |
---|---|
CN108462621A (en) | 2018-08-28 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108462621B (en) | Method for communication equipment address allocation and equipment quantity statistics | |
CN111147619B (en) | Method and system for realizing automatic address allocation of RS485 slave equipment locally | |
US11051385B2 (en) | Ethernet lighting control system and method for stage lights | |
CH661399A5 (en) | REMOTE CONTROL SYSTEM. | |
CN205178934U (en) | MCC switch board and have its MCC control system | |
CN106338938B (en) | A kind of backplane bus communication addressing system and method | |
CN104456861A (en) | Computer room air conditioner duty in-turn system and control method | |
CN204203718U (en) | Based on the PLC wireless control system of Arduino | |
CN108626847B (en) | Multi-connected air conditioning unit system | |
EP2241062B1 (en) | Group master communication system and method for serially transmitting data in automation systems | |
CN211123671U (en) | L oRa technology-based pneumatic hammer wireless automatic control system | |
CN214424822U (en) | Communication fault diagnosis system for lime kiln hydraulic station | |
US5583493A (en) | Process and apparatus for the remote polling of measuring points | |
CN109799758B (en) | CAN bus application system and numbering method of processing nodes | |
CN116031998A (en) | Distributed substation terminal based on multiport forwarding communication | |
CN201656563U (en) | Control-by-one-wire controller for AC circuit | |
EP2684204A1 (en) | Line switch system for a line system for supplying a vehicle with electricity | |
CN113759862A (en) | Signal switching device and signal control method | |
CN219627741U (en) | Circuit system of network hand-in-hand technology and electronic equipment | |
DE102008061911A1 (en) | Self-initializing serial interface, system and procedure | |
CN204203740U (en) | Fieldbus Based on-off model transmission system | |
CN203133499U (en) | Distribution equipment | |
CN203312635U (en) | Secondary connection modularizing structure for load switch cabinet | |
CN111147612B (en) | Fan group control address automatic allocation method based on position information | |
CN107168235B (en) | IO network wiring system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
PE01 | Entry into force of the registration of the contract for pledge of patent right | ||
PE01 | Entry into force of the registration of the contract for pledge of patent right |
Denomination of invention: A method of address allocation and equipment quantity statistics of communication equipment Effective date of registration: 20220712 Granted publication date: 20201229 Pledgee: Industrial and Commercial Bank of China Limited Foshan Shiwan sub branch Pledgor: AEROSPACE BAYKEE (GUANGDONG) TECHNOLOGY Co.,Ltd. Registration number: Y2022980010313 |