S88 sensor activation causes CS2 reboot/reset

Märklin Central Station 2

S88 sensor activation causes CS2 reboot/reset

Postby KPeter » 18.08.2017, 18:05

I have been running Rocrail version 12205 all Summer with no problems. I have tried new versions 12546, 12571 and 12582 and am having serious problems with the sensors associated with S88 bus module 4. With these versions of Rocrail when any of the reed switch sensors are activated for the addresses 49-64 in automatic mode it immediately places the CS2 into a reboot. All other modules respond normally. If I switch back to version 12205 all is OK.

The fact that it works flawlessly under CS2 control and Rocrail version 12205 makes me conclude it is not a hardware issue, but something in the new software release. Can you please advise what the issue may be since I cannot run in Automatic mode with these new August versions.

Attached are the associated files.
You do not have the required permissions to view the files attached to this post.
KPeter
 

Re: S88 sensor activation causes CS2 reboot

Postby woodyboy » 18.08.2017, 21:45

Hi KPeter,

Reading the trace, an entry needs some attention. This is an illegal UID and address. It is far before the end of the logfile so I don't expect this one causes the reboot.
Code: Select all
20170818.093930.874 r9999I mcs2read OMCS2    1057 Verify UID=0x0000 bind to address 0


In the log a I see no more errors, maybe it is a little bit strange that after
Code: Select all
20170818.094021.046 r9999c mcs2read OMCS2    0756 sensor 0:55 state=1

There is a lot of switch activity in a very short time, where the activity of switch 17 does not seem logical to me. However a CS2 should not crash after these amount of traffic commands.

Sorry but I can't give you a better advise, nor did I see a direct link with the s88 changes. That changes where concentrated in the Start of the Day part.
Regards,

Bert

Equipment: Roco WLANMaus, MS2, Gleisbox 2x(separated switch & rollingstock). Ubuntu 16. Edits booster. Arduino: S88 CANbus interface & Ethernet-CANbus gateway
woodyboy
 

Re: S88 sensor activation causes CS2 reboot

Postby KPeter » 19.08.2017, 14:22

Thanks Bert for trying. I guess I'm stuck with version 12205. I reverted back to it and had 3 trains running for almost an hour with no CS2 crashes. I cannot run for 5 minutes with one of the new versions. I can watch the trains approach the reed switches for this S88 module and know that the second a reed switch is activated the CS2 will crash and it does. Too bad I didn't have a chance to download a version between April and now to possibly narrow down a software change that occurred that might contribute to this crashing.

Peter
KPeter
 

Re: S88 sensor activation causes CS2 reboot

Postby rjversluis » 19.08.2017, 14:52

Hi Peter,

you cannot make Rocrail responsible for crashing a Command Station; Just revert to an older CS2 firmware.
In other Forums, Like Stummi, you will find CS2 crash reports without Rocrail.
Rocrail only sends to the CS2/CS3 documented 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: S88 sensor activation causes CS2 reboot

Postby KPeter » 19.08.2017, 15:01

Rob,

I'm not making anyone responsible. I'm trying to troubleshoot. I cannot revert back to a former CS2 firmware. In the latest release that is no longer a possibility.

However, if I can run flawlessly with Rocrail 12205 with this CS2 firmware and can run flawlessly with the CS2, but not when I update Rocrail to one of the latest versions, then the only change is something in Rocrail. I'm not seeking blame, just a solution.

Peter
KPeter
 

Re: S88 sensor activation causes CS2 reboot

Postby rjversluis » 19.08.2017, 15:15

Peter,

since your 'Stable' version this is what happened in the mcs2 library:

Code: Select all
12527 2017-08-09 12:16:40 +0200 mcs2: 32 function support
12516 2017-08-05 07:57:05 +0200 mcs2: fix for unknown memory block crash
12515 2017-08-04 15:47:31 +0200 mcs2: only request sensor state if the sensor device ID > 0
12510 2017-08-02 14:42:48 +0200 mcs2: try to query 1000 and 2000 ranges
12509 2017-08-02 11:41:18 +0200 mcs2: added sensor query with device ID at SoD
12508 2017-08-02 11:22:00 +0200 mcs2: trace correction
12506 2017-08-02 11:10:23 +0200 ecosdlg: added sensor device for mcs2
12503 2017-08-02 09:40:33 +0200 mcs2: revert useS88bus
12501 2017-08-01 15:28:25 +0200 mcs2: trace correction
12500 2017-08-01 15:18:29 +0200 mcs2: useS88bus option added for reporting
12301 2017-05-16 14:35:05 +0200 mcs2: SOD also for s88 bus 2
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: S88 sensor activation causes CS2 reboot

Postby KPeter » 19.08.2017, 15:23

Thanks Rob.

Is there any way I can retrieve one of those older builds to narrow down when it becomes unstable?

Regards
Peter
KPeter
 

Re: S88 sensor activation causes CS2 reboot

Postby KPeter » 19.08.2017, 15:27

Sorry Rob. I just saw the older version download area. I will try these until it becomes unstable.

Thanks for your help.
KPeter
 

Re: S88 sensor activation causes CS2 reboot

Postby KPeter » 19.08.2017, 16:37

Rob,

Based on the information you provided I installed and tested several versions. 12495 is the last stable version. With 12501 all I have to do is try and start a loco in automatic mode sitting over one of the affected reed switches and the CS2 crashes. Perhaps it does not like something in the S88 reporting change in build 12500.

At least I can now run something up to August. :D

Peter
KPeter
 

Re: S88 sensor activation causes CS2 reboot

Postby KPeter » 19.08.2017, 18:46

Just had version 12495 running in automatic with 3 trains for over half an hour with no issues. I did note however, that the reserved block and 2nd next reserved block quite often start off displaying in pink rather than the usual yellow. This did not affect the operation and the colour changes for Enter (blue) and In (pink) occurred like normal.

Is it worthwhile for me to do a trace file for version 12501 when the CS2 crashing first appears?

Peter
KPeter
 

Re: S88 sensor activation causes CS2 reboot

Postby rjversluis » 20.08.2017, 06:54

Hi Peter,

I checked the source history, but there is nothing really changed in the mcs2 library.

Is it worthwhile for me to do a trace file for version 12501 when the CS2 crashing first appears?

Yes.

Code: Select all
12501 2017-08-01 15:28:25 +0200 mcs2: trace correction
12500 2017-08-01 15:18:29 +0200 mcs2: useS88bus option added for reporting
12499 2017-08-01 12:03:20 +0200 competition: added to the toolbar, layout fixes
12498 2017-08-01 10:54:59 +0200 powermandlg: fix for selecting the initial tab
12497 2017-08-01 10:26:37 +0200 blockgroupingdlg: sort on ID and Description
12496 2017-08-01 10:13:23 +0200 blockgroupingdlg: replaced the simple list with a list control
12495 2017-07-31 14:32:33 +0200 blockdialog: disabled check4changes
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: S88 sensor activation causes CS2 reboot

Postby KPeter » 20.08.2017, 21:45

Hi Rob,

As per your suggestion here are the files for the 12501 release. I was able to run for just under 10 minutes until the activation of reed switch sensor 12NBEnter-SBIn in block 12 caused the CS2 to crash.

MfG
Peter
You do not have the required permissions to view the files attached to this post.
KPeter
 

Re: S88 sensor activation causes CS2 reboot

Postby rjversluis » 21.08.2017, 06:59

Hi Peter,

this event is not found in the trace files. :?:

Please test with the latest Rocrail revision.
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: S88 sensor activation causes CS2 reboot

Postby KPeter » 21.08.2017, 23:05

Hi Rob,
I tested it with today's release 12953. I got approx. 11 minutes of run time in before activation of sensor 11NBEnter-SBIn crashed the CS2. It should be noted that when these crashes occur they occur the instant the sensor gets activated, the CS2 goes blank and reboots, but the Rocrail indication stays with indication that CS2 power is on and operation is in automatic mode.

The other problem I had with this version is that the reserved blocks in a lot of cases display in pink instead of yellow. I mentioned this before and have had to go back to release 12428 to get rid of this display problem. So for now 12428 is my last stable version where everything runs and displays properly.

Here are the last 4 trace files before the system crashed.

Regards
Peter
You do not have the required permissions to view the files attached to this post.
KPeter
 

Re: S88 sensor activation causes CS2 reboot

Postby rjversluis » 22.08.2017, 06:22

Hi Peter,

also in the new traces there is no event found with ID "11NBEnter-SBIn".
Blocks are getting blue, not pink, at enter. How to reproduce?
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
 

Next

Return to CS2