CLOSED - [Invalid] rocrail changes loco number? CV17 read

Moderator: Moderators

CLOSED - [Invalid] rocrail changes loco number? CV17 read

Postby Richard-TX » 08.05.2013, 14:13

Something strange is happening with Ver. 5158

When I do a read of cv 16 all is ok. When I read CV17 then rocrail suddenly changes the loco number.

Attached is the rocrail trace. Below is an excerpt.

The loco number is 505.

command written: SET 1 POWER OFF
srcp response: 1367945820.255 200 OK
command written: GET 2 SM 505 CV 16
srcp response: 1367945820.269 100 INFO 2 SM 505 CV 16 0
addr=505 CV=CV nr=16 value=0
command written: SET 1 POWER OFF
srcp response: 1367945820.311 200 OK
command written: GET 2 SM 134567504 CV 17
srcp response: 1367945820.325 100 INFO 2 SM 134567504 CV 17 0
addr=134567504 CV=CV nr=17 value=0

Sometimes when I do a get of CV17 the SM number changes to 0

Here is a excerpt. The loco number in this case is 203.


command written: GET 2 SM 203 CV 16
srcp response: 1367946971.402 100 INFO 2 SM 203 CV 16 0
addr=203 CV=CV nr=16 value=0
command written: GET 2 SM 0 CV 17
srcp response: 1367946971.437 100 INFO 2 SM 0 CV 17 0
addr=0 CV=CV nr=17 value=0

plan.xml
http://forum.rocrail.net/download.php?id=7539

rocrail trace
http://forum.rocrail.net/download.php?id=7538

rocview trace
http://forum.rocrail.net/download.php?id=7537
Last edited by Richard-TX on 09.05.2013, 13:28, edited 1 time in total.
Richard-TX
 

Postby rjversluis » 08.05.2013, 15:51

Hi Richard,

CV17=Extended address, high-order byte

... :crying:

Can't you check it yourself before you post it?
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 » 08.05.2013, 16:32

Rob,

I am a rookie at this. I thought that CV 17 was just like any other register. Little did I know.

The more I get into DCC the more I see it's foibles.
Richard-TX
 

Postby Pirat-Kapitan » 08.05.2013, 17:12

Hi Richard,
using cvs on DCC-decoders, it would be VERY usefull to read the funking manual FIRST.
Some CVs will make a full or partly reset of the decoder,
cv 17 and Cv 18 are the "long" adress of loco.
Using Cv 17/18, You should notice CV 29 too, there is the switch from short (CV 1) to long adress.
Try to change CV 19, You will see, the loco Adress changes too, but in this time it is the consist.

There are some nice values to play with :P

best regards
Johannes
Clearasilfahrer auf Spur G&H0m, Lenz LZV (3.6), ORD-20, Manhart-Funki und WLM, RS-Bus Rückmelder (Reedkontakte/GBM),
Rocrail auf RasPi mit mobilen Geräten (andRoc). Details auf http://wiki.rocrail.net/doku.php?id=use ... at-kapitan.
Pirat-Kapitan
 

Postby Richard-TX » 08.05.2013, 20:40

Maybe you can help me understand this session when doing some programming of loco # 202 I did not change locos during this session.

command written: SET 1 POWER OFF
srcp response: 1368041570.622 200 OK
command written: GET 2 SM 202 CV 4 <- get cv4 of loco 202
srcp response: 1368041570.632 100 INFO 2 SM 202 CV 4 0
addr=202 CV=CV nr=4 value=0
command written: SET 1 POWER OFF
srcp response: 1368041573.981 200 OK
command written: GET 2 SM 202 CV 6 <- get CV6 of loco 202
srcp response: 1368041573.992 100 INFO 2 SM 202 CV 6 0
addr=202 CV=CV nr=6 value=0
command written: SET 1 POWER OFF
srcp response: 1368041582.508 200 OK
command written: GET 2 SM 202 CV 16 <- get CV16
srcp response: 1368041582.517 100 INFO 2 SM 202 CV 16 0
addr=202 CV=CV nr=16 value=0
command written: SET 1 POWER OFF
srcp response: 1368041582.643 200 OK
command written: GET 2 SM 136496672 CV 17 <- get CV17 of loco ????
srcp response: 1368041582.654 100 INFO 2 SM 136496672 CV 17 0
addr=136496672 CV=CV nr=17 value=0
command written: SET 1 POWER OFF
srcp response: 1368041593.058 200 OK
command written: GET 2 SM 0 CV 4 <- get CV4 of loco 0 ???
srcp response: 1368041593.063 100 INFO 2 SM 0 CV 4 0
addr=0 CV=CV nr=4 value=0
You do not have the required permissions to view the files attached to this post.
Richard-TX
 

Postby rjversluis » 08.05.2013, 21:07

You still do not understand CV 17/18.
No further comment.
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 Pirat-Kapitan » 08.05.2013, 21:30

Hi Richard,
please read for this Loco 202:
CV 18 value = ? (202)
CV 29 value = ? (32 or higher)

best regards
Johannes
Clearasilfahrer auf Spur G&H0m, Lenz LZV (3.6), ORD-20, Manhart-Funki und WLM, RS-Bus Rückmelder (Reedkontakte/GBM),
Rocrail auf RasPi mit mobilen Geräten (andRoc). Details auf http://wiki.rocrail.net/doku.php?id=use ... at-kapitan.
Pirat-Kapitan
 


Postby Richard-TX » 08.05.2013, 22:30

I don't understand the final read of CV4 of SM 0 especially in the context of srcp. I was expecting that the SM number of the second CV4 read would be the same as the first read of CV4. Is that an incorrect expectation?

Maybe in the context of programming it does not matter what the loco ID really is except for things like CV17.

I think I get the CV16-17 issue now.
Richard-TX
 


Return to srcp