Rocrail Client Server protocol SDD?

Helge
Posts: 114
Joined: 31.05.2010, 18:32

Post by Helge » 20.06.2010, 12:51

Hello Harald,

good to hear from you again. As stated above, I am currently working on a simple adaption (loc, switch, accessory control) of the Zaurus Software to rocrail. Just getting the "old stuff" to work with rocrail.

Grüße

Helge

Helge
Posts: 114
Joined: 31.05.2010, 18:32

Post by Helge » 10.07.2010, 13:01

Hello,

I am still working on the adaption of my Zaurus to rocrail.

Last time when I tested the loco functions f5-f8, I found out that they are not working. This puzzles me a bit. If turn on e.g. f5 on my zaurus rocview shows the f5 activated. But the command is not send to the loco.

Probably I use the wrong command without the correct function group.

Here is my command string :

"lc", "<fn id=\""+ locoid + "\" f1=\"" + F1 + "\" f2=\"" + F2 + "\" f3=\""
+ F3 + "\" f4=\"" + F4 + "\" f5=\"" + F5 + "\" f6=\"" + F6 + "\" f7=\"" + F7 +"\"/>"

Is there a way to modify the string in order to work correctly ? I would like to have all functions in on command string.

Best regards

Helge

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

Post by rjversluis » 11.07.2010, 19:12

Use the source Helge.

Rocj, iRoc and andRoc should be sufficient to answer all yer Q's.

Helge
Posts: 114
Joined: 31.05.2010, 18:32

Post by Helge » 11.07.2010, 22:37

Thanks,

I found the solution this evening .

Greetings

Helge

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

Post by Richard-TX » 12.08.2013, 01:53

It might be easier to use SRCP.


SET 1 GL <loco_id_num> <mode> <speed> <steps> <f0> <f1> ......<fn>

Typical command session that I use is:

open tcp connection
read response
send "go"
read response
send command
read response
close


While not 100% "legal" it works

Post Reply

Return to “Documentation”