User Tools

Site Tools


users:eporocrail:testing-en

TESTING



To get enough debug information from Rocrail the right trace level has to be chosen in Rocrail.
Tabel: Rocrail properties - tab Trace, “Monitor” and “Information” have to be selected.

For testing the MQTT broker “Mosquitto” needs to be installed. A separate page contains the procedure to install Mosquitto on the Raspi next to Rocrail.

During testing it is helpful to connect the decoder with the USB cable to your computer and open the serial monitor of the Arduino IDE. Configure the software via the Eltraco configuration website. On the website, select "on" for “display debug messages on serial monitor”. Booting the decoder provides you now with information about the actions performed by the decoder. The software is made in such a way that all outgoing messages are coming back into the decoder and are shown in the serial monitor. The message that was sent is displayed as “Publish msg . . . . .”. The same message is received as “Msg received . . . . ”.

Turnout decoder


Allocate an unused IP-address to the decoder. Compile and load the software into the decoder. Configure the software via the Eltraco configuration website. Initiate the turnouts in Rocrail. Connect two spare servos to the turnout decoder. Activating the turnout symbol in Rocview should cause movement of the servo. The sensor representation in Rocview should change colour. The related messages are displayed in Rocview. In the serial monitor in and outgoing messages are displayed.





Testing the occupation sensors of the turnout decoder is a bit more complicated. Assuming an isolated test environment and no track layout at hand an AC Voltage of about 15V is needed. Connect this voltage with the correct two pole connector to the connector on the PCB marked “DCC_RED”. Hold a resistor of about 5k6 between the outer pins of the three pole connector(TO1-A, TO1-B, TO2-A, TO2-B) for the turnout. “TO-1” relates to the first turnout and “TO2” to the second. “A” or “B” relates to which pole of driving current is switched to which contact in the not activated position(normal position) of the relays. This provides the way to distinguish between left or right turnout. If “A” suits a left turnout than “B” suits a right turnout.

Sensor decoder


Allocate a free IP-address to the sensor decoder e.g. “192.168.1.31”. Compile and load the software into the decoder. Configure the software via the Eltraco configuration website. Initiate the decoder in Rocrail. Connect a spare hall sensor to the digital sensor connectors of the PCB consecutively to activate each digital sensor or simply connect the two outermost pins of the sensor connector on the sensor decoder PCB with each other. The sensor symbol should change colour by activation/de-activation of the attached “sensor”. The analogue sensor is made available on the PCB . The exact use is up to the user to create. So testing at this stage is not useful.

Switch decoder


Allocate a free IP-address to the sensor decoder e.g. “192.168.1.31”. Compile and load the software into the decoder. Configure the software via the Eltraco configuration website. Initiate the decoder in Rocrail. Connect an LED with two pole connector to the output connectors on the decoder. The “+” side of the LED to the +pin(right most pin) of the connector. The position “5V” requires a jumper. The use of the jumper is to connect the power on the output connectors with the 5 dc-dc converter on the decoder. If required the module can easily be adapted to switch external power to the output connectors via the jumper(refer to the circuit diagram). Pushing the push button symbols in Rocview should illuminate the related LED.

Test completed succesfully


When the decoders passed the tests, they are ready for use. The only thing which has to be done is, providing them with the correct network settings and decoder details by configuration via the Eltraco configuration website.

Servo adjustment


For the turnout decoders both angles of the servo(s) have to be adjusted. After installation of a servo underneath the baseboard this has to be done. Use the configuration webpage as described before.


Have fun and look into these user pages later on again for further additions to Eltraco!

users/eporocrail/testing-en.txt · Last modified: 2018/11/12 08:56 (external edit)