You are on page 1of 4

2023 6th International Conference on Information Systems and Computer Networks (ISCON)

GLA University, Mathura, India. Mar 3-4, 2023

LoRaWAN Gateway Architecture for Aquaculture


Monitoring in Rural Area
2023 6th International Conference on Information Systems and Computer Networks (ISCON) | 979-8-3503-4696-1/23/$31.00 ©2023 IEEE | DOI: 10.1109/ISCON57294.2023.10111936

Dhruval Singh, Govind Sharma, Ishan Minhas, Gurkirat Singh, Pranav Mahajan, Poonam Verma, Gitanjali Chandwani Manocha
Electronics and Communication Engineering department
Thapar Institute of Engineering and technology, Patiala, Punjab, India
dhruvalmahal@gmail.com

Abstract—In fish farming, it is imperative to have detailed The Gateways uses high bandwidth networks like Wi-Fi,
data about water quality, dissolved oxygen and nutrients etc., Ethernet or Cellular to connect to the IoT platform due to the
not only in large scale classic farming applications but also for large traffic that can be collected from the connected Nodes.
urban aquaculture. To ensure the survival of the fish, the
water should be monitoring at regular intervals. This periodic A Gateway can communicate with hundreds or thousands
monitoring is cumbersome and prone to human error if done of LoRa nodes. If more Gateways are in the Node coverage
manually. Live and automated monitoring will not only save area, all the Gateways will receive the messages and forward
human effort but also increase the productivity of the fishing them to the IoT platform. Specialized algorithm are utilized
farming. This automated monitoring requires robust network by IoT platform to filter the duplicated or unwanted
connectivity to ensure live data collection using sensors and messages and will select the best Gateway to forward any
storage in cloud/server. However, for rural area the network messages queued for downlink.
connectivity may or may not be available. LoRaWAN is very
popular Internet of Things (IoT) access network technology. In We demonstrate installation of the LoRaWAN gateway
this paper, we carry out experiment to extend the network and create a mesh network of the LoRa nodes sending data to
range using LoRaWAN (Long Range Wide Area Network) for a single centralized LoRaWAN gateway with the following
live and automated aquaculture monitoring. The monitoring is objectives:
done with the various sensors that collect data related to
quality of water at different time and sending the data to the
• Connecting the gateway to internet.
nearest LoRaWAN Sensor Node, which further forwards the • Connecting the gateway to The things network.
aggregated data to LoRaWAN gateway. The LoRaWAN radio
module that allows long-range wireless data transmission and • Measuring range of gateway and plotting RSSI VS
low-power battery operation for several months at reasonable Distance graph.
module costs The proposed system is evaluated in terms of
transmission range, battery runtime and sensor data accuracy.
For the implementation the following hardware and
software components are used. Sensors like analogue
Keywords—LoRaWAN, Gateway, Aquaculture, IoT conductivity sensor, pH sensor, dissolved oxygen sensor,
grove ORP sensor, bme680 sensor module, antenna, PyGate-
8 channel Lora gateway, PyCom FiPy Module, PyCom LoPy
I. INTRODUCTION Module [1]-[4]. For making a gateway we will be using
Water quality monitoring for aquaculture is a crucial task PyGate 8 channel LoRa gateway along with PyCom LoPy
that needs to be performed periodically. Monitoring of water module. With LoRa, Wifi and BLE, the LoPy is the only
quality requires sensors such as water conductivity, dissolved triple bearer Micro Python enabled micro controller on the
oxygen, turbidity and pH improves feed ratios, minimizes market today – the perfect enterprise grade IoT platform for
fish stress, reduces fish disease and mortality Such your connected Things. The LoPy can also function as a
monitoring can be automated by using physical sensors single-channel gateway, however The Things Network
sensing the water quality parameters like PH, impurities etc. discourages the use of single-channel gateways. Thus, multi-
The data is transferred to the nearest LoRaWAN node in real gateway is used instead.
time and then the LoRaWAN nodes will transfer the data to
the Gateway. From the Gateway the data is uploaded to the II. METHODOLOY
cloud where the analysis of the data is be done and the user
can monitor data on the mobile through application. LoRa A. Parts of the Network
gateways are radio modules that serve as communication
devices within a LoRa network between end- devices and a
LoRaWAN network server (LNS). A LoRa gateway is
mostly used to transmit sensor data from an electrical device
to the cloud.
The Gateways are essential in the LoRa technology,
forming a bridge between the LoRa nodes and the user
application, where the messages are delivered and displayed.
These bridges will forward the data packets, after adding
some information regarding the quality of the reception, to
the IoT platform like The Things Network, Thing Speak,
Ada fruitIO, Ubidots, etc., from where the user can obtain
the requested data from the field, where the Node is placed.
Fig. 1. View of LoRaWAN network

979-8-3503-4696-1/23/$31.00 ©2023 IEEE 1


Authorized licensed use limited to: Mukesh Patel School of Technology & Engineering. Downloaded on October 19,2023 at 14:51:27 UTC from IEEE Xplore. Restrictions apply.
The whole network involves different components which (number 6). This can be implemented on large scale so it
are as follows: would require large number of gateways and nodes to cover
the entire area. If a node is in the vicinity of two or more
i. LPWAN sensors: Low Power Wide Area Network gateways, then the data is sent to all the gateways and the
sensors are responsible for detecting the physical or signal strength along with other parameters like error is
chemical changes around them and send the data to calculated and communication is done with the gateway
gateway through nodes. They consume very less which is most responsive along with less error and packet
power and can be operated for many years without drop rate.
changing the battery.
ii. Gateways: It is like a central head which receives III. CALCULATING RANGE OF GATEWAY
signals form sensors and connect them to the cloud Range is very important parameter for calculating the
server for computing and data processing. All the performance the network connectivity. For that we will be
data will pass through the gateway before getting considering various parameters like link budget, path loss
uploaded. etc. Link budget refers to the losses between the transmitter
iii. Network server: These are the dedicated devices that and receiver. Path loss, or path attenuation, is the reduction
run software made for fulfilling the client request in power density of an electromagnetic wave as it propagates
and reply with the desired response. through space. For measuring the network strength we will
use Field Test Device. More specifically we use Adenuis
iv. Application server: It is the dedicated server that which is also LoRaWAN certified. It has sensitivity of
hosts applications or software that deliver a business 140dBm. It also measures Geolocation of measurement
application through a protocol made for points.
communication. It helps the user to interact with the
lower devices and also read the data sent by the Now range testing can be of two types: user-based range
sensors. test and device based connection test. User based range test
can also be termed as short time test as it gives a rough
B. Overall Working of project estimate of signal strength at the point of measurement. It
measures strength by sending data packets regularly in short
Firstly the hardware needs to be connected to the intervals to LoRa devices. Also the user moves in the
network. Thus, in order to do that we connect Lopy module location to moves the strength. It is useful only for first view
to the pygate and upload the code of WiFi connection into of the network. Whereas in device based connection test it
the pygate with required SSID (service set identifier) and estimates the signal strength by considering various factors
password. Now the device will connect with network. Also over long period of time. These factors include weather
we need to register the gateway to The Things Network conditions, moving objects like cars, other RF influences,
server so that we can upload the data there and view the data seasonal influences like vegetation etc. It takes into account
whenever required. When the nodes in the network send data various other factors as mentioned and is often considered
to the gateway, it upload the data to the cloud server. The very useful.
uploaded data will be visible on the dashboard available on
the website. From there data can be retrieved and can be
viewed by the user on the mobile application[5]-[12]. A. Data for Range estimation
Most of the Indian cities for which the data we have
C. Implementation in real life collected, have very few tall buildings, some tall buildings
and many buildings that are only a few stories high.
In figure 2 we can see various devices numbered from 1
to 6. The device with number 1 is the sensor which monitors Description of the setup:
parameter of the aquarium. There can be more than one
sensors according to the number of parameters we want to x These were Non LOS connections
measure. Then it is sent to nearest node (number 5). Then it x Spreading Factor: 12
is received by the nearest gateway and then sent to the cloud,
the device is measured as 2, 3. Various analysis algorithms x Frequency: 868MHz Band
run on the server and required action is taken by the user as x The Rx Gateway was mounted at 12m height
he is able to check the sensor’s data in the mobile app
(number 4). Accordingly action is taken like feeding the x Tx changed between 5 control points
food, turning the oxygen device, turning water motor etc.
TABLE I. SUCCESS RATE FOR DIFFERENT INSTANCES
Checkpoint Distance to Number of Success Rate
Gateway (m) buildings (%)
between Tx &
Rx
1 830 4 96
2 863 6 100
3 960 14 92
4 1070 6 98
5 1530 14 98

Fig. 2. Real life implementation of Model

2
Authorized licensed use limited to: Mukesh Patel School of Technology & Engineering. Downloaded on October 19,2023 at 14:51:27 UTC from IEEE Xplore. Restrictions apply.
B. Range Optimisation
Success Rate in the above experiment not being 100%, is
countered by LoRaWAN standards. The communication can
be configured in a way that the messages have to be
confirmed by the receiver and the sender waits for an
acknowledgement and sends the data again if the
acknowledgement is missing.
At checkpoint 1 the signal passes 4 buildings out of
which two were high rise buildings resulting in disruption of
line of sight and also attenuates the signal and provides
success rate of 96%. At checkpoint 2 signal passed through 6
buildings and success rate is 100% because they were low
rise apartments thus signal reached the gateway even form a
distance of 863m. At checkpoint 3 at a distance about 960m Fig. 4. RSSI vs. Distance Graph (45m height positioning)
14 buildings came in range of gateway but the success rate
was 92%. Out of 14 eight buildings were high rise and rest
IV. CONCLUSION
were low rise apartments. At checkpoint 4 the area was
almost empty as a result greater success rate is seen and only LoRaWAN is an excellent piece of technology that can
six buildings were there as obstacles and covered 1070 m. At be really useful. Hereby we make some conclusions from the
checkpoint 5 success rate was 98%. It had five high rise work around LoRaWAN Gateway. Following are some set
apartments which followed an open space after which there of conclusions we can accept.
again came some more obstacles which comprised some low
x We setup a Gateway in LoRaWAN for the purpose
rise apartments with some parks also. [13]- [16]
of receiving data from the nodes as well as for
Three Strategies to improve the coverage and reach: uploading that data to the cloud.
x The ranges in the test could have been increased by x The Gateway setup is then connected to the required
accepting single failed transmissions and then network.
retransmission.
x The parameter that mattered the most to us was the
x Topologies with higher number of redundant range of the gateway. We worked some ways to
gateways result in increased network coverage and estimate the correct range for the gateway. Various
improved success rate. ranges and coverage were recorded for different
heights.
x The Range can be significantly improved by
increasing the height of the gateway. x We discussed different strategies to improve the
coverage and reach.
In an experiment, three Gateways were installed at
different heights (5m, 10m and 45m) and various range and x To check the efficiency and quality of this setup, the
penetration tests were conducted. [17] parameter that mattered the most to us was the RSSI.
Therefore, we plotted ‘RSSI vs distance’ on a graph.
x To increase range, we need to:
o Elevate our antennas to a required height.
o Use antennas with higher gains.
o Use directional antennas and not omni-
directional ones.

REFERENCES
[1] https://docs.pycom.io/tutorials/expansionboards/pygate/
[2] https://docs.pycom.io/advance/downgrade/
[3] https://docs.pycom.io/firmwareapi/pycom/pycom/
[4] “Interacting of GPS Module with Arduino” Available:
Fig. 3. Distance to Gateway versus Success Rate
[5] https://www.theengineeringprojects.com/2016/05/interfacing-gps-
module-arduino-proteus- isis.html
TABLE II. RANGE FOR DIFFERENT HEIGHTS [6] IEEE Std 802.15.1 (2002). A Wireless Personal Area Network
standard .
Gateway Height (m) Number of Max. Range Range [7] IEEE 802.22 (2010) - Working Group on Wireless Regional Area
No. Data Points (km) Average Networks ("WRANs"), has
1 5 444 5.53 1.43 [8] developed a wide variety of standards to enable spectrumsharing.
2 10 762 16.27 3.3
[9] Techopedia,"techopedia,"[Online].Available:
3 45 1619 20.99 2.92
www.techopedia.com/definition/28247/internet-of-things-iot.
[10] https://lora-alliance.org/about-lorawan/
[11] https://www.thethingsnetwork.org/docs/lorawan/architecture/

3
Authorized licensed use limited to: Mukesh Patel School of Technology & Engineering. Downloaded on October 19,2023 at 14:51:27 UTC from IEEE Xplore. Restrictions apply.
[12] https://www.researchgate.net/publication/338162217_LoRA_and_IoT Techniques: Proceedings of the 5th ICACNI 2017, Volume 2.
_Networks_for_Applications_in_Industry_40 Springer Singapore, 2018.
[13] https://iopscience.iop.org/article/10.1088/1757- [16] Yadav, Dhirendra Prasad, et al. "Hybrid SFNet model for bone
899X/705/1/012012/pdf fracture detection and classification using ML/DL." Sensors 22.15
[14] D. P. Yadav, A. Sharma, M. Singh and A. Goyal, "Feature Extraction (2022): 5823.
Based Machine Learning for Human Burn Diagnosis From Burn [17] SHARMA, DILIP KUMAR, and ASHISH SHARMA. "Investigation
Images," in IEEE Journal of Translational Engineering in Health and and development of machine Learning Challenges in Video
Medicine, vol. 7, pp. 1-7, 2019, Art no. 1800507, doi: Interviews." European Journal of Molecular & Clinical Medicine 7.4:
10.1109/JTEHM.2019.2923628. 2020.
[15] Sharma, Ashish, and Dhara Upadhyay. "VDBSCAN clustering with
map-reduce technique." Recent Findings in Intelligent Computing

4
Authorized licensed use limited to: Mukesh Patel School of Technology & Engineering. Downloaded on October 19,2023 at 14:51:27 UTC from IEEE Xplore. Restrictions apply.

You might also like