Table of Contents
This code is already setup on the Raspberry Pi 5s and Raspberry Pi Picos, so only the Usage section needs to be looked at. However, we have also included additional instructions below just in case you want to change the code yourself and test things out.
The code is split into 3 main parts:
-
main/- this includes all the code used on the Raspberry Pi 5s. -
pico/- this includes all the code used on the Raspberry Pi Picos. -
web-app/- this includes the code for the simple web application which displays the current active users (ESP32s) the Raspberry Pi 5 is searching for, and their distance to the Raspberry Pi 5.
There are 2 methods to setup and run this code. The first is much easier to setup and is therefore recommended.
- Pyinstaller (Python)
To build the application, run the following command after navigating to main/:
pyinstaller pyinstaller.specFrom the same directory, run the following command to run the script:
./dist/proximity_gateway/proximity_gateway- Pip (Python)
To install all the dependencies, run the following command from the main/ directory:
pip install -r requirements.txtTo run the script from the same directory, run the following command:
python main.py-
CircuitPython
-
Thonny
Open pico-hid.py with Thonny and save the file to the Pico with the filename code.py. This is enough to get it so that whenever the Pico gets power, it will automatically run the contents of the file.
- NodeJS
First, navigate to the web-app/ directory. Then, run the following command to install the necessary packages:
npm installFrom the same directory as Installation, run the following command to run the website:
npm run devRefer to the open quantum safe liboqs get started page.
TODO
This project is licensed under the terms of the MIT license. Refer to LICENSE for more information.