A Distributed Event-Triggered Control Strategy for DC Microgrids Based on Publish-Subscribe Model Over Industrial Wireless Sensor Networks

This paper presents a complete design, analysis, and performance evaluation of a novel distributed event-triggered control and estimation strategy for dc microgrids. The primary objective of this work is to efficiently stabilize the grid voltage, and to further balance the energy level of the energy storage systems. The locally-installed distributed controllers are utilized to reduce the number of transmitted packets and battery usage of the installed sensors, based on a proposed event-triggered communication scheme. Also, to reduce the network traffic, an optimal observer is employed which utilizes a modified Kalman consensus filter to estimate the state of the dc microgrid via the distributed sensors. Furthermore, in order to effectively provide an intelligent data exchange mechanism for the proposed event-triggered controller, the publish-subscribe communication model is employed to setup a distributed control infrastructure in industrial wireless sensor networks. The performance of the proposed control and estimation strategy is validated via the simulations of a dc microgrid composed of renewable energy sources. The results confirm the appropriateness of the implemented strategy for the optimal utilization of the advanced industrial network architectures in the smart grids.


I. INTRODUCTION
I N the future modern smart grids, a direct current (DC) mi- crogrid is becoming a natural substitution for the traditional power grid, mainly due to the ease of integration of the RESs.The DC microgrids have found the ever-increasing importance for the efficient realization of a number of crucial applications in the electric power industry, as they differentiate themselves from the AC grid counterparts in having the non-zero-crossing current and reactive power [1]- [3].However, controlling of the DC microgrid subsystems poses a considerable challenge, e.g., grid voltage stabilization is still a major problem due to the limitations in the voltage compensation techniques, when compared to the conventional AC power system [4]- [6].
The microgrid control strategies are categorized as centralized, decentralized, and distributed [7]- [9].In the centralized architecture, all the data should be centrally processed where there is a single point of failure for the entire power system, which potentially reduces the reliability of the operation of the microgrid, as well as increasing the computational complexities of the measured data processing [10]- [12].In the decentralized system architecture, a set of local controllers are distributed over the DC microgrid, e.g., the load controllers, distributed generation (DG) controllers, and converter controllers.The control objectives are achieved without any direct communication between the controllers, which is specifically useful in cases when the direct communication is not feasible or costly to establish.However, there are disadvantages to this method, such as the voltage offset and inadequate response time to load variations, which can both lead to the voltage and frequency instabilities in the DC microgrid.One of the most famous decentralized control methods is the droop control, where a number of investigations are conducted to overcome the deficiencies of the distributed control methods [13]- [15].
The main advantages of a distributed control architecture include the seamless real-time operation, no single point of failure, reduction in the computational and communication complexities, and distribution of the tasks among the local controllers in the microgrid [16], [17].The quality of power primarily relies on the fast real-time communication between the distributed controllers.Different approaches are proposed in order to effectively minimize the communication time and complexity.In [16], it is suggested that only one controller can communicate with its neighbor controllers rather than all the controllers.However, to satisfy the overall control objectives, the limitations of the main protocol candidates for the network should be appropriately considered, hence, the separation of concerns (SoCs) would not be held anymore [18].
The networked control systems (NCSs) are proved to be an essential framework for the implementation of a distributed control architecture in a number of applications, such as the power systems [19], industrial process control [20], power substation automation [21], aircraft control [22], and autonomous vehicles [23].In an NCS, controllers are programmed on digital embedded platforms, and are connected to sensor/actuator nodes via a shared communication link.This offers a flexible arXiv:1906.03623v1[eess.SP] 9 Jun 2019 structure where remote devices can be added, removed, and located with a minimum wiring and maintenance cost.With the advent of the Internet of things (IoT), the NCSs are moving towards wireless operation, where a channel may be shared among thousands of sensing nodes in the microgrid.Therefore, considering the fact that the channel bandwidth is limited, the NCS objectives should include reduction of the network traffic, as well as increasing the battery life of the sensors, while guaranteeing the overall performance.Hence, to fulfill such objectives and to address the issues regarding implementation of the intended control scheme, an event-triggered control and estimation strategy is further proposed in this work.The main objective in the event-triggered control is to efficiently reduce the communication packets generated in the sensor-controlleractuator loop [24].Exchanging information can only be executed among the components, when an event is generated to satisfy the control performance.Furthermore, different datasets can be employed for the event-generation, e.g., the plant output signals [25], [26], or state feedback signals [27]- [29].
Several works are already reported regarding the application of event-based control for microgrids.In [30], a multi-agent control system is proposed which uses the reinforcement learning to estimate the state of other agents using the event-based message passing, with the objective of the load frequency control (LFC) in AC grids.Moreover, a similar approach is followed in [31] using the adaptive dynamic programming (ADP) for LFC of AC microgrids.The authors in [32] have developed a power sharing control strategy among the hybrid microgrids using the event-based distributed consensus.Communication time delays and reactive power support are considered in the mentioned work.The problem of economic dispatch has been addressed in [33] using the event-based communication and fast gradient distributed optimization among different microgrids, forming a resilient grid.The power sharing problem is addressed in [34] to reduce the burden over the network.This idea has been extended in [35], [36] only for DC microgrids but without considering the communication models.
The main challenge of integrating the event-generation in an event-triggered control loop is the stabilization of the overall system.Several approaches are reported in the available literature, based on the use of the Lyapunov theorem for the stability analysis.In [37], to guarantee the global asymptotic stability, the problem of scheduling the event-based control tasks in the embedded processors is addressed.In [38], the event-triggered strategies to control the discrete-time systems are proposed, along with the results for the self-triggered control strategy.In [37], [39], the discrete-time systems are studied using a model-based Lyapunov triggering mechanism, in which the values of the Lyapunov functions are calculated at each sampling instant to maintain the system in the stable region.On the other hand, an event-triggered control system is considered as a hybrid system where the robustness analysis is rather a difficult task.In order to overcome the stabilization and robustness problems, we propose an approach by dividing the control problem into two different tasks.First, a distributed event-triggered optimal observer using the KCF [40]   regulates the output voltage of the DC-DC converters to stabilize the average voltage of the microgrid to a set value.
Fig. 1 presents the diagram of the distributed controller.A state estimator is proposed to reduce the number of data transmissions with relatively small degradation in the estimation performance.The send on delta (SoD) event-generation condition (i.e., δ) is used in which the sensor data is transmitted only if its values go beyond the δ value.A case study of 10bus microgrid is used to validate the proposed scheme, where the control objectives are chosen as the voltage stability and power sharing within the ES systems.Furthermore, multiple distributed ES systems replace a central ES system, to increase the reliability, power quality, and sensors' battery life, and to reduce the losses during the operation.
The contributions of this work can be summarized as: 1) Regulating the voltage of the DC microgrid using a novel distributed control strategy, in order to effectively control the output voltages of the DC-DC converters connected to the ES systems.Also, the controller is fulfilling two objectives, i.e., balancing the energy level of the storages together with the voltage regulation.2) Proposing an SoD-based Kalman filter, as a state estimator, for feedback control of the DC-DC converter, to balance the energy level by the distributed controller, along with the voltage regulation in the microgrid.The developed filter receives the real-time sensor data from the WSN, where the event-triggering function is based on the SoD sampling.The energy cost at each sensor node is also analyzed and compared to the traditional digital control system with the time-triggered sampling functionality.It is shown the network traffic is significantly reduced, due to the deployed procedure.3) Utilizing the publish-subscribe model for the appropriate implementation of the event-based control strategy.
It is shown that the model is seamlessly suitable for the event-based coordination of the distributed controllers.The rest of this paper is organized as follows.Section II describes the components of the DC microgrid, in which a microgrid model is developed based on the proposed distributed control and estimation strategy.A number of communication models have been thoroughly analyzed in terms of the eventbased communication, and the publish-subscribe communication model is further proposed for the event-based sampling scenarios in Section III.In Section IV, the proposed distributed controller design is discussed, and the structure of the Kalman filter as a state estimator is described, where a modification is suggested for the filter in order to adapt to the SoD event-based sampling.The stability and steady-state analyses are provided in Section V.In Section VI, a case study is given to validate the performance of the controller using the simulations of a 10-bus DC microgrid.The paper is concluded in Section VII.

II. DC MICROGRID MODEL ANALYSIS
A DC microgrid essentially consists of four main components, including the DG, ES systems, power converters (DC-DC or DC-AC), and loads.Fig. 2 indicates the common configuration of a microgrid, along with its constituent components.
The main objective of the ES systems is to compensate for the fast voltage dynamics caused by the load fluctuations in the DC microgrid.They are utilized to stabilize the voltage, and to increase the power quality.The widely used ES devices are electrochemical batteries, super capacitors, and flywheels which are easily deployable in a microgrid due to their natural DC output.A DC microgrid has two main operating modes: islanded mode and connected mode.The distributed secondary controller proposed in this work can operate in the both modes.A maximum power point tracking (MPPT) scheme is used to ensure that maximum power is absorbed from the intermittent distributed energy sources (DERs) such as photovoltaics.Here, the DGs and DC-DC converters in the main grid are modeled as the current sources, in which the variable injected current is related to their output power.In this way, the DC microgrid only gets connected to the main grid if enough power is not available from the installed DGs for load balance.

III. COMMUNICATION MODELS FOR MICROGRIDS
There are several communication models that can be integrated into a control system.Each model has both advantages and disadvantages, and the system designer has to effectively decide which model to employ for the implementation of the control system.In this work, several communication models are studied in detail and are compared with each other.In the following, a comparative analysis has been given for a number of the intended communication models, for the purpose of the appropriate employment in the DC microgrids.
1) Request/Response: This communication model is one of the most commonly known models.It consists of a client that requests a service from a server, as shown in Fig. 3 (a).It is a useful model for the client-server or master-slave architectures [41].However, a drawback of this model is the inequality of participants, which is apparent in the network topology.This makes it difficult for the bidirectional communication scenario, in which both the parties request information from each other, especially if firewalls are present.Consequently, either events, event-subscriptions, or security is difficult to manage, and require additional services and substantial resources if firewalls are used in the network.2) Event-Subscription: This communication model allows a client to subscribe to events of a given type from a server.The server then informs the client each time the event is triggered, without having to constantly poll the server, as in Fig. 3 (b).Advanced event-subscription mechanisms can include client-specific requirements of when events are desired and under what conditions.The benefits of using this communication model are that half of the messages are not needed over time, and the latency of updates is kept to a minimum.The problem with this model is that it is not designed for the multiparty communication scenario.This can be further solved using the publish-subscribe model.3) Multicasting: The previous models are primarily considered for the communication purposes between two entities.However, a more efficient model is required in cases when the same information has to be sent to multiple entities at the same time.Here, a sender sends one message through an intermediary (i.e., a broker or a router) which then distributes it to multiple recipients that have all requested participation in the communication.This model saves the bandwidth because the sender does not have to send individual messages to all the parties by itself.Also, the sender does not even have to know who the recipients are.
Although one can use this model in order to save the bandwidth, it is often used as a means of overcoming the restrictions in the chosen protocol, and its support of the event-subscription model, as well.In addition, multicasting is inherently difficult to secure, and it is more efficient in terms of the bandwidth only if the recipients actually use most of the transmitted values.
In the case where frequent multicasting for decreasing the latency in the network is desired but not possible, the multicasting model might result in the increase rather than decrease in the required bandwidth [42].4) Queues: The first-in, first-out queues, is a model that allows one or more entities to post the messages or tasks into a queue, and then lets one or more receivers receive the messages in an ordered fashion.
The queues reside on an intermediary node or network to which all participants are connected.This model is an excellent tool for the load balancing purposes, where the collected tasks from multiple sources need to be distributed among the existing workers, perhaps having different performances.Queues can hardly be used for real-time communications in control systems, since the message should be saved at first, and then be processed at the controller via an intermediary node.
Publish/Subscribe: This communication model is an extension of the multicasting model, with the difference that messages transmitted are stored in the intermediary node.The messages, or a reference to the messages, are distributed to the corresponding subscribers, depending on the protocol.Also, only the latest message is stored, a given number of messages are stored, or all messages are stored in the intermediary, depending on the chosen protocol, as well as the settings of the intermediary [43].The difference between distributing the entire message and distributing only a reference to the message is important and affects the performance of the solution in terms of the consumed bandwidth.If the subscribers consume most of the messages, forwarding the messages themselves is more efficient, as in the case of multicasting.If, however, consumption occurs only on demand, then sending shorter references is more efficient because these messages are smaller and subscribers would use only a minority of them to fetch an actual message.In order to fetch a message in the latter case, a separate request/response action needs to be performed [44].
The behavior of each model has been analyzed from the control point of view.In this treatise, the publish-subscribe communication model is used for the practical implementation of the distributed event-based control strategy.In the publishsubscribe model, a node can act as a publisher, subscriber, or both simultaneously.The network roles can be dynamically changed to ensure a flexibility to reconfigure the directions of the data exchange.The main advantage of this model is that the data can be exchanged intelligently between the devices (i.e., the publishers send the data to the specific subscribers without having a subscription knowledge of each node).This keeps the setup process easier for the overall maintenance of the network, and enables the self-configuration of the devices, as one of the primary characteristics of the industrial ad-hoc networks.The process of selecting messages for the reception and processing is called filtering.The topic-based and contentbased filtering are the two common forms of filtering used in new communication protocols introduced in the context of IoT.In the publish-subscribe network setup, a server manages the topics and contents, which is called a broker.The brokerfree setup can be achieved with the distributed topics/contents suitable for the proposed distributed control structure [45].The topic-based publish-subscribe communication model also enables the selective message distribution among a number of sources and sinks [46].Messages are associated with the topics and are selectively routed to destinations with matching topic interests.Subscribers show their interest in receiving data with a given topic and data sources publish messages on the topics.
The main advantages of the publish/subscribe communication model compared with the aforementioned models can be summarized as: • Adaptive role change in a dynamic environment from the publisher to the subscriber and vice versa.• Intelligent data exchange among the nodes without having a subscription knowledge of each node.• Automatic self-configuration of the nodes in the ad-hoc network without a central configurator which enables the plug and play operation of the microgrid.• Intrinsic discrete event transmission support which suits it as an ideal choice for the event-triggered control.
Fig. 4 also presents the concept of the topic-based publishsubscribe communication protocol model.Multiple subscribers can listen for a predetermined topic, and also multiple publishers can publish new data to certain topics.The only drawback with this model is that when subscribers initially subscribe to a certain topic or content, their initial value remains undefined until the next publishing cycle.A number of communication protocols are proposed to tackle this issue, such as the message queue telemetry transport (MQTT) protocol, which uses the retained value in the broker-based structures.Consequently, when a subscriber connects to the broker, it will release the retained value of the most updated publish to the subscriber [47], [48].The protocol stack of MQTT is depicted in Fig. 5.

IV. DISTRIBUTED CONTROL STRATEGY ANALYSIS
A bidirectional DC-DC boost converter provides an interface between the ES system and the DC microgrid.The boost converter also acts as a bidirectional charger.A voltage-current (V-I) droop controller regulates the DC-DC converter output voltage with the reference voltage of v * i , which is calculated based on the microgrid voltage reference v mg and the locally measured output current i i .In the proposed strategy, the droop control is improved by considering two extra control signals where the voltage stabilization control signal u v i is defined to regulate the average microgrid bus voltage, and the power sharing control signal u e i is proposed to balance the energy level between the ES systems and to maintain it through the load sharing.In a decentralized V-I droop control, the load is normally shared between the ES systems in inverse proportion to their virtual resistances r i .The virtual resistance (i.e., r i ) is merely used for the voltage regulation at the converters of the ES systems, therefore it is lossless.
The DC microgrid is subject to high frequency harmonics due to the pulse width modulation (PWM) switching control scheme used for the converters.A low-pass filter with the cutoff frequency of ω c i should be used to reduce the harmonics, and to prevent the resulting instabilities in the grid.
where ω c i is a time-variant parameter considering the switching control of the DC-DC converters.However, with an appropriate selection of an upper-bound value, it can be approximated to a time-invariant parameter.
The current regulation can be achieved in two stages [49].At the first stage, a proportional-integral (PI) voltage controller G v i is defined in (3) to set the converter current reference to regulate the output voltage of the ES system: At the second stage the current controller sets the duty cycle of the PWM switching to control the bipolar junction transistors (BJTs) of the converter, and to regulate the output current.
In order to balance the energy level, a PI controller G e i is defined in (4) to set the energy level e i to the local estimate of the average energy level of the ES systems.Due to different capacities for the energy storages, per-unit energy level is used for the power balancing signal.
Another PI controller G v i is used for the voltage regulation of the microgrid, where the local estimate of the average bus voltage is regulated to the voltage reference of the microgrid: In ( 5), the double-integral is used to maintain the overall stability, and to eliminate the steady-state error.An average state estimator is designed for each ES system, using the local measurements and information from the neighboring ES systems.The estimator updates the local estimates of the average energy level and bus voltage of the ES system, then the controller tries to regulate the average estimates to the nominal values of the microgrid.

A. Distributed Average Consensus Protocol
Each ES system has an average state estimator that uses the local measurements and information from the neighboring ES systems to update the local estimates of the average ES system per-unit energy level e i , average microgrid bus voltage v i , and average ES system output current.The average state estimator implements a distributed average consensus protocol for tracking the dynamic signals from [50].
The ES systems are connected by a sparse communication graph G(V, E) with the nodes V = (1, ..., N ) and edges E. Each graph node represents an ES system, and the graph edges represent communication links between them.(i, j) ∈ E if there is a link allowing information flow from node i to node j.The neighbors of i node are given by N i , where j ∈ N i if (j, i) ∈ E. The graph adjacency matrix is given by A For the ith ES system, let x i be a local state variable, and let x i be a local estimate of the average value of that state for the ES systems.The ith ES system receives the average state estimates from its neighbors j ∈ N i , and its average state estimator implements the following distributed average consensus protocol: Each node in the network has in-degree d i = N j=1 a ij and out-degree i for all the nodes.The graph degree matrix is given by D = diag{d i } and the graph Laplacian matrix is also given by L = D−A.The global dynamics of the distributed average consensus protocol are given by: Applying the Laplace transform yields the following transfer function matrix for the average consensus protocol [50]: X and X are the Laplace transforms of x and x, respectively.For a balanced communication graph with a spanning tree, the steady-state gain of the average consensus protocol is given by the averaging matrix [51]: The final value theorem shows that for a vector of step inputs, the elements of x(t) converge to the global average of the steady-state values x ss :

B. Event-Based Kalman Filter Design
Consider the following linear system which is the state space realization of distributed average consensus protocol transfer function in each controller: where x ∈ R n is the estimated state and y ∈ R p is the output measurement.The process noise w (t) and measurement noise v(t) are the uncorrelated, zero-mean white Gaussian random signals, fulfilling the following: where w i and v j are the i-th and j-th elements of the w and v, respectively.Also, R is the measurement noise covariance, and Q is the process noise covariance.It is assumed that the ith sensor only transmits the data when the difference between the current sensor value and the previously transmitted value is greater than δ i .
The states are also estimated periodically with the period of T .For simplicity, it is assumed that there is no delay in the sensor data transmission.Using the SoD method, the estimator continuously with a period of T demands the data from the sensors no matter the data becomes available.For example, if the last received i-th sensor value is y i at the time t last,i , and there is no i-th sensor data received for t > t last,i , then the estimator can estimate y i (t) as: The last received i-th sensor data is used to compute the output y computed,i even if there is no sensor data transmission: ) where ∆ i (t, t last,i ) =y i (t last,i ) −y i (t) and: In ( 16), the measurement noise increases from ) is assumed to have the uniform distribution with (17), then the variance of ∆ i (t, t last,i ) is , which is added to the measurement noise covariance in standard Kalman filter R(i, i) when ( 16) applies.
Improved Kalman Measurement Update Algorithm: An algorithm is proposed here to appropriately improve the measurement update part of the standard Kalman filter algorithm, which is adapted to the SoD event-generation condition by increasing the measurement noise covariance R k : 1) Initialization set x− (0), 2) Measurement update if i-th measurement data are received end if 3) Project ahead x− ((k + 1)T ) = exp (AT )x (kT ) where Q d is the process noise covariance for the discretized dynamic system; y last is defined as (24): The presented event-triggered Kalman filter has been developed to implement the distributed controller and estimator as an NCS.It should be noted that in the proposed event-triggered observer, convergence is obtained by using the Kalman optimal observer.However, choosing the lower values of δ i would result in the considerable reduction in the convergence time [40].The controllers only receive updates from their neighbor controllers which is reflected in the L matrix of the transfer function that has been realized.Distributed average consensus is then achieved for each controller based on the number of neighbor controllers.Also, the higher the number of adjacent controllers are, the faster the estimator would converge.
V. GLOBAL DYNAMICS AND STABILITY ANALYSIS Fig. 6 presents the block digram of the feedback loop for each of the distributed ES controllers.The voltage regulation dynamics of the grid forms a multiple-input multiple-output (MIMO) linear system.If V mg is the Laplace transform of the voltage reference of the grid, the distributed control dynamics can be expressed as (25): where The grid-connected rectifier, the constant power loads, as well as the generation sources (i.e., operate under the MPPT algorithm) can act as the positive or negative current sources, while the ES systems act as the bus voltage regulation units in the DC microgrid.To formulate the bus voltage regulation dynamics, power sources can be modeled by a parallel current source and resistance.Modern DC-DC converters operate at a high switching frequency with one switching period delay (i.e., T s ) in the current control mode.In order to model the DC-DC converter, a control structure as shown in Fig. 7 is used, in which the bus voltage regulation dynamics is designed as an outer-loop between the output voltage of the ES system v * i , and the local bus voltage v i [52].Moreover, the transfer function for the internal loop is given by H v ol i .
Therefore, the local bus voltage closed-loop transfer function of the DC microgrid is given by: The output currents of the ES system can be obtained from multiplying the bus voltages with the bus admittance matrix, constructed based on the line and load impedances: A first order model is used for the battery per-unit energy level charging and discharging: where e max i is the maximum energy capacity of the i-th ES system.The global energy level dynamics is modeled as (35): The global closed-loop voltage regulation dynamics can be described by the multiple output linear system as (36): In the above strategy, it is assumed the local distributed controllers can exchange data with the other controllers in a continuous mode.It should also be noted that this assumption is not feasible in the cases involving the NCSs.An event-based Kalman filter is proposed to overcome this problem.Using this filter, the distributed control system can be realized with the SoD event triggering condition.

A. Stability and Steady-State Analysis
Assuming v mg be the control reference voltage.In this case, input to the global closed-loop voltage dynamics is given by: The steady-state DC microgrid bus voltages are obtained by applying the final value theorem to (37): The steady-state bus voltages can be reached to based on the following limits: and lim therefore which yields Furthermore, as shown in (39), without the double-integral gain of the voltage controller, the steady-state response would be dominated by the energy balancing control signal; to verify that the average steady-state voltage is equal to the reference voltage of the microgrid, each side of ( 41) is multiplied by the averaging matrix Q.Since the column sums of (I N − Q) are equal to zero, Q(I N − Q) = 0 N ×N .Following (10) yields:

VI. RESULTS AND DISCUSSION
The performance evaluation of the proposed controller is thoroughly presented in this section through a case study of a 10-bus microgrid.As also depicted in Fig. 1, each distributed controller receives the events from neighbor ES sensors.The deployed sensors measure the bus voltages and currents.
It has been discussed in detail that the network traffic, and the battery energy usage of sensor nodes in a WSN, would be reduced significantly if an event-triggered strategy is used.The event-triggered control stops the unnecessary data exchange in a shared medium.Once an event is generated, the data must be sent to the controller as fast as possible, in order to prevent the deviation of system behavior from the stable margin.
In the proposed distributed control, there are two different variables that are evaluated in the event-generation condition.First is the bus voltage in which the distributed controller is installed, and second is the ES system per-unit energy level.The conditions of the SoD event-generation for these variables are independent, therefore two thresholds are evaluated in each controller.Each event is then matched with its corresponding topic in the publish-subscribe model; e.g., in the presented case study of the 10-bus system, each bus controller publishes data in two topics related to that bus.Since the network is assumed to be connected, each distributed controller subscribes to the topics of the other neighbors.This is shown in Table II.The MATLAB & Simulink software is employed for the simulation of the DC microgrid and distributed control strategy.Also, the Simscape toolbox is used to simulate the electrical distribution system of the DC microgrid.

A. DC Microgrid Configuration
The microgrid used for the case studies is shown in Fig. 8.The presented DC microgrid incorporates a 10-bus distribution system with the PV generation and 10 battery ES systems.
At bus 1, a 150 kW rated rectifier provides main connection of the microgrid.Bus 1 also includes 500 m 2 PV generation operated with the MPPT algorithm, rated for 80 kW.Based on the analysis of conventional wiring configurations of the DC microgrids shown in [53] for data centers, 50m×24mm cables  are selected to connect the load buses to bus 1.The buses 1 to 7 have 25 kWh lithium-ion batteries, while the buses 8 to 10 ES systems have 12.5 kWh lithium-ion batteries.The battery ES systems are connected by a sparse communication network to support the proposed distributed event-triggered control.The communication links between the ES systems are bidirectional, meeting the requirements of the distributed control strategy for a balanced communication network.Based on the ETSI EN 300 132-3-1 telecommunications DC distribution standard for data centers, the voltage limits are defined as 380 V±5% [54].For the case study, 15 kW constant power loads are installed at buses 1 to 5, and 5 kW constant power loads are installed at buses 6 to 10, hence the total load of the microgrid would be 100 kW.The battery ES systems begin with values around half of their energy levels, and are chosen randomly.The bus 1 PV generation with MPPT was simulated based on the modeling approach from [55], using the 1 min resolution irradiance and temperature data for 2 p.m. to 4 p.m. on June 1, 2014 from the NREL Solar Radiation Research Laboratory (SRRL): Baseline Measurement System (BMS), in Colorado.Moreover, the used irradiance data is shown in Fig. 9.The simulation parameters are also provided in Table IV.The graph adjacency matrix A elements a ij are chosen as "1" if there is a connection and "0" if there is no communication link between the buses.The DC load and battery parameters for each bus are given in Table III.The parameters of the proposed event-based Kalman filter are also provided in Table V for the proposed control strategy.

B. Simulation Scenario
The simulation scenario is divided into four sections to represent the different modes of operation of the proposed control strategy.The scenario is simulated for both with and without the proposed event-triggered estimation, in order to compare the results of both the implementations.Moreover, in another simulation, the performance of the proposed estimator is tested by adding 100 ms delay in the event transmission.The simulation time is set at 120 minutes (i.e., 7,200 seconds).
1) Islanded Operation With Load Switching, 0 to 10 min: The DC microgrid begins in the islanded mode.The start load is 60% at all the employed buses.After 5 minutes, the loads are switched at all buses to their 100% nominal values.As shown in Fig. 12, the energy level of the ES systems at the buses are increased, as the total power from the PV exceeds the total load of the microgrid.After the load switching, storages starting to discharge the energy, and the voltage is stabilized around 380 V with the zero error, as shown in Fig. 10 (C).
2) Grid Connected Operation With Rectifier Providing Load Balancing, 10 to 40 min: At min 10, a grid connection is made with the rectifier in the load balancing mode.Moreover, the ES systems use their 30 kW power capacity to reach a balanced per-unit energy level, as shown in Fig. 12.A per-unit energy level of 0.45 is reached by the ES systems; 11.25 kWh for the 25 kWh ES systems at buses 1 to 7, and 5.62 kWh for the 12.5 kWh ES systems at buses 8 to 10.The voltage controllers limit the bus voltages of the DC microgrid between 377.3 and 381.6 V (i.e., 1% error), and ensure the average bus voltage remains at the voltage reference of the microgrid, as shown in Fig. 12 (B).As desired, the average ES system per-unit energy level remains constant around the operating point.
3) Grid Connected Operation With Main Grid Providing ES Charging, 40 to 80 min: At min 40, the rectifier operating mode is changed from the load balancing to the ES charging mode, and the injected power increases.The rectifier uses its maximum power capacity of 150 kW to raise the average ES system per-unit energy level to the value of 0.62, as shown in Fig. 12 (B).The per-unit energy balancing is maintained between the ES systems.The 25 kWh ES systems are charged at a common rate and the 12.5 kWh ES systems are charged at half of this rate.As the ES systems are charged, they adjust their output powers to balance the variable PV generation, and to further regulate the average DC microgrid voltage within 0.05 V of the reference of 380 V, as shown in Fig. 10 (B).
4) Islanded Operation With Sudden Main Grid Disconnection, 80 to 120 min: At min 80, the grid connected rectifier is suddenly disconnected, initiating the islanded operation.The sudden power imbalance causes the bus voltages of the DC microgrid to fall, with a minimum level of 377.4 V reached.
ES systems react to the fall in the voltage by increasing the corresponding output powers, restoring the microgrid load balance and returning the average bus voltage to the reference with less than 1% (i.e., 2 V) steady-state deviation.
Furthermore, by manually adding the delay of 100 ms in the event transmission via the communication network, it can be seen in Fig. 12 that the stability throughout the simulation is maintained.It should be noted that the event-triggered control is more prone to the instability, due to the delay in the eventtransmission.This is the reason the voltage profile is higher compared with the ideal scenario.This fact is reflected in the error graph of Fig. 12 (C).In the simulation without applying the event-based Kalman filter, each sensor is driven by a synchronous clock, as in a traditional digital control system.For instance, with a sampling period of 1 ms, there should be 40,000 events in the time frame of 40 s.For this specific case study, in 7,200 seconds there should be 7, 200 × 1000 = 72 × 10 5 number of generated messages at each bus, but this is much lower with the eventtriggered control strategy proposed in this work.The number of generated events at each distributed controller unit of each bus is given in Table VI.This also shows that the acceptable performance of the microgrid is kept with a minimum number of transactions among the neighboring controllers.The total energy loss in the communication is compared in Table VII, where the average power consumption of each transceiver is assumed to be 50 mA in the duration of 10 ms at the voltage of 3.3 V (i.e., e = v × i × t), and the sampling interval is 100 ms for the time-triggered control.When comparing the values of the consumed energy in the nodes in the traditional samplebased control, as well as the proposed event-based one, the effectiveness of the event-based control strategy in terms of the utilization of the resources is evident, as the energy lost in the communication is reduced nearly by 40%.Additionally, the network traffic is considerably reduced comparing the number of packets generated at each bus with the proposed control strategy to the traditional sample-based control scheme.

VII. CONCLUDING REMARKS
This investigation has thoroughly presented the design and performance evaluation of a novel distributed event-triggered control and estimation strategy.The objective of this controller is to effectively stabilize the voltage of a DC microgrid only by controlling the output voltages of the DC-DC converters connected to the ES systems.The controller is able to balance the energy level of the ES systems and to regulate the output voltage of the microgrid.An event-based Kalman filter has been developed for the state feedback controller of the DC-DC converters.The Kalman measurement update algorithm has also been modified for the distributed controllers to exchange the data over industrial WSNs.The publish-subscribe model has been proposed for the optimal implementation of the distributed controller, in which the publishers send the data to the specific subscribers without having a subscription knowledge of each node.This has consequently resulted in the intelligent data exchange, as well as the self-configuration of the devices.The simulated results confirm a significant reduction in the network traffic, while maintaining the performance threshold comparing to the digital control schemes.The total energy cost at each sensor node is considerably reduced compared to the traditional time-triggered sampling control systems.This work can be extended to include the comparative analysis of the existing protocols for the proposed controller, along with the performance evaluations using the other estimation methods.

Fig. 1 .
Fig. 1.Block diagram of the proposed distributed event-triggered control and estimation strategy for the DC microgrids.

Fig. 2 .
Fig. 2. Schematic of a DC microgrid with the main constituent components.

Fig. 4 .Fig. 5 .
Fig. 4. Block diagram of the topic-based publish-subscribe model for the industrial distributed communication scenario.

Fig. 6 .Fig. 7 .
Fig. 6.Internal model of the ES system: (a) DC-DC converter circuit; (b) block diagram of the local converter controller.

Fig. 8 .
Fig. 8. Proposed case study of the 10-bus DC microgrid with the ES systems.

Fig. 9 .
Fig. 9. Data of the PV solar irradiance used in this case study.

Fig. 10 .
Fig. 10.Simulation results of the bus voltages for the case study of the 10-bus DC microgrid: A) without the proposed estimator; B) with the proposed estimator; C) error between the two approaches.

Fig. 11 .
Fig. 11.Simulation results of the bus voltages for the case study of the 10-bus DC microgrid: A) without the proposed estimator; B) with the proposed estimator (100 ms delay); C) error between the two approaches.

Fig. 12 .
Fig. 12. Simulation results of the energy level of the storages for the case study of the 10-bus DC microgrid: A) without the proposed estimator; B) with the proposed estimator; C) error between the two approaches.

TABLE I COMPARISON
BETWEEN THE DIFFERENT COMMUNICATION MODELS FOR THE DISTRIBUTED EVENT-TRIGGERED CONTROL OF DC MICROGRIDS.

TABLE II DISTRIBUTED
CONTROLLERS AND THEIR CORRESPONDING TOPICS.Bus Controller Voltage SoD Event Topic Energy SoD Event Topic

TABLE III VALUES
OF THE LOADS AND BATTERIES AT EACH BUS.

TABLE IV PARAMETERS
OF THE CASE STUDY AND CONTROLLER.

TABLE V PARAMETERS
OF THE EVENT-TRIGGERED KALMAN FILTER.

TABLE VII COMPARISON
OF THE ENERGY COST BETWEEN THE TIME-TRIGGERED AND EVENT-BASED CONTROL IMPLEMENTATIONS.