CN111147612B - Fan group control address automatic allocation method based on position information - Google Patents

Fan group control address automatic allocation method based on position information Download PDF

Info

Publication number
CN111147612B
CN111147612B CN201911215820.1A CN201911215820A CN111147612B CN 111147612 B CN111147612 B CN 111147612B CN 201911215820 A CN201911215820 A CN 201911215820A CN 111147612 B CN111147612 B CN 111147612B
Authority
CN
China
Prior art keywords
fan
address
network
gateway
fans
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
Application number
CN201911215820.1A
Other languages
Chinese (zh)
Other versions
CN111147612A (en
Inventor
计国良
赵文军
任彧
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hangzhou Dunli Store & Display Fixtures Co ltd
Hangzhou Dunli Electric Appliances Co ltd
Original Assignee
Hangzhou Dunli Store & Display Fixtures Co ltd
Hangzhou Dunli Electric Appliances Co ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Hangzhou Dunli Store & Display Fixtures Co ltd, Hangzhou Dunli Electric Appliances Co ltd filed Critical Hangzhou Dunli Store & Display Fixtures Co ltd
Priority to CN201911215820.1A priority Critical patent/CN111147612B/en
Publication of CN111147612A publication Critical patent/CN111147612A/en
Application granted granted Critical
Publication of CN111147612B publication Critical patent/CN111147612B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5038Address allocation for local use, e.g. in LAN or USB networks, or in a controller area network [CAN]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5046Resolving address allocation conflicts; Testing of addresses
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5069Address allocation for group communication, multicast communication or broadcast communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • H04L2012/40208Bus networks characterized by the use of a particular bus standard
    • H04L2012/40228Modbus
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L2101/00Indexing scheme associated with group H04L61/00
    • H04L2101/60Types of network addresses
    • H04L2101/69Types of network addresses using geographic information, e.g. room number

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Small-Scale Networks (AREA)

Abstract

The invention relates to a fan group control address automatic allocation method based on position information. The invention is based on the RS485 MODBUS protocol, and realizes the automatic address allocation method of the fan group control with distance and position information. The system is characterized in that a plurality of fans are connected through an RS485 bus, an uplink interface of a 1 st fan is connected with a gateway or a computer, and a downlink interface is connected with a 2 nd fan and is sequentially connected with all the fans; the method firstly isolates signals of an uplink interface and a downlink interface of each fan, configures an initial address for the No. 1 fan through a gateway, sets the uplink interface and the downlink interface of the fan as a passage, and sequentially adds the address and configures the rest fans. In order to overcome the defect that the fan is not connected with a power supply bus, the invention designs the normally closed interface for physically connecting the uplink interface and the downlink interface, the fan control system can control the states of the uplink interface and the downlink interface, the address allocation algorithm also increases error check, and the new fan is added with an automatic address allocation function.

Description

Fan group control address automatic allocation method based on position information
Technical Field
The invention belongs to the technical field of address allocation based on MODBUS protocol, and relates to a method for automatically allocating a fan group control address based on position information.
Background
In the fields of industrial control, power communication, intelligent instruments and the like, data exchange is generally carried out in an RS485 communication mode. Because the industrial field is more complicated, various electrical equipment can produce more electromagnetic interference in the environment, can lead to signal transmission mistake, along with industrial application communication is more and more, Schneider electric has formulated a bus protocol MODBUS protocol that is used for the industrial field, uses the MODBUS protocol in the RS485 communication occasion in the industry now and adopts in many. The MODBUS protocol is a general communication language applied to electronic controllers, and it has become an industry standard that controllers can communicate with each other, controllers and other devices via a network (e.g., ethernet). Control devices produced by different manufacturers can be connected into an industrial network for centralized monitoring and management.
The RS485 communication adopts a half-duplex communication mode, only one device has the right of using the bus, and no matter whether the device is a main sender or a slave receiver, if the device sends information at the same time, the information received by other devices is wrong, because the RS485 communication physically superposes signals, the MODBUS protocol requirements are not met. MODBUS protocol defines a data structure that the controller can recognize, describes the process of the controller requesting access to other devices, how to respond to requests from other devices? How to detect the error log defines a common format for the layout and content of the communication data. In the case of multi-machine communications, the MODBUS protocol specifies that each controller must know their device address, recognize data sent from the address, determine whether to take action, what action to take? If the controller responds, the controller generates feedback information which is sent by the MODBUS protocol.
How to solve the problem that the device address of multi-machine communication under the MODBUS protocol is unique? At present, a plurality of methods exist, namely setting addresses by using a dial switch, setting equipment addresses one by using a computer, inquiring the state of a bus through software, continuously waiting for an idle state, and redistributing address conflicts, and the methods have no association of addresses and position information, some methods need to be set by an off-network single machine, are time-consuming to process, are inconvenient to operate on site, seriously affect the efficiency of RS485 communication, and are easy to make mistakes.
Disclosure of Invention
The invention provides a fan group control address automatic allocation method based on position information, aiming at solving the technical defects that the equipment address of multi-machine communication under an MODBUS protocol is unique and the equipment address is related to physical position information, and achieving the purpose of allocating the equipment address of a fan in sequence (increasing sequence/decreasing sequence) according to the position information of the fan without manual intervention, and finally realizing the accurate allocation of the address of all fans in a network, wherein the specific realization process is completed by commands of physical connection, address allocation sending, allocation completion and the like.
The implementation of the invention specifically comprises the following steps:
firstly, RS485 master control equipment (FFU gateway) is connected with a plurality of network fan buses, MODBUS protocol is adopted to realize multi-fan communication, the FFU gateway is connected with an uplink interface of a first fan, a downlink interface of the first fan needs to be connected with an uplink interface of a second fan, all fans in the network are connected in sequence, and finally the downlink interface of the fan can be disconnected with the equipment;
step two, the FFU gateway sends an address allocation command to the fans in the network, and the first fan receives the address allocation command of the FFU gateway and determines whether the local address allocation command needs to be answered or not in combination with the state of the fan? If the fan does not allocate the address, responding to receive an address allocation command, and waiting for the network address allocated by the FFU gateway;
step three, if the fan address allocation is completed, judging whether the uplink and downlink interfaces of the fan are connected? If not, the fan connects the up and down interfaces and transmits an address assignment command to the next fan;
step four, the FFU gateway sends an address allocation command to each fan which is not allocated with an address in the network, each fan gives a unique network address, and the network address is increased or decreased progressively according to the physical position information until the address allocation of the last fan is completed;
step five, the FFU gateway carries out address uniqueness verification on the fan in the network, sends an address verification command and finds whether an allocated address exists in the network? Is there a plurality of fans using the same network address? If the address allocation state is the allocation state, the uplink interface and the downlink interface are closed; if the address uniqueness verification is passed, the step seven is carried out; otherwise, entering the step six for processing.
Step six, the FFU gateway needs to verify how many fans on the network are in communication with the gateway, if a plurality of fans exist, the address re-distribution command is broadcasted and sent again, and after only one fan can receive FFU gateway data, the step two is switched;
step seven, the FFU gateway verifies the completeness of address allocation of the fans in the network, the fans in the network are guaranteed to obtain own addresses in the address allocation, and if the fans do not update the addresses, the second step of allocation is skipped; the address allocation of all fans in the network is completed, the FFU gateway sets the network to be in an address allocation completion state, and the whole FFU network can receive the command of the gateway and the feedback information of the fans.
Drawings
FIG. 1 is a diagram of an RS485 interface;
FIG. 2 is a diagram of an FFU network topology;
FIG. 3 is a general flow chart of address allocation;
fig. 4 is an allocation flow chart.
Detailed Description
As shown in fig. 1, the fan has an uplink interface and a downlink interface, and the default state is normally closed, which allows MODBUS protocol data to be transmitted from the fan interface to the next fan.
As shown in fig. 2, the FFU gateway is connected to a plurality of network fans by a bus, and the MODBUS protocol is used to implement multi-fan communication, the FFU gateway is connected to an uplink interface of a first fan, and a downlink interface of the first fan needs to be connected to an uplink interface of a second fan, and is connected to all fans in the network in sequence, and finally the downlink interface of the fan may not be connected to the device.
The FFU network is initially established, the FFU gateway needs to distribute addresses to all fans in the network, the addresses are transmitted between the gateway and the fans through a series of commands, the address flow is used as shown in figures 3 and 4, the total flow of address distribution is realized, the system is networked, and the network configuration steps are as follows: initializing a gateway, and connecting the gateway and a 1 st fan uplink interface; connecting a downlink interface of a 1 st fan with an uplink interface of a 2 nd fan, and sequentially connecting all fans in the system; setting a starting address, and allocating a next new address until the last fan is allocated; does it check if the allocation is complete? Otherwise the system may be reallocated.
The implementation process of address allocation is embodied, and the specific flow of the expressed implementation allocation method is as follows: an FFU gateway carries out address uniqueness verification on a fan in a network, sends an address verification command and finds whether an allocated address exists in the network? Is there a plurality of fans using the same network address? If the address allocation state is the allocation state, the uplink interface and the downlink interface are closed; if the address uniqueness verification passes, the FFU gateway performs address allocation completeness verification on the fan in the network to ensure that the fan in the network obtains its own address in the address allocation, and if the fan does not update the address, the FFU gateway sends an address allocation command to the fan in the network, and the first fan receives the address allocation command of the FFU gateway and determines whether the local address allocation command needs to be answered or not in combination with the state of the fan? If the fan does not allocate the address, responding to receive an address allocation command, and waiting for the network address allocated by the FFU gateway; the address allocation of all fans in the network is completed, the FFU gateway sets the network to be in an address allocation completion state, and the whole FFU network can receive the command of the gateway and the feedback information of the fans.
Is the blower in the network send an address assignment command, if the assignment of the blower address is completed, determine if the uplink and downlink interfaces of the blower are connected? If not, the fan connects the up and down interfaces and transmits an address allocation command to the next fan;
the FFU gateway sends an address allocation command to each fan which is not allocated with an address in the network, each fan gives a unique network address, and the network address is increased or decreased progressively according to the physical position information until the address allocation of the last fan is completed;
the FFU gateway needs to verify how many fans on the network are in communication with the gateway, if a plurality of fans exist, the address re-allocation command is broadcast and sent again, after only one fan can receive FFU gateway data, the FFU gateway is switched to send the address allocation command to the fans in the network, and address re-allocation is started from the 1 st fan.
When a new fan is added into the network, the FFU gateway automatically detects that the system needs to carry out address allocation on all fans in the network, each fan enters an address allocation state by changing the state of the fan, and the FFU gateway sends an address allocation command to the fans in the network and starts to carry out address allocation again from the first fan.

Claims (1)

1. A fan group control address automatic allocation method based on position information is characterized in that: the method specifically comprises the following steps:
firstly, RS485 master control equipment, namely an FFU gateway is connected with buses of a plurality of network fans, MODBUS protocol is adopted to realize multi-fan communication, the FFU gateway is connected with an uplink interface of a first fan, a downlink interface of the first fan needs to be connected with an uplink interface of a second fan, all the fans in the network are connected in sequence, and finally the downlink interface of the fan can not be connected with the equipment;
step two, the FFU gateway sends an address allocation command to fans in the network, the first fan receives the address allocation command of the FFU gateway and combines the state of the fan to determine whether to respond to the address allocation command, if the fan does not allocate an address, the first fan responds to receive the address allocation command and waits for the network address allocated by the FFU gateway;
thirdly, if the fan address allocation is finished, judging whether the uplink and downlink interfaces of the fan are communicated, if not, communicating the uplink and downlink interfaces of the fan, and forwarding the address allocation command to the next fan;
step four, the FFU gateway sends an address allocation command to each fan which is not allocated with an address in the network, each fan gives a unique network address, and the network address is increased or decreased progressively according to the physical position information until the address allocation of the last fan is completed;
fifthly, the FFU gateway verifies the uniqueness of the address of the fan in the network, sends an address verification command and verifies whether the distributed address exists in the network or not and whether a plurality of fans use the same network address or not; if the plurality of fans use the same network address, broadcasting and sending a command for reallocating the address, changing the address allocation state into the address allocation state after each fan receives the command, waiting for a moment, and closing the uplink and downlink interfaces; if the address uniqueness verification is passed, the step seven is carried out; otherwise, entering the step six for processing;
step six, the FFU gateway needs to verify how many fans on the network are in communication with the gateway, if a plurality of fans exist, the address re-distribution command is broadcasted and sent again, and after only one fan can receive FFU gateway data, the step two is switched;
step seven, the FFU gateway verifies the completeness of address allocation of the fans in the network, the fans in the network are guaranteed to obtain own addresses in the address allocation, and if the fans do not update the addresses, the second step of allocation is skipped; the address allocation of all fans in the network is completed, the FFU gateway sets the network to be in an address allocation completion state, and the whole FFU network can receive the command of the gateway and the feedback information of the fans.
CN201911215820.1A 2019-12-02 2019-12-02 Fan group control address automatic allocation method based on position information Active CN111147612B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911215820.1A CN111147612B (en) 2019-12-02 2019-12-02 Fan group control address automatic allocation method based on position information

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911215820.1A CN111147612B (en) 2019-12-02 2019-12-02 Fan group control address automatic allocation method based on position information

Publications (2)

Publication Number Publication Date
CN111147612A CN111147612A (en) 2020-05-12
CN111147612B true CN111147612B (en) 2022-05-27

Family

ID=70517497

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911215820.1A Active CN111147612B (en) 2019-12-02 2019-12-02 Fan group control address automatic allocation method based on position information

Country Status (1)

Country Link
CN (1) CN111147612B (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1573974A1 (en) * 2002-12-20 2005-09-14 DaimlerChrysler AG Automatic addressing on bus systems

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102255981B (en) * 2011-07-11 2013-10-16 中国石油天然气集团公司 Highly-efficient reliable acquisition station address allocation method and system
CN104079677A (en) * 2013-03-29 2014-10-01 上海开通数控有限公司 Automatic allocation method of RS485 communication port address
CN204515157U (en) * 2015-01-30 2015-07-29 天津中德职业技术学院 Offshore shooting instrument streamer data acquisition node address Automatic continuous distributor
CN105049551A (en) * 2015-08-27 2015-11-11 赵忠义 System and method for automatically distributing address via bus
US10565107B2 (en) * 2016-06-10 2020-02-18 Semiconductor Components Industries, Llc Auto addressing using functional connection
CN109756588A (en) * 2018-12-05 2019-05-14 国家电网有限公司 A kind of automatic distribution address system and method for RS485 communication

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1573974A1 (en) * 2002-12-20 2005-09-14 DaimlerChrysler AG Automatic addressing on bus systems

Also Published As

Publication number Publication date
CN111147612A (en) 2020-05-12

Similar Documents

Publication Publication Date Title
WO2019196462A1 (en) Air conditioning unit, operating method and device for air conditioning unit
CN111147619B (en) Method and system for realizing automatic address allocation of RS485 slave equipment locally
EP2972904B1 (en) System and method for dynamic device discovery and address assignment
US6990379B2 (en) Method and apparatus for providing a dynamic resource role model for subscriber-requester based protocols in a home automation and control system
US9049038B2 (en) Method of associating or re-associating devices in a control network
US20130275566A1 (en) Method for Configuring One or More Devices in an Ethernet-Based Communication Network
WO2019196483A1 (en) Air conditioning system and communication method between units in air conditioning system
EP3132595B1 (en) System and method for automated and semiautomated configuration of facility automation and control equipment
WO2019196484A1 (en) Air-conditioning system and method for communication between units in air-conditioning system
CN104079677A (en) Automatic allocation method of RS485 communication port address
CN111397175A (en) Control equipment with multiple control modes, control method and air conditioning unit
CN110753138A (en) Equipment ID configuration method and system in CAN bus network
WO2019196477A1 (en) Air-conditioning system and communication method for air-conditioning units
CN110456705B (en) Network control device capable of dynamically expanding interface and building automatic control system
CN111147612B (en) Fan group control address automatic allocation method based on position information
CN103984306B (en) A kind of communication system for power module
CN108626847B (en) Multi-connected air conditioning unit system
WO2015058413A1 (en) Data configuration method and network management server
CN105897936A (en) Method, device and system for processing control configuration information based on industrial internet
CN106657093B (en) Gateway protocol for smart home
CN210518417U (en) Address allocation system
CN104329769A (en) Signal controller, signal control method and air treatment system
KR102120016B1 (en) System and method for controlling multi-drop network device, and server and computer program for the same
CN111010286A (en) Intelligent registration method and device based on serial bus, electronic equipment and medium
KR102594581B1 (en) Multi gateway device with integrated system of wire and wireless communication modes

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