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
d8c8c6b1
Commit
d8c8c6b1
authored
Sep 22, 2023
by
Robert Schmidt
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/rfsimu-optim' into integration_2023_w38
parents
afc75c5d
eac8f3b5
Changes
3
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
307 additions
and
187 deletions
+307
-187
radio/COMMON/common_lib.h
radio/COMMON/common_lib.h
+0
-6
radio/rfsimulator/simulator.c
radio/rfsimulator/simulator.c
+307
-176
radio/rfsimulator/stored_node.c
radio/rfsimulator/stored_node.c
+0
-5
No files found.
radio/COMMON/common_lib.h
View file @
d8c8c6b1
...
...
@@ -572,17 +572,11 @@ struct openair0_device_t {
typedef
int
(
*
oai_device_initfunc_t
)(
openair0_device
*
device
,
openair0_config_t
*
openair0_cfg
);
/* type of transport init function, implemented in shared lib */
typedef
int
(
*
oai_transport_initfunc_t
)(
openair0_device
*
device
,
openair0_config_t
*
openair0_cfg
,
eth_params_t
*
eth_params
);
#define UE_MAGICDL 0xA5A5A5A5A5A5A5A5 // UE DL FDD record
#define UE_MAGICUL 0x5A5A5A5A5A5A5A5A // UE UL FDD record
#define ENB_MAGICDL 0xB5B5B5B5B5B5B5B5 // eNB DL FDD record
#define ENB_MAGICUL 0x5B5B5B5B5B5B5B5B // eNB UL FDD record
#define OPTION_LZ4 0x00000001 // LZ4 compression (option_value is set to compressed size)
typedef
struct
{
uint64_t
magic
;
// Magic value (see defines above)
uint32_t
size
;
// Number of samples per antenna to follow this header
uint32_t
nbAnt
;
// Total number of antennas following this header
// Samples per antenna follow this header,
...
...
radio/rfsimulator/simulator.c
View file @
d8c8c6b1
This diff is collapsed.
Click to expand it.
radio/rfsimulator/stored_node.c
View file @
d8c8c6b1
...
...
@@ -184,14 +184,10 @@ int main(int argc, char *argv[]) {
serviceSock
=
client_start
(
argv
[
2
],
atoi
(
argv
[
3
]));
}
uint64_t
typeStamp
=
ENB_MAGICDL
;
bool
raw
=
false
;
if
(
argc
==
5
)
{
raw
=
true
;
if
(
strcmp
(
argv
[
4
],
"UL"
)
==
0
)
typeStamp
=
UE_MAGICDL
;
}
samplesBlockHeader_t
header
;
...
...
@@ -211,7 +207,6 @@ int main(int argc, char *argv[]) {
setblocking
(
serviceSock
,
blocking
);
if
(
raw
)
{
header
.
magic
=
typeStamp
;
header
.
size
=
blockSize
;
header
.
nbAnt
=
1
;
header
.
timestamp
=
timestamp
;
...
...
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