Commit 427eabb8 authored by Raymond Knopp's avatar Raymond Knopp

some debugging

parent 65303301
...@@ -79,4 +79,8 @@ int initial_syncSL(PHY_VARS_UE *ue) { ...@@ -79,4 +79,8 @@ int initial_syncSL(PHY_VARS_UE *ue) {
return(-1); return(-1);
} }
} }
else {
write_output("rxsig0.m","rxs0",&ue->common_vars.rxdata[0][ue->frame_parms.samples_per_tti*subframe],ue->frame_parms.samples_per_tti,1,1);
exit(-1);
}
} }
...@@ -56,7 +56,7 @@ void check_and_generate_slss(PHY_VARS_UE *ue,int frame_tx,int subframe_tx) { ...@@ -56,7 +56,7 @@ void check_and_generate_slss(PHY_VARS_UE *ue,int frame_tx,int subframe_tx) {
ue->frame_parms.Nid_SL = slss->slss_id; ue->frame_parms.Nid_SL = slss->slss_id;
// 6 PRBs => ceil(10*log10(6)) = 8 // 6 PRBs => ceil(10*log10(6)) = 8
ue->tx_power_dBm[subframe_tx] = 8; ue->tx_power_dBm[subframe_tx] = -6;
ue->tx_total_RE[subframe_tx] = 72; ue->tx_total_RE[subframe_tx] = 72;
#if defined(EXMIMO) || defined(OAI_USRP) || defined(OAI_BLADERF) || defined(OAI_LMSSDR) #if defined(EXMIMO) || defined(OAI_USRP) || defined(OAI_BLADERF) || defined(OAI_LMSSDR)
......
...@@ -39,7 +39,8 @@ void ue_decode_p(module_id_t module_idP, int CC_id, frame_t frame, ...@@ -39,7 +39,8 @@ void ue_decode_p(module_id_t module_idP, int CC_id, frame_t frame,
uint8_t CH_index, void *pdu, uint16_t len){} uint8_t CH_index, void *pdu, uint16_t len){}
void ue_decode_si(module_id_t module_idP, int CC_id, frame_t frame, void ue_decode_si(module_id_t module_idP, int CC_id, frame_t frame,
uint8_t CH_index, void *pdu, uint16_t len){} uint8_t CH_index, void *pdu, uint16_t len,
SLSS_t *slss, int *rxframe, int *rxsubframe){}
void ue_send_sdu(module_id_t module_idP, uint8_t CC_id, frame_t frame, void ue_send_sdu(module_id_t module_idP, uint8_t CC_id, frame_t frame,
sub_frame_t subframe, uint8_t * sdu, uint16_t sdu_len, sub_frame_t subframe, uint8_t * sdu, uint16_t sdu_len,
......
...@@ -704,8 +704,12 @@ static void *UE_thread_synchSL(void *arg) ...@@ -704,8 +704,12 @@ static void *UE_thread_synchSL(void *arg)
AssertFatal ( 0== pthread_mutex_unlock(&UE->proc.mutex_synchSL), ""); AssertFatal ( 0== pthread_mutex_unlock(&UE->proc.mutex_synchSL), "");
// Do initial synch here // Do initial synch here
if (initial_syncSL(UE) >= 0) if (initial_syncSL(UE) >= 0) LOG_I(PHY,"Found SynchRef UE\n");
else {
LOG_I(PHY,"No SynchRefUE found\n");
write_output("rxsig0.m","rxs0",&UE->common_vars.rxdata_syncSL[0][0],40*UE->frame_parms.samples_per_tti,1,1);
exit(-1);
}
AssertFatal ( 0== pthread_mutex_lock(&UE->proc.mutex_synchSL), ""); AssertFatal ( 0== pthread_mutex_lock(&UE->proc.mutex_synchSL), "");
UE->proc.instance_cnt_synchSL--; UE->proc.instance_cnt_synchSL--;
UE->is_synchronizedSL = 0; UE->is_synchronizedSL = 0;
......
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