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 walter__  
#1 Posted : 22 July 2014 18:12:42(UTC)
walter__

Belgium   
Joined: 30/12/2013(UTC)
Posts: 19
Location: Antwerp
Hi All,

We were working on a DIY locdecoder, which works rather nice, but only with MM2 commands.
They were used to do a low cost upgrade for old locs.. see our example rejuvenating an oldie
Recently we adapted the software to be used with the basic MFX commands, like speed and functions.
In order to add the feedback for programming and other extended communications, we would like to know if someone already did some research on the RDS topic, as it must be possible to do it software with minor external components.

Also should someone be interested in the progress we made, questions are welcome.

thanks,
Walter


thanks 1 user liked this useful post by walter__
Offline perz  
#2 Posted : 22 July 2014 23:33:34(UTC)
perz

Sweden   
Joined: 12/01/2002(UTC)
Posts: 2,578
Location: Sweden
I have made some experiments with picking up the feedback from a section supplied from a non-mfx-capable booster and retransmit it on the directly MS1-supplied section. See my article on my homepage: http://www.persmodelrailroad.com/mfx_boost.html. The feedback modulates the current consumption with approximately 130 mA, while the MS1 can detect variations down to approximately 13 mA. For a simple ping there is only the RDS carrier, and no data content, so that should be simple. I have not digged into the more complicated real data responses, but some hints can be found in Rainer Müller's description of the mfx protocol:

http://www.alice-dsl.net/mue473/mfxmenue.htm

Edited by user 03 August 2014 23:08:28(UTC)  | Reason: Not specified

thanks 2 users liked this useful post by perz
Offline walter__  
#3 Posted : 23 July 2014 13:33:50(UTC)
walter__

Belgium   
Joined: 30/12/2013(UTC)
Posts: 19
Location: Antwerp
@perz we exchanged some info a few month ago, after seeing your site I was already convinced that using a transformer was better than a resistor.
I took an interference suppressor coil from an old PC power supply and removed a coil counting the loops, then added a 1.5 mm² as primary.
Result is a 1 to 25 transformer which gave good signal.

trafo 1 to 25
For now I used a simple passive RC filter, but I ordered some RDS chips to further examine the signals after filtering 52.632 KHz

the final goal is to implement some encoder software with filter and modulator in the locdecoder ThumpUp

more info later
walter__ attached the following image(s):
trafo.jpg
thanks 1 user liked this useful post by walter__
Offline kiwiAlan  
#4 Posted : 03 August 2014 21:01:32(UTC)
kiwiAlan

United Kingdom   
Joined: 23/07/2014(UTC)
Posts: 8,339
Location: ENGLAND, Didcot


I am unable to reach this web site. Has it moved elsewhere?



Offline perz  
#5 Posted : 03 August 2014 23:12:50(UTC)
perz

Sweden   
Joined: 12/01/2002(UTC)
Posts: 2,578
Location: Sweden
Originally Posted by: kiwiAlan Go to Quoted Post


I am unable to reach this web site. Has it moved elsewhere?





Sorry, http://www.persmodelrailroad.net is down for the moment due to change of ISP. But all the content is also available at http://www.persmodelrailroad.com. I have edited my previous post.
Offline kiwiAlan  
#6 Posted : 05 August 2014 18:34:56(UTC)
kiwiAlan

United Kingdom   
Joined: 23/07/2014(UTC)
Posts: 8,339
Location: ENGLAND, Didcot
Originally Posted by: perz Go to Quoted Post
Originally Posted by: kiwiAlan Go to Quoted Post


I am unable to reach this web site. Has it moved elsewhere?





Sorry, http://www.persmodelrailroad.net is down for the moment due to change of ISP. But all the content is also available at http://www.persmodelrailroad.com. I have edited my previous post.


Ah, OK. Unfortunately that one doesn't have the mfx booster on it.

Thanks

Alan
Offline Moritz-BR365  
#7 Posted : 05 August 2014 23:35:15(UTC)
Moritz-BR365

Germany   
Joined: 02/04/2013(UTC)
Posts: 683
Originally Posted by: walter__ Go to Quoted Post
Hi All,

We were working on a DIY locdecoder, which works rather nice, but only with MM2 commands.
They were used to do a low cost upgrade for old locs.. see our example rejuvenating an oldie
Recently we adapted the software to be used with the basic MFX commands, like speed and functions.
In order to add the feedback for programming and other extended communications, we would like to know if someone already did some research on the RDS topic, as it must be possible to do it software with minor external components.

Also should someone be interested in the progress we made, questions are welcome.

thanks,
Walter

Hello Walter,
a great project to have such a basic decoder to reuse old AC motor locos without converting the motor to a DC motor! I would be interested in testing one...

Moritz
Offline walter__  
#8 Posted : 12 August 2014 21:16:29(UTC)
walter__

Belgium   
Joined: 30/12/2013(UTC)
Posts: 19
Location: Antwerp
Originally Posted by: Moritz-BR365 Go to Quoted Post
Originally Posted by: walter__ Go to Quoted Post
Hi All,

We were working on a DIY locdecoder, which works rather nice, but only with MM2 commands.
They were used to do a low cost upgrade for old locs.. see our example rejuvenating an oldie
Recently we adapted the software to be used with the basic MFX commands, like speed and functions.
In order to add the feedback for programming and other extended communications, we would like to know if someone already did some research on the RDS topic, as it must be possible to do it software with minor external components.

Also should someone be interested in the progress we made, questions are welcome.

thanks,
Walter

Hello Walter,
a great project to have such a basic decoder to reuse old AC motor locos without converting the motor to a DC motor! I would be interested in testing one...

Moritz


Hi Moritz,

With adding the MFX software we came into timing limits, to keep things stable we are moving from AtTiny4323@8MHz (internal) to AtMega88@16MHz (Xtal) also to accommodate the RDS feature later on..
While waiting for some chips to arrive from China, to do final testing, I expect the new PCB layout to be ready for fabrication just before our vacation, so it can be assembled and tested immediately after..
The timing on this is start October, if you like I can provide you one by then for beta-testing.. will keep you informed meanwhile

Walter
Offline bobyAndCo  
#9 Posted : 22 November 2024 13:31:10(UTC)
bobyAndCo

France   
Joined: 20/02/2024(UTC)
Posts: 7
Location: Bretagne
Hello everyone,

I am reviving this old thread, hoping that someone has made progress on the topic of RDS.

I successfully developed an MFX command station directly using the track protocol and a program running on the ESP32 (WiFi).

Here is a demonstration video:


The program is available here: https://github.com/BOBIL...ristophe/directMFX_ESP32

However, I am not very skilled in handling the feedback (RDS) from decoders, which is why I found this thread particularly interesting. Unfortunately, it seems incomplete as no electronic schematics were provided.

Could anyone help me with this?

Thank you in advance,

Christophe
Offline revmox  
#10 Posted : 24 November 2024 03:00:51(UTC)
revmox

Australia   
Joined: 26/05/2021(UTC)
Posts: 177
Location: Australia, East Maitland, NSW
Have you have seen the mention of RDS in the pdf document regarding the mfx protocol on Stefan Krauss's website? English and German versions available.


https://www.skrauss.de/

Offline bobyAndCo  
#11 Posted : 24 November 2024 14:30:10(UTC)
bobyAndCo

France   
Joined: 20/02/2024(UTC)
Posts: 7
Location: Bretagne
Hello,

Thank you for your response and for pointing me to Stefan Krauss's documentation. I am indeed familiar with his work, which has been instrumental in developing my MFX command station. However, while the document mentions RDS and describes its theoretical operation, it does not provide detailed information about the electronic implementation.

Specifically, I am looking for a clear electronic schematic or practical guidance on how to connect an RDS feedback circuit to an ESP32. For instance:

How to handle the PT2579-S chip for RDS decoding?
How to process the returned signals to ensure compatibility with an ESP32 input pin?
If you or anyone in the community has more information or examples of such an implementation, it would be incredibly helpful.

Thank you again for your time and support!

Best regards,

Christophe
Offline kiwiAlan  
#12 Posted : 24 November 2024 16:47:35(UTC)
kiwiAlan

United Kingdom   
Joined: 23/07/2014(UTC)
Posts: 8,339
Location: ENGLAND, Didcot
Originally Posted by: bobyAndCo Go to Quoted Post
Hello,

Thank you for your response and for pointing me to Stefan Krauss's documentation. I am indeed familiar with his work, which has been instrumental in developing my MFX command station. However, while the document mentions RDS and describes its theoretical operation, it does not provide detailed information about the electronic implementation.

Specifically, I am looking for a clear electronic schematic or practical guidance on how to connect an RDS feedback circuit to an ESP32. For instance:

How to handle the PT2579-S chip for RDS decoding?
How to process the returned signals to ensure compatibility with an ESP32 input pin?
If you or anyone in the community has more information or examples of such an implementation, it would be incredibly helpful.

Thank you again for your time and support!

Best regards,

Christophe


Note that Marklin use an RDS chip in the ms1 to receive the mfx feedback, but that is the only place I am aware that an actual chip is actually used. The clocking rate for the chip is NOT standard RDS clocking rate. On the ms1 the RDDA and RCCL signals are used to transfer the data to an SPI port on the microprocessor.

You should be able to work out how to emulate the PT2579 from its data sheet. I would expect most modern microprocessors would do that pretty easily, especially if one with DSP capability is used, such as a dsPIC33 family device from Microchip.

Offline bobyAndCo  
#13 Posted : 24 November 2024 17:42:43(UTC)
bobyAndCo

France   
Joined: 20/02/2024(UTC)
Posts: 7
Location: Bretagne
Hello and thank you for your reply.

First of all, it should be noted that Märklin still uses the PT2579 component in its command stations, including in more recent models like the MS2 (I opened an MS2 to confirm this).

UserPostedImage

When searching for a dedicated component, my goal was to avoid the need for software-based filtering. I am using an ESP32, which is not particularly optimized for complex DSP tasks. Indeed, for operations such as intensive real-time filtering or frequency analysis, its performance can be somewhat limited.

Additionally, the processor of the ESP32 in my command station is already heavily utilized by the track signal encoding, which relies on a 50 µs timer. This leaves little room to efficiently handle a fully software-based solution for processing feedback signals.

That being said, I appreciate your suggestion. Exploring a software approach remains an interesting option, and it could be feasible if I were to add a dedicated microcontroller, such as an ATmega or an ATTiny, to the command station to offload this task.

For now, however, I am prioritizing the use of a dedicated component, such as the PT2579, TDA7330, or TSA5511, which could greatly simplify the process.

Thank you in advance to anyone who can provide additional information or share their experiences.

Christophe
Offline bobyAndCo  
#14 Posted : 24 November 2024 19:23:15(UTC)
bobyAndCo

France   
Joined: 20/02/2024(UTC)
Posts: 7
Location: Bretagne
Here's a diagram that seems to fit the bill exactly. It is specifically intended for RDS / MFX.

https://siggsoftware.ch/...uploads/2016/12/mfxi.pdf

The components are obsolete and hard to find. However, I did manage to find some LC72725KVs at Mouser: https://www.mouser.fr/Pr...rdj3vZrUHkd4SqtCFg%3D%3D

Does anyone have an opinion on this schematic?

Christophe

Translated with DeepL.com (free version)
Offline revmox  
#15 Posted : 01 December 2024 23:58:28(UTC)
revmox

Australia   
Joined: 26/05/2021(UTC)
Posts: 177
Location: Australia, East Maitland, NSW
Here’s where I got to with RDS testing before stopping to think about a move to DCC. It’s an old school analogue approach to the problem.

RDS detector.jpg

MFX feedback frequency is 52.63kHz (4Mhz/57).

PLL components were selected for a capture BW of 12% for inputs >=200mV p-p at the PLL input pin, this is the nominal operating condition for the PLL. Measured BW in practice at roughly 7kHz. 10k trimpot is adjusted to centre the response – see below.

BW is narrower at lower levels with about 70mV p-p being the lower limit for locking for both sine and square waves, BW is a little over 2kHz at this level. The high pass preamplifiers give a lower lock limit of <5mV p-p at the reduced BW and the full 7kHz BW for inputs >10mV p-p.

High pass filtering is used to couple each stage with each set for an Fc of around 36kHz. Signal is not attenuated at 80kHz, about 2dB down at 52kHz, about 20dB at 10kHz. A much fancier filter could certainly be used but I find them unpredictable with transient waveforms. Pick up is by toroidal current transformer.



To align the detector circuit, if you don’t have a signal generator, you can use a UNO’s hardware timer 0 to generate a precise RDS carrier frequency. Use a couple of resistors to drop the signal to a useful level. Also, using a bridge, MOSFET and a resistor you can superimpose an RDS carrier signal on the Marklin track current for testing.

Chip datasheets and .ino here

https://mega.nz/folder/U...A#xyaaqkKX0ypSpaHtTKZENw
Users browsing this topic
OceanSpiders 2.0
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.885 seconds.