|
How Does SPROG II Work? |
|
|---|---|---|
|
Home Download FAQ Buy Contact |
OverviewSPROG II is a stand-alone programmer and controller, able to be used in a complementary manner to an existing DCC system, or on its own.
SPROG II gives you the ability to program DCC decoders using your computer without the need to move your computer to the railway room, or your existing DCC system to the computer room. SPROG II accepts commands from the computer port and formats them into DCC packets for programming of decoders or operating small layouts or DCC accessory systems. These commands are assembled by DecoderPro, the software used with SPROG. To use SPROG II with DecoderPro, simply follow the instructions supplied with the SPROG to install the software and hardware.
There is also information about using SPROG on the DecoderPro web pages; for SPROG hardware support.
How DCC Works, or How SPROG works with DCCThis is designed to be a very brief introduction to DCC and how it works, in order to give some more information about the SPROG II and its capabilities.
BasicsThe basic concept of Digital Command Control (DCC) is to control an item, most often a locomotive, by sending specific commands directly to that item. Thus the complete system consists of a message sender, a transmission method, and a message receiving device that can act upon the message.
So how does that all work?Command Station and Track Power featuresIn the DCC system, the command station supplies enough power to run the layout, and also the messages to all of the decoders on the layout. In DCC, track power is AC, where the voltage swings equally above and below 'zero' very rapidly reversing the polarity. A normal locomotive with a DC motor does not move with this kind of track voltage, and so needs a decoder and motor control electronics. The track power is also the carrier of the messages, which are sent by adjusting the length of time of the voltage swings. A message is made up of some "long" swings, and some "short" swings, controlled by the Command Station. Every message consists of an "address" and an "instruction", and many messages can be sent out sequentially by the command station, with instructions for many different deocders.Decoder FeaturesA DCC decoder comprises an AC to DC power converter, a computer that reads the raw power signal and identifies the messages, a set of parameters, and some number of power outputs capable of doing the job the decoder is designed for. Each decoder is configurable, and that is achieved through parameter settings known as Configuration Variables (CV).
Each CV has 8 bits, and so can have a range from 0 to 255. Most decoders have dozens of CVs, and some complex sound decoders have several hundred.
So what's "programming"?The decoder needs to have a unique "address", otherwise messages will be responded to by all the decoders connected, and chaos results!
Warning: this is not so far fetched as it might hopefully sound; as you will find out below, it is possible for this to happen!
How DCC Programming WorksProgramming in DCC can be done in one of two ways, frequently known as Service Mode or Program Track Mode and Operations Mode or Program-on-the-Main. SPROG is designed to work in one or the other of these modes within a given session, and needs to be switched from one mode to the other by shutting down the software and the SPROG. Service / Programming Track ModeIn the Programming Track mode, we work with only one loco or other decoder at a time. This enables the programming of all the parameters, controlled by the CV values. On the Programming Track, it is also possible to read back the values set in the decoder (Note: most - but not all - decoders support this read back). Read BackThis is how the SPROG - or every other command station - works, when reading decoders in the "Programming Track" mode.
It sends a question to the loco, or really to the decoder it suspects might be out there, to try to read a CV.
In "Paged" mode, a block of 4 CVs is read together, and for each CV this steps from 0 to 255, so takes some time if the answer is a large number.
So, the decoder has to be able to draw 60mA to reply; many sound-only or function-only decoders cannot do this,
but most power/motor decoders work just fine.
Note that if there is more than one decoder connected, the response could be from any decoder, and so it is not possible to get reliable read back in this situation. Also, some decoders can only be easily programmed "on the main"; a separate topic discussed briefly below. ProgrammingWhen programming, DecoderPro forms the message to send a value to a specific numbered CV. No addressing is used, and so if there is more than one decoder connected, the message will look as if it is for that CV in all decoders.
The SPROG takes that message, and sends the CV number, and the value to be written.
The SPROG expects to see an acknowledge (Ack) pulse (see above) to confirm that the program command was received and executed.
If it is seen, the program will move on to the next CV to program, but if it is not, the programming will retry.
Operations / Program-on-the-Main ModeOperations Mode is also called "Programming on the Main". To use it with SPROG II, you need to start up in a different mode.
When operating in this mode, SPROG II is no longer a service mode (programming track) programmer. When switching between modes, to ensure a clean reset shut down DecoderPro, power down the SPROG, then re-power the SPROG and restart DecoderPro in the other mode. You can connect to a small piece of track, as you would for Program Track mode, or - more usually - to the whole layout. Warning! never connect your SPROG to any other DCC Command Station, power device, booster, etc. or to any piece of track that might be connected to another source of power, DCC or DC. CVs may still be written in operations mode but the contents of CVs cannot be read back. You may now open multiple throttles, one for each loco you wish to control.
Use the power control in any of the throttles to turn the track power on or off. When track power is on, the SPROG Power light will flash on and off continually.
An additional SPROG feature in Command Station mode is the slot monitor which is accessed from the SPROG menu in the main DecoderPro window.
SPROG II should work with any DCC decoder conforming to NMRA standards. We have had few reports of any specific problems. We have had positive feedback that SPROG II definitely works with the following. However this is only a very partial list. We always appreciate further feedback of decoder types that have been tried and will add them to the list. NCESW9-SR D13SRP Lenz LE103XF LE1014 LE1025 Gold and Silver series, and mini Train Control Systems A1 M1 M3 TH141 SoundTraxx LL100LC DSD Tsunami Digitrax DN121 DZ123 DZ125 DZ143 DN163 series "drop ins" LokSound v3.5 micro QSI version 6 (Due to a decoder bug, CV1 cannot be read in direct mode) version 7 (now fully operational) MRC N 1645 and similar "plug and play" sound decoders N Challenger and Big Boy (SPROG II fully reads/programs these MRC decoders) |
|