Skip to content

This repo contains the new data-collector script used to collect data for BLE-mesh IDS from ESP boards

Notifications You must be signed in to change notification settings

netlab-sapienza/data-collector-IDS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

data-collector-IDS

This repo contains the new data-collector script used to collect data for BLE-mesh IDS from ESP boards

Introduction

This script performs the following actions:

  • identifies all the ESP32 boards connected via USB
  • launches the monitor function corresponding to firmware in the directory passed as argument
  • creates a .csv file for each connected device in the directory ../results/name_passed_as_arg_timestamp
  • collects all the log entries with the tag "BenchMark", splits the words in the body of the log and saves an entry into the csv file corresponding to the source ESP32

Requirements

Usage

In your firmware add log commands like the following one:

ESP_LOGI("BenchMark", "this is a dummy sentence");

This will be stored into a .csv as: 1601065958772355,this,is,a,dummy,sentence


Clone the repo then:

cd data-collector-IDS
python3 data-collector-IDS.py firmware-path output-directory-name

firmware-path [Mandatory] must be the path containing the script to launch, the script looks for "sdkconfig" file inside the passed directory to recognize it as a valid firmware.
output-directory-name [Mandatory] must be the name of the desired output directory, it can only contain **letters numbers - _ **, no space allowed

To terminate the script press ctrl+] until the execution stops (an error is launched), then ctrl+c

Output .csv files will be found in the directory containing the script, in ../results/output-directory-name_timestamp

About

This repo contains the new data-collector script used to collect data for BLE-mesh IDS from ESP boards

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published