CN105607527A - KNX-BACnet/IP protocol conversion gateway based on Cortex-M processor - Google Patents

KNX-BACnet/IP protocol conversion gateway based on Cortex-M processor Download PDF

Info

Publication number
CN105607527A
CN105607527A CN201410670728.5A CN201410670728A CN105607527A CN 105607527 A CN105607527 A CN 105607527A CN 201410670728 A CN201410670728 A CN 201410670728A CN 105607527 A CN105607527 A CN 105607527A
Authority
CN
China
Prior art keywords
knx
bacnet
module
protocol conversion
gateway
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.)
Pending
Application number
CN201410670728.5A
Other languages
Chinese (zh)
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.)
Mechanical Industry Instrument And Meter Complex Art Institute For Economic Research
Original Assignee
Mechanical Industry Instrument And Meter Complex Art Institute For Economic Research
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 Mechanical Industry Instrument And Meter Complex Art Institute For Economic Research filed Critical Mechanical Industry Instrument And Meter Complex Art Institute For Economic Research
Priority to CN201410670728.5A priority Critical patent/CN105607527A/en
Publication of CN105607527A publication Critical patent/CN105607527A/en
Pending legal-status Critical Current

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a KNX-BACnet/IP protocol conversion gateway based on a Cortex-M processor, which is functionally divided to mainly comprise a KNX communication module, a gateway configuration module, a BACnet/IP communication module and a protocol conversion module, wherein the KNX communication module supports a communication protocol of the KNX on a TP1 medium; the gateway configuration module supports a standard TCP/IP protocol and realizes a network communication function with upper computer configuration software; the BACnet/IP communication module supports a BACnet/IP protocol, part of BACnet generic object types and a service set; and the protocol conversion module comprises equipment mapping and data mapping between the KNX system and the BACnet/IP system, all mapping is stored in shared data memory pools, and through memory management and task scheduling, the protocol conversion module realizes mapping and two-way interaction of the data. The KNX-BACnet/IP protocol conversion gateway based on a Cortex-M processor has the advantages of small volume, high reliability, flexible configuration and the like. Integration and service sharing between the KNX system and the BACnet/IP system can be quickly and conveniently realized.

Description

A kind of KNX-BACnet/IP protocol conversion gateway based on Cortex-M processor
Technical field:
The invention belongs to building automatic control technology field, particularly the building automatic based on KNX and BACnet/IP agreementControl technology field.
Background technology:
KNX is the abbreviation of Konnex, and in May, 1999, Europe three large bus protocol EIB, BatiBus and EHSA mergeSet up Konnex association, released KNX agreement. This agreement, taking EIB as basis, has been taken into account the thing of BatiBus and EHSAReason layer specification and absorbed BatiBus and EHSA in the advantage such as configuration mode, the complete solution of family, building automatic is providedScheme. KNX is by the open international standard of the house of official approval and building control field, and KNX is in May, 2013 simultaneouslyBecome China national voluntary standard GB/T20965-2013 and " control network HBES technical specification---house and building controlSystem ".
BACnet is ADataCommunicationProtocolforBuildingAutomationandContro lThe abbreviation of Network, 1987, the project of standard development committee of HV&AC engineering teacher association and organization of the U.S. (ASHARE) assembledWhole world multidigit famous expert in the industry, through 8 years half time, in June nineteen ninety-five, ASHARE was formally by global first buildingAutomatic control industry communication standard BACnet, standard number is ANSI/ASHAREStandard135-1995, becomes the U.S. December in the same yearNational standard is also European standard simultaneously. BACnet is a standard communication and data exchange agreement, and it is a series of right to have definedResemble type and service, the building equipment of different manufacturers can be realized alternately, and can provide unified data communication for these equipmentService and protocol operation platform. Because BACnet supports multiple communication media, and data definition adopts object-based form,BACnet uses very extensive in Europe and North America.
Although KNX and BACnet Related product is separately all very abundant, for the integrated net of these two kinds of communication systemsPass equipment is actually rare, and the integrated gateway using is at present nearly all external product, expensive, and maintenance difficulties is larger,The domestic producer that there is no releases this series products or service.
Summary of the invention:
For solving the existing problem of background technology, realize the integrated of KNX system and BACnet/IP system and serve and share,The invention discloses a kind of KNX-BACnet/IP of configuring, maintain easily, reliability being high of being easy to based on Cortex-M processorProtocol conversion gateway.
The present invention divides from function, mainly comprises KNX communication module, gateway configuration module, the BACnet/IP mould of communicating by letterPiece, protocol conversion module.
KNX communication module of the present invention adopts bus-powered mode, gateway configuration module, and BACnet/IP communication module,Protocol conversion module, by external power source, is supported direct current 9-30VDC power supply or is exchanged 24VAC power supply.
KNX communication module of the present invention and gateway configuration module, BACnet/IP protocol module, protocol conversion module are electricIsolation.
Gateway configuration module of the present invention receives the configuration service of host computer, realizes the transfer of data with host computer configuration software.
KNX communication module of the present invention is supported the KNX agreement of standard, realize to the KNX equipment having configured monitors withOperation, the KNX data type of support comprises: (Drivecontrol, 1 are controlled in switching value (Switch, 1 bit), drivingBit), priority (Priority, 2 bits), ASC code character (8 bit), light modulation (Dimming, 4 bits), percentageNumber (Scaling, 8 bits), floating-point (Float, 16 bits), counter (Counter, 8/16/32 bit).
BACnet/IP communication module support mark BACnet/IP agreement of the present invention and ICP/IP protocol, the object class of supportType comprises: Devicetype (device type), AnalogInput (analog input), (analog quantity is defeated for AnalogOutputGo out), AnalogValue (analog value), BinaryInput (switching value input), (switching value is defeated for BinaryOutputGo out), BinaryValue (switch value), MultistateInput (multimode input), MultistateOutput be (manyState-output), MultistateValue (multimode value), the service of support comprises: read attribute (ReadProperty),Write attribute (WriteProperty), read multiple attribute (ReadPropertyMultiple), write multiple attribute (WritePropertyMultiple), subscribe to COV (SubscribeCOV), confirm COV (ConfirmedCOVNotification),Non-confirmation COV (UnconfirmedCOVNotification) also supports BACnet numerical value change COV (Changeof simultaneouslyValue) there is the overtime functions of retransmission of confirming notice.
Protocol conversion module of the present invention by management mapping point collective data memory pool manage KNX system withThe mapping of BACnet/IP system and bi-directional communication function.
Brief description of the drawings:
Fig. 1 is functional framework schematic diagram of the present invention.
Fig. 2 is hardware frame schematic diagram of the present invention.
Fig. 3 is BACnet/IP communication module schematic diagram of the present invention.
Fig. 4 is agreement mapping block schematic diagram of the present invention.
Fig. 5 is the mutual schematic diagram of data double-way of the present invention.
Detailed description of the invention:
Referring to Fig. 1 functional framework schematic diagram of the present invention, the present invention divides from function, mainly comprises KNX communication module,Gateway configuration module, BACnet/IP communication module, protocol conversion module; Wherein gateway configuration module is responsible for and host computer configurationSoftware communication, definition rule of communication, module parameter; KNX communication module has realized the KNX agreement of standard, the connecing of data messageReceive and adopt dma mode, support maximum KNX number of devices to depend on the present invention's self memory size; The BACnet/IP mould of communicating by letterPiece has been realized BACnet virtual data link layer and BACnet application layer services on the basis of traditional UDP service, thisBright before not configuring, only there are the BACnet object properties of module itself; Gateway configuration module is by succinct shared-memory managementDevice map and the data-mapping of BACnet and two kinds of agreements of KNX are realized with task scheduling; Critical data in module and operationThe RS232 serially printing output that information can be expanded by the present invention.
Referring to Fig. 2 hardware structure schematic diagram of the present invention, the present invention need to access two kinds of power supply modes simultaneously, and one is logicalThe direct current 30VDC that crosses KNX completes the power supply of KNX communication module, and another is by direct current 9-30VDC or exchanges 24VACComplete other parts power supply of the present invention; External direct current 9-30VDC power supply or interchange 24VAC power supply, successively by thisRectification circuit part (1), filter circuit part (2) in invention, turn 5V circuit part (3), turn 3.3V circuit part (4)Meet the power supply to different components in the present invention.
Further, core processor of the present invention uses the Cortex-M processor (5) of ARM framework, connects by RMIIMouth is connected (7) with the PHY chip of Ethernet 802.3; Cortex-M processor (5) is by parallel address and data/address busBe connected with the sram chip (8) of outside expansion; Cortex-M processor (5) is the EEPROM with outside expansion by SPI interfaceChip (9) connects; Cortex-M processor (5) is connected with RS232 electrical level transferring chip (6) by USART interface;KNX transmission circuit part (11) realizes and the communicating by letter of Cortex-M processor (5) by magnetic coupling isolation (10).
Further, design of the present inventionly and be divided into systematically, in analog, KNX ground and protection ground: systematically comprise MCU,The part of the system power supply such as storage chip, Ethernet chip side; In analog for ethernet physical layer chip uses; Be KNX KNXThe ground of bus, with electrical isolation systematically; Protection ground comprises the shell ground of part connector, the network of releasing of TVS pipe, protectionGround is connected with guide rail by the metal clips of connected with outer casing.
KNX communication module of the present invention the is integrated proprietary transceiving chip of KNX, has realized and the two-way interactive of KNX system,KNX communication module receives message by the mode of DMA, and message is resolved, and draws the source address of every message, objectThe contents such as address, data type and data value, are then stored in this receiving cache queue, wait for that protocol conversion module carries outProcess; The transmission of KNX communication module adopts event driven mode, and the initiation of event and the particular content of message are by protocol conversionModule controls.
Be BACnet/IP communication module schematic diagram of the present invention referring to Fig. 3, BACnet/IP communication module bag of the present inventionDraw together BACnet protocol stack and ICP/IP protocol stack, ICP/IP protocol stack, through transplanting and cutting, is only supported ARP, ICMP, TCPAnd udp protocol, BACnet protocol stack is supported the object type of 10 kinds of standards: Devicetype (device type), AnalogInput(analog input), AnalogOutput (analog output), AnalogValue (analog value), BinaryInput(switching value input), BinaryOutput (switching value output), BinaryValue (switch value), MultistateInput(multimode input), MultistateOutput (multimode output), MultistateValue (multimode value), support11 kinds of standards service comprise: read attribute (ReadProperty), write attribute (WriteProperty), read multiple attribute (ReadPropertyMultiple), write multiple attribute (WritePropertyMultiple), subscribe to COV (SubscribeCOV),Confirm COV (ConfirmedCOVNotification), non-confirmation COV (UnconfirmedCOVNotification)Deng, the Code And Decode of 14 kinds of basic data types of support, supports the abnormality processing such as mistake, refusal, also supports BACnet simultaneouslyCOV (ChangeofValue) has the overtime functions of retransmission of confirming notice.
Referring to Fig. 4 protocol conversion module schematic diagram of the present invention, protocol conversion module is a management and dispatching module, managementWith mapping and the interactive communication function of scheduling KNX system and BACnet system, system map adopts the mode of static mappings, mappingData are stored in static memory headroom.
Agreement mapping of the present invention comprises two classifications: device map and data-mapping; Device map refers to KNX and BACnetMapping in system between different physical equipment, for KNX system, equipment is exactly its physical address, according to agreement regulation byDomain addresses. line address. device address composition, need to there be IP address and port numbers for BACnet/IP equipment, subnet mask,Gateway address, device instance number; Data-mapping rule be in KNX system by group address, data type, whether readable, beNo writing, transmission while whether variation, whether renewable attribute composition, in BACnet system by object type, object instance number,Object oriented composition, forms one-to-one relationship.
Referring to the mutual schematic diagram of Fig. 5 data double-way of the present invention, bidirectional data interaction mechanism adopts the mechanism of Event triggered to enterLine pipe reason.
Further, upstream data processing mode is: when getting after KNX bus message by KNX communication module, message to be enteredRow is resolved and is placed in the buffer queue chained list of module self, and protocol conversion module obtains buffer queue, whether checks group addressIn configuration data memory pool, if exist, judge whether numerical value upgrades, if value changes by BACnet/IP communication moduleCarry out object and service coding, trigger COV (changeofvalue) notice, be uploaded to BACnet by gateway configuration moduleSystem miscellaneous equipment, does not do any processing if unchanged.
Further, the processing mode of downlink data is: in the time that BACnet system has write operation to the present invention, and gateway configuration mouldThe original message that piece is received by ICP/IP protocol module is stored in self buffer, and BACnet/IP protocol module is by connecingReceiving literary composition is also decoded to it, searches datarams pond according to object type and object instance number, as example exists, and protocol conversionModule is KNX data message according to mapping relations BACnet data encapsulation, by triggering KNX communication module in KNX busData message is write in transmission.
Further, when the normal KNX bus reset of diagnosing out in service of the present invention, trigger to KNX by KNX communication moduleBus sends reads group address data message; Restart and configure when normal when gateway resets, also by KNX communication module to KNXBus sends reads group address data message.
Be more than that better enforcement illustrates to software and hardware of the present invention, but the invention is not limited to described realityExecute example, those of ordinary skill in the art can also make all equivalent variations or replace under the prerequisite without prejudice to spirit of the present inventionChange, the distortion that these are equal to or replace is all included in the scope that the application's claim limits.

Claims (3)

1. the KNX-BACnet/IP protocol conversion gateway based on Cortex-M processor, is characterized in that: this gateway bagDraw together KNX communication module, gateway configuration module, BACnet/IP communication module, protocol conversion module; Wherein said gateway is joinedPut module and be responsible for communicating by letter with host computer configuration software, definition rule of communication, module parameter; Described KNX communication module has realizedThe KNX agreement of standard, the reception of data message adopts dma mode, supports maximum KNX number of devices to depend on the internal memory of selfSize; Described BACnet/IP communication module has realized BACnet virtual data link on the basis of traditional UDP serviceLayer and BACnet application layer services; Described gateway configuration module has realized BACnet by shared-memory management and task schedulingDevice map and data-mapping with two kinds of agreements of KNX; Critical data in described gateway and operation information are by the RS232 of expansionSerially printing output.
2. KNX-BACnet/IP protocol conversion gateway according to claim 1, is characterized in that: described KNX is logicalLetter module, the KNX agreement of support standard, realizes and the KNX equipment having configured is monitored and operated, the KNX number of its supportComprise according to type: 1 bit switching value, 1 bit drive control, 2 bit priority levels, 8 bit A SC code characters, 4 bits to adjustLight, 8 bit percentages, 16 bit floating-points, 8/16/32 bit counter.
3. KNX-BACnet/IP protocol conversion gateway according to claim 1, is characterized in that: described BACnet/IPCommunication module, supports mark BACnet/IP agreement and ICP/IP protocol, and the object type of its support comprises: device type, simulationAmount input, analog output, analog value, switching value input, switching value output, switch value, multimode input, many shapesState output, multimode value, the service of support comprises: read attribute, write attribute, read multiple attribute, write multiple attribute, subscriptionValue changes, confirms numerical value change, non-confirmation numerical value change, also supports BACnet numerical value change to have simultaneously and confirms the overtime heavy of noticeThe energy of passing on Gong.
CN201410670728.5A 2014-11-20 2014-11-20 KNX-BACnet/IP protocol conversion gateway based on Cortex-M processor Pending CN105607527A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410670728.5A CN105607527A (en) 2014-11-20 2014-11-20 KNX-BACnet/IP protocol conversion gateway based on Cortex-M processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410670728.5A CN105607527A (en) 2014-11-20 2014-11-20 KNX-BACnet/IP protocol conversion gateway based on Cortex-M processor

Publications (1)

Publication Number Publication Date
CN105607527A true CN105607527A (en) 2016-05-25

Family

ID=55987534

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410670728.5A Pending CN105607527A (en) 2014-11-20 2014-11-20 KNX-BACnet/IP protocol conversion gateway based on Cortex-M processor

Country Status (1)

Country Link
CN (1) CN105607527A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106603399A (en) * 2017-02-10 2017-04-26 广东工业大学 BACnet/IP-DALI gateway communication method
CN106713128A (en) * 2016-12-30 2017-05-24 中科同德(北京)生态科技有限公司 Intelligent gateway apparatus
CN108337229A (en) * 2017-12-26 2018-07-27 神华集团有限责任公司 Method, storage medium and the electronic equipment that multisystem interconnects
EP3537682A1 (en) 2018-03-07 2019-09-11 ABB Schweiz AG Method for automatic configuration of sematic-based projects in building automation systems

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201904805U (en) * 2010-12-22 2011-07-20 上海工业自动化仪表研究院 Multi-way multiplexing type intelligent gateway for connecting industrial Ethernet and HART bus
CN102571795A (en) * 2012-01-12 2012-07-11 浙江大学 Building automatic control system based on building automatic control network (BACnet) and European installation bus (EIB) protocol
US20130080585A1 (en) * 2010-03-31 2013-03-28 Schneider Electric Automation Gmbh Method for transmitting data via a canopen bus
CN103873358A (en) * 2014-03-26 2014-06-18 陕西科技大学 KNX-TCP/IP protocol conversion gateway based on single-chip microcomputer
CN104007738A (en) * 2014-06-06 2014-08-27 机械工业仪器仪表综合技术经济研究所 Public building energy efficiency data collecting and processing system based on OPC UA

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130080585A1 (en) * 2010-03-31 2013-03-28 Schneider Electric Automation Gmbh Method for transmitting data via a canopen bus
CN201904805U (en) * 2010-12-22 2011-07-20 上海工业自动化仪表研究院 Multi-way multiplexing type intelligent gateway for connecting industrial Ethernet and HART bus
CN102571795A (en) * 2012-01-12 2012-07-11 浙江大学 Building automatic control system based on building automatic control network (BACnet) and European installation bus (EIB) protocol
CN103873358A (en) * 2014-03-26 2014-06-18 陕西科技大学 KNX-TCP/IP protocol conversion gateway based on single-chip microcomputer
CN104007738A (en) * 2014-06-06 2014-08-27 机械工业仪器仪表综合技术经济研究所 Public building energy efficiency data collecting and processing system based on OPC UA

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
GRANZER W等: "Gateway-free Integration of BACnet and KNX using Multi-Protocol Devices", 《IEEE INTERNATIONAL CONFERENCE ON INDUSTRIAL INFORMATICS》 *

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106713128A (en) * 2016-12-30 2017-05-24 中科同德(北京)生态科技有限公司 Intelligent gateway apparatus
CN106603399A (en) * 2017-02-10 2017-04-26 广东工业大学 BACnet/IP-DALI gateway communication method
CN106603399B (en) * 2017-02-10 2023-05-05 广东工业大学 BACnet/IP-DALI gateway communication method
CN108337229A (en) * 2017-12-26 2018-07-27 神华集团有限责任公司 Method, storage medium and the electronic equipment that multisystem interconnects
CN108337229B (en) * 2017-12-26 2021-03-09 神华集团有限责任公司 Multi-system interconnection method, storage medium and electronic equipment
EP3537682A1 (en) 2018-03-07 2019-09-11 ABB Schweiz AG Method for automatic configuration of sematic-based projects in building automation systems
US11038706B2 (en) 2018-03-07 2021-06-15 Abb Schweiz Ag Method for automatic configuration of sematic-based projects in building automation systems

Similar Documents

Publication Publication Date Title
CN103150279B (en) Method allowing host and baseboard management controller to share device
CN105607527A (en) KNX-BACnet/IP protocol conversion gateway based on Cortex-M processor
CN104317255A (en) Internet-of-things-based intelligent household control system
Lee et al. Implementation of a KNX-ZigBee gateway for home automation
CN104866448B (en) The intelligent management system of extensive USB device
CN106933753A (en) The control method and device of intelligent interface card
CN103558812B (en) Based on the MVB network four kind equipment network interface card of FPGA and ARM
CN104950839A (en) Switchboard control method and device
CN103051683A (en) Method for establishing virtual ammeter centralized collecting concentrator
CN106302338A (en) A kind of KNX-Modbus Transmission Control Protocol transfer gateway based on Cortex-M processor
CN102291337B (en) Gateway for switching communication based on EtherCAT (Ethernet for Control and Automation Technology) protocol and Profibus-DP (Process Field Bus-Decentralized Periphery) protocol and communication method thereof
CN204229397U (en) RS232 serial ports and ethernet interface converter
CN201629759U (en) Device for realizing interconnection between MVB bus and third-party device
CN105491419B (en) A kind of combination tv and data sharing method
CN101909013A (en) Information exchange device capable of dynamic configuration
CN103885821B (en) SCADA pre-procesors and its Multi-channel multi-line journey real-time scheduling method
CN204291487U (en) Based on the LED automatic addressing circuit of DMX512, light fixture and system
CN206224180U (en) One kind is based on KNX agreement multiplex roles smart home main frames
CN202918326U (en) Intelligent multi-serial switch
CN202856783U (en) Protocol converter used for Beidou satellite and electric power communication
CN115333894A (en) Modbus communication hub based on multi-master-station communication requirements and reading method
CN104038551A (en) Local and remote management system based on Loongson 2H and management method thereof
CN104680666A (en) Intelligent express mail box using bus technology
CN204680012U (en) A kind ofly meet the standard-sized CAN Interface Control Panel of 3U CPCI based on multi-disc arm processor
CN204463307U (en) Use the intelligent express mail case of bussing technique

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20160525