Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
openairinterface5G
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Worker.N
openairinterface5G
Commits
e56bae9f
Commit
e56bae9f
authored
9 years ago
by
Florian Kaltenberger
Browse files
Options
Downloads
Patches
Plain Diff
added TDD config option to lte-softmodem command line
parent
3e95dad6
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
targets/PROJECTS/GENERIC-LTE-EPC/CONF/enb.band7.tm1.exmimo2.conf
+7
-7
7 additions, 7 deletions
.../PROJECTS/GENERIC-LTE-EPC/CONF/enb.band7.tm1.exmimo2.conf
targets/RT/USER/lte-softmodem.c
+10
-6
10 additions, 6 deletions
targets/RT/USER/lte-softmodem.c
with
17 additions
and
13 deletions
targets/PROJECTS/GENERIC-LTE-EPC/CONF/enb.band7.tm1.exmimo2.conf
+
7
−
7
View file @
e56bae9f
...
@@ -17,7 +17,7 @@ eNBs =
...
@@ -17,7 +17,7 @@ eNBs =
mobile_country_code
=
"208"
;
mobile_country_code
=
"208"
;
mobile_network_code
=
"9
2
"
;
mobile_network_code
=
"9
3
"
;
//////////
Physical
parameters
:
//////////
Physical
parameters
:
...
@@ -31,7 +31,7 @@ eNBs =
...
@@ -31,7 +31,7 @@ eNBs =
downlink_frequency
=
2680000000
L
;
downlink_frequency
=
2680000000
L
;
uplink_frequency_offset
= -
120000000
;
uplink_frequency_offset
= -
120000000
;
Nid_cell
=
0
;
Nid_cell
=
0
;
N_RB_DL
=
5
0
;
N_RB_DL
=
2
5
;
Nid_cell_mbsfn
=
0
;
Nid_cell_mbsfn
=
0
;
nb_antennas_tx
=
1
;
nb_antennas_tx
=
1
;
nb_antennas_rx
=
1
;
nb_antennas_rx
=
1
;
...
@@ -131,7 +131,7 @@ eNBs =
...
@@ -131,7 +131,7 @@ eNBs =
};
};
//////////
MME
parameters
:
//////////
MME
parameters
:
mme_ip_address
= ( {
ipv4
=
"1
0.0.1.
1"
;
mme_ip_address
= ( {
ipv4
=
"1
92.168.12.17
1"
;
ipv6
=
"192:168:30::17"
;
ipv6
=
"192:168:30::17"
;
active
=
"yes"
;
active
=
"yes"
;
preference
=
"ipv4"
;
preference
=
"ipv4"
;
...
@@ -140,11 +140,11 @@ eNBs =
...
@@ -140,11 +140,11 @@ eNBs =
NETWORK_INTERFACES
:
NETWORK_INTERFACES
:
{
{
ENB_INTERFACE_NAME_FOR_S1_MME
=
"eth
3
"
;
ENB_INTERFACE_NAME_FOR_S1_MME
=
"eth
2
"
;
ENB_IPV4_ADDRESS_FOR_S1_MME
=
"1
0.0.1.229
/24"
;
ENB_IPV4_ADDRESS_FOR_S1_MME
=
"1
92.168.12.80
/24"
;
ENB_INTERFACE_NAME_FOR_S1U
=
"eth
3
"
;
ENB_INTERFACE_NAME_FOR_S1U
=
"eth
2
"
;
ENB_IPV4_ADDRESS_FOR_S1U
=
"1
0.0.1.229
/24"
;
ENB_IPV4_ADDRESS_FOR_S1U
=
"1
92.168.12.80
/24"
;
ENB_PORT_FOR_S1U
=
2152
;
# Spec 2152
ENB_PORT_FOR_S1U
=
2152
;
# Spec 2152
};
};
...
...
This diff is collapsed.
Click to expand it.
targets/RT/USER/lte-softmodem.c
+
10
−
6
View file @
e56bae9f
...
@@ -422,7 +422,7 @@ void help (void) {
...
@@ -422,7 +422,7 @@ void help (void) {
printf
(
" --ue-txgain set UE TX gain
\n
"
);
printf
(
" --ue-txgain set UE TX gain
\n
"
);
printf
(
" --ue-scan_carrier set UE to scan around carrier
\n
"
);
printf
(
" --ue-scan_carrier set UE to scan around carrier
\n
"
);
printf
(
" --loop-memory get softmodem (UE) to loop through memory instead of acquiring from HW
\n
"
);
printf
(
" --loop-memory get softmodem (UE) to loop through memory instead of acquiring from HW
\n
"
);
printf
(
" -C Set the downlink freque
c
ny for all
C
omponent carrier
\n
"
);
printf
(
" -C Set the downlink frequen
c
y for all
c
omponent carrier
s
\n
"
);
printf
(
" -d Enable soft scope and L1 and L2 stats (Xforms)
\n
"
);
printf
(
" -d Enable soft scope and L1 and L2 stats (Xforms)
\n
"
);
printf
(
" -F Calibrate the EXMIMO borad, available files: exmimo2_2arxg.lime exmimo2_2brxg.lime
\n
"
);
printf
(
" -F Calibrate the EXMIMO borad, available files: exmimo2_2arxg.lime exmimo2_2brxg.lime
\n
"
);
printf
(
" -g Set the global log level, valide options: (9:trace, 8/7:debug, 6:info, 4:warn, 3:error)
\n
"
);
printf
(
" -g Set the global log level, valide options: (9:trace, 8/7:debug, 6:info, 4:warn, 3:error)
\n
"
);
...
@@ -436,6 +436,7 @@ void help (void) {
...
@@ -436,6 +436,7 @@ void help (void) {
printf
(
" -r Set the PRB, valid values: 6, 25, 50, 100
\n
"
);
printf
(
" -r Set the PRB, valid values: 6, 25, 50, 100
\n
"
);
printf
(
" -S Skip the missed slots/subframes
\n
"
);
printf
(
" -S Skip the missed slots/subframes
\n
"
);
printf
(
" -t Set the maximum uplink MCS
\n
"
);
printf
(
" -t Set the maximum uplink MCS
\n
"
);
printf
(
" -T Set hardware to TDD mode (default: FDD). Used only with -U (otherwise set in config file).
\n
"
);
printf
(
" -U Set the lte softmodem as a UE
\n
"
);
printf
(
" -U Set the lte softmodem as a UE
\n
"
);
printf
(
" -W Enable L2 wireshark messages on localhost
\n
"
);
printf
(
" -W Enable L2 wireshark messages on localhost
\n
"
);
printf
(
" -V Enable VCD (generated file will be located atopenair_dump_eNB.vcd, read it with target/RT/USER/eNB.gtkw
\n
"
);
printf
(
" -V Enable VCD (generated file will be located atopenair_dump_eNB.vcd, read it with target/RT/USER/eNB.gtkw
\n
"
);
...
@@ -2061,7 +2062,7 @@ static void get_options (int argc, char **argv)
...
@@ -2061,7 +2062,7 @@ static void get_options (int argc, char **argv)
{
NULL
,
0
,
NULL
,
0
}
{
NULL
,
0
,
NULL
,
0
}
};
};
while
((
c
=
getopt_long
(
argc
,
argv
,
"C:dK:g:F:G:hqO:m:SUVRM:r:P:Ws:t:x:"
,
long_options
,
NULL
))
!=
-
1
)
{
while
((
c
=
getopt_long
(
argc
,
argv
,
"C:dK:g:F:G:hqO:m:SUVRM:r:P:Ws:t:
T
x:"
,
long_options
,
NULL
))
!=
-
1
)
{
switch
(
c
)
{
switch
(
c
)
{
case
LONG_OPTION_MAXPOWER
:
case
LONG_OPTION_MAXPOWER
:
tx_max_power
[
0
]
=
atoi
(
optarg
);
tx_max_power
[
0
]
=
atoi
(
optarg
);
...
@@ -2326,8 +2327,13 @@ static void get_options (int argc, char **argv)
...
@@ -2326,8 +2327,13 @@ static void get_options (int argc, char **argv)
printf
(
"Transmission mode > 2 (%d) not supported for the moment
\n
"
,
transmission_mode
);
printf
(
"Transmission mode > 2 (%d) not supported for the moment
\n
"
,
transmission_mode
);
exit
(
-
1
);
exit
(
-
1
);
}
}
break
;
case
'T'
:
for
(
CC_id
=
0
;
CC_id
<
MAX_NUM_CCs
;
CC_id
++
)
frame_parms
[
CC_id
]
->
frame_type
=
TDD
;
break
;
break
;
case
'h'
:
case
'h'
:
help
();
help
();
exit
(
-
1
);
exit
(
-
1
);
...
@@ -2487,12 +2493,10 @@ int main( int argc, char **argv )
...
@@ -2487,12 +2493,10 @@ int main( int argc, char **argv )
memset
(
tx_max_power
,
0
,
sizeof
(
int
)
*
MAX_NUM_CCs
);
memset
(
tx_max_power
,
0
,
sizeof
(
int
)
*
MAX_NUM_CCs
);
set_latency_target
();
set_latency_target
();
for
(
CC_id
=
0
;
CC_id
<
MAX_NUM_CCs
;
CC_id
++
)
{
for
(
CC_id
=
0
;
CC_id
<
MAX_NUM_CCs
;
CC_id
++
)
{
frame_parms
[
CC_id
]
=
(
LTE_DL_FRAME_PARMS
*
)
malloc
(
sizeof
(
LTE_DL_FRAME_PARMS
));
frame_parms
[
CC_id
]
=
(
LTE_DL_FRAME_PARMS
*
)
malloc
(
sizeof
(
LTE_DL_FRAME_PARMS
));
/* Set some default values that may be overwritten while reading options */
/* Set some default values that may be overwritten while reading options */
frame_parms
[
CC_id
]
->
frame_type
=
FDD
;
/* TDD */
frame_parms
[
CC_id
]
->
frame_type
=
FDD
;
frame_parms
[
CC_id
]
->
tdd_config
=
3
;
frame_parms
[
CC_id
]
->
tdd_config
=
3
;
frame_parms
[
CC_id
]
->
tdd_config_S
=
0
;
frame_parms
[
CC_id
]
->
tdd_config_S
=
0
;
frame_parms
[
CC_id
]
->
N_RB_DL
=
100
;
frame_parms
[
CC_id
]
->
N_RB_DL
=
100
;
...
@@ -3088,7 +3092,7 @@ int main( int argc, char **argv )
...
@@ -3088,7 +3092,7 @@ int main( int argc, char **argv )
for
(
CC_id
=
0
;
CC_id
<
MAX_NUM_CCs
;
CC_id
++
)
{
for
(
CC_id
=
0
;
CC_id
<
MAX_NUM_CCs
;
CC_id
++
)
{
rf_map
[
CC_id
].
card
=
0
;
rf_map
[
CC_id
].
card
=
0
;
rf_map
[
CC_id
].
chain
=
CC_id
+
1
;
rf_map
[
CC_id
].
chain
=
CC_id
;
}
}
// connect the TX/RX buffers
// connect the TX/RX buffers
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment