Reduce Tusage_timeout for all ports. (#37)
This commit is contained in:
committed by
Steve Karg
parent
09a7d3876f
commit
76abcaedd1
@@ -51,7 +51,7 @@ void *dl_mstp_thread(void *pArgs)
|
||||
|
||||
shared_port_data.Treply_timeout = 260;
|
||||
shared_port_data.MSTP_Packets = 0;
|
||||
shared_port_data.Tusage_timeout = 50;
|
||||
shared_port_data.Tusage_timeout = 30;
|
||||
shared_port_data.RS485_Handle = -1;
|
||||
shared_port_data.RS485_Baud = B38400;
|
||||
shared_port_data.RS485MOD = 0;
|
||||
|
||||
@@ -129,11 +129,11 @@ static uint8_t Nmax_master = 127;
|
||||
/* larger values for this timeout, not to exceed 300 milliseconds.) */
|
||||
#define Treply_timeout 260
|
||||
|
||||
/* The minimum time without a DataAvailable or ReceiveError event that a */
|
||||
/* node must wait for a remote node to begin using a token or replying to */
|
||||
/* a Poll For Master frame: 20 milliseconds. (Implementations may use */
|
||||
/* larger values for this timeout, not to exceed 100 milliseconds.) */
|
||||
#define Tusage_timeout 60
|
||||
/* The time without a DataAvailable or ReceiveError event that a node must */
|
||||
/* wait for a remote node to begin using a token or replying to a Poll For */
|
||||
/* Master frame: 20 milliseconds. (Implementations may use larger values for */
|
||||
/* this timeout, not to exceed 35 milliseconds.) */
|
||||
#define Tusage_timeout 30
|
||||
|
||||
/* The number of tokens received or used before a Poll For Master cycle */
|
||||
/* is executed: 50. */
|
||||
|
||||
@@ -141,11 +141,11 @@ static uint8_t TransmitPacketDest;
|
||||
/* larger values for this timeout, not to exceed 300 milliseconds.) */
|
||||
#define Treply_timeout 295
|
||||
|
||||
/* The minimum time without a DataAvailable or ReceiveError event that a */
|
||||
/* node must wait for a remote node to begin using a token or replying to */
|
||||
/* a Poll For Master frame: 20 milliseconds. (Implementations may use */
|
||||
/* larger values for this timeout, not to exceed 100 milliseconds.) */
|
||||
#define Tusage_timeout 95
|
||||
/* The time without a DataAvailable or ReceiveError event that a node must */
|
||||
/* wait for a remote node to begin using a token or replying to a Poll For */
|
||||
/* Master frame: 20 milliseconds. (Implementations may use larger values for */
|
||||
/* this timeout, not to exceed 35 milliseconds.) */
|
||||
#define Tusage_timeout 30
|
||||
|
||||
/* The minimum number of DataAvailable or ReceiveError events that must be */
|
||||
/* seen by a receiving node in order to declare the line "active": 4. */
|
||||
|
||||
@@ -133,11 +133,11 @@ static uint8_t Nmax_master = 127;
|
||||
/* larger values for this timeout, not to exceed 300 milliseconds.) */
|
||||
#define Treply_timeout 260
|
||||
|
||||
/* The minimum time without a DataAvailable or ReceiveError event that a */
|
||||
/* node must wait for a remote node to begin using a token or replying to */
|
||||
/* a Poll For Master frame: 20 milliseconds. (Implementations may use */
|
||||
/* larger values for this timeout, not to exceed 100 milliseconds.) */
|
||||
#define Tusage_timeout 60
|
||||
/* The time without a DataAvailable or ReceiveError event that a node must */
|
||||
/* wait for a remote node to begin using a token or replying to a Poll For */
|
||||
/* Master frame: 20 milliseconds. (Implementations may use larger values for */
|
||||
/* this timeout, not to exceed 35 milliseconds.) */
|
||||
#define Tusage_timeout 30
|
||||
|
||||
/* The number of tokens received or used before a Poll For Master cycle */
|
||||
/* is executed: 50. */
|
||||
|
||||
@@ -91,11 +91,11 @@ static RING_BUFFER PDU_Queue;
|
||||
/* confirmed request: 255 milliseconds. (Implementations may use */
|
||||
/* larger values for this timeout, not to exceed 300 milliseconds.) */
|
||||
static uint16_t Treply_timeout = 300;
|
||||
/* The minimum time without a DataAvailable or ReceiveError event that a */
|
||||
/* node must wait for a remote node to begin using a token or replying to */
|
||||
/* a Poll For Master frame: 20 milliseconds. (Implementations may use */
|
||||
/* larger values for this timeout, not to exceed 100 milliseconds.) */
|
||||
static uint8_t Tusage_timeout = 100;
|
||||
/* The time without a DataAvailable or ReceiveError event that a node must */
|
||||
/* wait for a remote node to begin using a token or replying to a Poll For */
|
||||
/* Master frame: 20 milliseconds. (Implementations may use larger values for */
|
||||
/* this timeout, not to exceed 35 milliseconds.) */
|
||||
static uint8_t Tusage_timeout = 30;
|
||||
/* Timer that indicates line silence - and functions */
|
||||
|
||||
static struct timespec start;
|
||||
|
||||
@@ -120,11 +120,11 @@ static uint8_t Nmax_master = 127;
|
||||
/* larger values for this timeout, not to exceed 300 milliseconds.) */
|
||||
#define Treply_timeout 260
|
||||
|
||||
/* The minimum time without a DataAvailable or ReceiveError event that a */
|
||||
/* node must wait for a remote node to begin using a token or replying to */
|
||||
/* a Poll For Master frame: 20 milliseconds. (Implementations may use */
|
||||
/* larger values for this timeout, not to exceed 100 milliseconds.) */
|
||||
#define Tusage_timeout 60
|
||||
/* The time without a DataAvailable or ReceiveError event that a node must */
|
||||
/* wait for a remote node to begin using a token or replying to a Poll For */
|
||||
/* Master frame: 20 milliseconds. (Implementations may use larger values for */
|
||||
/* this timeout, not to exceed 35 milliseconds.) */
|
||||
#define Tusage_timeout 30
|
||||
|
||||
/* The minimum number of DataAvailable or ReceiveError events that must be */
|
||||
/* seen by a receiving node in order to declare the line "active": 4. */
|
||||
|
||||
@@ -60,11 +60,11 @@ static uint8_t RxBuffer[MAX_MPDU];
|
||||
/* confirmed request: 255 milliseconds. (Implementations may use */
|
||||
/* larger values for this timeout, not to exceed 300 milliseconds.) */
|
||||
static uint16_t Treply_timeout = 260;
|
||||
/* The minimum time without a DataAvailable or ReceiveError event that a */
|
||||
/* node must wait for a remote node to begin using a token or replying to */
|
||||
/* a Poll For Master frame: 20 milliseconds. (Implementations may use */
|
||||
/* larger values for this timeout, not to exceed 100 milliseconds.) */
|
||||
static uint8_t Tusage_timeout = 50;
|
||||
/* The time without a DataAvailable or ReceiveError event that a node must */
|
||||
/* wait for a remote node to begin using a token or replying to a Poll For */
|
||||
/* Master frame: 20 milliseconds. (Implementations may use larger values for */
|
||||
/* this timeout, not to exceed 35 milliseconds.) */
|
||||
static uint8_t Tusage_timeout = 30;
|
||||
/* local timer for tracking silence on the wire */
|
||||
static struct mstimer Silence_Timer;
|
||||
|
||||
|
||||
@@ -133,11 +133,11 @@ static volatile uint8_t Nmax_master = 127;
|
||||
/* larger values for this timeout, not to exceed 300 milliseconds.) */
|
||||
#define Treply_timeout 260
|
||||
|
||||
/* The minimum time without a DataAvailable or ReceiveError event that a */
|
||||
/* node must wait for a remote node to begin using a token or replying to */
|
||||
/* a Poll For Master frame: 20 milliseconds. (Implementations may use */
|
||||
/* larger values for this timeout, not to exceed 100 milliseconds.) */
|
||||
#define Tusage_timeout 60
|
||||
/* The time without a DataAvailable or ReceiveError event that a node must */
|
||||
/* wait for a remote node to begin using a token or replying to a Poll For */
|
||||
/* Master frame: 20 milliseconds. (Implementations may use larger values for */
|
||||
/* this timeout, not to exceed 35 milliseconds.) */
|
||||
#define Tusage_timeout 30
|
||||
|
||||
/* The minimum number of DataAvailable or ReceiveError events that must be */
|
||||
/* seen by a receiving node in order to declare the line "active": 4. */
|
||||
|
||||
Reference in New Issue
Block a user