Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
oai
openairinterface5G
Commits
7f2dd654
Commit
7f2dd654
authored
Jul 19, 2013
by
guibene
Browse files
cleaned code
git-svn-id:
http://svn.eurecom.fr/openair4G/trunk@4044
818b1a75-f10b-46b9-bf7c-635c3b92a50f
parent
35169c13
Changes
2
Hide whitespace changes
Inline
Side-by-side
targets/PROJECTS/TDDREC/runmeas_wduplex.m
View file @
7f2dd654
...
...
@@ -10,8 +10,6 @@ if(paramsinitialized && LSBSWITCH_FLAG)
"corresponding timestamps.\n------------"
])
N
=
76800
;
M
=
4
;
signalA2B
=
zeros
(
N
,
4
);
signalB2A
=
zeros
(
N
,
4
);
indA
=
find
(
active_rfA
==
1
);
indB
=
find
(
active_rfB
==
1
);
Nanta
=
length
(
indA
);
...
...
targets/PROJECTS/TDDREC/runmeas_woduplex.m
View file @
7f2dd654
...
...
@@ -10,8 +10,6 @@ if(paramsinitialized && ~LSBSWITCH_FLAG)
"corresponding timestamps.\n------------"
])
N
=
76800
;
M
=
4
;
signalA2B
=
zeros
(
N
,
4
);
signalB2A
=
zeros
(
N
,
4
);
indA
=
find
(
active_rfA
==
1
);
indB
=
find
(
active_rfB
==
1
);
Nanta
=
length
(
indA
);
...
...
@@ -42,19 +40,20 @@ if(paramsinitialized && ~LSBSWITCH_FLAG)
endif
endfor
#
%% ------- Node A to B transmission ------- %%
rf_mode_current
=
rf_mode
+
(
DMAMODE_TX
+
TXEN
)
*
active_rfA
+
(
DMAMODE_RX
+
RXEN
)
*
active_rfB
;
oarf_config_exmimo
(
card
,
freq_rx
,
freq_tx
,
tdd_config
,
syncmode
,
rx_gain
,
tx_gain
,
eNB_flag
,
rf_mode_current
,
rf_rxdc
,
rf_local
,
rf_vcocal
,
rffe_rxg_low
,
rffe_rxg_final
,
rffe_band
,
autocal_mode
);
oarf_send_frame
(
card
,
signalA2B
,
n_bit
);
receivedA2B
=
oarf_get_frame
(
card
);
oarf_stop
(
card
);
#
%% ------- Node B to A transmission ------- %%
rf_mode_current
=
rf_mode
+
(
DMAMODE_TX
+
TXEN
)
*
active_rfB
+
(
DMAMODE_RX
+
RXEN
)
*
active_rfA
;
oarf_config_exmimo
(
card
,
freq_rx
,
freq_tx
,
tdd_config
,
syncmode
,
rx_gain
,
tx_gain
,
eNB_flag
,
rf_mode_current
,
rf_rxdc
,
rf_local
,
rf_vcocal
,
rffe_rxg_low
,
rffe_rxg_final
,
rffe_band
,
autocal_mode
);
oarf_send_frame
(
card
,
signalB2A
,
n_bit
);
receivedB2A
=
oarf_get_frame
(
card
);
oarf_stop
(
card
);
#
%% ------- Node A to B transmission ------- %%
rf_mode_current
=
rf_mode
+
(
DMAMODE_TX
+
TXEN
)
*
active_rfA
+
(
DMAMODE_RX
+
RXEN
)
*
active_rfB
;
oarf_config_exmimo
(
card
,
freq_rx
,
freq_tx
,
tdd_config
,
syncmode
,
rx_gain
,
tx_gain
,
eNB_flag
,
rf_mode_current
,
rf_rxdc
,
rf_local
,
rf_vcocal
,
rffe_rxg_low
,
rffe_rxg_final
,
rffe_band
,
autocal_mode
);
oarf_send_frame
(
card
,
signalA2B
,
n_bit
);
receivedA2B
=
oarf_get_frame
(
card
);
oarf_stop
(
card
);
#
%% ------- Do the A to B channel estimation ------- %%
Da2b_R
=
zeros
(
Niter
*
120
,
Nantb
*
301
);
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment