[solved] Shutdown Ecos from Rocrail

Moderator: Moderators

Re: [Not Solved] Shutdown Ecos from Rocrail

Postby smitt48 » 05.01.2015, 19:37

Hi Rob,

I "turned" off the device. Result: The stop button on the ECoS flashed, that means you can now turn off the power, ie. a controlled shutdown of the Linux software.

I thought what I described was a "shutdown" and not a "stop". Stop works fine, I assume it means turn the power off the tracks.

The "stop" button flashing (on the hardware) is just an indication for the user that you can now power down. I manual mode it works as follows:
1. push the "stop" and the tracks have no power, this works fine in RR. RR equivalent: 1. Emergency break, 2. switch power off
2. hold the "stop" and after a couple of seconds the "stop" button flashes, you can now unplug the unit.

In the network specs
ie. "network spezification"
Sorry, I thought it was clear enough! It is Third Edition, it has a command called shutdown (bottom of original picture).
ECoS specs.PNG


http://wiki.rocrail.net/doku.php?id=ecos-en

I can't figure out how to capture the detail on the bottom in a file. I am sure there is a way! But I captured the most important line-detail (I think).
It looks like I was correct about the "shutdown" command in the network specs! Fancy that. In my test I generated a "shutdown".

Here are 2 pictures that show the detail of line 16 ---> the shutdown command!
Wire 1.PNG

Wire 2.PNG


@Lothar, you are correct about wireshark, Rob recommended that I should use it! So, I assumed he knew!

Let me know if you need something else!
Thanks Tom
You do not have the required permissions to view the files attached to this post.
Kind regards,
Tom Smit
Kralendijk, Bonaire - Dutch Caribbean

Märklin M & K-rails with ECoS2 (4.2.0) - WinXP as server, 10
RoSoft: S88n & WDD switch & SDD signal decoders
Display: Tri-ang from 1950's, Märklin from early 1960's
In build phase
smitt48
 

Re: [Not Solved] Shutdown Ecos from Rocrail

Postby Richard-TX » 05.01.2015, 23:07

rjversluis wrote:Stop in not equal to shutdown.


Agreed but it is possible it could be the same thing depending on how stop and shutdown is defined. English is a funny language. There are words that are constantly being redefined or widely misused that become mainstream.

Anyway, trying to interface an application with a browser based application is a problem.

I will be talking to Tom to see of there is a simple way of talking to and controlling the ECOS controller.
Richard
Dallas/Fort Worth
Texas USA
Richard-TX
 

Re: [Not Solved] Shutdown Ecos from Rocrail

Postby Richard-TX » 05.01.2015, 23:14

I am sending an email to my contact at esu-usa. We will see what he says.
Richard
Dallas/Fort Worth
Texas USA
Richard-TX
 

Re: [Not Solved] Shutdown Ecos from Rocrail

Postby smitt48 » 06.01.2015, 02:19

Hi Richard,

I have the feeling this picture, send earlier in this discussion, was the culprit.
Shutdown.PNG

In the netzwork spezificatiions, posted in the wiki, I was looking for the "stop" command. That is when I found "shutdown".
As "stop" is highlighted it attracts the eye, "shutdown" is on the bottom.

Postby rjversluis
Stop in not equal to shutdown.

I agree.


The trace proves that "shutdown" is a valid ECoS command and it is what the originator of this post wanted to achieve.
Postby hclaassens » 16.08.2014, 08:59

Is it possible to shutdown the ECos 50200 command station, when the rocrail server quits?


He wants a "checkbox" option on the bottom of the controller page "send shutdown command". I assume this could be for ECoS and CS1, but potentially could be for all "IT" based controllers.
conroller.PNG


If checked send "shutdown" command.


Thanks Tom
You do not have the required permissions to view the files attached to this post.
Kind regards,
Tom Smit
Kralendijk, Bonaire - Dutch Caribbean

Märklin M & K-rails with ECoS2 (4.2.0) - WinXP as server, 10
RoSoft: S88n & WDD switch & SDD signal decoders
Display: Tri-ang from 1950's, Märklin from early 1960's
In build phase
smitt48
 

Re: [Not Solved] Shutdown Ecos from Rocrail

Postby rjversluis » 06.01.2015, 07:54

Just ask ESU for the complete protocol.
This leads to nothing and is a waist of time.
Best Regards, Rob.
:!: PS: Do not forget to attach the usual files.
:!: PS: Nicht vergessen die übliche Dateien an zu hängen.
[ macOS - Linux] - [ N: CBus - CAN-GCA ] - [ 0: RocNetNode - GCA-Pi ]
rjversluis
Site Admin
 

Re: [Not Solved] Shutdown Ecos from Rocrail

Postby Richard-TX » 06.01.2015, 16:10

I have indeed asked for that. I agree that the http traces are pointless.
Richard
Dallas/Fort Worth
Texas USA
Richard-TX
 

Re: [Not Solved] Shutdown Ecos from Rocrail

Postby Richard-TX » 06.01.2015, 16:22

In looking at the document at http://wiki.rocrail.net/lib/exe/fetch.p ... rface3.pdf

I see that in section 7 there is a set of commands for the ECoS base object. The commands are:

set (1 stop)
set (1, go)

What do these commands do?
Richard
Dallas/Fort Worth
Texas USA
Richard-TX
 

Re: [Not Solved] Shutdown Ecos from Rocrail

Postby Richard-TX » 06.01.2015, 16:42

Tom,

The reference to shutdown in the manual page you posted refers to obtaining the current status of the ECOS. Not controlling it.
Richard
Dallas/Fort Worth
Texas USA
Richard-TX
 

Re: [Not Solved] Shutdown Ecos from Rocrail

Postby rjversluis » 06.01.2015, 17:50

Richard-TX wrote:set (1 stop)
set (1, go)

Track power off/on.
Best Regards, Rob.
:!: PS: Do not forget to attach the usual files.
:!: PS: Nicht vergessen die übliche Dateien an zu hängen.
[ macOS - Linux] - [ N: CBus - CAN-GCA ] - [ 0: RocNetNode - GCA-Pi ]
rjversluis
Site Admin
 

Re: [Not Solved] Shutdown Ecos from Rocrail

Postby smitt48 » 06.01.2015, 19:29

Hi Rob,

by rjversluis » 06.01.2015, 10:50

Richard-TX wrote:
set (1 stop)
set (1, go)

Track power off/on.


Then why wouldn't
set(1, shutdown)
not shut the system down?

Just saying!

Tom
Kind regards,
Tom Smit
Kralendijk, Bonaire - Dutch Caribbean

Märklin M & K-rails with ECoS2 (4.2.0) - WinXP as server, 10
RoSoft: S88n & WDD switch & SDD signal decoders
Display: Tri-ang from 1950's, Märklin from early 1960's
In build phase
smitt48
 

Re: [Not Solved] Shutdown Ecos from Rocrail

Postby Richard-TX » 07.01.2015, 06:56

smitt48 wrote:Hi Rob,

by rjversluis » 06.01.2015, 10:50

Richard-TX wrote:
set (1 stop)
set (1, go)

Track power off/on.


Then why wouldn't
set(1, shutdown)
not shut the system down?

Just saying!

Tom


Tom,
Fire up a telnet session and see if it works.

rich
Richard
Dallas/Fort Worth
Texas USA
Richard-TX
 

Re: [Not Solved] Shutdown Ecos from Rocrail

Postby smitt48 » 07.01.2015, 12:54

Hi Richard,

Give me hint! Show me how and I will fire it off.

Thanks, Tom
Kind regards,
Tom Smit
Kralendijk, Bonaire - Dutch Caribbean

Märklin M & K-rails with ECoS2 (4.2.0) - WinXP as server, 10
RoSoft: S88n & WDD switch & SDD signal decoders
Display: Tri-ang from 1950's, Märklin from early 1960's
In build phase
smitt48
 

Re: [Not Solved] Shutdown Ecos from Rocrail

Postby Richard-TX » 08.01.2015, 15:57

telnet has a few optional arguments.

the ones that you want takes the form of

telnet host port

The upshot is that you can connect to any TCP/IP port

Once connected, you type in the commands. Don't be surprised that whatever command you type is not echoed on the screen. Sometimes it is and sometimes it isn't.

Rich
Richard
Dallas/Fort Worth
Texas USA
Richard-TX
 

Re: [Not Solved] Shutdown Ecos from Rocrail

Postby smitt48 » 08.01.2015, 16:32

Hi Richard,

I tried and connected with the ECoS. However it asked for a userid and password (!), not knowing that I tried a few combinations none of them worked. The "get(1,xxx) command (where xxx = go, stop, shutdown). None worked as telnet did not like the syntax of the set command. Looked at the help, but it did not help me (user error).

You might have seen the other issue that now exists with CS1 and ECoS2, we cannot see the activity when the loc data comes from ECoS. I could do this (Rob concurred)prior to the update.

I have both questions pending in the German and English forum from ESU. Chances that an ESU person responds is remote! :evil:

I have time today, nothing to do outside it is -5F (-20C), wind chill -18F (-28C). Cold enough for me :D

Thanks Tom
PS. Boosters looking good!
Last edited by smitt48 on 09.01.2015, 12:48, edited 1 time in total.
Kind regards,
Tom Smit
Kralendijk, Bonaire - Dutch Caribbean

Märklin M & K-rails with ECoS2 (4.2.0) - WinXP as server, 10
RoSoft: S88n & WDD switch & SDD signal decoders
Display: Tri-ang from 1950's, Märklin from early 1960's
In build phase
smitt48
 

Re: [Not Solved] Shutdown Ecos from Rocrail

Postby Richard-TX » 08.01.2015, 17:21

What port are you connecting to?
Richard
Dallas/Fort Worth
Texas USA
Richard-TX
 

PreviousNext

Return to ECoS - Marklin CS1