Conceptual Design of IoT-Based AMR Systems Based on IEC 61850 Microgrid Communication Configuration Using Open-Source Hardware / Software IED

: This paper presents an intelligent electronic device (IED) utilized for automatic meter readings (AMR) scheme using “Open-Source” software. This IED is utilized to measure a low-voltage intelligent electronic device) system with a boundless number of sensors, and it is accessible on the Internet of Things (IoT). The utilized equipment for this task is Arduino UNO R3 motherboard and fringe sensors, which are used for measurement of the referenced information. The Arduino motherboard is used not only for sole tranquility of equipment but also for serving as wireless ﬁdelity (Wi-Fi) switch for the sensors. The personal computer is utilized to gather information and perform client-side calculations. The server works based on an open-source program written in Java programming language. The underlying objective of the proposed scheme is to make the meter based on the “ Do It Yourself ” methodology which requires considerably fewer funds. Also, it is conceivable by keeping easy to understand interface, information legitimacy, precision of measured information and convenience for the conclusive client. The information is measured in just about 1 ms which is superb for custom-designed IED. Furthermore, the measured qualities are calculated based on their RMS values to be used for analyzing and further presentation of data.


Introduction
The basis of this research is presented at the Second International Colloquium on Smart Grid Metrology, 2019 (SMAGRIMET) in Split Croatia [1], and for this paper, it is further expanded and explained more thoroughly. The distribution system operator (DSO) has its rules and standards which must be respected and maintained, so investors in renewable energy resources (RERs) have to be agile and acquire all necessary equipment to manage and operate their facility efficiently. To comply with the RERs with DSO's, requirements, and rules, various sets of tools exist on the market, including the automatic meter readings (AMR) and automatic meter management (AMM) systems. The goal of the AMR is to avoid the need for human intervention in the reading of electricity meters and to bypass and PIC 18LF4620/CC 2430/S3C 2440 frameworks. Programming the electronic devices for the cloud IoT approach is described in [11,14], and the proposal for profoundly versatile solutions based on Wi-Fi is presented in [12]. Since Arduino Mega uses old architecture, future work is considered as an option on the different core but with much bigger and stronger architecture, AVR XMega [15]. By this hardware, additional features will become possible by integration of hardware algorithms that are already part of the new XMega architecture. In that case, remote access to the measurement IEDs can be considered on a safer and secure level of service, or it can be based on different technology. IoT approach can be done on the wireless and remote level, but security must be highly defined.
PIC is also used in some DIY projects, while some of them already have an integrated physical layer. Those kinds of PIC architectures combine the regular 802.3 stack part on the same core. The network layer and connection with library support come on the transport layer, which can be custom-defined in firmware. Based on the mentioned samples in the combination of PIC18LFxx and one of the RF ZigBee 802.15.4 radio board/chip, the system can be improved in lots of directions. One of the very interesting features in the new method approach is a new design of radio chips with small power consumption like Texas Instruments CC2530 that represents the second generation of 802.15.4 standard.
Interoperable and regulated communication is necessary for effective control of small-scale systems, such as microgrids. IEC 61850 was considered more as an exception for microgrid communication among the more reassuring technologies than the usual practice, but this has been changed over time [16][17][18]. IEC 61850 standard has been initially produced for substation automation system (SAS), and later expanded to entire power utility digitalization. IEC 61850 standard has been initially produced for vertical SAS and later expanded to entire power utility digitalization enabling the generic substation events (GOOSE) control model. GOOSE is defined by IEC 61850 and utilizes electrical network for multicast services within four milliseconds via Ethernet or VLAN, similar to IEEE 802.1Q. Several IEDs on the market use a non-standard event reporting model, such as Fixed GOOSE, that integrates Generic Substation State Events over standard protocol. Also, IEC 61850 enables precise time distribution and clock synchronization in power grid with a precision of 1 µs. Such resolution enables efficient voltage and current sampling for differential protection, wide-area monitoring, and event recording in case of faults and busbar protection triggering. IEC 61850 protocol is an international standard protocol for substation and energy infrastructure communication connection and data exchange. Data defined by IEC 61850 can be mapped and translated into several other electronic devices supporting protocols, which makes IEC 61850 versatile and grounding standard for smart electronic devices. Also, it can be transferred via TCP/IP backbone, which makes him a universal transmission protocol. To structure these IEC 61850-based IEDs and to give incredible compatibility inside the substation, the standard defines a System Configuration Language (SCL) [19]. The SCL plans the IEDs in a substation in an accurate manner. The comparability of IEDs in a substation is practiced by presenting an IED to an Application system building instrument (ASBI) and returning it to the IED. This methodology is repeated for all IEDs in the framework until the whole framework is assigned to all IEDs. The all-out method for the course of action of IEDs in a substation is ordered in IEC 61850-6 (ed. 2) [11]. The SCL arrangement portrayal in an IEC 61850-based SAS has been for the most part recorded as a hard copy [13]. The expansive IEC 61850-based information model and arrangement delineation of SCL reports for an SAS have been discussed in [12]. In [14], an SCL has been proposed dependent on a powerful structure process and robotized assessment for the confirmation system. This paper covers the issues of the IEC 61850 integration into virtually DIY IED, in this case, a smart meter, which accumulates the data and sends it to the server where the administrator can make the use of it and proceed with required tasks. The purpose of the paper is to analyze the specially crafted custom-made IED (CMIED), which has been recently utilized as a piece of microgrid metering framework. The applications where such CMIED can be used are islanding detection [20][21][22][23] and peak power shaving/diminishing [24]. Also, it can be used for the collection of precise data in a smart microgrid environment, but also communication with various devices such as brand name smart meters, substation switches, section breakers, information concentrators, etc. The data string of the electric power accumulated by IEDs is packed according to IEC 61850 standard for SCL and propagated through a proposed framework. Various IEDs can be based on OSH and OSS solutions, and by IEC 61850 integration, their usefulness can be further proved. To the best of authors' knowledge, the basic substation automation framework has been provided by IEC 61850, and this paper is the pioneer to address the conceptual design of IoT-based AMR systems in IEC 61850 microgrid communication configuration using IED based on open-source hardware/software.
The customers who have access to IoT and with attendance to generate energy from households have obstacles connecting their technological system of smart devices into one cohesive whole, which operates efficiently both individually and as a whole. This paper proposes some solution for connecting Smart Devices which are capable of "plug-n-play" into IoT with energy generating facilities which operate on IEC 61850 protocol without any need for an adapter like devices for information exchange. This solution is based on already available tools and materials from most online shops. The proposed solution is not limited by authors-defined data packages, it is capable of understanding custom made information. The proposed measurement system is limited to one voltage of three-phase voltages because of data readout understanding and calculations. Three-phase measurement is nothing more than two times more devices/sensors included in the experiment. This paper gives a multidisciplinary perspective on a solution that can be applied to households, substations, commercial applications, but it can also be used for educational or scientific purposes.
The rest of this paper is organized as follows: Section 2 presents the essential design and architecture of CMIED. Section 3 discusses the IEC 61850-based substation communication network (SCN). Section 4 gives the information on IEC 61850 integration by SCL and innovative CMIED engineering. Finally, Section 5 presents the conclusions of the paper.

Architecture of CMIED
Wi-Fi communication as a backbone has been suggested in the papers [5,6,9]. In this system, the AMR can use 802.3 and 802.11 to send data to a remote server. Such choice is based on the knowledge presented in [25] and the fact that this solution needs to be cost-effective. The data transmission is finished inside a pre-decided period as a cycle of information that consolidates everything on AMR structure. The period in which a data trade is done is designed in the hardware when the customer sets the parameters. Data sets sent for Wi-Fi transmission are inside the structure of hypertext markup language (HTML) variant 1.0, which is a tool for the presentation of sampling data on the simple graphical user interface (GUI).
The client can see the information on any device that can connect to the same Wi-Fi network, and that can handle the HTML 1.0 scripting language [26]. Features of Wi-Fi, provided in IEEE 802.11 standard [27], such as boundless information exchange, simple and brisk set up of all system settings, ease of execution, remote availability and so on, are the reasons this technology is chosen for the conformity stage of the proposed AMR framework.
The AMR results are provided through the Wi-Fi channel. That channel is expandable just by storing up another AMR meter that would transfer data over a Wi-Fi or explicitly from the Ethernet connection interface with the Wi-Fi switch inside the first AMR meter. In that case, the data pack would reach out to another Internet protocol (IP) address of the local-area network (LAN) and end up available to the customer. Such an approach can be expanded to use of concentrator like is done in some other applications [28] where is used a wireless remote system based on ZigBee technology.
The technique and structure of the AMR correspondence system are showed up in Figure 1. Information about current and voltage values is obtained with the help of basic equipment at power connections and by using current transformers. Measurement data is processed inside the Arduino Uno R3 board and transported to the Wi-Fi switch over the ENC28J60 module. The switch transmits data to a Wi-Fi network. Any device that has an HTML 1.0 interpreter and is connected to the same Wi-Fi network can see the data dynamically. Also, a server application that acquires and stores it on a hard drive can be appointed to any PC connected to the same Wi-Fi network.
All of the AMR system parts can be freely bought on the web stores of electronic items. They are alterable and adaptable to the customer. Since the electricity market is unregulated, it is imperative to have additional realization when securing fragments, as not all parts are proportionate in quality, nor are all compatible with each other. Writing computer programs for IED in case of substation management is done using solely JAVA programming language. The programming hardware is the Arduino motherboard and all additional peripherals [29].

IEC 61850-Based Substation Communication Network
SCN based in IEC 61850 contains several IEDs that perform well in terms of testing, protection, and control [30,31]. Each device is connected to intelligent hubs (LNs) and individual data queries following the IEC 61850 standard. During the action, IEDs communicate with each other over an established framework. In that way of communicating, every IED knows about all other present IEDs and their role in the grid. In that fashion, in the arrangement, each IED is taught about other IEDs' region in the SCN. To understand the whole framework, IEDs also need information on the subtleties of the substation, e.g., B. single line view, switchboard structure, and correspondence system view. This absolute information is conveyed to each IED by various exchanges of specific records. To ensure reliable exchange between different devices, IEC 61850-6 describes an ordering language called SCL. SCL records are exchanged during the setup process between different configurators and IEDs. For simplicity, the all-out method is part of multiple ensembles, for instance, transformers, medium, and low voltage level, or even substation related parts in which substation exchanges data with other substations/structures for line protection and various limits. This part is named as an endeavor. For the planning of such errands, different interfacing data exchanges occur among the endeavors. Particular on-screen characters drew in with the planning technique are the IED configurator, structure configurator, and the endeavor IEDs. The change of IED limit rests with the shipper of each IED. With full ownership of the device change, the ability to perform essential or advanced functions within the device is provided by the device owner. The types of SCL files that are subordinate to data Information about current and voltage values is obtained with the help of basic equipment at power connections and by using current transformers. Measurement data is processed inside the Arduino Uno R3 board and transported to the Wi-Fi switch over the ENC28J60 module. The switch transmits data to a Wi-Fi network. Any device that has an HTML 1.0 interpreter and is connected to the same Wi-Fi network can see the data dynamically. Also, a server application that acquires and stores it on a hard drive can be appointed to any PC connected to the same Wi-Fi network.
All of the AMR system parts can be freely bought on the web stores of electronic items. They are alterable and adaptable to the customer. Since the electricity market is unregulated, it is imperative to have additional realization when securing fragments, as not all parts are proportionate in quality, nor are all compatible with each other. Writing computer programs for IED in case of substation management is done using solely JAVA programming language. The programming hardware is the Arduino motherboard and all additional peripherals [29].

IEC 61850-Based Substation Communication Network
SCN based in IEC 61850 contains several IEDs that perform well in terms of testing, protection, and control [30,31]. Each device is connected to intelligent hubs (LNs) and individual data queries following the IEC 61850 standard. During the action, IEDs communicate with each other over an established framework. In that way of communicating, every IED knows about all other present IEDs and their role in the grid. In that fashion, in the arrangement, each IED is taught about other IEDs' region in the SCN. To understand the whole framework, IEDs also need information on the subtleties of the substation, e.g., B. single line view, switchboard structure, and correspondence system view. This absolute information is conveyed to each IED by various exchanges of specific records. To ensure reliable exchange between different devices, IEC 61850-6 describes an ordering language called SCL. SCL records are exchanged during the setup process between different configurators and IEDs. For simplicity, the all-out method is part of multiple ensembles, for instance, transformers, medium, and low voltage level, or even substation related parts in which substation exchanges data with other substations/structures for line protection and various limits. This part is named as an endeavor. For the planning of such errands, different interfacing data exchanges occur among the endeavors. Particular on-screen characters drew in with the planning technique are the IED configurator, structure configurator, and the endeavor IEDs. The change of IED limit rests with the shipper of each IED. With full ownership of the device change, the ability to perform essential or advanced functions within the device is provided by the device owner. The types of SCL files that are subordinate to data exchange and exchange of rights between IEDs describe six notable types of SCL reports in IEC 6185: IED ability portrayal (ICD), instantiated IED depiction (IID), framework detail depiction (SSD), framework setup depiction (SCD), arranged IED depiction (CID), and framework trade depiction (SED). All these record types have particular archive extensions. Each archive contains an adjustment number and a rectification number to perceive changed and old records.
In the procedure of SCL planning, the last step is the creation of an SCD archive, which contains the widely inclusive point of view of the substation portrayal. This record fuses information on all IEDs, substation structure, data types for all related LNs, and the communication framework. IED's charge the individual ICD records to the IED configurator close to the beginning of the structuring methodology. If any alteration is required in the IED portrayal amid the building procedure, an IID record is sent out from IED to the IED configurator. Particular IED configurators generate out ICD reports and IID records from various IEDs, then sending them to the structure configurator. As such, the structure configurator contains the limit portrayal records from all the related IEDs. The structure subtleties are imported through a system-specific gadget as an SSD report. This SSD archive contains the base information of the system group and the portrayal of LNs of the substation. The system configurator unites this information with the current or departure of IED in the structure; a comparative technique is repeated to plan the system. The arrangement strategy for an SCN of a single substation is delineated in Figure 2.
For ease, the predefined number of IEDs is related to the SCN switch. The IED configurator and framework configurator are related to the framework in reconfiguration arrangement. Planning a reduced structure in a way that acts as two substations would be misleading as it lacks the time shift for different SED datasets when exchanged between different substations. Similarly, these SED records should be shared between all small network parts for better interpretation. It is not possible to exchange some SED data set mixes with the system described in IEC 61850-90-1. To solve this problem, a central configurator is introduced into the planning process. n this way, this article proposes an unprecedented WAN Measurement Configurator (or Micro System Structure Configurator) for small profile IEDs. This section explains the setup technique for WAN Meter Configurator, item by item. The proposed scheduling method is as follows: General directorates and workloads in the micro-network section are displayed with different IEDs in their neighborhood. Like this, distributed generation (DG) and consumer loads can be considered as a substation having various IEDs.
Energies 2019, 11, x FOR PEER REVIEW 6 of 11 exchange and exchange of rights between IEDs describe six notable types of SCL reports in IEC 6185: IED ability portrayal (ICD), instantiated IED depiction (IID), framework detail depiction (SSD), framework setup depiction (SCD), arranged IED depiction (CID), and framework trade depiction (SED). All these record types have particular archive extensions. Each archive contains an adjustment number and a rectification number to perceive changed and old records.
In the procedure of SCL planning, the last step is the creation of an SCD archive, which contains the widely inclusive point of view of the substation portrayal. This record fuses information on all IEDs, substation structure, data types for all related LNs, and the communication framework. IED's charge the individual ICD records to the IED configurator close to the beginning of the structuring methodology. If any alteration is required in the IED portrayal amid the building procedure, an IID record is sent out from IED to the IED configurator. Particular IED configurators generate out ICD reports and IID records from various IEDs, then sending them to the structure configurator. As such, the structure configurator contains the limit portrayal records from all the related IEDs. The structure subtleties are imported through a system-specific gadget as an SSD report. This SSD archive contains the base information of the system group and the portrayal of LNs of the substation. The system configurator unites this information with the current or departure of IED in the structure; a comparative technique is repeated to plan the system. The arrangement strategy for an SCN of a single substation is delineated in Figure 2.
For ease, the predefined number of IEDs is related to the SCN switch. The IED configurator and framework configurator are related to the framework in reconfiguration arrangement. Planning a reduced structure in a way that acts as two substations would be misleading as it lacks the time shift for different SED datasets when exchanged between different substations. Similarly, these SED records should be shared between all small network parts for better interpretation. It is not possible to exchange some SED data set mixes with the system described in IEC 61850-90-1. To solve this problem, a central configurator is introduced into the planning process. n this way, this article proposes an unprecedented WAN Measurement Configurator (or Micro System Structure Configurator) for small profile IEDs. This section explains the setup technique for WAN Meter Configurator, item by item. The proposed scheduling method is as follows: General directorates and workloads in the micro-network section are displayed with different IEDs in their neighborhood. Like this, distributed generation (DG) and consumer loads can be considered as a substation having various IEDs. Microgrid applications of the last SCD record from the structure configurator is conferred to the miniaturized microgrid level framework configurator (MLSC). The MLSC is the authority which Microgrid applications of the last SCD record from the structure configurator is conferred to the miniaturized microgrid level framework configurator (MLSC). The MLSC is the authority which deals with the trading of SED archives between various system configurators for creating the updated adjustment of SED record. For this, the most important SCD reports of all system configurators were collected and included in the SSD recording of microgrid section data. The created SED record in this method is then passed to the structural configurators (specifically DG or load) of the microgrid. An illustration of consolidating the all-out microgrid organization plan procedure is showed up in Figure 3. deals with the trading of SED archives between various system configurators for creating the updated adjustment of SED record. For this, the most important SCD reports of all system configurators were collected and included in the SSD recording of microgrid section data. The created SED record in this method is then passed to the structural configurators (specifically DG or load) of the microgrid. An illustration of consolidating the all-out microgrid organization plan procedure is showed up in Figure  3.  To outline the scaled downscale system configuration process, the arrangement method using created SCD archives is explained over a test scaled-down structure set-up.

The Symbiosis of CMIED and IEC 61850
IEC 61850 files are all the same in syntax structure; they are very similar to XML annotation used in most of the application configurations: web apps, desktop-based apps, mobile phone apps, etc. An example of an SCD configuration file is presented by Figure 4, describing the protection scheme for photovoltaic (PV) distributed generator in microgrid.  To outline the scaled downscale system configuration process, the arrangement method using created SCD archives is explained over a test scaled-down structure set-up.

The Symbiosis of CMIED and IEC 61850
IEC 61850 files are all the same in syntax structure; they are very similar to XML annotation used in most of the application configurations: web apps, desktop-based apps, mobile phone apps, etc. An example of an SCD configuration file is presented by Figure 4, describing the protection scheme for photovoltaic (PV) distributed generator in microgrid. For the testing purposes, a protective relay data is considered to be data transferred to an SCD report to reduce the size and represent IED connection. The orchestration of the spread of the concentrated security parcel requires the configuration of the SCL dataset. This arrangement occurs in two essential advances. A major advance is that the IEDs that differ with a particular structure is organized in the same manner as in a standard SCN explained in past sections. This is called a neighborhood plan. As a result, the MLSC interface structure configurator is used to create SED records for a standard application, for example, to bind together a security strategy. This is referred to as the overall arrangement in this research. The neighborhood structure requires one last SCD record for the system. The IED configurator retrieves the data (with LV and data objects) of all the estimated IED properties from the sensor and packs it into the ICD dataset. Each IED has its ICD record provided by the manufacturer. In this article, open-source programming takes on the task of creating an output device for uniquely obtained ICD records until IEC 61850 based communication proceeds. IED device is customized in Java programming language and introduced into PC from where information is transmitted further by RS 232/RS485 to Smart Grid framework arrangement or/and to IoT Gateway by message line telemetry transport (MQTT), as portrayed in Figure 4. Figure  4 shows the SCD file example for PV IED packed information. On left is presented listing of abbreviations for some of substation parts like breaker, transformer, busbar etc. On right is sample of XML like SCD file where are those abbreviations used in listing like manner for next device to be able to add its listing etc. SCD file is received by router who organize communication line and forwards it to command station for data acquisition. Also, Table 1 presents measurement from Improvised Electronical Device which transmits data to IoT cloud by IEC61850 protocol. Its only one phase measured. For the testing purposes, a protective relay data is considered to be data transferred to an SCD report to reduce the size and represent IED connection. The orchestration of the spread of the concentrated security parcel requires the configuration of the SCL dataset. This arrangement occurs in two essential advances. A major advance is that the IEDs that differ with a particular structure is organized in the same manner as in a standard SCN explained in past sections. This is called a neighborhood plan. As a result, the MLSC interface structure configurator is used to create SED records for a standard application, for example, to bind together a security strategy. This is referred to as the overall arrangement in this research. The neighborhood structure requires one last SCD record for the system. The IED configurator retrieves the data (with LV and data objects) of all the estimated IED properties from the sensor and packs it into the ICD dataset. Each IED has its ICD record provided by the manufacturer. In this article, open-source programming takes on the task of creating an output device for uniquely obtained ICD records until IEC 61850 based communication proceeds. IED device is customized in Java programming language and introduced into PC from where information is transmitted further by RS 232/RS485 to Smart Grid framework arrangement or/and to IoT Gateway by message line telemetry transport (MQTT), as portrayed in Figure 4. Figure 4 shows the SCD file example for PV IED packed information. On left is presented listing of abbreviations for some of substation parts like breaker, transformer, busbar etc. On right is sample of XML like SCD file where are those abbreviations used in listing like manner for next device to be able to add its listing etc. SCD file is received by router who organize communication line and forwards it to command station for data acquisition. Also, Table 1 presents measurement from Improvised Electronical Device which transmits data to IoT cloud by IEC61850 protocol. Its only one phase measured.
The IED Configurator sends certain ICD records from the IED to the System Configurator. The structure configurator creates an SCD record merging all the ICD archives and includes topological system information from the SSD reports. A late-created SCD report is sent to an IED Configurator, which creates CID records and sends them to the appropriate IEDs in the system.