Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
openlte
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
phantomnet
openlte
Commits
777a4500
Commit
777a4500
authored
Jan 29, 2012
by
Ben Wojtowicz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed license statement and bug in find_pss_and_fine_timing
parent
22846ac2
Changes
24
Hide whitespace changes
Inline
Sidebyside
Showing
24 changed files
with
122 additions
and
97 deletions
+122
97
octave/cmn_bin2dec.m
octave/cmn_bin2dec.m
+5
4
octave/cmn_conv_encode.m
octave/cmn_conv_encode.m
+5
4
octave/cmn_dec2bin.m
octave/cmn_dec2bin.m
+5
4
octave/cmn_oct2bin.m
octave/cmn_oct2bin.m
+5
4
octave/cmn_viterbi_decode.m
octave/cmn_viterbi_decode.m
+5
4
octave/lte_bch_channel_decode.m
octave/lte_bch_channel_decode.m
+5
4
octave/lte_bch_channel_encode.m
octave/lte_bch_channel_encode.m
+5
4
octave/lte_calc_crc.m
octave/lte_calc_crc.m
+5
4
octave/lte_cfi_channel_decode.m
octave/lte_cfi_channel_decode.m
+5
4
octave/lte_cfi_channel_encode.m
octave/lte_cfi_channel_encode.m
+5
4
octave/lte_fdd_dl_receive.m
octave/lte_fdd_dl_receive.m
+7
5
octave/lte_fdd_dl_transmit.m
octave/lte_fdd_dl_transmit.m
+5
4
octave/lte_generate_crs.m
octave/lte_generate_crs.m
+5
4
octave/lte_generate_prs_c.m
octave/lte_generate_prs_c.m
+5
4
octave/lte_generate_pss.m
octave/lte_generate_pss.m
+5
4
octave/lte_generate_sss.m
octave/lte_generate_sss.m
+5
4
octave/lte_layer_demapper.m
octave/lte_layer_demapper.m
+5
4
octave/lte_layer_mapper.m
octave/lte_layer_mapper.m
+5
4
octave/lte_mib_pack.m
octave/lte_mib_pack.m
+5
4
octave/lte_mib_unpack.m
octave/lte_mib_unpack.m
+5
4
octave/lte_modulation_demapper.m
octave/lte_modulation_demapper.m
+5
4
octave/lte_modulation_mapper.m
octave/lte_modulation_mapper.m
+5
4
octave/lte_pre_coder.m
octave/lte_pre_coder.m
+5
4
octave/lte_pre_decoder_and_matched_filter.m
octave/lte_pre_decoder_and_matched_filter.m
+5
4
No files found.
octave/cmn_bin2dec.m
View file @
777a4500
%
%
% Copyright 2011 Ben Wojtowicz
% Copyright 2011
2012
Ben Wojtowicz
%
%
% This program is free software: you can redistribute it and/or modify
% This program is free software: you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
% it under the terms of the GNU
Affero
General Public License as published by
% the Free Software Foundation, either version 3 of the License, or
% the Free Software Foundation, either version 3 of the License, or
% (at your option) any later version.
% (at your option) any later version.
%
%
% This program is distributed in the hope that it will be useful,
% This program is distributed in the hope that it will be useful,
% but WITHOUT ANY WARRANTY; without even the implied warranty of
% but WITHOUT ANY WARRANTY; without even the implied warranty of
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
% GNU General Public License for more details.
% GNU
Affero
General Public License for more details.
%
%
% You should have received a copy of the GNU General Public License
% You should have received a copy of the GNU
Affero
General Public License
% along with this program. If not, see <http://www.gnu.org/licenses/>.
% along with this program. If not, see <http://www.gnu.org/licenses/>.
%
%
% Function: cmn_bin2dec
% Function: cmn_bin2dec
...
@@ 24,6 +24,7 @@
...
@@ 24,6 +24,7 @@
% Spec: N/A
% Spec: N/A
% Notes: None
% Notes: None
% Rev History: Ben Wojtowicz 11/22/2011 Created
% Rev History: Ben Wojtowicz 11/22/2011 Created
% Ben Wojtowicz 01/29/2012 Fixed license statement
%
%
function
[
dec
]
=
cmn_bin2dec
(
array
,
num_bits
)
function
[
dec
]
=
cmn_bin2dec
(
array
,
num_bits
)
[
num_array
,
junk
]
=
size
(
array
);
[
num_array
,
junk
]
=
size
(
array
);
...
...
octave/cmn_conv_encode.m
View file @
777a4500
%
%
% Copyright 2011 Ben Wojtowicz
% Copyright 2011
2012
Ben Wojtowicz
%
%
% This program is free software: you can redistribute it and/or modify
% This program is free software: you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
% it under the terms of the GNU
Affero
General Public License as published by
% the Free Software Foundation, either version 3 of the License, or
% the Free Software Foundation, either version 3 of the License, or
% (at your option) any later version.
% (at your option) any later version.
%
%
% This program is distributed in the hope that it will be useful,
% This program is distributed in the hope that it will be useful,
% but WITHOUT ANY WARRANTY; without even the implied warranty of
% but WITHOUT ANY WARRANTY; without even the implied warranty of
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
% GNU General Public License for more details.
% GNU
Affero
General Public License for more details.
%
%
% You should have received a copy of the GNU General Public License
% You should have received a copy of the GNU
Affero
General Public License
% along with this program. If not, see <http://www.gnu.org/licenses/>.
% along with this program. If not, see <http://www.gnu.org/licenses/>.
%
%
% Function: cmn_conv_encode
% Function: cmn_conv_encode
...
@@ 30,6 +30,7 @@
...
@@ 30,6 +30,7 @@
% Spec: N/A
% Spec: N/A
% Notes: None
% Notes: None
% Rev History: Ben Wojtowicz 11/22/2011 Created
% Rev History: Ben Wojtowicz 11/22/2011 Created
% Ben Wojtowicz 01/29/2012 Fixed license statement
%
%
function
[
out
]
=
cmn_conv_encode
(
in
,
k
,
r
,
g
,
tail_bit
)
function
[
out
]
=
cmn_conv_encode
(
in
,
k
,
r
,
g
,
tail_bit
)
...
...
octave/cmn_dec2bin.m
View file @
777a4500
%
%
% Copyright 2011 Ben Wojtowicz
% Copyright 2011
2012
Ben Wojtowicz
%
%
% This program is free software: you can redistribute it and/or modify
% This program is free software: you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
% it under the terms of the GNU
Affero
General Public License as published by
% the Free Software Foundation, either version 3 of the License, or
% the Free Software Foundation, either version 3 of the License, or
% (at your option) any later version.
% (at your option) any later version.
%
%
% This program is distributed in the hope that it will be useful,
% This program is distributed in the hope that it will be useful,
% but WITHOUT ANY WARRANTY; without even the implied warranty of
% but WITHOUT ANY WARRANTY; without even the implied warranty of
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
% GNU General Public License for more details.
% GNU
Affero
General Public License for more details.
%
%
% You should have received a copy of the GNU General Public License
% You should have received a copy of the GNU
Affero
General Public License
% along with this program. If not, see <http://www.gnu.org/licenses/>.
% along with this program. If not, see <http://www.gnu.org/licenses/>.
%
%
% Function: cmn_dec2bin
% Function: cmn_dec2bin
...
@@ 24,6 +24,7 @@
...
@@ 24,6 +24,7 @@
% Spec: N/A
% Spec: N/A
% Notes: None
% Notes: None
% Rev History: Ben Wojtowicz 11/22/2011 Created
% Rev History: Ben Wojtowicz 11/22/2011 Created
% Ben Wojtowicz 01/29/2012 Fixed license statement
%
%
function
[
array
]
=
cmn_dec2bin
(
dec
,
num_bits
)
function
[
array
]
=
cmn_dec2bin
(
dec
,
num_bits
)
[
junk
,
num_dec
]
=
size
(
dec
);
[
junk
,
num_dec
]
=
size
(
dec
);
...
...
octave/cmn_oct2bin.m
View file @
777a4500
%
%
% Copyright 2011 Ben Wojtowicz
% Copyright 2011
2012
Ben Wojtowicz
%
%
% This program is free software: you can redistribute it and/or modify
% This program is free software: you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
% it under the terms of the GNU
Affero
General Public License as published by
% the Free Software Foundation, either version 3 of the License, or
% the Free Software Foundation, either version 3 of the License, or
% (at your option) any later version.
% (at your option) any later version.
%
%
% This program is distributed in the hope that it will be useful,
% This program is distributed in the hope that it will be useful,
% but WITHOUT ANY WARRANTY; without even the implied warranty of
% but WITHOUT ANY WARRANTY; without even the implied warranty of
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
% GNU General Public License for more details.
% GNU
Affero
General Public License for more details.
%
%
% You should have received a copy of the GNU General Public License
% You should have received a copy of the GNU
Affero
General Public License
% along with this program. If not, see <http://www.gnu.org/licenses/>.
% along with this program. If not, see <http://www.gnu.org/licenses/>.
%
%
% Function: cmn_oct2bin
% Function: cmn_oct2bin
...
@@ 24,6 +24,7 @@
...
@@ 24,6 +24,7 @@
% Spec: N/A
% Spec: N/A
% Notes: None
% Notes: None
% Rev History: Ben Wojtowicz 11/22/2011 Created
% Rev History: Ben Wojtowicz 11/22/2011 Created
% Ben Wojtowicz 01/29/2012 Fixed license statement
%
%
function
[
array
]
=
cmn_oct2bin
(
oct
,
num_bits
)
function
[
array
]
=
cmn_oct2bin
(
oct
,
num_bits
)
[
junk
,
num_oct
]
=
size
(
oct
);
[
junk
,
num_oct
]
=
size
(
oct
);
...
...
octave/cmn_viterbi_decode.m
View file @
777a4500
%
%
% Copyright 2011 Ben Wojtowicz
% Copyright 2011
2012
Ben Wojtowicz
%
%
% This program is free software: you can redistribute it and/or modify
% This program is free software: you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
% it under the terms of the GNU
Affero
General Public License as published by
% the Free Software Foundation, either version 3 of the License, or
% the Free Software Foundation, either version 3 of the License, or
% (at your option) any later version.
% (at your option) any later version.
%
%
% This program is distributed in the hope that it will be useful,
% This program is distributed in the hope that it will be useful,
% but WITHOUT ANY WARRANTY; without even the implied warranty of
% but WITHOUT ANY WARRANTY; without even the implied warranty of
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
% GNU General Public License for more details.
% GNU
Affero
General Public License for more details.
%
%
% You should have received a copy of the GNU General Public License
% You should have received a copy of the GNU
Affero
General Public License
% along with this program. If not, see <http://www.gnu.org/licenses/>.
% along with this program. If not, see <http://www.gnu.org/licenses/>.
%
%
% Function: cmn_viterbi_decode
% Function: cmn_viterbi_decode
...
@@ 27,6 +27,7 @@
...
@@ 27,6 +27,7 @@
% Spec: N/A
% Spec: N/A
% Notes: Currently only supports hard bits
% Notes: Currently only supports hard bits
% Rev History: Ben Wojtowicz 11/22/2011 Created
% Rev History: Ben Wojtowicz 11/22/2011 Created
% Ben Wojtowicz 01/29/2012 Fixed license statement
%
%
function
[
out
]
=
cmn_viterbi_decode
(
in
,
k
,
r
,
g
)
function
[
out
]
=
cmn_viterbi_decode
(
in
,
k
,
r
,
g
)
...
...
octave/lte_bch_channel_decode.m
View file @
777a4500
%
%
% Copyright 2011 Ben Wojtowicz
% Copyright 2011
2012
Ben Wojtowicz
%
%
% This program is free software: you can redistribute it and/or modify
% This program is free software: you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
% it under the terms of the GNU
Affero
General Public License as published by
% the Free Software Foundation, either version 3 of the License, or
% the Free Software Foundation, either version 3 of the License, or
% (at your option) any later version.
% (at your option) any later version.
%
%
% This program is distributed in the hope that it will be useful,
% This program is distributed in the hope that it will be useful,
% but WITHOUT ANY WARRANTY; without even the implied warranty of
% but WITHOUT ANY WARRANTY; without even the implied warranty of
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
% GNU General Public License for more details.
% GNU
Affero
General Public License for more details.
%
%
% You should have received a copy of the GNU General Public License
% You should have received a copy of the GNU
Affero
General Public License
% along with this program. If not, see <http://www.gnu.org/licenses/>.
% along with this program. If not, see <http://www.gnu.org/licenses/>.
%
%
% Function: lte_bch_channel_decode
% Function: lte_bch_channel_decode
...
@@ 23,6 +23,7 @@
...
@@ 23,6 +23,7 @@
% Spec: 3GPP TS 36.212 section 5.3.1 v10.1.0
% Spec: 3GPP TS 36.212 section 5.3.1 v10.1.0
% Notes: None
% Notes: None
% Rev History: Ben Wojtowicz 11/12/2011 Created
% Rev History: Ben Wojtowicz 11/12/2011 Created
% Ben Wojtowicz 01/29/2012 Fixed license statement
%
%
function
[
mib
,
N_ant
]
=
lte_bch_channel_decode
(
bch_bits
)
function
[
mib
,
N_ant
]
=
lte_bch_channel_decode
(
bch_bits
)
...
...
octave/lte_bch_channel_encode.m
View file @
777a4500
%
%
% Copyright 2011 Ben Wojtowicz
% Copyright 2011
2012
Ben Wojtowicz
%
%
% This program is free software: you can redistribute it and/or modify
% This program is free software: you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
% it under the terms of the GNU
Affero
General Public License as published by
% the Free Software Foundation, either version 3 of the License, or
% the Free Software Foundation, either version 3 of the License, or
% (at your option) any later version.
% (at your option) any later version.
%
%
% This program is distributed in the hope that it will be useful,
% This program is distributed in the hope that it will be useful,
% but WITHOUT ANY WARRANTY; without even the implied warranty of
% but WITHOUT ANY WARRANTY; without even the implied warranty of
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
% GNU General Public License for more details.
% GNU
Affero
General Public License for more details.
%
%
% You should have received a copy of the GNU General Public License
% You should have received a copy of the GNU
Affero
General Public License
% along with this program. If not, see <http://www.gnu.org/licenses/>.
% along with this program. If not, see <http://www.gnu.org/licenses/>.
%
%
% Function: lte_bch_channel_encode
% Function: lte_bch_channel_encode
...
@@ 23,6 +23,7 @@
...
@@ 23,6 +23,7 @@
% Spec: 3GPP TS 36.212 section 5.3.1 v10.1.0
% Spec: 3GPP TS 36.212 section 5.3.1 v10.1.0
% Notes: None
% Notes: None
% Rev History: Ben Wojtowicz 10/30/2011 Created
% Rev History: Ben Wojtowicz 10/30/2011 Created
% Ben Wojtowicz 01/29/2012 Fixed license statement
%
%
function
[
bch_bits
]
=
lte_bch_channel_encode
(
mib
,
N_ant
)
function
[
bch_bits
]
=
lte_bch_channel_encode
(
mib
,
N_ant
)
% Check mib
% Check mib
...
...
octave/lte_calc_crc.m
View file @
777a4500
%
%
% Copyright 2011 Ben Wojtowicz
% Copyright 2011
2012
Ben Wojtowicz
%
%
% This program is free software: you can redistribute it and/or modify
% This program is free software: you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
% it under the terms of the GNU
Affero
General Public License as published by
% the Free Software Foundation, either version 3 of the License, or
% the Free Software Foundation, either version 3 of the License, or
% (at your option) any later version.
% (at your option) any later version.
%
%
% This program is distributed in the hope that it will be useful,
% This program is distributed in the hope that it will be useful,
% but WITHOUT ANY WARRANTY; without even the implied warranty of
% but WITHOUT ANY WARRANTY; without even the implied warranty of
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
% GNU General Public License for more details.
% GNU
Affero
General Public License for more details.
%
%
% You should have received a copy of the GNU General Public License
% You should have received a copy of the GNU
Affero
General Public License
% along with this program. If not, see <http://www.gnu.org/licenses/>.
% along with this program. If not, see <http://www.gnu.org/licenses/>.
%
%
% Function: lte_calc_crc
% Function: lte_calc_crc
...
@@ 23,6 +23,7 @@
...
@@ 23,6 +23,7 @@
% Spec: 3GPP TS 36.212 section 5.1.1 v10.1.0
% Spec: 3GPP TS 36.212 section 5.1.1 v10.1.0
% Notes: None
% Notes: None
% Rev History: Ben Wojtowicz 11/18/2011 Created
% Rev History: Ben Wojtowicz 11/18/2011 Created
% Ben Wojtowicz 01/29/2012 Fixed license statement
%
%
function
[
crc_bits
]
=
lte_calc_crc
(
in_bits
,
crc_type
)
function
[
crc_bits
]
=
lte_calc_crc
(
in_bits
,
crc_type
)
% Check crc_type
% Check crc_type
...
...
octave/lte_cfi_channel_decode.m
View file @
777a4500
%
%
% Copyright 2011 Ben Wojtowicz
% Copyright 2011
2012
Ben Wojtowicz
%
%
% This program is free software: you can redistribute it and/or modify
% This program is free software: you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
% it under the terms of the GNU
Affero
General Public License as published by
% the Free Software Foundation, either version 3 of the License, or
% the Free Software Foundation, either version 3 of the License, or
% (at your option) any later version.
% (at your option) any later version.
%
%
% This program is distributed in the hope that it will be useful,
% This program is distributed in the hope that it will be useful,
% but WITHOUT ANY WARRANTY; without even the implied warranty of
% but WITHOUT ANY WARRANTY; without even the implied warranty of
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
% GNU General Public License for more details.
% GNU
Affero
General Public License for more details.
%
%
% You should have received a copy of the GNU General Public License
% You should have received a copy of the GNU
Affero
General Public License
% along with this program. If not, see <http://www.gnu.org/licenses/>.
% along with this program. If not, see <http://www.gnu.org/licenses/>.
%
%
% Function: lte_cfi_channel_decode
% Function: lte_cfi_channel_decode
...
@@ 23,6 +23,7 @@
...
@@ 23,6 +23,7 @@
% Spec: 3GPP TS 36.212 section 5.3.4 v10.1.0
% Spec: 3GPP TS 36.212 section 5.3.4 v10.1.0
% Notes: None
% Notes: None
% Rev History: Ben Wojtowicz 12/26/2011 Created
% Rev History: Ben Wojtowicz 12/26/2011 Created
% Ben Wojtowicz 01/29/2012 Fixed license statement
%
%
function
[
cfi
]
=
lte_cfi_channel_decode
(
cfi_bits
)
function
[
cfi
]
=
lte_cfi_channel_decode
(
cfi_bits
)
% Calculate the number of bit errors for each CFI
% Calculate the number of bit errors for each CFI
...
...
octave/lte_cfi_channel_encode.m
View file @
777a4500
%
%
% Copyright 2011 Ben Wojtowicz
% Copyright 2011
2012
Ben Wojtowicz
%
%
% This program is free software: you can redistribute it and/or modify
% This program is free software: you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
% it under the terms of the GNU
Affero
General Public License as published by
% the Free Software Foundation, either version 3 of the License, or
% the Free Software Foundation, either version 3 of the License, or
% (at your option) any later version.
% (at your option) any later version.
%
%
% This program is distributed in the hope that it will be useful,
% This program is distributed in the hope that it will be useful,
% but WITHOUT ANY WARRANTY; without even the implied warranty of
% but WITHOUT ANY WARRANTY; without even the implied warranty of
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
% GNU General Public License for more details.
% GNU
Affero
General Public License for more details.
%
%
% You should have received a copy of the GNU General Public License
% You should have received a copy of the GNU
Affero
General Public License
% along with this program. If not, see <http://www.gnu.org/licenses/>.
% along with this program. If not, see <http://www.gnu.org/licenses/>.
%
%
% Function: lte_cfi_channel_encode
% Function: lte_cfi_channel_encode
...
@@ 23,6 +23,7 @@
...
@@ 23,6 +23,7 @@
% Spec: 3GPP TS 36.212 section 5.3.4 v10.1.0
% Spec: 3GPP TS 36.212 section 5.3.4 v10.1.0
% Notes: None
% Notes: None
% Rev History: Ben Wojtowicz 12/26/2011 Created
% Rev History: Ben Wojtowicz 12/26/2011 Created
% Ben Wojtowicz 01/29/2012 Fixed license statement
%
%
function
[
cfi_bits
]
=
lte_cfi_channel_encode
(
cfi
)
function
[
cfi_bits
]
=
lte_cfi_channel_encode
(
cfi
)
% Check cfi
% Check cfi
...
...
octave/lte_fdd_dl_receive.m
View file @
777a4500
%
%
% Copyright 2011 Ben Wojtowicz
% Copyright 2011
2012
Ben Wojtowicz
%
%
% This program is free software: you can redistribute it and/or modify
% This program is free software: you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
% it under the terms of the GNU
Affero
General Public License as published by
% the Free Software Foundation, either version 3 of the License, or
% the Free Software Foundation, either version 3 of the License, or
% (at your option) any later version.
% (at your option) any later version.
%
%
% This program is distributed in the hope that it will be useful,
% This program is distributed in the hope that it will be useful,
% but WITHOUT ANY WARRANTY; without even the implied warranty of
% but WITHOUT ANY WARRANTY; without even the implied warranty of
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
% GNU General Public License for more details.
% GNU
Affero
General Public License for more details.
%
%
% You should have received a copy of the GNU General Public License
% You should have received a copy of the GNU
Affero
General Public License
% along with this program. If not, see <http://www.gnu.org/licenses/>.
% along with this program. If not, see <http://www.gnu.org/licenses/>.
%
%
% Function: lte_fdd_dl_receive
% Function: lte_fdd_dl_receive
...
@@ 23,6 +23,8 @@
...
@@ 23,6 +23,8 @@
% Spec: N/A
% Spec: N/A
% Notes: Only supports normal cyclic prefix
% Notes: Only supports normal cyclic prefix
% Rev History: Ben Wojtowicz 12/26/2011 Created
% Rev History: Ben Wojtowicz 12/26/2011 Created
% Ben Wojtowicz 01/29/2012 Fixed license statement and bug
% with find_pss_and_fine_timing
%
%
function
[]
=
lte_fdd_dl_receive
(
input_samps
)
function
[]
=
lte_fdd_dl_receive
(
input_samps
)
% DEFINES
% DEFINES
...
@@ 269,7 +271,7 @@ function [fine_start, N_id_2, pss_symb, pss_thresh] = find_pss_and_fine_timing(i
...
@@ 269,7 +271,7 @@ function [fine_start, N_id_2, pss_symb, pss_thresh] = find_pss_and_fine_timing(i
fine_start
(
6
)
=
pss_timing_idx
+
(
2048
+
144
)
*
5
+
2048
+
160

15360
;
fine_start
(
6
)
=
pss_timing_idx
+
(
2048
+
144
)
*
5
+
2048
+
160

15360
;
fine_start
(
7
)
=
pss_timing_idx
+
(
2048
+
144
)
*
6
+
2048
+
160

15360
;
fine_start
(
7
)
=
pss_timing_idx
+
(
2048
+
144
)
*
6
+
2048
+
160

15360
;
while
(
fine_start
(
1
)
<
1
)
while
(
fine_start
(
1
)
<
1
)
fine_start
=
fine_start
+
1536
0
;
fine_start
=
fine_start
+
30720
0
;
endwhile
endwhile
endfunction
endfunction
...
...
octave/lte_fdd_dl_transmit.m
View file @
777a4500
%
%
% Copyright 2011 Ben Wojtowicz
% Copyright 2011
2012
Ben Wojtowicz
%
%
% This program is free software: you can redistribute it and/or modify
% This program is free software: you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
% it under the terms of the GNU
Affero
General Public License as published by
% the Free Software Foundation, either version 3 of the License, or
% the Free Software Foundation, either version 3 of the License, or
% (at your option) any later version.
% (at your option) any later version.
%
%
% This program is distributed in the hope that it will be useful,
% This program is distributed in the hope that it will be useful,
% but WITHOUT ANY WARRANTY; without even the implied warranty of
% but WITHOUT ANY WARRANTY; without even the implied warranty of
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
% GNU General Public License for more details.
% GNU
Affero
General Public License for more details.
%
%
% You should have received a copy of the GNU General Public License
% You should have received a copy of the GNU
Affero
General Public License
% along with this program. If not, see <http://www.gnu.org/licenses/>.
% along with this program. If not, see <http://www.gnu.org/licenses/>.
%
%
% Function: lte_fdd_dl_transmit
% Function: lte_fdd_dl_transmit
...
@@ 26,6 +26,7 @@
...
@@ 26,6 +26,7 @@
% Spec: N/A
% Spec: N/A
% Notes: Only supports normal cyclic prefix
% Notes: Only supports normal cyclic prefix
% Rev History: Ben Wojtowicz 12/26/2011 Created
% Rev History: Ben Wojtowicz 12/26/2011 Created
% Ben Wojtowicz 01/29/2012 Fixed license statement
%
%
function
[
output_samps
]
=
lte_fdd_dl_transmit
(
bandwidth
,
N_frames
,
N_id_2
,
N_id_1
,
N_ant
)
function
[
output_samps
]
=
lte_fdd_dl_transmit
(
bandwidth
,
N_frames
,
N_id_2
,
N_id_1
,
N_ant
)
% DEFINES
% DEFINES
...
...
octave/lte_generate_crs.m
View file @
777a4500
%
%
% Copyright 2011 Ben Wojtowicz
% Copyright 2011
2012
Ben Wojtowicz
%
%
% This program is free software: you can redistribute it and/or modify
% This program is free software: you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
% it under the terms of the GNU
Affero
General Public License as published by
% the Free Software Foundation, either version 3 of the License, or
% the Free Software Foundation, either version 3 of the License, or
% (at your option) any later version.
% (at your option) any later version.
%
%
% This program is distributed in the hope that it will be useful,
% This program is distributed in the hope that it will be useful,
% but WITHOUT ANY WARRANTY; without even the implied warranty of
% but WITHOUT ANY WARRANTY; without even the implied warranty of
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
% GNU General Public License for more details.
% GNU
Affero
General Public License for more details.
%
%
% You should have received a copy of the GNU General Public License
% You should have received a copy of the GNU
Affero
General Public License
% along with this program. If not, see <http://www.gnu.org/licenses/>.
% along with this program. If not, see <http://www.gnu.org/licenses/>.
%
%
% Function: lte_generate_crs
% Function: lte_generate_crs
...
@@ 23,6 +23,7 @@
...
@@ 23,6 +23,7 @@
% Spec: 3GPP TS 36.211 section 6.10.1.1 v10.1.0
% Spec: 3GPP TS 36.211 section 6.10.1.1 v10.1.0
% Notes: Currently only handles normal CP
% Notes: Currently only handles normal CP
% Rev History: Ben Wojtowicz 10/28/2011 Created
% Rev History: Ben Wojtowicz 10/28/2011 Created
% Ben Wojtowicz 01/29/2012 Fixed license statement
%
%
function
[
r
]
=
lte_generate_crs
(
N_s
,
L
,
N_id_cell
)
function
[
r
]
=
lte_generate_crs
(
N_s
,
L
,
N_id_cell
)
...
...
octave/lte_generate_prs_c.m
View file @
777a4500
%
%
% Copyright 2011 Ben Wojtowicz
% Copyright 2011
2012
Ben Wojtowicz
%
%
% This program is free software: you can redistribute it and/or modify
% This program is free software: you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
% it under the terms of the GNU
Affero
General Public License as published by
% the Free Software Foundation, either version 3 of the License, or
% the Free Software Foundation, either version 3 of the License, or
% (at your option) any later version.
% (at your option) any later version.
%
%
% This program is distributed in the hope that it will be useful,
% This program is distributed in the hope that it will be useful,
% but WITHOUT ANY WARRANTY; without even the implied warranty of
% but WITHOUT ANY WARRANTY; without even the implied warranty of
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
% GNU General Public License for more details.
% GNU
Affero
General Public License for more details.
%
%
% You should have received a copy of the GNU General Public License
% You should have received a copy of the GNU
Affero
General Public License
% along with this program. If not, see <http://www.gnu.org/licenses/>.
% along with this program. If not, see <http://www.gnu.org/licenses/>.
%
%
% Function: lte_generate_prs_c
% Function: lte_generate_prs_c
...
@@ 23,6 +23,7 @@
...
@@ 23,6 +23,7 @@
% Spec: 3GPP TS 36.211 section 7.2 v10.1.0
% Spec: 3GPP TS 36.211 section 7.2 v10.1.0
% Notes: None
% Notes: None
% Rev History: Ben Wojtowicz 10/28/2011 Created
% Rev History: Ben Wojtowicz 10/28/2011 Created
% Ben Wojtowicz 01/29/2012 Fixed license statement
%
%
function
[
c
]
=
lte_generate_prs_c
(
c_init
,
seq_len
)
function
[
c
]
=
lte_generate_prs_c
(
c_init
,
seq_len
)
% Initialize the msequences
% Initialize the msequences
...
...
octave/lte_generate_pss.m
View file @
777a4500
%
%
% Copyright 2011 Ben Wojtowicz
% Copyright 2011
2012
Ben Wojtowicz
%
%
% This program is free software: you can redistribute it and/or modify
% This program is free software: you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
% it under the terms of the GNU
Affero
General Public License as published by
% the Free Software Foundation, either version 3 of the License, or
% the Free Software Foundation, either version 3 of the License, or
% (at your option) any later version.
% (at your option) any later version.
%
%
% This program is distributed in the hope that it will be useful,
% This program is distributed in the hope that it will be useful,
% but WITHOUT ANY WARRANTY; without even the implied warranty of
% but WITHOUT ANY WARRANTY; without even the implied warranty of
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
% GNU General Public License for more details.
% GNU
Affero
General Public License for more details.
%