foysalhaque commited on
Commit
b18de46
·
verified ·
1 Parent(s): d3b87bf

Delete Feedback_split_stations.sh

Browse files

Remove the previous version of the extraction script

Files changed (1) hide show
  1. Feedback_split_stations.sh +0 -74
Feedback_split_stations.sh DELETED
@@ -1,74 +0,0 @@
1
- #!/bin/bash
2
-
3
- <<com
4
-
5
- This script extract the MU-MIMO feedbacks of the available stations
6
- from the raw pcap captures.
7
-
8
- Copyright (C) 2022 Khandaker Foysal Hauqe
9
- email: haque.k@northeastern.edu
10
-
11
- This program is free software: you can redistribute it and/or modify
12
- it under the terms of the GNU General Public License as published by
13
- the Free Software Foundation, either version 3 of the License, or
14
- (at your option) any later version.
15
-
16
- This program is distributed in the hope that it will be useful,
17
- but WITHOUT ANY WARRANTY; without even the implied warranty of
18
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19
- GNU General Public License for more details.
20
-
21
- You should have received a copy of the GNU General Public License
22
- along with this program. If not, see <https://www.gnu.org/licenses/>.
23
-
24
- com
25
-
26
- cd "raw_data"
27
-
28
- env=("LAB1" "LAB2" "CONF1")
29
- env_correspondance=("0" "1" "2")
30
-
31
- MAC=("f0:d4:15:ca:4b:ee" "f0:d4:15:ca:4a:d6" "98:59:7a:8a:c0:28" "f0:d4:15:ca:4a:8b" "f0:d4:15:ca:4a:c2" "98:59:7a:8a:47:65" "98:59:7a:8a:44:b3" "f0:d4:15:ca:a3:2d" "98:59:7a:8a:43:e6" "98:59:7a:8a:5e:c6" "98:59:7a:8a:60:88" "98:59:7a:8a:5e:6c" "f0:d4:15:ca:4c:bb" "f0:d4:15:ca:8b:04" "f0:d4:15:ca:a5:12" "98:59:7a:8a:5e:49" "f0:d4:15:ca:4f:a9" "f0:d4:15:ca:50:0d")
32
-
33
-
34
- for i in ${!env[@]};do
35
-
36
- echo "The Environment is '${env[i]}'"
37
-
38
- cd "${env[i]}"
39
- pwd
40
-
41
-
42
- for FILENAME in ./*
43
- do
44
- editcap -r $FILENAME ${FILENAME:2:2}'_edited' 10000-99999999
45
- sleep 2
46
- mv ${FILENAME:2:2}'_edited' $FILENAME
47
-
48
- echo "$FILENAME"
49
- Name_Start=${FILENAME:2:2}
50
- echo "$Name_Start"
51
-
52
- for sta in "${MAC[@]}"
53
- do
54
- last_two_MAC="${sta: -2}"
55
-
56
- if [ "$last_two_MAC" == "$Name_Start" ]
57
- then
58
- echo "the matched MAC address is '$sta'"
59
-
60
- Name_End="_${env_correspondance[i]}.npy"
61
- Vmatrices='../../vtilde_matrices/'$Name_Start$Name_End
62
- Angles='../../angles/'$Name_Start$Name_End
63
-
64
- pwd
65
- python ../../../Wi-BFI/main.py $FILENAME AX SU 4x2 160 $sta 6000 $Vmatrices $Angles
66
-
67
- fi
68
- done
69
-
70
- done
71
-
72
- cd ../
73
-
74
- done