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
canghaiwuhen
OpenXG-RAN
Commits
bf86de00
Commit
bf86de00
authored
Sep 28, 2018
by
Raphael Defosseux
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/basic-simulator-tdd' into develop_integration_2018_w39
parents
38d09bc7
824f62d8
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
37 additions
and
0 deletions
+37
-0
openair1/PHY/INIT/lte_param_init.c
openair1/PHY/INIT/lte_param_init.c
+7
-0
targets/ARCH/tcp_bridge/tcp_bridge_oai.c
targets/ARCH/tcp_bridge/tcp_bridge_oai.c
+17
-0
targets/RT/USER/lte-ru.c
targets/RT/USER/lte-ru.c
+6
-0
targets/RT/USER/lte-ue.c
targets/RT/USER/lte-ue.c
+7
-0
No files found.
openair1/PHY/INIT/lte_param_init.c
View file @
bf86de00
...
@@ -169,6 +169,13 @@ void lte_param_init(PHY_VARS_eNB **eNBp,
...
@@ -169,6 +169,13 @@ void lte_param_init(PHY_VARS_eNB **eNBp,
}
}
else
ru
->
N_TA_offset
=
0
;
else
ru
->
N_TA_offset
=
0
;
#if BASIC_SIMULATOR
/* this is required for the basic simulator in TDD mode
* TODO: find a proper cleaner solution
*/
UE
->
N_TA_offset
=
0
;
#endif
printf
(
"Done lte_param_init
\n
"
);
printf
(
"Done lte_param_init
\n
"
);
...
...
targets/ARCH/tcp_bridge/tcp_bridge_oai.c
View file @
bf86de00
...
@@ -44,6 +44,7 @@ typedef struct {
...
@@ -44,6 +44,7 @@ typedef struct {
int
sock
;
int
sock
;
int
samples_per_subframe
;
int
samples_per_subframe
;
uint64_t
timestamp
;
uint64_t
timestamp
;
uint64_t
next_tx_timestamp
;
int
is_enb
;
int
is_enb
;
}
tcp_bridge_state_t
;
}
tcp_bridge_state_t
;
...
@@ -141,11 +142,27 @@ int tcp_bridge_write(openair0_device *device, openair0_timestamp timestamp, void
...
@@ -141,11 +142,27 @@ int tcp_bridge_write(openair0_device *device, openair0_timestamp timestamp, void
{
{
if
(
cc
!=
1
)
{
printf
(
"tcp_bridge: only 1 antenna supported
\n
"
);
exit
(
1
);
}
if
(
cc
!=
1
)
{
printf
(
"tcp_bridge: only 1 antenna supported
\n
"
);
exit
(
1
);
}
tcp_bridge_state_t
*
t
=
device
->
priv
;
tcp_bridge_state_t
*
t
=
device
->
priv
;
/* deal with discontinuities in output (think: eNB in TDD mode) */
if
(
t
->
next_tx_timestamp
&&
timestamp
!=
t
->
next_tx_timestamp
)
{
uint32_t
b
[
4096
];
uint64_t
to_send
=
timestamp
-
t
->
next_tx_timestamp
;
memset
(
b
,
0
,
4096
*
sizeof
(
uint32_t
));
while
(
to_send
)
{
int
len
=
to_send
>
4096
?
4096
:
to_send
;
int
n
=
fullwrite
(
t
->
sock
,
b
,
len
*
4
);
if
(
n
!=
len
*
4
)
{
printf
(
"tcp_bridge: write error ret %d error %s
\n
"
,
n
,
strerror
(
errno
));
abort
();
}
to_send
-=
len
;
}
}
int
n
=
fullwrite
(
t
->
sock
,
buff
[
0
],
nsamps
*
4
);
int
n
=
fullwrite
(
t
->
sock
,
buff
[
0
],
nsamps
*
4
);
if
(
n
!=
nsamps
*
4
)
{
if
(
n
!=
nsamps
*
4
)
{
printf
(
"tcp_bridge: write error ret %d (wanted %d) error %s
\n
"
,
n
,
nsamps
*
4
,
strerror
(
errno
));
printf
(
"tcp_bridge: write error ret %d (wanted %d) error %s
\n
"
,
n
,
nsamps
*
4
,
strerror
(
errno
));
abort
();
abort
();
}
}
t
->
next_tx_timestamp
=
timestamp
+
nsamps
;
return
nsamps
;
return
nsamps
;
}
}
...
...
targets/RT/USER/lte-ru.c
View file @
bf86de00
...
@@ -1456,6 +1456,12 @@ int setup_RU_buffers(RU_t *ru) {
...
@@ -1456,6 +1456,12 @@ int setup_RU_buffers(RU_t *ru) {
if
(
frame_parms
->
N_RB_DL
==
100
)
ru
->
N_TA_offset
=
624
;
if
(
frame_parms
->
N_RB_DL
==
100
)
ru
->
N_TA_offset
=
624
;
else
if
(
frame_parms
->
N_RB_DL
==
50
)
ru
->
N_TA_offset
=
624
/
2
;
else
if
(
frame_parms
->
N_RB_DL
==
50
)
ru
->
N_TA_offset
=
624
/
2
;
else
if
(
frame_parms
->
N_RB_DL
==
25
)
ru
->
N_TA_offset
=
624
/
4
;
else
if
(
frame_parms
->
N_RB_DL
==
25
)
ru
->
N_TA_offset
=
624
/
4
;
#if BASIC_SIMULATOR
/* this is required for the basic simulator in TDD mode
* TODO: find a proper cleaner solution
*/
ru
->
N_TA_offset
=
0
;
#endif
}
}
if
(
ru
->
openair0_cfg
.
mmapped_dma
==
1
)
{
if
(
ru
->
openair0_cfg
.
mmapped_dma
==
1
)
{
// replace RX signal buffers with mmaped HW versions
// replace RX signal buffers with mmaped HW versions
...
...
targets/RT/USER/lte-ue.c
View file @
bf86de00
...
@@ -333,6 +333,13 @@ void init_UE(int nb_inst,int eMBMS_active, int uecap_xer_in, int timing_correcti
...
@@ -333,6 +333,13 @@ void init_UE(int nb_inst,int eMBMS_active, int uecap_xer_in, int timing_correcti
}
}
else
UE
->
N_TA_offset
=
0
;
else
UE
->
N_TA_offset
=
0
;
#if BASIC_SIMULATOR
/* this is required for the basic simulator in TDD mode
* TODO: find a proper cleaner solution
*/
UE
->
N_TA_offset
=
0
;
#endif
if
(
simL1flag
==
1
)
init_ue_devices
(
UE
);
if
(
simL1flag
==
1
)
init_ue_devices
(
UE
);
LOG_I
(
PHY
,
"Intializing UE Threads for instance %d (%p,%p)...
\n
"
,
inst
,
PHY_vars_UE_g
[
inst
],
PHY_vars_UE_g
[
inst
][
0
]);
LOG_I
(
PHY
,
"Intializing UE Threads for instance %d (%p,%p)...
\n
"
,
inst
,
PHY_vars_UE_g
[
inst
],
PHY_vars_UE_g
[
inst
][
0
]);
init_UE_threads
(
inst
);
init_UE_threads
(
inst
);
...
...
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