Ident-information via FB Command

dergo
Posts: 9
Joined: 28.07.2012, 11:58
Location: Wien

Ident-information via FB Command

Post by dergo » 11.01.2014, 11:14

I have a srcpd running on a separate Linux Server, talking to Rocrail srcp via Ethernet (TCP/IP). Most things (GL, GA, and Sensor-FB) are working fine, but I'm not able to create a kind of 'Ident-FB' for Train Detection over this Ethernet connetion. Whatever I send as a FB-Command I earn a 'locId not set in Block ...'

After searching all the Documents and Descriptions I can't find a valid way to set a Ident. Is there a valid way to give Rocrail this kind of information using Ethernet ?

Many thanks for helpful informations!

Guenter Okasek
Attachments
Rocdoc.zip
(27.28 KiB) Downloaded 32 times

rjversluis
Site Admin
Posts: 39295
Joined: 10.04.2006, 08:48
Location: Speyer, Germany
Contact:

Post by rjversluis » 11.01.2014, 11:42

SRCP does not support FB Ident.

dergo
Posts: 9
Joined: 28.07.2012, 11:58
Location: Wien

Post by dergo » 11.01.2014, 14:35

rjversluis wrote:SRCP does not support FB Ident.
Hi Rob, thank you for the (bad) answer .....
I think you have meant 'the SRCP-implementation in Rocrail does not support ....' because the SRCP document describes the FB sensors that way:
".......They have exactly one way in that is identified by an address and has at least two distinguishable states" . my opinion is: that describes a undefined number of possible states (like a kind of identification )

Guenter

rjversluis
Site Admin
Posts: 39295
Joined: 10.04.2006, 08:48
Location: Speyer, Germany
Contact:

Post by rjversluis » 11.01.2014, 14:49

Code: Select all

100 INFO <bus> FB <addr> <value>
 Value of feedback sensor <addr> on the specified bus.
value = 0 Sensor off
value = 1 Sensor on
value > 1 Ident?

How to detect and Ident of 1?

LDG
Site Admin
Posts: 2624
Joined: 18.10.2010, 00:03
Location: near Karlsruhe/Germany

Post by LDG » 11.01.2014, 14:53

Hi Guenter,
dergo wrote:
rjversluis wrote:SRCP does not support FB Ident.
Hi Rob, thank you for the (bad) answer .....
I think you have meant 'the SRCP-implementation in Rocrail does not support ....' because the SRCP document describes the FB sensors that way:
".......They have exactly one way in that is identified by an address and has at least two distinguishable states" . my opinion is: that describes a undefined number of possible states (like a kind of identification )

Guenter
Railcom has just arrived at SRCP developers a few weeks ago. There is currently an ongoing discussion among the SRCP developers. It is not yet clear how to push the feedback of loco address and/or speed into the SRCP server. Using "transactions" or "single line" is not yet clear. Last single line proposal looked like this

Code: Select all

103 INFO <bus> FB <number> <value=1> GL <addr> <drivemode> <V>
but nothing is approved for next protocol version. It is still discussion/work in progress...

EDIT: After they released a new protocol revision we will try to implement/integrate it in Rocrail SRCP command station and SRCP service.

Regards,
Lothar
Last edited by LDG on 11.01.2014, 14:59, edited 2 times in total.

rjversluis
Site Admin
Posts: 39295
Joined: 10.04.2006, 08:48
Location: Speyer, Germany
Contact:

Post by rjversluis » 11.01.2014, 14:58

I have no problem to adapt this:

Code: Select all

103 INFO <bus> FB <number> <value=1> GL <addr> <drivemode> <V>
until an official version comes out, so server developers can go on with BiDi.

dergo
Posts: 9
Joined: 28.07.2012, 11:58
Location: Wien

Post by dergo » 11.01.2014, 16:39

rjversluis wrote:

Code: Select all

100 INFO <bus> FB <addr> <value>
 Value of feedback sensor <addr> on the specified bus.
value = 0 Sensor off
value = 1 Sensor on
value > 1 Ident?

How to detect and Ident of 1?
Sorry to bother you Rob,
but I had read in the description 'Sensors and Blocks' -> Sensor Events the Entry 'Ident':

"Some sensor systems provide more information like the address of the passing locomotive. (Lissy, BarJut, RailCom, …) This information is compared in auto mode to the identity-code set in the Loco properties, in manual mode this identity-code is shown in the block symbol. "
And -> "Use this event type only if the sensor has no further functionality."

So I tought it is possible to define a FB for Idents only .... and if so, each state would be an ident (like your example the value 1 would be ident 1 because "the sensor has no further ....."

Sorry oncemore and have a nice evening! :wink:

Guenter

dergo
Posts: 9
Joined: 28.07.2012, 11:58
Location: Wien

Post by dergo » 11.01.2014, 20:54

@LDG 13:53
Thank you Lothar, for your contributon! I did'nt expect such excitement with this (as I tought) simple question ....
I tought 'there are different ways to define a FB-Sensor, so there should be different ways to answer also...'
Please do not rebiuld or change anything because of me . At this time it was a question only
Now I have to think about .....


Thank you and have a nice weekend!

Guenter

dergo
Posts: 9
Joined: 28.07.2012, 11:58
Location: Wien

Post by dergo » 13.01.2014, 11:23

Lothar, Rob
Now I have tought about .... :)
The indicated solution from you would exactly meet my requirements :D
So I pray and hope that this extension may come !

Thank you oncemore for your support!

Guenter Okasek

melior

Post by melior » 04.02.2014, 08:12

Hi guys,

have you seen this?

http://srcpd.sourceforge.net/srcp/srcp-085-wip.html

Best regards,

André

rjversluis
Site Admin
Posts: 39295
Joined: 10.04.2006, 08:48
Location: Speyer, Germany
Contact:

Post by rjversluis » 04.02.2014, 08:16

See News:
http://srcpd.sourceforge.net/srcp/

No FB extension.

LDG
Site Admin
Posts: 2624
Joined: 18.10.2010, 00:03
Location: near Karlsruhe/Germany

Post by LDG » 04.02.2014, 11:42

André
Yes, but it is WIP.
Additional/dynamic extensions to message "100 INFO <bus> FB <addr> <value>" and/or an extra message (103) is still in discussion.

I already sent some small patches and fixes to that project and I am in contact with Guido Scholz regarding implementation and compatibilty of "original" srcp daemon and the srcp client (srcp command station) and server side (srcp scripting interface) in Rocrail.

Let's wait for the next official spec and then we will try to implement/integrate the changes :wink:

Regards,
Lothar

Richard-TX
Posts: 1320
Joined: 10.07.2012, 04:00
Location: Texas, USA
Contact:

Post by Richard-TX » 04.02.2014, 15:50

The only way that I see that would resolve the issue at this time is to dedicate a FB to a loco and a position. This would cause a lot of FB devices to be defined, but that is all there is for now. Not very practical.

Once the srcp team decides to expand on the FB message and Rob implements it, then that workaround becomes moot.

melior

Post by melior » 08.02.2014, 14:13

Hi Lothar,
LDG wrote:Additional/dynamic extensions to message "100 INFO <bus> FB <addr> <value>" and/or an extra message (103) is still in discussion.
indeed, the extended FB message is still not in the spec. I'm a bit frustrated. :cry:

So let's wait and hope ...

Best regards,

André

Richard-TX
Posts: 1320
Joined: 10.07.2012, 04:00
Location: Texas, USA
Contact:

Post by Richard-TX » 08.02.2014, 16:29

Sorry you are frustrated. I know how you feel.

Is it possible that you could leverage the GM (generic message) as a temporary work-around?

Post Reply

Return to “srcp”