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
canghaiwuhen
OpenXG-RAN
Commits
05d8ca31
Commit
05d8ca31
authored
May 23, 2018
by
matzakos
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
UE successfully attaches to the EPC now.
parent
b277fe61
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
7 deletions
+20
-7
openair2/PHY_INTERFACE/phy_stub_UE.c
openair2/PHY_INTERFACE/phy_stub_UE.c
+12
-3
openair3/NAS/TOOLS/ue_eurecom_test_sfr.conf
openair3/NAS/TOOLS/ue_eurecom_test_sfr.conf
+6
-3
openair3/NAS/UE/API/USIM/usim_api.h
openair3/NAS/UE/API/USIM/usim_api.h
+2
-1
No files found.
openair2/PHY_INTERFACE/phy_stub_UE.c
View file @
05d8ca31
...
@@ -242,6 +242,7 @@ void fill_ulsch_cqi_indication_UE_MAC(int Mod_id, uint16_t frame,uint8_t subfram
...
@@ -242,6 +242,7 @@ void fill_ulsch_cqi_indication_UE_MAC(int Mod_id, uint16_t frame,uint8_t subfram
void
fill_ulsch_harq_indication_UE_MAC
(
int
Mod_id
,
int
frame
,
int
subframe
,
UL_IND_t
*
UL_INFO
,
nfapi_ul_config_ulsch_harq_information
*
harq_information
,
uint16_t
rnti
)
void
fill_ulsch_harq_indication_UE_MAC
(
int
Mod_id
,
int
frame
,
int
subframe
,
UL_IND_t
*
UL_INFO
,
nfapi_ul_config_ulsch_harq_information
*
harq_information
,
uint16_t
rnti
)
{
{
LOG_I
(
MAC
,
"Panos-D: fill_ulsch_harq_indication_UE_MAC(), NUM ACK_NAK REL. 10: %d, NUM ACK_NAK REL. 13: %d, SFN/SF: %d/%d"
,
harq_information
->
harq_information_rel10
.
harq_size
,
harq_information
->
harq_information_rel13
.
harq_size_2
,
frame
,
subframe
);
pthread_mutex_lock
(
&
UE_mac_inst
[
Mod_id
].
UL_INFO_mutex
);
pthread_mutex_lock
(
&
UE_mac_inst
[
Mod_id
].
UL_INFO_mutex
);
nfapi_harq_indication_pdu_t
*
pdu
=
&
UL_INFO
->
harq_ind
.
harq_indication_body
.
harq_pdu_list
[
UL_INFO
->
harq_ind
.
harq_indication_body
.
number_of_harqs
];
nfapi_harq_indication_pdu_t
*
pdu
=
&
UL_INFO
->
harq_ind
.
harq_indication_body
.
harq_pdu_list
[
UL_INFO
->
harq_ind
.
harq_indication_body
.
number_of_harqs
];
int
i
;
int
i
;
...
@@ -261,16 +262,20 @@ void fill_ulsch_harq_indication_UE_MAC(int Mod_id, int frame,int subframe, UL_IN
...
@@ -261,16 +262,20 @@ void fill_ulsch_harq_indication_UE_MAC(int Mod_id, int frame,int subframe, UL_IN
//if (eNB->frame_parms.frame_type == FDD) {
//if (eNB->frame_parms.frame_type == FDD) {
pdu
->
harq_indication_fdd_rel13
.
tl
.
tag
=
NFAPI_HARQ_INDICATION_FDD_REL13_TAG
;
pdu
->
harq_indication_fdd_rel13
.
tl
.
tag
=
NFAPI_HARQ_INDICATION_FDD_REL13_TAG
;
pdu
->
harq_indication_fdd_rel13
.
mode
=
0
;
pdu
->
harq_indication_fdd_rel13
.
mode
=
0
;
pdu
->
harq_indication_fdd_rel13
.
number_of_ack_nack
=
harq_information
->
harq_information_rel10
.
harq_size
;
pdu
->
harq_indication_fdd_rel13
.
number_of_ack_nack
=
1
;
//harq_information->harq_information_rel10.harq_size;
//pdu->harq_indication_fdd_rel13.number_of_ack_nack = harq_information->harq_information_rel10.harq_size;
//Panos: Could this be wrong? Is the number_of_ack_nack field equivalent to O_ACK?
//Panos: Could this be wrong? Is the number_of_ack_nack field equivalent to O_ACK?
//pdu->harq_indication_fdd_rel13.number_of_ack_nack = ulsch_harq->O_ACK;
//pdu->harq_indication_fdd_rel13.number_of_ack_nack = ulsch_harq->O_ACK;
for
(
i
=
0
;
i
<
harq_information
->
harq_information_rel10
.
harq_size
;
i
++
)
{
pdu
->
harq_indication_fdd_rel13
.
harq_tb_n
[
0
]
=
1
;
/*for (i=0;i<harq_information->harq_information_rel10.harq_size;i++) {
pdu->harq_indication_fdd_rel13.harq_tb_n[i] = 1; //Panos: Assuming always an ACK (No NACK or DTX)
pdu->harq_indication_fdd_rel13.harq_tb_n[i] = 1; //Panos: Assuming always an ACK (No NACK or DTX)
}
}
*/
UL_INFO
->
harq_ind
.
harq_indication_body
.
number_of_harqs
++
;
UL_INFO
->
harq_ind
.
harq_indication_body
.
number_of_harqs
++
;
pthread_mutex_unlock
(
&
UE_mac_inst
[
Mod_id
].
UL_INFO_mutex
);
pthread_mutex_unlock
(
&
UE_mac_inst
[
Mod_id
].
UL_INFO_mutex
);
...
@@ -287,6 +292,7 @@ void fill_uci_harq_indication_UE_MAC(int Mod_id,
...
@@ -287,6 +292,7 @@ void fill_uci_harq_indication_UE_MAC(int Mod_id,
uint16_t tdd_multiplexing_mask*/
)
{
uint16_t tdd_multiplexing_mask*/
)
{
LOG_I
(
MAC
,
"Panos-D: fill_uci_harq_indication_UE_MAC 1 SFN/SF: %d/%d
\n
"
,
frame
,
subframe
);
pthread_mutex_lock
(
&
UE_mac_inst
[
Mod_id
].
UL_INFO_mutex
);
pthread_mutex_lock
(
&
UE_mac_inst
[
Mod_id
].
UL_INFO_mutex
);
nfapi_harq_indication_t
*
ind
=
&
UL_INFO
->
harq_ind
;
nfapi_harq_indication_t
*
ind
=
&
UL_INFO
->
harq_ind
;
nfapi_harq_indication_body_t
*
body
=
&
ind
->
harq_indication_body
;
nfapi_harq_indication_body_t
*
body
=
&
ind
->
harq_indication_body
;
...
@@ -322,6 +328,7 @@ void fill_uci_harq_indication_UE_MAC(int Mod_id,
...
@@ -322,6 +328,7 @@ void fill_uci_harq_indication_UE_MAC(int Mod_id,
//AssertFatal(harq_ack[0] == 1 || harq_ack[0] == 2 || harq_ack[0] == 4, "harq_ack[0] is %d, should be 1,2 or 4\n",harq_ack[0]);
//AssertFatal(harq_ack[0] == 1 || harq_ack[0] == 2 || harq_ack[0] == 4, "harq_ack[0] is %d, should be 1,2 or 4\n",harq_ack[0]);
pdu
->
harq_indication_fdd_rel13
.
harq_tb_n
[
0
]
=
1
;
//Panos: Assuming always an ACK (No NACK or DTX)
pdu
->
harq_indication_fdd_rel13
.
harq_tb_n
[
0
]
=
1
;
//Panos: Assuming always an ACK (No NACK or DTX)
LOG_I
(
MAC
,
"Panos-D: fill_uci_harq_indication_UE_MAC 2 SFN/SF: %d/%d, harq_information->harq_information_rel9_fdd.harq_size: %d
\n
"
,
frame
,
subframe
,
harq_information
->
harq_information_rel9_fdd
.
harq_size
);
}
}
...
@@ -333,6 +340,8 @@ void fill_uci_harq_indication_UE_MAC(int Mod_id,
...
@@ -333,6 +340,8 @@ void fill_uci_harq_indication_UE_MAC(int Mod_id,
pdu
->
harq_indication_fdd_rel13
.
harq_tb_n
[
0
]
=
1
;
//Panos: Assuming always an ACK (No NACK or DTX)
pdu
->
harq_indication_fdd_rel13
.
harq_tb_n
[
0
]
=
1
;
//Panos: Assuming always an ACK (No NACK or DTX)
pdu
->
harq_indication_fdd_rel13
.
harq_tb_n
[
1
]
=
1
;
//Panos: Assuming always an ACK (No NACK or DTX)
pdu
->
harq_indication_fdd_rel13
.
harq_tb_n
[
1
]
=
1
;
//Panos: Assuming always an ACK (No NACK or DTX)
LOG_I
(
MAC
,
"Panos-D: fill_uci_harq_indication_UE_MAC 3 SFN/SF: %d/%d, harq_information->harq_information_rel9_fdd.harq_size: %d
\n
"
,
frame
,
subframe
,
harq_information
->
harq_information_rel9_fdd
.
harq_size
);
}
}
else
AssertFatal
(
1
==
0
,
"only format 1a/b for now, received
\n
"
);
else
AssertFatal
(
1
==
0
,
"only format 1a/b for now, received
\n
"
);
...
...
openair3/NAS/TOOLS/ue_eurecom_test_sfr.conf
View file @
05d8ca31
...
@@ -86,9 +86,12 @@ UE0:
...
@@ -86,9 +86,12 @@ UE0:
};
};
SIM
: {
SIM
: {
MSIN
=
"0100001111"
;
MSIN
=
"0000000001"
;
USIM_API_K
=
"8baf473f2f8fd09487cccbd7097c6862"
;
#USIM_API_K="e56e26f5608b8d268f2556e198a0e01b";
OPC
=
"e734f8734007d6c5ce7a0508809e7e9c"
;
#USIM_API_K="8baf473f2f8fd09487cccbd7097c6862"; #initial
USIM_API_K
=
"11111111111111111111111111111111"
;
#OPC="e734f8734007d6c5ce7a0508809e7e9c"; #initial
OPC
=
"f47f37e4719a9c379e3447f089b1f10a"
;
MSISDN
=
"33611123456"
;
MSISDN
=
"33611123456"
;
};
};
...
...
openair3/NAS/UE/API/USIM/usim_api.h
View file @
05d8ca31
...
@@ -52,8 +52,9 @@ Description Implements the API used by the NAS layer to read/write
...
@@ -52,8 +52,9 @@ Description Implements the API used by the NAS layer to read/write
* Subscriber authentication security key
* Subscriber authentication security key
*/
*/
#define USIM_API_K_SIZE 16
#define USIM_API_K_SIZE 16
#define USIM_API_K_VALUE "fec86ba6eb707ed08905757b1bb44b8f"
//
#define USIM_API_K_VALUE "fec86ba6eb707ed08905757b1bb44b8f"
#define USIM_API_K_VALUE "8baf473f2f8fd09487cccbd7097c6862"
/*
/*
* The name of the file where are stored data of the USIM application
* The name of the file where are stored data of the USIM application
*/
*/
...
...
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