Commit 7e64422f authored by Raymond Knopp's avatar Raymond Knopp

git-svn-id: http://svn.eurecom.fr/openair4G/trunk@6036 818b1a75-f10b-46b9-bf7c-635c3b92a50f
parent 83141ec4
...@@ -104,7 +104,7 @@ void *rrh_eNB_thread(void *arg) { ...@@ -104,7 +104,7 @@ void *rrh_eNB_thread(void *arg) {
// get header info // get header info
bzero((void*)&clientaddr,sizeof(struct sockaddr)); bzero((void*)&clientaddr,sizeof(struct sockaddr));
clientaddrlen = sizeof(struct sockaddr); clientaddrlen = sizeof(struct sockaddr);
printf("Waiting ...\n");
bytes_received = recvfrom(sockid,msg_header,4+sizeof(openair0_timestamp),0,&clientaddr,&clientaddrlen); bytes_received = recvfrom(sockid,msg_header,4+sizeof(openair0_timestamp),0,&clientaddr,&clientaddrlen);
cmd = msg_header[0]; cmd = msg_header[0];
antenna_index = cmd>>1; antenna_index = cmd>>1;
...@@ -115,8 +115,8 @@ void *rrh_eNB_thread(void *arg) { ...@@ -115,8 +115,8 @@ void *rrh_eNB_thread(void *arg) {
switch (cmd) { switch (cmd) {
case 0: // RX case 0: // RX
// printf("Received RX request for antenna %d, nsamps %d (from %s:%d)\n",antenna_index,nsamps,str, printf("Received RX request for antenna %d, nsamps %d (from %s:%d)\n",antenna_index,nsamps,str,
// ntohs(((struct sockaddr_in*)&clientaddr)->sin_port)); ntohs(((struct sockaddr_in*)&clientaddr)->sin_port));
// send return // send return
if ((bytes_sent = sendto(sockid, if ((bytes_sent = sendto(sockid,
...@@ -126,7 +126,7 @@ void *rrh_eNB_thread(void *arg) { ...@@ -126,7 +126,7 @@ void *rrh_eNB_thread(void *arg) {
(struct sockaddr*)&clientaddr, (struct sockaddr*)&clientaddr,
sizeof(struct sockaddr)))<0) sizeof(struct sockaddr)))<0)
perror("RRH: sendto for RX"); perror("RRH: sendto for RX");
// printf("bytes_sent %d(timestamp_rx %d)\n",bytes_sent); printf("bytes_sent %d(timestamp_rx %d)\n",bytes_sent);
timestamp_rx+=nsamps; timestamp_rx+=nsamps;
break; break;
case 1: // TX case 1: // TX
......
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