CS2 Communication problem.

Märklin Central Station 2

CS2 Communication problem.

Postby seveny » 11.06.2010, 18:05

Hey there,

I set up my new CS2 again.

I can see infos in the logfile when I turn the wheel on the cs2 in rocrail.
Code: Select all
20100611.185934.030 r9999I mcs2read OLoc     0434 lc=Claas 152 V_raw=16 V=2 fn=1 dir=Forwards throttleID=CS2
20100611.185934.730 r9999I mcs2read OLoc     0434 lc=Claas 152 V_raw=0 V=0 fn=1 dir=Forwards throttleID=CS2


But I can not send commands, because of
Code: Select all
20100611.185931.425 r9999W cmdr09B0 OControl 0216 Interface ID is not set!

I don't understand.

I configured the CS2 with an interface name, IP-address, port=0 and sensors=1.

IP-address resolves in the webbrowser to the märklin webpage from inside CS2.

I am using rocrail svn version 1.4.999 rev 1666 on ubuntu 10.04.

Any hints? Where should I look?
--sven / Anlage: Roclingen 2.0 im Aufbau C-Gleis, CS2, MS1/2, Main-/MobileStation@iOS, andRoc, iRoc, padRoc, Rocrail@Ubuntu
--> Stummitreff BB jeden 3. Freitag im Monat <--
seveny
 

Postby ron&bram » 11.06.2010, 18:29

Hi Sven,

Communication with the CS2 is OK, otherwise you would not have seen the throttle messages from the CS2. Very ofthen, the Interface ID is not set error comes from the fact that an object has an interface ID set, while there is no command station with that name. When you only have one command station defined , just the CS2 (and not also left the default virtual command station in), check all objects and leave the interface id's empty.

Best regards, Ronald
Best regards, Viele Grüsse, vriendelijke groeten, Ronald :rr_cap:
GCA85/50/93/145/146/153 Loconet, Twincenter+booster for locs, seperate booster for accessory decoders, dedicated laptop with XP and Ubuntu for Rocrail, AndRoc, LGB indoor OTF layout
ron&bram
 

Postby seveny » 11.06.2010, 21:30

Hi Ronald,

thanks for the hint! I changed it - set iid to "".

Code: Select all
<digint iid="" lib="mcs2" host="192.168.22.100" port="0" fbmod="1" stress="false" libpath="/opt/rocrail"/>


I don't get the error messages anymore and the commands are still shown from turning the wheel on the cs2 - but no remote control from rocrail is working and no S88-sensors-changes are shown. even pressing the "system stop" does not do anything...

Some logs for this:

Code: Select all
20100611.222613.960 r9999I mcs2read OMCS2    0561 MCS2 reader started.
20100611.222613.960 r9999I mcs2writ OMCS2    0602 MCS2 writer started.
20100611.222613.960 r9999I fbreader OMCS2    0398 MCS2 feedbackpoll started, polling 1 S88 units
20100611.222613.961 r9999I clocktic OControl 1036 ClockTicker started.
20100611.222613.961 r9999I checker  OControl 1093 Checker started.
20100611.222613.961 r9999I cconmngr OClntCon 0330 Manager started.
20100611.222613.961 r9999I broadcas OClntCon 0440 Broadcaster started.
20100611.222616.312 r9999I mcs2read OLoc     0434 lc=Claas 152 V_raw=296 V=30 fn=1 dir=Forwards throttleID=CS2
20100611.222616.432 r9999I mcs2read OLoc     0434 lc=Claas 152 V_raw=288 V=29 fn=1 dir=Forwards throttleID=CS2
20100611.222740.975 r9999I cmdr0844 OClntCon 0210 cmdReader started for:127.0.0.1.
20100611.222740.975 r9999I infw0844 OClntCon 0105 infoWriter started for:127.0.0.1.
20100611.222741.975 r9999I cmdr0844 OControl 0616 command from [rocview,224482204,2817]
20100611.222741.975 r9999I cmdr0844 OModel   1568 model: plan
20100611.222742.240 r9999I cmdr0844 OModel   1568 model: fstat
20100611.222742.240 r9999I cmdr0844 OModel   1734 Sending 0 fstat's to client...
20100611.222942.131 r9999c cmdr0844 OMCS2    0296 loc 2 (dcc) speedstep=0 forwards
20100611.222943.447 r9999I cmdr0844 OLoc     0874 lc=ICE2 lights=on 01 -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20100611.222943.447 r9999I cmdr0844 OModel   1568 sys: dcc
20100611.222943.447 r9999c cmdr0844 OMCS2    0329 Loc 2 (dcc) function f1 to on
20100611.222944.135 r9999I cmdr0844 OLoc     0874 lc=ICE2 lights=on -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20100611.222944.135 r9999I cmdr0844 OModel   1568 sys: dcc
20100611.222944.135 r9999c cmdr0844 OMCS2    0329 Loc 2 (dcc) function f1 to off


Any more ideas?
--sven / Anlage: Roclingen 2.0 im Aufbau C-Gleis, CS2, MS1/2, Main-/MobileStation@iOS, andRoc, iRoc, padRoc, Rocrail@Ubuntu
--> Stummitreff BB jeden 3. Freitag im Monat <--
seveny
 

Postby ron&bram » 11.06.2010, 21:53

Hi Sven,

Can you please do the following:
- Erase all rocrail.*.trc files
- Start Rocrail
- In the dos like Rocrail window press b<enter> to activate byte tracelevel
- Try to control a loc and a switch from Rocview
- Try to get an S88 event, for instance by running a loc from the CS2 across a detector
- Quit Rocrail
- Put all rocrail.*.trc files, together with your rocrail.ini in a zip file and post it here.

Best regards, Ronald
Best regards, Viele Grüsse, vriendelijke groeten, Ronald :rr_cap:
GCA85/50/93/145/146/153 Loconet, Twincenter+booster for locs, seperate booster for accessory decoders, dedicated laptop with XP and Ubuntu for Rocrail, AndRoc, LGB indoor OTF layout
ron&bram
 

Postby seveny » 11.06.2010, 22:00

done, one s88 changing from 0 to 1, one loco speeding up and using switch 1

will be back tomorrow, thanks in advance, ronald!
You do not have the required permissions to view the files attached to this post.
--sven / Anlage: Roclingen 2.0 im Aufbau C-Gleis, CS2, MS1/2, Main-/MobileStation@iOS, andRoc, iRoc, padRoc, Rocrail@Ubuntu
--> Stummitreff BB jeden 3. Freitag im Monat <--
seveny
 

Postby seveny » 11.06.2010, 22:16

rocrail.ini:
Code: Select all
<rocrail planfile="plan.xml" occupation="occ.xml" libpath="." imgpath="images" ptiid="" lciid="" dpiid="" sviid="" sciid="" scsensor="" createmodplan="false" poweroffonexit="false">
  <trace rfile="rocrail" debug="false" byte="false" automatic="false" monitor="true" listen2all="false"/>
  <tcp port="62842" maxcon="10" onlyfirstmaster="false"/>
  <clock divider="1" hour="24" minute="60"/>
  <ctrl swtimeout="250" minbklc="20" ignevt="5" initfieldpause="500" seed="4711" savepostime="10" check2in="false" secondnextblock="false" initfieldpower="true" enableswfb="true" eventtimeout="0" signalreset="0" routeswtime="10" disablerouteVreduce="false" greenaspect="false" semaphorewait="1" signalwait="3" locostartgap="0" defaspect="red" skipsetsw="false" usebicom="true" poweroffonidentmismatch="false" poweroffatghost="true" keepghost="false" blockinitpause="0" disablesteal="false" skipsetsg="false" poweroffatreset="true"/>
  <r2rnet id="" addr="224.0.0.1" port="1234" routes="netroutes.xml" enable="false"/>
  <digint iid="" lib="mcs2" host="192.168.22.100" port="0" fbmod="1" stress="false" libpath="/opt/rocrail"/>
</rocrail>
--sven / Anlage: Roclingen 2.0 im Aufbau C-Gleis, CS2, MS1/2, Main-/MobileStation@iOS, andRoc, iRoc, padRoc, Rocrail@Ubuntu
--> Stummitreff BB jeden 3. Freitag im Monat <--
seveny
 

Postby ron&bram » 12.06.2010, 12:02

Hi Sven,

I do not understand what your CS2 is doing. Rocrail is completely flooded by a continious stream of messages from the CS2. Thses messages look like this (with some variations):
Code: Select all
0C 00 07 82 08 00 00 00 02 43 53 65 77

According to the Märklin Can Protocol description the value in byte 0, 0C, means that it is a loc function message. Then the value in byte 9, 43, is the number of the function and the value in byte 10, 53, is the state of the function. Since functions supported range from 0 to 31, the number of the function (43 in hex, 67 decimal) makes no sense, also the state of function can be off (0) or on (1), not 53 hex.
For one reason or another, your CS2 is sending enormous amounts of undocumented messages that are appearing to be loc function messages in a wrong format. This is something Rocrail can not handle. In your profile you have written that you have a CS2+2MS. I do not now what MS means, but if these are connected to the CS2 try it without these connected.
You could also try Rocrail 1.3 Air, where only the CS2 messages regarding the S88 state are evaluated.

Best regards, Ronald
Best regards, Viele Grüsse, vriendelijke groeten, Ronald :rr_cap:
GCA85/50/93/145/146/153 Loconet, Twincenter+booster for locs, seperate booster for accessory decoders, dedicated laptop with XP and Ubuntu for Rocrail, AndRoc, LGB indoor OTF layout
ron&bram
 

Postby seveny » 12.06.2010, 12:17

Hi Ronald,

thanks for the analysis.

I disconnected the two Mobiles Stations (old ones version 1) - no difference.

I have received a new CS2 from Märklin because old one hat trouble with S88-contacts.
After 2 months I got a new CS2.

It has the following release data:
article number 60214
version 1.23 (i guess this means the version of GFP = gleis format processor)
software 1.2.5(1)
hardware 3.4

edit: I just updated to
version 1.24 GFP
software 1.3.0(1)

unfortunately no difference...

hmm.
--sven / Anlage: Roclingen 2.0 im Aufbau C-Gleis, CS2, MS1/2, Main-/MobileStation@iOS, andRoc, iRoc, padRoc, Rocrail@Ubuntu
--> Stummitreff BB jeden 3. Freitag im Monat <--
seveny
 

Postby seveny » 12.06.2010, 12:48

hi ronald,

no luck with rocrail-1.3-Air either - downloaded the tar.gz, compiled, installed.

No errors in the log but no reaction to STOP and so on. ping to cs2 works fine.

Still wondering what the heck is going on...
--sven / Anlage: Roclingen 2.0 im Aufbau C-Gleis, CS2, MS1/2, Main-/MobileStation@iOS, andRoc, iRoc, padRoc, Rocrail@Ubuntu
--> Stummitreff BB jeden 3. Freitag im Monat <--
seveny
 

Postby ron&bram » 13.06.2010, 11:57

Hi Sven,

I am at a loss. You have the first CS2 reported in the forum that sends a continious stream of messages starting with 0C, but containing invalid information. Maybe another CS2 user can give some tips here. When I run tests on Rocrail's CS2 driver (after a software change) I use a second laptop that runs Windows. On that laptop a terminal program is running that is able to handle udp messages. It can also send messages back, so that Rocrail thinks that there is a CS2 on the other end. When you have access to a windows pc, you might try running this program (with just the CS2 as "stand-alone", no Rocrail running), to check if this stream of messages also comes when Rocrail is not running. The program is called Hercules (http://www.hw-group.com/products/hercules/index_en.html).

Best regards, Ronald
Best regards, Viele Grüsse, vriendelijke groeten, Ronald :rr_cap:
GCA85/50/93/145/146/153 Loconet, Twincenter+booster for locs, seperate booster for accessory decoders, dedicated laptop with XP and Ubuntu for Rocrail, AndRoc, LGB indoor OTF layout
ron&bram
 

Interface ID not set...

Postby Wolfi » 14.06.2010, 19:47

Hi Sven,
saw your problem only today, and see you have been quite a way down the road with problem solving already...
While i have no clue about the how and why, I had the same initial problem "Interface ID not set" beginning of last week (published under "General") and tried a few things with no luck.

I downloaded then last Wednesday (9 June) the version 1.4.999 'snapshot' June 8 2010 revision 1664, and reverted back with ini file etc. to a previous backup when everything was still working. (My problem started with 1.3 Air when connecting a third S88). I can only say, that my problem disappeared when using the snapshot and i run trains randomly for several hours without any problems...

(I also saw on 1.3 Air the info overload that Ronald is talking about, but it never effected the running of the program in the past...)

Good luck

Wolfi
Wolfi
 

Postby seveny » 19.06.2010, 19:07

hey there,

I found the solution by setting up a new rocrail on a different computer: I used the wrong IP-address in rocrail.ini!

setting up the new rocrail and using the correct IP worked at once. I saw my s88-sensors and could send loco commands.

thanks for all your hints and analysis.

this means: wrong IP works half way, because rocrail receives cs2-messages but sends them to the wrong network device.

do s88 work different? because I did not see them before using the correct ip.

greetz,
sven
--sven / Anlage: Roclingen 2.0 im Aufbau C-Gleis, CS2, MS1/2, Main-/MobileStation@iOS, andRoc, iRoc, padRoc, Rocrail@Ubuntu
--> Stummitreff BB jeden 3. Freitag im Monat <--
seveny
 


Return to CS2