###### Abstract
In this context, the concept of HyDSMaaS represents the scalability of the integration of distributed energy resources in the grid and DSM services, allowing the use of home energy management (HEM) and motivating the need for an advanced metering infrastructure (AMI) [10; 11; 12]. In addition, other technologies are already used in some countries, such as smart meters (SMs) [13; 14; 15]. The SMs are equipment that will measure the energy consumption of the site as the traditional meters already operate; however, these SMs will additionally communicate directly to the EEC as well as carry out processing at home, monitoring the quality of electricity (QoE) among other services on the edge of the network (in English, edge computing) [16]. In this sense, LoRa technology will be used to propose the communication between IoT devices that will enable HyDSMaaS. Within the context of SG is the AMI, which is responsible for providing bidirectional communication between the electric power concessionaire (EPC) and households. With this, it is possible that applications can act, either on the EPC side or on the final consumers' side. Therefore, with an AMI in full operation in an energy distribution system, it is possible that the HyDSMaaS can act in a definitive way. This power management can occur in a simple way, using a communication infrastructure that provides the necessary communication between EPC and households, as well as using IoT devices. With IoT, the range of applications for HyDSMaaS grows, and a study is needed on the main communication technologies to promote a communication infrastructure for AMI. However, it is necessary to have a good study to highlight the main IoT technologies to be used in this scenario, so, in this work, LoRa was studied using the LoRaWAN protocol as well as LoRaMESH and the hybridization of these two technologies. A HyDSMaaS can be implemented in a real scenario using several options of communication technologies whether wired or wireless [12]. Currently, one of the communication technologies that has been studied is power line communication (PLC), obtained through the transmission line where all the data is transmitted by the same wiring that transmits the electrical energy, whose transformers are bypassed during this operation because they behave like a low-pass filter and which are not suitable for transmitting high frequency data [17]. Additionally, PLC technology presents a high installation cost in cities compared to other communication technology options on the market [18]; so, the utility must upgrade its entire distribution infrastructure by exchanging the current wires for PLC wires [19]. Thus, the wireless sensor network (WSN) of IoT devices becomes an option, but for it to be adopted in a scalable and secure way, it is extremely important to pay attention to the main features of this context, as well as the operating requirements such as scalability, security,and reliability, because this context includes the implementation of an infrastructure that will provide communication between the utility and all households in a city [20; 21]. In addition, there are operating requirements such as physical barriers/obstacles such as poles and trees present in the urban environment; neighborhoods and houses present in places further away from cities; buildings and condominiums with large numbers of apartments; public buildings; and commercial and industrial establishments. Therefore, when choosing the technology to be used, it is important to analyze it in a real scenario in order to prove its efficiency and functionality for AMI in the context of HyDSMaaS. There are several SG architectures modeled in the current state of the art. One of the most referenced was the proposed architecture in [11] where the services of the EPC will act in AMI. However, the focus of this architecture is on management from the EPC side, while the present work focuses on management from the demand side.