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
c1f14ffa
Commit
c1f14ffa
authored
Feb 22, 2021
by
Omar Gabella
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
KM3NET BROADCAST : Reset the wr_servo after announce timeout. Announce timeout increased to 450.
parent
6f577f41
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
1 deletion
+13
-1
constants.h
include/ppsi/constants.h
+5
-1
common-fun.c
proto-standard/common-fun.c
+8
-0
No files found.
include/ppsi/constants.h
View file @
c1f14ffa
...
...
@@ -27,7 +27,11 @@
#define PP_DEFAULT_DELAYREQ_INTERVAL 0
#define PP_DEFAULT_SYNC_INTERVAL 0
/* -7 in 802.1AS */
#define PP_DEFAULT_SYNC_RECEIPT_TIMEOUT 3
#define PP_DEFAULT_ANNOUNCE_RECEIPT_TIMEOUT 20
/* 3 by default */
#ifdef BROADCAST
#define PP_DEFAULT_ANNOUNCE_RECEIPT_TIMEOUT 450
/* 3 by default */
#else
#define PP_DEFAULT_ANNOUNCE_RECEIPT_TIMEOUT 20
/* 3 by default */
#endif
/* Clock classes (pag 55, PTP-2008). See ppsi-manual for an explanation */
#define PP_CLASS_SLAVE_ONLY 255
...
...
proto-standard/common-fun.c
View file @
c1f14ffa
...
...
@@ -96,6 +96,14 @@ int st_com_execute_slave(struct pp_instance *ppi)
}
else
{
ppi
->
next_state
=
PPS_LISTENING
;
pp_timeout_set
(
ppi
,
PP_TO_ANN_RECEIPT
);
#ifdef BROADCAST
/* Reception Announce timeout expires, the link must be rebooted. */
if
(
ppi
->
state
==
PPS_SLAVE
)
{
// Reboot only if we are on slave state.
WR_DSPOR
(
ppi
)
->
linkUP
=
FALSE
;
// ptpPortDS->linkUP = FALSE; // In PTPWRd
shw_pps_gen_enable_output
(
0
);
wr_servo_reset
(
ppi
);
}
#endif
}
}
return
0
;
...
...
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