Code to scan the nearby BLE advertisments
See Releases »
Research Paper
·
Test Results
·
See Global Usage
Table of Contents
This code will be used in order to listen the advertising BLE devices with an arduino to spot potential attacker.
- Install the latest version of Python 3 with
pip(included): https://www.python.org/downloads/ - Install the latest version of PlatformIO: https://docs.platformio.org/en/latest//core/installation.html#installation-methods
pip install -U platformio
- Clone the project
git clone https://github.com/PIR-IDS/ble-scanner.git
- Install the dependencies by typing the following command while being in the project root:
pio pkg install
Using an IDE
If you want to use a specific IDE with this project, you can list the compatible ones by checking the --ide line with:
pio init -hChoose your IDE with:
pio init --ide <ide>
⚠️ DO NOT COMMIT THE NEWLY CREATED FILES AFTER THE IDE INIT COMMAND.You can add their name/location in the
.git/info/excludefile to exclude them from the VCS without affecting the.gitignorefile. You will also have to add the build directories created by your IDE in order to keep your artifacts outside of the project repository.
Use the following command in the project root to build and upload the firmware in the default debug mode (with the board plugged):
pio run -t uploadBy adding the -e release option you will be in release mode.
You can also build the firmware in the default debug mode without uploading:
pio runAgain, by adding the -e release option you will be in release mode.
TODO
Once the code is running on the Arduino, you can visualize the data in a terminal with the following command :
pio device monitorYou can save this output in a text file :
pio device monitor -f default -f log2fileDetails
TODO
Romain Monier [ GitHub ] – Co-developer
Noé Chauveau [ GitHub ] – Co-developer
Project Link : https://github.com/PIR-IDS/ble-scanner
Organization Link : https://github.com/PIR-IDS