Harvard-REACT / WSR-Toolbox-cpp

Core C++ code repo for WSR toolbox with Cython wrapper.
BSD 2-Clause "Simplified" License
3 stars 1 forks source link

Verifying mac-id in config and what is actually detected. #16

Open ninja-hu opened 3 years ago

ninja-hu commented 3 years ago

Also, to know the RX mac-id which is actually in the csi data, you can check the following lines:

log [calculate_AOA_profile]: =========================
log [calculate_AOA_profile]: Profile for RX_SAR_robot MAC-ID: 00:21:6A:C5:FC:0, TX_Neighbor_robot MAC-ID: 00:21:6A:3E:F5:7E
Reading from file : 
/home/jadhav/REACT-Projects/WSR-Toolbox-cpp/data/Line-of-Sight/2D_trajectory_sample/csi_data/csi_tx1_2021-03-04_154746.dat
log [Utils]: file size : 212992
log [Utils]: Completed reading data packets
log [Utils]: Exiting CSI File Read
log [calculate_AOA_profile]: Detected RX MAC IDs = 00:21:6A:C5:FC:0, Packet count: = 930

MAC-id from config file is here:

 Profile for RX_SAR_robot MAC-ID: 00:21:6A:C5:FC:0,

and the actual detected RX mac-id is here:

log [calculate_AOA_profile]: Detected RX MAC IDs = 00:21:6A:C5:FC:0, Packet count: = 930

if there is a mismatch between the two, then the AOA profile won't be calculated and you'll see this error:

log [calculate_AOA_profile]: Getting AOA profiles
log [calculate_AOA_profile]: =========================
log [calculate_AOA_profile]: Profile for RX_SAR_robot MAC-ID: X:X:A:A:A:0, TX_Neighbor_robot MAC-ID: 00:21:6A:3E:F5:7E
Reading from file : 
/home/jadhav/REACT-Projects/WSR-Toolbox-cpp/data/Line-of-Sight/2D_trajectory_sample/csi_data/csi_tx1_2021-03-04_154746.dat
log [Utils]: file size : 212992
log [Utils]: Completed reading data packets
log [Utils]: Exiting CSI File Read
log [calculate_AOA_profile]: Detected RX MAC IDs = 00:21:6A:C5:FC:0, Packet count: = 930
log [calculate_AOA_profile]: Packets for TX_Neighbor_robot collected by RX_SAR_robot : 930
log [calculate_AOA_profile]: Packets for RX_SAR_robot collected by TX_Neighbor_robot : 0
log [calculate_AOA_profile]: Calculating forward-reverse channel product using Timestamps 
Segmentation fault (core dumped)