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
spbro
OpenXG-RAN
Commits
7e64422f
Commit
7e64422f
authored
Nov 19, 2014
by
Raymond Knopp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
git-svn-id:
http://svn.eurecom.fr/openair4G/trunk@6036
818b1a75-f10b-46b9-bf7c-635c3b92a50f
parent
83141ec4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
targets/RT/USER/rrh.c
targets/RT/USER/rrh.c
+4
-4
No files found.
targets/RT/USER/rrh.c
View file @
7e64422f
...
@@ -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
...
...
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