Package jmri.jmrix.sprog
Class SprogConstants
java.lang.Object
jmri.jmrix.sprog.SprogConstants
Constants to represent values seen in SPROG traffic.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumstatic enum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic intNumber of consecutive reply timeouts before the command station shuts down track power.static intTimeout for command station to wait for reply from hardware.static final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic intstatic final intstatic final intstatic final intstatic intThreshold to warn of long delays between DCC packets to the rails.static final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic intstatic intstatic intTimeout for traffic controller to wait for reply from hardware.static final intstatic final int -
Method Summary
-
Field Details
-
SPROG
- See Also:
-
SPROG_CS
- See Also:
-
PACKET_DELAY_WARN_THRESHOLD
Threshold to warn of long delays between DCC packets to the rails. Worst case DCC packet transmission time is ~10 ms, which equates to 100 packets/s. Wait for a somewhat arbitrary time before reporting a possible issue with the system performance. A delay of 50 ms equates to 20 packets/s if sustained. Slower systems such as Raspberry Pi with flash based file systems are more likely to exhibit longer delays between packets. -
CS_REPLY_TIMEOUT
Timeout for command station to wait for reply from hardware. Slower systems such as Raspberry Pi with flash based file systems are more likely to exhibit longer delays. -
CS_MAX_TIMEOUT_COUNT
Number of consecutive reply timeouts before the command station shuts down track power.A single timeout can occur when the JVM is temporarily busy (e.g. garbage collection or Swing rendering). Requiring multiple consecutive timeouts before taking the drastic step of removing power avoids false-positive shutdowns on slower systems.
-
TC_PROG_REPLY_TIMEOUT
Timeout for traffic controller to wait for reply from hardware. Most replies are received from SPROG hardware with a few seconds, but paged mode programming operations can take considerably longer when reading a high value from a CV. Therefore we set a very long timeout, which should longer than the programmer timeout. -
TC_OPS_REPLY_TIMEOUT
-
TC_BOOT_REPLY_TIMEOUT
-
S_REPEATS
- See Also:
-
OPS_REPEATS
- See Also:
-
MAX_PACKET_LENGTH
- See Also:
-
SLOT_FREE
- See Also:
-
SLOT_IN_USE
- See Also:
-
DEFAULT_MAX_SLOTS
- See Also:
-
MIN_SLOTS
- See Also:
-
SLOTS_LIMIT
- See Also:
-
MAX_FUNCTIONS
-
F8
- See Also:
-
F7
- See Also:
-
F6
- See Also:
-
F5
- See Also:
-
F4
- See Also:
-
F3
- See Also:
-
F2
- See Also:
-
F1
- See Also:
-
F0
- See Also:
-
UNLOCK_BIT
- See Also:
-
CALC_BIT
- See Also:
-
POWER_BIT
- See Also:
-
ZTC_BIT
- See Also:
-
BLUE_BIT
- See Also:
-
STEP_MASK
- See Also:
-
STEP14_BIT
- See Also:
-
STEP28_BIT
- See Also:
-
STEP128_BIT
- See Also:
-
LONG_ADD
- See Also:
-
DEFAULT_I
- See Also:
-
MAX_ACC_DECODER_JMRI_ADDR
- See Also:
-