SOLVED switches don't work after upgrade from air 2 snapshot

Moderator: Moderators

SOLVED switches don't work after upgrade from air 2 snapshot

Postby skippa » 24.06.2010, 20:48

Hi there,

I have used rocrail 1.3 air with srcpd 0.8 successfully. Everything (locos, switches, signals) worked pretty well.
Exept for schedules, and that was due to the rocrail version air. So I upgraded to 1.4 snapshot. After doing so, locos do work with srcpd, but only some of the switches (#1,#2,#3,#4,#17) and no signals. This behaviour seems to be independent of the snapshot revision since I have tested several, pre-compiled and home compiled.

I'd be glad to have some ideas to fix that. Find attached plan, ini and a trace with both version traces inside.

Cheers,

Jens
You do not have the required permissions to view the files attached to this post.
Last edited by skippa on 26.06.2010, 13:55, edited 1 time in total.
skippa
 

Postby skippa » 25.06.2010, 20:42

Hi there,

I have traced srcpd's output and it's different when switches are working or not working. For working switches, srcpd's log file looks like this

Jun 25 21:33:51 pray4wind srcpd[24141]: [bus 1] init GA: 17 N
Jun 25 21:33:51 pray4wind srcpd[24141]: [bus 0] Thread on bus 1 is woken up
Jun 25 21:33:51 pray4wind srcpd[24141]: [bus 1] next GA command: N (4e) 17
Jun 25 21:33:51 pray4wind srcpd[24141]: [bus 1] command for NMRA protocol for accessory decoders (NA) received

and for not working switches, srcpd reports the following
Jun 25 21:31:59 pray4wind srcpd[24141]: [bus 0] Thread on bus 1 is woken up
Jun 25 21:31:59 pray4wind srcpd[24141]: [bus 1] next GA command: P (50) 17
Jun 25 21:32:00 pray4wind srcpd[24141]: [bus 1] delayed GA command: P (50) 17

unfortunately, I have no idea what this may mean - exept that it seems that rocrail snapshot sends some strange commands to srcpd.

Furthermore, at random startups of rocrail, some switches work. At next startup, they don't work. No settings change ...

Help, please!

Jens

P.S. switching to rocails internal ddx client is last option only since I have other srcpd apps running ...
skippa
 

Postby rjversluis » 26.06.2010, 06:00

Hi Jens,

it looks like the first command is of type NMRA DCC, and the second of type P which I do not know.

Can you attach the corresponding Rocrail server traces?
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 - CANGCx ] - [ G: CBUS - CANGCx ]
rjversluis
Site Admin
 

Postby skippa » 26.06.2010, 12:53

Hi Rob

I have tried it once more and this are the traces (complete tracefile attached)
Rocorail 1.3 - switches working:
20100626.133852.145 r9999c cmdr09E0 OSwitch 0523 Switch [W17] will be set to [turnout,0,0]
20100626.133852.149 r9999c cmdr09E0 OSRCP08 0430 sent: SET 1 GA 17 1 1 250

20100626.133852.153 r9999I ddlfb09D OSRCP 0265 fbAddrStr = [1277552332.153 100 INFO 1 GA 17 1 1]
20100626.133852.160 r9999c ddlfb09D OSRCP 0369 switch 17 port 1 = 1
20100626.133852.409 r9999I ddlfb09D OSRCP 0265 fbAddrStr = [1277552332.408 100 INFO 1 GA 17 1 0]

corresponding srcpd output:
Jun 26 13:38:52 pray4wind srcpd[2868]: [bus 0] Thread on bus 1 is woken up
Jun 26 13:38:52 pray4wind srcpd[2868]: [bus 1] next GA command: N (4e) 17
Jun 26 13:38:52 pray4wind srcpd[2868]: [bus 1] command for NMRA protocol for accessory decoders (NA) received
Jun 26 13:38:52 pray4wind srcpd[2868]: [bus 1] delayed GA command: N (4e) 17
Jun 26 13:38:52 pray4wind srcpd[2868]: [bus 1] command for NMRA protocol for accessory decoders (NA) received

now the working switch with rocrail 1.4
20100626.134316.730 r9999c cmdr09FB OSwitch 0699 Switch [W17] will be set to [straight,0,0]
20100626.134316.735 r9999c cmdr09FB OSRCP08 0439 sent: SET 1 GA 17 0 1 250

20100626.134316.740 r9999I ddlfb09F OSRCP 0265 fbAddrStr = [1277552596.739 100 INFO 1 GA 17 0 1]
20100626.134316.741 r9999c ddlfb09F OSRCP 0369 switch 17 port 0 = 1
20100626.134316.994 r9999I ddlfb09F OSRCP 0265 fbAddrStr = [1277552596.993 100 INFO 1 GA 17 0 0]

corresponding srcpd output
Jun 26 13:43:16 pray4wind srcpd[2868]: [bus 0] Thread on bus 1 is woken up
Jun 26 13:43:16 pray4wind srcpd[2868]: [bus 1] next GA command: N (4e) 17
Jun 26 13:43:16 pray4wind srcpd[2868]: [bus 1] command for NMRA protocol for accessory decoders (NA) received
Jun 26 13:43:16 pray4wind srcpd[2868]: [bus 1] delayed GA command: N (4e) 17
Jun 26 13:43:16 pray4wind srcpd[2868]: [bus 1] command for NMRA protocol for accessory decoders (NA) received

and now NOT working switch with rocrail 1.4
20100626.134436.609 r9999c cmdr09FB OSwitch 0699 Switch [W9] will be set to [turnout,0,0]
20100626.134436.614 r9999c cmdr09FB OSRCP08 0439 sent: SET 1 GA 9 1 1 250

20100626.134436.617 r9999I ddlfb09F OSRCP 0265 fbAddrStr = [1277552676.616 100 INFO 1 GA 9 1 1]
20100626.134436.617 r9999c ddlfb09F OSRCP 0369 switch 9 port 1 = 1
20100626.134436.873 r9999I ddlfb09F OSRCP 0265 fbAddrStr = [1277552676.872 100 INFO 1 GA 9 1 0]

corresponding srcpd output:
Jun 26 13:44:36 pray4wind srcpd[2868]: [bus 0] Thread on bus 1 is woken up
Jun 26 13:44:36 pray4wind srcpd[2868]: [bus 1] next GA command: P (50) 9
Jun 26 13:44:36 pray4wind srcpd[2868]: [bus 1] delayed GA command: P (50) 9

Comparing these, the rocrail output looks pretty much the same. But since the srcpd output is different, I assume there are some different commands to srcpd.
Does that help or do you need any other information? Is it worth putting the trace level up?
Plan file, ini file are in first post. I have attached complete trace for 1.4 once again here.

Cheers,
Jens
You do not have the required permissions to view the files attached to this post.
skippa
 

Postby rjversluis » 26.06.2010, 13:17

Hi,

I would like to hear the other srcpd users if they are seeing the same problem or knowing the cause.
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 - CANGCx ] - [ G: CBUS - CANGCx ]
rjversluis
Site Admin
 

Postby rjversluis » 26.06.2010, 13:30

Take a look at this thread:

http://forum.rocrail.net/viewtopic.php?t=1225

and contact Sven.
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 - CANGCx ] - [ G: CBUS - CANGCx ]
rjversluis
Site Admin
 

Postby skippa » 26.06.2010, 13:53

Hi Rob,

I found the cause: old version of srcpd (2.0.x). After an upgrade to srcpd 2.1.1 things seem to work fine again.
I will have an extensive play now to confirm that!

Cheers,
Jens
skippa
 


Return to srcp