Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Develop to mdm_client branch #342

Merged
merged 22 commits into from
Nov 29, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
67a0e5d
Mesh channel width changed to 20mhz
dania-tii Nov 16, 2023
9564e36
Pytorch package installation
dania-tii Nov 15, 2023
e14e6f9
Install aarch pytorch package if linux os
dania-tii Nov 16, 2023
5853c5c
updated pytorch installation for aarch64
dania-tii Nov 17, 2023
3da387a
updated pytorch installation for aarch64
dania-tii Nov 17, 2023
b6841ec
removed dependencies installation from entrypoint_nats.sh
dania-tii Nov 17, 2023
99e2f38
Improved script with bug fixes and resolving the issue of infinite ex…
anshul-tii Nov 6, 2023
8253375
Functional and regression test cases for the Signal processing assist…
anshul-tii Nov 6, 2023
4b9daa9
Adding Basic performance test Cases for the SP-CRA Implementation
anshul-tii Nov 6, 2023
739aaa2
Adding relevant security test cases for SP-CRA Implementation
anshul-tii Nov 6, 2023
17873bc
Minor Comments formating
anshul-tii Nov 6, 2023
ecb3d31
Added following changes: sendall() is used instead of send, fix the …
anshul-tii Nov 8, 2023
678c5ce
Resolved space issue to maintian uniformity in code pointed by Mika
anshul-tii Nov 8, 2023
d7224d7
Modified the script to comply with the main script. THe entry point o…
anshul-tii Nov 17, 2023
218764f
main.py script acting as an entry point for all securiy features. THe…
anshul-tii Nov 17, 2023
b6f08cd
RSS Authentication Scripts
anshul-tii Nov 21, 2023
9121a9b
Modified the RSS_Auth Class implementation to do away with passing s…
anshul-tii Nov 21, 2023
d27591c
Modified the main.py script and the feature.yaml file to consider RSS…
anshul-tii Nov 21, 2023
73684f7
Added a debug flag option to control the disply of authentication tab…
anshul-tii Nov 21, 2023
0046760
Making all feature disbaled by default in accordance to Sebastien com…
anshul-tii Nov 22, 2023
6c46881
Jamming avoidance init.d service
dania-tii Nov 28, 2023
efb6af1
Merge pull request #340 from tiiuae/ja_service
DamienDeMayaTII Nov 29, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions common/scripts/mesh-11s_nats.sh
Original file line number Diff line number Diff line change
Expand Up @@ -318,6 +318,8 @@ network={
mesh_fwding=0
# 11b rates dropped (for better performance)
mesh_basic_rates=60 90 120 180 240 360 480 540
disable_vht=1
disable_ht40=1
}
EOF

Expand Down
9 changes: 9 additions & 0 deletions common/scripts/mesh-helper.sh
Original file line number Diff line number Diff line change
Expand Up @@ -88,3 +88,12 @@ source_configuration() {
exit 1
fi
}

# Function to extract value from MS2.0 features YAML file
YAML_FILE="/opt/mesh_com/modules/sc-mesh-secure-deployment/src/2_0/features.yaml"

extract_features_value() {
local key=$1 # key name searched
local file=$2
grep "^${key}:" "$file" | sed "s/^${key}: //"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
#!/bin/sh


# The daemon's name (to ensure uniqueness and for stop, restart and status)
name="jamming_avoidance"

# The path of the Python executable
python_exec="/usr/bin/python"

# The path of the Python script
python_script="/opt/mesh_com/modules/sc-mesh-secure-deployment/src/2_0/features/jamming/jamming_setup.py"

command_args=""

[ -x "$python_exec" ] || exit 0
[ -f "$python_script" ] || exit 0

# The path of the daemon executable
daemon="/usr/bin/daemon"

# Other configuration parameters for the service
pidfiles="/var/run"
user=""
chroot=""
chdir=""
umask=""
stdout="daemon.info"
stderr="daemon.err"
daemon_start_args="--delay=10 --attempts=1 --respawn"


case "$1" in
start)
if "$daemon" --running --name "$name" --pidfiles "$pidfiles"
then
echo "$name is already running."
else
echo -n "Starting $name..."
"$daemon" $daemon_start_args \
--name "$name" --pidfiles "$pidfiles" \
${user:+--user $user} ${chroot:+--chroot $chroot} \
${chdir:+--chdir $chdir} ${umask:+--umask $umask} \
${stdout:+--stdout $stdout} ${stderr:+--stderr $stderr} \
-- \
"$python_exec" "$python_script" $command_args
echo done.
fi
;;


stop)
if "$daemon" --running --name "$name" --pidfiles "$pidfiles"
then
echo -n "Stopping $name..."
"$daemon" --stop --name "$name" --pidfiles "$pidfiles"
echo done.
else
echo "$name is not running."
fi
;;


restart|reload)
if "$daemon" --running --name "$name" --pidfiles "$pidfiles"
then
echo -n "Restarting $name..."
"$daemon" --restart --name "$name" --pidfiles "$pidfiles"
echo done.
else
echo "$name is not running."
exit 1
fi
;;


status)
"$daemon" --running --name "$name" --pidfiles "$pidfiles" --verbose
;;


*)
echo "usage: $0 <start|stop|restart|reload|status>" >&2
exit 1
esac


exit 0
7 changes: 7 additions & 0 deletions modules/sc-mesh-secure-deployment/src/2_0/features.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# By Defualt the features are disabled. To enable please type true

PHY: false
RSS: false
IDS: false
jamming: false

Loading
Loading