2 METHODOLOGY
The overall structure of STM32 system is composed
of two modules: central module and key module. As
shown in Figure 1, the central module of STM32
system is installed on the car body, while the key
module is installed on the smart key. The two
modules communicate by wireless two-way way.
Among them, the central module has realized the
functions of decryption, verification and password
modification, while the key has realized the function
of switch lock (Kim T, Jin B, Cha S H, et al, 2017;
Kotb A O, Shen Y C, Zhu X, et al, 2018).
Central
Module
Circuit
Key
Module
Circuit
1. Send boot codes
2. Send Random
Address
3. Send Encrypted
Information
4. Return the check
results
Figure 1. Overall structure diagram of automobile anti-
theft system.
In STM32 system, when the circuit starts to work,
both modules will be in a state of waiting to receive
signals. The central module waits for the switch lock,
while the key module waits for the central module to
send the relevant information of the vehicle
condition. Two circuit modules will set the same
password, and each password will have a different
address. The main key module will ask the central
module if it can open the lock, then the central
module will send a random eight-digit random
address and the key module will find the
corresponding password according to the received
address. At the same time, after encryption, it is sent
back to the central module, the central module will
verify it and the relevant indicator switch locks will
be made only when it passes the verification (Trope
R L, Smedinghoff T J, 2018; Woo S, Jo H J, Lee D
H., 2015).
3 RESULTS AND DISCUSSION
The software and hardware of STM32 single-chip
automobile anti-theft system adopt the optimal
processing performance. The hardware circuit is
mainly dominated by the smallest system of STM32
single-chip microcomputer. It includes four modules:
power supply, wireless communication circuit,
memory chip circuit and LCD (liquid crystal display)
display circuit (Atif Y, Ding J, Jeusfeld M A, 2016).
As a main controller, STM32 single-chip
microcomputer combines different modules to form
a complete and stable circuit network, as shown in
Figure 2.
The software design of the system is to realize
the wireless communication between the central
module and the key module. The central module
uses a timing tracker to generate the corresponding
random codes, which are sent to the key module by
wireless communication (Werle M, Will P,
Hülshorst T, et al, 2016; Matthews V O, Uzairue S I,
Noma-Osaghae E, et al, 2018). The random code is
the address corresponding to the password, and the
address received by the key module needs to query
the corresponding password from EEPROM, and
then encrypt and send it to the central module after
the query action is completed (Walter A, Finger R,
Huber R, et al, 2017), which effectively prevents
illegal elements eavesdropping and theft. At the
same time, each address is different, representing
that the corresponding eight-digit digital password is
also different, which better enhance the car's anti-
theft function (Kim C, Shin D, Shin D, et al, 2016,
as shown in Figure 3.
3.1 System Hardware Design
STM32F103VET6 is used as the main controller,
and STM32F103VET6 is a 32-bit MCU based on
ARM Cortex-M3 core produced by STM Company.
Its working frequency can be as high as 72M, which
is three or four times faster than the processing
speed of general single-chip microcomputer such as
8/16 units. STM32 has a beautiful design, and Flash
can be programmed internally. It also has 64KB
internal RAM, 3 SPI interfaces and 5 UART
interfaces, which fully meets the functional
requirements of the main controller (Li Z, Pei Q,
Markwood I, et al, 2018).
The first module in the hardware is the voltage
stabilized power supply circuit. The corresponding
working voltage of STM32 SCM is about 5V. As we
all know, the power sources of batteries usually used
do not reach 5V. The main reason for the realization
of this system is that a voltage stabilized power
supply circuit is designed. The chip supporting the
voltage stabilized power supply circuit is L7805.
The input voltage range of L7805 is between 6V and
21V. At the same time, two capacitors are connected
at the input and output of chip L7805. The purpose
is to consider the ripple and reduce the influence of
ripple on the voltage. In this way, the working
voltage of the wireless communication chip is