Menu

#516 Inappropriate EStop Emitted by webThrottle.html

System_specific
closed
5
2015-04-19
2015-02-26
Anonymous
No

Most times when using webThrottle.html and clicking the throttle down to 0, instead of sending packet to set throttle to 0, it sends an estop command.

This does not allow expected operation of the deceleration feature of the decoder.

IMO, if I want an estop, I'll use the estop button, the throttle should be
JUST the throttle.

It does work as I expect it to work maybe 2 to 5 % of the time. I'll be happy to assist in the investigation as I can, ralphATkreipleDOTnet

Related

Bugs: #516

Discussion

  • Bob Jacobsen

    Bob Jacobsen - 2015-02-26

    It would help a lot to know which DCC system and which decoder you're using.

    A note to anybody following up on this: Due to favoritism toward one manufacturer, the NMRA made some spectacularly bad choices in defining this aspect of DCC. Sending a value of '0' in the DCC packet is stop; sending '1' is e-stop; sending '2' is the slowest non-stopped speed. But not all decoders properly handle that, and some DCC systems will decrement through '1' on their way from '2' to '0'.

    Bob

     
    • Randall Wood

      Randall Wood - 2015-02-26

      On 26 Feb 2015, at 17:42, Bob Jacobsen jacobsen@users.sf.net wrote:

      It would help a lot to know which DCC system and which decoder you're using.

      A note to anybody following up on this: Due to favoritism toward one manufacturer, the NMRA made some spectacularly bad choices in defining this aspect of DCC. Sending a value of '0' in the DCC packet is stop; sending '1' is e-stop; sending '2' is the slowest non-stopped speed. But not all decoders properly handle that, and some DCC systems will decrement through '1' on their way from '2' to '0'.
      Bob

      The JSON throttles send a floating point number from 1 to 0 for speed and -1 for eStop to a jmri.Throttle instance. If the decoders mattered then this issue would be exhibited from JMRI throttle windows and WiThrottles. Should we expect to see this from certain known decoder types?

      [bugs:#516] Inappropriate EStop Emitted by webThrottle.html

      Status: open
      Group: Broad_impact
      Labels: webThrottle.html
      Created: Thu Feb 26, 2015 08:21 PM UTC by Anonymous
      Last Updated: Thu Feb 26, 2015 08:21 PM UTC
      Owner: nobody

      Most times when using webThrottle.html and clicking the throttle down to 0, instead of sending packet to set throttle to 0, it sends an estop command.

      This does not allow expected operation of the deceleration feature of the decoder.

      IMO, if I want an estop, I'll use the estop button, the throttle should be
      JUST the throttle.

      It does work as I expect it to work maybe 2 to 5 % of the time. I'll be happy to assist in the investigation as I can, ralphATkreipleDOTnet

      Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/jmri/bugs/516/

      To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/

      Randall Wood
      Alexandria Software
      202.683.8604
      randall.h.wood@alexandriasoftware.com
      http://www.alexandriasoftware.com

       

      Related

      Bugs: #516

  • Bob Jacobsen

    Bob Jacobsen - 2015-02-26

    The -1, 0->1 is converted first (in JMRI) into commands to the DCC system, then (in the DCC system) to a DCC signal, and then (in the decoder) to motor control. So lots of places where it can go wrong.

    I've heard multiple times of different DCC system & decoder combinations that have a problem with this, but I've never seen it myself, so don't have any specific information. Hence the desire for a specific DCC-system & decoder combination that does it.

    Bob

     
  • NMTrain

    NMTrain - 2015-02-27

    All Digitrax, decoder DG583AR, command station DCS200, PR3 interface,
    JMRI 3.8r26527 running on Win7.

    Using JMRI only DT402D not attached, loconet log:

    [Tx - A0 05 0E 54] Set speed of loco in slot 5 to 14.
    [Tx - A0 05 1B 41] Set speed of loco in slot 5 to 27.
    [Tx - A0 05 28 72] Set speed of loco in slot 5 to 40.
    [Tx - A0 05 34 6E] Set speed of loco in slot 5 to 52.
    [Tx - A0 05 27 7D] Set speed of loco in slot 5 to 39.
    [Tx - A0 05 1A 40] Set speed of loco in slot 5 to 26.
    [Tx - A0 05 0D 57] Set speed of loco in slot 5 to 13.
    [Tx - A0 05 00 5A] Set speed of loco in slot 5 to 0.
    [Tx - A0 05 0E 54] Set speed of loco in slot 5 to 14.
    [Tx - A0 05 1B 41] Set speed of loco in slot 5 to 27.
    [Tx - A0 05 28 72] Set speed of loco in slot 5 to 40.
    [Tx - A0 05 35 6F] Set speed of loco in slot 5 to 53.
    [Tx - A0 05 34 6E] Set speed of loco in slot 5 to 52.
    [Tx - A0 05 29 73] Set speed of loco in slot 5 to 41.
    [Tx - A0 05 1C 46] Set speed of loco in slot 5 to 28.
    [Tx - A0 05 10 4A] Set speed of loco in slot 5 to 16.
    [Tx - A0 05 06 5C] Set speed of loco in slot 5 to 6.
    [Tx - A0 05 03 59] Set speed of loco in slot 5 to 3.
    [Tx - A0 05 02 58] Set speed of loco in slot 5 to 2.
    [Tx - A0 05 00 5A] Set speed of loco in slot 5 to 0.
    [Tx - A0 05 0E 54] Set speed of loco in slot 5 to 14.
    [Tx - A0 05 1B 41] Set speed of loco in slot 5 to 27.
    [Tx - A0 05 28 72] Set speed of loco in slot 5 to 40.
    [Tx - A0 05 35 6F] Set speed of loco in slot 5 to 53.
    [Tx - A0 05 42 18] Set speed of loco in slot 5 to 66.
    [Tx - A0 05 35 6F] Set speed of loco in slot 5 to 53.
    [Tx - A0 05 28 72] Set speed of loco in slot 5 to 40.
    [Tx - A0 05 1B 41] Set speed of loco in slot 5 to 27.
    [Tx - A0 05 0E 54] Set speed of loco in slot 5 to 14.
    [Tx - A0 05 01 5B] Set speed of loco in slot 5 to EMERGENCY STOP!
    [Tx - A0 05 0E 54] Set speed of loco in slot 5 to 14.
    [Tx - A0 05 1B 41] Set speed of loco in slot 5 to 27.
    [Tx - A0 05 28 72] Set speed of loco in slot 5 to 40.
    [Tx - A0 05 35 6F] Set speed of loco in slot 5 to 53.
    [Tx - A0 05 28 72] Set speed of loco in slot 5 to 40.
    [Tx - A0 05 1B 41] Set speed of loco in slot 5 to 27.
    [Tx - A0 05 0E 54] Set speed of loco in slot 5 to 14.
    [Tx - A0 05 01 5B] Set speed of loco in slot 5 to EMERGENCY STOP!
    [Tx - A0 05 0E 54] Set speed of loco in slot 5 to 14.
    [Tx - A0 05 0A 50] Set speed of loco in slot 5 to 10.
    [Tx - A0 05 10 4A] Set speed of loco in slot 5 to 16.
    [Tx - A0 05 1C 46] Set speed of loco in slot 5 to 28.
    [Tx - A0 05 29 73] Set speed of loco in slot 5 to 41.
    [Tx - A0 05 35 6F] Set speed of loco in slot 5 to 53.
    [Tx - A0 05 3F 65] Set speed of loco in slot 5 to 63.
    [Tx - A0 05 41 1B] Set speed of loco in slot 5 to 65.
    [Tx - A0 05 3F 65] Set speed of loco in slot 5 to 63.
    [Tx - A0 05 35 6F] Set speed of loco in slot 5 to 53.
    [Tx - A0 05 2A 70] Set speed of loco in slot 5 to 42.
    [Tx - A0 05 21 7B] Set speed of loco in slot 5 to 33.
    [Tx - A0 05 19 43] Set speed of loco in slot 5 to 25.
    [Tx - A0 05 12 48] Set speed of loco in slot 5 to 18.
    [Tx - A0 05 0A 50] Set speed of loco in slot 5 to 10.
    [Tx - A0 05 07 5D] Set speed of loco in slot 5 to 7.
    [Tx - A0 05 03 59] Set speed of loco in slot 5 to 3.
    [Tx - A0 05 00 5A] Set speed of loco in slot 5 to 0.

    As you can see, it has two distinct behaviors, the EStop is inappropriate.

    Using just the DT402D trottle, thru to PR3 and JMRI shut down:

    [Rx - A0 05 00 5A] Set speed of loco in slot 5 to 0.
    [Rx - A0 05 00 5A] Set speed of loco in slot 5 to 0.
    [Rx - A0 05 00 5A] Set speed of loco in slot 5 to 0.
    [Rx - A0 05 00 5A] Set speed of loco in slot 5 to 0.
    [Rx - A0 05 02 58] Set speed of loco in slot 5 to 2.
    [Rx - A0 05 04 5E] Set speed of loco in slot 5 to 4.
    [Rx - A0 05 06 5C] Set speed of loco in slot 5 to 6.
    [Rx - A0 05 08 52] Set speed of loco in slot 5 to 8.
    [Rx - A0 05 0A 50] Set speed of loco in slot 5 to 10.
    [Rx - A0 05 0C 56] Set speed of loco in slot 5 to 12.
    [Rx - A0 05 0D 57] Set speed of loco in slot 5 to 13.
    [Rx - A0 05 0C 56] Set speed of loco in slot 5 to 12.
    [Rx - A0 05 0B 51] Set speed of loco in slot 5 to 11.
    [Rx - A0 05 0A 50] Set speed of loco in slot 5 to 10.
    [Rx - A0 05 09 53] Set speed of loco in slot 5 to 9.
    [Rx - A0 05 08 52] Set speed of loco in slot 5 to 8.
    [Rx - A0 05 07 5D] Set speed of loco in slot 5 to 7.
    [Rx - A0 05 06 5C] Set speed of loco in slot 5 to 6.
    [Rx - A0 05 04 5E] Set speed of loco in slot 5 to 4.
    [Rx - A0 05 02 58] Set speed of loco in slot 5 to 2.
    [Rx - A0 05 00 5A] Set speed of loco in slot 5 to 0.
    [Rx - A0 05 00 5A] Set speed of loco in slot 5 to 0.
    [Rx - A0 05 00 5A] Set speed of loco in slot 5 to 0.
    [Rx - A0 05 02 58] Set speed of loco in slot 5 to 2.
    [Rx - A0 05 03 59] Set speed of loco in slot 5 to 3.
    [Rx - A0 05 04 5E] Set speed of loco in slot 5 to 4.
    [Rx - A0 05 05 5F] Set speed of loco in slot 5 to 5.
    [Rx - A0 05 06 5C] Set speed of loco in slot 5 to 6.
    [Rx - A0 05 07 5D] Set speed of loco in slot 5 to 7.
    [Rx - A0 05 08 52] Set speed of loco in slot 5 to 8.
    [Rx - A0 05 08 52] Set speed of loco in slot 5 to 8.
    [Rx - A0 05 0A 50] Set speed of loco in slot 5 to 10.
    [Rx - A0 05 0C 56] Set speed of loco in slot 5 to 12.
    [Rx - A0 05 0E 54] Set speed of loco in slot 5 to 14.
    [Rx - A0 05 0F 55] Set speed of loco in slot 5 to 15.
    [Rx - A0 05 0E 54] Set speed of loco in slot 5 to 14.
    [Rx - A0 05 0D 57] Set speed of loco in slot 5 to 13.
    [Rx - A0 05 0B 51] Set speed of loco in slot 5 to 11.
    [Rx - A0 05 09 53] Set speed of loco in slot 5 to 9.
    [Rx - A0 05 07 5D] Set speed of loco in slot 5 to 7.
    [Rx - A0 05 06 5C] Set speed of loco in slot 5 to 6.
    [Rx - A0 05 04 5E] Set speed of loco in slot 5 to 4.
    [Rx - A0 05 03 59] Set speed of loco in slot 5 to 3.
    [Rx - A0 05 02 58] Set speed of loco in slot 5 to 2.
    [Rx - A0 05 00 5A] Set speed of loco in slot 5 to 0.
    [Rx - A0 05 00 5A] Set speed of loco in slot 5 to 0.
    [Rx - A0 05 00 5A] Set speed of loco in slot 5 to 0.
    [Rx - A0 05 02 58] Set speed of loco in slot 5 to 2.
    [Rx - A0 05 03 59] Set speed of loco in slot 5 to 3.
    [Rx - A0 05 04 5E] Set speed of loco in slot 5 to 4.
    [Rx - A0 05 05 5F] Set speed of loco in slot 5 to 5.
    [Rx - A0 05 06 5C] Set speed of loco in slot 5 to 6.
    [Rx - A0 05 07 5D] Set speed of loco in slot 5 to 7.
    [Rx - A0 05 08 52] Set speed of loco in slot 5 to 8.
    [Rx - A0 05 09 53] Set speed of loco in slot 5 to 9.
    [Rx - A0 05 0A 50] Set speed of loco in slot 5 to 10.
    [Rx - A0 05 0C 56] Set speed of loco in slot 5 to 12.
    [Rx - A0 05 0D 57] Set speed of loco in slot 5 to 13.
    [Rx - A0 05 0F 55] Set speed of loco in slot 5 to 15.
    [Rx - A0 05 10 4A] Set speed of loco in slot 5 to 16.
    [Rx - A0 05 11 4B] Set speed of loco in slot 5 to 17.
    [Rx - A0 05 12 48] Set speed of loco in slot 5 to 18.
    [Rx - A0 05 12 48] Set speed of loco in slot 5 to 18.
    [Rx - A0 05 11 4B] Set speed of loco in slot 5 to 17.
    [Rx - A0 05 0F 55] Set speed of loco in slot 5 to 15.
    [Rx - A0 05 0E 54] Set speed of loco in slot 5 to 14.
    [Rx - A0 05 0C 56] Set speed of loco in slot 5 to 12.
    [Rx - A0 05 0A 50] Set speed of loco in slot 5 to 10.
    [Rx - A0 05 08 52] Set speed of loco in slot 5 to 8.
    [Rx - A0 05 06 5C] Set speed of loco in slot 5 to 6.
    [Rx - A0 05 04 5E] Set speed of loco in slot 5 to 4.
    [Rx - A0 05 02 58] Set speed of loco in slot 5 to 2.
    [Rx - A0 05 00 5A] Set speed of loco in slot 5 to 0.
    [Rx - A0 05 00 5A] Set speed of loco in slot 5 to 0.
    [Rx - A0 05 00 5A] Set speed of loco in slot 5 to 0.
    [Rx - A0 05 00 5A] Set speed of loco in slot 5 to 0.
    [Rx - A0 05 00 5A] Set speed of loco in slot 5 to 0.
    [Rx - A0 05 00 5A] Set speed of loco in slot 5 to 0.
    [Rx - A0 05 00 5A] Set speed of loco in slot 5 to 0.
    [Rx - A0 05 02 58] Set speed of loco in slot 5 to 2.
    [Rx - A0 05 04 5E] Set speed of loco in slot 5 to 4.
    [Rx - A0 05 05 5F] Set speed of loco in slot 5 to 5.
    [Rx - A0 05 06 5C] Set speed of loco in slot 5 to 6.
    [Rx - A0 05 08 52] Set speed of loco in slot 5 to 8.
    [Rx - A0 05 09 53] Set speed of loco in slot 5 to 9.
    [Rx - A0 05 0B 51] Set speed of loco in slot 5 to 11.
    [Rx - A0 05 0D 57] Set speed of loco in slot 5 to 13.
    [Rx - A0 05 0F 55] Set speed of loco in slot 5 to 15.
    [Rx - A0 05 11 4B] Set speed of loco in slot 5 to 17.
    [Rx - A0 05 12 48] Set speed of loco in slot 5 to 18.
    [Rx - A0 05 14 4E] Set speed of loco in slot 5 to 20.
    [Rx - A0 05 16 4C] Set speed of loco in slot 5 to 22.
    [Rx - A0 05 17 4D] Set speed of loco in slot 5 to 23.
    [Rx - A0 05 17 4D] Set speed of loco in slot 5 to 23.
    [Rx - A0 05 18 42] Set speed of loco in slot 5 to 24.
    [Rx - A0 05 17 4D] Set speed of loco in slot 5 to 23.
    [Rx - A0 05 15 4F] Set speed of loco in slot 5 to 21.
    [Rx - A0 05 13 49] Set speed of loco in slot 5 to 19.
    [Rx - A0 05 11 4B] Set speed of loco in slot 5 to 17.
    [Rx - A0 05 0F 55] Set speed of loco in slot 5 to 15.
    [Rx - A0 05 0D 57] Set speed of loco in slot 5 to 13.
    [Rx - A0 05 0B 51] Set speed of loco in slot 5 to 11.
    [Rx - A0 05 09 53] Set speed of loco in slot 5 to 9.
    [Rx - A0 05 07 5D] Set speed of loco in slot 5 to 7.
    [Rx - A0 05 05 5F] Set speed of loco in slot 5 to 5.
    [Rx - A0 05 03 59] Set speed of loco in slot 5 to 3.
    [Rx - A0 05 02 58] Set speed of loco in slot 5 to 2.
    [Rx - A0 05 00 5A] Set speed of loco in slot 5 to 0.
    [Rx - A0 05 00 5A] Set speed of loco in slot 5 to 0.
    [Rx - A0 05 00 5A] Set speed of loco in slot 5 to 0.
    [Rx - A0 05 00 5A] Set speed of loco in slot 5 to 0.
    [Rx - A0 05 02 58] Set speed of loco in slot 5 to 2.
    [Rx - A0 05 04 5E] Set speed of loco in slot 5 to 4.
    [Rx - A0 05 05 5F] Set speed of loco in slot 5 to 5.
    [Rx - A0 05 07 5D] Set speed of loco in slot 5 to 7.
    [Rx - A0 05 09 53] Set speed of loco in slot 5 to 9.
    [Rx - A0 05 0A 50] Set speed of loco in slot 5 to 10.
    [Rx - A0 05 0B 51] Set speed of loco in slot 5 to 11.
    [Rx - A0 05 0D 57] Set speed of loco in slot 5 to 13.
    [Rx - A0 05 0E 54] Set speed of loco in slot 5 to 14.
    [Rx - A0 05 10 4A] Set speed of loco in slot 5 to 16.
    [Rx - A0 05 12 48] Set speed of loco in slot 5 to 18.
    [Rx - A0 05 13 49] Set speed of loco in slot 5 to 19.
    [Rx - A0 05 14 4E] Set speed of loco in slot 5 to 20.
    [Rx - A0 05 15 4F] Set speed of loco in slot 5 to 21.
    [Rx - A0 05 17 4D] Set speed of loco in slot 5 to 23.
    [Rx - A0 05 19 43] Set speed of loco in slot 5 to 25.
    [Rx - A0 05 1B 41] Set speed of loco in slot 5 to 27.
    [Rx - A0 05 1B 41] Set speed of loco in slot 5 to 27.
    [Rx - A0 05 1D 47] Set speed of loco in slot 5 to 29.
    [Rx - A0 05 1F 45] Set speed of loco in slot 5 to 31.
    [Rx - A0 05 21 7B] Set speed of loco in slot 5 to 33.
    [Rx - A0 05 23 79] Set speed of loco in slot 5 to 35.
    [Rx - A0 05 25 7F] Set speed of loco in slot 5 to 37.
    [Rx - A0 05 27 7D] Set speed of loco in slot 5 to 39.
    [Rx - A0 05 29 73] Set speed of loco in slot 5 to 41.
    [Rx - A0 05 2A 70] Set speed of loco in slot 5 to 42.
    [Rx - A0 05 2B 71] Set speed of loco in slot 5 to 43.
    [Rx - A0 05 2E 74] Set speed of loco in slot 5 to 46.
    [Rx - A0 05 30 6A] Set speed of loco in slot 5 to 48.
    [Rx - A0 05 2F 75] Set speed of loco in slot 5 to 47.
    [Rx - A0 05 2E 74] Set speed of loco in slot 5 to 46.
    [Rx - A0 05 2D 77] Set speed of loco in slot 5 to 45.
    [Rx - A0 05 2B 71] Set speed of loco in slot 5 to 43.
    [Rx - A0 05 29 73] Set speed of loco in slot 5 to 41.
    [Rx - A0 05 27 7D] Set speed of loco in slot 5 to 39.
    [Rx - A0 05 25 7F] Set speed of loco in slot 5 to 37.
    [Rx - A0 05 23 79] Set speed of loco in slot 5 to 35.
    [Rx - A0 05 21 7B] Set speed of loco in slot 5 to 33.
    [Rx - A0 05 1E 44] Set speed of loco in slot 5 to 30.
    [Rx - A0 05 1B 41] Set speed of loco in slot 5 to 27.
    [Rx - A0 05 19 43] Set speed of loco in slot 5 to 25.
    [Rx - A0 05 17 4D] Set speed of loco in slot 5 to 23.
    [Rx - A0 05 14 4E] Set speed of loco in slot 5 to 20.
    [Rx - A0 05 13 49] Set speed of loco in slot 5 to 19.
    [Rx - A0 05 11 4B] Set speed of loco in slot 5 to 17.
    [Rx - A0 05 0E 54] Set speed of loco in slot 5 to 14.
    [Rx - A0 05 0C 56] Set speed of loco in slot 5 to 12.
    [Rx - A0 05 0B 51] Set speed of loco in slot 5 to 11.
    [Rx - A0 05 09 53] Set speed of loco in slot 5 to 9.
    [Rx - A0 05 06 5C] Set speed of loco in slot 5 to 6.
    [Rx - A0 05 03 59] Set speed of loco in slot 5 to 3.
    [Rx - A0 05 00 5A] Set speed of loco in slot 5 to 0.
    [Rx - A0 05 00 5A] Set speed of loco in slot 5 to 0.
    [Rx - A0 05 00 5A] Set speed of loco in slot 5 to 0.
    [Rx - A0 05 00 5A] Set speed of loco in slot 5 to 0.
    [Rx - A0 05 00 5A] Set speed of loco in slot 5 to 0.
    [Rx - A0 05 00 5A] Set speed of loco in slot 5 to 0.
    [Rx - A0 05 02 58] Set speed of loco in slot 5 to 2.
    [Rx - A0 05 03 59] Set speed of loco in slot 5 to 3.
    [Rx - A0 05 04 5E] Set speed of loco in slot 5 to 4.
    [Rx - A0 05 05 5F] Set speed of loco in slot 5 to 5.
    [Rx - A0 05 07 5D] Set speed of loco in slot 5 to 7.
    [Rx - A0 05 0A 50] Set speed of loco in slot 5 to 10.
    [Rx - A0 05 0C 56] Set speed of loco in slot 5 to 12.
    [Rx - A0 05 0E 54] Set speed of loco in slot 5 to 14.
    [Rx - A0 05 10 4A] Set speed of loco in slot 5 to 16.
    [Rx - A0 05 11 4B] Set speed of loco in slot 5 to 17.
    [Rx - A0 05 13 49] Set speed of loco in slot 5 to 19.
    [Rx - A0 05 15 4F] Set speed of loco in slot 5 to 21.
    [Rx - A0 05 18 42] Set speed of loco in slot 5 to 24.
    [Rx - A0 05 1A 40] Set speed of loco in slot 5 to 26.
    [Rx - A0 05 1C 46] Set speed of loco in slot 5 to 28.
    [Rx - A0 05 1E 44] Set speed of loco in slot 5 to 30.
    [Rx - A0 05 20 7A] Set speed of loco in slot 5 to 32.
    [Rx - A0 05 22 78] Set speed of loco in slot 5 to 34.
    [Rx - A0 05 24 7E] Set speed of loco in slot 5 to 36.
    [Rx - A0 05 27 7D] Set speed of loco in slot 5 to 39.
    [Rx - A0 05 26 7C] Set speed of loco in slot 5 to 38.
    [Rx - A0 05 25 7F] Set speed of loco in slot 5 to 37.
    [Rx - A0 05 23 79] Set speed of loco in slot 5 to 35.
    [Rx - A0 05 21 7B] Set speed of loco in slot 5 to 33.
    [Rx - A0 05 1E 44] Set speed of loco in slot 5 to 30.
    [Rx - A0 05 1C 46] Set speed of loco in slot 5 to 28.
    [Rx - A0 05 19 43] Set speed of loco in slot 5 to 25.
    [Rx - A0 05 18 42] Set speed of loco in slot 5 to 24.
    [Rx - A0 05 14 4E] Set speed of loco in slot 5 to 20.
    [Rx - A0 05 11 4B] Set speed of loco in slot 5 to 17.
    [Rx - A0 05 0F 55] Set speed of loco in slot 5 to 15.
    [Rx - A0 05 0C 56] Set speed of loco in slot 5 to 12.
    [Rx - A0 05 0A 50] Set speed of loco in slot 5 to 10.
    [Rx - A0 05 08 52] Set speed of loco in slot 5 to 8.
    [Rx - A0 05 05 5F] Set speed of loco in slot 5 to 5.
    [Rx - A0 05 02 58] Set speed of loco in slot 5 to 2.
    [Rx - A0 05 00 5A] Set speed of loco in slot 5 to 0.
    [Rx - A0 05 00 5A] Set speed of loco in slot 5 to 0.
    [Rx - A0 05 00 5A] Set speed of loco in slot 5 to 0.
    [Rx - A0 05 00 5A] Set speed of loco in slot 5 to 0.
    [Rx - A0 05 00 5A] Set speed of loco in slot 5 to 0.
    [Rx - A0 05 00 5A] Set speed of loco in slot 5 to 0.
    [Rx - A0 05 00 5A] Set speed of loco in slot 5 to 0.
    [Rx - A0 05 00 5A] Set speed of loco in slot 5 to 0.
    [Rx - A0 05 02 58] Set speed of loco in slot 5 to 2.
    [Rx - A0 05 05 5F] Set speed of loco in slot 5 to 5.
    [Rx - A0 05 08 52] Set speed of loco in slot 5 to 8.
    [Rx - A0 05 0B 51] Set speed of loco in slot 5 to 11.
    [Rx - A0 05 0D 57] Set speed of loco in slot 5 to 13.
    [Rx - A0 05 0E 54] Set speed of loco in slot 5 to 14.
    [Rx - A0 05 10 4A] Set speed of loco in slot 5 to 16.
    [Rx - A0 05 11 4B] Set speed of loco in slot 5 to 17.
    [Rx - A0 05 13 49] Set speed of loco in slot 5 to 19.
    [Rx - A0 05 14 4E] Set speed of loco in slot 5 to 20.
    [Rx - A0 05 16 4C] Set speed of loco in slot 5 to 22.
    [Rx - A0 05 18 42] Set speed of loco in slot 5 to 24.
    [Rx - A0 05 1A 40] Set speed of loco in slot 5 to 26.
    [Rx - A0 05 1C 46] Set speed of loco in slot 5 to 28.
    [Rx - A0 05 1F 45] Set speed of loco in slot 5 to 31.
    [Rx - A0 05 22 78] Set speed of loco in slot 5 to 34.
    [Rx - A0 05 25 7F] Set speed of loco in slot 5 to 37.
    [Rx - A0 05 26 7C] Set speed of loco in slot 5 to 38.
    [Rx - A0 05 27 7D] Set speed of loco in slot 5 to 39.
    [Rx - A0 05 2A 70] Set speed of loco in slot 5 to 42.
    [Rx - A0 05 2C 76] Set speed of loco in slot 5 to 44.
    [Rx - A0 05 2E 74] Set speed of loco in slot 5 to 46.
    [Rx - A0 05 30 6A] Set speed of loco in slot 5 to 48.
    [Rx - A0 05 31 6B] Set speed of loco in slot 5 to 49.
    [Rx - A0 05 33 69] Set speed of loco in slot 5 to 51.
    [Rx - A0 05 34 6E] Set speed of loco in slot 5 to 52.
    [Rx - A0 05 35 6F] Set speed of loco in slot 5 to 53.
    [Rx - A0 05 36 6C] Set speed of loco in slot 5 to 54.
    [Rx - A0 05 35 6F] Set speed of loco in slot 5 to 53.
    [Rx - A0 05 34 6E] Set speed of loco in slot 5 to 52.
    [Rx - A0 05 33 69] Set speed of loco in slot 5 to 51.
    [Rx - A0 05 32 68] Set speed of loco in slot 5 to 50.
    [Rx - A0 05 31 6B] Set speed of loco in slot 5 to 49.
    [Rx - A0 05 30 6A] Set speed of loco in slot 5 to 48.
    [Rx - A0 05 2F 75] Set speed of loco in slot 5 to 47.
    [Rx - A0 05 2E 74] Set speed of loco in slot 5 to 46.
    [Rx - A0 05 2D 77] Set speed of loco in slot 5 to 45.
    [Rx - A0 05 2C 76] Set speed of loco in slot 5 to 44.
    [Rx - A0 05 2B 71] Set speed of loco in slot 5 to 43.
    [Rx - A0 05 2A 70] Set speed of loco in slot 5 to 42.
    [Rx - A0 05 28 72] Set speed of loco in slot 5 to 40.
    [Rx - A0 05 26 7C] Set speed of loco in slot 5 to 38.
    [Rx - A0 05 24 7E] Set speed of loco in slot 5 to 36.
    [Rx - A0 05 22 78] Set speed of loco in slot 5 to 34.
    [Rx - A0 05 20 7A] Set speed of loco in slot 5 to 32.
    [Rx - A0 05 20 7A] Set speed of loco in slot 5 to 32.
    [Rx - A0 05 1F 45] Set speed of loco in slot 5 to 31.
    [Rx - A0 05 1D 47] Set speed of loco in slot 5 to 29.
    [Rx - A0 05 1B 41] Set speed of loco in slot 5 to 27.
    [Rx - A0 05 19 43] Set speed of loco in slot 5 to 25.
    [Rx - A0 05 18 42] Set speed of loco in slot 5 to 24.
    [Rx - A0 05 16 4C] Set speed of loco in slot 5 to 22.
    [Rx - A0 05 14 4E] Set speed of loco in slot 5 to 20.
    [Rx - A0 05 12 48] Set speed of loco in slot 5 to 18.
    [Rx - A0 05 10 4A] Set speed of loco in slot 5 to 16.
    [Rx - A0 05 0E 54] Set speed of loco in slot 5 to 14.
    [Rx - A0 05 0C 56] Set speed of loco in slot 5 to 12.
    [Rx - A0 05 0A 50] Set speed of loco in slot 5 to 10.
    [Rx - A0 05 08 52] Set speed of loco in slot 5 to 8.
    [Rx - A0 05 07 5D] Set speed of loco in slot 5 to 7.
    [Rx - A0 05 05 5F] Set speed of loco in slot 5 to 5.
    [Rx - A0 05 03 59] Set speed of loco in slot 5 to 3.
    [Rx - A0 05 00 5A] Set speed of loco in slot 5 to 0.
    [Rx - A0 05 00 5A] Set speed of loco in slot 5 to 0.
    [Rx - A0 05 00 5A] Set speed of loco in slot 5 to 0.
    [Rx - A0 05 00 5A] Set speed of loco in slot 5 to 0.
    [Rx - A0 05 00 5A] Set speed of loco in slot 5 to 0.
    [Rx - A0 05 00 5A] Set speed of loco in slot 5 to 0.
    [Rx - A0 05 00 5A] Set speed of loco in slot 5 to 0.
    [Rx - A0 05 00 5A] Set speed of loco in slot 5 to 0.
    [Rx - A0 05 00 5A] Set speed of loco in slot 5 to 0.
    [Rx - A0 05 00 5A] Set speed of loco in slot 5 to 0.
    [Rx - A0 05 00 5A] Set speed of loco in slot 5 to 0.
    [Rx - A0 05 00 5A] Set speed of loco in slot 5 to 0.
    [Rx - A0 05 00 5A] Set speed of loco in slot 5 to 0.
    [Rx - A0 05 00 5A] Set speed of loco in slot 5 to 0.
    [Rx - A0 05 00 5A] Set speed of loco in slot 5 to 0.
    [Rx - A0 05 02 58] Set speed of loco in slot 5 to 2.
    [Rx - A0 05 03 59] Set speed of loco in slot 5 to 3.
    [Rx - A0 05 04 5E] Set speed of loco in slot 5 to 4.
    [Rx - A0 05 05 5F] Set speed of loco in slot 5 to 5.
    [Rx - A0 05 06 5C] Set speed of loco in slot 5 to 6.
    [Rx - A0 05 08 52] Set speed of loco in slot 5 to 8.
    [Rx - A0 05 0A 50] Set speed of loco in slot 5 to 10.
    [Rx - A0 05 0B 51] Set speed of loco in slot 5 to 11.
    [Rx - A0 05 0C 56] Set speed of loco in slot 5 to 12.
    [Rx - A0 05 0B 51] Set speed of loco in slot 5 to 11.
    [Rx - A0 05 0A 50] Set speed of loco in slot 5 to 10.
    [Rx - A0 05 09 53] Set speed of loco in slot 5 to 9.
    [Rx - A0 05 07 5D] Set speed of loco in slot 5 to 7.
    [Rx - A0 05 05 5F] Set speed of loco in slot 5 to 5.
    [Rx - A0 05 04 5E] Set speed of loco in slot 5 to 4.
    [Rx - A0 05 02 58] Set speed of loco in slot 5 to 2.
    [Rx - A0 05 00 5A] Set speed of loco in slot 5 to 0.
    [Rx - A0 05 00 5A] Set speed of loco in slot 5 to 0.
    [Rx - A0 05 00 5A] Set speed of loco in slot 5 to 0.
    [Rx - A0 05 00 5A] Set speed of loco in slot 5 to 0.

    The function is as expected. No EStop

     
  • NMTrain

    NMTrain - 2015-02-27

    Also, using the JMRI "regular" (don't know the technical name for it) throttle, the EStop issue never occurs, behavior is expected.

    Another curious observation, if I leave the "reg" throttle up, the winTrottle behaves well, as soon as I kill the "reg" throttle, inappropriate EStops happen.

     
  • Bob Jacobsen

    Bob Jacobsen - 2015-02-27

    Thanks! The trace makes that clear. Somehow, the computation inside JMRI is resulting in sending a "1", which is the ESTOP value. Particularly interesting that it doesn't come from the on-a-JMRI-screen throttle, just through a webThrottle. Maybe that's telling us something.

    It's also odd that the sequence is 14-ESTOP-14. It's not like it was calculating something close to zero or 1 and got confused.

    Bob

     
  • NMTrain

    NMTrain - 2015-03-09

    I did a little investigation:

    This seems to prevent the problem:

    /*************

    Snippet of 'webThrottle.html'
    *
    *************/

    //----------------------------------------- Function for speed control
    var functionForSpeedCtrl = function() {
    var speed = $('.speed');
    var speedValue = Number(speed.attr('speed'));
    if (speedValue < 0) speedValue = 0;
    var speedLimitsHeight = $('#speedLimits').height();
    var speedBarValue = $('#speedBar').offset().top;
    var increment = (speedBarValue - $movementCtrl) / speedLimitsHeight;
    var maxIncrement = speedLimitsHeight * $speedStep;
    speedValue+= (increment > $speedStep ? $speedStep : (increment < $speedStep * -1 ? $speedStep * -1 : increment));
    if (speedValue < 0) speedValue = 0;
    if (speedValue > 1) speedValue = 1;
    speed.attr('speed', speedValue);
    showSpeed();
    var speedValueFormated = '' + speedValue;

    // replace, when inappropriate estop occurs, speedValue almost always has .003174604475458194
    // if (speedValue == 0) speedValueFormated = $jmri.STOP;
    // if (speedValue == 1) speedValueFormated = $jmri.FULL_SPEED;
    // with
    if (speedValue <= 0.005) speedValueFormated = $jmri.STOP;
    if (speedValue >= 1) speedValueFormated = $jmri.FULL_SPEED;
    // I also tested for > than 1, not that I ever saw it, but it should be safe

    $jmri.setJMRI('throttle', $locoAddress, {"speed":speedValueFormated});
    

    };

     
  • Randall Wood

    Randall Wood - 2015-03-30
    • assigned_to: Randall Wood
     
  • Randall Wood

    Randall Wood - 2015-04-08

    I think this has been fixed in the latest nightly builds.

    Can you please test with the most recent nightly JMRI build?

    You will need to test without the modified webThrottle.html file.

     

    Last edit: Randall Wood 2015-04-08
  • Randall Wood

    Randall Wood - 2015-04-09
    • status: open --> pending
     
  • NMTrain

    NMTrain - 2015-04-10

    I have just downloaded package #2094, I will setup another computer, and give is a try and report.

     
  • NMTrain

    NMTrain - 2015-04-19

    I have restored the original code, recreated the problem.

    I then installed package 2094 and with three loco's and 15 minutes of trying, the problem did not occur.

    Looks Good!

     
  • Randall Wood

    Randall Wood - 2015-04-19

    Thank you for testing this. Am closing it.

    For reference, the issue was that certain system-specific implementations of the throttle speed setting logic would set throttle speed values close to 0 to the eStop setting.

     
  • Randall Wood

    Randall Wood - 2015-04-19
    • status: pending --> closed
     
  • Randall Wood

    Randall Wood - 2015-04-19
    • Group: Broad_impact --> System_specific