Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-RAN
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zzha zzha
OpenXG-RAN
Commits
7cfb6db4
Commit
7cfb6db4
authored
Apr 27, 2023
by
Robert Schmidt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update scope (Xforms, Qt) documentation and list in doc/README.md
parent
6022fe5a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
56 additions
and
12 deletions
+56
-12
doc/README.md
doc/README.md
+1
-0
openair1/PHY/TOOLS/readme.md
openair1/PHY/TOOLS/readme.md
+55
-12
No files found.
doc/README.md
View file @
7cfb6db4
...
...
@@ -94,6 +94,7 @@ The other SDRs (AW2S, LimeSDR, ...) have no READMEs.
## Special-purpose libraries
-
OAI has two scopes, one based on Xforms, one on Qt5, described in
[
this README
](
../openair1/PHY/TOOLS/readme.md
)
-
OAI comes with an integrated
[
telnet server
](
../common/utils/telnetsrv/DOC/telnethelp.md
)
to monitor and control
-
OAI comes with an integrated
[
web server
](
../common/utils/websrv/DOC/websrv.md
)
...
...
openair1/PHY/TOOLS/readme.md
View file @
7cfb6db4
## xForms-based Scope
To use the scope, run the xNB or the UE with option "-d"
# xForms-based Scope
Usage in gdb
In gdb, when you break, you can refresh immediatly the scope view by calling the display function.
The first paramter is the graph context, nevertheless we keep the last value for a dirty call in gdb (so you can use '0')
## How to run and troubleshooting
To compile OAI, build with scope support:
```
./build_oai --build-lib nrscope ...
```
To use the scope, run the xNB or the UE with option
`-d`
. If you receive the
error
```
In fl_initialize() [flresource.c:995]: 5G-gNB-scope: Can't open display :0
In fl_bgn_form() [forms.c:347]: Missing or failed call of fl_initialize()
```
you can allow root to open X windows:
```
xhost +si:localuser:root
```
### Usage in gdb with Scope enabled
In gdb, when you break, you can refresh immediately the scope view by calling the display function.
The first parameter is the graph context, nevertheless we keep the last value for a dirty call in gdb (so you can use '0')
Example with no variable known
```
phy_scope_nrUE(0, PHY_vars_UE_g[0][0], 0, 0, 0)
```
or
```
phy_scope_gNB(0, phy_vars_gnb, phy_vars_ru, UE_id)
```
# Qt-based Scope
## Building Instuctions
For the new qt-based scopo designed for NR, please consider the following:
## Building Instructions
For the new qt-based scope designed for NR, please consider the following:
1.
run the gNB or the UE with the option '--dqt'.
2.
make sure to install the Qt5 packages before running the scope. Otherwise, the scope will NOT be displayed!
3.
if you need only to build the new scope, then add 'nrqtscope' after the '--lib-build' option. So, the complete
command would be
2.
make sure to install the Qt5 packages before running the scope. Otherwise, the scope will NOT be displayed! Note that Qt6 does NOT work.
3.
To build the new scope, add 'nrqtscope' after the '--build-lib' option. So, the complete command would be
```
./build_oai --gNB -w USRP --nrUE --build-lib nrqtscope
```
## New Features
1.
New KPIs for both gNB and UE, e.g., BLER, MCS, throughout, and number of scheduled RBs.
2.
For each of the gNB and UE, a main widget is created with a 3x2 grid of sub-widgets, each to disp
al
y one KPI.
2.
For each of the gNB and UE, a main widget is created with a 3x2 grid of sub-widgets, each to disp
la
y one KPI.
3.
Each of the sub-widgets has a drop-down list to choose the KPI to show in that sub-widget.
4.
Both of the gNB and UE scopes can be resized using the mouse movement.
## Troubleshoot
Similar as with the Xforms-based scope, you should allow root to open X
windows:
```
xhost +si:localuser:root
```
Furthermore, if you get the following error (might be followed by a
segfault)
```
QStandardPaths: wrong ownership on runtime directory /run/user/1000, 1000 instead of 0
```
You have to set the XDG runtime directory like one of the following options
(try in order):
```
sudo -E XDG_RUNTIME_DIR=/run/user/0 ./nr-softmodem ...
sudo -E XDG_RUNTIME_DIR=/tmp/runtime-root ./nr-softmodem ...
sudo -E XDG_RUNTIME_DIR= ./nr-softmodem ...
```
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment