Control DCC turnouts with LocoNet

Moderator: Moderators

Control DCC turnouts with LocoNet

Postby Micha59 » 17.09.2017, 19:49

Hello,

my DCC command station is SPROG3. I have done some DIY hardware like FREDI from FREMO-DCC and an USB adapted LocoBuffer based on LocoBuffer-II. You can see my hardware here (only in german). For the turnouts I have built two SAnD-Ei from digital-bahn.de to control them with DCC. The hardware is tested only in a small H0 environment with locobuffer, one booster, two FREDIs, two locos, two turnouts with SAnD-Ei.

Rocrail is at this time only the connector between all parts. I have done no automatic mode. I can control the locos with FREDI and switch the turnouts from Rocrail.

My next idea is a control panel with loconet for the turnouts to switch them. I have not found how to built such a DIY loconet panel for controlling the turnouts (like FREDI for loco). Any ideas? Are there already post about that here in the forum? I haven't found such.

Regards
Michael
Micha59
 

Re: Control DCC turnouts with LocoNet

Postby rjversluis » 18.09.2017, 06:14

Hi Michael,

maybe this is what you are looking for:
http://wiki.rocrail.net/doku.php?id=ctc-loconet-en
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: Control DCC turnouts with LocoNet

Postby Micha59 » 18.09.2017, 22:08

Hi Rob,

thank you for the information, I havn't found that. I will think about it. looks good.

Regards Michael
Micha59
 

Re: Control DCC turnouts with LocoNet

Postby Micha59 » 21.10.2017, 20:03

Hi Rob,

I have made a LocoIO with 16 Keys and the hardware seems to run right. I have made some setups with rocrail and have questions because my simplest idea didn't work right and I have no idea why.

  1. DCC-Swich-Control at address 21
  2. sw1 at a rocrail plan with address 16
  3. Two Ports in LocoIO are defined as button with address 33 and 34 (makes output to address 16)

This makes sw1 at the plan switching straight and turnout. Now I have set in the wiring the Interface for CTC the IID for the DCC station and the address 21, also with the marked checkbox "switch".

Now the physical switch also moves but only if I control the sw1 at the plan with the mouse. If I take the LocoIO, than only the sw1 at the plan reacts and not the DCC connected switch. It seems that the command for the DCC station is missing.

This ist the protocoll in rocrail server:
Code: Select all
===================
with mouse
===================
20171021.133701.023 r9999c cmdr03D4 OSwitch  1312 Switch [sw2] will be set to [straight,0,0]
20171021.133701.024 r9999c 000026A4 OLocoNet 2128 switch addr=16 dir=1 action=1
20171021.133701.025 r9999I cmdr03D4 OSwitch  0175 CTC LED: m1=0 m2=0
20171021.133701.025 r9999c 000026A4 OSprog   0397 turnout 0003 3 turnout    fada=0021 pada=0011 addr=3 port=3 gate=1 dir=0 action=1
20171021.133701.036 r9999c lnreader OLocoNet 0702 sw addr=16 gate=1 value=1
20171021.133701.036 r9999I 00003420 OSwitch  1975 switch [sw2] field event: state=straight(field:straight) gatevalue=1 inv=0 fieldstate=straight
-------------------
20171021.133706.934 r9999c cmdr03D4 OSwitch  1312 Switch [sw2] will be set to [turnout,0,0]
20171021.133706.935 r9999c 000026A4 OLocoNet 2128 switch addr=16 dir=0 action=1
20171021.133706.936 r9999I cmdr03D4 OSwitch  0175 CTC LED: m1=1 m2=0
20171021.133706.936 r9999c 000026A4 OSprog   0397 turnout 0003 3 straight   fada=0021 pada=0011 addr=3 port=3 gate=1 dir=1 action=1
20171021.133706.946 r9999c lnreader OLocoNet 0702 sw addr=16 gate=0 value=1
20171021.133706.946 r9999I 00003420 OSwitch  1975 switch [sw2] field event: state=turnout(field:turnout) gatevalue=1 inv=0 fieldstate=turnout
===================
with LocoIO button
-------------------
20171021.133712.059 r9999c lnreader OLocoNet 0702 sw addr=16 gate=1 value=1
20171021.133712.061 r9999I 00003420 OSwitch  1975 switch [sw2] field event: state=straight(field:straight) gatevalue=1 inv=0 fieldstate=straight
20171021.133712.298 r9999c lnreader OLocoNet 0702 sw addr=16 gate=1 value=0
-------------------
20171021.133714.214 r9999c lnreader OLocoNet 0702 sw addr=16 gate=0 value=1
20171021.133714.216 r9999I 00003420 OSwitch  1975 switch [sw2] field event: state=turnout(field:turnout) gatevalue=1 inv=0 fieldstate=turnout
20171021.133714.514 r9999c lnreader OLocoNet 0702 sw addr=16 gate=0 value=0


Can you tell me, where my error in reasoning is?

I have made a second setup but this needs for every button a sensor element with respective address at the plan and an actions that sets the sw1 to straight or turnout. The sw1 is connected to SPROG3 address 21.

The first solution would be simpler. Are there other solutions?

Regards Michael
Micha59
 

Re: Control DCC turnouts with LocoNet

Postby rjversluis » 21.10.2017, 20:38

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: Control DCC turnouts with LocoNet

Postby Micha59 » 02.11.2017, 20:56

Hi Rob,
I think that the wiki is not a help for my problem.
The mouse event to the turnout has an other result than a loconet event. I think the CTC part of the wiring section is not handled in this case. Do you know someone, who may have an answer or solution?

Regards Michael
Micha59
 


Return to DIY Hardware

cron