Welcome to the forum   
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Share
Options
View
Go to last post in this topic Go to first unread post in this topic
Offline plane2557  
#1 Posted : 24 February 2010 01:16:11(UTC)
plane2557


Joined: 08/02/2010(UTC)
Posts: 11
Hey,

I am having a lot of trouble setting up Rocrail with CS.
I have a router, not connected to the internet, but connected
to the cs. Can this work? Also, what addresses do I need to put in the host
name and how do I know if my router and everything is working properly?

Thanks !
Offline clapcott  
#2 Posted : 24 February 2010 11:31:07(UTC)
clapcott

New Zealand   
Joined: 12/12/2005(UTC)
Posts: 2,448
Location: Wellington, New_Zealand
plane2557 wrote:
Hey,

I am having a lot of trouble setting up Rocrail with CS.
I have a router, not connected to the internet, but connected
to the cs. Can this work? Also, what addresses do I need to put in the host
name and how do I know if my router and everything is working properly?

Thanks !


1st view your CS2s settings

On the CS2
- Setup
- - Service (Spanner)
- - - IP

Note if Address assignment is manually or automatic
If ..
.. Automatically - then the CS IP Address field will have a number pre-filled (supplied by your router). NOTE this number and use it in the RocRail properties setup
.. Manually - you will need to manually set ans address and mask (template).
(Unless you reply otherwise I will presume you are set to automatic.

One test you can do to see if your PC and CS2 are "on the same page" is to issue a
ping <xxx.xxx.xxx.xxx> command. (where <xxx.xxx.xxx.xxx> is the address you discovered earlier

Let us know if you get this far.

P.S.
- What Version of RocRail ?
- What Operating System are you running on your PC ?

Peter
Offline plane2557  
#3 Posted : 24 February 2010 21:28:51(UTC)
plane2557


Joined: 08/02/2010(UTC)
Posts: 11
Hey! Thanks for helping! I have also been asking this question through the Rocrail forum. I just left a detailed reply on there because two other people were trying to help me out. Maybe if you have the time you could see what has been exchanged and tell me what you think I should do?

Here is the link to the Rocrail forum: http://forum.rocrail.net...wtopic.php?p=14259#14259
Thanks!

Eric
Offline plane2557  
#4 Posted : 25 February 2010 02:42:21(UTC)
plane2557


Joined: 08/02/2010(UTC)
Posts: 11
Ok. I have windows vista. I have it set on automatic right now on the CS and when I ping it does work. What should I do now? I'm using rocrail version 1.3. Even though PING works, after I input this IP address in rocrail, it doesnt work.
Offline clapcott  
#5 Posted : 25 February 2010 22:10:40(UTC)
clapcott

New Zealand   
Joined: 12/12/2005(UTC)
Posts: 2,448
Location: Wellington, New_Zealand
From you description you have started both RocRail and RocView.

RocRail is the background "Engine" that communicates with the Controllers
RocView is the client that connects to the RocRail server.

Most commonly they run together on the same machine, however multiple RocViews from different machines may funnel through the single RocRail server.

That's just background but it may explain why there are 2 parts.
More importantly this setup requires a communication path between the Server(RocRail) and Client(RocView) (Even if they are on the same machine. This needs to be authorised and it is possible that Vista/Firewall , which is overbearing in this area, has blocked the port(s)

But before we assume anything amiss there, there are 2 more steps and some tests that may belp

1) Identify the address of your PC. If it is also provided by your router then the first 3 numbers are probably the same as that of the CS2.
(enter "ipconfig" command from the command prompt )
2) On the CS2 - same IP setting panel as before - Check/Tick the "Start Gateway" box and enter your PCs address in the "Destination Address" field


3) After setting the address in the properties dialogue in RocRail/RocView, which I understand you have already done.
(I Assume you have selected an MCS2 controller definition)
Shutdown both RocView and RocRail
Restart just RocRail and you should see the following (or similar in the background text window)


20100226.081525.682 r9999I main OControl 0798 initDigInts lib="mcs2" idd="PJC_CS2"
20100226.081525.682 r9999I main OLib 0046 rocs_lib_load OK [C:\Program Files\Rocrail\mcs2.dll]
20100226.081525.692 r9999I main OLib 0060 rocs_lib_getProc OK [C:\Program Files\Rocrail\mcs2.dll:rocGetDigInt]
20100226.081525.692 r9999I 00023DE8 OMCS2 0473 ----------------------------------------
20100226.081525.692 r9999I 00023DE8 OMCS2 0474 MCS2(1.0) 1.3.0
20100226.081525.692 r9999I 00023DE8 OMCS2 0475 ----------------------------------------
20100226.081525.692 r9999I 00023DE8 OMCS2 0479 multicast address [192.168.0.53]
20100226.081525.692 r9999I 00023DE8 OMCS2 0480 multicast tx port [15731]
20100226.081525.692 r9999I 00023DE8 OMCS2 0481 multicast rx port [15730]
20100226.081525.692 r9999I 00023DE8 OMCS2 0482 s88 modules [0]
20100226.081525.692 r9999I 00023DE8 OMCS2 0484 ----------------------------------------
20100226.081525.702 r9999I main OControl 0850 initDigInts OK
20100226.081525.702 r9999I main OControl 0161 Init shortcut sensor...
20100226.081525.702 r9999I mcs2read OMCS2 0409 MCS2 reader started.20100226.0
81525.702 r9999I mcs2writ OMCS2 0431 MCS2 writer started.20100226.081525.702r9999I clocktic OControl 0943 ClockTicker started.20100226.081525.702 r9999I checker OControl 1000 Checker started.
20100226.081525.702 r9999I main OClntCon 0478 ClientConnection started on port 62842.
20100226.081525.702 r9999I main OModel 0496 updateFB
20100226.081525.702 r9999I cconmngr OClntCon 0317 Manager started.
20100226.081525.732 r9999I main OApp 0736 MemOp.getAllocCount() = 6785


Of interest here is the conformation that the MSC2 profile has been recognised and started and with the valid information you entered
- IP address ( as already discovered )
- transmit/receive network ports 15731/15730 (predefined by marklin within the CS2)
- 62842 (the port that RocRail is listening on for RocView to communicat on.)

If you do have the CS2 connected and its gateway setings enabled with your PCs address, then in addition to the above start-up information you will start to see regular (every 10 seconds) polls similar to ...


20100226.083055.170 r0000I mcs2read (null) *trace dump( 0x019FFF30: length=13)
offset: 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F |ASCII...........|
--------------------------------------------------------- |----------------|
00000000: 00 00 03 00 06 43 53 4C 04 30 01 00 00 |.....CSL.0... |


Now start RocView (which should connect to RocRail Server automatically unless you have changed some settings).

Try clicking the "Light Bulb"
The message box at the bottom of RocView will show "System GO" and "System STOP" as you toggle the light on and off
if you now observer the background RocRail window you should see (amongst the ongoing 10 second polls) ....


20100226.084803.918 r9999I cmdr00DE OModel 1483 sys: go
20100226.084803.918 r9999I cmdr00DE OModel 1488 informing 2 listeners of a system event...
20100226.084803.918 r9999c 00024AB4 OMCS2 0190 System GO

or

20100226.085138.047 r9999I cmdr00DE OModel 1483 sys: stop
20100226.085138.047 r9999I cmdr00DE OModel 1488 informing 2 listeners of a system event...
20100226.085138.047 r9999c 00024AB4 OMCS2 0184 System STOP


Indicating RocRail has received the command from RocView
Followed by ....

for GO ..

20100226.084803.928 r0000I mcs2read (null) *trace dump( 0x019FFF30: length=13)
offset: 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F |ASCII...........|
--------------------------------------------------------- |----------------|
00000000: 00 01 57 0F 05 00 00 00 00 01 00 00 00 |..W.......... |

or for STOP

20100226.085138.067 r0000I mcs2read (null) *trace dump( 0x019FFF30: length=13)
offset: 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F |ASCII...........|
--------------------------------------------------------- |----------------|
00000000: 00 01 57 0F 05 00 00 00 00 00 00 00 00 |..W.......... |


And If you have got this far the red nose on the CS2 should be blinking.

Personally I have not used this software ather than a basic test, I have noted that RocView appears to be only one way - if you press stop on the CS2 RocRail will not show it.
I have been pursuing the (unofficial) S88 capability and I note in the doco that v1.4 is meant to have more comprehensive CS2 functionality.

link to RocRail_CS2


Peter
Offline plane2557  
#6 Posted : 27 February 2010 03:56:07(UTC)
plane2557


Joined: 08/02/2010(UTC)
Posts: 11
Hey,

Thanks for all your help. Between this and the rocrail forum, I finally got it to work. When is 1.4 supposed to come out?
I have an s88 but waiting for wiring to set it up. Are you having trouble running the s88 with rocrail?
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

| Powered by YAF.NET | YAF.NET © 2003-2025, Yet Another Forum.NET
This page was generated in 0.315 seconds.