Abstract

Power line communications (PLCs) refer to a technology based on the existing electrical wiring to transmit data among the devices connected to the network. The PLC technology is an excellent solution widely studied and analysed by researchers, even in those areas characterized by strict requirements, such as industries. In this paper, a technique based on fuzzy logic, for the dynamic management of the amplitude of the signal emitted by the devices of a power line network, is proposed. The main aim is to manage the amplitude of the transmission signal in order to reduce the noise introduced into the network, and, as a consequence, the power consumption, increasing data transmission quality of network in terms of Quality of Service (QoS). This solution has been implemented into embedded systems based on the ADD1010, a power line System on Chip (SoC), and tested through a real scenario realized in laboratory.

1. Introduction

Recently, the power grid has become increasingly used also to allow the access to private data and exchange information among devices. This introduces the concept of power line communications (PLCs) [1]. This approach provides data transmissions using frequencies higher (a few tens kHz) than 50 Hz (or 60 Hz) related to the power supply. The PLCs are hampered by several factors: attenuation at the frequencies of interest [2, 3]; noises [36]; interference due to electronic devices connected to the system [7]; cross-coupling interferences [8]. However, the PLC technology is characterized by several strengths [9]: it does not need additional wires for data transmission and allows maintaining the connections even in case of through walls and curvatures. An aspect that must be considered concerns the management of the amplitude of the transmission signal in order to reduce the noise introduced into the network and, at the same time, the power consumption produced by the devices. Moreover, the noise measured in a communication medium leads to a proportional reduction of the network Throughput/Workload (TH/WL), that is, the ratio between the number of packets received and number of packets sent, that can be managed by dynamically varying the amplitude of the signal emitted by each device. Taking into account the network information, such as the master-slave distance (link length) and the link quality (noise level measured in the communication medium), it is possible to reduce the power consumption of each device and, then, the noise introduced into the network by means of a fuzzy logic controller. The fuzzy logic controller will evaluate, before each transmission, the distance from each slave and the disturbance (link quality) measured on the transmission channel due to the network load. Several measures have been carried out through a real test-bed scenario. In more detail, we measured the active power consumption, the Throughput/Workload ratio of the network, and the noise level introduced into the network, in terms of cross-coupling interference. The obtained results are very promising and show that the road to follow to ensure the optimal management of the amplitude of the emitted signal is correct and must be pursued. The paper is organized as follows: Section 2 deals with the main literature related works; Section 3 describes the proposed approach while Section 4 describes the real test-bed implemented showing, at the same time, the obtained results. Finally, Section 5 summarizes the paper reporting the conclusions.

In literature, little attention has been given to power consumption related to power line communications. In our opinion, a careful study focused on some parameters related to power consumption of devices should be conducted in order to reduce the total power consumption of the network and the noise introduced by the same devices. In industrial environments there are hundreds (thousands) of nodes. As a consequence, energy savings would result in an important benefit for the management of the plant itself. During our studies, we noticed that, in literature, the power line communications have been widely investigated in several aspects.

In [10], the authors analyse the effects of the impulsive noise in narrowband PLC systems and derive an explicit formula of bit error rate (BER) and its upper bound for an uncoded and coded orthogonal frequency division multiplexing (OFDM) schemes in PRIME [11]. Their analyses and the upper bound are then validated through simulations. Furthermore, the authors propose an efficient time domain interleaver (TDI) technique to improve the performance of PRIME by spreading the effect of impulsive bursts over a large number of OFDM symbols. Many other works, in literature, concern the study of techniques in order to reduce the noise in power line networks. In [12], the authors propose clipping scheme and equalizer as methods to reduce the effects of impulsive noise and channel attenuation in power line communication systems. The clipping is a mechanism through which it is possible to cut off the amplitude of the received signal over a threshold value, without its phase change, in order to reduce noise effects. The equalizer compensates for effects of PLC channel. The performance is evaluated in terms of bit error rate (BER). From simulation results, the authors confirm that their proposed clipping scheme has slightly better performance than conventional PLC system. Moreover, the authors claim that the results of their paper can be applied to PLC systems for smart grid. In [13], the authors propose an optimal Clipping/Blanking nonlinearity technique for impulsive noise reduction in narrowband (9 kHz–490 kHz) PLC system. The authors use the Clipping/Blanking memoryless nonlinearity for mitigating the effect of impulsive noise in OFDM systems over narrowband PLC channels. The authors also propose a method to find optimal threshold, corresponding to different values of signal-to-noise ratio (SNR), which minimizes the bit error rate (BER). This proposed method further improves the performance of Clipping/Blanking technique in the presence of impulsive noise over narrowband PLC systems.

These approaches leave out some very important aspects: power consumption and acceptable network performance, mainly in terms of Throughput/Workload. The latter factor is strongly influenced by the disturbance measured on the channel itself. An uncontrolled growth of the noise can determine an increasing packet error rate and therefore the degradation of network performance.

Only a few researchers (i.e., [14, 15]) have analyzed this point of view, but they determine other factors that influenced the requirements of network performance. For example, a novel technique of using single frequency network with flooding based routing that converts the channel congestion into channel cooperation for a narrowband PLC application is described in [16]. This technique is supposed to achieve better channel congestion performance by using PLC as compared to the available wireless communication techniques.

What emerged, from this synthesis of the state of the art, is that there are no studies in literature concerning the dynamic management of the signal emitted by devices of a power line network. From this point, the inspiration for the theme is covered in this paper.

3. The Proposed Approach

It is always seen that the network performance degrades at peak traffic hours [17]. Quality of Service (QoS) is a serious problem especially in cases where absolute reliability of communication is required such as remote monitoring, and signals from PLC system installed in adjacent flats may crosstalk to other PLC systems and so forth.

A power line network is characterized by a master and several slaves that communicate each other using the power grid, as depicted in Figure 1.

Data throughput could be degraded due to this interference and/or due the increase of workload network. As a consequence channel congestion is considered a problem in communication. In case of channel congestion, wireless technologies fail to deliver when compared with PLC based technologies as suggested in [17].

Our work differs from other literature approaches, because our work has been conducted in terms of dynamically managing the amplitude in order to obtain some data communication improvement and consequently power consumption reduction of devices. Literature works are lacking in this scope. It is an object underlying this paper to provide a power line communication method in which disturbances of power line communication between power line communication devices by interferences or from noise sources can be reduced in a simple and reliable manner in order to increase the communication quality and the communication reliability. The main aim of this work is to realize an embedded solution in order to dynamically manage the amplitude of the signal emitted by the devices, in order to enhance one of the most important parameters of a data transmission system, the Throughput/Workload, and also try to reduce, even if so small power consumption. This solution has been implemented in the master controller device. The master device dynamically determines, through a fuzzy logic controller, the amplitude of the signal emitted by each slave, based on the master-slave distance and the link quality. Both the master and the slaves are characterized by the ADD1010, a power line communication System on Chip (SoC) that implements a full PLC device using FSK modulation compatible with IEC613434-5-2. It includes an enhanced 8051 microcontroller, a hardwired medium access controller (MAC) and a modem circuit for power line medium [18]. The ADD1010 schema is shown in Figure 2.

As it is possible to see, the fuzzy logic controller has been implemented into the microcontroller (MCU) of the ADD1010 (ADD8051C3A), an enhanced version of the 8051 microcontroller family. The fuzzy logic controller, as explained in detail in Section 3.1, reads a special register (the VTB BE SOFT register of the ADD1010) that contains information related to the link quality in terms of BER and writes on another special register (the Gain Register of the ADD1010) managing in this way the amplitude of the signal emitted by each device. The link quality is estimated every transmission between the master and each slave; on the contrary the distance was considered fixed and known a priori. Moreover the link quality is inversely proportional to the noise present on the line and therefore also to the bit error rate.

These registers are contained in the PLC modem that is characterized by eight programmable carrier frequencies available: 60 kHz, 66 kHz, 72 kHz (the selected carrier frequency in our approach), 76 kHz, 82.05 kHz, 86 kHz, 110 kHz, and 132.5 kHz. Nevertheless, only one carrier can be used at a time. Moreover, the ADD1010 is a multibaud rate device. As a consequence, it can work at 600 bauds, 1200 bauds, 2400 bauds, or 4800 bauds (the selected baud rate in our approach). The master controller can map slave devices of the network, can undertake communication towards slave devices through the PLC transceiver, and can dynamically determine the appropriate amplitude of the emitted signal, thanks to the use of the fuzzy logic controller implemented. The slave controller can actively participate during the initialization phase of the network, can actuate commands coming from the master, and can set the gain amplitude received by the master controller.

3.1. The Fuzzy System

The fuzzy logic controller has been developed through the MATLAB fuzzy logic toolbox, integrated into a circuit diagram implemented in Simulink, as depicted in Figure 3, and finally exported to the power line transceiver, previously shown in Section 3. The fuzzy controller is characterized by two input variables, that is, the master-slave distance and the link quality, and one output variable (the amplitude of the emitted PLC signal). Through the fuzzy logic it is possible to identify the information with a policy based on the sets’ theory [19]. Fuzzy logic is widely adopted, in several application fields, because it can deal with uncertain and vague values such as the interference measured in a communication medium or the link quality. In these cases, an accurate computation may be too complex and it could also be meaningless due to the quick change of the network conditions.

The fuzzy logic introduces the concept of degree of membership of an element of a set. Three membership functions for each input variable (low, medium, and high) and five membership functions for the output variable (very low, low, medium, high, and very high) have been defined. The input variables have been represented through 3 membership functions because it is always seen that a higher number does not determine an improvement of performance [20]. On the contrary, it would increase the computational hardware implementation complexity [21].

With respect to the output variable, we implemented 5 membership functions. They are suitable to represent with sufficient accuracy the real implemented system. In fact, the membership functions have been developed considering these value ranges:(i)(input) master-slave distance [0–100] mt;(ii)(input) link quality [0–7] where 0 represents the lowest quality value while 7 represents the highest;(iii)(output) amplitude of emitted PLC signal [82–123].The first input variable, that is, the master-slave distance, has been set at design time. In this way, the master controller knows where each device is placed. The link quality value, instead, can be obtained reading the VTB BE SOFT register of the ADD1010 that stores the number of errors accumulated in a frame reception using the Viterbi algorithm [22]. The amplitude of the emitted PLC signal, that is, the controlled output, is stored in the Gain Register and can assume values from 0x00 to 0x7B, that correspond to the range 0–123 in DEC format.

We have chosen to vary the amplitude of the emitted PLC signal between 82 and 123 because we measured that, for values lower than 82, the packet loss percentage was too high. Table 1 summarizes the correspondence between the values that can be contained in the Gain Register and their relative Vpp (Volt) values of the sinusoidal modulated FSK signal transmitted into the power grid, upon 50 Hz with carrier frequency equal to 72 kHz (powering embedded system at 12 VDC).

As previously said, the minimum DEC value that the amplitude can assume is 82 since we verified that lower values determine high percentages of packet loss. Figures 4 and 5 show how all input and output variables, respectively, are generically fuzzyfied. The -axis specifies the normalized degree of membership of a variable to the specific membership function; that is, 1 represents the 100% membership to a specific set. Considering a generic variable, containing a range of values from the minimum to the maximum value that the variable itself can assume, each membership function can be represented by a triangular-shaped membership function. The output value is determined through 9 fuzzy rules (Table 2) based on the IF-THEN statement of classic programming languages and following the classical human reasoning. For example, considering rule 2, if the link quality is low and the distance is medium, the amplitude of the emitted PLC signal will be high.

The last step is represented by the defuzzification, which finds a single crisp output value from the solution fuzzy space. The defuzzification is performed using the centre-of-gravity method [23].

4. Performance Evaluation

In order to verify the validity of the proposed approach, we firstly realized a power line infrastructure that consists of a master and 5 slaves in a bus topology. The slaves have been placed at increasing distance with respect to the master (Table 3) over one phase only.

Figure 6 shows the real test-bed scenario realized in laboratory.

The master, before each transmission to a slave device, determines the amplitude of the emitted signal through the fuzzy controller that processes the link quality level and the master-slave distance. The packet sent by the master contains the amplitude value with which it is transmitting. The slave will respond by transmitting with the same amplitude. We carried out 2000 transmissions with polling frequency equal to 1 second. In Figure 7, it is possible to see the comparison made in terms of power consumption. The power consumption was calculated using the active power formula described in where and refer to the rms (root mean square) values of voltage and current and is the phase shift between voltage and current.

The fuzzy logic controller produces power consumption, on average, lower than transmissions done with maximum and medium amplitude (123 and 111 in DEC format, resp.) but higher than transmissions with minimum amplitude (82). This result is however acceptable and reasonable especially considering what gained in terms of TH/WL. In order to measure the TH/WL percentage, we made a comparison between the results obtained by our approach, based on fuzzy logic (dynamic adaptation of the amplitude of the emitted signal), with those obtained by transmitting with fixed amplitude, that is, 82, 111, and 123, respectively, in DEC format. The correspondent Vpp values are described in Table 1. As depicted in Figure 8, the proposed approach allows obtaining better performance because the fuzzy controller dynamically determines the amplitude of the emitted signal, considering real transmission needs according to link quality and the master-slave distance.

When we transmit with low amplitude (82 in DEC format) we measured a lower TH/WL (80%). This is due to the link attenuation that increases with the square of the distance. Most of lost packets are those ones that are sent to/from slaves farther away (80 m and 100 m). By transmitting with high amplitude (123 in DEC format) we obtained a worse result (86%) than the transmission with average amplitude (111 in DEC format) due to the analog to digital converter saturation that occurs when the transmission involves closer devices (Slave 1 or Slave 2). The result obtained through the use of the fuzzy controller (99%) is due to the dynamic adaptation of the amplitude of the emitted signal. The controller, in fact, dynamically responds to disturbances introduced into the network considering, at the same time, the master-slave distances.

The goodness of the proposed approach, skilled to deal with the problem of cross-coupling interference, has been tested by increasing the number of devices (up to 50) in a real three-phase scenario with 3 masters, one for each phase. The devices have been distributed in this way:(i)Slaves S1, S4, S7, S10, S13, S16, S19, S22, S25, S28, S31, S34, S37, S40, S43, S46, and S49 were placed on Phase R;(ii)Slaves S2, S5, S8, S11, S14, S17, S20, S23, S26, S29, S32, S35, S38, S41, S44, S47, and S50 were placed on Phase S;(iii)Slaves S3, S6, S9, S12, S15, S18, S21, S24, S27, S30, S33, S36, S39, S42, S45, and S48 were placed on Phase T.Each phase is completely independent, with exception for the neutral conductor that joins the whole three-phase system. Due to the cross-coupling interference and the neutral wire, each signal transmitted by the Master R over the Phase R can be found on the other two phases with a certain phase shift and with lower amplitude. This disturbance can represent a serious problem; it can generate conflicts and unexpected answers over the network. According to Table 1, the signal transmitted by the Master R is an FSK modulated signal with amplitude:(i)Vpp = 8.56 V, if the Fuzzy Logic Controller output is 123;(ii)Vpp = 7.53 V if the FLC output is 111;(iii)Vpp = 5.82 V if the FLC output is 82.Several measures were carried out.

In Table 4, the Vpp values transmitted by Master R and the Vpp amplitude of the signal received by each slave, located on the three different phases, are shown. As it is possible to see, to transmit with low amplitude determines a reduction of cross-coupling interference and, therefore, a smaller number of conflicts and unexpected responses on the network and a higher TH/WL.

In Figure 9 it is possible to see how, in a network with 50 devices, the TH/WL obtained through the fuzzy controller is 94% while we measured 72%, 80%, and 77% by transmitting with minimum, medium, and maximum amplitude, respectively, by adjusting the transmission power according to the distance and link quality.

Also in this case we carried out 2000 transmissions with 5, 10, and 50 devices, respectively, by transmitting the signal at fixed or variable amplitude according to the fuzzy logic. The results, depicted in Figure 10, demonstrate how the fuzzy controller ensures considerable savings, mainly when the number of devices, connected to the power grid, increases. The use of the fuzzy controller, in a network with 50 devices, determines a reduction of the power consumption of 37.8% and 24.3% compared to the case in which the transmission amplitude is maximum and medium, respectively. By transmitting with maximum amplitude, in fact, the average power consumption measured is 5.1 W while the average power consumption due to transmissions with medium amplitude is 4.6 W. The use of the fuzzy controller allows reducing the average consumption up to 3.7 W.

Finally in Figure 11 a typical transmitted signal on the main grid, FSK modulated, in shown. The measurements were carried out at the output of the isolation transformer. The left side of Figure 11, identified with the letter A, shows our user command “AT*WRFLU001998700000001” sent from the master to the Slave S1. It coincides with the implementation of its first output to duty cycle equal to 70%.

The structure of a typical data packet is shown in Table 5.(i)Command name: AT*WRFLU.(ii)Recipient identifier: 001 (first slave ID).(iii)Sender identifier: 998 (ID master controller).(iv)Output duty cycle to implement: percentage for 4 channels available. In particular, it will contain 4 parameters, one for each channel [70]-[00]-[00]-[00] (70% output channel 1, 0% other outputs).(v)Write flash command: it specifies whether or not to write the received command in flash (1 means true and 0 means false).

5. Conclusions

In recent years, power line communications (PLCs) have been used in several fields and therefore several researchers have investigated different aspects, in order to optimize the use and the performance depending on the specific environment. In this work, we developed a fuzzy logic controller, into the System on Chip ADD1010, with the main aim to dynamically manage the amplitude with which each device transmits. The fuzzy controller, at first developed in MATLAB/Simulink, was subsequently inserted into the master device (C-source code generated through the embedded coder integrated in MATLAB). The obtained results are very promising. The TH/WL calculated through the proposed approach (99% in the first scenario and 94% in the second scenario with 50 devices) demonstrate that almost all of the packets sent have been successfully received by their destinations, despite the problems of cross-coupling interference on a three-phase system. Even in terms of power consumption, the results are convincing. On average, the controller determines a lower consumption than the standard transmission with both maximum and average amplitude. As reported in the previous section, the fuzzy controller works better by increasing the number of network devices. In the case of 50 devices, in fact, the average power consumption reduction is 37.8% with respect to transmissions with maximum amplitude and 24.3% with respect to transmissions with medium amplitude. Clearly, if we consider transmissions with minimum amplitude, the power consumption produced by the approach here proposed is higher. This result is justified by a more effectively and efficiently management of the packets sent by the devices, thanks to the use of the fuzzy controller implemented in the master controller.

Conflict of Interests

The authors declare that there is no conflict of interests regarding the publication of this paper.