{"id":108,"date":"2017-07-23T17:02:55","date_gmt":"2017-07-23T17:02:55","guid":{"rendered":"http:\/\/endrekatona.eu\/wordpress\/?p=108"},"modified":"2017-08-31T20:05:39","modified_gmt":"2017-08-31T20:05:39","slug":"building-automation-with-knx-and-bims","status":"publish","type":"post","link":"http:\/\/endrekatona.eu\/tech\/2017\/07\/23\/building-automation-with-knx-and-bims\/","title":{"rendered":"Building automation with KNX and BIMs"},"content":{"rendered":"<div>\n<p>Developing and building smart homes have become trendy and cool in the last decades, as problems like energy efficiency and aging society were considered more and more serious.<\/p>\n<p>Different standards have been defined in order to create a basis for the building automation industry. A widely spread one is called KNX (Konnex).<\/p>\n<\/div>\n<div>\n<p><em>&#8220;<b>KNX<\/b>\u00a0is a standardized\u00a0(EN 50090,\u00a0ISO\/IEC 14543),\u00a0OSI-based\u00a0network communications protocol\u00a0for\u00a0intelligent buildings. KNX is the successor to, and convergence of, three previous standards: the\u00a0European Home Systems Protocol\u00a0(EHS),\u00a0BatiBUS, and the\u00a0European Installation Bus\u00a0(EIB or\u00a0Instabus).<\/em><\/p>\n<p><em>The standard is based on the communication stack\u00a0of EIB but enlarged with the physical layers, configuration modes and application experience of BatiBUS and EHS.<\/em><\/p>\n<p><em>KNX is designed to be independent of any particular hardware platform. A KNX Device Network can be controlled by anything from an 8-bit microcontroller\u00a0to a PC, according to the needs of a particular implementation. The most common form of installation is over twisted pair medium.&#8221;\u00a0<\/em>(Wikipedia)<\/p>\n<\/div>\n<div>\n<p>The nice thing is, that a new appliance may be developed from scratch, and integrated into an already functional KNX-based smart building. No need to buy certain products\/technologies from specified companies, the newly developed system only needs to be able to communicate with other devices via the KNX bus. It does not matter which microcontroller is used for the development, though, the developer must implement a communication layer which conforms to the\u00a0KNX-standard.<\/p>\n<\/div>\n<div><a href=\"http:\/\/endrekatona.eu\/tech\/wp-content\/uploads\/2017\/07\/bim.jpg\"><img loading=\"lazy\" class=\"size-full wp-image-140 alignleft\" src=\"http:\/\/endrekatona.eu\/tech\/wp-content\/uploads\/2017\/07\/bim.jpg\" alt=\"\" width=\"144\" height=\"129\" \/><\/a>There is also another possibility, namely using BIMs: KNX <strong>B<\/strong><span style=\"font-family: inherit; font-style: inherit; font-weight: inherit;\">us <\/span><strong>I<\/strong>nterface <strong>M<\/strong>odules. \u00a0These <em>&#8220;bus interface modules are printed circuit boards consisting of the chipsets (TP-UART + KNX microcontroller) mounted with all necessary components&#8221;<\/em>. The BIM modules <em>&#8220;contain the BCU 2.5 system software compliant to the KNX specification.&#8221;<\/em>\u00a0<a href=\"http:\/\/www.buildingtechnologies.siemens.com\/bt\/global\/en\/building-solutions\/building-information-modeling\/Pages\/Building-information-modeling.aspx\" target=\"_blank\" rel=\"noopener\">(Siemens Building Technologies)<\/a><\/div>\n<div><i style=\"font-family: inherit; font-weight: inherit;\"><br \/>\n<\/i><span style=\"font-family: inherit; font-style: inherit; font-weight: inherit;\"><span style=\"font-family: inherit; font-style: inherit; font-weight: inherit;\"><span style=\"font-family: inherit; font-style: inherit; font-weight: inherit;\">I&#8217;ve googled a bit around, but I did not find any other BIM providers but Siemens.<\/span><\/span><\/span>The newest bus interface modules family developed by Siemens Building Technologies is called BIM M13x, and has 4 family members: M130, M131, M132, M135. (Actually, the only difference between M130 and M135 is that M135 may be used at extended temperature ranges.)<\/div>\n<div>\n<p><em>&#8220;The BIM M13x series is based on the NEC78K0\/Kx2 microcontroller family providing state of the art flash technology&#8221;<span style=\"color: #777777; font-family: Verdana, Tahoma, Arial, Helvetica, sans-serif; font-size: small;\">.<\/span><\/em>\u00a0The family members basically differ from each other in the available Flash and RAM memory sizes that can be used by the application program. (Refer to the\u00a0<a href=\"http:\/\/www.buildingtechnologies.siemens.com\/bt\/global\/en\/buildingautomation-hvac\/gamma-building-control\/gamma-b2b\/pages\/bim.aspx\" target=\"_blank\" rel=\"noopener\">Siemens webpage<\/a>\u00a0for the exact specifications)<\/p>\n<\/div>\n<div><\/div>\n<div>\n<p>If the BIM modules are used to develop new KNX-appliances, the system developer can invest more time in creating the application specific hardware and software. He does not need to take care about the communication layer, as the communication with other KNX-devices can be easily implemented using the API, which calls the functions of the already installed firmware. (BCU 2.5)<\/p>\n<p>As it is observable from the picture, the pins of the KNX-microcontroller are wired to a socket, so that the application specific hardware can be easily connected. The application program can be downloaded to the BIM, by connecting it to the KNX-bus, and using the BIM-Tools for program download.<\/p>\n<\/div>\n<div>\n<div><\/div>\n<h3>Available development toolpackage<\/h3>\n<div>\n<p>The company\u00a0<a href=\"http:\/\/www.opternus.com\/en\/opternus-components.html\" target=\"_blank\" rel=\"noopener\">Opternus GmbH<\/a>\u00a0offers not only the BIM M13x modules, but also a <em>&#8220;a modern\u00a0<a href=\"http:\/\/www.opternus.com\/en\/siemens\/development-tools\/development-toolpackage.html\" target=\"_blank\" rel=\"noopener\">tool chain<\/a>\u00a0including debug tools leading to shorter development times<span style=\"color: #777777; font-family: Verdana, Tahoma, Arial, Helvetica, sans-serif; font-size: small;\">.<\/span>&#8220;<\/em><\/p>\n<p>This toolpackage includes following items:<\/p>\n<\/div>\n<div>\n<ul>\n<li>Evaluation Board with BIM M132 functionality (largest family member) &#8211; most reduced memory restrictions<\/li>\n<li>NEC Minicube development platform for downloading the firmware and for online debugging (Needed software is included)<\/li>\n<li>IAR Embedded Workbench &#8211; The size limited version of the development environment<\/li>\n<li>BIM Tools &#8211; tool for downloading the application program<\/li>\n<\/ul>\n<div><\/div>\n<div>\n<p>Although, the related documentation is also included in the package, it took me some time to figure out how all these tools work. In <a href=\"http:\/\/endrekatona.eu\/tech\/2017\/08\/27\/building-automation-based-on-knx-bims-the-development-toolpackage\/\">a further article<\/a>\u00a0I will explain how I made the toolchain work.<\/p>\n<\/div>\n<div><\/div>\n<h3>References<\/h3>\n<\/div>\n<div>The sources of the pictures and citations are:<\/div>\n<div>\n<ul>\n<li><a href=\"http:\/\/en.wikipedia.org\/wiki\/KNX_(standard)\" target=\"_blank\" rel=\"noopener\">http:\/\/en.wikipedia.org\/wiki\/KNX_(standard)<\/a><\/li>\n<li><a href=\"http:\/\/www.opternus.com\/en\/siemens\/development-tools\/development-toolpackage.html\" target=\"_blank\" rel=\"noopener\">http:\/\/www.opternus.com\/en\/siemens\/development-tools\/development-toolpackage.html<\/a><\/li>\n<li><a href=\"http:\/\/www.buildingtechnologies.siemens.com\/bt\/global\/en\/buildingautomation-hvac\/gamma-building-control\/gamma-b2b\/pages\/bim.aspx\" target=\"_blank\" rel=\"noopener\">http:\/\/www.buildingtechnologies.siemens.com\/bt\/global\/en\/buildingautomation-hvac\/gamma-building-control\/gamma-b2b\/pages\/bim.aspx<\/a><\/li>\n<\/ul>\n<\/div>\n<p><em>(The article has been first published on the 31st of March 2012 on an older website of the author)<\/em><\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Developing and building smart homes have become trendy and cool in the last decades, as problems like energy efficiency and aging society were considered more and more serious. Different standards have been defined in order to create a basis for the building automation industry. A widely spread one is called KNX (Konnex). &#8220;KNX\u00a0is a standardized\u00a0(EN [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":135,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_mi_skip_tracking":false},"categories":[11],"tags":[13,15,12,14],"_links":{"self":[{"href":"http:\/\/endrekatona.eu\/tech\/wp-json\/wp\/v2\/posts\/108"}],"collection":[{"href":"http:\/\/endrekatona.eu\/tech\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/endrekatona.eu\/tech\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/endrekatona.eu\/tech\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/endrekatona.eu\/tech\/wp-json\/wp\/v2\/comments?post=108"}],"version-history":[{"count":66,"href":"http:\/\/endrekatona.eu\/tech\/wp-json\/wp\/v2\/posts\/108\/revisions"}],"predecessor-version":[{"id":311,"href":"http:\/\/endrekatona.eu\/tech\/wp-json\/wp\/v2\/posts\/108\/revisions\/311"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/endrekatona.eu\/tech\/wp-json\/wp\/v2\/media\/135"}],"wp:attachment":[{"href":"http:\/\/endrekatona.eu\/tech\/wp-json\/wp\/v2\/media?parent=108"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/endrekatona.eu\/tech\/wp-json\/wp\/v2\/categories?post=108"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/endrekatona.eu\/tech\/wp-json\/wp\/v2\/tags?post=108"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}