Commit f86a5a16 authored by Raymond Knopp's avatar Raymond Knopp

Merge branch 'l1-sidelink' of https://gitlab.eurecom.fr/matzakos/LTE-D2D into l1-sidelink

parents 574f42f3 427eabb8
...@@ -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);
}
} }
...@@ -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