WiThrottle Direct support

TwinDad Feb 7, 2017

  1. TwinDad

    TwinDad TrainBoard Member

    1,844
    551
    34
    In the "sendIntroMessage()" method, the first thing sent from the server to the phone is a "VN2.0" This tells the phone which protocol version the server supports.

    That's followed by:
    "RL0" (no roster entries)
    "PPA0" or "PPA1" or "PPA2" (power off/on/unknown)
    "RCC0" (no consists defined)
    some stuff about turnouts that I'm still figuring out...
    "PW2560" (ethernet port 2560)
     
    Scott Eric Catalano and UK Steve like this.
  2. UK Steve

    UK Steve TrainBoard Member

    453
    683
    12
    Ah, crossed post on same subject... see update @ #20.

    Anyways where does the function get called? If it's in Base Station code, then I need to implement elsewhere.
     
    Scott Eric Catalano likes this.
  3. TwinDad

    TwinDad TrainBoard Member

    1,844
    551
    34
    Yeah, it's called from SerialCommand:: process() on line 70. It should be called once, when the connection is made to the client. I don't think it hurts to send the messages multiple times, it's just redundant/unnecessary.
     
    Scott Eric Catalano and UK Steve like this.
  4. TwinDad

    TwinDad TrainBoard Member

    1,844
    551
    34
    BTW, I made a quick video :)

     
  5. ghoconnor

    ghoconnor New Member

    2
    2
    1
    Help
    Have the mega working with JRMI how do you get a phone to be a throttle and the software other than jmri?



    Sent from my iPhone using Tapatalk
     
    Scott Eric Catalano likes this.
  6. ghoconnor

    ghoconnor New Member

    2
    2
    1
    Can I get info o how to do this. Have the dcc++ running on test track.what additional software and hardware is needed ghoconnor@ilcoud .com


    Sent from my iPhone using Tapatalk
     
    Scott Eric Catalano likes this.
  7. Pieter

    Pieter TrainBoard Member

    152
    46
    10
    Scott Eric Catalano likes this.
  8. Rob H

    Rob H TrainBoard Member

    22
    15
    2
    Mark, Steve, thank you both for all your efforts, after a few issues getting my base station to operate correctly (mainly down to an issue with a decoder) I was running my trains with your code and WiThrottle within minutes. As I do more testing I’ll feedback any issues I find but it appears you’ve already found & fixed the bugs. One thing that’s worth pointing out for other users that are going to try this is that WiThrottle Lite can not turn the track power on or off so you need either the full WiThrottle or JMRI on a laptop to do this for you.


    Sent from my iPhone using Tapatalk
     
    Scott Eric Catalano likes this.

Share This Page