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 oldieRecently 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
|
 1 user liked this useful post by walter__
|
|
|
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.htmEdited by user 03 August 2014 23:08:28(UTC)
| Reason: Not specified
|
 2 users liked this useful post by perz
|
|
|
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.  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 more info later walter__ attached the following image(s):
|
 1 user liked this useful post by walter__
|
|
|
Joined: 23/07/2014(UTC) Posts: 8,467 Location: ENGLAND, Didcot
|
Originally Posted by: perz  I am unable to reach this web site. Has it moved elsewhere?
|
|
|
|
Joined: 12/01/2002(UTC) Posts: 2,578 Location: Sweden
|
|
|
|
|
Joined: 23/07/2014(UTC) Posts: 8,467 Location: ENGLAND, Didcot
|
Originally Posted by: perz  Ah, OK. Unfortunately that one doesn't have the mfx booster on it. Thanks Alan
|
|
|
|
Joined: 02/04/2013(UTC) Posts: 683
|
Originally Posted by: walter__  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 oldieRecently 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 |
|
|
|
|
Joined: 30/12/2013(UTC) Posts: 19 Location: Antwerp
|
Originally Posted by: Moritz-BR365  Originally Posted by: walter__  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 oldieRecently 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
|
|
|
|
Joined: 20/02/2024(UTC) Posts: 23 Location: France - 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_ESP32However, 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
|
|
|
|
Joined: 26/05/2021(UTC) Posts: 198 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/
|
|
|
|
Joined: 20/02/2024(UTC) Posts: 23 Location: France - 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
|
|
|
|
Joined: 23/07/2014(UTC) Posts: 8,467 Location: ENGLAND, Didcot
|
Originally Posted by: bobyAndCo  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.
|
|
|
|
Joined: 20/02/2024(UTC) Posts: 23 Location: France - 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).  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
|
|
|
|
Joined: 20/02/2024(UTC) Posts: 23 Location: France - Bretagne
|
|
|
|
|
Joined: 26/05/2021(UTC) Posts: 198 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.  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
|
|
|
|
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.