Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
T
trx-ecpri
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
nexedi
trx-ecpri
Commits
2499d195
Commit
2499d195
authored
Jan 22, 2025
by
Joanne Hugé
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wip: debug recv recieving too small messages
parent
10656cd6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
trx_ecpri.c
trx_ecpri.c
+9
-0
No files found.
trx_ecpri.c
View file @
2499d195
...
...
@@ -399,6 +399,9 @@ static void *recv_thread(void *p) {
int
ret
=
recvmmsg
(
recv_sockfd
,
msgh
+
j
,
RX_BURST_SIZE
-
j
,
0
,
NULL
);
if
(
ret
<=
-
1
)
error
(
EXIT_FAILURE
,
errno
,
"recvmmsg error"
);
for
(
int
l
=
0
;
l
<
ret
;
l
++
)
if
((
msgh
+
j
+
l
)
->
msg_len
!=
PACKET_SIZE
)
log_info
(
"RECV_THREAD"
,
"Received message has len %d instead of %d"
,
(
msgh
+
j
+
l
)
->
msg_len
,
PACKET_SIZE
);
j
+=
ret
;
update_counter
(
&
recv_counter
,
ret
);
}
...
...
@@ -560,6 +563,12 @@ static void *decode_thread(void *p) {
data
=
rbuf_read
(
&
rx_rbuf
);
printf
(
"data =
\n
"
);
for
(
int
l
=
0
;
l
<
IQ_PAYLOAD
;
l
++
)
printf
(
"%X"
,
data
[
l
]);
printf
(
"
\n
"
);
log_exit
(
""
,
""
);
int
j
=
ETHERNET_HEADER
+
ECPRI_COMMON_HEADER
;
uint16_t
antenna_id
=
ntohs
(
*
((
uint16_t
*
)
(
data
+
j
+
0
)));
uint8_t
seq_id
=
((
uint8_t
)
(
*
((
uint16_t
*
)
(
data
+
j
+
2
))
>>
8
));
...
...
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