¿ªÔÆÌåÓý

Locked Engine Driver Problem


 

I am running Engine Driver on a Wikipad for which the up to date operating system is Android 4.2.2.? I have the tablet set up so that, in portrate mode, I see the throttles and, in landscape mode, I see the layout panel and can operate the turnouts.? When i had JMRI 4.10, it all worked properly but, after I acquired a laptop on which to run JMRI, I installed JMRI 4.11.3 but was unable to try Engine Driver as I needed someone to set up the router for wireless connection to the laptop.? Recently the wireless connection has been made and I am able to run Engine Driver.

Before upgrading JMRI to 4.12, I ran Engine Driver on 4.11.3; although the throttles presented themselves (and operated) properly in portrate mode, the panel did not present properly in landscape mode.? I then installed JMRI 4.12 and had the same result with Engine Driver.? Next I upgrded Engine Driver to the latest version 2.19.55 and the problem persists.? Engine Driver was downloaded from Google Play Store.

The nature of the problem is that, although I believe all the turnouts are shown, a lot of the track segments are missing.? The same applies whether I select the panel for the whole layout or the Layout Editor panel, which contains just the routes of my back-and-forth shuttles.? Please, can any one explain what the problem is and how to overcome it?

Many thanks,
Harold.


 

Hi Harold,
Most likely, your problem is that your tablet uses an older version of WebView that does not support the WebSocket protocol.
All that EngineDriver does is use the device's builtin web browser, so upgrades to EngineDriver have no effect.
Unfortunately, upgrading the WebView version isn't possible.

The workaround is to use the older method of displaying panels, the frameserver. In EngineDriver Preferences, change the "Initial Web Page" preference from "/panel" to "/frame". This method has a few disadvantages, but give it a try and see if that works better with your pad.

--SteveT


 

Steve,

Thank you for your comments, which I have just read after taking a more detailed look at what works and what does not - and now I need to recharge the tablet's battery.? Once that is done I will try your suggestion and report back.? What I discovered is that nothing on the corrupted Engine Driver view of the panel works - ie clicking a turnout or sensor has no effect.? However, the throttles work perfectly.

Harold.


 

Steve,

Tried your suggestion with no effect.? I noticed that, before the panel loads, there is a message that "WebSockets are disabled"; is that what your suggestion was hoped to overcome or is it a different problem/setting?

Thanks,
Harold.


 

Harold,?
Please verify that you changed the correct Preference. It's in the section "Web Preferences" and is titled "Initial Web Page". There is another similar preference under "Throttle Page Appearance Preferences".
Once you make this change and restart, taking the Web menu option or rotating the phone will bring you to a page titled: "Available JMRI Frames". This is where you can choose the frame version of your panel.
--SteveT


 

Steve,

I will have to try again tomorrow.? I did type in "/frame" after selecting "Initial Web Page" from "Web Preferences" but, after restarting Engine Driver, and holding the tablet in landscape mode, the panel just opened in the same, incomplete state.? I did not see any reference to "Available JMRI Frames".

After reading your initial advice, when I opened Web Preferences and selected Initial Web Page, there was nothing entered after the forward slash, so I presume that is how Engine Driver had been working.? I then tried (separately) entering Panel and Frame with no change in performance or options offered.? However, I will try again in the morning as my layout and the relevant router are in my loft and turned off when i am not up there.? Incidentally, is it important whether Panel and Frame are totally in lower case?? It is possible I put a capoital initial letter.

Harold.


 

Harold,?
The case-sensitivity can differ based on your computer's OS, but lowercase is always correct: "/frame".
If you're not seeing the "Available JMRI Frames" page, it's possible your browser is caching the page.
You can also try using the tablet's browser outside of EngineDriver. Just enter the web address directly, something like "http://192.168.6.1:12080" (use your address and port if different).
--SteveT


 

Many thanks Steve.

The problem is resolved.? Although I do not fully understand many of the options available in JMRI and Engine Driver, I discovered that, in JMRI Preferences on the laptop under Web Server/Frame Server, frames were disabled.? Sincce you advised to state "/frames" in Engine Driver Initial Web Page, it occurred that perhaps frames should be enabled.? Having done that and restarted Engine Driver, I then saw the Available JMRI Frames page and was able to select my full panel.? This brought up a clear image of everything and i have been able to change turnouts using the tablet's touch screen.

?Great to have everything working properly again - and I do like the new version of Engine Driver.

Thanks again,
Harold.


 

Thanks, Harold, glad you got it sorted.
I was aware of that Preference, but did not think to ask you to check it. Sorry about that.
I tested with a new profile, and learned that the default is now "Disable Frames". I'll remember that for next time this sort of issue arises.
Regards,
? SteveT