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
Michael Black
OpenXG-RAN
Commits
f578c1cf
Commit
f578c1cf
authored
Apr 30, 2018
by
matzakos
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated instructions file for launching nfapi-L2-emulator and polishing the code.
parent
e8180fd6
Changes
4
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
34 additions
and
802 deletions
+34
-802
openair2/LAYER2/MAC/ra_procedures.c
openair2/LAYER2/MAC/ra_procedures.c
+2
-572
openair2/PHY_INTERFACE/phy_stub_UE.c
openair2/PHY_INTERFACE/phy_stub_UE.c
+2
-3
targets/DOCS/nfapi-L2-emulator-setup.txt
targets/DOCS/nfapi-L2-emulator-setup.txt
+5
-5
targets/RT/USER/lte-ue.c
targets/RT/USER/lte-ue.c
+25
-222
No files found.
openair2/LAYER2/MAC/ra_procedures.c
View file @
f578c1cf
This diff is collapsed.
Click to expand it.
openair2/PHY_INTERFACE/phy_stub_UE.c
View file @
f578c1cf
...
...
@@ -85,7 +85,6 @@ void fill_rx_indication_UE_MAC(module_id_t Mod_id,int frame,int subframe, UL_IND
void
fill_sr_indication_UE_MAC
(
int
Mod_id
,
int
frame
,
int
subframe
,
UL_IND_t
*
UL_INFO
,
uint16_t
rnti
)
{
LOG_I
(
MAC
,
"Panos-D: fill_sr_indication_UE_MAC 1
\n
"
);
pthread_mutex_lock
(
&
UE_mac_inst
[
Mod_id
].
UL_INFO_mutex
);
...
...
@@ -155,7 +154,7 @@ void fill_crc_indication_UE_MAC(int Mod_id,int frame,int subframe, UL_IND_t *UL_
void
fill_rach_indication_UE_MAC
(
int
Mod_id
,
int
frame
,
int
subframe
,
UL_IND_t
*
UL_INFO
,
uint8_t
ra_PreambleIndex
,
uint16_t
ra_RNTI
)
{
LOG_
I
(
MAC
,
"Panos-D:
fill_rach_indication_UE_MAC 1
\n
"
);
LOG_
D
(
MAC
,
"
fill_rach_indication_UE_MAC 1
\n
"
);
pthread_mutex_lock
(
&
UE_mac_inst
[
Mod_id
].
UL_INFO_mutex
);
UL_INFO
=
(
UL_IND_t
*
)
malloc
(
sizeof
(
UL_IND_t
));
...
...
@@ -367,7 +366,7 @@ void handle_nfapi_ul_pdu_UE_MAC(module_id_t Mod_id,
uint8_t
access_mode
=
SCHEDULED_ACCESS
;
if
(
buflen
>
0
){
if
(
UE_mac_inst
[
Mod_id
].
first_ULSCH_Tx
==
1
){
// Msg3 case
LOG_
I
(
MAC
,
"Panos-D:
handle_nfapi_ul_pdu_UE_MAC 2.2, Mod_id:%d, SFN/SF: %d/%d
\n
"
,
Mod_id
,
frame
,
subframe
);
LOG_
D
(
MAC
,
"
handle_nfapi_ul_pdu_UE_MAC 2.2, Mod_id:%d, SFN/SF: %d/%d
\n
"
,
Mod_id
,
frame
,
subframe
);
fill_crc_indication_UE_MAC
(
Mod_id
,
frame
,
subframe
,
UL_INFO
,
0
,
index
,
rnti
);
fill_rx_indication_UE_MAC
(
Mod_id
,
frame
,
subframe
,
UL_INFO
,
UE_mac_inst
[
Mod_id
].
RA_prach_resources
.
Msg3
,
buflen
,
rnti
,
index
);
Msg3_transmitted
(
Mod_id
,
0
,
frame
,
0
);
...
...
nfapi-L2-emulator-setup.txt
→
targets/DOCS/
nfapi-L2-emulator-setup.txt
View file @
f578c1cf
...
...
@@ -3,10 +3,10 @@
source oaienv
cd cmake_targets
#Create lte-
softmodem-stub
-nos1 (UE) and lte-softmodem-nos1 (eNB) executables
./build_oai --
eNB --UE --noS1 -x -t ETHERNET -C
cd lte_noS1_build_oai/build/
make lte-softmodem-nos1
#Create lte-
uesoftmodem
-nos1 (UE) and lte-softmodem-nos1 (eNB) executables
./build_oai --
UE --noS1 -x -t ETHERNET
./build_oai --eNB --noS1 -x -t ETHERNET
-------------------------------------------------------------------------------------------------------------------------------------------------------
...
...
@@ -27,5 +27,5 @@ sudo ./lte-softmodem-nos1 -O PATH_OF:rcc.band7.tm1.50PRB.nfapi.conf
# Run the UE process on the other terminal (PNF) (--L2-emul specifying the operation in nfapi-L2-emulation mode
# and it has to be equal to 3, --num_ues specifying the number of UEs)
sudo ./lte-
softmodem-stub
-nos1 -U -O PATH_OF:oaiL1.nfapi.usrpb210.conf --L2-emul 3 --num-ues 5 > debug_log.txt
sudo ./lte-
uesoftmodem
-nos1 -U -O PATH_OF:oaiL1.nfapi.usrpb210.conf --L2-emul 3 --num-ues 5 > debug_log.txt
targets/RT/USER/lte-ue.c
View file @
f578c1cf
This diff is collapsed.
Click to expand it.
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