SOLVED - srcp and programming - hangs rocrail server

Moderator: Moderators

SOLVED - srcp and programming - hangs rocrail server

Postby Richard-TX » 05.05.2013, 18:52

When I do any programming of a srcp loco, the rocrail server hangs for a long time. I am not sure what it is waiting for.

The rocrail server hangs and does not respond to any keyboard input like a 'q'. I can force a close by closing the window however.

Rob, If you think it is a problem with the srcpd server, let me know. I would like to be able to control/program the servos connected to my Rpi.

Richard
You do not have the required permissions to view the files attached to this post.
Last edited by Richard-TX on 07.05.2013, 07:00, edited 1 time in total.
Richard-TX
 

Postby Richard-TX » 06.05.2013, 05:44

I just tried 5147 and it still hangs Rob.
You do not have the required permissions to view the files attached to this post.
Richard-TX
 

Postby Richard-TX » 06.05.2013, 06:01

One new problem has popped up.

When the power is on and a srcp loco's speed is raised, the throttle slider drops down all by itself to about speed/10.
You do not have the required permissions to view the files attached to this post.
Richard-TX
 

Postby rjversluis » 06.05.2013, 06:47

Ask your srcpd why:

Code: Select all
20130505.235820.000 r9999c 0000148C OSRCP    0221 command written: SET 1 GL 3 1 74 128 0 1 0 0 0
20130505.235820.000 r9999I info010D OSRCP    0774 info: [1367816303.869 100 INFO 1 GL 3 1 8 14 0 ]
Best Regards, Rob.
:!: PS: Do not forget to attach the usual files.
:!: PS: Nicht vergessen die übliche Dateien an zu hängen.
[ macOS - Linux] - [ N: CBus - CAN-GCA ] - [ 0: RocNetNode - GCA-Pi ]
rjversluis
Site Admin
 

Postby rjversluis » 06.05.2013, 08:57

Richard-TX wrote:I just tried 5147 and it still hangs Rob.

5148 should do.
Best Regards, Rob.
:!: PS: Do not forget to attach the usual files.
:!: PS: Nicht vergessen die übliche Dateien an zu hängen.
[ macOS - Linux] - [ N: CBus - CAN-GCA ] - [ 0: RocNetNode - GCA-Pi ]
rjversluis
Site Admin
 

Postby Richard-TX » 06.05.2013, 14:17

Rob,

The throttle slider button dropping down to 1/10th of the speed is something that changed recently in Rocrail. I dropped back to version 5122 and the throttle acts normally. I went to an original distribution of srcpd and that made no difference.

Based on what you are saying I deduce two things.

1 - srcpd never responded correctly to a speed change.
2 - earlier versions of Rocrail really didn't process the INFO response to a speed change and 5147 now does.

Is that deduction true? If true, what should the response from srcpd really be?

Thanks

Richard
Last edited by Richard-TX on 06.05.2013, 14:20, edited 1 time in total.
Richard-TX
 

Postby rjversluis » 06.05.2013, 14:19

Richard,

1: I don't know.
2: Yes.

what should the response from srcpd really be?

The same as the command send.
Maybe the srcpd did not remember the INIT GL...
Best Regards, Rob.
:!: PS: Do not forget to attach the usual files.
:!: PS: Nicht vergessen die übliche Dateien an zu hängen.
[ macOS - Linux] - [ N: CBus - CAN-GCA ] - [ 0: RocNetNode - GCA-Pi ]
rjversluis
Site Admin
 

Postby Richard-TX » 06.05.2013, 14:25

Rob,

I am going to do some more investigation to figure this one out.

Something is wrong. Not sure exactly what it is.

Richard
Richard-TX
 

Postby LDG » 06.05.2013, 15:43

Hi Richard,

the answer of a SRCP server to a speed command (of an already INITed loco "INIT 1 GL 3 N 1 128 5" ) like
"SET 1 GL 3 0 36 128 0 0 0 0 0"
is
"200 OK"
on the command channel and is
"100 INFO 1 GL 3 0 36 128 0 0 0 0 0"
on all connected info channels

Just read the protocol definition and use the "original" srcpd (with debugging tools in the source tree!) as a reference implementation.

Regards,
Lothar
LDG
Site Admin
 

Postby Richard-TX » 07.05.2013, 07:00

This secondary issue regarding speed is related to http://forum.rocrail.net/viewtopic.php?t=5836

Word to the wise: Make sure that the loco id and number are unique across all CS. Bad things will happen otherwise.
Richard-TX
 


Return to srcp

cron