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 Papymouzot  
#1 Posted : 15 October 2022 10:17:01(UTC)
Papymouzot

France   
Joined: 15/10/2022(UTC)
Posts: 5
Location: Provence-Alpes-Cote-d'Azur, Roquebrune-Cap-Martin
Hi everybody,

I would like to build a MM decoder in order to decode messages coming from an Ecos with the hope to be able to control a Fleishmann N turntable with 48 possible roads. It isn't great to do it with DCC as the Ecos only sends one message to change one road at a time with a delay of 3,5 seconds in between each change.. So when I wish to turn by 180°, the "bridge" turns 24 times 3,5 seconds, over 84 seconds, not only it is very slow but at each road we have an annoying clac clac noise..

I found some libraries for the Arduino to decode MM messages but it is probably outdated, I am not getting really what I was expecting.

The library reacts when MM messages are forwarded on the BUS but I can't decode the message properly. The code I have expect 9 trits to arrive twice for each message, so 18 bits, but the only document I found has an interpretation of the Message which doesn't not sound coherent with the messages received from the Ecos...

So I am looking for some help there Blushing

Thanks in advance !

Charles
Offline Papymouzot  
#2 Posted : 15 October 2022 15:15:28(UTC)
Papymouzot

France   
Joined: 15/10/2022(UTC)
Posts: 5
Location: Provence-Alpes-Cote-d'Azur, Roquebrune-Cap-Martin
Hi, it’s me again….

I finally made it work with MM and MM2.

I didn’t start working from the right angle. I started with tests usin a Turntable setting in the Ecos. It was much better when I first looked at simple « turnouts and signal messages.

I also looked deeper in the MM library sources and understood most of what I required.

I am still interested with more technical description of the MM protocol, I more than likely missed many things still… 😅😅😅
thanks 1 user liked this useful post by Papymouzot
Offline marklinist5999  
#3 Posted : 15 October 2022 15:32:46(UTC)
marklinist5999

United States   
Joined: 10/02/2021(UTC)
Posts: 3,142
Location: Michigan, Troy
The MM format developed in 3 satges. First in 1985 with 1 function, headlights. Then with up to 4 functions, telex couplers, or smoke, whistle, or horn. Then the FX extended format available with the 6021 control for as many as 6. When MFX debuted in 2005, with the first mobil, and central station, several more functions became the norm. Now we have up to 32 with the latest MS2 software, and CS3.
The ECOS 2 still utilizes railcome, which MFX does not, but the latest ESU M4 decodrs are both formats, so you don't really have to build a decoder, you can program empry ones if you wish, or buy them already so.
ESU and Marklin teamed up to develop the first central station, but then parted ways.
Offline kiwiAlan  
#4 Posted : 15 October 2022 16:19:07(UTC)
kiwiAlan

United Kingdom   
Joined: 23/07/2014(UTC)
Posts: 8,109
Location: ENGLAND, Didcot
Originally Posted by: marklinist5999 Go to Quoted Post
The MM format developed in 3 satges.


Well, the MM format developed in 2 stages. Originally it used Motorola chips for the encoding and decoding (hece why it is often referred to as Marklin Motorola format). The data sheet for the original chips used can be found here. The MC145027 is the IC that could be found as the decoder in the original M83/m84 point decoders, and the function decoders in items like the 4998 and 4999 coaches.

Originally Posted by: marklinist5999 Go to Quoted Post

First in 1985 with 1 function, headlights. Then with up to 4 functions, telex couplers, or smoke, whistle, or horn.


No, the original version only had one function, the headlights. The additional four functions only came about later. The capability to encode the four functions violates the encoding capabilities of the original encoder chip listed in the data sheet above by using input combinations on the inputs which if done with switches would represent a short circuit across the power supply, so the encoding is done inside a microprocessor.

Originally Posted by: marklinist5999 Go to Quoted Post

Then the FX extended format available with the 6021 control for as many as 6.


No, there was only ever a total of 5 functions available with the MM2 format (the original light function plus the additional 4 that the 6021 is capable of), later termed FX by Marklin, to distinguish it from mfx.


Originally Posted by: marklinist5999 Go to Quoted Post

When MFX debuted in 2005, with the first mobil, and central station, several more functions became the norm. Now we have up to 32 with the latest MS2 software, and CS3.


When mfx debuted it was capable of 16 functions. A later revision increased this to 32 functions. The mfx protocol uses a totally different data format on the rails to the MM (fx) data format.

Originally Posted by: marklinist5999 Go to Quoted Post

The ECOS 2 still utilizes Railcom, which MFX does not, but the latest ESU M4 decoders are both formats, so you don't really have to build a decoder, you can program empry ones if you wish, or buy them already so.
ESU and Marklin teamed up to develop the first central station, but then parted ways.


I would suggest that using an LDT decoder for the turntable or the DSD2010 decoder mentioned in the other thread would be an easier way to go. These emulate the Marklin decoder which the cs2 and cs3 know about and can go direct to a track when set up correctly.

Edited by moderator 17 October 2022 03:16:49(UTC)  | Reason: Fixed Quote tag which caused whole post to display as a quote.

thanks 1 user liked this useful post by kiwiAlan
Offline Papymouzot  
#5 Posted : 15 October 2022 16:23:34(UTC)
Papymouzot

France   
Joined: 15/10/2022(UTC)
Posts: 5
Location: Provence-Alpes-Cote-d'Azur, Roquebrune-Cap-Martin
Hi, the reason I wished to build a very simple MM decoder was to benefit from the difference the way the Marklin 7686 expect messages from the Ecos or any Marklin CS

With a DCC decoder setting in the Ecos for a Fleischmann turntable, if I want to rotate the "bridge" of the turntable by 180° The Ecos sends 24 messages "go to the next position" and each time The Fleischmann turntable stops at the next lane, waits, then restart. Each time it starts again there is a solenoid used to free the "bridge" which makes a loud "clac" noise. I looked if it was possible to remove the index mechanism which locks the "bridge" in place but then the gears are not precise enough to have a very good alignment of the rails with the "bridge" so it needs to be kept.

When (in the Ecos) the turntable is set to be a Marklin 7686, to go to the next lane the Ecos sends only one message. To go to the lane #N, it sends only two messages. When the decoder receives the two messages he can decide in which direction it needs to go to optimize the "jump" and also pull the index mechanism only once, start the "bridge" motor slowly, then fast, then slow down when it reaches the position, then release the index... Virtually no noise. Of course there is a need to count how many lanes we cross, so I will need to have a little system with magnets and a sensor to be added, but this is very easy. All this is impossible with any DCC or Motorola decoder.

Writing my own code can also enable me to control the polarity of the rails to avoid shorts... remember... 2 rails and not three.. And also enable me to add lights in the little motor compartment, add a beacon to indicate the bridge turns, have real stop & go lights on each side of the bridge....

However there is still an Issue which I don't know how to solve yet... The Fleischmann has 48 possible roads and the Marklin only has 24... And, of course, in the Ecos we can only configure 24 roads...

I hope there is a trick... to avoid stops at each road I need MM messages... The TT-Dec knows how to listen to Marklin messages and it can address the 48 lanes of the Fleischmann turntable, but I don't know how to configure the Ecos to make all work....
thanks 1 user liked this useful post by Papymouzot
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-2024, Yet Another Forum.NET
This page was generated in 0.384 seconds.