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
lizhongxiao
OpenXG-RAN
Commits
c0798268
Commit
c0798268
authored
Jan 21, 2019
by
Laurent
Committed by
frtabu
Feb 24, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixes durint testing
parent
b480c8ca
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
16 additions
and
9 deletions
+16
-9
cmake_targets/CMakeLists.txt
cmake_targets/CMakeLists.txt
+1
-1
cmake_targets/build_oai
cmake_targets/build_oai
+1
-1
openair1/PHY/CODING/crc_byte.c
openair1/PHY/CODING/crc_byte.c
+1
-0
openair1/PHY/LTE_UE_TRANSPORT/prach_ue.c
openair1/PHY/LTE_UE_TRANSPORT/prach_ue.c
+2
-2
targets/RT/USER/lte-ue.c
targets/RT/USER/lte-ue.c
+11
-5
No files found.
cmake_targets/CMakeLists.txt
View file @
c0798268
...
...
@@ -1385,7 +1385,7 @@ add_library(L2_UE
)
if
(
NOT
${
NOS1
}
)
target_compile_definitions
(
L2_UE
INTERFACE
-DPDCP_USE_NETLINK
)
target_compile_definitions
(
L2_UE
PUBLIC
-DPDCP_USE_NETLINK
)
endif
()
add_dependencies
(
L2_UE rrc_flag s1ap_flag x2_flag
)
...
...
cmake_targets/build_oai
View file @
c0798268
...
...
@@ -520,12 +520,12 @@ function main() {
fi
echo
"set ( CMAKE_BUILD_TYPE
$CMAKE_BUILD_TYPE
)"
>>
$cmake_file
echo
"set ( CFLAGS_PROCESSOR_USER
\"
$CFLAGS_PROCESSOR_USER
\"
)"
>>
$cmake_file
echo
"set ( XFORMS
$XFORMS
)"
>>
$cmake_file
echo
"set ( UE_EXPANSION
$UE_EXPANSION
)"
>>
$cmake_file
# echo "set ( PHY_TX_THREAD $UE_EXPANSION )" >> $cmake_file
echo
"set ( PRE_SCD_THREAD
$UE_EXPANSION
)"
>>
$cmake_file
echo
"set ( RRC_ASN1_VERSION
\"
${
REL
}
\"
)"
>>
$cmake_file
echo
"set ( ENABLE_VCD_FIFO
$VCD_TIMING
)"
>>
$cmake_file
echo
"set ( XFORMS
$XFORMS
)"
>>
$cmake_file
echo
"set ( RF_BOARD
\"
${
HW
}
\"
)"
>>
$cmake_file
echo
"set ( TRANSP_PRO
\"
${
TP
}
\"
)"
>>
$cmake_file
echo
"set (DEADLINE_SCHEDULER
\"
${
DEADLINE_SCHEDULER_FLAG_USER
}
\"
)"
>>
$cmake_file
...
...
openair1/PHY/CODING/crc_byte.c
View file @
c0798268
...
...
@@ -33,6 +33,7 @@
#include "PHY/types.h"
// The following arrays are generated with the function 'crcTableInit'
/** Encoding table for CRC 24A */
static
const
uint32_t
crc24aTable
[
256
]
=
{
0x0
,
0x864cfb00
,
0x8ad50d00
,
0xc99f600
,
0x93e6e100
,
0x15aa1a00
,
0x1933ec00
,
0x9f7f1700
,
0xa1813900
,
0x27cdc200
,
0x2b543400
,
0xad18cf00
,
0x3267d800
,
0xb42b2300
,
0xb8b2d500
,
0x3efe2e00
,
0xc54e8900
,
0x43027200
,
0x4f9b8400
,
0xc9d77f00
,
0x56a86800
,
0xd0e49300
,
0xdc7d6500
,
0x5a319e00
,
0x64cfb000
,
0xe2834b00
,
0xee1abd00
,
0x68564600
,
0xf7295100
,
0x7165aa00
,
0x7dfc5c00
,
0xfbb0a700
,
0xcd1e900
,
0x8a9d1200
,
0x8604e400
,
0x481f00
,
0x9f370800
,
0x197bf300
,
0x15e20500
,
0x93aefe00
,
0xad50d000
,
0x2b1c2b00
,
0x2785dd00
,
0xa1c92600
,
0x3eb63100
,
0xb8faca00
,
0xb4633c00
,
0x322fc700
,
0xc99f6000
,
0x4fd39b00
,
0x434a6d00
,
0xc5069600
,
0x5a798100
,
0xdc357a00
,
0xd0ac8c00
,
0x56e07700
,
0x681e5900
,
0xee52a200
,
0xe2cb5400
,
0x6487af00
,
0xfbf8b800
,
0x7db44300
,
0x712db500
,
0xf7614e00
,
0x19a3d200
,
0x9fef2900
,
0x9376df00
,
0x153a2400
,
0x8a453300
,
0xc09c800
,
0x903e00
,
0x86dcc500
,
0xb822eb00
,
0x3e6e1000
,
0x32f7e600
,
0xb4bb1d00
,
0x2bc40a00
,
0xad88f100
,
0xa1110700
,
0x275dfc00
,
0xdced5b00
,
0x5aa1a000
,
0x56385600
,
0xd074ad00
,
0x4f0bba00
,
0xc9474100
,
0xc5deb700
,
0x43924c00
,
0x7d6c6200
,
0xfb209900
,
0xf7b96f00
,
0x71f59400
,
0xee8a8300
,
0x68c67800
,
0x645f8e00
,
0xe2137500
,
0x15723b00
,
0x933ec000
,
0x9fa73600
,
0x19ebcd00
,
0x8694da00
,
0xd82100
,
0xc41d700
,
0x8a0d2c00
,
0xb4f30200
,
0x32bff900
,
0x3e260f00
,
0xb86af400
,
0x2715e300
,
0xa1591800
,
0xadc0ee00
,
0x2b8c1500
,
0xd03cb200
,
0x56704900
,
0x5ae9bf00
,
0xdca54400
,
0x43da5300
,
0xc596a800
,
0xc90f5e00
,
0x4f43a500
,
0x71bd8b00
,
0xf7f17000
,
0xfb688600
,
0x7d247d00
,
0xe25b6a00
,
0x64179100
,
0x688e6700
,
0xeec29c00
,
0x3347a400
,
0xb50b5f00
,
0xb992a900
,
0x3fde5200
,
0xa0a14500
,
0x26edbe00
,
0x2a744800
,
0xac38b300
,
0x92c69d00
,
0x148a6600
,
0x18139000
,
0x9e5f6b00
,
0x1207c00
,
0x876c8700
,
0x8bf57100
,
0xdb98a00
,
0xf6092d00
,
0x7045d600
,
0x7cdc2000
,
0xfa90db00
,
0x65efcc00
,
0xe3a33700
,
0xef3ac100
,
0x69763a00
,
0x57881400
,
0xd1c4ef00
,
0xdd5d1900
,
0x5b11e200
,
0xc46ef500
,
0x42220e00
,
0x4ebbf800
,
0xc8f70300
,
0x3f964d00
,
0xb9dab600
,
0xb5434000
,
0x330fbb00
,
0xac70ac00
,
0x2a3c5700
,
0x26a5a100
,
0xa0e95a00
,
0x9e177400
,
0x185b8f00
,
0x14c27900
,
0x928e8200
,
0xdf19500
,
0x8bbd6e00
,
0x87249800
,
0x1686300
,
0xfad8c400
,
0x7c943f00
,
0x700dc900
,
0xf6413200
,
0x693e2500
,
0xef72de00
,
0xe3eb2800
,
0x65a7d300
,
0x5b59fd00
,
0xdd150600
,
0xd18cf000
,
0x57c00b00
,
0xc8bf1c00
,
0x4ef3e700
,
0x426a1100
,
0xc426ea00
,
0x2ae47600
,
0xaca88d00
,
0xa0317b00
,
0x267d8000
,
0xb9029700
,
0x3f4e6c00
,
0x33d79a00
,
0xb59b6100
,
0x8b654f00
,
0xd29b400
,
0x1b04200
,
0x87fcb900
,
0x1883ae00
,
0x9ecf5500
,
0x9256a300
,
0x141a5800
,
0xefaaff00
,
0x69e60400
,
0x657ff200
,
0xe3330900
,
0x7c4c1e00
,
0xfa00e500
,
0xf6991300
,
0x70d5e800
,
0x4e2bc600
,
0xc8673d00
,
0xc4fecb00
,
0x42b23000
,
0xddcd2700
,
0x5b81dc00
,
0x57182a00
,
0xd154d100
,
0x26359f00
,
0xa0796400
,
0xace09200
,
0x2aac6900
,
0xb5d37e00
,
0x339f8500
,
0x3f067300
,
0xb94a8800
,
0x87b4a600
,
0x1f85d00
,
0xd61ab00
,
0x8b2d5000
,
0x14524700
,
0x921ebc00
,
0x9e874a00
,
0x18cbb100
,
0xe37b1600
,
0x6537ed00
,
0x69ae1b00
,
0xefe2e000
,
0x709df700
,
0xf6d10c00
,
0xfa48fa00
,
0x7c040100
,
0x42fa2f00
,
0xc4b6d400
,
0xc82f2200
,
0x4e63d900
,
0xd11cce00
,
0x57503500
,
0x5bc9c300
,
0xdd853800
};
...
...
openair1/PHY/LTE_UE_TRANSPORT/prach_ue.c
View file @
c0798268
...
...
@@ -82,7 +82,7 @@ int32_t generate_prach( PHY_VARS_UE *ue, uint8_t eNB_id, uint8_t subframe, uint1
int
i
,
prach_len
;
uint16_t
first_nonzero_root_idx
=
0
;
#if defined(
EXMIMO) || defined(OAI_USRP
)
#if defined(
MANAGED_RF
)
prach_start
=
(
ue
->
rx_offset
+
subframe
*
ue
->
frame_parms
.
samples_per_tti
-
ue
->
hw_timing_advance
-
ue
->
N_TA_offset
);
#ifdef PRACH_DEBUG
LOG_I
(
PHY
,
"[UE %d] prach_start %d, rx_offset %d, hw_timing_advance %d, N_TA_offset %d
\n
"
,
ue
->
Mod_id
,
...
...
@@ -488,7 +488,7 @@ int32_t generate_prach( PHY_VARS_UE *ue, uint8_t eNB_id, uint8_t subframe, uint1
AssertFatal
(
prach_fmt
<
4
,
"prach_fmt4 not fully implemented"
);
#if defined(
EXMIMO) || defined(OAI_USRP) || defined(OAI_BLADERF) || defined(OAI_LMSSDR
)
#if defined(
MANAGED_RF
)
int
j
;
int
overflow
=
prach_start
+
prach_len
-
LTE_NUMBER_OF_SUBFRAMES_PER_FRAME
*
ue
->
frame_parms
.
samples_per_tti
;
LOG_I
(
PHY
,
"prach_start=%d, overflow=%d
\n
"
,
prach_start
,
overflow
);
...
...
targets/RT/USER/lte-ue.c
View file @
c0798268
...
...
@@ -875,7 +875,7 @@ static void *UE_thread_rxn_txnp4(void *arg) {
exit_fun
(
"noting to add"
);
}
proc
->
instance_cnt_rxtx
--
;
#if
1 //
BASIC_SIMULATOR
#if BASIC_SIMULATOR
if
(
pthread_cond_signal
(
&
proc
->
cond_rxtx
)
!=
0
)
abort
();
#endif
if
(
pthread_mutex_unlock
(
&
proc
->
mutex_rxtx
)
!=
0
)
{
...
...
@@ -1569,6 +1569,12 @@ void *UE_thread(void *arg) {
}
while
(
!
oai_exit
)
{
#if BASIC_SIMULATOR
while
(
!
(
UE
->
proc
.
instance_cnt_synch
<
0
))
{
printf
(
"ue sync not ready
\n
"
);
usleep
(
500
*
1000
);
}
#endif
AssertFatal
(
0
==
pthread_mutex_lock
(
&
UE
->
proc
.
mutex_synch
),
""
);
int
instance_cnt_synch
=
UE
->
proc
.
instance_cnt_synch
;
...
...
@@ -1698,7 +1704,7 @@ void *UE_thread(void *arg) {
// update thread index for received subframe
UE
->
current_thread_id
[
sub_frame
]
=
thread_idx
;
#if
1 //
BASIC_SIMULATOR
#if BASIC_SIMULATOR
{
int
t
;
for
(
t
=
0
;
t
<
2
;
t
++
)
{
...
...
@@ -1736,7 +1742,7 @@ void *UE_thread(void *arg) {
// compute TO compensation that should be applied for this frame
if
(
UE
->
no_timing_correction
==
0
)
{
if
(
UE
->
rx_offset
)
{
if
(
getenv
(
RFSIMULATOR
)
!=
NULL
&&
UE
->
rx_offset
)
{
//LOG_E(HW,"in simu, rx_offset is not null: %d\n", UE->rx_offset);
UE
->
rx_offset
=
0
;
}
...
...
@@ -1811,7 +1817,7 @@ if (UE->rx_offset) {
proc
->
instance_cnt_rxtx
++
;
LOG_D
(
PHY
,
"[SCHED][UE %d] UE RX instance_cnt_rxtx %d subframe %d !!
\n
"
,
UE
->
Mod_id
,
proc
->
instance_cnt_rxtx
,
proc
->
subframe_rx
);
if
(
proc
->
instance_cnt_rxtx
!=
0
)
{
/*
if
(
getenv
(
"RFSIMULATOR"
)
!=
NULL
)
{
do
{
AssertFatal
(
pthread_mutex_unlock
(
&
proc
->
mutex_rxtx
)
==
0
,
""
);
...
...
@@ -1819,7 +1825,7 @@ if (UE->rx_offset) {
AssertFatal
(
pthread_mutex_lock
(
&
proc
->
mutex_rxtx
)
==
0
,
""
);
}
while
(
proc
->
instance_cnt_rxtx
>=
0
);
} else
*/
}
else
LOG_E
(
PHY
,
"[SCHED][UE %d] UE RX thread busy (IC %d)!!
\n
"
,
UE
->
Mod_id
,
proc
->
instance_cnt_rxtx
);
if
(
proc
->
instance_cnt_rxtx
>
2
)
exit_fun
(
"instance_cnt_rxtx > 2"
);
...
...
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