Help with DCC4PC Railcom Reader with RocRail

All issues about RailCom

Help with DCC4PC Railcom Reader with RocRail

Postby lyneux » 11.08.2017, 08:34

Hi,

I'm trying to use the DCC4PC Railcom Reader with Rocrail via the TAMS RC-Link compatibility mode and failing miserably!

Here is the setup:
Lenz LZV100 - v3.6 (I checked to ensure that the Railcom cutout was set propoerly).
DCC4PC Railcom Reader - Set to address 1 (rather than the default of 0, as per the manual).
DCC4PC Railcom Computer interface - Firmware updated to 1.4 (TAMS RC-Link compatibility mode).
1 single track section wired in to J1 of the Railcom Reader.
Loksound V4 equipped loco.

I have added the controller as per specified on the wiki. I have the following questions:

1) I'm not sure what to put in the sensors configuration part of the controller screen (see attached screenshot) - the wiki doesn't seem to give help with this?
2) Once I power on, I see continuous scrolling in the server trace of: "detector XX out of range". This is a lot of noise. Is it telling me anything useful? Can I switch it off as it seems to make the interface unresponsive?
3) In the controller trace I see something more encouraging: "00:13:11 detector [YY] reported address [00000] state [off] direction [fwd]" where YY loops from 1 to 24. However, when placing the loco on the track I never see this change to report the address (it stays at 0000).
4) How do I set up and address the 16 sensors? Again I couldn't find anything on the wiki to talk about addressing the sensors from the DCC4PC board via RC-Link.

Any help with the above very gratefully received!

Guy

screenshot.png
You do not have the required permissions to view the files attached to this post.
lyneux
 

Re: Help with DCC4PC Railcom Reader with RocRail

Postby rjversluis » 11.08.2017, 09:09

Hello Guy,

you only have to setup the communication:
http://wiki.rocrail.net/doku.php?id=tam ... tion_setup

This is a general setup dialog used for many other command stations.
Only the fields documented in the Wiki are of interest.

And you have to provide your files for any further help:
http://wiki.rocrail.net/doku.php?id=issue-en

The 0xFC, address report, contains as second byte the reader number wich must be between 1 and 24.
Best Regards, Rob.
[ macOS - Linux] - [ N: CBus - CAN-GCA ] - [ 0: RocNetNode - GCA-Pi ]
rjversluis
Site Admin
 

Re: Help with DCC4PC Railcom Reader with RocRail

Postby lyneux » 11.08.2017, 09:41

Thanks Rob. I'll post them when I'm back home tomorrow.

Guy
lyneux
 

Re: Help with DCC4PC Railcom Reader with RocRail

Postby lyneux » 13.08.2017, 08:58

Hi Rob. Files below.

issue.zip


I upgraded to the latest version of Rocrail but now I have an additional problem. Rocrail freezes until I unplug the DCC4PC computer interface. So the trace you see in the file above - the last few events is me disconnecting the USB device in order to unfreeze the user interface so that I can create an issue from the help menu.

Guy
You do not have the required permissions to view the files attached to this post.
lyneux
 

Re: Help with DCC4PC Railcom Reader with RocRail

Postby rjversluis » 13.08.2017, 09:27

Hi Guy,

try 12.547+ and report. (Please activate BYTE and INFO Tracelevel too.)

But how many detectors do you have?
The Protocol only support a range from 1 to 239.
Best Regards, Rob.
[ macOS - Linux] - [ N: CBus - CAN-GCA ] - [ 0: RocNetNode - GCA-Pi ]
rjversluis
Site Admin
 

Re: Help with DCC4PC Railcom Reader with RocRail

Postby rjversluis » 13.08.2017, 09:56

Hi Guy,

you tested with a Revision of Rocrail in which nothing has been changed in the RCLink library.
This revision only supports a range of 1 to 24, DCC4PC reports over 239 detectors within a very small time slice which hangs up the USB device driver under macOS, and this has nothing to do with Rocrail.
Your Mac will also freeze if Rocrail does not run and a USB device driver gets a buffer overflow.

See: http://wiki.rocrail.net/doku.php?id=cma ... e_shooting
Best Regards, Rob.
[ macOS - Linux] - [ N: CBus - CAN-GCA ] - [ 0: RocNetNode - GCA-Pi ]
rjversluis
Site Admin
 

Re: Help with DCC4PC Railcom Reader with RocRail

Postby lyneux » 14.08.2017, 09:46

Hi Rob,

I have a single DCC4PC Railcom Reader board (this has 16 detectors). I don't really know how these are addressed? That was one of my original questions.

Regarding the Mac: it is not the OS that is freezing but just the Rocview application. The mouse is still responsive (and I can use other applications). It is just Rocview that freezes and gives me the spinning pinwheel (https://en.wikipedia.org/wiki/Spinning_pinwheel).

I will activate BYTE and INFO Tracelevel and report back again.

Thanks for your continued help with this!

Guy
lyneux
 

Re: Help with DCC4PC Railcom Reader with RocRail

Postby rjversluis » 14.08.2017, 10:32

Hi Guy,

just disable the Trace Windows in Rocview; The OS cannot handle so many Warnings.
DCC4PC does not confirm to the Tams RCLink Protocol.

Try this:
http://wiki.rocrail.net/doku.php?id=faq-en#rocview
Best Regards, Rob.
[ macOS - Linux] - [ N: CBus - CAN-GCA ] - [ 0: RocNetNode - GCA-Pi ]
rjversluis
Site Admin
 

Re: Help with DCC4PC Railcom Reader with RocRail

Postby lyneux » 14.08.2017, 22:23

OK, just updated to the latest Rocrail build (12553), turned off monitoring in Rocview and enabled INFO and BYTE Tracelevel. The result is that the user interface responds better! Please see the attached files.

issue.zip


I have been looking for a report from detector 1, but it seems to be missing! What I did see was this:

20170814.221710.411 r9999B rclinkre ORcLink 0331 detector [5648] already reported address 0

I don't know if it's relevant but 5648 is the address of the loco in the first detector. Is it possible that the logging has switched the detector number with the address?

Guy
You do not have the required permissions to view the files attached to this post.
lyneux
 

Re: Help with DCC4PC Railcom Reader with RocRail

Postby smitt48 » 14.08.2017, 22:51

Hi Guy,

Are you sure you need BYTE level, that is normally used for extensive error checking. Normal would be INFO and AUTOMATIC.

Maybe Rob, will say something about it.
http://wiki.rocrail.net/doku.php?id=roc ... ce-en#byte

Tom
Kind regards,
Tom Smit
Kralendijk, Bonaire - Dutch Caribbean

Märklin M & K-rails with ECoS2 (4.1.4) - WinXP as server, 10
RoSoft: S88n & WDD switch & SDD signal decoders
Display: Tri-ang from 1950's, Märklin from early 1960's
In build phase
smitt48
 

Re: Help with DCC4PC Railcom Reader with RocRail

Postby lyneux » 14.08.2017, 23:13

Hi Tom. I only enabled BYTE because Rob asked me to yesterday (see above): "try 12.547+ and report. (Please activate BYTE and INFO Tracelevel too.)"

Anyway.... a bit more playing around tonight and I think that I now have a successful set-up. I added a sensor with address 1 and attached it to a block. Now when I place a Railcom-enabled loco on the block it automatically get it assigned to the block. When I place a non-railcom-enabled loco on the block, the sensor is triggered as per e.g. LDT RS-8.

So I think that apart from the possible small bug in the trace that reports the loco address as the detector number (mentioned above) everything is working properly.

Is there a smarter way to see what a sensor is reporting? At the moment, the only way I can do this is to hover the mouse over the sensor on the trackplan and I get a mouse tool-tip with the Railcom data (see attached screenshot), but this is not always reliable.

Screen Shot 2017-08-14 at 23.12.09.png


Thanks Rob for your help with this!

Guy
You do not have the required permissions to view the files attached to this post.
lyneux
 

Re: Help with DCC4PC Railcom Reader with RocRail

Postby RainerK » 14.08.2017, 23:26

Hi Guy,
lyneux wrote:...Is there a smarter way to see what a sensor is reporting? ...

You can try this with the Sensor monitor.
Another way the Trace filter may be.
Best Regards, es grüßt RainerK

DCC++ with Arduino Uno / Motor shield and LocoNet GCA85, 50, 93 and 136. Special interests: DIY electronic assemblies. http://www.rainermoba.blogspot.com
RainerK
 

Re: Help with DCC4PC Railcom Reader with RocRail

Postby rjversluis » 15.08.2017, 06:36

Hi Guy,
lyneux wrote:20170814.221710.411 r9999B rclinkre ORcLink 0331 detector [5648] already reported address 0

I don't know if it's relevant but 5648 is the address of the loco in the first detector. Is it possible that the logging has switched the detector number with the address?

I corrected this wrong formatted trace line in 12.556.

BTW: You can switch off BYTE trace level.
Best Regards, Rob.
[ macOS - Linux] - [ N: CBus - CAN-GCA ] - [ 0: RocNetNode - GCA-Pi ]
rjversluis
Site Admin
 


Return to RailCom