Download as pdf or txt
Download as pdf or txt
You are on page 1of 13

Journal of Physics: Conference

Series

PAPER • OPEN ACCESS You may also like


- Development of wind monitoring systems
Centralized Control System for Smart Street Lights with LoRA technology
F.A. Purnomo, N.M. Yoeseph, A. Yulianto
Based on STM32 and LoRa et al.

- Low-Power Wide Area Network


Construction Method Based on LoRa
To cite this article: Yuanchi Qu et al 2022 J. Phys.: Conf. Ser. 2216 012045 Technology for Agricultural Science and
Technology Parks
Zhiguo Sun, Zhiqiang Ji, Hongyan Wang
et al.

- Prototype weather station uses LoRa


View the article online for updates and enhancements. wireless connectivity infrastructure
Eko Murdyantoro, Ridlo Setiawan, Imron
Rosyadi et al.

This content was downloaded from IP address 152.58.200.14 on 27/05/2024 at 07:33


ICRICA-2021 IOP Publishing
Journal of Physics: Conference Series 2216 (2022) 012045 doi:10.1088/1742-6596/2216/1/012045

Centralized Control System for Smart Street Lights Based on


STM32 and LoRa

Yuanchi Qu1, a, Yanhua Yang2, b*, Yaoyao Li3, c


1
School of Information Science and Engineering, Yunnan University, Kunming, China
2
School of Information Science and Engineering Key Laboratory of Internet of Things
Technology and Application of Yunnan Province, Yunnan University, Kunming, China
3
School of Information Science and Engineering, Yunnan University, Kunming, China
a
qychi@foxmail.com, b*yanhuaya@163.com, c1825326724@qq.com

ABSTRACT: In order to solve the problem of waste of power and human resources in the
traditional street lamp control system, this paper designs a smart street lamp centralized control
system based on STM32 and LoRa technology. The centralized control system consists of a
centralized control device and multiple single lamp control devices. The STM32F103 is the
MCU of the centralized control device. The system uses the characteristics of low
communication cost and long transmission distance of LoRa technology to realize the
communication between the centralized control device and the single lamp control device. The
centralized control device uses the Modbus RTU protocol to communicate with the sensor
module, and adjusts according to environmental factors. The brightness of the street lamp
realizes the "on-demand lighting" of the street lamp, and an adaptive rate algorithm is proposed
to optimize the communication of the LoRa network and improve the working efficiency of the
system. This centralized control system combines embedded and wireless communication
technology and has advantages in cost, reliability, energy saving and intelligent control. It can
be applied to street lamp lighting control in various environments. It has a high degree of
intelligence and has a strong market potential.

1.Introduction
With the continuous development of social economy, the efficient use and sustainable development of
energy has become an issue of increasing concern.[1] With the advancement of smart city construction,
the combination of intelligence and energy saving has become a research focus. The lighting of street
lamps is an important aspect of urban infrastructure and urban image construction, but the management
and monitoring methods of street lamps in most cities in China are relatively backward.[2] Most cities
still use manual control or set fixed time to control the state of street lamps. In terms of daily street lamp
management, due to the lack of street lamp management and control platforms and remote monitoring
functions, street lamps can only be maintained and managed by means of manual inspections.[3] This
relatively simple, low-efficiency, and resource-wasting street lamp lighting management method has
been unable to meet the needs of intelligent lighting management and the requirements of energy saving
and emission reduction.
In order to overcome the shortcomings of traditional street lamp control, Jinshan cheng[4] et al.
proposed a street lamp system control communication method that combines ZigBee and GPRS, through
ZigBee to issue online commands and strategies to realize local street lamp network management. At

Content from this work may be used under the terms of the Creative Commons Attribution 3.0 licence. Any further distribution
of this work must maintain attribution to the author(s) and the title of the work, journal citation and DOI.
Published under licence by IOP Publishing Ltd 1
ICRICA-2021 IOP Publishing
Journal of Physics: Conference Series 2216 (2022) 012045 doi:10.1088/1742-6596/2216/1/012045

the same time, GPRS is used as a long-distance wireless communication method to realize wireless
communication between a remote terminal and a centralized controller. This method proposes a solution
for the intelligent control of street lamps, and facilitates the management of urban street lamp lighting
systems. However, because the cost of ZigBee communication is relatively expensive, especially when
the number of street lamps is huge, the capital investment is large, and because the road environment is
complex, the anti-interference ability of ZigBee communication is poor, so its communication quality
is difficult to guarantee. Lecces[5] et al. designed a street lamp control system with ambient lighting as a
reference factor. Compared with the traditional street lamp control system, it makes the street lamp
system easier to manage and has a certain degree of intelligence. However, the system is extremely
susceptible to interference from factors such as automobile lighting, tree occlusion, air particles, etc.,
and is not suitable for complex and diversified road environments.
This article comprehensively uses the Internet of Things and other technical means to research and
design a smart street lamp centralized control system based on STM32 and LoRa. STM32 is used as the
control host and combined with various environmental monitoring modules to achieve a fully
controllable "on-demand lighting" operation mode, while centralized. The control device communicates
with the control platform through a computer network to realize remote control and management of
street lights. LoRa is an unlicensed spectrum, and it will not cause excessive economic burden when the
street lamp communication data continues to increase. This centralized control system can improve the
management level of urban intelligent street lighting system, reduce management, operation and
maintenance costs, and avoid the waste of lighting energy, save resources, and promote related lighting
without reducing urban lighting design standards and affecting lighting equipment. The functional
transformation and management innovation of the department create favorable conditions for urban
reform and development.

2.System overall design


The smart street lamp centralized control system consists of a centralized control device and a number
of distributed single-lamp control devices. Figure 1 below shows the overall block diagram of the
centralized control system.
Single lamp
control device
Web management
platform antenna

TTL/485 module LoRa module


Network
switch
Serial port 2
Network powered by Power powered by
STM32 control host
module module
Serial port3
AC
220V
LED display TTL/485 module

Modbus
module
Sensing

Light Temperature Particulate Vehicle flow


GPS module detection and humidity detection detection
module module module module

powered by

Figure 1: Centralized control system framework diagram

The centralized control device mainly includes STM32 control host, two TTL/485 conversion
modules, GPS positioning module, light monitoring module, temperature and humidity monitoring
module, particulate matter monitoring module, traffic flow monitoring module, LoRa communication

2
ICRICA-2021 IOP Publishing
Journal of Physics: Conference Series 2216 (2022) 012045 doi:10.1088/1742-6596/2216/1/012045

module, LED display and power supply module, The STM32 control host is built with STM32 series
ARM microcontrollers as the core supplemented by LCD display screens and peripheral circuits. The
Modbus RTU communication protocol is used between the control host and each sensor module to
collect the information of each monitoring module in turn. According to the collected environmental
data, the control strategy algorithm is used to calculate and output the command to adjust the brightness
of the street lamp, so as to achieve reasonable results by referring to the environmental data. "Lighting
on demand". Managers can adjust control strategies according to actual needs to better meet the needs
of the real environment. The control host is connected with the LoRa communication module for
wireless communication with the single-lamp control device to realize remote control of the single-lamp
control device and information collection of the working state of the street lamp. At the same time, the
control host is connected to the network switch through the network module to access the computer
network, sends display information to the LED display screen connected to the network switch, and
communicates remotely with the remote Web management platform through the computer network.

3.hardware modules of the system


The hardware modules of the system mainly include stm32 control host, communication module, sensor
module, single light controller, LED light, power module and PC terminal. The physical hardware of
the system is shown in Figure 2 below.

Figure 2: System hardware physical map

3.1.STM32 control host


This module uses the low-end 32-bit ARM microcontroller STM32F103ZET6 belonging to the STM32
series. The processor of this MCU is Cortex-M3, and its structure is shown in Figure 3 below.
NMI
interrupt
Cortex‐M3
INTERRUPT[239:0]
sleep
NVIC CM3‐Kernel ETM
SLEEPING
trigger
Instruction Data Trace port
SLEEPDEEP debugging serial line or
MPU multi‐pin
TPIU

Professional
FPB DWT ITM peripheral bus
(external)
Dedicated
peripheral bus APB ROM
(internal) i/f Table

I‐code bus
Bus matrix

D‐code
SW/ SW/
AHB‐AP System bus
JTAG JTAG‐DP

Figure 3: Cortex-M3 block diagram

3
ICRICA-2021 IOP Publishing
Journal of Physics: Conference Series 2216 (2022) 012045 doi:10.1088/1742-6596/2216/1/012045

Cortex-M3 is a low-power processor, originally designed to meet the requirements of fast interrupt
response embedded applications, so its interrupt latency is excellent in similar products. At the same
time, it adopts SWD/JTAG debugging mode, which reduces the system overhead of debugging.[6] At
the same time, the centralized controller in this control system adopts the μC/OS-III operating system,[7]
which is convenient for the management of system resources, shortens the development cycle of the
system, and makes the system more reliable and stable. In short, in addition to rich peripherals for people
to use, this controller also has many advantages such as strong performance, higher code density, bit-
band operation, nestable terminals, low cost, and low power consumption. Its overall performance can
fully meet the requirements of centralized street lamp controllers in any environment.

3.2.Communication module
Commonly used communication methods for street lamp control systems in the market mainly include
power carrier, ZigBee, GPRS, LoRa, NB-IoT and so on.[8] Considering that LoRa communication
technology has the following four characteristics: ①The transmission distance is long, and its effective
transmission distance can reach 20KM in theory. ②LoRa is an authorization-free spectrum, and the
communication cost has advantages over other wireless communication technologies. ③Low power
consumption, further reducing the resource consumption of the entire control system. ④ There are many
nodes in the network, and the network mode is more flexible. Therefore, the local communication
method of this system adopts LoRa wireless communication technology.
The LoRa communication module in this system uses the RS232/485-LORA of AMSAMOTION,
which supports RS485/RS232 serial communication and adopts half-duplex transmission mode. The
transmission distance in the actual environment can reach 7km, in an unobstructed open environment
Up to 10km, if a signal amplifier is added, the communication distance can be increased by another 2km.
Its communication frequency range is 137-525MHZ, with a high sensitivity of -148dBm and a power
amplifier of +20dBm. This LoRa module not only has the characteristics of small size, high sensitivity,
low power consumption and other common modules, but also has the following characteristics: ①Adopt
advanced modulation technology and have the characteristics of long-distance anti-interference.
②Multiple wireless power and multiple serial port baud rates can make communication more flexible.
③Data can be encrypted during communication to ensure the security of data transmission. ④ It has
two communication methods, point-to-point and point-to-many, to meet the control requirements of the
system. Figure 4 shows the working model of the LoRa module in this system.
LoRa LoRa
communication communication
module module

Wireless
communication

Centralized
Single lamp controller
controller
RS485 RS485

Figure 4: LoRa working model diagram

3.3.Sensing module
The sensor module mainly includes a temperature and humidity monitoring module, a light monitoring
module, a particulate matter monitoring module, a traffic flow monitoring module, and a GPS
positioning module.
①The temperature and humidity sensor adopts RS-WS-N-01-1, which is a high-precision, stable
communication temperature and humidity monitoring module. The temperature measurement range is:

4
ICRICA-2021 IOP Publishing
Journal of Physics: Conference Series 2216 (2022) 012045 doi:10.1088/1742-6596/2216/1/012045

-40℃~80℃, the humidity measurement range is 0~100%RH, and the working voltage range is: 10~30
DC. The sensor adopts RS485 data transmission and is composed of an inductive dry and wet element
and a high-performance CMOS microprocessor connection. It has the advantages of ultra-fast response,
high accuracy, strong anti-interference, safety and reliability.
②The light monitoring module adopts GHHB-002-485, which can directly output the numbers
through the 16batAD converter, omitting the complicated calculation process. By setting the threshold,
when the ambient lighting around the street lamp changes, it will be converted to output high and low
levels. The circuit diagram is shown in Figure 5 below. This type of sensor has the characteristics of low
power consumption, high precision, high sensitivity, and high stability, which meets the requirements
of centralized control systems.
D4
LED
D3
LED R3 R4 R5
10K 10K 1K
3+
R2 1
C1 R1 2- port
104 1K 10K
4
port
GND
C2
RL VCC 1
104 GND 2
D0
3

GND

Figure 5: Illumination monitoring module circuit diagram

③The particle monitoring module adopts GHHB-008-485, which can obtain the value of
PM2.5/PM10 in the environment where the equipment is located. The laser scattering principle is
adopted to ensure that the detectable range is 0-999μg/m3. GHHB-008-485 has the following
characteristics: ①Long life, can work continuously for 16000h under normal temperature and pressure.
②Strong anti-interference ability. ③Mute design, the noise is as low as 17dB under normal conditions.
④Low power consumption and high precision.
④The vehicle flow monitoring module adopts K-LC6 and adopts a narrow beam angle K-band with
VCO radar sensor. The detectable distance for vehicles can usually be greater than 62 meters, and its
characteristics of stability and low power consumption can meet the needs of system functions.
⑤The GPS positioning module adopts ATGM332D-5N. Figure 6 below is the functional diagram
of this module. ATGM332D-5N based on Zhongke Micro's fourth-generation low-power GNSS SOC
single chip AT6558 supports single-system positioning of BDS/GPS/GLONASS satellite navigation
systems, as well as any combination of multi-system joint positioning receiver modules, and built-in
antenna detection The circuit realizes the antenna short-circuit protection function. The external antenna
carried by this module adopts an environmentally-friendly ABS shell, which can achieve waterproof,
flame-retardant and high temperature resistance, and adapt to extreme environments. At the same time,
a 4mm ceramic substrate is used internally, and the surface is plated with silver, which can effectively
resist oxidation and increase the service life of the module. The chip uses a two-stage amplifying and
filtering circuit, which can achieve rapid positioning while ensuring the strength of the signal and the
stability of the transmission. The outer layer of the chip adopts tinplate shielding cover, which makes
the module have strong anti-interference ability.

5
ICRICA-2021 IOP Publishing
Journal of Physics: Conference Series 2216 (2022) 012045 doi:10.1088/1742-6596/2216/1/012045

Receive
antenna
SAWExternal LAN AT6558 Power
RF front‐ Multi‐tone interference management
RF_IN suppression main power
end integration:
integrated DCDC、LDO Backup power
NA BDS/GPS/GLONASS/
Clock
Antenna Galileo
management
detection Multi‐system signal Reset
TCXO and reset
processing engine
Peripheral
ROM interface ON/OFF
integration: 1PPS
ATGM332D‐5N 32bit RISC SPI, UART, I2C,
Serial UART/I2C/SPI
Low‐power GPIO
FLASH
CPU core
Battery
RAM backup RTC
and RAM RTC

Figure 6: ATGM332D-5N module function diagram

3.4.Single lamp controller


The single lamp controller uses CY-485-dim. The single lamp controller is directly connected to the
LED driver, and is connected to the LoRa communication module through the RS485 interface to
wirelessly receive and process the control commands sent by the concentrator, and can feedback the
control results or current status to the concentrator to realize the monitoring and control of the street
lights. Each single lamp controller has a fixed physical address (UID), which is convenient for
addressing operation in the lamp network. The main functions realized are: timing switch, brightness
adjustment, current and voltage measurement, power factor calculation and fault alarm, etc. The single-
lamp controller uses a dedicated power calculation technology, so the measurement of electrical
parameters such as voltage, current and power can be accurate to 1%. Figure 7 below shows the wiring
diagram of a single lamp
antenna
Street lamp LoRa
Drive output communication
module
0-10v dimming output
RS485 interface
Single lamp Power line output
LED driver
controller
220V relay
output
Figure 7: Single lamp wiring diagram

3.5.Power module and PC terminal


The power supply module is mainly responsible for providing power support for each module. In order
to meet the voltage requirements of different modules, the power supply module can output 3v, 5V, 12V
and 220V voltage, which can meet the power supply requirements of the control host module, sensor
module, communication module and so on. Figure 8 is the physical diagram of the power module.

6
ICRICA-2021 IOP Publishing
Journal of Physics: Conference Series 2216 (2022) 012045 doi:10.1088/1742-6596/2216/1/012045

Figure 8: Physical Picture of Power Module

The PC terminal can view the data sent by the centralized controller on the Web platform through
the host computer, so that it can remotely monitor the working status of the street lights, and can also
observe the relevant data of the road environment, fault alarms, etc. in real time. The PC terminal is
convenient for the staff to find the faults of the street lights in time and accurately, avoiding the waste
of resources and lag caused by manpower inspections. The staff can also adjust the specific control
strategy of the street light through the PC according to the actual needs, or directly send a command to
the single light controller to change the specific working state of the street light.

4.System implementation

4.1.The functional design of the system


This system uses the Modbus bus to transmit the temperature and humidity, light intensity, latitude and
longitude and other data collected by each sensor module to the centralized controller. The centralized
controller calculates an appropriate brightness value based on the received information and the preset
control strategy coefficient. The centralized control converts the brightness coefficient into a specific
single-lamp control command, and sends the specific command through the LoRa communication
module. When the single-lamp controller receives a control command, it will actively output a 0-10v
dimming voltage to control the working state of the street lamp. Each control host will be equipped with
a complete environmental monitoring device, and each centralized controller can manage no more than
100 single-lamp controllers at the same time. At the same time, the centralized controller is connected
to the computer network through the network switch, so that the detected environmental data and the
specific log files generated by the equipment can be uploaded to the system Web management platform.
Similarly, the staff can also remotely view the operating parameters of the street lights and the status of
the reverse control street lights on the Web platform, so as to find faulty street lights in time, and to
adjust the status of the street lights in time according to the actual environment. Figure 9 is a flowchart
of the main program of the centralized control system.

7
ICRICA-2021 IOP Publishing
Journal of Physics: Conference Series 2216 (2022) 012045 doi:10.1088/1742-6596/2216/1/012045

Start

Power on, serial port 2, serial port 3, network


module initialization, operating system
initialization, create user tasks, assign initial
values to variables

Start the centralized control intelligent street light


system, intelligent street light control mode

According to the Modbus RTU protocol, it sends


the read data command to the detection module
cyclically, and sends the command to one
detection module at a time

T
Whether each module is
working normally, whether
Can you receive the returned
data? Process the received data

Call the LoRa communication program module,


and read the working status of each street lamp
by communicating with the single lamp controller

T
Whether to receive the
remote control center
Data frame sent?

Process the received data


F
frame, respond to commands,
upload system and street lamp
working status
Call the street lamp intelligent control program
module to determine whether it is necessary to
send control commands, and if necessary, send
control commands to the relevant street lamps
wirelessly

Figure 9: System software flow chart

4.2.Data collection and transmission


This system is connected to each other through Modbus bus and STM32 serial port 3 to realize the
communication between each monitoring module and the main control system. The centralized
controller will sequentially and mutually exclusive send detection commands to each module. After the
sensor module receives the command from the centralized controller, it will send back data according
to the command. For example, for a particulate matter monitoring sensor, the specific format of the
Modbus RTU communication protocol adopted is as follows: the initial structure is not less than 4 bytes,
the address code is 1 byte, the function code is 1 byte, the data area is N bytes, and the error check is
16-bit CRC code, the end structure is not less than 4 bytes. Address code: the address of the transmitter,
which is unique in the communication network (factory default 0x01). Function code: The command
function prompt sent by the host, function code 0x03 (read memory data). Data area: The data area is
the specific communication data area (16bits data high byte first).
After the centralized control receives the response frame, it first determines whether the received
data format is correct. If it is wrong, the response frame will be lost. If it is correct, the value in the
response frame will be intercepted and converted. Therefore, the centralized controller can communicate
with the sensor module to obtain the environmental parameters collected by the sensor module.

8
ICRICA-2021 IOP Publishing
Journal of Physics: Conference Series 2216 (2022) 012045 doi:10.1088/1742-6596/2216/1/012045

4.3.System control strategy


The specific state of the street lights in this system is determined by the single-lamp controller, and the
single-lamp controller is determined by the control commands issued by the centralized controller. The
remote terminal can also select the specific control strategy algorithm of the centralized controller
according to actual needs. The design of this centralized control system has built-in traditional street
lamp control methods: interval lighting control method, time control method, light control method and
manual control method, and integrated control method is also built-in. The comprehensive control
method is different from the traditional single control method. This method integrates a variety of factors
that affect the brightness of the street lamp, and comprehensively calculates the final suitable street lamp
brightness. On the one hand, it can meet the needs of citizens for lighting, and on the other hand, it can
also ensure save resources to the greatest extent. Figure 10 below is the flow chart of the integrated
control algorithm.
Calculate the
The centralized Calculate the
collected raw data, Whether
controller issues most suitable
and calculate the to reach the
the command to brightness
Start

sunrise and sunset conditions for


collect according to
time from the turning on the T
environment environmental
latitude and lights
parameters parameters
longitude
F

Convert to The single light


The command is
control controller adjusts the
Determine the sent successfully,

Finish
command, send street light according T
response frame record the
command to the control
format operation, and
through LoRa command and sends
feedback
module a response frame
F

Figure 10: Comprehensive control flow chart

Under the integrated control strategy, the centralized controller first collects GPS module data,
converts the received latitude and longitude into specific sunrise and sunset times, and uses them as the
basic conditions for street lamp control to avoid prematurely lighting or delayed lighting caused by fixed
switching lights. At the same time, the threshold of light and the threshold of particles are set, so that
the street lamp can work in time when encountering extreme weather. Secondly, when the street lamp
is in working condition, the centralized controller will adjust the brightness level of the street lamp in
time to ensure the reasonableness of the lighting brightness when the light intensity, traffic flow and
particle concentration change. The centralized controller also uploads the system's operation log and the
working status of street lights to the cloud every day, and analyzes the working status of the street lights
in the cloud, and continuously optimizes the coefficients of the algorithm to enhance the intelligence of
the street light control algorithm.

4.4.LoRa-based adaptive rate algorithm


Although LoRa has a strong anti-interference advantage over other wireless communication methods,
due to the diversity and complexity of the road environment and weather conditions, the LoRa wireless
signal is also susceptible to interference during data transmission. Therefore, if only a single rate and
signal strength are used for information data transmission, there is a high probability that the
transmission requirements of each communication node cannot be met.[9] But when the strength of the
transmission signal is blindly strengthened, the rate will be reduced, resulting in a waste of resources.
Conversely, although signal weakening will increase the transmission rate, the data transmission may
not be stable enough, resulting in a higher packet loss rate. In order to measure the performance of the
communication system, this article introduces a commonly used parameter index, throughput.
Throughput refers to the number of requests processed by the system in a unit time, which represents
the performance of the entire system. [10] Under the theoretical conditions, the calculation formula of the
throughput of the communication network is shown in formula (1):

9
ICRICA-2021 IOP Publishing
Journal of Physics: Conference Series 2216 (2022) 012045 doi:10.1088/1742-6596/2216/1/012045

8   L data - IPheader - UDPheader  (1)


Throuthput m ax 
Tdifs  CW  Tdata  Tsifs  Tack  

Where Throuthput is the throughput, Ldata is the length of the data frame, IPheader is the header of the
IP datagram, UDPheader is the header of the UDP message, Tdifs is the gap between short frames, Tsifs is
the gap between general frames, and Tack represents the confirmation time ,  represents the average
delay of the data frame. It can be seen from the above formula that the throughput of the entire network
actually represents the relationship between the bit error rate and the rate. Therefore, dynamically
selecting the appropriate transmission rate according to the actual specific environmental conditions
combined with the technical characteristics of LoRa, while meeting the requirements for communication
rate and communication quality, is of great significance to the reduction of power consumption and
work efficiency of the entire system.[11]
This paper proposes an adaptive rate algorithm based on LoRa, the core of which is to obtain the
real-time changing state of the wireless channel (CSI). Generally, there are two methods for obtaining
status information: closed-loop type (direct measurement of channel information) and open-loop type
(based on statistical information). Considering that the open-loop algorithm is based on the parameter
statistics (throughput, frame error rate, confirmation frame) of the data transmitted in a certain period of
time in the wireless channel as the basis for calculating the status information, it has a certain hysteresis.
However, the LoRa data transmission rate is low, and the communication time is short, and the open-
loop algorithm cannot be used to accurately analyze the current channel situation. So what this design
adopts is based on the closed-loop method, namely through the current channel state parameters to
directly evaluate and select the appropriate transmission rate. At the same time, combined with the
technical characteristics of LoRa, the communication rate can be automatically selected according to
different environments. This algorithm uses the handshake mechanism (RTS/CTS). First, the receiver
will calculate the signal strength value (RSSI) of the channel at the moment. The calculation method is
shown in formula (2).
Rssi  PacketRssi  PacketSnr  0 .25  164 (2)
Where Rssi is the signal strength value, PacketRssi is the noise ratio of the data packet received by the
node, PacketSnr is the signal strength of a single data packet, and -164 is the compensation value. After
calculating q, select the most suitable rate according to the pre-set signal strength and rate
correspondence table, and tell this to the sender as the best rate, and the sender and receiver will transmit
data at this rate. This algorithm optimizes the LoRa network to ensure communication efficiency while
reducing the power consumption of the entire system. The process diagram of the algorithm is shown in
Figure 11 below:
① In the initial state, A sends a connection request
packet to B at a specified rate

② B receives the request, calculates the current channel


strength, matches the best rate, and sends this rate
to A. At this time, end B is set to the best rate.
Sender A Receiver B
③ End A sends data at the optimal rate,
and both ends start communication.

④The B end sends an ACK to confirm that the data is


received, the communication between the two parties
ends, and the rate is reset to the original specified rate.

Figure 11: Schematic diagram of adaptive rate algorithm

4.5.Web software platform design


The background software of the smart street lamp centralized control system based on STM32 and LoRa
mainly involves many functions such as viewing the working status of street lamps, adjusting street

10
ICRICA-2021 IOP Publishing
Journal of Physics: Conference Series 2216 (2022) 012045 doi:10.1088/1742-6596/2216/1/012045

lamp control strategies, and adjusting the status of regional street lamps. As shown in Figure 12 below,
the background management system consists of three parts.

Figure 12: Web platform management interface

The left menu bar can choose to implement functions such as street lamp monitoring, strategy
management, fault alarm, historical data management, lamp management and so on, which can meet the
functional needs of most users. The middle part will show the specific distribution location of street
lights, which can help the administrator understand the working status of the street lights in the whole
area. The right side of the interface displays street lamp alarm information, including street lamp location,
alarm time, fault type, etc., combined with the map display, you can quickly find the location of the
damaged street lamp, which is convenient for timely maintenance.

5.Conclusion
This article focuses on the smart street lamp centralized control system based on STMF103 and LoRa,
which mainly combines the design of the Internet of Things technology and wireless communication
technology. Compared with the traditional street lamp control method, this design mainly has the
following four points: (1) This centralized control system uses the longitude and latitude of the street
lamp as the basic condition for switching the lamp in terms of controlling the street lamp, and combines
geographical location, traffic flow, environmental brightness, changes in parameters such as particulate
matter automatically adjust the brightness of street lights to achieve "on-demand lighting" and save a lot
of power resources. (2) The centralized controller is connected with the remote Web platform, and the
working status and fault alarm information of street lights can be viewed remotely.
(3) The LoRa communication method is adopted between the centralized controller and the single
lamp controller. Compared with other communication methods, this method has the characteristics of
low power consumption, long communication distance, strong anti-interference, and low cost. Therefore,
this communication method is very suitable for A scene with a huge number of street lights. (4) A variety
of control strategies are provided, and the administrator can freely choose the street lamp control strategy
algorithm according to the actual needs, which is more in line with the actual needs. The system has
four control strategies to choose from, and the system executes a comprehensive control strategy by
default.
Generally speaking, the centralized control system has reasonable structure and complete functions,
can meet the needs of any environment, and has actual commercial value and application value.

ACKNOWLEDGMENTS
The completion of the paper is attributed to many people’s support. First and foremost, I want to extend
my heartfelt gratitude to my supervisor, Yanhua Yang. He gives me much help and advice during the
whole process of my writing. My thanks also go to the authors whose books and articles have given me
inspiration in my writing of the paper.

11
ICRICA-2021 IOP Publishing
Journal of Physics: Conference Series 2216 (2022) 012045 doi:10.1088/1742-6596/2216/1/012045

REFERENCES
[1] HE Junjian, ZHU Zhaoyou, WANG Fugui & LI Junhua. (2019).Illumination Control of Intelligent
Street Lamps Based on Fuzzy Decision.(eds.)Proceedings of 2019 International Conference
on Intelligent Transportation, Big Data & Smart City(ICITBS 2019)(pp.536-539).Conference
Publishing Services.
[2] Li Shanchuan, Zhang Wei & Li Yunxin. (2021).Research on the Application of Wireless
Communication Technology Based on Computer Technology in Intelligent Street Lamp
Design. Journal of Physics: Conference Series (2), doi:10.1088/1742-6596/1992/2/022098.
[3] Zhou Baozhu, Liu Yuheng, Xie Yu, Wang Junpeng, Hao Zeqi & Meng Jian.(2021).Research and
Application of Intelligent Street Lamp Platform Based on Ubiquitous Internet of Things.
Journal of Physics: Conference Series(1), doi:10.1088/1742-6596/1920/1/012068.
[4] Wang Zirong. (2021).Greenhouse data acquisition system based on ZigBee wireless sensor network
to promote the development of agricultural economy. Environmental Technology &
Innovation(prepublish), doi:10.1016/J.ETI.2021.101689.
[5] Leccese, F.. (2012). Remote-control system of high efficiency and intelligent street lighting using
a zigbee network of devices and sensors. IEEE Transactions on Power Delivery, 28(1), 21-28.
[6] Fernandez Lara, RuizdeAzua Joan Adria, Calveras Anna & Camps Adriano.(2021).On-Demand
Satellite Payload Execution Strategy for Natural Disasters Monitoring Using LoRa:
Observation Requirements and Optimum Medium Access Layer Mechanisms. Remote
Sensing (19), doi:10.3390/RS13194014.
[7] Ameloot Thomas, Van Torre Patrick & Rogier Hendrik. (2021).Variable Link Performance Due to
Weather Effects in a Long-Range, Low-Power LoRa Sensor Network.. Sensors (Basel,
Switzerland) (9), doi:10.3390/S21093128.
[8] Kufakunesu, R., Hancke, G. P., & Abu-Mahfouz, A. M.. (2020). A survey on adaptive data rate
optimization in lorawan: recent solutions and major challenges. Sensors, 20(18).
[9] Alset Utkarsh, Mehta Hrishikesh & Kulkarni Atul.(2021).Evaluation of Antenna Dependent
Wireless Communication Based on LoRa For Clear Line of Sight (CLOS) And Non-Clear
Line of Sight (NC-CLOS) Applications. Journal of Physics: Conference Series(3),
doi:10.1088/1742-6596/1964/3/032001.
[10] Reda, H. T., Daely, P. T., Kharel, J., & Shin, S. Y.. (2017). On the application of iot: meteorological
information display system based on lora wireless communication. IETE Technical Review,
1-10.
[11] Qing-hai ZHANG & Po LI. (2017). Design and Implementation of an Intelligent Street Lamp
Network Node Based on 6LoWPAN Technology.(eds.)Proceedings of 2017 International
Conference on Computer, Electronics and Communication Engineering(CECE2017)(pp.17-
22).DEStech Publications.

12

You might also like