CN111365830A - Fan networking system based on RS-485 enhanced Modbus communication protocol - Google Patents
Fan networking system based on RS-485 enhanced Modbus communication protocol Download PDFInfo
- Publication number
- CN111365830A CN111365830A CN202010135467.2A CN202010135467A CN111365830A CN 111365830 A CN111365830 A CN 111365830A CN 202010135467 A CN202010135467 A CN 202010135467A CN 111365830 A CN111365830 A CN 111365830A
- Authority
- CN
- China
- Prior art keywords
- fan
- communication protocol
- networking system
- enhanced
- repeaters
- 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.)
- Granted
Links
Images
Classifications
-
- F—MECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
- F24—HEATING; RANGES; VENTILATING
- F24F—AIR-CONDITIONING; AIR-HUMIDIFICATION; VENTILATION; USE OF AIR CURRENTS FOR SCREENING
- F24F11/00—Control or safety arrangements
- F24F11/50—Control or safety arrangements characterised by user interfaces or communication
- F24F11/56—Remote control
- F24F11/58—Remote control using Internet communication
-
- F—MECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
- F24—HEATING; RANGES; VENTILATING
- F24F—AIR-CONDITIONING; AIR-HUMIDIFICATION; VENTILATION; USE OF AIR CURRENTS FOR SCREENING
- F24F11/00—Control or safety arrangements
- F24F11/70—Control systems characterised by their outputs; Constructional details thereof
- F24F11/72—Control systems characterised by their outputs; Constructional details thereof for controlling the supply of treated air, e.g. its pressure
Landscapes
- Engineering & Computer Science (AREA)
- Chemical & Material Sciences (AREA)
- Combustion & Propulsion (AREA)
- Mechanical Engineering (AREA)
- General Engineering & Computer Science (AREA)
- Human Computer Interaction (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention discloses a fan networking system based on an RS-485 enhanced Modbus communication protocol, which comprises: the system comprises a controller, a gateway in communication connection with the controller, a plurality of repeaters in communication connection with the gateway and a fan set in communication connection with the repeaters; the frame format in the Modbus communication protocol comprises the following steps: frame header, instruction code, fan address, fan group address and error checking part; the invention enables the fan system to be simple in grouping and simple and efficient in networking by changing the frame format of the traditional MODBUS communication protocol, and realizes double address management of the fan group address and the fan group address, thereby facilitating large-scale grouping and management of the fan.
Description
Technical Field
The invention relates to the technical field of ventilation equipment control, in particular to a fan networking system based on an RS-485 enhanced Modbus communication protocol.
Background
The new intelligent fan has higher and higher requirements on group control networking and remote control of the fan, the networking requirements of the fan are mostly realized by adopting a traditional standard Modbus communication protocol in the market at present, the protocol is wide in application range, the frame format is simple and compact, the format is standard, the transmission is easy, the popular understanding is easy, the use of a user is simple, and the development is simple. As an industrial standard protocol, users do not need to know the technical details of Modbus, only need to refer to an instruction manual and an application example provided, complete configuration according to requirements, and can realize connection communication between devices in a period of time without complicated programming.
The traditional RTU transmission mode of the Modbus only has 1 address byte in a frame format, does not consider the group address, namely the grouping expansion requirement during large and medium-sized networking, is mostly suitable for small to medium-sized networking operation, is inconvenient to use when a grouping network is used, and cannot well manage a plurality of fan groups.
Thus, the prior art has yet to be improved and enhanced.
Disclosure of Invention
In view of the defects of the prior art, the invention aims to provide a fan networking system based on an RS-485 enhanced Modbus communication protocol, and aims to overcome the defect that the Modbus communication protocol in the prior art is inconvenient for fan management when a large-scale fan is networked.
In order to achieve the purpose, the invention adopts the following technical scheme:
a fan networking system based on an RS-485 enhanced Modbus communication protocol, wherein the fan networking system comprises: the system comprises a controller, a gateway in communication connection with the controller, a plurality of repeaters in communication connection with the gateway and a fan set in communication connection with the repeaters; the frame format in the Modbus communication protocol comprises the following steps: frame header, instruction code, fan address, fan group address and error checking part.
Further, in the fan networking system based on the RS-485 enhanced Modbus communication protocol, when the gateway is in communication connection with the controller, the default communication specification is as follows: the baud rate is fixed at 9600bps, no check bit, data bit 8, start bit 1, stop bit 1.
Further, in the fan networking system based on the RS-485 enhanced Modbus communication protocol, the fan address range is 1-31, and the fan networking address range is 1-255.
Further, in the fan networking system based on the RS-485 enhanced Modbus communication protocol, the error checking part adopts exclusive OR checking.
Furthermore, in the fan networking system based on the RS-485 enhanced Modbus communication protocol, the number of the repeaters is 255, and the repeaters are ones for converting TCP/IP to RS 485.
Furthermore, in the fan networking system based on the RS-485 enhanced Modbus communication protocol, the single repeater is in communication connection with 31 fans.
The technical scheme adopted by the invention has the following beneficial effects:
the invention provides a fan networking system based on an RS-485 enhanced Modbus communication protocol, which comprises: the system comprises a controller, a gateway in communication connection with the controller, a plurality of repeaters in communication connection with the gateway and a fan set in communication connection with the repeaters; the frame format in the Modbus communication protocol comprises the following steps: frame header, instruction code, fan address, fan group address and error checking part; the invention enables the fan system to be simple in grouping and simple and efficient in networking by changing the frame format of the traditional MODBUS communication protocol, and realizes double address management of the fan group address and the fan group address, thereby facilitating large-scale grouping and management of the fan.
Drawings
FIG. 1 is a structural block diagram of a fan networking system based on an RS-485 enhanced Modbus communication protocol, provided by the invention;
FIG. 2 is a transmission frame format diagram of a fan networking system based on an RS-485 enhanced Modbus communication protocol.
In the figure: 100. a controller; 200. a gateway; 300. a protocol processing unit; 400. a repeater; 500. and a fan unit.
Detailed Description
In order to make the objects, technical solutions and effects of the present invention clearer and clearer, the present invention is further described in detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
In the embodiments and claims, the terms "a" and "an" can mean "one or more" unless the article is specifically limited.
In addition, if there is a description of "first", "second", etc. in an embodiment of the present invention, the description of "first", "second", etc. is for descriptive purposes only and is not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In addition, technical solutions between various embodiments may be combined with each other, but must be realized by a person skilled in the art, and when the technical solutions are contradictory or cannot be realized, such a combination should not be considered to exist, and is not within the protection scope of the present invention.
The conventional MODBUS RTU transmission mode has only 1 address byte in the frame format, does not consider the group address, i.e. the packet expansion requirement in large and medium-sized networking, is mostly suitable for small to medium-sized networking operation, is inconvenient in the application of using the packet networking, and cannot well adapt to the networking operation requirements of multiple wind turbines, such as FFU industry.
The first embodiment is as follows:
the invention discloses a fan networking system based on an RS-485 enhanced Modbus communication protocol, and please refer to FIG. 1, wherein FIG. 1 is a structural block diagram of the fan networking system based on the RS-485 enhanced Modbus communication protocol; the fan networking system based on the RS-485 enhanced Modbus communication protocol is applied to the fan networking system, and comprises: the system comprises a controller 100, a gateway 200 in communication connection with the controller 100, a plurality of repeaters 400 in communication connection with the gateway 200, and a fan set 500 in communication connection with the repeaters, wherein the system further comprises a protocol processing unit 300, and the protocol processing unit stores a Modbus communication protocol; further, the frame format in the Modbus communication protocol includes: frame header, instruction code, fan address, fan group address and error checking part.
In the embodiment of the present invention, the controller 100 may be a PC terminal, the gateway 200 is in communication connection with the PC terminal, the gateway 200 may be connected with 255 repeaters 400, each repeater 400 is in communication connection with one fan group 500 at the same time, that is, in communication connection with 31 fans, as shown in fig. 1, the repeater 1 may be connected with fans 1.1 to 1.31 (i.e., a fan group), and so on until fans 255.1 to 255.31(255 fan group) connected to the repeater 255, and a single PC terminal may control 7905(255 x 31) fans; in addition, theoretically, the expansion can be unlimited by adding a main gateway and a secondary gateway; preferably, the repeaters are all RS485 repeaters.
More specifically, referring to fig. 2, fig. 2 is a transmission frame format diagram of a fan networking system based on an RS-485 enhanced Modbus communication protocol according to the present invention; the improved enhanced Modbus communication protocol redefines the frame format of the protocol in the software level, and specifically comprises the following steps: frame header, instruction code, fan address, fan group address, error check part and data part. Specifically, the controller in the fan networking system can be a PC terminal, and when the gateway and the PC terminal use serial port communication, the communication protocol is as follows: the baud rate is fixed at 9600bps, no check bit, data bit 8, start bit 1, stop bit 1.
Further, the fan address range is 1-31, the fan group address range is 1-255, the default factory settings are that the fan address and the fan group address are both 1, one repeater has at most 31 fans, that is, a group of fans has at most 31, one gateway can have 255 repeaters, that is, the fan group has 255 groups, one PC end can realize the control of 7905 fans, and theoretically, the main gateway and the secondary gateway can be expanded infinitely, so that the requirement of networking operation of multiple fan groups can be well met.
The following describes a frame format message in the present invention, please continue to refer to fig. 2:
frame head:
d2 | d1 | d0 | 1 | Svc | MS | x1 | x0 |
x1 x 0: synchronization bit 01 of the beginning of the message;
MS: data direction bit, 1: the host sends a command 0: the slave responds;
and (4) Svc: the service bit, the host reads the slave address time 1, otherwise 0;
and (4) Bit 4: bit 1 is reserved;
d 0-d 2: the number of bytes of data.
Instruction code + fan address:
c2 | c1 | c0 | a4 | a3 | a2 | a1 | a0 |
c 2-c 0: a functional instruction code;
a 4-a 0: blower fan address 1-31
More specifically, the function table instruction code table is as follows:
the fan group address:
g7 | g6 | g5 | g4 | g3 | g2 | g1 | g0 |
g 7-g 0: the fan set address is 1-255.
The error checking part of the invention adopts exclusive OR check, which specifically comprises the following steps:
the exclusive-or value of all bytes containing the check bits is 11111111, as follows:
the invention improves the efficiency of the programmer by using simple and efficient exclusive-or check to replace the traditional CRC check.
The following describes in more detail the working principle of the RS-485 enhanced Modbus communication protocol-based fan networking system according to the present invention, taking a specific application scenario of this embodiment as an example:
in the fan networking system, a controller and each fan are internally provided with the fan networking system based on the RS-485 enhanced Modbus communication protocol, and the controller automatically allocates an ID (namely fan address) address and a group address of a group in which each fan is located to each fan; the practical use is explained, when the controller inquires information, the controller is responded from each fan, if a certain fan breaks down, the alarm information fed back by the fan contains the ID address of the fan, the broken fan needs to be searched at the moment, and if the broken fan is searched on site only through the ID address of the fan, the fault is difficult to find. By using the communication protocol in the invention, if a fault fan occurs, the message part comprises the ID address and the fan group address of the fault fan in the alarm information fed back from the fault fan, the area where the fan is located is determined by the fan group address, the specific fan position is further determined by the fan ID address, and finally the position where the fan is located is found out quickly.
In summary, the invention provides a fan networking system based on an RS-485 enhanced Modbus communication protocol, and the fan networking system comprises: the system comprises a controller, a gateway in communication connection with the controller, a plurality of repeaters in communication connection with the gateway and a fan set in communication connection with the repeaters; the frame format in the Modbus communication protocol comprises the following steps: frame header, instruction code, fan address, fan group address and error checking part; the invention redefines the frame format content of the MODBUS-RTU transmission mode; the double address management of the fan group address and the fan group address is realized, and the large-scale grouping management of a fan networking system is facilitated; meanwhile, the traditional CRC check is replaced by the simple and efficient exclusive-OR check, so that the efficiency of a programmer is improved.
Other embodiments of the invention will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This invention is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the invention and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the invention being indicated by the following claims.
Claims (6)
1. A fan networking system of a fan networking system based on an RS-485 enhanced Modbus communication protocol is characterized by comprising: the system comprises a controller, a gateway in communication connection with the controller, a plurality of repeaters in communication connection with the gateway and a fan set in communication connection with the repeaters; the frame format in the Modbus communication protocol comprises the following steps: frame header, instruction code, fan address, fan group address and error checking part.
2. The RS-485 enhanced Modbus communication protocol-based fan networking system according to claim 1, wherein when the gateway is communicatively connected to the controller, a default communication specification is: the baud rate is fixed at 9600bps, no check bit, data bit 8, start bit 1, stop bit 1.
3. The RS-485 enhanced Modbus communication protocol-based fan networking system according to claim 1, wherein the fan address range is 1-31, and the fan group address range is 1-255.
4. The RS-485 enhanced Modbus communication protocol based fan networking system according to claim 1, wherein the error checking portion employs an exclusive OR check.
5. The RS-485 enhanced Modbus communication protocol-based fan networking system according to claim 1, wherein the number of repeaters is at least 255, and the repeaters are TCP/IP to RS485 repeaters.
6. The RS-485 enhanced Modbus communication protocol-based fan networking system according to claim 5, wherein the repeaters are communicatively connected between a single fan and 31 fans.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010135467.2A CN111365830B (en) | 2020-03-02 | 2020-03-02 | Fan networking system based on RS-485 enhanced Modbus communication protocol |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010135467.2A CN111365830B (en) | 2020-03-02 | 2020-03-02 | Fan networking system based on RS-485 enhanced Modbus communication protocol |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111365830A true CN111365830A (en) | 2020-07-03 |
CN111365830B CN111365830B (en) | 2021-06-11 |
Family
ID=71208512
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010135467.2A Active CN111365830B (en) | 2020-03-02 | 2020-03-02 | Fan networking system based on RS-485 enhanced Modbus communication protocol |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111365830B (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101547542A (en) * | 2009-04-30 | 2009-09-30 | 浙江大学 | Logic group address supporting method and logic group address supporting system for DMX512 landscape lighting management and control |
CN102508477A (en) * | 2011-11-04 | 2012-06-20 | 重庆海润节能技术股份有限公司 | Fan networking control system |
CN104566828A (en) * | 2015-01-16 | 2015-04-29 | 江苏工程职业技术学院 | Zigbee technology based central air-conditioning cold source monitoring system and method |
CN107819881A (en) * | 2017-12-08 | 2018-03-20 | 桂林电子科技大学 | A kind of communication system and communication means for mine lamp charging cluster management |
CN108574935A (en) * | 2017-03-09 | 2018-09-25 | 华为技术有限公司 | A kind of multicast service handling method and access point |
-
2020
- 2020-03-02 CN CN202010135467.2A patent/CN111365830B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101547542A (en) * | 2009-04-30 | 2009-09-30 | 浙江大学 | Logic group address supporting method and logic group address supporting system for DMX512 landscape lighting management and control |
CN102508477A (en) * | 2011-11-04 | 2012-06-20 | 重庆海润节能技术股份有限公司 | Fan networking control system |
CN104566828A (en) * | 2015-01-16 | 2015-04-29 | 江苏工程职业技术学院 | Zigbee technology based central air-conditioning cold source monitoring system and method |
CN108574935A (en) * | 2017-03-09 | 2018-09-25 | 华为技术有限公司 | A kind of multicast service handling method and access point |
CN107819881A (en) * | 2017-12-08 | 2018-03-20 | 桂林电子科技大学 | A kind of communication system and communication means for mine lamp charging cluster management |
Also Published As
Publication number | Publication date |
---|---|
CN111365830B (en) | 2021-06-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN113437998B (en) | Operation and maintenance debugging method and system, nonvolatile storage medium and processor | |
KR100605222B1 (en) | Logical address configuration method for network device | |
CN104883656B (en) | A kind of method and its system for setting up stable state piconet based on bluetooth | |
US20040054829A1 (en) | Method, system and program for the transmission of modbus messages between networks | |
AU752417B2 (en) | Remote access to electronic meters using a TCP/IP protocol suite | |
WO2022095863A1 (en) | Micropower wireless access method and apparatus for internet of things of power transmission and transformation device | |
CN102053935A (en) | MODBUS serial communication protocol-based communication method | |
KR20040104328A (en) | Home network system | |
CN102625554A (en) | Distributed DALI (Digital Addressable Lighting Interface) lighting control system and method thereof | |
WO2004107089A2 (en) | Home network system | |
WO2015000230A1 (en) | Industrial ethernet packet loss detection method based on heartbeat signals | |
CN111365830B (en) | Fan networking system based on RS-485 enhanced Modbus communication protocol | |
CN103581228A (en) | Method and system for device communication in Internet of Things | |
Sivaneasan et al. | A new routing protocol for PLC-based AMR systems | |
CN115514593B (en) | Method for rapidly acquiring link node data by industrial control ring network link interruption | |
CN115379020B (en) | Embedded multi-machine communication protocol design method | |
CN107396417A (en) | Network communication method for network system | |
CN115277867B (en) | Collector and power communication method and system of Modbus protocol equipment based on collector | |
WO2022087795A1 (en) | Resource mapping method and apparatus, device, and storage medium | |
CN110768939A (en) | Data frame configuration method, equipment control method and equipment control system | |
CN109802877A (en) | A kind of CAN bus based Communication System Design | |
CN108337141B (en) | Modbus communication method for multi-split air conditioner gateway | |
CN107995025B (en) | Identification system and method for backbone nodes in power line network nodes | |
CN214311388U (en) | Multi-channel serial port control equipment based on TD-LTE5800 system | |
CN211744743U (en) | DTU equipment supporting multiple wireless networking 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 |