Commit 794a6849 authored by cucengineer's avatar cucengineer

debug

parent a299cad9
......@@ -788,7 +788,7 @@ int main( int argc, char **argv ) {
init_NR_UE_threads(1);
printf("UE threads created by %ld\n", gettid());
// wait for end of program
printf("TYPE <CTRL-C> TO TERMINATE\n");
protocol_ctxt_t ctxt_pP = {0};
......@@ -799,10 +799,11 @@ int main( int argc, char **argv ) {
printf("cannot create ITTI tasks\n");
exit(-1); // need a softer mode
}
MessageDef *msg_p;
msg_p = itti_alloc_new_message(TASK_RRC_UE, NAS_CELL_SELECTION_CNF);
printf("create CUC TASK_RRC_UE to NAS_CELL_SELECTION_CNF \n");
NAS_CELL_SELECTION_CNF (msg_p).errCode = AS_SUCCESS;
NAS_CELL_SELECTION_CNF (msg_p).cellID = 0;
NAS_CELL_SELECTION_CNF (msg_p).tac = 0;
......@@ -810,6 +811,8 @@ int main( int argc, char **argv ) {
NAS_CELL_SELECTION_CNF (msg_p).rsrq = 0;
NAS_CELL_SELECTION_CNF (msg_p).rsrp = 0;
itti_send_msg_to_task(TASK_NAS_UE, 0, msg_p);
nas_ue_task(msg_p);
rrc_nrue_task(msg_p);
while(true)
sleep(3600);
......
......@@ -2577,6 +2577,7 @@ void *rrc_nrue_task( void *args_p ) {
break;
case NAS_CONN_ESTABLI_REQ:
printf("rrc received CUC TASK_NAS_UE \n");
LOG_D(RRC, "[UE %d] Received %s: cause %d, type %d, s_tmsi (mme code %"PRIu8", m-tmsi %"PRIu32"), plmnID (%d%d%d.%d%d%d)\n", ue_mod_id, ITTI_MSG_NAME (msg_p), NAS_CONN_ESTABLI_REQ (msg_p).cause,
NAS_CONN_ESTABLI_REQ (msg_p).type,
NAS_CONN_ESTABLI_REQ (msg_p).s_tmsi.MMEcode,
......
......@@ -86,7 +86,8 @@ void *nas_ue_task(void *args_p)
LOG_I(NAS, "[UE %d] Received %s\n", Mod_id, ITTI_MSG_NAME (msg_p));
break;
case NAS_CELL_SELECTION_CNF: //CUC:NAS_CELL_SELECTION_CNF √
case NAS_CELL_SELECTION_CNF: { //CUC:NAS_CELL_SELECTION_CNF √
printf("nas received CUC TASK_RRC_UE \n");
LOG_I(NAS, "[UE %d] Received %s: errCode %u, cellID %u, tac %u\n", Mod_id, ITTI_MSG_NAME (msg_p),
NAS_CELL_SELECTION_CNF (msg_p).errCode, NAS_CELL_SELECTION_CNF (msg_p).cellID, NAS_CELL_SELECTION_CNF (msg_p).tac);
as_stmsi_t s_tmsi={0, 0};
......@@ -95,6 +96,7 @@ void *nas_ue_task(void *args_p)
generateRegistrationRequest(&nas_info);
nas_itti_nas_establish_req(0, AS_TYPE_ORIGINATING_SIGNAL, s_tmsi, plmnID, nas_info.data, nas_info.length, 0);
break;
}
case NAS_CELL_SELECTION_IND:
LOG_I(NAS, "[UE %d] Received %s: cellID %u, tac %u\n", Mod_id, ITTI_MSG_NAME (msg_p),
......@@ -129,6 +131,8 @@ void *nas_ue_task(void *args_p)
break;
case NAS_DOWNLINK_DATA_IND: //CUC:NAS_DOWNLINK_DATA_IND √
printf("nas received CUC TASK_RRC_UE \n");
printf("nas create CUC TASK_UE to NAS_UPLINK_DATA_REQ\n");
LOG_I(NAS, "[UE %d] Received %s: UEid %u, length %u\n", Mod_id, ITTI_MSG_NAME (msg_p),
NAS_DOWNLINK_DATA_IND (msg_p).UEid, NAS_DOWNLINK_DATA_IND (msg_p).nasMsg.length);
nr_nas_proc_dl_transfer_ind (NAS_DOWNLINK_DATA_IND(msg_p).nasMsg.data, NAS_DOWNLINK_DATA_IND(msg_p).nasMsg.length); //handle dl info NAS mesaages.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment