Update ms2 by rocrail

Märklin Central Station 2

Update ms2 by rocrail

Postby ech » 19.03.2017, 20:52

I have gleisbox and MS2 with​ rocrail. Am wondering, and it would be great, if it is possible to update my MS2 to newest software, am still on 1.81
If rocrail can behave as a CS2 .... Why not let it update MS2 .... It would be great! Placing​ the new sw in the rocrail dir or somewhere where MS2 will find it when checking for the update.

Maybe this feature is already there, or it can be implemented?
ech
 

Re: Update ms2 by rocrail

Postby bertc3p0 » 20.03.2017, 00:06

ech wrote:I have gleisbox and MS2 with​ rocrail. Am wondering, and it would be great, if it is possible to update my MS2 to newest software, am still on 1.81
If rocrail can behave as a CS2 .... Why not let it update MS2 .... It would be great! Placing​ the new sw in the rocrail dir or somewhere where MS2 will find it when checking for the update.

Maybe this feature is already there, or it can be implemented?

AFAIK Rocrail doesnt't support the MS2 updates. But it's possible via CS2.exe as you can see here: MS2 update without CS2/MS2
That requires a CAN interface with Linux-Support (SocketCAN) and can2lan. This combination works like a CS2 without the LCD. The CS2.exe thinks a physical CS2 is connected and almost every CS2 feature, like the MS2 update, is working.
And, of course, it's also working with Rocrail (mgbox) :mrgreen:

Regards

Gerd
bertc3p0
 

Re: Update ms2 by rocrail

Postby ech » 20.03.2017, 08:55

Thanks a lot for your reply Gerd.
I understand what you write.
Can find the can2lan part, but cannot find the CS2.exe ....

Assume CS2.exe needs to run on windows?
I run rocrail on ubuntu ... maybe it can work with wine as well.

Can you tell me where to get CS2.exe ?

Ok I found CS2_setup.exe at: http://varfile.info/cs2_setup.exe/en-download-6171.html
Tried to install it ( on my linux pc at work ) on ubuntu with wine, and I can run it!
I will try it at home and with can2lan ...

THANKS A LOT Gerd
PS I am using mcs2 and sometimes also switching to mgbox.
When I need MS2 I switch to mcs2 as mgbox makes MS2 unusable ....
I like rocrail a lot!
regards,
Enzo
ech
 

Re: Update ms2 by rocrail

Postby woodyboy » 20.03.2017, 15:14

When I need MS2 I switch to mcs2 as mgbox makes MS2 unusable ....
:shock: :?: :?: :?:

What is your problem with mgbox and an attached MS2?
Regards,

Bert

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

Re: Update ms2 by rocrail

Postby ech » 20.03.2017, 18:46

I have ms2 already switched on, when I then start rocrail with mgbox, it will kind of put the ms2 out of operation, as mgbox takes over control over it. To be able to use ms2 again, I have to power cycle it!

Regards,
Enzo
ech
 

Re: Update ms2 by rocrail

Postby woodyboy » 20.03.2017, 19:13

Hi Enzo,

Most probably the systeminfo checkbox is checked in the mgbox configuration dialog. This forces the MS2 in slave mode. When the MS2 is in slave mode, it is simple to select a loco from Rocrails locolist by the MS2 menu:
<shift> <locosymbol> : New Loco : From Loco List
It is possible to scroll through the locolist and select a loco on every position in the MS2. For the selected loco the MS2 acts as a throttle. If functions are correct defined in Rocrail, the loco receives also the corresponding icons on the function buttons in the MS2. See for details about the checkbox and the behaviour on the configuration on http://wiki.rocrail.net/doku.php?id=cs2:gbox-en
Hope this helps.
If you have any questions about the configuration please open a new thread for it. It is not my intention to hi-jack this thread.
Regards,

Bert

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

Re: Update ms2 by rocrail

Postby ech » 20.03.2017, 20:21

Thanks a lot for your info Bert!

Kind regards,
Enzo
ech
 

Re: Update ms2 by rocrail

Postby ech » 21.03.2017, 18:37

@Gerd

How can I clone or checkout the can2lan from GitHub?
I tried to clone to be able to compile it ...
ech
 

Re: Update ms2 by rocrail

Postby bertc3p0 » 21.03.2017, 19:08

Hi Enzo,
ech wrote:@Gerd

How can I clone or checkout the can2lan from GitHub?
I tried to clone to be able to compile it ...

Code: Select all
git clone https://github.com/GBert/railroad.git
cd railroad/can2udp/src
make

Be sure to setup your CAN as SocketCAN interface like this:
Code: Select all
root@Modellbahn-BPi:~# ip -s -d link show can0
3: can0: <NOARP,UP,LOWER_UP,ECHO> mtu 16 qdisc fq_codel state UNKNOWN mode DEFAULT group default qlen 10
    link/can  promiscuity 0
    can state ERROR-ACTIVE (berr-counter tx 0 rx 0) restart-ms 10
     bitrate 250000 sample-point 0.875
     tq 250 prop-seg 6 phase-seg1 7 phase-seg2 2 sjw 1
     sun4i_can: tseg1 1..16 tseg2 1..8 sjw 1..4 brp 1..64 brp-inc 1
     clock 24000000
     re-started bus-errors arbit-lost error-warn error-pass bus-off
     0          0          0          0          0          0         
    RX: bytes  packets  errors  dropped overrun mcast   
    8310       1050     0       0       0       0       
    TX: bytes  packets  errors  dropped carrier collsns
    6135       1026     0       0       0       0     

Regards

Gerd
bertc3p0
 

Re: Update ms2 by rocrail

Postby ech » 21.03.2017, 20:18

Thanks a lot for your fast reply and your help!
I tried a bit clone on the can2udp and not on the whole project, that was the problem.
Kind regards Enzo
ech
 

Re: Update ms2 by rocrail

Postby ech » 22.03.2017, 08:59

@Gerd I have other questions.
question 1: As I wrote before that I did not find CS2.exe, but instead I found CS2_setup.exe. After installing this and running, I assume we then are talking about the same CS2.exe right?
question 2: I assume I have to download the MS2 update from the marklin site right? and hen place it in a directory somewhere where CS2.exe is installed?

I hope after this everything will be more clear.

Thanks in advance,
kind regards,
Enzo
ech
 

Re: Update ms2 by rocrail

Postby bertc3p0 » 22.03.2017, 15:19

Hi Enzo,
ech wrote:@Gerd I have other questions.
question 1: As I wrote before that I did not find CS2.exe, but instead I found CS2_setup.exe. After installing this and running, I assume we then are talking about the same CS2.exe right?
yes
question 2: I assume I have to download the MS2 update from the marklin site right? and hen place it in a directory somewhere where CS2.exe is installed?

under the CS2 installation dir their should be an update dir which should look like:
Code: Select all
-rwxr--r-- 1 gerd gerd  50636 Jul 29  2015 000-gfp.bin
-rwxr-xr-x 1 gerd gerd  31433 Nov 11  2011 016-gb2.bin
-rwxr-xr-x 1 gerd gerd   9356 Apr 12  2010 032-connect6021.bin
-rwxr-xr-x 1 gerd gerd     36 Oct 16  2009 048-ms2.bin
lrwxrwxrwx 1 gerd gerd     11 Sep 21  2011 049-ms2.bin -> 050-ms2.bin
-rwxr-xr-x 1 gerd gerd  83144 Feb 18  2015 050-ms2.bin
-rwxr-xr-x 1 gerd gerd 139415 Feb 18  2015 051-ms2.bin


Regards

Gerd
bertc3p0
 

Re: Update ms2 by rocrail

Postby ech » 22.03.2017, 16:50

Thanks Gerd,

Ok, I found the update directory
And for the update I have to down load the cs2update.img from the german site right, there is no separate update file for MS2 if I understand correct?
ech
 

Re: Update ms2 by rocrail

Postby bertc3p0 » 22.03.2017, 17:21

Hi Enzo,
ech wrote:Thanks Gerd,

Ok, I found the update directory
And for the update I have to down load the cs2update.img from the german site right, there is no separate update file for MS2 if I understand correct?

there is no seperate MS2 dir, it's included (XXX-ms2.bin files) . BTW - here the data from the actual CS3 update image:
Code: Select all
% sudo mount -o loop cs3update_v1.20.btrfs /mnt
% ls -l /mnt/usr/local/cs3/update
-rwxr-xr-x 1 root root  52246 Dez 14 13:11 000-gfp.bin*
-rw-r--r-- 1 root root  31433 Mai 13  2016 016-gb2.bin
-rw-r--r-- 1 root root   9356 Mai 13  2016 032-connect6021.bin
-rw-r--r-- 1 root root     36 Mai 13  2016 048-ms2.bin
lrwxrwxrwx 1 root root     11 Dez 17 09:29 049-ms2.bin -> 050-ms2.bin
-rw-r--r-- 1 root root  84192 Dez  7 12:35 050-ms2.bin
-rw-r--r-- 1 root root 141111 Dez  7 12:35 051-ms2.bin
-rw-r--r-- 1 root root  27948 Jul 28  2016 064-linkS88.bin
-rw-r--r-- 1 root root 112024 Dez 17 09:18 080-gfp.bin
-rw-r--r-- 1 root root  73216 Mai 13  2016 flashdb.ms2
-rw-r--r-- 1 root root  46270 Mai 13  2016 lang.ms2

# get the version number:
% hexdump -C /mnt/home/cs2/update/051-ms2.bin | head -1
00000000  02 05 00 33 fc 02 73 fd  fd 00 00 3e 3f fc 0a 73  |...3..s....>?..s|
## Version number are coded in the first two Bytes: 02.05

Copy this directory to your CS2 Windows installation dir and start the MS2.
Maybe you need to force the update by pushing and holding the red button before plug in the MS2.

Regards

Gerd
Last edited by bertc3p0 on 23.03.2017, 13:37, edited 1 time in total.
bertc3p0
 

Re: Update ms2 by rocrail

Postby ech » 23.03.2017, 09:19

Hello Gerd,

Thanks a lot for your help, I downloaded cs2update.img (133MB) from the German Marklin site.

sudo mount -o loop cs2update.img /mnt

ls /mnt/
etc/ home/ lib/ opt/ paket/ root/ usr/

After some searching in the /mnt dir I found:

ls -l /mnt/home/cs2/update/total 449
-rwxr--r-- 1 root root 50636 jul 29 2015 000-gfp.bin
-rwxr-xr-x 1 root root 31433 nov 11 2011 016-gb2.bin
-rwxr-xr-x 1 root root 9356 apr 12 2010 032-connect6021.bin
-rwxr-xr-x 1 root root 36 okt 16 2009 048-ms2.bin
lrwxrwxrwx 1 root root 11 sep 21 2011 049-ms2.bin -> 050-ms2.bin
-rwxr-xr-x 1 root root 83144 feb 18 2015 050-ms2.bin
-rwxr-xr-x 1 root root 139415 feb 18 2015 051-ms2.bin
lrwxrwxrwx 1 root root 18 nov 24 2011 fcticons -> /home/cs2/fcticons
lrwxrwxrwx 1 root root 28 jun 22 2012 fds -> /tmplog/stick/cs2/update/fds
-rwxr-xr-x 1 root root 73216 jun 10 2014 flashdb.ms2
drwxr-xr-x 2 root root 4208 mei 19 2016 fwd
drwxr-xr-x 2 root root 776 dec 1 2014 fws
lrwxrwxrwx 1 root root 15 feb 13 2015 icons -> /home/cs2/icons
-rwxr-xr-x 1 root root 46270 feb 11 2014 lang.ms2
lrwxrwxrwx 1 root root 28 jun 22 2012 snd -> /tmplog/stick/cs2/update/snd
lrwxrwxrwx 1 root root 28 jun 22 2012 wav -> /tmplog/stick/cs2/update/wav

Tonight I will try to update, and I will let you know the results.
Thanks a lot Gerd,

Kind regards,
Enzo
ech
 

Next

Return to CS2