Next Article in Journal
Testing Non-Linear Nexus between Service Sector and CO2 Emissions in Pakistan
Next Article in Special Issue
Performance Evaluation of Broadcast Domain on the Lightweight Multi-Fog Blockchain Platform for a LoRa-Based Internet of Things Network
Previous Article in Journal
KOH-doped Porous Polybenzimidazole Membranes for Solid Alkaline Fuel Cells
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Performance Optimization LoRa Network by Artificial Bee Colony Algorithm to Determination of the Load Profiles in Dwellings

Department of Electrical Engineering, University of Jaen, 23071 EPS Jaen, Spain
*
Author to whom correspondence should be addressed.
Energies 2020, 13(3), 517; https://doi.org/10.3390/en13030517
Submission received: 16 December 2019 / Revised: 13 January 2020 / Accepted: 17 January 2020 / Published: 21 January 2020
(This article belongs to the Special Issue Advanced Technologies in Smart Cities)

Abstract

:
This paper presents a system to improve the performance of the Long Range (LoRa) network using an algorithm derived from the artificial bee colony (ABC), which obtains a minimum packet lost rate (PLR) in the LoRa network and allows to more accurately determine load profiles of dwellings, with smaller a time measurement and less data transmission. The developed algorithm calculates the configuration parameters of the LoRa network, monitoring in real time the data traffic, and is implemented in gateway LoRa network monitor (GLNM). Intelligent measurement equipment has been developed to determine the dwelling load profiles. This energy measurement device for dwelling (EMDD) measures the variables and consumption of electricity in each home with measurement times that can be configured. This research also develops the GLNM gateway, which monitors and receives data from the EMDDs installed and uploads them to the cloud using Firebase. This developed system allows to perform demand forecasting studies, analysis of home consumption, optimization of electricity tariffs, etc., applied to smart grids.

Graphical Abstract

1. Introduction

Smart meters (SMs) allow households to see their electricity consumption in real time and track energy consumption. This information of the consumption of the houses, allows householders to understand the activities of greater consumption and to be able to modify their patterns of consumption, and implement behaviours to reduce their electricity bill. In addition, smart meters facilitate the use of time-of-use rates, which can help to reduce peak demand and facilitate daily consumption.
SMs installed in dwellings are usually owned by the utility company. In this sense, access to information may be restricted to the company’s own communications network, generally through the power line wave introduced in the electrical signal. SMs may not have a communications port (optical, serial, or USB), and it is not possible to extract information from it.
On the other hand, the access times to the data of the SMs are not usually less than 15 s. To obtain real-time load profiles with greater accuracy, it is necessary to perform measurements of electrical variables with lower data acquisition intervals.
The installation of SMs in dwellings has to be done with the minimum interference for the users. That is the reason why the use of wireless technologies for sending and receiving data is very appropriate. Among the existing wireless technologies, low consumption technologies are especially important. In this research, the LoRa Low Power Wide Area Network (LPWAN) network has been chosen, with transmission distances of up to 10 km.
Most LoRa LPWAN networks work with fixed parameters, which does not allow the network to adapt to the optimal configuration. Finding the optimal solution requires a sufficiently fast computing algorithm. The ABC algorithm is perfectly adapted to solve this type of optimization problems.
The main contribution of this paper is the design of a measurement system that allows obtaining load profiles in dwellings using a LoRa LPWAN network and adapting the network configuration parameters in real time by using the ABC algorithm. This research designs two devices, the first one (EMDD) is installed in the dwelling to be monitored, and it can take and send data every 0.5 s with an accuracy of 1%. The second device (GLNM) is responsible for receiving the electrical data measured by the installed EMDDs and uploading them to the cloud using Firebase. GLNM has implemented the ABC algorithm for the optimization of the LoRa network, with minimum optimal level of PLR.
This paper is structured as follows. Section 2 discusses related work. Section 3 presents the diverse requirements the system and describes the LoRa network optimized using ABC algorithm. Subsequently, Section 4 presents the details of EMDD systems to obtain load profile and improve the LoRA network and GLNM to supervisor the LoRa network. Section 5 details the LoRa test done and parameters adopted in this paper, also presents the performance of the proposed scheme in terms of the obtain consumption energy dwellings.

2. Related Work

The ABC algorithm is an optimization algorithm based on a particular intelligent behaviour of honeybee swarms, this algorithm was used in multi-dimensional numeric problems. Karaboga et al. [1] compared the performance of the ABC algorithm with that of differential evolution, particle swarm optimization, and the evolutionary algorithm. In this sense, Karaboga et al. [2] used data clustering on benchmark problems and to assess the performance of the ABC algorithm vs. particle swarm optimization algorithm. A modified ABC algorithm for constrained optimization problems was presented by Karaboga et al. [3] for a set of constrained test problems. Other evolutionary algorithms, such as TLBO, were studied for the optimization of the power factor (PF) in [4].
The ABC algorithm has been used for the determination of optimal location and sizing of DG units using the multi objective performance index for enhancing the voltage stability of the radial distribution system in [5].
Other algorithms together with ABC have been used, such as the hybrid algorithm ACO–ABC–HS, which combines the framework of ant colony optimization (ACO), artificial bee colony (ABC) and harmonic systems (HS) for solving the problem of economic dispatch for a multi-generator system in [6]. In this sense, Gaidhane et al. [7] developed the grey wolf optimizer and ABC algorithm to inherit their advantages and overcome their drawbacks.
Also, the ABC algorithm is used to find the optimum PID controller parameters. Naidua et al. [8] presented an extensive study on the application of the ABC algorithm for load frequency control in a multi-area power system with multiple interconnected generators.
Juneja et al. [9] developed the best second-order model for a fifteenth order microgrid system in a grid-tied mode such that it closely replicates the original system. Also, in hybrid systems, the optimal energy scheduling in an independent MG consisting of wind turbines, photovoltaics, diesel engine generators, and BSS with ABC was discussed in [10]. To determine the optimal sizing and cost reduction of grid-integrated renewable energy resources using an artificial bee colony (ABC) algorithm was treated in [11].
LoRa technology has been analysed by different authors. Ali Ertürk [12] analysed LoRaWAN performance with an experimental TestBed environment by considering communication range, data rates, packet losses, and energy consumption for indoor usage. Also, Petajajarvi et al. [13] analysed the particularities of LoRa technology and the scalability of the LoRa wide-area network. The measurement data collected from a citywide LoRa deployment in order to characterize the throughput and coverage of LoRa was developed in [14]. In this sense, Hoeller et al. [15] proposed to employ message replication and gateways with multiple receive antennas to achieve, respectively, time and spatial diversity.
The possibility to optimize the performance of the LoRaWAN technology was demonstrated in [16]. In this sense, Taha et al. [17] discussed an overview of LoRaWAN, its architecture, how it works, implementation, challenges and obstacles, market status, and the design methodology of the main block sets used in the LoRaWAN transceiver. Also, Sandoval et al. [18] presented the first mathematical model of LoRa nodes whose analysis helps to fully describe the operational nature of long-range IoT devices. Finally, Cano-Ortega et al. [19] monitored the efficiency and operating conditions of IM using LoRa networks. Table 1 shows the results of the review:
In this paper, the authors propose a system to improve the efficiency of LoRa networks using the ABC algorithm to obtain load profiles of dwellings in real time. Therefore, the authors present a number of novel contributions over our previous work and the state-of-the-art:
-
Design of our own system to measurement the electrical variables and to obtain the load profile of dwellings using EMDD and GLNM monitors and a configuration of the LoRa network to reduce PLR.
-
EMDD and GLNM are low cost and open source, and evaluated successfully.
-
Implementation of an ABC algorithm that optimizes the LoRa network to minimize PLR.
The limitations of this research are as follows:
-
The maximum range of the LoRa network is 10 km. This research has been developed in a city, wherein the maximum range is 5 km, due to the high density of buildings.
-
The maximum number of devices for each GLNM is 300 EMDDs. Therefore, it is necessary to install one GLNM device for every 300 dwellings.
-
EMDD cannot send data with cadences lower than 0.5 s.
-
The accuracy of EMDD is 1%.
-
The maximum power measured is 23 kW.

3. Theoretical Background

Figure 1 shows the LoRa network diagram with n EMDDs installed in the different dwellings, either in individual dwellings or buildings. These EMDDs send the measured data through a LoRa network to GLMN that concentrates the reception of information, processes the messages with the measurements, and uploads them to Firebase, using a Wi-Fi network. On the other hand, GLNM also executes the ABC algorithm if necessary when receiving a message from some EMDD to obtain the new optimal configuration of the LoRa network. Finally, the measured data are available in computers, smartphones, or tablet for viewing or processing in real time.

3.1. Electrical Variables Measurement

The device measures the electrical variables (v, i, and p), while both the power factor (PF) and the reactive power q are calculated. Sánchez-Sutil et al. [24] developed the evaluation and calibration of a smart meter to be used in dwellings.
The variable power factor PF can be expressed as the ratio of the average active power pavr to the product of the R.M.S. values of voltage and current, respectively [24]:
PF = p avr v r . m . s · i r . m . s
For sinusoidal voltage and current waveforms, PF reduces to cos(φ). Finally, the R.M.S. reactive power q is given by [24]:
q r . m . s = v r . m . s · i r . m . s · sin ( arccos ( φ ) )
The active and reactive energy is obtained from the RMS values, as shown in the Equations (3) and (4):
AE ( Δ t ) = t Δ t p r . m . s ( t ) · dt
RE ( Δ t ) = t Δ t q r . m . s ( t ) · dt

3.2. LoRa

Several parameters are available for the customization of the LoRa modulation: (i) bandwidth (BW); (ii) spreading factor (SF); (iii) code rate (CR). LoRa uses an unconventional definition of the spreading factor as the logarithm, in base 2, of the number of chirps per symbol. These parameters influence the effective bitrate of the modulation, its resistance to interference noise, and its ease of decoding. Noreen et al. [42] provided in depth analysis of the impact of these three parameters on the data rate and time on air, and Phung et al. [43] provided an in-depth analysis and assessment of LoRaWAN functional components: its capabilities (total traffic load, packet delivery quality) versus its efficiency (collision and frequency usage).
The papers [44,45,46,47] analysed the different configuration parameters: the carrier frequency (CF), SF, BW, and CR in a LoRA network. The combination of these parameters provides different energy values and transmission ranges:
CF: is the centre frequency used for the transmission band. For the transceiver, it is in the range of 433 MHz in Asia, 868 MHz in Europe, and 915 MHz in North America.
SF: is the number of chips per symbol. Its value is an integer between 7 and 12. The greater value of SF, the more capability the receiver has to move away the noise from the signal.
BW: represents the range of frequencies in the transmission band. It can only be chosen among three options: 125, 250, or 500 kHz.
CR: The coding rate expression is CR = 4/(4 + n), n is from 1 to 4. This denotes that every four useful bits are encoded by 5, 6, 7, or 8 transmission bits. The smaller the coding rate is, the higher the time on air is to transmit data.
The nominal bit-rate (in bits per second) is obtained taking into account these parameters. Moreover, the expression of the bit-rate is given in Equation (5) [44,45]:
R b = SF × BW 2 SF × CR
t sym = 2 SF BW
where tsym refers to the duration (in seconds) of a symbol and depends on SF and BW.
The payload symbol is calculated prior to the time on air (or packet duration). For a given payload noted PL (in bytes), a spreading factor SF, and a coding rate CR, the number of symbols NPHY used to transmit the payload can be calculated in Equation (7). CRC (cyclic redundancy check) indicates the presence (value 1) or not (value 0) of the CRC field in the physical message and DE indicates if the mechanism to prevent issues about the clock drift of the crystal reference oscillator is used (value 1 for SF12 and SF11, 0 for others) [44,45].
N PHY = 8 + max [ ceil ( 28 + 8 × PL + 16 × CRC 4 × SF 4 × ( SF 2 × DE ) ) × ( CR + 4 ) ,   0 ]
Equations (8) and (9) represent how these two terms have been calculated, where Np is the number of symbols used by the radio transceiver as the physical preamble of the message [44,45].
t p = t sym × N p + 4.25
t PHY = t sym × N PHY
The actual time on the air for a packet can be defined as the duration of uplink and downlink transmissions, where tpk depends on the parameters of LoRa modulation such as SF, BW, and CR and can be expressed as the sum of the time needed to transmit the preamble and the physical message per Equation (10) [44,45]:
t pk = t p + t PHY

3.3. Algorithm ABC

In the ABC algorithm, the artificial bee colony includes three groups of bees: employed bees, observers and explorers [1,2,3]. A bee that waits in the dance area to make the decision to choose a food source is named an observer and one that goes to the food source visited by it before is named an employee bee. The other type of bee is the explorer bee, which performs random searches to discover new sources. The position of a food source offers a possible solution to the optimization problem and the nectar amount from a food source corresponds to the quality of the associated solution, determined by Equation (11) [2,3]:
fitness ( i ) = 1 1 + f ( i )
An artificial observer bee selects a food source as a function of the probability value associated with that food source, p(i), calculated by the following Expression (5) [2,3]:
p ( i ) = fitness ( i ) i = 1 n fitness ( i )
where n is the number of food sources equal to the number of employed bees, and fitness(i) is the fitness of the solution given in Equation (15) which is inversely proportional to the f(i) given in Equation (12) where f(i) is the optimization function of the problem.
In order to produce a candidate food position from the old one in memory, the ABC uses the following Expression (13) [2,3]:
v ij = z ij + ij · ( z ij z kj )
where k ∈ {1, 2, …, n} and j ∈ {1, 2, …, D} are randomly chosen indexes. Although k is determined randomly, it has to be different from i. ϕi,j is a random number between [0, 1]. It controls the production of neighbor food sources around zi,j and represents the comparison of two food positions visible to a bee.
Assume that the abandoned source is zi and j ∈ {1, 2, …, D}, then the scout discovers a new food source to be replaced with zi. This operation can be defined as in (14) [2,3]:
z i j = z min j + rand ( 0 , 1 ) · ( z max j z max i )
There are three control parameters in the ABC: the number of food sources, which is equal to the number of employed or onlooker bees (n) and the value of limit for the maximum cycle number (Nmaxcycle). Figure 2 shows the flow chart of the ABC algorithm.

Problem Formulation

The objective of the problem is the optimization of the LoRa network, so that the PLR is minimized. The LoRa network has three configuration parameters (BW, SF, and CR), which have a decisive influence on the PLR reduction. In addition, these parameters represent the constraints of the problem.
BW { 125 ,   250 ,   500 }
SF { 7 ,   8 ,   9 ,   10 ,   11 , 12 }
CR { 4 5 ,   4 6 ,   4 7 ,   4 8 }
The optimization function used to obtain the minimization of PRL in real time is given by
f ( i ) = min   PLR [ BW ( i ) ,   SF ( i ) ,   CR ( i ) ]
Among the possible solutions, the algorithm selects the highest possible BW, to ensure a higher transmission speed. As can be seen in Equation (11):
BW ( i ) = BW max
where BWmax is the maximum possible BW value.
After BW is selected, if there is more than a minimum, the algorithm must find the highest SF in order to obtain a signal with less noise. As shown in Equation (12):
SF ( i ) = SF max
where SFmax is the maximum possible SF value.
Selected both BW and SF, if there is more than a minimum, the algorithm must search for the highest CR to have a higher transmission speed.
CR ( i ) = CR max
where CRmax is the maximum possible value CR.
To define the population (pop), where n is the number of variables, three in this problem, and p the number of possible variations, which in our problem is 72. Each state shows the combination of BW, SF, and CR.
pop = [ X 1 , 1 X 1 , n X p , 1 X p , n ]

4. Design Prototype

4.1. Hardware

4.1.1. EMDD Design

This research has performed the development of EMDD from the initial design phase to the construction of a final prototype. The objective is to obtain a prototype to provide load profiles in dwellings, by measuring electrical variables with sensors. The communication is done through the LoRa LPWAN network.
Moreover, the core of EMDD is the AMR3 (Arduino Mega Rev 3) development board [48], together with DLGS (Dragino LoRa GPS Shield) [49] for LoRa network access and GPS positioning. The EMDD design is modular, which allows for the quick and easy replacement of components of the system that are damaged, without the rest of the device being affected or out of service, making the system scalable.
Figure 3 shows the EMDD block diagram, where the device components and the relationship between them and the main AMR3 component can be seen.
To measure electrical variables (v, i, and p), EMDD works together with the PZEM meter (PZEM-004t) [50]. PZEM communication with AMR3 is through Serial1 port. AMR3 is supplied through a source that converts the 230 V AC mains voltage into 7–12 V DC accepted by AMR3. The other components used in the system (DLS and PZEM) are supplied through AMR3. Figure 4 shows the wiring diagram for EMDD.
Table 2 shows the budget of the components used to build EMDD. Due to its low cost, it is ideal for use in dwellings monitoring.

4.1.2. GLNM Design

This research has also developed a device that works as a gateway, to which is added the feature of monitoring the LoRa network in order to optimize data traffic on the network and minimize PLR. Inside this device is installed the proposed ABC algorithm, responsible for network optimization.
The microcontroller chosen for GLNM is AMR3 [48], which has four serial ports. Two serial ports are needed: one to communicate with the GPS receiver in DLGS [49] and another to send data to place WMP [51] and upload the information to the cloud using the Firebase [52] service.
The design of GLNM is modular, which allows for the quick and easy replacement of system components that are damaged, without the rest of the device being affected or out of service, making the system scalable. Figure 5 shows the GLNM block diagram.
AMR3 and WMP are supplied from a source that converts the mains voltage of 230 V AC to 7–12 V DC. DLGS is powered through AUR3. Figure 6 shows the wiring diagram for GLNM.
Table 3 shows the budget of the components used in GLNM.

4.1.3. Components

1. Microcontroller
A microcontroller is a small computer implemented in an integrated circuit, containing at least one processor, memory, and inputs/outputs that can be programmed using various applications with connected peripherals. This component, in addition to peripherals, is widely used in control and process applications in industrial and residential environments.
In recent years, there has been a significant advance in electronics, which has led to the development of very powerful hardware at low cost, which can be used in devices such as those developed in this paper.
EMDD has been used to build the development board AMR3 [48] based on ATmega2560. To program EMDD, the Arduino open-source platform is used.
EMDD uses the Serial1 port of AMR3 to communicate with PZEM, because the Serial port is used for programming and debugging the program code. AMR3 has four serial ports available.
To implement GLNM AMR3 based on ATmega328P is used as the system kernel. GLNM uses the Serial port for programming and monitoring the operation of the equipment, Serial1 for communication with GPS and Serial2 to send data to WMP.
2. LoRa wireless communication
There are several components of different brands in the market that allow the development of wireless systems based on LoRa, among which it is worth mentioning: (i) Arduino MKR WAN 1300 [53]; (ii) Monteino [54]; (iii) Lopy4 [55]; (iv) Libelium [56]; (v) Dragino [57]. Each of these components is based on different chips that implement LoRa technology. The components used are:
  • (i) uses the CMWX1ZZABZ chip [58] of the Murata brand.
  • (ii) uses the HOPERF chip RFM95/96/97/98 [59].
  • (iii) and (iv) implement the Semtech SX1276/SX1278 [60] chip.
  • (v) is based on the SX1272 [61] chip of the Semtech brand.
As can be seen, the various platforms have similar features. The selection of the platform to be integrated in EMDD depends on characteristics and added values that improve the performance of the final system.
In this sense, EMDD uses Dragino, since it can be integrated with AMR3 by a shield. The integration with the Arduino family brings great advantages due to the versatility offered by this platform, with a multitude of components that complement the LoRa LPWAN network. The LoRa family of components from the manufacturer Dragino offer a complete solution.
DLGS can be configured with different transmission frequencies (BW), CR, and SF, to adapt to data transmission with LoRa protocol over long distances. This feature makes the system highly flexible and usable. In addition to the functionalities of access to the LoRa network, DLGS uses a global positioning system that allows the device to be located where it is installed. The characteristics of DLGS are exposed in [49].
DLGS uses the LoRa SX1276/SX1278 chip as the core of the LoRa transmission system. This microchip is designed for professional environments to integrate sensor networks, such as irrigation systems, smart cities and smart homes, smart meters, smart phone detection, building and industrial automation, etc., with minimum energy consumption.
3. Electrical power meter
EMDD reads the electrical variables (v, i, and p). To measure these variables, sensors with different measurement techniques are available on the market.
The techniques used for voltage measurement are several, among which it is worth mentioning: (i) 230/12 or 24 V transformer, AC/DC rectifier and voltage divider; (ii) 230/24 V transformer, AC/DC rectifier and FZ0430 [62] meter; (iii) ZMPT101b [63] voltage transformer from 230 to 5 V.
As for current sensors, the most commonly used techniques are measurement with Hall effect sensors and current transformers. Another fundamental aspect is whether the sensor is invasive or non-invasive, the former need to modify the installation where the measurement is made, and the latter do not need to modify the installation. ACS712 [64] and ACS714 are two examples of invasive sensors, in contrast, the STC-013 [65] sensor is an example of a non-invasive sensor.
The sensors described above measure instantaneous values, and additional calculations are required to obtain the RMS values. To obtain RMS values without additional calculations, the PZEM-004t [50] sensor can be used to obtain the electrical variables v, i, and p in a single sensor, so it has been used as a measurement sensor for electrical variables in this investigation.

4.2. Software

4.2.1. EMDD Program

The chosen microcontroller will be responsible for executing the program for the measurement of electrical variables and interaction with the LoRa LPWAN network.
In the first place, EMDD must (i) start Serial1 for communication with PZEM; (ii) start PZEM sensor; (ii) start DLGS for access to LoRa network. The tasks described above are only performed when the device is connected or reset.
Once the device has been started, the following tasks are performed cyclically while the device is connected: (i) read electrical variables from the PZEM sensor; (ii) send the measurements made to the LoRa network; (iii) read data from the LoRa network while waiting for the confirmation of arrival of the data sent.
Once the data have been sent to the network, EMDD waits for confirmation. If no response is received in a maximum time defined as a parameter of the LoRa network, EMDD must send a data loss message to GLNM. In this situation, GLNM must run the ABC algorithm to determine an optimal new network configuration that matches the system to the best possible performance. Figure 7 shows the flowchart for EMDD.

4.2.2. GLNM Program

First, GLNM performs the initialization of DLGS for access to the LoRa network, and the GPS positioning system will only perform the initiation when the device is connected, or a reset is performed.
Once the initialization tasks have been completed, GLNM must perform a series of processes to ensure the correct functioning of the system. The process starts with the reading of data from the LoRa network. If the message received contains electrical measurement data, these data are sent directly to Firebase [52]. On the other hand, if the received message is a packet loss message, the proposed ABC algorithm is executed in order to find an optimal network configuration and send the new configuration parameters to all connected EMDDs. Figure 8 shows the flowchart for GLNM.

4.2.3. Cloud Store

LoRa devices, including DLGS, can access IoT and cloud computing using gateways. The gateways can be configured with different communication protocols. On the other hand, there are a wide variety of services for processing data in the cloud.
Among the many options available, Firebase [52] has been chosen in this research as a platform for integrating data from the different EMDDs, and allows the integration of data with a multitude of programming and integration possibilities, making it possible to achieve any configuration required for the application to be performed, so that the data is available on a multitude of devices (computers, smartphones, etc.). Firebase has paid and free versions that mean the user can adapt to the profile that best suits the needs of service.

5. Results

The authors have studied the performance of three dwellings to test the functioning of the system proposed in this paper. GLNM is located on the terrace of the Higher Polytechnic School of Jaen de Jaen. The dwellings are located in Jaen (Spain), with different distances to GLNM. The different locations make it possible to evaluate the performance of the network, in order to perform PLR measurement tests with the different possible combinations of BW, SF and CR.

5.1. Dwellings Location

The dwellings were chosen to have different typologies that allow different load profiles to be studied. This way, you have a flat and a single-family dwelling. Table 4 shows a summary of the characteristics of dwellings.
Table 5 contains geolocation data referring to zone 30 of the different dwellings and GLNM. For a better visualization, Figure 9 shows the position of each of the elements that participate in the test.

5.2. LoRa

In order to perform the Received Signal Strength Indicator (RSSI) and PLR measurement test, measurements have been made for each dwelling with the 72 possible combinations of parameters.
In each of the combinations, 4320 packages have been sent, which corresponds to 6 h of duration with one package every 5 s. The size of the payload used is 31 bytes, which have the following content: (i) 4 bytes for the EMDD number; (ii) 4 bytes for the voltage; (iii) 4 bytes for the current; (iv) 4 bytes for the active energy; (v) 4 bytes for the reactive energy; (vi) 11 bytes for the GPS position. Under the conditions defined above, an exhaustive test has been carried out in each of the dwellings studied, as described in Section 5.1, in order to make comparisons.
The data represented for the three dwellings are reflected in Figure 10, Figure 11 and Figure 12. These data have been represented as a function of parameter BW modifying CR and SF, obtaining the graphs of PLR (ratio to be minimized) and RSSI.
The analysis in Figure 10a indicates that, for SF less than 10, a very small PLR is obtained with any combination of CR. It is also possible to observe that, for SF 11 and 12, the PLR increases until reaching values of 100% PLR, which indicates that it is not recommended for this frequency. Of the combinations that are produced with BW 125 kHz, the one that produces the minimum is that of SF 9 and CR of 4/8, and a PLR of 0.0238%.
The frequency of 250 kHz offers similar results, with the exception that good results are obtained from PLR up to SF of 11, reaching 100% with SF 12 that do not make it recommendable to use in conjunction with this frequency. The minimum is 0% for SF of 8 and CR of 4/8.
Finally, the 500 kHz frequency offers a good distribution of PLR in all the analysed combinations, with maximum values below 4.5% e PLR and a minimum of 0.1389% with SF of 11 and a CR 4/5.
In support of the analysis done, the statistical values (mean µ and standard deviation σ) were obtained for the entire test range performed in dwelling #1. Table 6 shows the results obtained. It can be observed that the values obtained for PLR confirm that the best frequency for this dwelling is 500 kHz. The average signal strength is similar for the three transmission frequencies around −93 dBm. Table 7 shows the sensitivity of RSSI by changing the parameters BW, SF, and CR for dwelling #1.
The minimum PLR for dwelling #2 with the frequency of 125 kHz 0.0464%, which is obtained with SF of 8 and CR of 4/8. The distribution of PLR is maintained with good ratios until SF of 10, above this value the PLR increases notably reaching values of 100%. Therefore, combinations of SF above 11 are not recommended in this case.
As for the 250 kHz frequency, a minimum PLR of 0% is obtained with SF of 11 and CR of 4/8. For this frequency, only the SF of 12 produces significant losses, while the remaining combinations can be considered as acceptable to work with this frequency.
The 500 kHz frequency has a very stable distribution and only presents a small distortion that reaches PLR of 35% for SF of 8 and CR of 5. A minimum of 0.0694% is obtained for SF 11 and CR of 4/8.
The analysis of the statistical data for dwelling #2 confirms that the best frequency for this dwelling is 500 kHz. The signal strength remains more or less constant with values below −92 dBm. Table 8 and Table 9 shows the statistical results and the sensitivity of RSSI by changing the parameters BW, SF, and CR for dwelling #2 respectively.
The analysis of the data for dwelling #3 with the frequency of 125 kHz remains stable around 0% for SF less than or equal to 10 with all CR, for major SF there are notable increases in PLR reaching losses of 100%. The minimum on this occasion is 0.3704%, with SF 10 and CR 4/8.
If we pass to the frequency of 250 kHz, it is possible to observe that the minimum is achieved with SF of 8 and CR of 4/6 in 0%. As can be seen, the PLR increases in this frequency, reaching a maximum of 100% with SF of 12 and the whole range of CR.
Finally, there is the analysis of dwelling #3 remains stable for almost all possibilities of SF and CR, with values between 0 and 5% for all high values of SF and CR. The minimum on this occasion is 0.5767% with SF of 8 and CR of 4/7.
The statistical calculations realized for dwelling #3 are shown in Table 10, with a minimum value of 11.3068% for 500 kHz. Table 11 reflects the data obtained for the sensitivity of the LoRa receiver.
As a final summary, for BW 125 kHz, PLRs up to SF 10 with any CR value are acceptable. With the transmission frequency of 250 kHz, PLR are produced with acceptable values with SF equal to or less than 11 and any CR. As for the 500 kHz frequency, low PLR rates occur, and the only problems detected refer to 12 SF and 4/8 CR.
On the other hand, the greater the transmission distance, the better the results with the lower frequency, increasing this frequency as it approaches the transmission point, in order to obtain higher speeds in the reception and sending of information. It is possible to observe that, for dwelling #3, the closest to the 125 kHz gateway and BW, SF above 9 leads to a total loss of packets, which confirms that for shorter distances the 125 kHz frequency is less adequate. In this sense, and also for dwelling #3 and 500 kHz frequency, stable and small values are obtained, which corroborates that this frequency is adequate for shorter distances.

ABC Algorithm Test

It is necessary to check the functioning of the ABC algorithm, with the three dwellings working at the same time. It should be remembered that the optimization is performed on the entire system, so the algorithm optimization result will be applied to the parameters of the LoRa network and all connected devices.
The test has been performed during 6 h sending information of measures realized every 5 s. Figure 13 shows the optimization result with three parameter changes in the 6 h of operation, which adjusts the network parameters.
It can be observed that the dwelling with the lowest PLR is #1, and the one with the highest PLR is #3, which in no case exceeds 10%, which is quite a small value and acceptable for a LoRa network.

5.3. Measurement of Electrical Variables

In order to construct the load profiles of dwellings, it is first necessary to measure the electrical variables necessary to obtain the active and reactive energies. The measurements are made with the PZEM meter, which obtains the RMS values v, i, and p. Subsequently, calculations are made to obtain the values of q, PF, as well as active and reactive energy.
The measurements are made every 5 s, this time can be changed to adapt to the monitoring needing in each installation. Therefore, the system adapts to the configuration required by each user.
Figure 14a,c,e show the voltage and current for dwellings #1, #2, and #3. Figure 14b,c,e illustrate the active and reactive powers for dwellings #1, #2 and #3. The data correspond to 14 days of data collection, sent through the LoRa LPWAN network using the proposed ABC algorithm.

5.4. Daily Load Profiles

The objective of EMDD is to obtain daily load profiles. Therefore, this section includes the results obtained for daily load profiles with hourly distribution for the three dwellings under study.
Figure 15 shows the hourly load profiles of active and reactive energy of each dwelling in the four seasons of the year. Data collection over extended periods of at least one year allows for a fairly accurate characterization of user load profiles.
With the information from the load profiles, it is possible to perform studies of energy efficiency, both in homes and in the electrical network, demand forecasting, smart grids, distributed generation, use of renewable energies, etc.
Working with new smart meters, as is the case with EMDD, helps in a very efficient and interesting way to obtain load profiles in real time. With the information gathered, a large window of work is opened that will allow electrical engineering to make significant advances through the analysis of results, studies, simulations, or any other type of use of the data. The uploading of data in real time to the cloud contributes significantly to these advances and to making the current electricity grids more intelligent and with new capacities that allow for a significant improvement.
In order to be able to make a time comparison within the same graph for each dwelling and season of the year, Figure 16 is constructed, which shows the performance of each dwelling at each time of the year. It is possible to observe that in dwelling #1 the maximum consumptions take place in summer. Dwelling #2 has the highest consumptions in winter, however dwelling #3 has similar consumptions at all times of the year.
In addition to the hourly load profiles, it is especially interesting to perform any study in real time to obtain the energy curves. This possibility can also be obtained with the use of EMDD working in a LoRa network optimized with ABC. In this sense, Figure 17 shows the data obtained for one day of each season of the year, the data shown correspond to the active and reactive energy.
Another added feature of EMDD is the realization of daily curves of accumulated energy consumption. These curves also make it possible to study the consumption produced in each home and the hours of maximum demand. The study of these curves offers great possibilities of analysis: one of them is to try to distribute the daily consumption so that the demand of the dwelling is stabilized in the hours where the energy has a lower price. Figure 18 shows the daily measured energy.
To finish with the results section, a comparison is made of the active power in relation to the active consumption at the same instant, both punctually and accumulated over time. This comparison makes it possible to evaluate the reactive power demand and try to reduce the consumption of reactive energy as much as possible, so that the electrical installation is much more efficient, and therefore more profitable for the user and helps to protect the environment by reducing CO2 emissions.
Figure 19 shows excessive reactive power consumption for dwelling #2 in winter. This consumption should be corrected by means of a study of the connected equipment and the energy efficiency that they possess. This would allow to have a more efficient and friendly installation with respect to the environment.
In the rest of situations and seasons of the year, reactive consumption is around 30%. An energy study could be performed with the data provided by EMDD. This study would allow to reduce the consumption of reactive energy to the owner of the housing that would result in a better operation of its installation, reduction of reactive energy that would imply a smaller generation, and a greater efficiency in the electrical network, as well as a reduction of CO2 emitted to the atmosphere.
The analysis performed in this section is just one example of the possibilities offered by the use of the smart meter EMDD. By making an appropriate and planned use of the characteristics of the equipment, numerous advantages can be obtained. Among the advantages obtained with EMDD, it is important to highlight:
  • Analysis and forecast of the demand.
  • Adjustment of the electricity bill.
  • Power factor improvement.
  • Energy efficiency and reduction of electricity consumption.

6. Conclusions

This research develops a system for the determination of load profiles in dwellings using a LoRa LPWAN network to perform data transmission. It also implements an algorithm based on ABC, which optimizes the configuration parameters of the LoRa network to obtain a PLR that improves the efficiency of the network.
The algorithm has been implemented in GLNM, a device that monitors the network and executes the ABC algorithm to adapt the network configuration when the PLR is increased in real time. GLNM is responsible for receiving data from installed EMDDs and uploading it to the cloud using Firebase.
EMDD is a smart meter developed to obtain load profiles in homes with configurable measurement times. The possibilities of EMDD measurement include hourly load profiles, measurements of electrical variables, curves of active and reactive energy in real time, as well as curves of active and reactive energy accumulated daily. The features of EMDD facilitate studies on demand forecasting, energy optimization of the dwelling, improvement of electricity billing, etc.
The results obtained by applying the ABC algorithm to each house individually have a PLR of 11.1% for dwelling #1, 3.23% for dwelling #2, and 11.03% for dwelling #3. Subsequently, a study has been realized for the dwellings working together, obtaining PLR values lower than 10%. PRL are very reduced, which guarantees the reliability of the system made with EMDD and GLNM devices. Meanwhile, with the application of the ABC algorithm, the optimal configuration is obtained in real time. EMDD is designed to measure up to 23 kW with an accuracy of less than 1%.
With a PLR less than 10%, using the ABC algorithm, hourly load profiles have been determined in different seasons of the year for a measurement interval of 5 s. Also, the study performed in the three dwellings over 14 days allows to verify the reliability of EMDD. Graphs (electrical variables, active energy, and instantaneous reactive and daily accumulated energy) obtained with the additional characteristics of EMDD have been included.
The consumption of reactive power versus active power has been obtained, indicating the relationship between these powers and allows a study to reduce reactive consumption and achieve more efficient dwellings.

Author Contributions

All authors have contributed actively and fundamentally to the development of the presented work. A.C.-O. and F.S.-S. have developed the hardware and software design, in addition to the programming the prototype. The writing of the paper has been done by each author attending to their corresponding part of the development of the work. All authors have read and agree to the published version of the manuscript.

Funding

This research received no external funding.

Acknowledgments

The authors would like to thank the Department of Electrical Engineering of the University of Jaen, for allowing the use of their laboratories and material in the development of this research.

Conflicts of Interest

The authors declare no conflict of interest.

Abbreviations

The following abbreviations are used in this manuscript:
AMR3Arduino Mega R3
AUR3Arduino Uno R3
AEActive energy
BWBandwidth
CFCarrier Frequency
CRCode Rate
DNumber of Random Indexes
DLGSDragino LoRa Shield
EMDDEnergy Measurement Device for Dwelling
GLNMGateway LoRa Network Monitor
IoT Internet of Things
LoRaLong Range
LoRaWANLong Range Wide Area Network
LPWANLow Power Wide Area Network
MQTTMessage Queue Telemetry Transport
pNumber of possible solutions
PActive power
popPopulation
PLPayLoad
PLRPacket Lost Rate
RSSIReceived Signal Strength Indicator
RMSRoot Means Square
SFSpreading Factor
SMSmart Meter
tTime
ToATime on Air
WNSWireless Sensor Networks
Greek symbols
µmean
σstandard deviation
Subscripts
minminimum
maxmaximum
ppreamble
maxmaximum possible
PHYsymbols transmitted in the physical message
pkpacket
symsymbol

References

  1. Karaboga, D.; Basturk, B. On the performance of artificial bee colony (ABC) algorithm. Appl. Soft Comput. 2008, 8, 687–697. [Google Scholar] [CrossRef]
  2. Karaboga, D.; Ozturk, C. A novel clustering approach: Artificial Bee Colony (ABC) algorithm. Appl. Soft Comput. 2011, 11, 652–657. [Google Scholar] [CrossRef]
  3. Karaboga, D.; Akay, A. A modified Artificial Bee Colony (ABC) algorithm for constrained optimization problems. Appl. Soft Comput. 2011, 11, 3021–3031. [Google Scholar] [CrossRef]
  4. Cano-Ortega, A.; Sánchez-Sutil, F.J.; Hernández, J.C. Power Factor Compensation using Teaching Learning Based Optimization and Monitoring System by Cloud Data Logger. Sensors 2019, 19, 2172. [Google Scholar] [CrossRef] [Green Version]
  5. Mohandas, N.; Balamurugan, R.; Lakshminarasimman, L. Optimal location and sizing of real power DG units to improve the voltage stability in the distribution system using ABC algorithm united with chaos. Electr. Power Energy Syst. 2015, 66, 41–52. [Google Scholar] [CrossRef]
  6. Sen, T.; Datt Mathur, H. A new approach to solve Economic Dispatch problem using a Hybrid ACO–ABC–HS optimization algorithm. Electr. Power Energy Syst. 2016, 78, 735–744. [Google Scholar] [CrossRef]
  7. Gaidhane, P.J.; Nigam, M.J. A hybrid grey wolf optimizer and artificial bee colony algorithm for enhancing the performance of complex systems. J. Comput. Sci. 2018, 27, 284–302. [Google Scholar] [CrossRef]
  8. Naidua, K.; Hazlie Mokhlis, H.; Abu Bakar, A.H.; Terzija, V. Performance investigation of ABC algorithm in multi-area power system with multiple interconnected generators. Appl. Soft Comput. 2017, 57, 436–451. [Google Scholar] [CrossRef]
  9. Juneja, M.; Nagar, S.K.; Mohanty, S.R. ABC based reduced order modelling of microgrid in grid-tied mode. Control Eng. Pract. 2019, 84, 337–348. [Google Scholar] [CrossRef]
  10. Kumar Paliwal, N.; Kumar Singh, A.; Kumar Singh, N. A day-ahead optimal energy scheduling in a remote microgrid alongwith battery storage system via global best guided ABC algorithm. J. Energy Storage 2019, 25, 100877. [Google Scholar] [CrossRef]
  11. Ghosh, S.; Karar, V. Assimilation of Optimal Sized Hybrid Photovoltaic-Biomass System by Dragonfly Algorithm with Grid. Energies 2019, 11, 1892. [Google Scholar] [CrossRef] [Green Version]
  12. Ali Ertürk, M. Lorawan indoor performance analysis. Int. Res. J. Comput. Sci. 2017, 4, 23–29. [Google Scholar] [CrossRef]
  13. Petajajarvi, J.; Mikhaylov, K.; Pettissalo, M.; Janhunen, J.; Iinatti, J. Performance of a low-power wide-area network based on LoRa technology: Doppler robustness, scalability, and coverage. Int. J. Distrib. Sens. Netw. 2017, 13. [Google Scholar] [CrossRef] [Green Version]
  14. Yousuf, A.M.; Rochester, E.M.; Ousat, B.; Ghaderi, M. A Throughput, Coverage and Scalability of LoRa LPWAN for Internet of Things. In Proceedings of the 2018 IEEE International Symposium on Quality of Service (IWQoS), Banff, AB, Canada, 4–6 June 2018. [Google Scholar] [CrossRef]
  15. Hoeller, A., Jr.; Demo Souza, W.; Alcaraz Lopez, R.; Onel, L. Analysis and Performance Optimization of LoRa Networks with Time and Antenna Diversity. IEEE Access 2018, 6, 32820–32829. [Google Scholar] [CrossRef]
  16. Kerkouche, R.; Alami, R.; Féraud, R.; Varsier, N.; Maillé, P. Node-based optimization of LoRa transmissions with Multi-Armed Bandit algorithms. In Proceedings of the 2018 International Conference on Telecommunications (ICT), St. Malo, France, 26–28 June 2018; pp. 521–526. [Google Scholar]
  17. Taha, A.A.; Feteiha, M.F.; Abdul, W. Performance Evaluation for LoRa Transceiver. Int. J. Comput. Sci. Softw. Eng. 2019, 8, 25–39. [Google Scholar]
  18. Sandoval, R.M.; Garcia-Sanchez, A.J.; Garcia-Haro, J. Performance optimization of LoRa nodes for the future smart city/industry. J. Wirel. Commun. Netw. 2019, 2019, 200. [Google Scholar] [CrossRef]
  19. Cano-Ortega, A.; Sánchez-Sutil, F.J. Monitoring of the Efficiency and Conditions of Induction Motor Operations by Smart Meter Prototype Based on a LoRa Wireless Network. Electronics 2019, 8, 1040. [Google Scholar] [CrossRef] [Green Version]
  20. Benzi, F.; Anglani, N.; Bassi, E.; Frosini, L. Electricity Smart Meters Interfacing the Dwellings. IEEE Trans. Ind. Electron. 2011, 58, 10. [Google Scholar] [CrossRef]
  21. Minchala-Avila, L.I.; Armijos, J.; Pesánteza, D.; Zhang, Y. Design and Implementation of a Smart Meter with Demand Response Capabilities. Energy Procedia 2016, 103, 195–200. [Google Scholar] [CrossRef]
  22. Kumar, A.; Thakur, S.; Bhattacharjee, P. Real time monitoring of AMR enabled energy meter for AMI in Smart City-An IoT Application. In Proceedings of the 2018 IEEE International Symposium on Smart Electronic Systems (iSES), Hyderabad, India, 17–19 December 2018. [Google Scholar]
  23. Sun, Y.; Lampe, L.; Wong, V.W.S. Smart Meter Privacy: Exploiting the Potential of Dwelling Energy Storage Units. IEEE Internet Things J. 2018, 5, 69–78. [Google Scholar] [CrossRef]
  24. Sánchez-Sutil, F.; Cano-Ortega, A.; Hernández, J.C.; Rus-Casas, C. Development and calibration of an open source, low-cost power smart meter prototype for PV dwelling-prosumers. Electronics 2019, 8, 878. [Google Scholar] [CrossRef] [Green Version]
  25. Avancini, D.B.; Rodrigues, J.P.C.; Martins, S.G.B.; Rabêlo, R.A.; Al-Muhtadi, J.; Solic, P. Energy meters evolution in smart grids: A review. J. Clean. Prod. 2019, 217, 702–715. [Google Scholar] [CrossRef]
  26. Stegner, C.; Oliver Glaß, O.; Beikircher, T. Comparing smart metered, residential power demand with standard load profiles. Sustain. Energy Grids Netw. 2019, 20, 100248. [Google Scholar] [CrossRef]
  27. Akselrad, D.; Petcu, V.; Römer, B.; Schmid, A.; Bytschkow, D.; Engelken, M. Making Home Energy Usage Transparent for Dwellings using Smart Meters. In Proceedings of the 2011 IEEE International Conference on Consumer Electronics, Berlin, Germany, 6–8 September 2011. [Google Scholar]
  28. Haben, S.; Singleton, C.; Grindrod, P. Analysis and Clustering of Residential Customer Energy Behavioral Demand Using Smart Meter Data. IEEE Trans. Smart Grid 2016, 7, 136–144. [Google Scholar] [CrossRef]
  29. Wesley Schultz, P.; Mica Estrada, M.; Schmitt, J.; Sokoloski, R.; Silva-Send, N. Using in-home displays to provide smart meter feedback about dwelling electricity consumption: A randomized control trial comparing kilowatts, cost, and social norms. Energy 2015, 90, 351–358. [Google Scholar] [CrossRef] [Green Version]
  30. Anderson, B.; Lin, S.; Newing, A.; Bahaj, A.; James, P. Electricity consumption and dwelling characteristics: Implications for census-taking in a smart metered future. Comput. Environ. Urban Syst. 2017, 63, 58–67. [Google Scholar] [CrossRef] [Green Version]
  31. Gouveia, J.P.; Júlia Seixas, J.; Mestre, A. Daily electricity consumption profiles from smart meters - Proxies of behavior for space heating and cooling. Energy 2017, 141, 108–122. [Google Scholar] [CrossRef]
  32. Dudek, G.; Gawlak, A.; Kornatka, M. Analysis of Smart Meter Data for Electricity Consumers. In Proceedings of the 2018 International Conference on the European Energy Market (EEM), Lodz, Poland, 27–29 June 2018. [Google Scholar]
  33. Funde, N.; Dhabu, M.; Balande, U. Motif-based Pattern Detection Method for Smart Energy Meter Data. In Proceedings of the 2018 IEEE International Conference for Convergence in Technology, Pune, India, 6–8 April 2018. [Google Scholar]
  34. Nilsson, A.; Wester, M.; David Lazarevic, D.; Brandt, N. Smart homes, home energy management systems and real-time feedback: Lessons for influencing dwelling energy consumption from a Swedish field study. Energy Build. 2018, 179, 15–25. [Google Scholar] [CrossRef]
  35. Yildiz, B.; Bilbao, J.I.; Dore, J.; Sproul, A. Dwelling electricity load forecasting using historical smart meter data with clustering and classification techniques. In Proceedings of the 2018 IEEE Innovative Smart Grid Technologies—Asia (ISGT Asia), Singapore, 22–25 May 2018. [Google Scholar]
  36. Laicane, I.; Blumberga, A.; Rosa, M.; Blumberga, D. The Effect of the Flows of Information on Residential Electricity Consumption: Feasibility Study of Smart Metering Pilot in Latvia. In Proceedings of the European Conference on Smart Objects, Systems and Technologies, Erlangen/Nuremberg, Germany, 11–12 June 2013. [Google Scholar]
  37. Rahman, M.; Alfaki, A.; Shafiullah, G.M.; Shoeb, A.; Jamal, T. Demand Response Opportunities in Residential Sector Incorporated with Smart Load Monitoring System. In Proceedings of the 2016 IEEE Innovative Smart Grid Technologies, Melbourne, VIC, Australia, 28 November–1 December 2016. [Google Scholar]
  38. Sial, A.; Singh, A.; Mahanti, A. Detecting anomalous energy consumption using contextual analysis of smart meter data. Wirel. Netw. 2019. [Google Scholar] [CrossRef]
  39. Sial, A.; Singh, A.; Mahanti, A.; Gong, M. Heuristics-Based Detection of Abnormal Energy Consumption. In Smart Grid and Innovative Frontiers in Telecommunications; Springer: Auckland, New Zealand, 2018; pp. 21–31. [Google Scholar]
  40. Sial, A.; Singh, A.; Mahanti, A.; Gong, M. Profiling Energy Consumption in a Residential Campus. In Proceedings of the 2014 CoNEXT on Student Workshop, Sydney, Australia, 2–5 December 2014; pp. 15–17. [Google Scholar] [CrossRef] [Green Version]
  41. Sánchez-Sutil, F.; Cano-Ortega, A. Smart public lighting control and measurement system using LoRa network. Electronics 2020, 9, 124. [Google Scholar] [CrossRef] [Green Version]
  42. Noreen, U.; Bounceur, A.; Clavier, L. A Study of LoRa Low Power and Wide Area Network Technology. In Proceedings of the 2017 International Conference on Advanced Technologies for Signal and Image Processing (ATSIP), Fez, Morocco, 22–24 May 2017. [Google Scholar] [CrossRef]
  43. Phung, K.H.; Hieu Tran, H.; Nguyen, Q.; Huong, T.T.; Nguyen, T.L. Analysis and Assessment of LoRaWAN. In Proceedings of the 2018 2nd International Conference on Recent Advances in Signal Processing. Telecommunications & Computing (SigTelCom), Ho Chi Minh City, Vietnam, 29–31 January 2018. [Google Scholar] [CrossRef]
  44. Bouguera, T.; Diouris, J.F.; Chaillout, J.J.; Jaouadi, R.; Andrieux, G. Energy Consumption Model for Sensor Nodes Based on LoRa and LoRaWAN. Sensors 2018, 18, 2104. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  45. Polonelli, T.; Brunelli, D.; Marzocchi, A.; Benini, L. Slotted ALOHA on LoRaWAN-Design, Analysis, and Deployment. Sensors 2019, 19, 838. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  46. Sornin, N.; Yegin, A. LoRaWANTM 1.1 Specification. 2017. Available online: https://lora-alliance.org/sites/default/files/2018-04/lorawantm_specification_-v1.1.pdf (accessed on 10 December 2019).
  47. LoRa Alliance Technical Committee Regional Parameters Workgroup. LoRaWANTM 1.1 Regional Parameters. 2018. Available online: https://lora-alliance.org/sites/default/files/2018-04/lorawantm_regional_parameters_v1.1rb_-_final.pdf (accessed on 10 December 2019).
  48. Arduino Mega Rev3. Available online: https://store.arduino.cc/mega-2560-r3 (accessed on 10 December 2019).
  49. Dragino LoRa GPS Shield for Arduino. Available online: https://www.dragino.com/products/lora/item/108-lora-gps-shield.html (accessed on 10 December 2019).
  50. Ningbo Peacefair Electronic Co., Ltd. Available online: https://peacefair.en.made-in-china.com (accessed on 10 December 2019).
  51. Wemos Electronics. Available online: https://wiki.wemos.cc/products:d1:d1_mini_pro (accessed on 10 December 2019).
  52. Firebase. Available online: https://www.firebase.google.com (accessed on 10 December 2019).
  53. Arduino MKR WAN 1300. Available online: https://store.arduino.cc/mkr-wan-1300 (accessed on 10 December 2019).
  54. Monteino. Available online: https://lowpowerlab.com/guide/moteino/ (accessed on 10 December 2019).
  55. Lopy4. Available online: https://docs.pycom.io/gettingstarted/connection/lopy4/ (accessed on 10 December 2019).
  56. Libelium. Available online: http://www.libelium.com/extreme-range-wireless-sensors-connectivity-through-buildings-in-city-lora-868mhz-915mhz/ (accessed on 22 November 2019).
  57. Dragino LoRa Products. Available online: http://www.dragino.com/products/lora.html (accessed on 10 December 2019).
  58. Murata Electronics. Available online: https://wireless.murata.com/pub/RFM/data/type_abz.pdf (accessed on 10 December 2019).
  59. HOPERF chip RFM95/96/97/98. Available online: https://cdn.sparkfun.com/assets/learn_tutorials/8/0/4/RFM95_96_97_98W.pdf (accessed on 10 December 2019).
  60. Semtech SX1276/SX1278 LoRa Chip. Available online: https://www.semtech.com/products/wireless-rf/lora-transceivers/sx1276 (accessed on 10 December 2019).
  61. Semtech SX1272 LoRa Chip. Available online: https://www.semtech.com/products/wireless-rf/lora-transceivers/sx1272 (accessed on 10 December 2019).
  62. FZ0430 Voltage Sensor. Available online: http://www.ekt2.com/pdf/412_ARDUINO_SENSOR_VOLTAGE_DETECTOR.pdf (accessed on 10 December 2019).
  63. ZMPT101B Voltage Sensor. Available online: https://www.datasheet4u.com/datasheet-742pdf/ETC/ZMPT101B/pdf.php?id=1031464 (accessed on 10 December 2019).
  64. ACS712. Available online: https://www.sparkfun.com/datasheets/BreakoutBoards/0712.pdf (accessed on 10 December 2019).
  65. STC013 Dechang Electronics Co. Ltd. Available online: http://en.yhdc.com/product/SCT013-401.html.737 (accessed on 10 December 2019).
Figure 1. LoRa network architecture.
Figure 1. LoRa network architecture.
Energies 13 00517 g001
Figure 2. Flow chart ABC.
Figure 2. Flow chart ABC.
Energies 13 00517 g002
Figure 3. Hardware block diagram of EMDD.
Figure 3. Hardware block diagram of EMDD.
Energies 13 00517 g003
Figure 4. Wiring diagram of EMDD.
Figure 4. Wiring diagram of EMDD.
Energies 13 00517 g004
Figure 5. Hardware block diagram of GLNM.
Figure 5. Hardware block diagram of GLNM.
Energies 13 00517 g005
Figure 6. Wiring diagram of GLNM.
Figure 6. Wiring diagram of GLNM.
Energies 13 00517 g006
Figure 7. Flow chat of EMDD main program.
Figure 7. Flow chat of EMDD main program.
Energies 13 00517 g007
Figure 8. Flow chat of GLNM main program.
Figure 8. Flow chat of GLNM main program.
Energies 13 00517 g008
Figure 9. Dwellings and gateway location.
Figure 9. Dwellings and gateway location.
Energies 13 00517 g009
Figure 10. Data measure in dwelling #1: (a) PLR with BW = 125 kHz; (b) RSSI with BW = 125 kHz; (c) PLR with BW = 250 kHz; (d) RSSI with BW = 250 kHz; (e) PLR with BW = 500 kHz; (f) RSSI with BW = 500 kHz.
Figure 10. Data measure in dwelling #1: (a) PLR with BW = 125 kHz; (b) RSSI with BW = 125 kHz; (c) PLR with BW = 250 kHz; (d) RSSI with BW = 250 kHz; (e) PLR with BW = 500 kHz; (f) RSSI with BW = 500 kHz.
Energies 13 00517 g010
Figure 11. Data measure in dwelling #2: (a) PLR with BW = 125 kHz; (b) RSSI with BW = 125 kHz; (c) PLR with BW = 250 kHz; (d) RSSI with BW = 250 kHz; (e) PLR with BW = 500 kHz; (f) RSSI with BW = 500 kHz.
Figure 11. Data measure in dwelling #2: (a) PLR with BW = 125 kHz; (b) RSSI with BW = 125 kHz; (c) PLR with BW = 250 kHz; (d) RSSI with BW = 250 kHz; (e) PLR with BW = 500 kHz; (f) RSSI with BW = 500 kHz.
Energies 13 00517 g011
Figure 12. Data measure in dwelling #3: (a) PLR with BW = 125 kHz; (b) RSSI with BW = 125 kHz; (c) PLR with BW = 250 kHz; (d) RSSI with BW = 250 kHz; (e) PLR with BW = 500 kHz; (f) RSSI with BW = 500 kHz.
Figure 12. Data measure in dwelling #3: (a) PLR with BW = 125 kHz; (b) RSSI with BW = 125 kHz; (c) PLR with BW = 250 kHz; (d) RSSI with BW = 250 kHz; (e) PLR with BW = 500 kHz; (f) RSSI with BW = 500 kHz.
Energies 13 00517 g012
Figure 13. ABC algorithm application.
Figure 13. ABC algorithm application.
Energies 13 00517 g013
Figure 14. Electrical data measure: (a) v, i in dwelling #1; (b) p, q in dwelling #1; (c) v, i in dwelling #2; (d) p, q in dwelling #2; (e) v, i in dwelling #2; (f) p, q in dwelling #3.
Figure 14. Electrical data measure: (a) v, i in dwelling #1; (b) p, q in dwelling #1; (c) v, i in dwelling #2; (d) p, q in dwelling #2; (e) v, i in dwelling #2; (f) p, q in dwelling #3.
Energies 13 00517 g014
Figure 15. Hourly load profiles: (a) Active energy consumption in winter; (b) Reactive energy consumption in winter; (c) Active energy consumption in spring; (d) Reactive energy consumption in spring; (e) Active energy consumption in summer; (f) Active energy consumption in summer; (g) Active energy consumption in autumn; (h) Active energy consumption in autumn.
Figure 15. Hourly load profiles: (a) Active energy consumption in winter; (b) Reactive energy consumption in winter; (c) Active energy consumption in spring; (d) Reactive energy consumption in spring; (e) Active energy consumption in summer; (f) Active energy consumption in summer; (g) Active energy consumption in autumn; (h) Active energy consumption in autumn.
Energies 13 00517 g015
Figure 16. Active and reactive energy season graphs: (a) Active energy in dwelling #1; (b) Reactive energy in dwelling #1; (c) Active energy in dwelling #2; (d) Reactive energy in dwelling #2; (e) Active energy in dwelling #3; (f) Reactive energy in dwelling #3.
Figure 16. Active and reactive energy season graphs: (a) Active energy in dwelling #1; (b) Reactive energy in dwelling #1; (c) Active energy in dwelling #2; (d) Reactive energy in dwelling #2; (e) Active energy in dwelling #3; (f) Reactive energy in dwelling #3.
Energies 13 00517 g016
Figure 17. Electrical data measure in real time: (a) Active energy consumption in winter; (b) Reactive energy consumption in winter; (c) Active energy consumption in spring; (d) Reactive energy consumption in spring; (e) Active energy consumption in summer; (f) Active energy consumption in summer; (g) Active energy consumption in autumn; (h) Active energy consumption in autumn.
Figure 17. Electrical data measure in real time: (a) Active energy consumption in winter; (b) Reactive energy consumption in winter; (c) Active energy consumption in spring; (d) Reactive energy consumption in spring; (e) Active energy consumption in summer; (f) Active energy consumption in summer; (g) Active energy consumption in autumn; (h) Active energy consumption in autumn.
Energies 13 00517 g017aEnergies 13 00517 g017b
Figure 18. Electrical daily data measure: (a) Active energy consumption in winter; (b) Reactive energy consumption in winter; (c) Active energy in spring; (d) Reactive energy consumption in spring; (e) Active energy consumption in summer; (f) Active energy consumption in summer; (g) Active energy consumption in autumn; (h) Active energy consumption in autumn.
Figure 18. Electrical daily data measure: (a) Active energy consumption in winter; (b) Reactive energy consumption in winter; (c) Active energy in spring; (d) Reactive energy consumption in spring; (e) Active energy consumption in summer; (f) Active energy consumption in summer; (g) Active energy consumption in autumn; (h) Active energy consumption in autumn.
Energies 13 00517 g018aEnergies 13 00517 g018b
Figure 19. Active and reactive energy scatter graphs: (a) Real time in winter; (b) Daily in winter; (c) Real time in spring; (d) Daily in spring; (e) Real time in summer; (f) Daily in summer; (g) Real time in autumn; (h) Daily in autumn.
Figure 19. Active and reactive energy scatter graphs: (a) Real time in winter; (b) Daily in winter; (c) Real time in spring; (d) Daily in spring; (e) Real time in summer; (f) Daily in summer; (g) Real time in autumn; (h) Daily in autumn.
Energies 13 00517 g019aEnergies 13 00517 g019b
Table 1. Analysis of the SM for dwellings.
Table 1. Analysis of the SM for dwellings.
BibliographyParameters MeasuredFeaturesTopics
[20]---Study of SMs international regulationLocal interface of SMs in households
[21]Voltage and currentSM DesignDemand response capabilities
[22]Energy consumptionLDR to measure SMs pulsesMonitoring electrical energy consumption
[23]Electricity consumptionThermal and chemical energy storage
Electric vehicles
System model
Optimization of energy storage units
[24]Voltage, current and active powerCloud computing storage
High accuracy
Development, calibration and uncertainty studies of SM
[25]---Energy meters evolution in smart gridsTypes of SMs (precise measuring, data storage, communication networks, home control, system security)
[26]Voltage, current, PFMeasure time 15 s
Results analysis and validation
Comparison of standard load profiles with those obtained with SMs
[27]Power consumptionOptical sensor to SMsAnalysis of measured data to improve electrical energy consumption
[28]Energy consumptionCommercial SMsData analysis and clustering
[29]Energy consumptionZigBee wirelessData analysis in different scenarios
[30]Energy consumptionCommercial SMsstudy and estimation of indicators of load profiles in dwellings
[31]Energy consumptionCommercial SMs
Measure time 15 min
Obtaining and analysis of load profiles in houses in Evora (Portugal)
[32]Energy consumptionCommercial SMs
Measure time 15 min
Obtaining and analysis of load profiles in 1000 houses in Poland
[33]Energy consumptionCommercial SMs
Measure time 30 min
Smart meter dataset
Data Analysis and
Clustering
[34]Energy consumptionCommercial SMsObtaining and analysis of load profiles in 154 houses in Stockholm (Sweden)
[35]Energy consumptionCommercial SMsData analysis and Clustering
[36]Energy consumptionCommercial SMsObtaining and analysis of load profiles in 1000 houses in Latvia
[37]Voltage, current and active powerPower Tracker SM
Measure time 60 s
ZigBee Wireless
Monitoring the electricity consumption of domestic appliances in an Australian house
[38,39]Electrical variablesSchneider Electric EM64XXApplication of heuristic techniques for the detection of abnormal energy consumption
[40]Electrical variablesSchneider Electric EM64XXClassification of load profiles
[41]Voltage, current, active power and illumination levelControl and measurement system design
LoRa wireless
Measure time 5 s
Smart public Lighting control
Energy efficiency
Table 2. EMDD cost.
Table 2. EMDD cost.
DescriptionNumberTotal Price (€)
Microcontroller AMR3128.00
Lora GPS shield DLGS135.90
PZEM-004t110.08
Box container16.98
AC/DC power supply adapter11.87
Auxiliary material and wiring13.58
Total cost 86.41
Table 3. GLNM cost.
Table 3. GLNM cost.
DescriptionNumberTotal Price (€)
Microcontroller AMR3128.00
Lora GPS shield DLGS135.90
Microcontroller WMP14.61
Box container16.98
AC/DC power supply adapter11.87
Auxiliary material and wiring12.47
Total cost 79.83
Table 4. Characteristics of dwellings.
Table 4. Characteristics of dwellings.
DwellingTypeSurface Area (m2)Distance to GLNM (km)
#1Flat651.663
#2Town home1601.046
#3Single-family home3200.923
Table 5. Location of test devices.
Table 5. Location of test devices.
DevicePlaceUTM Coordinates Zone 30
X (m) Y (m)
EMDD #1Dwelling #1430,2354,181,413
EMDD #2Dwelling #2430,4494,182,444
EMDD #3Dwelling #3430,5964,182,314
GatewayTerrace of Higher Polytechnic School of Jaen431,5024,182,490
Table 6. Transmission statistics for dwelling #1.
Table 6. Transmission statistics for dwelling #1.
BW
(kHz)
RSSI (dBm)PLR (%)
μσμσ
125−93.451412.480535.451446.7468
250−94.03058.147617.933137.5216
500−91.71102.51391.10241.1724
Table 7. LoRa receiver sensitivity at different BW, SF and CR in dwelling #1.
Table 7. LoRa receiver sensitivity at different BW, SF and CR in dwelling #1.
BW
(kHz)
SFCR
7891011124/54/64/74/8
125−99.904−101.098−101.704−103.696−76.000−76.000−93.111−93.795−91.254−94.102
250−97.221−98.090−97.581−97.801−96.988−76.500−92.566−94.606−94.848−94.102
500−92.357−92.202−92.375−92.337−91.046−89.947−94.934−90.478−90.749−90.683
Table 8. Transmission statistics for dwelling #2.
Table 8. Transmission statistics for dwelling #2.
BW
(kHz)
RSSI (dBm)PLR (%)
μσμσ
125−84.31336.494834.719347.2516
250−84.10534.059317.156637.8496
500−91.44274.69833.23017.7366
Table 9. LoRa receiver sensitivity at different BW, SF and CR in dwelling #2.
Table 9. LoRa receiver sensitivity at different BW, SF and CR in dwelling #2.
BW
(kHz)
SFCR
7891011124/54/64/74/8
125−88.615−87.946−87.168−90.149−76.000−76.000−84.833−85.252−82.961−84.206
250−85.214−86.777−84.019−84.918−85.197−76.500−83.786−84.889−83.971−83.775
500−91.491−91.872−91.152−91.143−90.597−92.401−92.749−92.556−96.283−84.181
Table 10. Transmission statistics.
Table 10. Transmission statistics.
BW
(kHz)
RSSI (dBm)PLR (%)
μσμσ
125−97.224515.541239.239047.6840
250−15.763613.623718.719137.1631
500−111.31744.129011.30685.8131
Table 11. LoRa receiver sensitivity at different BW, SF and CR in dwelling #3.
Table 11. LoRa receiver sensitivity at different BW, SF and CR in dwelling #3.
BW
(kHz)
SFCR
7891011124/54/64/74/8
125−107.939−107.479−108.538−107.389−76.000−76.000−97.917−98.954−96.698−98.327
250−111.110−110.820−111.654−113.007−111.490−76.500−102.972−105.376−107.585−107.121
500−109.233−109.464−110.686−112.776−112.773−113.972−107.612−113.520−113.589−110.548

Share and Cite

MDPI and ACS Style

Cano-Ortega, A.; Sánchez-Sutil, F. Performance Optimization LoRa Network by Artificial Bee Colony Algorithm to Determination of the Load Profiles in Dwellings. Energies 2020, 13, 517. https://doi.org/10.3390/en13030517

AMA Style

Cano-Ortega A, Sánchez-Sutil F. Performance Optimization LoRa Network by Artificial Bee Colony Algorithm to Determination of the Load Profiles in Dwellings. Energies. 2020; 13(3):517. https://doi.org/10.3390/en13030517

Chicago/Turabian Style

Cano-Ortega, A., and F. Sánchez-Sutil. 2020. "Performance Optimization LoRa Network by Artificial Bee Colony Algorithm to Determination of the Load Profiles in Dwellings" Energies 13, no. 3: 517. https://doi.org/10.3390/en13030517

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop