###### Abstract
In addition, each technology has its own way of operating, but none of them offers the long range between concentrators and end devices and scalability related to low cost and energy consumption. Some technologies can cover a large area within the city, however it requires a lot of investment and many devices which also increases the complexity of implementing this infrastructure. Additionally, the hybridization proposed when it comes to the use of different network topologies, is only possible if different technologies are used, such as the use of 5G together with LTE [32] as well as the hybridization of services in the cloud [29], which may make the infrastructure budget even more unfeasible. This work aims to study, propose, and implement a Hybrid Communication Infrastructure with LoRaWAN and LoraMesh for the Demand Side Management as a Service (HyDSMaaS) for AMI using LoRa modules under the LoRaWAN and LoRaMESH protocol, seeking to provide a bidirectional communication between the electric utility and the final consumers of a city, thus enabling the utility to offer HyDSMaaS to its consumers. Studies on two-way communication infrastructures for SG in the context of HyDSMaaS have already been conducted in the literature [33; 34; 35], however, to date the LoRaWAN, LoRaMESH and LoRa hybrid networks have not been analyzed. And this happens, because the technologies that are being used the most such as ZigBee, WiMAX and among others are the networks that have a low range, however they have a large bandwidth, thus allowing the exchange of larger packets [36; 37]. In this context, considering that the main measurement data to be used by the EPC are only consumption, voltage and current. With this in mind, the modeling of the packets to be sent by the SMs should be modeled so as to obtain a size that does not affect the sending time or network bandwidth. Therefore, carrying out this modeling is one of the contributions of the present work because it will enhance the results. In addition, the network infrastructure studied and analyzed in this work will demand a lower investment cost compared to the networks studied so far as well as the way it will operate in the proposed context. However, LoRa technology has begun to appear in the market with the objective of offering a long range device, low energy consumption and low cost. In addition, one can use a star topology with the LoRaWAN protocol [38] as well as a mesh network with LoRaMESH [39]. Thus, the proposal of a hybrid network using only LoRa technology with LoRaMESH and LoRaWAN protocols, which may become a more viable technology option for AMI while maintaining features such as low consumption and cost of deployment and maintenance. An SG is not yet a reality in many countries because investments in communication infrastructure are still limiting [40; 41; 42]. With this in mind, a LoRa hybrid network besides being adaptable to different scenarios, will maintain the characteristic of a low cost infrastructure as well as long range, 3 to 4 km approximately, operating at approved frequency (915 MHz in Brazil), has a two-level security with encrypted keys and is an affordable technology for telecom companies to manufacture, sell and maintain, since AMI is an infrastructure that will cover cities of large proportions and will be full of modules and gateways [43; 44; 45; 46]. The main contributions of this work are:  
1. LoRaWAN and LoRaMESH analysis for use in HyDSMaaS considering the different types of packages and SF configurations in a real scenario;
2. Proposal and implementation of a hybrid network using LoRaWAN and LoRaMESH for HyDSMaaS considering the main possible clients and services offered by EPC.