closed: srcp and Rocpro

Moderator: Moderators

closed: srcp and Rocpro

Postby Richard-TX » 07.05.2013, 05:37

when in Rocpro the CV requested is one less than the number in the "Nr" box.

Example:

I entered CV Nr 100 in the box and clicked "read"

Here is what appears in the Controller trace:

command written: SET 1 POWER OFF
srcp response: 1367901170.431 200 OK
command written: GET 2 SM 23 CV 99
srcp response: 1367901170.435 100 INFO 2 SM 23 CV 99 0
addr=23 CV=CV nr=99 value=0

tcpdump and syslog messages confirm this.
You do not have the required permissions to view the files attached to this post.
Last edited by Richard-TX on 07.05.2013, 06:30, edited 1 time in total.
Richard-TX
 

Postby Richard-TX » 07.05.2013, 05:53

I think what is happening is the field is being auto-decremented and then the read CV command is issued. I was expecting the CV read command to be issued and then the field auto-decremented.
Richard-TX
 

Postby rjversluis » 07.05.2013, 05:54

CV numbers in srcp are zero based.
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 - CANGCx ] - [ G: CBUS - CANGCx ]
rjversluis
Site Admin
 

Postby Richard-TX » 07.05.2013, 06:05

BTW the same thing happens in the programming tab. Request CV0 and a request for CV -1 is what is sent to srcp.
Richard-TX
 

Postby Richard-TX » 07.05.2013, 06:07

Thanks for the reply Rob. I will adjust for it accordingly.
Richard-TX
 

Postby rjversluis » 07.05.2013, 06:07

Rocrail is like your decoder manual and starts with CV1 and subtracts 1 if needed for the addressed CS.
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 - CANGCx ] - [ G: CBUS - CANGCx ]
rjversluis
Site Admin
 

Postby Richard-TX » 07.05.2013, 07:25

Thanks Rob. Since I am sort of creating a stationary decoder from a Rpi, I needed that info.

Thanks again.
Richard-TX
 


Return to srcp