ddx-en
Differences
This shows you the differences between two versions of the page.
ddx-en [2018/11/12 08:56] – external edit 127.0.0.1 | ddx-en [2020/05/04 22:04] (current) – removed rjversluis | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ======DDX | ||
- | [[: | ||
- | |||
- | [[english|Content]] -> [[english# | ||
- | \\ | ||
- | | Before investing time and having a lot of frustration with this ' | ||
- | | The DDX library is no longer maintained with the exception of crash/bug fixing. -> **Deprecated** |\\ | ||
- | |||
- | |||
- | \\ | ||
- | |||
- | =====Only for Linux 2.6 and Windows XP===== | ||
- | DDX is supported on the following Operating Systems: | ||
- | * Linux 2.6 kernel (Rocrail/ | ||
- | * Windows **XP**, 32 bit, only :!: | ||
- | |||
- | |||
- | |||
- | \\ | ||
- | |||
- | =====Features===== | ||
- | * Full Rocrail support | ||
- | * Supports both the **NMRA DCC** and the **Märklin/ | ||
- | * **Linux** and **Windows** | ||
- | * Up to four s88 chains on the parallel port. | ||
- | * Compatible with **[[ord-1-en|ORD-1]]** | ||
- | * Low CPU demands | ||
- | * No extra process to start | ||
- | * Without protocol overhead for better response time. | ||
- | * DCC features: | ||
- | * Programming Track support for setting and reading CV's | ||
- | * Short and long address | ||
- | * 14, 28 or 127/128 speed steps | ||
- | * 12 functions | ||
- | |||
- | \\ | ||
- | =====Draw backs===== | ||
- | * DDX is not able to deliver the quality of real Command Stations and problems can be expected using it. | ||
- | * See: **[[# | ||
- | * The UART of the PC is not designed to generate signal that fits 100% to the NMRA standards. Due to this there are **[[# | ||
- | * S88 is not 100% reliable because of the long wires between the chips which is not covered by the specs of the manufacturer of the chips. | ||
- | * Mobile decoders could react delayed on commands generated by DDX. | ||
- | * No further development nor team support is planned. (Deprecated) | ||
- | |||
- | \\ | ||
- | |||
- | =====S88 Feedback===== | ||
- | The s88 chains, up to four, are connected to the parallel (printer) port. | ||
- | All chains are parallel scanned, so distribute the sensor modules over these four ports for better performance. | ||
- | |||
- | ====S88 (flat) addressing==== | ||
- | * chain 0 starts with sensor 0 | ||
- | * chain 1 starts with sensor 496 | ||
- | * chain 2 starts with sensor 992 | ||
- | * chain 3 starts with sensor 1488 | ||
- | |||
- | \\ | ||
- | |||
- | =====Setup===== | ||
- | Nodes, attributes and values are explained here: [[http:// | ||
- | All parameters are possible to set from [[rocrailini-controller-en# | ||
- | |||
- | |||
- | ==== Activating PT ==== | ||
- | If the LPT is connected to the ORD-1 the PT must be activated before programming. See: **[[: | ||
- | |||
- | ==== Locomotive Decoders ==== | ||
- | Advised is to program the locomotive decoder, **CV29**, to run **only** in **digital** operation.\\ | ||
- | Under certain conditions the track power is still high without digital modulation which will let run the locomotives in conventional operation if the CV29 is left to its default. | ||
- | |||
- | ==How to setup 128 speed steps with DCC Decoders== | ||
- | First of all you have to tell the loco decoder that he has to listen at 28 / 128 drive steps. So let's program Bit 2 of CV29 with the Value 1: CV29 = 2 | ||
- | After that we have to tell Rocrail how to send data to the loco. | ||
- | Klick on // | ||
- | 1. Protocol Version: You have to change the protocoll Version from 1 to 2 because Version 1 supports only 14 and 28 decoder steps. 128 steps are availible with Version 2 only. | ||
- | 2. Decoder Steps: here you have to select the decoder steps. Insert 128 for a smooth driving locomotion. | ||
- | |||
- | Some Lenz decoders may only able to recognize 14, 27 and 127 steps. | ||
- | Be sure that your Decoder is able to handle 128 speed steps. If you're not ask your local Dealer or the manufactorer of your Decoder. | ||
- | |||
- | This was tested with SNAPSHOT svn 704 and DDL.so. It was also tested with erddcd-v1.61-svn254 and SRCP V0.7. | ||
- | |||
- | :!: **Do not use with SRCP 0.8.x because it means long addresses instead of 128 speed steps!** | ||
- | |||
- | {{: | ||
- | |||
- | ==Train runs without digital signal when starting DDX== | ||
- | When using DDL you must program the locdecoders to ignor analog signal. | ||
- | Mostly CV29, but check your decoder manual! | ||
- | |||
- | |||
- | \\ | ||
- | |||
- | ====Serial port==== | ||
- | For best result, use legacy serial port, i.e. ttyS0-4 (Linux) Com1-4 (Windows) on address 0x3F8, 0x2F8, 0x3E8, 0x2E8.\\ | ||
- | {{ddx-gen-en.png}}\\ | ||
- | If the address is none standard it can be overwritten by setting the **Port base** to the one reported by the OS, in all other cases leave zero.\\ | ||
- | ===dmesg | grep tty=== | ||
- | < | ||
- | serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A | ||
- | 00:08: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A | ||
- | 0000: | ||
- | 0000: | ||
- | </ | ||
- | \\ | ||
- | It may work with USB2Serial adapter. To work properly for Märklin/ | ||
- | |||
- | | Chip | Linux 2.6.22 | Windows XP, chip manufacturers driver| | ||
- | | FTDI2232 | DCC only (6-bit transfers not supported by the hardware) | ||
- | | Prolific 2303 | DCC only, transmitter empty detection not working in driver || | ||
- | |||
- | |||
- | ====Parallel port==== | ||
- | {{ddx-s88-en.png}}\\ | ||
- | \\ | ||
- | Formerly was only legacy parallel port supported on legacy addresses, i.e. '' | ||
- | |||
- | From rev. 2386 the dialog support the input of __all possible__ port addresses. | ||
- | |||
- | To disable S88 completely set the port address to " | ||
- | |||
- | To use the parallel port under Unix-like operating systems, rocrail server has to be run as root. | ||
- | |||
- | :!: For LPT in the BIOS setup the Plug and Play must disabled and the ECP/EPP mode must be set.\\ | ||
- | \\ | ||
- | |||
- | ==== Details ==== | ||
- | {{ddx-details-en.png}}\\ | ||
- | |||
- | === Fast CV Get === | ||
- | Check this option when using a real RS232 interface to get a faster CV reading.\\ | ||
- | |||
- | === Check TX === | ||
- | Reduce light flickering when using a real RS232 interface.\\ | ||
- | ====Protocols==== | ||
- | DCC on = Enable DCC locos and accessory | ||
- | |||
- | MM on = Enable MM locos | ||
- | |||
- | MMA on = Enable MM accessory | ||
- | |||
- | MMLP on = Enable MM long packet pause | ||
- | |||
- | ^ :!: If more then one protocol is selected, then its necessary to setup the // | ||
- | \\ | ||
- | |DCC | MM | MMA | Working mode | Note | | ||
- | | On | | ||
- | | On | On | | MM locos, but only DCC accessory decoders, like opendecoder | DCC idle data | | ||
- | | On | On | On | Mixed mode | DCC idle data | | ||
- | | On | | On | DCC + MM accessory | DCC stream only interrupted by accessory changes | | ||
- | | | On | On | Legacy MM mode | No DCC idle data | | ||
- | |||
- | //Note: Before svn 2483, please have all enabled.// | ||
- | |||
- | \\ | ||
- | =====Direct I/O===== | ||
- | Make sure that the used RS232 serial port is suited for generating an accurate digital signal; Not all ports can handle the demands.\\ | ||
- | ====Linux==== | ||
- | To use the full and unlimited features of DDX under Unix-like operating systems (also under Linux), rocrail server has to be run as root. | ||
- | |||
- | ====Windows==== | ||
- | To run rocrail with DDX on Windows NT/2000/XP, you need to install the:\\ | ||
- | [[http:// | ||
- | ===Alternative downloads: | ||
- | * http:// | ||
- | * http:// | ||
- | |||
- | By using Windows7 (32bit), you have to install the device driver in safe mode. | ||
- | |||
- | ====Motorola==== | ||
- | The MM format needs special timing which uses busy wait loops to achieve the precise timing needed. On Windows, the high resolution timer is used. On Linux, nanosleep is used. Those timing functions requires hardware found in Pentium processors or better (486 will not work...). | ||
- | |||
- | ====Refresh==== | ||
- | The command latency for a single command issued when idle is approx 0-50ms (it may have to wait for a refresh packet (25ms) and idle data (25ms) to end). | ||
- | * DCC only, one loco is refreshed approx every 50ms. | ||
- | * MM only, one loco is refreshed approx every 375ms (this requires 5 packets, 1 speed and 4 FX packets, 25ms idle data is sent between packets). | ||
- | * DCC + MM, one DCC loco and 25ms idle data is sent between every MM refresh packet. A complete MM loco refresh cycle will then take approx 500ms. | ||
- | |||
- | ===Remark: | ||
- | >If only the **MM** protocol is chosen, so occures a high CPU load or the PC is slowing down. | ||
- | >Some users are reporting that this is solved under Windows by __additional__ activating the **DCC** protocol. | ||
- | |||
- | \\ | ||
- | |||
- | =====Recommended Hardware===== | ||
- | **[[ord-1-en|ORD-1]]** | ||
- | |||
- | This software module, as well as the programs SRCPD and DDW, are descendants to erddcd (aka. Digital Direct for Linux). Hardware that works with erddcd, SRCPD or DDW will work with DDX. | ||
- | The programming track control and feedback is tailormade for ORD-1, but may work with similar hardware. | ||
- | The old S88 interface for MrDirect is not compatible with DDX (but recent versions of MrDirect supports our kind of S88 interface). | ||
- | |||
- | |||
- | |||
- | =====Motorola Protocol specifics===== | ||
- | ^ version ^ address range ^ speed steps ^ functions ^ Remark ^ | ||
- | | 1 | 255 | 15 | 0 | Very old decoders, no absolute loco direction. Only 80 addresses are supported by legacy Märklin decoders. | | ||
- | | 2 | 80 | 15 | 4 | Safe bet for most MM-compatible decoders. | | ||
- | | 3 | 255 | 28 | 4 | Newer decoders (MFX+MM) seems to understand the 28 speed steps. Also used for Wikinger decoder. | | ||
- | | 4 | 255 | 15 | 4 | Extended address range (Uhlenbrock?, | ||
- | | 5 | - | 28 | - | Allows 28 speed steps by sending 2 times the version 2 package with different speed... (Do not ask me what kind of decoder this is for. I have not got any decoder that support this.) | | ||
- | |||
- | |||
- | |||
- | |||
- | =====NMRA DCC Protocol specifics===== | ||
- | * Both short and long addresses. | ||
- | * 14, 28 and 127/128 speed steps. | ||
- | * Up to 12 functions. (28 functions in version 1.3) | ||
- | * CV-programming and CV-read on programming track | ||
- | * CV-programming on the main track (POM) | ||
- | |||
- | ==== NMRA Documents ==== | ||
- | * [[http:// | ||
- | * [[http:// | ||
- | =====Black/ | ||
- | :!: This list is user defined and does not guarantee that it works 100%, and there is no official support in the Forum. On the long run some decoders could have problems with the digital signal quality.\\ | ||
- | |||
- | ====DCC==== | ||
- | ^ Brand ^ Name ^ Type ^ Link ^ Status ^ Comment ^ | ||
- | | Rocrail | all DCC decoders DIY | stationary decoder |http:// | ||
- | | Lenz | Silver Mini | loco decoder | http:// | ||
- | | Lenz | Gold Mini | Loco Decoder | http:// | ||
- | | Lenz | Gold | Loco Decoder | http:// | ||
- | | Lenz | Gold Maxi| Loco Decoder | http:// | ||
- | | Lenz | LE1014 | Loco Decoder | http:// | ||
- | | Kuehn | N025 | loco decoder | http:// | ||
- | | Kuehn | N045 | loco decoder | http:// | ||
- | | Kuehn | T125/T145 | loco decoder | http:// | ||
- | | Kuehn | T65 | loco decoder | http:// | ||
- | | Tams | LD-G 33 | locdecoder+railcom | http:// | ||
- | | Tams | LD-G 32 | locdecoder+railcom | http:// | ||
- | | Tams | LD-G 8 | loco decoder | http:// | ||
- | | Tams | LD-G 21 | loco decoder | http:// | ||
- | | Tams | LD-G 5 | loco decoder | http:// | ||
- | | Tams | FD-R | functdecoder+railcom | http:// | ||
- | | Tams | WD-34 | stationary decoder | http:// | ||
- | | Wedi | 8 port DCC servo decoder DIY | stationary decoder | http:// | ||
- | | LDT | S-DEC-4-DC | stationary decoder | http:// | ||
- | | LDT | SA--DEC-4-DC-F | stationary decoder | http:// | ||
- | | LDT | SA--DEC-4-DC-B | stationary decoder | http:// | ||
- | | LDT | M-DEC-DC | stationary decoder | http:// | ||
- | | MBTronik | WA5 Servo decoder | stationary decoder | http:// | ||
- | | CT Elektronik | DCX 51-2 | loco decoder | http:// | ||
- | | CT Elektronik | DCX 70-2 | loco decoder | http:// | ||
- | | CT Elektronik | DCX 74 | loco decoder | http:// | ||
- | | CT Elektronik | DCX 74D/N | loco decoder | http:// | ||
- | | CT Elektronik | DCX 75 | loco decoder | http:// | ||
- | | CT Elektronik | SL51-3 | sound-loco decoder | http:// | ||
- | | CT Elektronik | DCX 32 | function decoder | http:// | ||
- | | CT Elektronik | DCX 33 | function decoder | http:// | ||
- | | Zimo | MX 63 | loco decoder | http:// | ||
- | | Zimo | MX 64 | loco decoder | http:// | ||
- | | Zimo | MX 620 | loco decoder | http:// | ||
- | | Zimo | MX 630 | loco decoder | http:// | ||
- | | Zimo | MX 631 | loco decoder | http:// | ||
- | | modelleisenbahn-claus | S8-DCC | servo decoder | http:// | ||
- | | Digitalbahn | Sven Brandt' | ||
- | | ESU | LokPilot V4.0 | loco decoder | http:// | ||
- | | ESU | LokPilot V3.0 DCC | loco decoder | http:// | ||
- | | ESU | LokSound V3.5, | loco decoder | http:// | ||
- | | ESU | LokPilot Basic | loco decoder | http:// | ||
- | | Uhlenbrock | 76200 | loco decoder | http:// | ||
- | | Uhlenbrock | 76420 | loco decoder | http:// | ||
- | | Uhlenbrock | Intelli Drive Comfort 76320 | loco decoder | http:// | ||
- | | Rautenhaus | RMX990 | loco decoder | http:// | ||
- | |||
- | |||
- | ====MM==== | ||
- | ^ Brand ^ Name ^ Type ^ Link ^ Status ^ Comment ^ | ||
- | | ESU | LokPilot V4.0 | loco decoder | http:// | ||
- | | Märklin | c80 (6080) | loco decoder | - | OK | works well | | ||
- | | Märklin | FX-Decoder (60760) | loco decoder | - | OK | Version 5, 28 Steps | | ||
- | |||
- | |||
- | \\ | ||
- | =====Trouble shooting===== | ||
- | ====MM Stationary decoders==== | ||
- | If the decoder does not react on commands it could be fixed by change pole.\\ | ||
- | The output of the ORD-3 is electrically different compared with the ORD-1.\\ | ||
- | |||
- | ====Windows 8==== | ||
- | Under Win 8 trouble is possible, if a booster needs the RS232 handshakes DTR and/or RTS.\\ | ||
- | The forum thread http:// | ||
- | \\ | ||
- | |||
ddx-en.1542009373.txt.gz · Last modified: 2018/11/12 08:56 by 127.0.0.1