SRCP

ContentCommand StationsSRCP

SRCP= Simple Railroad Command Protocol


Preface

Look in the Supported Controllers which SRCP Command Stations are supported.
The choice between version 0.7 and 0.8 is done automatically and depends on the welcome message send on connect by the SRCP server.


Implemented version

The Rocrail implementation is based on SRCP 0.8.3.


Protocol

Setup SRCP 0.7



To setup a SRCP 0.7.3 Server connection you have to fill in the ports 12345 to 12347 as you can see above. Your digint section in the rocrail.ini should look like this:

<digint iid="srcp-1" lib="srcp" host="localhost">
  <srcp cmdport="12345" fbackport="12346" infoport="12347"/>
</digint>

The Interface ID can be chosen by yourself, it makes sense to give things a name.
Hostname is either “localhost” if the srcp server runs on the same computer as Rocrail or an IP Address of a Machine with the srcp server or a Hostname of a machine with the srcp server ( only if you use Name resolution in you network).


Setup SRCP 0.8



The Interface ID can be chosen by yourself, it makes sense to give things a name.
Hostname is either “localhost” if the srcp server runs on the same computer as Rocrail or an IP Address of a Machine with the srcp server or a Hostname of a machine with the srcp server ( only if you use Name resolution in you network).
SRCP 0.8.2 uses only the commandport. The standard port number is 4303.
Your digint section should look like this.:

<digint iid="srcp-1" lib="srcp" host="localhost">
  <srcp cmdport="4303"/>
</digint>

At the Busses tab you can select the bus numbers for the supported Bus types.

  • GL = Generic Loco
  • GA = Generic Asessiore
  • FB = Feedback

If you want to setup the SRCP buses check this: http://www.rocrail.net/doc/rocrail-wrappers/wrapper-en.html#srcp

In the welcome message of your SRCP Server should be explained what bus numbers are used.

Remember that the “Bus” field in the interface tab of locos, feedbacks, turnouts and…. has nothing to do with SRCP. It is only for Selectrix. If you insert other numbers than “0” for SRCP the communication may fail.


Software:

You can connect any srcp0.7.3/0.8.2 compatible SRCP Server such as SRCPD, DDW or the not longer maintained erddcd.

Hardware:

In most cases you need an old PC with a serial port for DCC / MM signal generation, a lpt port to connect your S88 Sensors and of course a network card. Take a look at your SRCP Servers manual to make shure you are using the right bus numbers.

Connecting the LPT to the s88 bus:

PC (SUBD-25) s88-Modul (Pin 1 is black marked) ELEKTOR-Module (DIN-Connector)
2 3 (clock) 4 (clock)
3 4 (load) 1 (load and reset)
4 5 (reset)
10 1 (data) 5 (data)
18 2 (GND) 2 (GND)
6 (+5V) 3 (+5V)

For detailed Informations take a look at: How to connect your Feedback Sensors to the PC's LPT Port

Connecting the RS232 to a booster:

For Informations how to connect several Boosters take a look at : Connection Diagrams

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 Tables-Locomotives and select the loco you want to change. Klick on the Interface Tab and change the following settings:

  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!


Personal Tools