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 Skjalg  
#1 Posted : 27 March 2011 14:55:40(UTC)
Skjalg


Joined: 08/04/2010(UTC)
Posts: 20
Location: Norway
Hi all!

In order to enable me to run locomotives from the Mac, I intended to write a small program to listen for messages from the CS2, or at least to use an existing program such as he WinDigiPet to work. I am using a Mac, and the firewall is set up to allow incoming messages.

The connection between the mac and the CS2 works per se, I can connect to the CS2 using the broswer, to take screen shots.

UserPostedImage

The Central Station 2 is Software version 1.5.2(1) and HW version 3.4, as cen been seen from the following screen shot:

UserPostedImage

In this later version the set up for IP has changed slightly from previous versions.
It has a
IP address (I understand this)
IP Network Template (I understand this)
IP Gateway (As far as I remember, this used to state Start Gateway, and the purpose was to enable CS2 to broadcast messages, and not only listen), however I do no know what this should be now... Also the DNS Server, when should it be used, and how?

UserPostedImage

The CAN configuration I assume I have done correctly, but so far I did not manage the computer to receive any messages.

UserPostedImage

I tried to use WinDiPet demo version through Parallels on the Mac, but I did not get it to work, it claimed the CS2 was not correctly set up. Any ideas on what I need to change on the CS2 side?

Regards

Skjalg

Offline nelson77  
#2 Posted : 27 March 2011 18:55:48(UTC)
nelson77


Joined: 24/01/2010(UTC)
Posts: 154
Location: Westminster, Md
Hello Skjals.
Thanks for the great information. I just purchased a CS2 (60214). I noticed that you have Software Version- 1.5.1 (1). Last week I up graded my CS2 from the Marklin Web site and got Version 1.4.0 (0). Can I ask where you got your Software from.
Thanks
Nelson77
Westminster, Md
Offline Webmaster  
#3 Posted : 27 March 2011 18:59:53(UTC)
Webmaster


Joined: 25/07/2001(UTC)
Posts: 11,165
Have you tried with the firewall turned off?
Juhan - "Webmaster", at your service...
He who asks a question is a fool for five minutes. He who does not ask a question remains a fool forever. [Old Chinese Proverb]
Offline Skjalg  
#4 Posted : 27 March 2011 19:20:01(UTC)
Skjalg


Joined: 08/04/2010(UTC)
Posts: 20
Location: Norway
Originally Posted by: nelson77 Go to Quoted Post
Hello Skjals.
Thanks for the great information. I just purchased a CS2 (60214). I noticed that you have Software Version- 1.5.1 (1). Last week I up graded my CS2 from the Marklin Web site and got Version 1.4.0 (0). Can I ask where you got your Software from.
Thanks
Nelson77
Westminster, Md


Well, as you may know, there are 2 ways to update your CS2 software. Either from the "USB stick", or "internal" directly from the CS2, if this is connected to internet. I did the latter. I do not remember the date, but it must have been some weeks ago. I assume that Märklin has not made this version available for "USB stick" upgrade. The documentation (as available if you type in the IP address of the CS2 in your web browser, is outdated, and refers to the old set up of IP.

As a side note, you can retrieve screenshots from your CS2, by navigating to the IP address as well. In my case, where the address of the CS2 is 10.0.1.10, by pointing the browser to:
http://10.0.1.10/cgi-bin/screenshot.sh.png

UserPostedImage

_Skjalg
Offline Skjalg  
#5 Posted : 27 March 2011 19:46:01(UTC)
Skjalg


Joined: 08/04/2010(UTC)
Posts: 20
Location: Norway
Originally Posted by: Webmaster Go to Quoted Post
Have you tried with the firewall turned off?


Yes, the firewall was turned off (under OSX), but under Windows it was on, turning it off did not make a difference. As for WinDigiPet, I realized that when runnin Windows on the Mac, it gets its own IP address on a different subnet.
C:\Program Files\Microsoft Visual Studio 10.0\VC>ipconfig

Windows IP Configuration


Ethernet adapter Local Area Connection:

Connection-specific DNS Suffix . :
IP Address. . . . . . . . . . . . : 10.211.55.3
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 10.211.55.1

C:\Program Files\Microsoft Visual Studio 10.0\VC>

On the same physical machine, but under OSX I get IP address 10.0.1.9:


> ifconfig
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x1
inet 127.0.0.1 netmask 0xff000000
inet6 ::1 prefixlen 128
gif0: flags=8010<POINTOPOINT,MULTICAST> mtu 1280
stf0: flags=0<> mtu 1280
en0: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
inet6 fe80::223:32ff:fea0:a67e%en0 prefixlen 64 scopeid 0x4
inet 10.0.1.9 netmask 0xffffff00 broadcast 10.0.1.255
ether 00:23:32:a0:a6:7e
media: autoselect (1000baseT <full-duplex,flow-control>) status: active
supported media: autoselect 10baseT/UTP <half-duplex> 10baseT/UTP <full-duplex> 10baseT/UTP <full-duplex,hw-loopback> 10baseT/UTP <full-duplex,flow-control> 100baseTX <half-duplex> 100baseTX <full-duplex> 100baseTX <full-duplex,hw-loopback> 100baseTX <full-duplex,flow-control> 1000baseT <full-duplex> 1000baseT <full-duplex,hw-loopback> 1000baseT <full-duplex,flow-control> none
fw0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> mtu 4078
lladdr 00:23:32:ff:fe:2d:5b:7c
media: autoselect <full-duplex> status: inactive
supported media: autoselect <full-duplex>
en1: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
ether 00:1b:63:c1:e9:75
media: autoselect (<unknown type>) status: inactive
supported media: autoselect
en3: flags=8963<UP,BROADCAST,SMART,RUNNING,PROMISC,SIMPLEX,MULTICAST> mtu 1500
inet6 fe80::21c:42ff:fe00:1%en3 prefixlen 64 scopeid 0x7
inet 10.211.55.2 netmask 0xffffff00 broadcast 10.211.55.255
ether 00:1c:42:00:00:01
media: autoselect status: active
supported media: autoselect
en2: flags=8963<UP,BROADCAST,SMART,RUNNING,PROMISC,SIMPLEX,MULTICAST> mtu 1500
inet6 fe80::21c:42ff:fe00:0%en2 prefixlen 64 scopeid 0x8
inet 10.37.129.2 netmask 0xffffff00 broadcast 10.37.129.255
ether 00:1c:42:00:00:00
media: autoselect status: active
supported media: autoselect


So if I should get WinDigiPet to work, I might need to change something...?

I have not used WinDigiPe before, and I downloaded the German version, but I will try the English version later. Either way, here is the configuration for CS2:
UserPostedImage

and here is the message I get when I start the program:
UserPostedImage
basically saying that the CS2 does not respond, and that the digital system must be re initialized (meaning configured I guess).


Offline H0  
#6 Posted : 27 March 2011 21:23:19(UTC)
H0


Joined: 16/02/2004(UTC)
Posts: 15,436
Location: DE-NW
I have no expertise with Macs, but with Virtual PC under Windows there are several ways to set-up the network connection. My VPCs normally get an IP address directly from the main DHCP (in your case this would be an 10.0.1.x address). This would place the CS2 and the virtual PC in the same subnet.
Regards
Tom
---
"In all of the gauges, we particularly emphasize a high level of quality, the best possible fidelity to the prototype, and absolute precision. You will see that in all of our products." (from Märklin New Items Brochure 2015, page 1) ROFLBTCUTS
UserPostedImage
Offline Webmaster  
#7 Posted : 27 March 2011 21:52:31(UTC)
Webmaster


Joined: 25/07/2001(UTC)
Posts: 11,165
What Tom says, is that you should set up (if possible) the "network properties" of Parallells as a "bridging" network connection, not as a separate "Network Address Translation" (NAT) network as it seem to default to.

The CS2 broadcasts the CAN bus UDP traffic to all your 10.0.1.xxx adresses, but not to the 10.211.xxx.xxx adresses since these are not within the network scope of the broadcast. At least that's how I understand it.

Since I only know "something" about Virtual PC & VMWare, I cannot really give advice on the Parallells setup...
Juhan - "Webmaster", at your service...
He who asks a question is a fool for five minutes. He who does not ask a question remains a fool forever. [Old Chinese Proverb]
Offline Skjalg  
#8 Posted : 27 March 2011 23:09:04(UTC)
Skjalg


Joined: 08/04/2010(UTC)
Posts: 20
Location: Norway
Thanks to both of you. I will have a look into how (if) I can do this and report back my findings, hopefully by tomrorrow. So far it is logical that it does not work.

However, I am still unsure if the IP Gateway has the correct value.

Regards

_Skjalg
Offline frankie  
#9 Posted : 28 March 2011 11:55:08(UTC)
frankie


Joined: 27/10/2006(UTC)
Posts: 692
Location: Italy
Since the CS2 is a Linux box, make sure you connect the cables before starting it, may seem obvious, but just in case...
This holds true for the CS1/CS1R, not sure for the CS2 since I don't have one.
Alessandro
I have a CS1 Reloaded!
Offline GSRR  
#10 Posted : 28 March 2011 17:56:39(UTC)
GSRR

United States   
Joined: 01/03/2009(UTC)
Posts: 1,339
Location: USA
ETE UserPostedImage ECoS iTrain TouchCab C-Gleis German Era Id & IIIb USA Era IIIb SBB Era III SJ Era IV GC Era V
thanks 1 user liked this useful post by GSRR
Offline Skjalg  
#11 Posted : 28 March 2011 21:00:35(UTC)
Skjalg


Joined: 08/04/2010(UTC)
Posts: 20
Location: Norway
Thanks Thomas, for the iTrain link. I have not seen this before, but since it is cross platform, I will certainly try it out. For my own use, it seems well suited. The reason for my efforts with the WinDigiPet is simply that it is already being used in a club where I am about to become a member, so I thought I better learn how to operate it, as well as having an informed opinion about its abilities compared to other alternatives.

_Skjalg
Offline Skjalg  
#12 Posted : 28 March 2011 21:26:41(UTC)
Skjalg


Joined: 08/04/2010(UTC)
Posts: 20
Location: Norway
Originally Posted by: frankie Go to Quoted Post
Since the CS2 is a Linux box, make sure you connect the cables before starting it, may seem obvious, but just in case...
This holds true for the CS1/CS1R, not sure for the CS2 since I don't have one.


Thanks for the tip, however the connection with the CS2 works fine, as I somewhat clumsy described in my initial posting:
> The connection between the mac and the CS2 works per se, I can connect to the CS2 using the broswer, to take screen shots.

The assumption thus far is that there is a mismatch/misconfiguration between the CS2 and the Windows running in Parallel on the Mac. I will have a look at that now.

_Skjalg
Offline Webmaster  
#13 Posted : 28 March 2011 21:58:02(UTC)
Webmaster


Joined: 25/07/2001(UTC)
Posts: 11,165
The windows stuff has to be on the same network address range as the Mac & CS2 as Tom and myself mentioned - Have you found any network settings in Parallells that can support that scenario?
Juhan - "Webmaster", at your service...
He who asks a question is a fool for five minutes. He who does not ask a question remains a fool forever. [Old Chinese Proverb]
Offline Skjalg  
#14 Posted : 28 March 2011 23:03:54(UTC)
Skjalg


Joined: 08/04/2010(UTC)
Posts: 20
Location: Norway
Originally Posted by: Webmaster Go to Quoted Post
The windows stuff has to be on the same network address range as the Mac & CS2 as Tom and myself mentioned - Have you found any network settings in Parallells that can support that scenario?


I did. There is a network option at the startup:
UserPostedImage

Pressing the network link I changed this to a Bridged ethernet connection, using the same port as for the OSX.
UserPostedImage

In addition under Settings -> Network under OSX, I put the Windows address to 10.0.1.11. (The mac had 10.0.1.9 and the CS2 10.0.1.10).

After that the IPCONFIG command under windows dow window yields:

Connection-specific DNS Suffix . : ...
IP Address. . . . . . . . . . . . : 10.0.1.11
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 10.0.1.1

However, everything else is the same, i.e. the WinDigiPet reports the same error, regardsless of restarting Windows.

I did also try the iTrain on the Mac, and it claimed to have connected with the CS2, but nothing more.

_Skjalg

Offline GSRR  
#15 Posted : 28 March 2011 23:39:37(UTC)
GSRR

United States   
Joined: 01/03/2009(UTC)
Posts: 1,339
Location: USA
Originally Posted by: Skjalg Go to Quoted Post

I did also try the iTrain on the Mac, and it claimed to have connected with the CS2, but nothing more.

_Skjalg





Skjalg,

Just to confirm you installed the Mac OS version of iTrain, and you also downloaded the user manual?

You could also post on the iTrain forum about iTrain - CS2 connection.

http://berros.eu/itrain/forum/


Can you post screenshots of the iTrain connection?


r/Thomas

ETE UserPostedImage ECoS iTrain TouchCab C-Gleis German Era Id & IIIb USA Era IIIb SBB Era III SJ Era IV GC Era V
Offline Skjalg  
#16 Posted : 28 March 2011 23:58:59(UTC)
Skjalg


Joined: 08/04/2010(UTC)
Posts: 20
Location: Norway
Here you see 2 pictures, my definition of CS2 for iTrain, and the Control panel, showing the CS2 as online. The user manual I did not discover, but I doubt if it will help, but I will look at it. A possible way forward would be to downgrade to whatever version is offered as a USB stick upgrade/downgrade. At least then I could rule out that as a possible problem.

UserPostedImage

UserPostedImage
Offline xxup  
#17 Posted : 29 March 2011 00:04:19(UTC)
xxup

Australia   
Joined: 15/03/2003(UTC)
Posts: 9,580
Location: Australia
Have you tried to ping the CS2 from the Windows partition? If the Windows machine can't see the CS2, then WDP won't either..

Are you using WinDigiPet 2009 - earlier versions don't work with the CS2? The English Demo version is at http://www.windigipet.de/cgi-bin/download/download.pl?setup_demo_2009_e
Adrian
UserPostedImage
Australia flag by abFlags.com
Offline Skjalg  
#18 Posted : 29 March 2011 00:10:13(UTC)
Skjalg


Joined: 08/04/2010(UTC)
Posts: 20
Location: Norway
Originally Posted by: GSRR Go to Quoted Post

Skjalg,

Just to confirm you installed the Mac OS version of iTrain, and you also downloaded the user manual?

You could also post on the iTrain forum about iTrain - CS2 connection.

http://berros.eu/itrain/forum/


Can you post screenshots of the iTrain connection?


r/Thomas



This is how I defined the train (in iTrain):
UserPostedImage

and the corresponding address as shown on the CS2:
UserPostedImage
Offline Skjalg  
#19 Posted : 29 March 2011 00:14:22(UTC)
Skjalg


Joined: 08/04/2010(UTC)
Posts: 20
Location: Norway
Originally Posted by: xxup Go to Quoted Post
Have you tried to ping the CS2 from the Windows partition? If the Windows machine can't see the CS2, then WDP won't either..

Are you using WinDigiPet 2009 - earlier versions don't work with the CS2? The English Demo version is at http://www.windigipet.de/cgi-bin/download/download.pl?setup_demo_2009_e


Yes, I had.

Windows IP Configuration


Ethernet adapter Local Area Connection:

Connection-specific DNS Suffix . : ...
IP Address. . . . . . . . . . . . : 10.0.1.11
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 10.0.1.1

C:>ping 10.0.1.10

Pinging 10.0.1.10 with 32 bytes of data:

Reply from 10.0.1.10: bytes=32 time=1ms TTL=64
Reply from 10.0.1.10: bytes=32 time=1ms TTL=64
Reply from 10.0.1.10: bytes=32 time=2ms TTL=64
Reply from 10.0.1.10: bytes=32 time<1ms TTL=64

Ping statistics for 10.0.1.10:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 2ms, Average = 1ms


Offline Skjalg  
#20 Posted : 29 March 2011 00:22:09(UTC)
Skjalg


Joined: 08/04/2010(UTC)
Posts: 20
Location: Norway
Originally Posted by: xxup Go to Quoted Post
Have you tried to ping the CS2 from the Windows partition? If the Windows machine can't see the CS2, then WDP won't either..

Are you using WinDigiPet 2009 - earlier versions don't work with the CS2? The English Demo version is at http://www.windigipet.de/cgi-bin/download/download.pl?setup_demo_2009_e


I used the German version, latest of the greatest.

UserPostedImage

I'm running out of energy for tonight. Tomorrow I will try to downgrade the CS2.

_Skjalg
Offline Skjalg  
#21 Posted : 29 March 2011 21:56:06(UTC)
Skjalg


Joined: 08/04/2010(UTC)
Posts: 20
Location: Norway
OK, so time for a little update.

I downgraded my version of the CS2 software, using the USB stick approach.

UserPostedImage

I did the setup of the Network:

UserPostedImage

I then started up the iTrain software running under the Mac OSX, and as can be observed on the below image, this gave a better result.
UserPostedImage


The Go and Stop button works, but so far I did not manage to control the locomotive, but I have only tried a few minutes so far. Maybe time to read the documentation... I will also try the WinDigiPet software, and give you an update later (not sure if I manage today).

But based on my findings thus far, stay with the 1.4 USB upgrade if you want to control your trains from software.

_Skjalg
Offline Skjalg  
#22 Posted : 29 March 2011 23:56:41(UTC)
Skjalg


Joined: 08/04/2010(UTC)
Posts: 20
Location: Norway
Originally Posted by: Skjalg Go to Quoted Post

I then started up the iTrain software running under the Mac OSX, and as can be observed on the below image, this gave a better result.
UserPostedImage


The Go and Stop button works, but so far I did not manage to control the locomotive, but I have only tried a few minutes so far. Maybe time to read the documentation...
_Skjalg



OK an update on using the iTrain. Reading the manual was of help, quite a good one in fact. When identifying an MFX locomotive, I had to fill in 0 in the address field.

UserPostedImage

Next change the direction of the train on the CS2, and the address is then detected in connection with a broadcast.

UserPostedImage

After this I could operate the train just fine. All functions where displayed as expected.

UserPostedImage

_Skjalg
Offline intruder  
#23 Posted : 30 March 2011 00:13:44(UTC)
intruder

Norway   
Joined: 16/08/2006(UTC)
Posts: 5,382
Location: Akershus, Norway
Interesting, even though I dont have neither a Mac nor a CS2
Best regards Svein, Norway
grumpy old sod
Offline Skjalg  
#24 Posted : 30 March 2011 18:42:38(UTC)
Skjalg


Joined: 08/04/2010(UTC)
Posts: 20
Location: Norway
So today, I did an upgrade again, so I'm back with the version 1.5.2(1). And today, it worked! I´m officially out of trouble, and running the latest version of CS2 software.

I did not have time to test with WinDigiPet yet, but iTrain worked, and former should work as well. Below you can see the configuration that worked for 1.5.2(1):
UserPostedImage
UserPostedImage

_Skjalg

Offline GSRR  
#25 Posted : 08 April 2011 10:26:32(UTC)
GSRR

United States   
Joined: 01/03/2009(UTC)
Posts: 1,339
Location: USA
Skjalg,

glad to see you got it all working, thanks for the pictures.


r/Thomas

ETE UserPostedImage ECoS iTrain TouchCab C-Gleis German Era Id & IIIb USA Era IIIb SBB Era III SJ Era IV GC Era V
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 1.045 seconds.