Jump to content

FAQ - My controller connection with RailMaster is unstable or not recognised.


Guest Chrissaf

Recommended Posts

This tutorial covers two related issues.

  1. The controller is not recognised at all by RailMaster.
  2. The controller connection with RailMaster is not stable and keeps dropping.

RailMaster is written in Microsoft Visual Basic 6 for Windows XP. This means that USB device handling is not as 'plug n play' as you find in devices that are native to Windows 10. You probably just need to go into the Windows 10 Device Manager and more specifically RailMaster configuration screens and manually configure the eLink [or Elite] connections. The most common reason for the controller connection being unstable is usually related to the contents of the “railmaster.ini” file

This tutorial will focus primarily on the Hornby eLink controller. This controller uses the same Windows driver as the Hornby Elite. There are, however, some RailMaster configuration settings that are different between the two controllers and these are highlighted where necessary in this tutorial. Thus this tutorial can be used for either the eLink or the Elite controller.

First thing first.

Do not have RailMaster running.

Open Windows 'Device Manager’ [you will find D.M in your Windows 10 Control Panel].

Whilst monitoring D.M, plug in the eLink [or Elite] controller into your USB port.

Does D.M then show this following entry [yellow highlight].

forum_image_610e6d4d8157c.png.751b216c2be9575cb83978691d3a60d3.png

If it does then that proves that your controller is being detected and the driver has been loaded into Windows correctly. In which case ignore the next section below and move on to the 'What to do in RailMaster' section of this tutorial.

If it does not show the highlighted entry [note that the COM4 number may be another number such as for example COM3, COM5, COM6 etc], then the driver has not been loaded yet.

Instead of "USB Serial Port (COMx)" does the entry display "R8214 Hornby Elite (COMx)" [Note that this Hornby driver is the same for an eLink]

If it does, then you have installed the wrong driver. This driver is meant for Windows XP and Vista ONLY. This driver then needs to be completely uninstalled [including the deletion of the Driver SYSTEM file] and the correct driver installed from Microsoft.

Note that to install the Microsoft driver you need to see the Windows plug n play 'Install driver' dialogue appear. If a Microsoft driver is not automatically installed, then you have to select the 'Search Microsoft' option in any dialogue boxes that open. You can usually force the 'plug n play' dialogue to appear by plugging into a different USB port.

Instead of "USB Serial Port (COMx)" does the entry display "CDC RS-232 Emulation Demo". If it does then you are only through the first half of correctly installing the controller Windows 10 driver and more tasks need to be performed to complete the driver installation.

Right click the "CDC RS-232 Emulation Demo" entry and choose "Update Driver Software"

Then in the next pop-up window choose "Search automatically for updated driver software".

Follow any on screen prompts and the "CDC RS232 Emulation Demo" entry should disappear to be replaced by "USB Serial Port (Com x) where x is the assigned com port number in the device manager "Ports (COM & LPT)" section.

Once you get to the stage where Device Manager is displaying 'USB Serial Port (COMx)" where x is a number. Then take a note of the COMx number and move onto the next step below.

What to do in RailMaster.

Start RailMaster, ignoring and cancelling any error messages that might appear.

Open the 'System Setting' screen in RailMaster.

Note that if the 'Controller A' pull down box shows 'Hornby eLink' [or Elite] text with a 'pink' background to the text, then this 'pink' background indicates that there is still a controller communication issue to resolve. Another indicator that there is an issue with RailMaster not seeing the controller correctly, is that the controller icon in the top right of the RailMaster main screen is ‘faded out’ and not the bright green as shown for the ‘Internet’ icon to the left of the controller icon in the image below.

Faded out controller icon shown highlighted in green box below: 

forum_image_610e6d4e71216.png.8dede5a55949b447729dfb9e6058f77c.png

System Settings screen.

forum_image_610e6d4f422f5.png.2000231eb4f29ba1ec3b0fa72e5200e2.png

Ensure that Controller B is 'none' and that Controller A has the entries as shown in the image. Make sure that the Com number highlighted in yellow has the COMx number that matches the one displayed in Windows Device Manager.

Note that the Elite should have 19200 instead of 115200 displayed.

Click the green tick to save settings, then close and restart RailMaster and if all is well, the eLink [or Elite] should now be detected without any error messages and be stable in its connection.

If it isn't recognised or the connection isn’t stable, then even more RailMaster configuration work is required.

In RailMaster, open the 'Help Screen'. In the lower left corner is a small bluish COG. Click it and follow the on-screen prompts to open the ‘railmaster.ini’ file editor.

First things first

How many entry lines do you see in the .INI file. There should be about 30 to 40 lines of text. If there are less than that say about 6 to10, then your .INI file is corrupted, preventing correct controller detection and you need to re-generate a new .INI file.

Generating a fresh new "railmaster.ini" file:

  1. Download the latest installer from the link at the top of the forum RailMaster & TrackMaster index section.
  2. With RailMaster not running. Delete your current 'railmaster.ini' file from the RailMaster program folder (it is important to delete this file, else a new replacement file will not be generated and the old .INI file will still be used).
  3. If not already. Connect your eLink [or Elite] to the PC and power it up so that the driver loads in Device Manager.
  4. Run the downloaded "rm_setup.exe" file by right clicking the 'rm_setup.exe' file and choosing 'Run as administrator'. A new .INI file should then be generated. Do not uninstall the previously installed version of RailMaster. Just run the ‘installer’ over the top of the previous RM installation.
  5. Restart RailMaster, ignore any error messages that might appear, just close them and go straight to the .INI file editor.
  6. Open the new .INI file in edit mode using the COG icon as per my earlier text in this reply and confirm that the file contains about 30 lines or more.
  7. Make the edits to the file as documented below.


 Once you have a complete .INI file with the full number of lines displayed.

  • Open the .INI file editor [bluish COG icon in the lower left of the RailMaster 'Help Screen'].
  • Look for the line "Reset eLink on Start =1"
  • Change it to "Reset eLink on Start=0"
  • Look for the lines "Check controller=1" & "Alternative comms=1" [these two lines may have =0 values].
  • Delete them.
  • Type them again as the very last two lines in the file with =1 values for an eLink.
  • Save the edits, close and restart RailMaster.

If you have an Elite and not an eLink. Then leave the "Reset eLink on Start=1" line alone, but perform the delete and retype modification, but this time make the two values =0

In general, it is these .INI lines that impact on the controller connection keep dropping and loosing connection.

In the case of the eLink it is the ‘Reset eLink on Start’ being equal to 1 and not 0 that causes the loss of connectivity, whilst in the case of the Elite it is the ‘Check controller’ line being 1 and not 0 that causes the connection drops.

Placing the deleted lines at the end of the file does not make any logical sense, but it has been proven time and time again to improve RailMaster / controller stability.

If the configuration is now stable and the controller correctly detected when RM starts. Then always use the same USB port for the eLink [or Elite] connection. If you plug into a different port, then Windows is highly likely to assign a different COM number to the port and communication will be lost again and need editing on the 'System Setting' screen. If at any time you lose controller connection and get error messages in RM relating to the controller, then it is this COMx number that you need to check and make sure that the number in Windows 'Device Manager' matches the one in the RM 'System Settings' screen. Sometimes a 'Windows Update' can affect these configuration settings.

A USB 2.0 port is preferable over a USB 3.0 port and a COM port number between 2 and 4 provides the highest stability.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
  • Create New...