(it is the way it is) ECoS & Signals & turnouts

(it is the way it is) ECoS & Signals & turnouts

Postby smitt48 » 14.11.2017, 14:03

Hi Rob,

Is it just my perception, or are the Signal and Turnout decoders are implemented backwards in Rocrail?

My Viessman 2-light signal have a red and green color wires. My Viessman signals show correctly in the ECoS, red=red and green=green. However in Rocrail, I have to click on invert to make them work correctly. I have noticed the same issue with the turnouts, in the ECoS straight=straight and turnout=turnout, again in Rocrail I have to check invert. Of course with Maerklin turnouts (2 blue and 1 yellow wire) it is more difficult to verify.

I don't see a reason to change the ECoS library, it would mess up all the existing layouts. But maybe a checkbox could be created, so users could choose the existing implementation or the correct one.

Of course, my observation could be completely wrong. :roll:
But I know you have an ECoS and maybe you try to hook-up a signal and see for yourself.

Thanks Tom
Last edited by smitt48 on 15.11.2017, 10:32, 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: ECoS & Signals & turnouts

Postby rjversluis » 14.11.2017, 15:17

Hi Tom,
smitt48 wrote:But I know you have an ECoS and maybe you try to hook-up a signal and see for yourself.

the Ecos library was implemented way before I got my test equipment from ESU, and as with all Command Stations its always a guess whats the Märklin/NMRA Green and Red gate on decoders.
In fact Märklin and NMRA are responsible for this kind of addressing:
Decoder address, Port number, Gate red/green
instead of
Decoder address, output number (You need two outputs for double coil switch motors)
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: ECoS & Signals & turnouts

Postby smitt48 » 14.11.2017, 16:01

Hi Rob,

Rob wrote:
the Ecos library was implemented way before I got my test equipment from ESU


With other words, it is possible that it was implemented backwards! I am surprised nobody mentioned it before.

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: ECoS & Signals & turnouts

Postby rjversluis » 14.11.2017, 16:05

Hi Tom,

the assumption was:
Code: Select all
    char direction  = 'g';      /* default to green/straight */
    if ( ( StrOp.equals( wSwitch.getcmd( node ), wSwitch.turnout ) && !wSwitch.issinglegate( node ))
      || ( wSwitch.issinglegate( node ) && wSwitch.getgate1( node ))) {
      direction = 'r';          /* red/thrown */
    }

    StrOp.fmtb( ecosCmd, "set(%d, switch[%s%d%c])\n",
                OID_SWMANAGER, ( protocol[ 0 ] == 'M' ? "MOT" : "DCC" ), address, direction );

Red = Thrown.
Which seems to be a logical decision.
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: ECoS & Signals & turnouts

Postby Besra » 14.11.2017, 23:04

Hi Tom,

My Viessman signals show correctly in the ECoS, red=red and green=green. However in Rocrail, I have to click on invert to make them work correctly. I have noticed the same issue with the turnouts, in the ECoS straight=straight and turnout=turnout, again in Rocrail I have to check invert.

it's the same with my configuration (old Intellibox, LocoNet): green is red and vice versa, straight is thrown (and vice versa)... I take it as it is.

Regards
Bernd
Maerklin H0, DCC and MM, Intellibox (I) via ULNI, Booster Tams B4, Throttle Digitrax UT4, LocoNet.
Loco decoders: Zimo, Uhlenbrock, Maerklin & ESU.
Rocweb, Win10 32bit & 64bit
Besra
 

Re: ECoS & Signals & turnouts

Postby rjversluis » 15.11.2017, 08:24

Hi,

why is red straight and green thrown? Which logical explanation can you give me for this?

In case of the Ecos protocol they should have used "straight"/"thrown" in case of "g"/"r" for switch commands.
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: ECoS & Signals & turnouts

Postby cds » 15.11.2017, 09:41

Hello!

Funny discussion. Is it that boring in the Carribean? :wink:

Old M* documents say "green=straight/green", "red=thrown/red".
Beste Grüße/Kind regards
Claus

Mä H0 M, Zentrale: TAMS MC, Booster: TAMS B-2 & B-4, Schalten: TAMS WD-34 DCC, VIESSMANN 5211(1), Melden: LITTFINSKY & TAMS S88-3, Fahren: MM2, Decoder Mä & TAMS, Steuern: Win7 64, andRoc
cds
 

Re: ECoS & Signals & turnouts

Postby smitt48 » 15.11.2017, 10:31

Hi Claus,

Funny discussion. Is it that boring in the Carribean? :wink:

No it is not that boring! But I find it curious that it is implemented that way.
I had only switches on my test layout, and I did not pay much attention to the way they worked (just check invert).
But with the signals, I took care to connect them correctly and then I noted in Rocrail that all of them had to be inverted.
So I wondered, is it me or is it the implementation of ECoS library.

Hi Bernd,
it's the same with my configuration (old Intellibox, LocoNet): green is red and vice versa, straight is thrown (and vice versa)... I take it as it is.

Nice to know I am not the only one.
Like I said, I will take it as it is. I just wanted to know why.

Hi Rob,
why is red straight and green thrown? Which logical explanation can you give me for this?

No idea, ask ESU. :roll:

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: ECoS & Signals & turnouts

Postby rjversluis » 15.11.2017, 10:46

Hi Claus,
cds wrote:Old M* documents say "green=straight/green", "red=thrown/red".

can you share this document with us? 8)
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: (it is the way it is) ECoS & Signals & turnouts

Postby cds » 15.11.2017, 10:50

Hi Rob!

Just search on the internet and you'll get dozens of hits.

I'm on a business trip and cannot look for it before the weekend.
Beste Grüße/Kind regards
Claus

Mä H0 M, Zentrale: TAMS MC, Booster: TAMS B-2 & B-4, Schalten: TAMS WD-34 DCC, VIESSMANN 5211(1), Melden: LITTFINSKY & TAMS S88-3, Fahren: MM2, Decoder Mä & TAMS, Steuern: Win7 64, andRoc
cds
 

Re: (it is the way it is) ECoS & Signals & turnouts

Postby rjversluis » 15.11.2017, 10:56

Moin,

OpenDCC p50x wrote:Color: 0 oder 'r' = Rot / Abzweig, 1 oder 'g' = Grün / gerade aus
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: (it is the way it is) ECoS & Signals & turnouts

Postby smitt48 » 15.11.2017, 10:59

Hi Rob,

Claus was correct, I found several.

The green plug goes to the wire that switches the turnout to straight.
The red plug goes to the other blue wire. It will switch the turnout to the curved position.


It make sense that the ECoS would follow that as the first one was made for Maerklin.
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: (it is the way it is) ECoS & Signals & turnouts

Postby rjversluis » 15.11.2017, 11:07

Tams wrote:0x20 .. 0x22: Weichen (2 Bytes)
Das erste Byte kodiert die Funktion für die Weiche: 0x20 = Weichenantrieb
aus, 0x21 = Weiche gerade ('grün'), 0x22 = Weiche auf Abzweig ('rot').
Das zweite Byte ist die Weichenadresse 1 .. 255.
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
 


Return to General

cron