Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
P
PPSi
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
50
Issues
50
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
PPSi
Commits
dfb66511
Commit
dfb66511
authored
Dec 22, 2021
by
Omar Gabella
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
KM3NET BROADCAST : Two counters added to monitor the timestamps flagged as incorrect.
parent
c3143b99
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
0 deletions
+12
-0
wr-api.h
proto-ext-whiterabbit/wr-api.h
+6
-0
wr-servo.c
proto-ext-whiterabbit/wr-servo.c
+6
-0
No files found.
proto-ext-whiterabbit/wr-api.h
View file @
dfb66511
...
...
@@ -53,6 +53,12 @@ struct wr_dsport {
FixedDelta
otherNodeDeltaRx
;
Boolean
doRestart
;
Boolean
linkUP
;
#ifdef BROADCAST
/* Counters to monitor the timestamps flagged as incorrect
* in 'wr_e2e_offset_downlink'.*/
UInteger16
ctr_incorrect_timestamp
;
UInteger16
ctr_consecutive_incorrect_timestamp
;
#endif // BROADCAST
};
/* This uppercase name matches "DSPOR(ppi)" used by standard protocol */
...
...
proto-ext-whiterabbit/wr-servo.c
View file @
dfb66511
...
...
@@ -453,9 +453,15 @@ int wr_e2e_offset_downlink(struct pp_instance *ppi,
if
(
is_incorrect
(
&
s
->
t1
)
||
is_incorrect
(
&
s
->
t2
))
{
errcount
++
;
/* KM3NET: Counter to monitor the timestamps flagged as incorrect.
* In the past i have detected that when the CLB have 5 consecutives t1 incorrect
* she get stucked in unitialized servo state.*/
WR_DSPOR
(
ppi
)
->
ctr_incorrect_timestamp
++
;
if
(
errcount
>
5
)
{
/* a 2-3 in a row are expected */
pp_error
(
"%s: TimestampsIncorrect: %d %d
\n
"
,
__func__
,
!
is_incorrect
(
&
s
->
t1
),
!
is_incorrect
(
&
s
->
t2
));
/*KM3NET: Counter to monitor how many times we have a errcount > 5.*/
WR_DSPOR
(
ppi
)
->
ctr_consecutive_incorrect_timestamp
++
;
/* If errcount > 5 we reset the wrMode so as not get stuck on the
* uninitialized servo state. */
WR_DSPOR
(
ppi
)
->
wrModeOn
=
FALSE
;
...
...
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