You are on page 1of 5



    
       
        

Implementation of LoRa End-Device in Sensor Network System


for Indoor Application
2020 IEEE International Conference on Communication, Networks and Satellite (Comnetsat) | 978-0-7381-2517-6/20/$31.00 ©2020 IEEE | DOI: 10.1109/Comnetsat50391.2020.9329003

Raihan Zaky Thamrin, Octarina Nur Samijayani, Suci Rahmatia Daniel Adrianto, I Ketut Agung Enriko
Electrical Engineering Department Media and Digital Departement
University of Al Azhar Indonesia PT Telkom Indonesia Tbk
Jakarta, Indonesia Bandung, Indonesia
thamrin905@gmail.com, octarina.nur@uai.ac.id, suci@uai.ac.id 876984@telkom.co.id, enrico@tekom.co.id

Abstract — In LoRa network architecture, the End Device challenges in IoT implementation including the connectivity,
functions as a node that is connected to sensors and other communication range, and also power consumption. LoRa is a
interfaces which then transmit data to the gateway, and to be new communication technology with long-range and low
forwarded to the Network Server. This paper implement LoRa power consumption. Based on IEEE 802.15.4.
on a sensor network, considering its several advantages, has long LoRa technology can be implemented in many network
range distance up to 1 km, low energy consumption, and data architecture. An architecture of a LoRa end device that
received in json format string. The experiment is conducted to functioned as a node and connected to a gateway which then
test the performance of single LoRa End Device in transmitting the data is forwarded to a network server is LoRaWAN
the data sensor to the monitoring center. The testing is done in network architecture. In purpose of monitor using IoT system,
indoor, with 3 meter distance between end device node and the application of LoRaWAN can be implemented in indoor
gateway. The Antares.id application is used as a dashboard for
area. The network performance may have its own
data presentation. The test is done using two different type of
data string. The size of data memory depends on the number of
characteristics when it get implemented. This experiment is
data strings sent. The more number of data strings sent will conducted in purpose to identify the characteristics of
increase the capacity of data and increasing power consumption. LoRaWAN in indoor implementation.
Data from sensor is successfully sent by LoRa transceiver to the
II. .BASIC THEORY
gateway, although there is a data transmission error of about
14,9%. Some parameters that can be adjusted to improve the A. Internet of Things
system performance include the channel frequency, number of
data string bits, and also interval time of data transmission, The IoT concept was created by members of the Radio
which can be adjusted following to the characteristics of the Frequency Identification (RFID) development community in
sensing parameters. 1999. Today, the development of IoT has greatly increased
Keywords— End Device, LoRa, Antares.id, Performance. driven by the growth of mobile devices, communication that is
increasingly easy to do, cloud computing, and analytic data.
I. INTRODUCTION The purpose of the Internet of Things is to enable things to
Internet of Things (IoT) is a technology that allows always be connected anytime, anywhere with anything and
devices or everything around us connected to the internet. Any anyone ideal using any network and service. [1] Internet of
device that exists, also the surrounding environment can be Things refers to the use of devices and connected systems to
monitored and accessed by users via the internet, wherever utilize data obtained from sensors, actuators embedded in
and whenever users can monitor environmental conditions and machines, or other physical objects. For consumers, IoT has
even control them remotely via the internet. This monitoring the potential to provide solutions that can improve energy
and the controlling system can be implemented in housing, efficiency, security, health, education, and other aspects of
industry, farming, urban buildings, and disaster prevention daily life. As for companies, IoT can support solutions that
application. improve decision making and productivity in manufacturing,
The development of the internet of things or IoT is retail, agriculture, and other sectors.
currently very rapid. From its implementation, IoT is used to Internet of Things is a world where various objects can
monitor, control, and connect the devices with the internet. feel, communicate, and share information that is connected
One IoT application is the smart home, where all devices at through public or private Internet Protocol (IP) networks.
home such as lights, televisions, air conditioners, and also These interconnected objects have data that is collected,
analyzed, then used to be able to initiate an action, provide a
home monitoring equipment are connected. The device is
wealth of intelligence for planning, management, and decision
connected to the user so that the user can supervise and
making. The vision of the Internet of Things is a concept and
control the device remotely. In the industrial sector, machines paradigm that considers the existence of the internet in an
and products are monitored remotely by the operators. Also in environment that can connect objects with objects through
plantations, its environmental conditions can be monitored and wired and wireless connections to interact with each other in
can be optimized automatically from a distance. terms of achieving common goals. The Internet of Things is
IoT may utilize various technologies such as WiFi, defined into three categories, namely person to person, person
Bluetooth, Zigbee, GSM, and the latest wireless to machine/object, object/machine to object/machine, all of
communication technology called LoRa. There are several which interact with the internet.

  !" #" $%%&!"'( 208

Authorized licensed use limited to: Rutgers University. Downloaded on May 15,2021 at 04:50:50 UTC from IEEE Xplore. Restrictions apply.

    
       
        

B. LoRa
LoRa, which stands for "Long Range", is a long-distance
wireless communication system, promoted by the LoRa TABLE 1. Summarize of configurable settings of LoRa End Device
Alliance. This system aims to be used in durable battery-
Setting Values Effect
powered devices, where energy consumption is very important
[1]. The typical LoRa network is the "star topology", which Bandwidth 125-500kHz The higher bandwidth allows
includes three different types of devices, as shown in Figure 1 the transmission of packets at
higher data rates (1 kHz = 1
kcps), but reduce receiver
sensitivity and
communication range.
Spreading 27.- 212 A larger spread factor can
Factor increase the signal-to-noise
ratio and radio sensitivity,
increase the communication
range and hence the higher
energy expenditure.
Coding 4/5 - 4/8 Larger coding rates increase
Rate the resilience to interference
bursts.
Transmissi -4 - 20dBm Higher transmission powers
on Power increase the signal-to-noise
ratio.

FIGURE 1. Topology of LoRa [2]


III. RESEARCH METHOD
Several components of the network are defined and are
required to form a LoRaWAN network: end-devices, The architecture circuit design consists of hardware circuit
gateways, and the network server [2]. design and software configuration. The hardware component is
- End-device: low-power consumption sensors that utilizing the Arduino Uno as the microcontroller, one ambience
communicate with gateways using LoRa. sensor as data input, and LoRa radio module as a data
transmitter device. The data transmitted will be received by the
- Gateway: the intermediate devices that forward packets
nearest Gateway [4]. The experiment is conducted to test the
coming from end-devices to a network server over an IP performance of LoRa, as an End Device, in indoor application,
backhaul interface allowing a bigger throughput. and it uses the LUX sensor to sense the light intensity in one
- Network server: responsible for decoding the packets sent room. Software configuration is performed on the
by the devices and generating the packets that should be microcontroller programming and defining the address to
sent back to the devices. which data is sent. In addition, channel frequency adjustments
are also made so that the data can be received precisely.
LoRa has a configurable setting which will affect the
communication performance. These configurations involve the
Bandwidth, Spread Factor, Coding Rate, and Transmission
Power. The bandwidth of LoRa is between 125 kHz to 500
kHz. Higher bandwidth provides higher data rates, but reduce
sensitivity and communication range. The spreading factor of
LoRa is between 7 to 12, which leads to 128 to 4096
chips/symbols and the coding rate is 4/5 to 4/8. A larger
coding rate provides increasing resilience to interference
bursts and decoding errors at the cost of longer packets and
higher energy expenditure. The transmission power of LoRa is
in a range between -4 dBm to 20 dBm. Higher transmission
power reduces the signal-to-noise ratio at the cost of an
increase in the energy consumption of the transmitter.[3]
TABLE 1 describes the configurable settings of LoRa End
Device.

Identify applicable funding agency here. If none, delete this text box.

209

Authorized licensed use limited to: Rutgers University. Downloaded on May 15,2021 at 04:50:50 UTC from IEEE Xplore. Restrictions apply.

    
       
        

to 8 channel. 200kHz bandwidth is quite larger than 125kHz


for gap between channel to avoid wave interference.[5]
Frequency setting configuration is done by programming
microcontroller Library shown in Figure 3. The channel that
used in this research are shown in TABLE 2. Below:
TABLE 2. End Device Channel
Channel Frequency
0 921.1 MHz
1 921.3 MHz
2 921.5 MHz
3 921.7 MHz
4 921.9 MHz
5 922.1 MHz
FIGURE 2. End Device circuit and hardware component 6 922.3 MHz
7 922.5 MHz
The circuit of the end device is contain three main parts, the
Arduino microcontroller, the ambience sensor (GY-302) as
The topology of LoRa network in this experiment is shown
data input, and the LoRa radio module (rfm95w) as
in Figure 4. LoRa End Device embedded with the sensor is
transceiver. The data flow in single direction, start from the
connected to the gateway (RAK 831), then data will be stored
sensor for generate signal input next to microcontroller for the in Antares.id and accessed in the monitoring center. The scope
processing and proceed to the radio module to be sent to the of the experiment carried out is as follows:
gateway. The connection between GY-203 sensor and
Arduino microcontroller is using I2C. the microprocessor and x Component that used in end device is Arduino Uno
the radio module is connected by serial communication. The microcontroller, GY-203 LUX sensor, and rfm95w LoRa
data will be sent by the radio module to the gateway using the Radio module.
rp-sma antenna type. x Rfm95w LoRa radio module is work in 920-923 MHz
Band and using rp-sma antenna type.
x LoRa Gateway using in this experiment is a fabricated
component (RAK 831).
x IoT Platform that used for display the data result is using
Antares.id.
x Data Retrieval: Writing the data string, with 5 seconds
delay of each transmission. Data is transmitted in 10
minutes and will be analyzed. This process is repeated
during the experiment. Time of data collection is 2 hours.
x The experiment took place in the office indoor room.
x The distance between end device and the gateway is
about 3 meters long. End device and the gateway is in the
same room with low level obstacles.
x This experiment uses only one End Device, in order to
focus on transmitting only one data without other
interference from other devices.
x Parameter that analyzed in this research is large data bits
sent and the number of errors.

FIGURE 3. Software Channel Configuration

Guard bandwidth that configured in this research is


200kHz, because with this range, the channel can be made up

210

Authorized licensed use limited to: Rutgers University. Downloaded on May 15,2021 at 04:50:50 UTC from IEEE Xplore. Restrictions apply.

    
       
        

Generally, it can be concluded that the format of data


transmission will also effect on its power consumption.
Error Performance
Data transmission has a 5 second delay. Transmission is
considered an error if there is data that was not sent at the exact
time. The amount of data error is calculated for each
unsuccessful data sent at the correct time. With the time delay
is 5 seconds and the retrieval range of 5 minutes, there should
be 60 data sent. Table 4 shows the number of error occurred in
4 time of experiment.
TABLE 4. Number of errors
Experiment Number of Percentage (%)
errors
1 11 18%
2 8 13.3%
3 12 20%
4 5 8.3%
average %: 14.9%
FIGURE 4. LoRa Topology
Experiment 1 shows only 49 data is successfully received
and 11 data is failed. Experiment 2 shows only 52 data is
successfully received and 8 data is failed. Experiment 3 shows
IV. RESULT AND ANALYSIS only 48 data is successfully received and 12 data is failed.
Experiment 4 shows only 55 data is successfully received and
5 data is failed.
The result of data is displayed in Antares.id website in
format of json string, as shown in FIGURE 5. The data Based on these results it can be analyzed that the average
contains light intensity information in format: error of Lora End Device transmission is about 14.9%. Some
of the error can be caused by a network connectivity, the data
x "Light: %d lx" transportation in the internet. the performance of the backhaul
x "Here is the 0th LoRa data" internet might be the strong cause of error because some data
flow in its server network. The amount of data packet might be
crash on its way to server. Latency and disruption is another
caused of data error. Because of the latency, some of data are
failed to be decrypted. High traffic of data in the gateway is
another cause of error. Since the gateway is used for public,
another end device used outside the experiment are sending
data to the gateway, this conduct a high traffic data through the
gateway and possibly caused crash of data in server
transportation. The contributing factors of error, include
network connectivity or also caused by the obstacle objects
between End Device and the gateway.
Based on the experiment conducted, the LoRa is used as an
End Device, showing a successful data transmission
FIGURE 5. Sensor Data shown ini Antares.id
performance of about 85,1%. These results are still good
TABLE 3. Data bit string
enough for displaying monitoring data, especially for
parameters where the value does not change in a very short
String data Bit size (byte) time. To anticipate the lost or error data packets, the repetition
“Here is the 0th LoRa data” 2576 time of data transmission can be set to be smaller, so that more
“Light: %d lx” 2483 data is sent to carry the sensor data information at particular
time. However, the smaller number of repetition time it may
needs more storage and memory in server.
The longer the string data is used to display sensor data
information, the more memory it will consume. larger memory V. CONCLUSION
storage for a single data is wasteful. Therefor for a single The LoRa is implemented as an End Device node in sensor
sensor data, it is better to minimalize the string data that will be
network system in indoor application. Data from sensor is
sent. [6] Moreover, it also affecting more on power
successfully sent by LoRa transceiver to the gateway, with the
consumption because the more data will be modulated.

211

Authorized licensed use limited to: Rutgers University. Downloaded on May 15,2021 at 04:50:50 UTC from IEEE Xplore. Restrictions apply.

    
       
        

average number of error is about 14,9%. It may be caused by Actuator Networks, vol. 6, no. 2, 2017.
the network connectivity, data flow in server that have crash [4] I. M. S. Wibawa and I. K. Putra, “Perancangan Dan
possibility, the presence of obstacle between LoRa and Pembuatan Lux Meter Digital Berbasis Sensor Cahaya
gateway or other transmission factors. Several parameters that EL7900,” vol. XI, no. 1, 2018.
can be considered to improve the system performance include
channel frequency, number of data string bits, and also [5] LoRa Alliance Technical Commitee, “LoRaWAN 1.1
interval time of data transmission, which can be adjusted Specification,” LoRaWAN 1.1 Specif., no. 1.1, p. 101,
following to the characteristics of the parameters to be 2017.
monitored. [6] H. Arijuddin, A. Bhawiyuga, and K. Amron,
“Pengembangan Sistem Perantara Pengiriman Data
Menggunakan Modul Komunikasi LoRa dan Protokol
MQTT Pada Wireless Sensor Network,” Pengemb.
REFERENCES Teknol. Inf. dan Ilmu Komput., vol. 3, no. 2, pp. 1655–
[1] K. K. Patel, and S. M. Patel, “Internet of Things-IOT: 1659, 2019.
Definition, Characteristics, Architecture, Enabling [7] P. D. Dama Istianti, S. Y. Prawiro, N. B. Aditya
Technologies, Application & Future Challenges,” Karna, and I. A. Nursafa, “Analisis Performansi
Int. J. Eng. Sci. Comput., vol. 6, no. 5, pp. 1–10, 2016. Teknologi Akses LPWAN LoRa Antares Untuk
[2] A. Augustin, J. Yi, T. Clausen, and W. M. Townsley, Komunikasi Data End Node,” CITEE 2019, pp. 24–
“A study of Lora: Long range & low power networks 25, 2019.
for the internet of things,” Sensors (Switzerland), vol.
16, no. 9, pp. 1–18, 2016.
[3] M. Cattani, C. A. Boano, and K. Römer, “An
experimental evaluation of the reliability of lora long-
range low-power wireless communication,” J. Sens.

212

Authorized licensed use limited to: Rutgers University. Downloaded on May 15,2021 at 04:50:50 UTC from IEEE Xplore. Restrictions apply.

You might also like