Automatic recognition of mfx id with CS2 & Gleisbox

Märklin Central Station 2
woodyboy
Posts: 628
Joined: 18.11.2013, 16:01

Re: Automatic recognition of mfx id with CS2 & Gleisbox

Post by woodyboy » 27.06.2015, 16:04

Dear forummembers,

Attached a new version of the mgbox library. Changes are multiple MS2 support and slightly changed mfx binding support for attached MS2 in case no mfx feedback is possible. The mfx locos are bind with the Rocrail used SID as earlier registrated. This only in case discovery is disabled and bind is enabled in the controller form and for MS2 only, not applicable in case a CS2 is attached.

Rob would you be so kind to merge this version in case no warnings are reported? Tested with the branch of this afternoon.
Attachments
mgbox.c.zip
mgbox6
(21.74 KiB) Downloaded 4 times
Last edited by woodyboy on 27.06.2015, 16:15, edited 1 time in total.

rjversluis
Site Admin
Posts: 41187
Joined: 10.04.2006, 08:48
Location: Speyer, Germany
Contact:

Re: Automatic recognition of mfx id with CS2 & Gleisbox

Post by rjversluis » 27.06.2015, 16:09

Hi Bert,
OK, no warnings and is now on air.

woodyboy
Posts: 628
Joined: 18.11.2013, 16:01

Re: Automatic recognition of mfx id with CS2 & Gleisbox

Post by woodyboy » 27.06.2015, 16:13

Wow bloodyfast!!! :thumb_up:

woodyboy
Posts: 628
Joined: 18.11.2013, 16:01

Re: Automatic recognition of mfx id with CS2 & Gleisbox

Post by woodyboy » 10.07.2015, 21:40

Dear forummembers,

Attached a version which will prevent erroneous information messages for "MS2 throttle not found".

Rob would you be so kind to merge this version? Tested with the sources of 10-7 in the evening.
Attachments
mgbox.c.zip
(21.79 KiB) Downloaded 3 times

woodyboy
Posts: 628
Joined: 18.11.2013, 16:01

Re: Automatic recognition of mfx id with CS2 & Gleisbox

Post by woodyboy » 21.07.2015, 13:11

Dear forummembers,

Attached a version of the Gleisbox library which will prevent partial mfx product registrations in case discovery is disabled and modified thread ending at shutdown to see thread endings in the log file. Tested with the branch of yesterday evening

Rob would you be so kind to merge this version if it passes the p-check?
Attachments
mgboxandxml.zip
(30.8 KiB) Downloaded 3 times

rjversluis
Site Admin
Posts: 41187
Joined: 10.04.2006, 08:48
Location: Speyer, Germany
Contact:

Re: Automatic recognition of mfx id with CS2 & Gleisbox

Post by rjversluis » 21.07.2015, 14:50

Hi Bert,

its merged.

woodyboy
Posts: 628
Joined: 18.11.2013, 16:01

Re: Automatic recognition of mfx id with CS2 & Gleisbox

Post by woodyboy » 21.07.2015, 16:54

Hi Rob,

Thanks for the fast service!

woodyboy
Posts: 628
Joined: 18.11.2013, 16:01

Re: Automatic recognition of mfx id with CS2 & Gleisbox

Post by woodyboy » 28.07.2015, 22:06

Dear forummembers

Attached a new version of the mgbox library and a proposal for a Gleisbox wiki text on http://wiki.rocrail.net/doku.php?id=cs2:gbox-en. For the wiki writers feel free to modify/correct the text.

The main change in this version is to prevent duplicate id's during the product registration. Another change is the use of the systeminfo checkbox to show the V/A/T values on the statusbar.

The mgbox.c file is tested with the github status from today.
Rob, would you be so kind to merge this version?
Attachments
mgbox.c.zip
(22.5 KiB) Downloaded 3 times
wiki proposal mgbox.odt.zip
(65.38 KiB) Downloaded 5 times

rjversluis
Site Admin
Posts: 41187
Joined: 10.04.2006, 08:48
Location: Speyer, Germany
Contact:

Re: Automatic recognition of mfx id with CS2 & Gleisbox

Post by rjversluis » 29.07.2015, 07:05

Hi Bert,

I did both.
http://wiki.rocrail.net/doku.php?id=cs2:gbox-en

Do you not have Wiki write permission?

woodyboy
Posts: 628
Joined: 18.11.2013, 16:01

Re: Automatic recognition of mfx id with CS2 & Gleisbox

Post by woodyboy » 29.07.2015, 08:00

Morning Rob,

Thanks! A couple of weeks ago I tried to edit a page voor the mgbox but I wasn't able to authenticate for editing the page. Doesn't matter to me. A review is always a good step to quality :wink:

Niklas01
Posts: 485
Joined: 12.09.2011, 11:13
Location: Baden-Württemberg, Germany

Re: Automatic recognition of mfx id with CS2 & Gleisbox

Post by Niklas01 » 01.08.2015, 17:10

Hello Bert,

I tried the mgbox library instead of the MCS2 library, because there are some interesting features. Unfortunately it doesn't work well. Everytime, when I turn on the power in RR, it turn off the Power-Symbol in RR. The CS2 didn't turn the power off. See in rocrail004.trc, line 268. The color of the Color Indicators in the status bar in wrong too.
Do you have an Idea, what's wrong?

Regards,
Niklas
Attachments
test2.zip
(6.07 KiB) Downloaded 5 times

woodyboy
Posts: 628
Joined: 18.11.2013, 16:01

Re: Automatic recognition of mfx id with CS2 & Gleisbox

Post by woodyboy » 01.08.2015, 20:10

Hi Niklas,

Thanks for reporting and uploading the files. The separated reportstate and system info is reverted. It is only possible to monitor the state one interface.

Rob, would you be so kind the merge the attached file? Besides the correction, the registering procedure has slightly modified. A verify is always interpreted.
Attachments
mgbox revert system info.c.zip
(22.17 KiB) Downloaded 4 times

rjversluis
Site Admin
Posts: 41187
Joined: 10.04.2006, 08:48
Location: Speyer, Germany
Contact:

Re: Automatic recognition of mfx id with CS2 & Gleisbox

Post by rjversluis » 02.08.2015, 06:52

Hi Bert,

I just merged it.

Niklas01
Posts: 485
Joined: 12.09.2011, 11:13
Location: Baden-Württemberg, Germany

Re: Automatic recognition of mfx id with CS2 & Gleisbox

Post by Niklas01 » 02.08.2015, 18:06

Hey Bert,

thanks a lot, now it works fine :D Good Job! Just in Linux sometimes the shown voltage ist absolutly wrong (something like -7200V, I have to test it again, then I will report maybe. But it's not a real problem for me)

Regards,
Niklas

woodyboy
Posts: 628
Joined: 18.11.2013, 16:01

Re: Automatic recognition of mfx id with CS2 & Gleisbox

Post by woodyboy » 02.08.2015, 21:33

Hi Niklas,

Thanks for reporting. The voltage error is this intermittent during program execution or is the error displayed just after startup and continues to be wrong ?
In both cases, please create a trace with Byte level enabled.
BTW The trace yesterday uploaded displays the right values and detection of the reporting channels.

Post Reply

Return to “CS2”