Switch shows at random wrong position.

Moderator: Moderators

Postby Buddace » 22.09.2012, 11:04

Loconet log
Code: Select all
12.01.34.26 [TX] - B0 00 30 7F
12.01.34.29 [RX] - B0 00 30 7F  OPC_SW_REQ

12.01.39.87 [RX] - B0 00 10 5F  OPC_SW_REQ

12.01.54.98 [TX] - B0 00 00 4F
12.01.54.98 [RX] - B0 00 00 4F  OPC_SW_REQ

And attached rocrail trace.

I do this:
Test conditions: two locobuffer.
How reproduce:
-set SW_BSS_1 straight via mouse/rocview
-send via loconet "B0 00 30 7F" SW_BSS_1 will be set turnout (right!) in rocview

-set SW_BSS_1 straight via mouse/rocview
-send via loconet "B0 00 00 4F" SW_BSS_1 will be set turnout (wrong!) rocview
You do not have the required permissions to view the files attached to this post.
www.dccworld.com First and Only Italian DCC Website.

TMWDCC/TBX , zDCC, Lokmaus 2, Arnold DCC, Intellibox, Hornby Select, A lot of Loconet DIY (Loconet SwitcBoard, Loconet P50, etc..)
Buddace
 

Postby rjversluis » 22.09.2012, 12:00

The trace file does not contain any switch commands.
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 Buddace » 22.09.2012, 12:30

rjversluis wrote:The trace file does not contain any switch commands.

Enable monitor and automatic trace

Code: Select all
13.23.35.43 [RX] - B0 00 10 5F  OPC_SW_REQ

13.23.39.06 [RX] - B0 00 30 7F  OPC_SW_REQ

13.23.50.21 [TX] - B0 00 10 5F
13.23.50.23 [RX] - B0 00 10 5F  OPC_SW_REQ

13.23.52.07 [RX] - B0 00 30 7F  OPC_SW_REQ

13.23.53.78 [TX] - B0 00 00 4F
13.23.53.78 [RX] - B0 00 00 4F  OPC_SW_REQ

Tx are simulated packet and rx echo or rocrail packet.
Is not enough clear next step will be video desktop capture :)
Important problem is not rocrail driving but decoding loconet
You do not have the required permissions to view the files attached to this post.
www.dccworld.com First and Only Italian DCC Website.

TMWDCC/TBX , zDCC, Lokmaus 2, Arnold DCC, Intellibox, Hornby Select, A lot of Loconet DIY (Loconet SwitcBoard, Loconet P50, etc..)
Buddace
 

Postby Buddace » 22.09.2012, 13:12

Correct this message:
Buddace wrote:Found problem:
For rocrail this packet: B0 00 00 4F and B0 00 10 5F are same!.
If switch have address 1 packet : B0 00 30 7F set straight but both B0 00 00 4F or B0 00 10 5F set it turnout.
Test conditions: two locobuffer.
How reproduce:
-set SW_BSS_1 straight via mouse/rocview
-send via loconet "B0 00 10 5F" SW_BSS_1 will be set turnout (right!) in rocview

-set SW_BSS_1 straight via mouse/rocview
-send via loconet "B0 00 00 4F" SW_BSS_1 will be set turnout (wrong!) rocview

I think this topic need move to loconet area.
www.dccworld.com First and Only Italian DCC Website.

TMWDCC/TBX , zDCC, Lokmaus 2, Arnold DCC, Intellibox, Hornby Select, A lot of Loconet DIY (Loconet SwitcBoard, Loconet P50, etc..)
Buddace
 

Postby rjversluis » 22.09.2012, 13:34

Both are correct because bit 4 is for activation.
See SW2 parameter: http://wiki.rocrail.net/doku.php?id=loc ... e-parms-en

-send via loconet "B0 00 10 5F" SW_BSS_1 will be set turnout (activate) in rocview
-send via loconet "B0 00 00 4F" SW_BSS_1 will be set turnout (deactivate) rocview

LNPE:
Code: Select all
OPC_SW_REQ 0xB0 ;REQ SWITCH function NO
;<0xB0>,<SW1>,<SW2>,<CHK> REQ SWITCH function
<SW1> =<0,A6,A5,A4- A3,A2,A1,A0>, 7 ls adr bits. A1,A0 select 1 of 4 input pairs in a DS54
<SW2> =<0,0,DIR,ON- A10,A9,A8,A7> Control bits and 4 MS adr bits.
,DIR=1 for Closed,/GREEN, =0 for Thrown/RED
,ON=1 for Output ON, =0 FOR output OFF
Note-,Immediate response of <0xB4><30><00> if command failed, otherwise no response
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 Buddace » 22.09.2012, 14:49

Rob right analysis, but why there is a deactivate command in a rocrail route ?
I investigate and execute manually route command e found problem in "S_BSS_LINEA1A_top"
If set red command by rocrail loconet sniff is:
Code: Select all
15.42.36.35 [RX] - B0 1C 00 53  OPC_SW_REQ

15.42.36.87 [RX] - B0 1D 20 72  OPC_SW_REQ

15.42.37.39 [RX] - B0 1C 20 73  OPC_SW_REQ

15.42.37.90 [RX] - B0 00 00 4F  OPC_SW_REQ

15.42.38.42 [RX] - B0 1C 10 43  OPC_SW_REQ

Problem is in white aspect because are unused and address set is "0".
With address 0 set, generate wrong loconet command "B0 00 00 4F".
I try to change and "B0 00 00 4F" is not present.

Do you agree ?
You do not have the required permissions to view the files attached to this post.
www.dccworld.com First and Only Italian DCC Website.

TMWDCC/TBX , zDCC, Lokmaus 2, Arnold DCC, Intellibox, Hornby Select, A lot of Loconet DIY (Loconet SwitcBoard, Loconet P50, etc..)
Buddace
 

Postby rjversluis » 22.09.2012, 15:02

A deactivate coil command is send for every switch which has the actdelay flag set.
http://wiki.rocrail.net/doku.php?id=swi ... witch_time
Turn it of if you do not need it.

LocoNet switch addressing starts with 0.
Rocrail starts with 1 and subtract 1 before sending it to LocoNet.
Rocrail do not send commands for address 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 - CANGCx ] - [ G: CBUS - CANGCx ]
rjversluis
Site Admin
 

Postby Buddace » 22.09.2012, 15:11

rjversluis wrote:A deactivate coil command is send for every switch which has the actdelay flag set.
http://wiki.rocrail.net/doku.php?id=swi ... witch_time
Turn it of if you do not need it.

Now I'm talking about signal and not switch.
To do this described test I set manually red command to signal"S_BSS_LINEA1A_top"

rjversluis wrote:LocoNet switch addressing starts with 0.
Rocrail starts with 1 and subtract 1 before sending it to LocoNet.
Rocrail do not send commands for address 0.

Rob do you analyse attached rocrail trace ?
If I set red signal"S_BSS_LINEA1A_top" I see this with deactivation command
Code: Select all
15.42.36.35 [RX] - B0 1C 00 53  OPC_SW_REQ

15.42.36.87 [RX] - B0 1D 20 72  OPC_SW_REQ

15.42.37.39 [RX] - B0 1C 20 73  OPC_SW_REQ

15.42.37.90 [RX] - B0 00 00 4F  OPC_SW_REQ

15.42.38.42 [RX] - B0 1C 10 43  OPC_SW_REQ
www.dccworld.com First and Only Italian DCC Website.

TMWDCC/TBX , zDCC, Lokmaus 2, Arnold DCC, Intellibox, Hornby Select, A lot of Loconet DIY (Loconet SwitcBoard, Loconet P50, etc..)
Buddace
 

Postby rjversluis » 22.09.2012, 15:28

You are right, and I made a fix for it in the loconet library which reject commands if both address and port are zero.
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 Buddace » 22.09.2012, 15:31

rjversluis wrote:You are right, and I made a fix for it in the loconet library which reject commands if both address and port are zero.

Alleluia!

Rob if you are sleeping: do you have nightmare with Buddace ask you for a Rocrail problem ?
www.dccworld.com First and Only Italian DCC Website.

TMWDCC/TBX , zDCC, Lokmaus 2, Arnold DCC, Intellibox, Hornby Select, A lot of Loconet DIY (Loconet SwitcBoard, Loconet P50, etc..)
Buddace
 

Postby rjversluis » 22.09.2012, 15:46

Buddace wrote:Rob if you are sleeping: do you have nightmare with Buddace ask you for a Rocrail problem ?

Sorry; I do not dream about Rocrail users. ;-)
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 rjversluis » 22.09.2012, 15:48

Buddace wrote: aspect because are unused and address set is "0".

If you dot not want to use the white aspect, why do you set the signal to use 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 - CANGCx ] - [ G: CBUS - CANGCx ]
rjversluis
Site Admin
 

Postby Buddace » 22.09.2012, 15:55

rjversluis wrote:
Buddace wrote: aspect because are unused and address set is "0".

If you dot not want to use the white aspect, why do you set the signal to use it!?

So I can made rocrail robust.
Because, I have to use strange method to drive Italian signal long story. But will be unnecessary with multi aspect.
Last edited by Buddace on 22.09.2012, 16:00, edited 1 time in total.
www.dccworld.com First and Only Italian DCC Website.

TMWDCC/TBX , zDCC, Lokmaus 2, Arnold DCC, Intellibox, Hornby Select, A lot of Loconet DIY (Loconet SwitcBoard, Loconet P50, etc..)
Buddace
 

Postby Buddace » 22.09.2012, 15:56

rjversluis wrote:
Buddace wrote:Rob if you are sleeping: do you have nightmare with Buddace ask you for a Rocrail problem ?

Sorry; I do not dream about Rocrail users. ;-)


Image
www.dccworld.com First and Only Italian DCC Website.

TMWDCC/TBX , zDCC, Lokmaus 2, Arnold DCC, Intellibox, Hornby Select, A lot of Loconet DIY (Loconet SwitcBoard, Loconet P50, etc..)
Buddace
 

Previous

Return to Loconet