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
wangwenhui
OpenXG-RAN
Commits
9b442e05
Commit
9b442e05
authored
Jan 21, 2019
by
magounak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
experimental changes v2
parent
16422436
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
11 deletions
+15
-11
targets/ARCH/ETHERNET/USERSPACE/LIB/eth_raw.c
targets/ARCH/ETHERNET/USERSPACE/LIB/eth_raw.c
+1
-1
targets/ARCH/ETHERNET/USERSPACE/LIB/eth_udp.c
targets/ARCH/ETHERNET/USERSPACE/LIB/eth_udp.c
+1
-1
targets/ARCH/ETHERNET/USERSPACE/LIB/if_defs.h
targets/ARCH/ETHERNET/USERSPACE/LIB/if_defs.h
+2
-2
targets/RT/USER/lte-ru.c
targets/RT/USER/lte-ru.c
+11
-7
No files found.
targets/ARCH/ETHERNET/USERSPACE/LIB/eth_raw.c
View file @
9b442e05
...
...
@@ -229,7 +229,7 @@ int trx_eth_write_raw_IF4p5(openair0_device *device, openair0_timestamp timestam
}
else
if
(
flags
==
IF4p5_PULTICK
)
{
packet_size
=
RAW_IF4p5_PULTICK_SIZE_BYTES
;
}
else
if
(
flags
==
IF4p5_PULCALIB
)
{
packet_size
=
RAW_IF4p5_PULCALIB_SIZE_BYTES
(
nblocks
)
;
packet_size
=
RAW_IF4p5_PULCALIB_SIZE_BYTES
;
}
else
if
(
flags
==
IF5_MOBIPASS
)
{
packet_size
=
RAW_IF5_MOBIPASS_SIZE_BYTES
;
}
else
{
...
...
targets/ARCH/ETHERNET/USERSPACE/LIB/eth_udp.c
View file @
9b442e05
...
...
@@ -237,7 +237,7 @@ int trx_eth_write_udp_IF4p5(openair0_device *device, openair0_timestamp timestam
}
else
if
(
flags
==
IF4p5_PULTICK
)
{
packet_size
=
UDP_IF4p5_PULTICK_SIZE_BYTES
;
}
else
if
(
flags
==
IF4p5_PULCALIB
)
{
packet_size
=
UDP_IF4p5_PULCALIB_SIZE_BYTES
(
nblocks
)
;
packet_size
=
UDP_IF4p5_PULCALIB_SIZE_BYTES
;
}
else
if
((
flags
>=
IF4p5_PRACH
)
&&
(
flags
<=
(
IF4p5_PRACH
+
4
)))
{
packet_size
=
UDP_IF4p5_PRACH_SIZE_BYTES
;
...
...
targets/ARCH/ETHERNET/USERSPACE/LIB/if_defs.h
View file @
9b442e05
...
...
@@ -75,12 +75,12 @@
#define RAW_IF4p5_PULFFT_SIZE_BYTES(nblocks) (MAC_HEADER_SIZE_BYTES + sizeof_IF4p5_header_t + DATA_BLOCK_SIZE_BYTES(nblocks))
#define RAW_IF4p5_PULTICK_SIZE_BYTES (MAC_HEADER_SIZE_BYTES + sizeof_IF4p5_header_t)
#define RAW_IF4p5_PRACH_SIZE_BYTES (MAC_HEADER_SIZE_BYTES + sizeof_IF4p5_header_t + PRACH_BLOCK_SIZE_BYTES)
#define RAW_IF4p5_PULCALIB_SIZE_BYTES
(nblocks) (MAC_HEADER_SIZE_BYTES + sizeof_IF4p5_header_t + DATA_BLOCK_SIZE_BYTES(nblocks)
)
#define RAW_IF4p5_PULCALIB_SIZE_BYTES
(MAC_HEADER_SIZE_BYTES + sizeof_IF4p5_header_t
)
#define UDP_IF4p5_PDLFFT_SIZE_BYTES(nblocks) (UDP_HEADER_SIZE_BYTES + IPV4_HEADER_SIZE_BYTES + sizeof_IF4p5_header_t + DATA_BLOCK_SIZE_BYTES(nblocks))
#define UDP_IF4p5_PULFFT_SIZE_BYTES(nblocks) (UDP_HEADER_SIZE_BYTES + IPV4_HEADER_SIZE_BYTES + sizeof_IF4p5_header_t + DATA_BLOCK_SIZE_BYTES(nblocks))
#define UDP_IF4p5_PULTICK_SIZE_BYTES (UDP_HEADER_SIZE_BYTES + IPV4_HEADER_SIZE_BYTES + sizeof_IF4p5_header_t)
#define UDP_IF4p5_PRACH_SIZE_BYTES (UDP_HEADER_SIZE_BYTES + IPV4_HEADER_SIZE_BYTES + sizeof_IF4p5_header_t + PRACH_BLOCK_SIZE_BYTES)
#define UDP_IF4p5_PULCALIB_SIZE_BYTES
(nblocks) (UDP_HEADER_SIZE_BYTES + IPV4_HEADER_SIZE_BYTES + sizeof_IF4p5_header_t + DATA_BLOCK_SIZE_BYTES(nblocks)
)
#define UDP_IF4p5_PULCALIB_SIZE_BYTES
(UDP_HEADER_SIZE_BYTES + IPV4_HEADER_SIZE_BYTES + sizeof_IF4p5_header_t
)
// Mobipass packet sizes
#define RAW_IF5_MOBIPASS_BLOCK_SIZE_BYTES 1280
...
...
targets/RT/USER/lte-ru.c
View file @
9b442e05
...
...
@@ -700,7 +700,7 @@ void tx_rf(RU_t *ru) {
RU_proc_t
*
proc
=
&
ru
->
proc
;
LTE_DL_FRAME_PARMS
*
fp
=
&
ru
->
frame_parms
;
void
*
txp
[
ru
->
nb_tx
];
void
*
txp
[
ru
->
nb_tx
]
,
*
txp1
[
ru
->
nb_tx
]
;
unsigned
int
txs
;
int
i
;
...
...
@@ -724,6 +724,9 @@ void tx_rf(RU_t *ru) {
AssertFatal
(
txsymb
>
0
,
"illegal txsymb %d
\n
"
,
txsymb
);
siglen
=
fp
->
nb_prefix_samples0
+
(
txsymb
*
fp
->
ofdm_symbol_size
)
+
(
txsymb
-
1
)
*
fp
->
nb_prefix_samples
;
//siglen = fp->dl_symbols_in_S_subframe*(fp->ofdm_symbol_size+fp->nb_prefix_samples0);
if
(
ru
->
is_slave
==
1
&&
ru
->
state
==
RU_RUN
&&
proc
->
frame_tx
%
ru
->
p
==
ru
->
tag
-
1
)
{
siglen
=
fp
->
ofdm_symbol_size
+
fp
->
nb_prefix_samples
;
// length of symbol 10
}
flags
=
3
;
// end of burst
}
if
((
fp
->
frame_type
==
TDD
)
&&
...
...
@@ -751,9 +754,10 @@ void tx_rf(RU_t *ru) {
sf_extension
=
(
sf_extension
)
&
0xfffffffc
;
#endif
for
(
i
=
0
;
i
<
ru
->
nb_tx
;
i
++
)
for
(
i
=
0
;
i
<
ru
->
nb_tx
;
i
++
)
{
txp
[
i
]
=
(
void
*
)
&
ru
->
common
.
txdata
[
i
][(
proc
->
subframe_tx
*
fp
->
samples_per_tti
)
-
sf_extension
];
txp1
[
i
]
=
(
void
*
)
&
ru
->
common
.
txdata
[
i
][(
proc
->
subframe_tx
*
fp
->
samples_per_tti
)
-
sf_extension
];
}
/* add fail safe for late command */
if
(
late_control
!=
STATE_BURST_NORMAL
){
//stop burst
switch
(
late_control
)
{
...
...
@@ -799,12 +803,12 @@ void tx_rf(RU_t *ru) {
siglen
+
sf_extension
,
ru
->
nb_tx
,
flags
);
LOG_I
(
PHY
,
"RU_id %d,RU_tag %d,timestamp %d,offset %d,extension %d,olo %d
\n
"
,
ru
->
idx
,
ru
->
tag
,
proc
->
timestamp_tx
,
ru
->
ts_offset
,
sf_extension
,
LOG_I
(
PHY
,
"
**************
RU_id %d,RU_tag %d,timestamp %d,offset %d,extension %d,olo %d
\n
"
,
ru
->
idx
,
ru
->
tag
,
proc
->
timestamp_tx
,
ru
->
ts_offset
,
sf_extension
,
proc
->
timestamp_tx
+
ru
->
ts_offset
-
ru
->
openair0_cfg
.
tx_sample_advance
-
sf_extension
);
if
(
ru
->
is_slave
==
1
&&
ru
->
state
==
RU_RUN
&&
proc
->
frame_tx
%
ru
->
p
==
ru
->
tag
-
1
)
{
if
(
ru
->
is_slave
==
1
&&
ru
->
state
==
RU_RUN
&&
proc
->
frame_tx
%
ru
->
p
==
ru
->
tag
-
1
&&
SF_type
==
SF_S
)
{
txs
=
ru
->
rfdevice
.
trx_write_func
(
&
ru
->
rfdevice
,
proc
->
timestamp_tx
+
ru
->
ts_offset
-
ru
->
openair0_cfg
.
tx_sample_advance
-
sf_extension
,
txp
,
proc
->
timestamp_tx
+
(
ru
->
ts_offset
+
10
*
1024
+
80
+
10
*
72
)
-
ru
->
openair0_cfg
.
tx_sample_advance
-
sf_extension
,
txp
1
,
siglen
+
sf_extension
,
ru
->
nb_tx
,
flags
);
...
...
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