diff --git a/cmake_targets/tools/build_helper b/cmake_targets/tools/build_helper index 48be9ec905..3447bc6941 100755 --- a/cmake_targets/tools/build_helper +++ b/cmake_targets/tools/build_helper @@ -164,9 +164,6 @@ clean_all_files() { set_openair_env dir=$OPENAIR_DIR/cmake_targets rm -rf $dir/ran_build $dir/ran_build_noLOG - rm -rf $dir/lte-simulators/build - rm -rf $dir/oaisim_build_oai/build $dir/oaisim_build_oai/CMakeLists.txt - rm -rf $dir/autotests/bin $dir/autotests/log $dir/autotests/*/build } ############################################ diff --git a/cmake_targets/tools/mem_usage b/cmake_targets/tools/mem_usage deleted file mode 100755 index 4290372f02..0000000000 --- a/cmake_targets/tools/mem_usage +++ /dev/null @@ -1,27 +0,0 @@ -#!/usr/bin/env bash - -pid=$1 -sleep_sec=0.5 - -if [ "$2" != "" ] ; then -sleep_sec=$2 -fi -#declare -r cnt=$sleep_sec -OUTPUT_FILE="/tmp/mem_usage_${pid}_${sleep_sec}.csv" -echo "RSS(KB);PSS(KB);SHARED_CLEAN(KB);SHARED_DIRTY(KB);PRIVATE)KB)" >> $OUTPUT_FILE -echo "Mem usage for PID $pid with observation period of ${sleep_sec}" - -while ps $pid >/dev/null -do - if [ -f /proc/$pid/smaps ]; then - rss=$(awk '/^Rss/ {i = i + $2} END {print i}' /proc/$pid/smaps) - pss=$(awk '/^Pss/ {i = i + $2 + 0.5} END {print i}' /proc/$pid/smaps) - sc=$(awk '/^Shared_Clean/ {i = i + $2} END {print i}' /proc/$pid/smaps) - sd=$(awk '/^Shared_Dirty/ {i = i + $2} END {print i}' /proc/$pid/smaps) - pc=$(awk '/^Private_Clean/ {i = i + $2} END {print i}' /proc/$pid/smaps) - pd=$(awk '/^Private_Dirty/ {i = i + $2} END {print i}' /proc/$pid/smaps) - echo "$cnt;$rss;$pss;$sc;$pc;$pd;" >> $OUTPUT_FILE - fi - - sleep $sleep_sec -done diff --git a/cmake_targets/tools/start_bladerf.py b/cmake_targets/tools/start_bladerf.py deleted file mode 100755 index ad83d5d517..0000000000 --- a/cmake_targets/tools/start_bladerf.py +++ /dev/null @@ -1,46 +0,0 @@ -#!/usr/bin/python -import time -import serial -import os -from pyroute2 import IPRoute -import sys -import re -import threading -import signal -import traceback -import commands - -if os.environ.get('OPENAIR_DIR') == None: - print "Error getting OPENAIR_DIR environment variable" - sys.exit(1) - -sys.path.append(os.path.expandvars('$OPENAIR_DIR/cmake_targets/autotests/tools/')) - -from lib_autotest import * - -def reset_bladerf(): - stringIdBladeRF='OpenMoko, Inc' - status, out = commands.getstatusoutput('lsusb | grep -i \'' + stringIdBladeRF + '\'') - if (out == '') : - print "BladeRF not found. Exiting now..." - sys.exit() - p=re.compile('Bus\s*(\w+)\s*Device\s*(\w+):\s*ID\s*(\w+):(\w+)') - res=p.findall(out) - BusId=res[0][0] - DeviceId=res[0][1] - VendorId=res[0][2] - ProductId=res[0][3] - usb_dir= find_usb_path(VendorId, ProductId) - print "BladeRF Found in directory..." + usb_dir - cmd = "sudo sh -c \"echo 0 > " + usb_dir + "/authorized\"" - os.system(cmd + " ; sleep 5" ) - cmd = "sudo sh -c \"echo 1 > " + usb_dir + "/authorized\"" - os.system(cmd + " ; sleep 5" ) - -os.system ('sudo -E bladeRF-cli --flash-firmware /usr/share/Nuand/bladeRF/bladeRF_fw.img') - -print "Resettting BladeRF..." - -reset_bladerf() - -os.system ("dmesg|tail") diff --git a/common/utils/LOG/README.txt b/common/utils/LOG/README.txt index d56c5a2661..2e95fa68ae 100644 --- a/common/utils/LOG/README.txt +++ b/common/utils/LOG/README.txt @@ -5,7 +5,6 @@ Signals may have two types: - Variables to dump the state of a variable (range 0..2^64 - 1). - Functions to log function usage (implies two call to VCD API: IN and OUT) -This module is always built in, but is only used when -V oaisim option is added. The VCD file generated is called openair_vcd_dump.vcd and is located in the execution folder. Usage: diff --git a/common/utils/T/DOC/T/basic.md b/common/utils/T/DOC/T/basic.md index 5f1c977044..318bf157c3 100644 --- a/common/utils/T/DOC/T/basic.md +++ b/common/utils/T/DOC/T/basic.md @@ -56,9 +56,7 @@ softmodem to wait for a tracer. The default port is 2021. The option `--T_dont_fork` allows one to use gdb to debug problems with the softmodem. Note that you then may have some "zombie" processes after crashes, in which case you can run -`sudo killall -9 lte-softmodem` to get rid of them (`lte-softmodem` -to be replaced by the program you trace, like `lte-softmodem-nos1` -or `oaisim`). +`sudo killall -9 lte-softmodem` to get rid of them. The option `--T_stdout` also accepts values 0 (to disable output on the terminal and only use the T tracer) and 1 (to disable diff --git a/common/utils/T/DOC/T/record.md b/common/utils/T/DOC/T/record.md index c2e58e1e20..67782a0c10 100644 --- a/common/utils/T/DOC/T/record.md +++ b/common/utils/T/DOC/T/record.md @@ -11,7 +11,7 @@ to activate/deactivate specific traces): ./record -d ../T_messages.txt -o record.raw -ON -off VCD -off HEAVY -off LEGACY_GROUP_TRACE -off LEGACY_GROUP_DEBUG ``` -And then you run the program to trace (`lte-softmodem`, `oaisim`, whatever) +And then you run the program to trace (`lte-softmodem`, `nr-softmodem`, whatever) as explained in [basic usage](./basic.md). To stop the recording, you simply press `control+c` to end `record`. diff --git a/common/utils/T/DOC/T/replay.md b/common/utils/T/DOC/T/replay.md index 2390d177f6..c1af2321e2 100644 --- a/common/utils/T/DOC/T/replay.md +++ b/common/utils/T/DOC/T/replay.md @@ -5,7 +5,7 @@ First, read the [basic usage](./basic.md) to compile things. Then, read [record](./record.md) to know how to record a trace. To replay, you use the `replay` program. It will act -as a *tracee* (`lte-softmodem`, `oaisim`, etc.). +as a *tracee* (`lte-softmodem`, `nr-softmodem`, etc.). Then you use your usual tracer, eg. `enb` or `textlog`. diff --git a/doc/L1SIM.md b/doc/L1SIM.md index eef27540fa..bbe527cd29 100644 --- a/doc/L1SIM.md +++ b/doc/L1SIM.md @@ -4,12 +4,8 @@ Rather, you are probably looking for the [RFsimulator](../radio/rfsimulator/README.md)!** -oaisim has been scraped and replaced by the same programs that are used for the -real-time operation, `lte-softmodem` and `lte-uesoftmodem`. This uses the IF4p5 -fronthaul protocol to achieve the communication. - -> Context: oaisim used to be a simulation mode inside OAI to emulate an eNB and -multiple UEs. +`lte-softmodem` and `lte-uesoftmodem` can use the IF4p5 fronthaul protocol to +communicate with each other. [[_TOC_]] @@ -50,7 +46,7 @@ $ cd ../ran_build/build $ sudo ./lte-uesoftmodem -O XXX.conf -r 25 --siml1 --noS1 ``` -That should give you equivalent functionality to what you had with oaisim including noise and RF channel emulation (path loss / fading, etc.). You should also be able to run multiple UEs. +That should give you functionality to do noise and RF channel emulation (path loss / fading, etc.). You should also be able to run multiple UEs. ## How to ping an eNB from a UE and vice versa (with the noS1 option) diff --git a/openair2/UTIL/OSD/OCG.pid b/openair2/UTIL/OSD/OCG.pid deleted file mode 100644 index 8ae5f7cb87..0000000000 --- a/openair2/UTIL/OSD/OCG.pid +++ /dev/null @@ -1 +0,0 @@ -7415 diff --git a/openair2/UTIL/OSD/OpenAirEmu.conf b/openair2/UTIL/OSD/OpenAirEmu.conf deleted file mode 100644 index aa37b9df44..0000000000 --- a/openair2/UTIL/OSD/OpenAirEmu.conf +++ /dev/null @@ -1,15 +0,0 @@ - -// PLEASE ADAPT THE OPENAIR_HOME VARIABLE TO YOUR CORRECT PATH -$OPENAIR_HOME = "/home/$USER/openair4G"; - - -// -// DO NOT CHANGE THESE VARIABLES -// -$OPENAIR1_DIR = "$OPENAIR_HOME/openair1"; -$OPENAIR2_DIR = "$OPENAIR_HOME/openair2"; -$OPENAIR3_DIR = "$OPENAIR_HOME/openair3"; -$OPENAIR_TARGETS = "$OPENAIR_HOME/targets"; -$WEBXML_PATH = "$OPENAIR_TARGETS/SIMU/EXAMPLES/OSD/WEBXML"; -$RESULTS_PATH = "$OPENAIR_TARGETS/SIMU/EXAMPLES/OSD/RESULTS"; -?> diff --git a/openair2/UTIL/OSD/Platform_is_running.php b/openair2/UTIL/OSD/Platform_is_running.php deleted file mode 100644 index bf4f0d2f2d..0000000000 --- a/openair2/UTIL/OSD/Platform_is_running.php +++ /dev/null @@ -1,17 +0,0 @@ - - -
Warning
The OpenAirInterface Simulator is already running.
-You should wait for the current simulation to be over before to process to a new one.
" kill givePID("oaisim");?> "-
-* All fields have to be filled in. If you get a red cross- - diff --git a/openair2/UTIL/OSD/header.php b/openair2/UTIL/OSD/header.php deleted file mode 100644 index fe2cf57a19..0000000000 --- a/openair2/UTIL/OSD/header.php +++ /dev/null @@ -1,163 +0,0 @@ - - - - - - -it means your field is empty, so please insert a value. Whereas if you get a green tick
, it would mean that you correctly filled in the field
-* The fields in grey have been disabled for the moment since they are not yet supported by our Emulation plateform.
-
Here are the performance profiling statistics :
-
- profiling.log
Here is the PCAP File :
-
- oai_opt.pcap
Here is the XML file of your OpenAirEmulation :
-
- '.$XML_FILENAME.'
Here is the output of your OpenAirEmulation :
-
- oaisim.log
List of files:
- -HERE DISPLAY PACKET TRACES FILES
-