To get started with the tracking system, configure the config.py file located inside the data_layer/ directory:
DATABASE_CONFIG = {
'user': 'root',
'password': 'define_password',
'host': '127.0.0.1',
'database': 'database_name'
}The system uses three Raspberry Pi 4 devices, each configured for different functionalities. The details of each are outlined below:
- Purpose: Display interface for the tracking system
- SSH Command:
ssh pi@172.16.1.16
- Display will start automatically after booting.
- Purpose: Alarm controller for tracking system alerts
- SSH Command:
ssh pi@172.16.1.17
- To start the alarm, activate the virtual environment and then start
run_alarm.sh.
- Purpose: RFID reader for user identification and tracking
- SSH Command:
ssh pi@172.16.1.18
- To start the RFID process, start directly the script
run_rfid.sh.
To allow connections to the Mosquitto broker from remote clients, follow these steps:
-
On your Windows machine, run a text editor as administrator and paste the following text:
listener 1883 allow_anonymous true -
This creates a listener on port 1883 and allows anonymous connections. Save the file to
"C:\Program Files\Mosquitto\"with a.confextension, for example,your_conf_file.conf. -
Open a terminal window and navigate to the Mosquitto directory. Run the following command to start the broker:
mosquitto -v -c your_conf_file.conf
Where:
-c: specifies the broker config file.-v: verbose mode to enable all logging types. This overrides any logging options given in the config file.
Make sure to activate the MySQL database service and set up the Mosquitto broker as part of your system initialization.
The system follows a modular software architecture. Below is a high-level overview:
Below is a high-level overview on the hardware architecture: