CN102075529A - Open building automation and control network protocol conversion device and method - Google Patents

Open building automation and control network protocol conversion device and method Download PDF

Info

Publication number
CN102075529A
CN102075529A CN2010106211239A CN201010621123A CN102075529A CN 102075529 A CN102075529 A CN 102075529A CN 2010106211239 A CN2010106211239 A CN 2010106211239A CN 201010621123 A CN201010621123 A CN 201010621123A CN 102075529 A CN102075529 A CN 102075529A
Authority
CN
China
Prior art keywords
bacnet
message
communication protocol
control unit
ethernet
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
Application number
CN2010106211239A
Other languages
Chinese (zh)
Other versions
CN102075529B (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.)
College of Biochemical Engineering of Beijing Union University
Original Assignee
College of Biochemical Engineering of Beijing Union University
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 College of Biochemical Engineering of Beijing Union University filed Critical College of Biochemical Engineering of Beijing Union University
Priority to CN 201010621123 priority Critical patent/CN102075529B/en
Publication of CN102075529A publication Critical patent/CN102075529A/en
Application granted granted Critical
Publication of CN102075529B publication Critical patent/CN102075529B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Small-Scale Networks (AREA)

Abstract

The invention discloses a device and a method which are applicable to mutual conversion between building automation and control network internet protocol (BACnet IP) equipment and BACnet Ethernet network equipment. The device comprises an Ethernet network interface unit, a control unit and a working power supply, wherein the working power supply is connected with the network interface unit and the control unit respectively and provides working power for the network interface unit and the control unit; the control unit analyzes and re-encapsulates a BACnet IP message and a BACnet Ethernet message; and the network interface unit is connected with the control unit and is used for receiving message data transmitted by the control unit and forwarding the message data to the Ethernet network. The device is convenient to use, is low in energy consumption, and can be applied to network equipment which utilizes a BACnet Ethernet communication protocol as a main communication protocol to convert the protocol into a BACnet IP communication protocol; thus, greater application and development values are brought to BACnet Ethernet communication protocol equipment.

Description

Open building automation and control network protocol translation device and method for transformation
Technical field
The present invention relates to a kind of open BACnet reforming unit and method for transformation, can be applicable to BACnet Ethernet communications protocol is on the network equipment of main communications protocol, be converted into BACnet IP communications protocol, thereby be worth for BACnet Ethernet communications protocol equipment brings bigger application and exploitation.
Background technology
Since the first building intelligent building occurring the eighties in last century, intelligent building has just obtained fast development in countries in the world.Through the practice and exploring in more than 20 years, the function of intelligent building was constantly replenished and is perfect, and the realization technology is brought in constant renewal in and be ripe.Along with modern information technology development, The intelligence building system will constantly adopt state-of-the-art technology to carry out the system integration.Building automation and control network agreement BACnet (Building Automation and Control Networks) is the standard at building automatic control field, the purpose of formulating this standard is in order to make the control appliance that different manufacturers provide can interoperability, also to make the owner no longer rely on specific privately owned technology.Have the whole world in view, make a general survey of global intelligent building industry development, in all intelligent building integrated technologies, the BACnet standard has obtained promotion and application widely rapidly, and has formally become the unique iso standard (ISO 16484-5) in the building intelligent system field with its advanced technology, perfect architecture and open theory.From the application trend of BACnet standard, the BACnet standard brings deepgoing revolution will for the intelligent building industry.
BACnet is based on four layers of accordion structure, and four layers in the structure corresponding to the physical layer among Fig. 1, data link layer, network layer and application layer.Application layer and network layer also are defined in the BACnet standard.BACnet provides five kinds of selections corresponding to data link layer and the physical layer of OSI, wherein selects 1 to be by the logic connection control association justice of ISO8802 Type 1 definition, combines with ISO8802 media interviews control MAC and physical layer protocol.1 of ISO8802 Type provides unknown no Connection Service, and ISO 8802 is international standard versions of the Ethernet agreement known.
Though the byte message of ISO8802 Ethernet agreement is shorter, communication efficiency is higher, but the realization on computer software needs the individual drive program to support, this has just brought great inconvenience for the application of BACnet Ethernet equipment, promptly must perhaps grasp the Driving technique of the Ethernet agreement of complexity with the software of BACnet Ethernet coordinative composition of equipments.Even grasped Driving technique,, also bring very big restriction for the reproducibility of software and applicability because the software of developing based on this Driving technique must have this driving file when operation.
Along with the development of communication network, the IP communications protocol is more and more used, and the result is in particular the realization of BACnet on the IP agreement in the BACnet communications protocol increased an appendix explanation, makes BACnet IP communications protocol also become international standard.
Because what BACnet IP communications protocol adopted is the communication of UDP mode, the winsockAPI dynamic link library that general program development software (PDS) can utilize computer operating system to carry just can be realized BACnet IP communication, thereby reaches the purpose of operating mutually with BACnet IP network equipment.The software of developing based on BACnet IP communications protocol need not the driving file except that the winsockAPI dynamic link library, can duplicate easily and propagate, and can greatly improve the value of BACnet IP network equipment.
Based on above technical Analysis, if can be the network equipment that adopts BACnet Ethernet by a BACnet IP transducer, be converted into the network equipment of BACnet IP, it just can communicate with the software of more employing BACnet IP agreement, thereby break certain closure, bring bigger application and exploitation to be worth.
Summary of the invention
In view of above-mentioned, purpose of the present invention just provides a kind of open BACnet reforming unit and method for transformation, and when receiving BACnet IP message, this device converts thereof into BACnet Ethernet message and sends once more on network; And when receiving BACnet Ethernet message, this device converts thereof into BACnet IP message and sends once more on network.
The technical solution that the present invention adopts is:
A kind of open building automation and control network protocol translation device comprises:
Control unit, be used for the message of the BACnet IP communication protocol received is carried out packet parsing and encapsulation again, repack the message of BACnet Ethernet communication protocol into, and the message of receiving BACnet Ethernet communication protocol is resolved and encapsulation again, repack the message of BACnet IP communication protocol into;
Network interface unit is used for the communication between control unit and the communication network, and this network interface unit is connected with described control unit;
Working power is used for to control unit, network interface unit power supply;
Adopted embedded OS ucOSII on the software system architecture of control unit, be about to embedded OS ucOSII and together compile together with the BACnet Transformation Program and download to control unit, to realize to intercept simultaneously the function with treatments B ACnet IP communications protocol frame and BACnet Ethernet communications protocol frame.
A kind of open building automation and control network protocol translation method, this method at first together compiles embedded OS ucOSII together with the BACnet Transformation Program and downloads to control unit, to realize intercepting simultaneously the function with treatments B ACnet IP communications protocol frame and BACnet Ethernet communications protocol frame; To adopt the software of BACnet IP communication protocol or the message that equipment sends again, by packet parsing and encapsulation again, the message that repacks BACnet Ethernet communication protocol into resends on the network, make it arrive BACnet Ethernet equipment, and after the response that receives BACnet Ethernet equipment, it is resolved and encapsulation again, the message that repacks BACnet IP communication protocol into resends on the network, make its software or the equipment that arrive BACnet IP, thereby realize two kinds of mutual communication and operations between the BACnet communication protocol.
The invention has the advantages that to need not any direct physical connection is arranged that a need and its be associated in the same LAN by switch and get final product with original BACnet IP or BACnet Ethernet equipment.
Description of drawings
Fig. 1 is four layers of accordion structure figure of BACnet;
Fig. 2 is a circuit block diagram of the present invention;
Fig. 3 is the message structure figure of BACnet IP communication protocol;
Fig. 4 is the message structure figure of BACnet Ethernet communication protocol;
Fig. 5 is parsing and the encapsulation process figure that BACnet IP communication protocol message is converted into BACnet Ethernet communication protocol message;
Fig. 6 is parsing and the encapsulation process figure that BACnet Ethernet communication protocol message is converted into BACnet IP communication protocol message.
Embodiment
The present invention relates to a kind of open BACnet reforming unit and method.
As shown in Figure 2, apparatus of the present invention comprise control unit, network interface unit, working power, and network interface unit is connected with control unit, and working power is to control unit, network interface unit power supply.
Control unit can be realized by micro-processor interface circuit lm3s6911+ circuit.Network interface unit can be the RJ45 standard network interface.Working power be will input alternating current carry out rectifying and wave-filtering and to the output of other unit.
Because the present invention wants the software or the equipment of the while BACnet communications protocol different with two kinds to carry out communication, need multitask function to reach the purpose of communication simultaneously.For realizing multitask function, adopted embedded OS ucOSII on the software system architecture of the present invention, be about to embedded OS ucOSII and together compile together with the BACnet Transformation Program and download to control unit, realized to intercept simultaneously function with treatments B ACnet IP communications protocol frame and BACnet Ethernet communications protocol frame.
Fig. 3 is the message structure figure of BACnet IP communication protocol.Wherein: APDU is the application layer message; NPDU is the network layer message; BVLL is a BACnet virtual logical link layer; UDP is a User Datagram Protocol; IP is Internet Protocol (agreement that interconnects between the network); The physical layer message is a particular hardware transmitting-receiving content.
Fig. 4 is the message structure figure of BACnet Ethernet communication protocol.Wherein: APDU is the application layer message; NPDU is the network layer message; NPCI is network layer heading (control information); LPDU is the data link layer message; LLC is logic link control; X82X82X03 is the service access dot information; The physical layer message is a particular hardware transmitting-receiving byte content.
The present invention will adopt the software of BACnet IP communication protocol or the message that equipment sends, by packet parsing and encapsulation again, the message that repacks BACnet Ethernet communication protocol into resends on the network, make it arrive BACnet Ethernet equipment, and after the response that receives BACnet Ethernet equipment, it is resolved and encapsulation again, the message that repacks BACnet IP communication protocol into resends on the network, make its software or the equipment that arrive BACnet IP, thereby realize two kinds of mutual communication and operations between the BACnet communication protocol.
Specify below and how to resolve and encapsulation again.
BACnet IP communication protocol message is converted into the parsing and the encapsulation process of BACnet Ethernet communication protocol message and sees Fig. 5.
Analyzing step:
The first step: parse IP address of equipment and storage in the IP head in the BACnet IP communication protocol message, as the IP address of transmitting apparatus in future;
Second step: parse port port numbers and storage in the UDP head, as the port port numbers of transmitting apparatus in future;
The 3rd step: parse broadcasting/unicast info and actual content message length and content information in the BVLL head.
Encapsulation step:
The first step: in actual content infomational message front end packing service accessing points information " X82X82X03 " byte content;
Second step: recomputate the LLC length value and, form the LPDU message in the encapsulation of " X82X82X03 " front end according to the actual content message length;
The 3rd step: according to broadcasting/unicast info in the BVLL head, encapsulate concrete device hardware MAC Address, form final actual physics hardware transmitting-receiving message content.
BACnet Ethernet communication protocol message is converted into the parsing and the encapsulation process of BACnet IP communication protocol message and sees Fig. 6.
Analyzing step:
The first step: parse the broadcasting/unicast info in the MAC Address in the BACnet Ethernet communication protocol message;
Second step: parse the length value in the LLC length;
The 3rd step: remove service access dot information " X82X82X03 " byte content.
Encapsulation step:
The first step: determine required broadcasting/clean culture byte content in the BVLL head according to the broadcasting/unicast info that parses;
Second step: recomputate among the BVLL Len req value and, form the BVLL message at actual content message front end encapsulation BVLL head according to length value in the LLC length;
The 3rd step:,, form the UDP message at BVLL front end encapsulation UDP head according to the port port numbers of storing in advance;
The 4th step:,, form the IP message at UDP head front end encapsulation IP head according to stored IP address in advance;
The 5th step:, form final actual physics hardware transmitting-receiving message content in IP head front end encapsulation IP corresponding equipment MAC Address.

Claims (6)

1. open building automation and control network protocol translation device is characterized in that comprising:
Control unit, be used for the message of the BACnet IP communication protocol received is carried out packet parsing and encapsulation again, repack the message of BACnet Ethernet communication protocol into, and the message of receiving BACnet Ethernet communication protocol is resolved and encapsulation again, repack the message of BACnet IP communication protocol into;
Network interface unit is used for the communication between control unit and the communication network, and this network interface unit is connected with described control unit;
Working power is used for to control unit, network interface unit power supply;
Adopted embedded OS ucOSII on the software system architecture of control unit, be about to embedded OS ucOSII and together compile together with the BACnet Transformation Program and download to control unit, to realize to intercept simultaneously the function with treatments B ACnet IP communications protocol frame and BACnet Ethernet communications protocol frame.
2. open building automation and control network protocol translation device as claimed in claim 1 is characterized in that:
Described control unit is a micro-processor interface circuit lm3s6911+ circuit.
3. open building automation and control network protocol translation device as claimed in claim 1 is characterized in that:
Described network interface unit is the RJ45 standard network interface.
4. open building automation and control network protocol translation method is characterized in that comprising step:
1) embedded OS ucOSII is together compiled together with the BACnet Transformation Program downloads to control unit, to realize to intercept simultaneously the function with treatments B ACnet IP communications protocol frame and BACnet Ethernet communications protocol frame;
2) will adopt the software of BACnet IP communication protocol or the message that equipment sends, by packet parsing and encapsulation again, the message that repacks BACnet Ethernet communication protocol into resends on the network, make it arrive BACnet Ethernet equipment, and after the response that receives BACnet Ethernet equipment, it is resolved and encapsulation again, the message that repacks BACnet IP communication protocol into resends on the network, make its software or the equipment that arrive BACnet IP, thereby realize two kinds of mutual communication and operations between the BACnet communication protocol.
5. open building automation and control network protocol translation method as claimed in claim 4 is characterized in that:
The described resolving that BACnet IP communication protocol message is converted into BACnet Ethernet communication protocol message is:
Parse IP address of equipment and storage in the IP head in the BACnet IP communication protocol message, as the IP address of transmitting apparatus in future;
Parse port port numbers and storage in the UDP head, as the port port numbers of transmitting apparatus in future;
Parse broadcasting/unicast info and actual content message length and content information in the BVLL head,
Encapsulation step is:
In actual content infomational message front end packing service accessing points information " X82X82X03 " byte content;
Recomputate the LLC length value and, form the LPDU message according to the actual content message length in the encapsulation of " X82X82X03 " front end;
According to broadcasting/unicast info in the BVLL head, encapsulate concrete device hardware MAC Address, form final actual physics hardware transmitting-receiving message content.
6. open building automation and control network protocol translation method as claimed in claim 4 is characterized in that:
The described process that BACnet Ethernet communication protocol message is converted into the parsing of BACnet IP communication protocol message is:
Parse the broadcasting/unicast info in the MAC Address in the BACnet Ethernet communication protocol message;
Parse the length value in the LLC length;
Remove service access dot information " X82X82X03 " byte content,
Encapsulation step is:
Determine required broadcasting/clean culture byte content in the BVLL head according to the broadcasting/unicast info that parses;
Recomputate among the BVLL Len req value and, form the BVLL message according to length value in the LLC length at actual content message front end encapsulation BVLL head;
According to the port port numbers of storing in advance,, form the UDP message at BVLL front end encapsulation UDP head;
According to stored IP address in advance,, form the IP message at UDP head front end encapsulation IP head;
In IP head front end encapsulation IP corresponding equipment MAC Address, form final actual physics hardware transmitting-receiving message content.
CN 201010621123 2010-12-24 2010-12-24 Open building automatic control network protocol conversion device and method Expired - Fee Related CN102075529B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201010621123 CN102075529B (en) 2010-12-24 2010-12-24 Open building automatic control network protocol conversion device and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201010621123 CN102075529B (en) 2010-12-24 2010-12-24 Open building automatic control network protocol conversion device and method

Publications (2)

Publication Number Publication Date
CN102075529A true CN102075529A (en) 2011-05-25
CN102075529B CN102075529B (en) 2013-06-05

Family

ID=44033873

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201010621123 Expired - Fee Related CN102075529B (en) 2010-12-24 2010-12-24 Open building automatic control network protocol conversion device and method

Country Status (1)

Country Link
CN (1) CN102075529B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106444436A (en) * 2016-07-19 2017-02-22 柳州龙辉科技有限公司 Energy consumption information processing device
CN110741605A (en) * 2017-06-21 2020-01-31 西门子瑞士有限公司 System and method for isolating device communications in a BACnet/IP building automation network
CN111901288A (en) * 2019-12-26 2020-11-06 长扬科技(北京)有限公司 Network security protection method aiming at BACnet

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101232470A (en) * 2007-01-26 2008-07-30 Lg电子株式会社 Building management system
CN101594362A (en) * 2009-07-02 2009-12-02 杭州华碧能源科技有限公司 The BACnet protocol conversion is become the communications protocol transducer of Profibus agreement

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101232470A (en) * 2007-01-26 2008-07-30 Lg电子株式会社 Building management system
CN101594362A (en) * 2009-07-02 2009-12-02 杭州华碧能源科技有限公司 The BACnet protocol conversion is become the communications protocol transducer of Profibus agreement

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
WOLFGANG GRANZER ET AL: "Gateway-free Integration of BACnet and KNX using Multi-Protocol Devices", 《INTERNATIONAL CONFERENCE ON INDUSTRIAL INFORMATICS, 2008. INDIN 2008. 6TH IEEE》 *
梁华等: "基于TCP/IP的BACnet网络的实现", 《计算机与数字工程》 *
汪谢丹: "基于ARM9和嵌入式Linux的BACnet楼宇控制器的研究", 《中国优秀硕士学位论文全文数据库 工程科技II辑(月刊)》 *
董春桥等: "楼宇自动控制网络通信协议BACnet实现模型的研究", 《计算机工程与应用》 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106444436A (en) * 2016-07-19 2017-02-22 柳州龙辉科技有限公司 Energy consumption information processing device
CN110741605A (en) * 2017-06-21 2020-01-31 西门子瑞士有限公司 System and method for isolating device communications in a BACnet/IP building automation network
CN110741605B (en) * 2017-06-21 2022-03-22 西门子瑞士有限公司 System and method for isolating device communications in a BACnet/IP building automation network
CN111901288A (en) * 2019-12-26 2020-11-06 长扬科技(北京)有限公司 Network security protection method aiming at BACnet

Also Published As

Publication number Publication date
CN102075529B (en) 2013-06-05

Similar Documents

Publication Publication Date Title
Bergmann et al. A CoAP-gateway for smart homes
CN104010049B (en) Ethernet ip message encapsulating method and Network Isolation and DHCP implementation methods based on SDN
CN111835786A (en) System for data acquisition and equipment control of multi-protocol equipment and implementation method
CN102857566A (en) Intelligent gateway of internet of things capable of being customized by software
Al-Kaseem et al. End-to-end delay enhancement in 6LoWPAN testbed using programmable network concepts
JP2006060515A (en) Radio communication system
KR20010040424A (en) Method and Apparatus for Universal Data Exchange Gateway
Franceschinis et al. On the performance of ZigBee Pro and ZigBee IP in IEEE 802.15. 4 networks
Kim et al. Home appliance control framework based on smart TV set-top box
CN102438017B (en) Routing function-based conversion apparatus of Modbus protocol and BACnet Ethernet protocol and conversion method thereof
CN102075529B (en) Open building automatic control network protocol conversion device and method
Bai et al. Compact Modbus TCP/IP protocol for data acquisition systems based on limited hardware resources
CN111262823A (en) Security gateway and data processing method thereof
CN118227343B (en) Data processing method, system, device, equipment, medium and product
CN102255800B (en) Method for converting data format between IP (Internet Protocol) data packages on CAN (Control Area Network) bus and CAN messages
Keller et al. Self‐Awareness in Computer Networks
CN109962762A (en) A kind of data transmission method, sending device and reception device
CN107113207B (en) Network system, address management device, and address management method
CN107277011A (en) The data classification method and device of terminal device
Di Bert et al. Enhancements of G3‐PLC technology for smart‐home/building applications
KR100445658B1 (en) Home Appliance Network System with Multiple Communication Protocol and Operating Method for the Same
CN111131267A (en) Ethernet self-adaption method, device and system based on FPGA
Peretti CoAP over DTLS TinyOS Implementation and Performance Analysis
CN105843046A (en) Intelligent household electrical appliance master control communication method and system thereof
CN102984006A (en) Network management implementation method based on simple network management protocol

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20130605

Termination date: 20141224

EXPY Termination of patent right or utility model