Solved! srcpd and loco functions

Moderator: Moderators

Postby rjversluis » 01.05.2013, 14:16

You're still too tired to read postings:
http://wiki.rocrail.net/doku.php?id=loc ... _functions

Use the Wiki Luke.
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 » 01.05.2013, 14:17

rjversluis wrote:
Richard-TX wrote:F0 sends two commands to the srcp server.

Some protocols have the F0 embeded in the speed command and other in a function command.
So for F0 two commands are send: Speed command with F0 set and a function command with the changed F0 function status.

Do you copy? ;-)
Check all the supported protocols and you go crazy:
http://wiki.rocrail.net/doku.php?id=controllers-en


I understand. Especially about the part having to support all those protocols not to mention all the exceptions to the published standards.

I just find it odd that F0 is the only function that sends 3 commands.

Here is what I get when I toggle F0.

sent: SET 2 GL 10 1 0 128 1 1 1 1 1 1 1 1 1 1
sent: SET 2 GL 10 1 0 128 1 0 0 0 0 0 0 0 0 0
loco 10 V=0 dir=1 steps=128 fn=1 idxFn[10] srcpFx[0x000001FF]
sent: SET 2 GL 10 1 0 128 1 1 1 1 1 1 1 1 1 1
loco 10 V=0 dir=1 steps=128 fn=1 idxFn[10] srcpFx[0x00000000]
loco 10 V=0 dir=1 steps=128 fn=1 idxFn[10] srcpFx[0x000001FF]
You do not have the required permissions to view the files attached to this post.
Richard-TX
 

Postby Richard-TX » 01.05.2013, 14:24

rjversluis wrote:You're still too tired to read postings:
http://wiki.rocrail.net/doku.php?id=loc ... _functions

Use the Wiki Luke.


You are right....too tired. :shock:

Note to self....sleep once in a while. Crashing in the chair does not count.
Richard-TX
 

Postby rjversluis » 01.05.2013, 14:30

Richard-TX wrote:I just find it odd that F0 is the only function that sends 3 commands.

The reason for the two commands I already explained.
If yer using the throttle in Rocview the first command send is velocity. Then the two commands I already explained are following.

Just take a good rest and usleep( 1000*60*60*8 );
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 » 01.05.2013, 14:32

Rob,

If you look at the flags of what is sent compared to the button colors, they don't agree.

sent: SET 2 GL 3 1 0 14 1 1 1 1 1

but all the buttons are green except F0 when they should all be red.

Cycle each button a couple of times and then it gets straightened out.
Richard-TX
 

Postby Richard-TX » 01.05.2013, 14:40

This button color mismatch only occurs when a function is ON and then rocrail and rocview is stopped and restarted.
Richard-TX
 

Postby rjversluis » 01.05.2013, 14:43

Functions are restored after a power on command.

"Use the Wiki Luke." :read:

:eot:

Sorry but I step out of this SRCPD thread.
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 » 01.05.2013, 14:44

I understand about the restore functions. I thought that would be the action by default. I am an idiot!

Maybe I am giving idiots a bad name. :D
Richard-TX
 

Postby Richard-TX » 01.05.2013, 14:50

Rob,

Sent you a beer on me. Enjoy!

Richard

:beer:
Richard-TX
 

Postby Richard-TX » 01.05.2013, 15:14

What does it mean when rocrail says: "ignore field event for [E03] while function restore is not ready"


Does it mean Richard is still confused?
Richard-TX
 

Postby Richard-TX » 01.05.2013, 15:31

Rob,

Failure to turn power on also leads to confusion.

Apparently if the power is off, then the function buttons are not guaranteed to be synchronized.
Richard-TX
 

Previous

Return to srcp