{"id":4620,"date":"2021-07-03T10:09:00","date_gmt":"2021-07-03T10:09:00","guid":{"rendered":"https:\/\/about.ismacontrolli.com\/?p=4620"},"modified":"2022-02-09T10:09:59","modified_gmt":"2022-02-09T10:09:59","slug":"m-bus-discovering-meters","status":"publish","type":"post","link":"https:\/\/about.ismacontrolli.com\/en\/m-bus-discovering-meters\/","title":{"rendered":"M-Bus &#8211; Discovering Meters"},"content":{"rendered":"\n<p>The article outlines how to integrate M-Bus meters in Niagara Workbench using the MbusNetwork driver and the M-Bus extension built-in the iSMA-B-MAC36NL-M or the MbusTcpIpNetwork driver with the iSMA-B-MG-IP gateway. The M-Bus configuration is not covered in this article; it has been covered in the M-Bus &#8211; configuration article. The meters discovery process is the same for both networks.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"devices-used-for-the-article\"><strong>Devices Used for the Article<\/strong><\/h2>\n\n\n\n<p>For this article the following devices have been used:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>iSMA-B-MAC36NL-M controller<\/li><li>iSMA-B-MG-IP module<\/li><li>three M-Bus meters, configured as indicated in the table:<\/li><\/ul>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full is-resized\"><img fetchpriority=\"high\" decoding=\"async\" src=\"https:\/\/about.ismacontrolli.com\/wp-content\/uploads\/2022\/02\/Obraz1-2.png\" alt=\"\" class=\"wp-image-4621\" width=\"650\" height=\"181\" srcset=\"https:\/\/about.ismacontrolli.com\/wp-content\/uploads\/2022\/02\/Obraz1-2.png 650w, https:\/\/about.ismacontrolli.com\/wp-content\/uploads\/2022\/02\/Obraz1-2-400x111.png 400w\" sizes=\"(max-width: 650px) 100vw, 650px\" \/><figcaption>The l<em>ist of M-Bus meters mentioned in the article<\/em><\/figcaption><\/figure><\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"primary-address-discovering\">\u2018Primary Address\u2019 Discovering<\/h2>\n\n\n\n<p>The M-Bus protocol standard ensures that each meter has a unique \u2018secondary address\u2019. The \u2018primary address\u2019 is most often by default set to 1. In order to use the \u2018Primary Address Search Discover\u2019 feature, set the meters in the network with their own unique primary addresses. Then, in the Niagara Workbench, go to the Mbus Device Manager of the MbusNetwork or MbusTcpIpNetwork components, and select &#8216;Discover&#8217;.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img decoding=\"async\" width=\"1200\" height=\"572\" src=\"https:\/\/about.ismacontrolli.com\/wp-content\/uploads\/2022\/02\/01-1200x572.jpg\" alt=\"\" class=\"wp-image-4624\" srcset=\"https:\/\/about.ismacontrolli.com\/wp-content\/uploads\/2022\/02\/01-1200x572.jpg 1200w, https:\/\/about.ismacontrolli.com\/wp-content\/uploads\/2022\/02\/01-400x191.jpg 400w, https:\/\/about.ismacontrolli.com\/wp-content\/uploads\/2022\/02\/01-768x366.jpg 768w, https:\/\/about.ismacontrolli.com\/wp-content\/uploads\/2022\/02\/01.jpg 1520w\" sizes=\"(max-width: 1200px) 100vw, 1200px\" \/><figcaption><em>The M-Bus Device Manager view with the Discover button<\/em><\/figcaption><\/figure><\/div>\n\n\n\n<p>In the Discovery Wizard pop-up window, select the \u2018Primary Address Search Discover\u2019 option, and click Next. Then, select the meters&#8217; communication baud rate, and click Next.<\/p>\n\n\n\n<div class=\"wp-block-columns is-layout-flex wp-container-core-columns-is-layout-9d6595d7 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full is-resized\"><img decoding=\"async\" src=\"https:\/\/about.ismacontrolli.com\/wp-content\/uploads\/2022\/02\/02-2.jpg\" alt=\"\" class=\"wp-image-4636\" width=\"254\" height=\"200\"\/><figcaption><em>Meters discovering mode selection<\/em><\/figcaption><\/figure><\/div>\n<\/div>\n\n\n\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"264\" height=\"207\" src=\"https:\/\/about.ismacontrolli.com\/wp-content\/uploads\/2022\/02\/Przechwytywanie-3.png\" alt=\"\" class=\"wp-image-4639\"\/><figcaption><em>Communication baud rate selection<\/em><\/figcaption><\/figure><\/div>\n<\/div>\n<\/div>\n\n\n\n<p>In the next window, it is possible to limit the address range to be discovered; it allows to significantly speed up the discovery process. In the last window, configure parameters such as: \u2018Retry count\u2019 (number of repeated requests), \u2018Response timeout\u2019 (time set to wait for the device\u2019s response), \u2018Inter message delay\u2019 (pause between consequent requests), \u2018Initialization delay\u2019 (time to initialize a slave device). Niagara offers two predefined configuration modes &#8211; \u2018Mbus standard speed scan\u2019 (standard discovery) and \u2018Slow speed scan&#8217; (slow speed discovery). Additionally, the user can individually configure specific parameters with the \u2018Customized timings based scan\u2019. The settings need to be adjusted to the communication baud rate. With the 2400 baud rate, it is recommended to use the &#8216;Mbus standard speed scan\u2019 option.<\/p>\n\n\n\n<div class=\"wp-block-columns is-layout-flex wp-container-core-columns-is-layout-9d6595d7 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"356\" height=\"278\" src=\"https:\/\/about.ismacontrolli.com\/wp-content\/uploads\/2022\/02\/04.jpg\" alt=\"\" class=\"wp-image-4642\"\/><figcaption><em>Limiting address range<\/em><\/figcaption><\/figure><\/div>\n<\/div>\n\n\n\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/about.ismacontrolli.com\/wp-content\/uploads\/2022\/02\/05.jpg\" alt=\"\" class=\"wp-image-4645\" width=\"319\" height=\"272\"\/><figcaption><em>Discovery parameters configuration<\/em><\/figcaption><\/figure><\/div>\n<\/div>\n<\/div>\n\n\n\n<p>Once the discovery configuration is completed, confirm it with the Finish button; the discovery process is started. Once the discovery process is completed, the M-Bus meters should be listed in the Discovered window. In the last step, drag&amp;drop the meters to the Database window.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1200\" height=\"569\" src=\"https:\/\/about.ismacontrolli.com\/wp-content\/uploads\/2022\/02\/06-1200x569.jpg\" alt=\"\" class=\"wp-image-4648\" srcset=\"https:\/\/about.ismacontrolli.com\/wp-content\/uploads\/2022\/02\/06-1200x569.jpg 1200w, https:\/\/about.ismacontrolli.com\/wp-content\/uploads\/2022\/02\/06-400x190.jpg 400w, https:\/\/about.ismacontrolli.com\/wp-content\/uploads\/2022\/02\/06-768x364.jpg 768w, https:\/\/about.ismacontrolli.com\/wp-content\/uploads\/2022\/02\/06.jpg 1520w\" sizes=\"(max-width: 1200px) 100vw, 1200px\" \/><figcaption><em>The Mbus Device Manager view with the discovered meters<\/em><\/figcaption><\/figure><\/div>\n\n\n\n<p><strong>WARNING!<\/strong> The \u2018Baud Rates to use\u2019 window appears only for the MbusNetwork driver. In the case of the MbusTcpIpNetwork driver, the baud rate is configured in the M-Bus gateway settings.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"single-device-discovering\">Single Device Discovering<\/h2>\n\n\n\n<p>In the M-Bus network, if there are meters with the same \u2018primary addresses\u2019, which are not known, the discovery process can refer only to a single device. It requires disconnecting the rest of the meters from the bus. In the pop-up window, select the \u2018Single Device Discover\u2019 option, which is much quicker than discovering a single device with the \u2018Primary Address Search Discover\u2019 option searching through the whole range of \u2018primary addresses\u2019.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"645\" height=\"284\" src=\"https:\/\/about.ismacontrolli.com\/wp-content\/uploads\/2022\/02\/07.jpg\" alt=\"\" class=\"wp-image-4651\" srcset=\"https:\/\/about.ismacontrolli.com\/wp-content\/uploads\/2022\/02\/07.jpg 645w, https:\/\/about.ismacontrolli.com\/wp-content\/uploads\/2022\/02\/07-400x176.jpg 400w\" sizes=\"(max-width: 645px) 100vw, 645px\" \/><figcaption><em>A warning telling to disconnect unnecessary meters from the bus<\/em><\/figcaption><\/figure><\/div>\n\n\n\n<p>The discovery configuration process is the same as stated in section 1 of this article. Once the parameters are confirmed with the Finish button, the next pop-up window appears. Select Yes to confirm that there is only one M-Bus meter on the bus. When discovered and added to the station, change its \u2018primary address\u2019, and continue single discover the next meters.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"secondary-address-discovering\">\u2018Secondary address\u2019 Discovering<\/h2>\n\n\n\n<p>As mentioned above, the \u2018secondary address\u2019 is unique for each M-Bus device. It is defined by the following elements: \u2018Device ID (Serial Number)\u2019 4 bytes, \u2018Manufacturer ID&#8217; 2 bytes, \u2018Medium (Device Media)\u2019 1 byte, \u2018Device Version\u2019 1 byte. Niagara does not allow to discover of a full range of the secondary addresses, therefore, the user has to know at least one of the secondary address elements, which allows limiting the discovered addresses range. Also, if the secondary address is limited by the \u2018Medium\u2019 parameter, the discovery is not processed properly in Niagara.<br><br>Therefore, the \u2018secondary address\u2019 discovery can be held threefold:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>The \u2018Specific Secondary Address Discover\u2019 is limited by introducing the meter\u2019s serial number to the \u2018Secondary Address\u2019 slot. Next, go through configuration steps according to section 1 of this article.<\/li><\/ul>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"355\" height=\"278\" src=\"https:\/\/about.ismacontrolli.com\/wp-content\/uploads\/2022\/02\/08.jpg\" alt=\"\" class=\"wp-image-4654\"\/><figcaption><em>The \u2018Specific Secondary Address Search\u2019 with the meter\u2019s serial number<\/em><\/figcaption><\/figure><\/div>\n\n\n\n<p><strong>WARNING!<\/strong> The \u2018Specific Secondary Address Discover\u2019 mode has to be selected in the DiscoveryMode pop-up window, appearing immediately after clicking the Discover button. The scenarios described below are available if the \u2018Secondary Address Search Discover\u2019 option is selected in the DisoveryMode pop-up window.<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Limiting the range with the \u2018Manufacturer ID\u2019 parameter. Once the \u2018Secondary Address Search Discover\u2019 option has been selected, in the Filters window introduce the \u2018Manufacturer ID\u2019 of the meter, and then go through configuration steps according to section 1 of this article.<\/li><\/ul>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"354\" height=\"280\" src=\"https:\/\/about.ismacontrolli.com\/wp-content\/uploads\/2022\/02\/09.jpg\" alt=\"\" class=\"wp-image-4657\"\/><figcaption><em>The Filters window with the meter\u2019s \u2018Manufacturer ID\u2019<\/em><\/figcaption><\/figure><\/div>\n\n\n\n<ul class=\"wp-block-list\"><li>Limiting the range with the \u2018Version Number\u2019 parameter. Once the \u2018Secondary Address Search Discover\u2019 option has been selected, in the Filters window introduce the \u2018Version Number\u2019 of the meter, and then go through configuration steps according to section 1 of this article.<\/li><\/ul>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"353\" height=\"280\" src=\"https:\/\/about.ismacontrolli.com\/wp-content\/uploads\/2022\/02\/10.jpg\" alt=\"\" class=\"wp-image-4660\"\/><figcaption><em>The Filters window with the meter\u2019s \u2018Version Number\u2019<\/em><\/figcaption><\/figure><\/div>\n\n\n\n<p>Introducing the \u2018Manufacturer ID\u2019 and \u2018Version Number\u2019 parameters together makes the discovery process even faster.<\/p>\n\n\n\n<p><em>Author:<\/em><\/p>\n\n\n\n<p><em>Mateusz Naderza<\/em><\/p>\n\n\n\n<p><a rel=\"noreferrer noopener\" href=\"mailto:pawel.kakol@ismacontrolli.com\" target=\"_blank\">mateusz.naderza@ismacontrolli.com<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>The article outlines how to integrate M-Bus meters in Niagara Workbench using the MbusNetwork driver and the M-Bus extension built-in the iSMA-B-MAC36NL-M or the MbusTcpIpNetwork driver with the iSMA-B-MG-IP gateway. The M-Bus configuration is not covered in this article; it has been covered in the M-Bus &#8211; configuration article. The meters discovery process is the [&hellip;]<\/p>\n","protected":false},"author":7,"featured_media":4663,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"tpgb_global_settings":"","_cbd_carousel_blocks":"[]","_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_jet_sm_ready_style":"","_jet_sm_style":"","_jet_sm_controls_values":"","_jet_sm_fonts_collection":"","_jet_sm_fonts_links":"","footnotes":""},"categories":[123],"tags":[104,135,161,147,163,149,160,164,158,162],"class_list":["post-4620","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-blog","tag-bms-en","tag-communication","tag-discovering","tag-m-bus","tag-mac36nl","tag-metering","tag-meters","tag-mg-ip","tag-niagara","tag-workbench"],"acf":[],"tpgb_featured_images":{"full":["https:\/\/about.ismacontrolli.com\/wp-content\/uploads\/2022\/02\/gl2.png",4152,1734,false],"tp-image-grid":["https:\/\/about.ismacontrolli.com\/wp-content\/uploads\/2022\/02\/gl2.png",700,292,false],"thumbnail":["https:\/\/about.ismacontrolli.com\/wp-content\/uploads\/2022\/02\/gl2-150x150.png",150,150,true],"medium":["https:\/\/about.ismacontrolli.com\/wp-content\/uploads\/2022\/02\/gl2-400x167.png",400,167,true],"medium_large":["https:\/\/about.ismacontrolli.com\/wp-content\/uploads\/2022\/02\/gl2-768x321.png",768,321,true],"large":["https:\/\/about.ismacontrolli.com\/wp-content\/uploads\/2022\/02\/gl2-1200x501.png",1200,501,true],"default":"https:\/\/about.ismacontrolli.com\/wp-content\/plugins\/the-plus-addons-for-block-editor\/assets\/images\/tpgb-placeholder.jpg"},"tpgb_post_meta_info":{"get_date":"July 3, 2021","get_modified_date":"February 9, 2022","category_list":{"category":[{"term_id":123,"name":"blog","slug":"blog","term_group":0,"term_taxonomy_id":123,"taxonomy":"category","description":"","parent":0,"count":33,"filter":"raw"}],"post_tag":[{"term_id":104,"name":"BMS","slug":"bms-en","term_group":0,"term_taxonomy_id":104,"taxonomy":"post_tag","description":"","parent":0,"count":49,"filter":"raw"},{"term_id":135,"name":"communication","slug":"communication","term_group":0,"term_taxonomy_id":135,"taxonomy":"post_tag","description":"","parent":0,"count":5,"filter":"raw"},{"term_id":161,"name":"discovering","slug":"discovering","term_group":0,"term_taxonomy_id":161,"taxonomy":"post_tag","description":"","parent":0,"count":1,"filter":"raw"},{"term_id":147,"name":"M-Bus","slug":"m-bus","term_group":0,"term_taxonomy_id":147,"taxonomy":"post_tag","description":"","parent":0,"count":5,"filter":"raw"},{"term_id":163,"name":"MAC36NL","slug":"mac36nl","term_group":0,"term_taxonomy_id":163,"taxonomy":"post_tag","description":"","parent":0,"count":3,"filter":"raw"},{"term_id":149,"name":"metering","slug":"metering","term_group":0,"term_taxonomy_id":149,"taxonomy":"post_tag","description":"","parent":0,"count":2,"filter":"raw"},{"term_id":160,"name":"meters","slug":"meters","term_group":0,"term_taxonomy_id":160,"taxonomy":"post_tag","description":"","parent":0,"count":1,"filter":"raw"},{"term_id":164,"name":"MG-IP","slug":"mg-ip","term_group":0,"term_taxonomy_id":164,"taxonomy":"post_tag","description":"","parent":0,"count":1,"filter":"raw"},{"term_id":158,"name":"Niagara","slug":"niagara","term_group":0,"term_taxonomy_id":158,"taxonomy":"post_tag","description":"","parent":0,"count":5,"filter":"raw"},{"term_id":162,"name":"Workbench","slug":"workbench","term_group":0,"term_taxonomy_id":162,"taxonomy":"post_tag","description":"","parent":0,"count":1,"filter":"raw"}]},"author_name":"Joanna Kmiecik","author_url":"https:\/\/about.ismacontrolli.com\/en\/author\/joanna\/","author_email":"joanna.kmiecik@ismacontrolli.com","author_website":"","author_description":"","author_facebook":"","author_twitter":"","author_instagram":"","author_role":[],"author_firstname":"Joanna","author_lastname":"Kmiecik","user_login":"Joanna","author_avatar":"<img alt='' src='https:\/\/secure.gravatar.com\/avatar\/2fb9631c01245bfbebab16d6c1f76e1c576b76abdbf290ce2279b1cc89acbbc6?s=200&#038;d=mm&#038;r=g' srcset='https:\/\/secure.gravatar.com\/avatar\/2fb9631c01245bfbebab16d6c1f76e1c576b76abdbf290ce2279b1cc89acbbc6?s=400&#038;d=mm&#038;r=g 2x' class='avatar avatar-200 photo' height='200' width='200' decoding='async'\/>","author_avatar_url":"https:\/\/secure.gravatar.com\/avatar\/2fb9631c01245bfbebab16d6c1f76e1c576b76abdbf290ce2279b1cc89acbbc6?s=96&d=mm&r=g","comment_count":0,"post_likes":0,"post_views":0},"tpgb_post_category":{"category":"<a href=\"https:\/\/about.ismacontrolli.com\/en\/category\/blog\/\" alt=\"blog\"  class=\"category-blog\">blog<\/a> ","post_tag":"<a href=\"https:\/\/about.ismacontrolli.com\/en\/tag\/bms-en\/\" alt=\"BMS\"  class=\"post_tag-bms-en\">BMS<\/a> <a href=\"https:\/\/about.ismacontrolli.com\/en\/tag\/communication\/\" alt=\"communication\"  class=\"post_tag-communication\">communication<\/a> <a href=\"https:\/\/about.ismacontrolli.com\/en\/tag\/discovering\/\" alt=\"discovering\"  class=\"post_tag-discovering\">discovering<\/a> <a href=\"https:\/\/about.ismacontrolli.com\/en\/tag\/m-bus\/\" alt=\"M-Bus\"  class=\"post_tag-m-bus\">M-Bus<\/a> <a href=\"https:\/\/about.ismacontrolli.com\/en\/tag\/mac36nl\/\" alt=\"MAC36NL\"  class=\"post_tag-mac36nl\">MAC36NL<\/a> <a href=\"https:\/\/about.ismacontrolli.com\/en\/tag\/metering\/\" alt=\"metering\"  class=\"post_tag-metering\">metering<\/a> <a href=\"https:\/\/about.ismacontrolli.com\/en\/tag\/meters\/\" alt=\"meters\"  class=\"post_tag-meters\">meters<\/a> <a href=\"https:\/\/about.ismacontrolli.com\/en\/tag\/mg-ip\/\" alt=\"MG-IP\"  class=\"post_tag-mg-ip\">MG-IP<\/a> <a href=\"https:\/\/about.ismacontrolli.com\/en\/tag\/niagara\/\" alt=\"Niagara\"  class=\"post_tag-niagara\">Niagara<\/a> <a href=\"https:\/\/about.ismacontrolli.com\/en\/tag\/workbench\/\" alt=\"Workbench\"  class=\"post_tag-workbench\">Workbench<\/a> "},"_links":{"self":[{"href":"https:\/\/about.ismacontrolli.com\/en\/wp-json\/wp\/v2\/posts\/4620","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/about.ismacontrolli.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/about.ismacontrolli.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/about.ismacontrolli.com\/en\/wp-json\/wp\/v2\/users\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/about.ismacontrolli.com\/en\/wp-json\/wp\/v2\/comments?post=4620"}],"version-history":[{"count":1,"href":"https:\/\/about.ismacontrolli.com\/en\/wp-json\/wp\/v2\/posts\/4620\/revisions"}],"predecessor-version":[{"id":4666,"href":"https:\/\/about.ismacontrolli.com\/en\/wp-json\/wp\/v2\/posts\/4620\/revisions\/4666"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/about.ismacontrolli.com\/en\/wp-json\/wp\/v2\/media\/4663"}],"wp:attachment":[{"href":"https:\/\/about.ismacontrolli.com\/en\/wp-json\/wp\/v2\/media?parent=4620"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/about.ismacontrolli.com\/en\/wp-json\/wp\/v2\/categories?post=4620"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/about.ismacontrolli.com\/en\/wp-json\/wp\/v2\/tags?post=4620"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}