[solved] Intellibox switch buffer overflow.

Moderator: Moderators

[solved] Intellibox switch buffer overflow.

Postby Buddace » 18.09.2012, 09:34

Hello Rob, rocrail handle/manage buffer switch overflow (lIB loconet response)?
I'm investigate about old problem on my group layout about lost switch command. This time sniff switch command during "the problem" and see right driving by rocrail but switch don't move (different decoder).
This exhibition switch number are most than last time and problem most frequently.
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 » 18.09.2012, 09:39

Hi Nuccio,

if using the hardware handshake, CTS, a buffer overflow should not happen.

Many IB users are no longer using the direct IB connection but they are using a LocoBuffer instead.

IB loconet response

Which response do you mean? OPC_BUSY?
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 Buddace » 18.09.2012, 10:09

Rob we are using external locobuffer serial or usb, both with hardware handshaking. Usb version work best than native serial Ithink fifo FIFO queue in native hardware serial create some problem.

Which response do you mean? OPC_BUSY?



OPC_SW_REQ ->
Code: Select all
Note-,Immediate response of <0xB4><30><00> if command failed, otherwise no response
Last edited by Buddace on 18.09.2012, 11:06, 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 rjversluis » 18.09.2012, 10:34

This <0xB4><30><00> is not evaluated in Rocrail.
Did you see this in a trace? If yes: Please attach 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 Buddace » 18.09.2012, 10:54

rjversluis wrote:This <0xB4><30><00> is not evaluated in Rocrail.
Did you see this in a trace? If yes: Please attach it.

Sorry don't save trace and this information but is right direction I can try to reproduce at home with loconet terminal.
Do you know Intellibox switch buffer dimension?
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 » 18.09.2012, 10:58

Buddace wrote:Do you know Intellibox switch buffer dimension?

No, but its very small.
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 Buddace » 18.09.2012, 19:08

Need to manage:
Code: Select all
B0 02 10 5D  OPC_SW_REQ
B0 03 10 5C  OPC_SW_REQ
B0 04 10 5B  OPC_SW_REQ
B0 05 10 5A  OPC_SW_REQ
B0 06 10 59  OPC_SW_REQ
B0 07 10 58  OPC_SW_REQ
B0 04 30 7B  OPC_SW_REQ
B0 05 30 7A  OPC_SW_REQ
B0 06 30 79  OPC_SW_REQ
B0 07 30 78  OPC_SW_REQ

B0 02 00 4D  OPC_SW_REQ

B0 03 00 4C  OPC_SW_REQ

B0 04 00 4B  OPC_SW_REQ

B0 02 10 5D B0 03 10 5C B0 04 10 5B B0 05 10 5A B0 06 10 59 B0 07 10 58 B0 04 30 7B B0 05 30 7A B0 06 30 79 B0 07 30 78
B0 02 10 5D  OPC_SW_REQ
B0 03 10 5C  OPC_SW_REQ
B0 04 10 5B  OPC_SW_REQ
B0 05 10 5A  OPC_SW_REQ
B0 06 10 59  OPC_SW_REQ
B0 07 10 58  OPC_SW_REQ
B0 04 30 7B  OPC_SW_REQ
B0 05 30 7A  OPC_SW_REQ
B4 30 00 7B  Intellibox Buffer Full!
B0 06 30 79  OPC_SW_REQ
B4 30 00 7B  Intellibox Buffer Full!
B0 07 30 78  OPC_SW_REQ
B4 30 00 7B  Intellibox Buffer Full!
B0 05 00 4A  OPC_SW_REQ

B0 06 00 49  OPC_SW_REQ

B0 07 00 48  OPC_SW_REQ

B0 04 20 6B  OPC_SW_REQ

B0 05 20 6A  OPC_SW_REQ

B0 06 20 69  OPC_SW_REQ

B0 07 20 68  OPC_SW_REQ

B0 02 00 4D  OPC_SW_REQ

B0 03 00 4C  OPC_SW_REQ

B0 04 00 4B  OPC_SW_REQ

B0 05 00 4A  OPC_SW_REQ

B0 06 00 49  OPC_SW_REQ

B0 07 00 48  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 mith » 18.09.2012, 19:18

Hello,

some problems with IB and the Command-Buffer occur if the timing is not correct or some commands will get lost. Very important here is the "off" command of a switch command. If it is lost, the buffer will not become free until IB reset!
See this post and read the section about the switching commands and the timing.
http://forum.rocrail.net/viewtopic.php? ... highlight=

When I developed a little software to manually control my layout (switches and loco, no feedbacks) via seriel bus of the IB, I have first often seen "buffer overflows" of IB. It depends on bus speed and some more options. It´s better to use loconet here, as You can also read in the wiki.

Now I use the loconet interface with rocrail (but would simultaniusly be able to use my software anyway as a throttle device) and all runs well.

Michael
mith
 

Postby rjversluis » 18.09.2012, 20:51

Hi Nuccio,

Code: Select all
B0 05 30 7A  OPC_SW_REQ
B4 30 00 7B  Intellibox Buffer Full!

How long should Rocrail wait before resending the switch command? The IB does not tell when it can process commands again.
You could use the route switch time to reduce the switch command through put.
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 Buddace » 18.09.2012, 21:06

rjversluis wrote:Hi Nuccio,

Code: Select all
B0 05 30 7A  OPC_SW_REQ
B4 30 00 7B  Intellibox Buffer Full!

How long should Rocrail wait before resending the switch command? The IB does not tell when it can process commands again.

Place setting for this parameter...actually solution is not robust.
Is better stop and wait correct response than lost some command switch.
If off command is not sent by intellibox and error is handle I think is good idea set red switch...like feedback position error.

You could use the route switch time to reduce the switch command through put.

Already used long route switch time ...and don't solve problem (check other post attachment)....was my first idea during exhibition
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 » 18.09.2012, 21:11

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 Buddace » 18.09.2012, 21:25

rjversluis wrote:https://bugs.launchpad.net/rocrail/+bug/1052646

Thanks.
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 » 20.09.2012, 22:04

Test conditions: two locobufffer without Intellibox. First for Rocrail , second for log.
May Be work!
Can set delay retry and times retry like parameter? I think be times retry is IB max switch off time.
Code: Select all
23.02.57.54 [RX] - B0 00 30 7F  OPC_SW_REQ

23.02.57.54 [TX] - B4 30 00 7B
23.02.57.56 [RX] - B4 30 00 7B  Intellibox Buffer Full!

23.02.57.70 [RX] - B0 00 30 7F  OPC_SW_REQ

23.02.57.70 [TX] - B4 30 00 7B
23.02.57.71 [RX] - B4 30 00 7B  Intellibox Buffer Full!

23.02.57.85 [RX] - B0 00 30 7F  OPC_SW_REQ

23.02.57.85 [TX] - B4 30 00 7B
23.02.57.87 [RX] - B4 30 00 7B  Intellibox Buffer Full!

23.02.58.01 [RX] - B0 00 30 7F  OPC_SW_REQ

23.02.58.01 [TX] - B4 30 00 7B
23.02.58.03 [RX] - B4 30 00 7B  Intellibox Buffer Full!

23.02.58.17 [RX] - B0 00 30 7F  OPC_SW_REQ

23.02.58.17 [TX] - B4 30 00 7B
23.02.58.18 [RX] - B4 30 00 7B  Intellibox Buffer Full!

23.02.58.32 [RX] - B0 00 30 7F  OPC_SW_REQ

23.02.58.32 [TX] - B4 30 00 7B
23.02.58.32 [RX] - B4 30 00 7B  Intellibox Buffer Full!

23.02.58.48 [RX] - B0 00 30 7F  OPC_SW_REQ

23.02.58.48 [TX] - B4 30 00 7B
23.02.58.48 [RX] - B4 30 00 7B  Intellibox Buffer Full!

23.02.58.64 [RX] - B0 00 30 7F  OPC_SW_REQ

23.02.58.64 [TX] - B4 30 00 7B
23.02.58.64 [RX] - B4 30 00 7B  Intellibox Buffer Full!

23.02.58.79 [RX] - B0 00 30 7F  OPC_SW_REQ

23.02.58.79 [TX] - B4 30 00 7B
23.02.58.79 [RX] - B4 30 00 7B  Intellibox Buffer Full!

23.02.58.95 [RX] - B0 00 30 7F  OPC_SW_REQ

23.02.58.95 [TX] - B4 30 00 7B
23.02.58.95 [RX] - B4 30 00 7B  Intellibox Buffer Full!

23.02.59.10 [RX] - B0 00 30 7F  OPC_SW_REQ

23.02.59.10 [TX] - B4 30 00 7B
23.02.59.10 [RX] - B4 30 00 7B  Intellibox Buffer Full!

23.03.00.04 [RX] - B0 0A 30 75  OPC_SW_REQ

23.03.00.56 [RX] - B0 1C 00 53  OPC_SW_REQ

23.03.01.09 [RX] - B0 1D 20 72  OPC_SW_REQ

23.03.01.60 [RX] - B0 1C 20 73  OPC_SW_REQ

23.03.02.14 [RX] - B0 00 00 4F  OPC_SW_REQ

23.03.02.65 [RX] - B0 1C 10 43  OPC_SW_REQ

23.03.03.18 [RX] - B0 0E 0E 4F  OPC_SW_REQ

23.03.03.70 [RX] - B0 1F 20 70  OPC_SW_REQ

23.03.04.23 [RX] - B0 1E 20 71  OPC_SW_REQ

23.03.04.75 [RX] - B0 1E 00 51  OPC_SW_REQ

23.03.05.28 [RX] - B0 1E 10 41  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 » 21.09.2012, 06:55

Hi Nuccio,

starting with revision 3955 both parameters can be fine tuned.

http://wiki.rocrail.net/doku.php?id=loc ... etails_tab
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 Buddace » 19.11.2012, 14:20

rjversluis wrote:Hi Nuccio,

starting with revision 3955 both parameters can be fine tuned.

http://wiki.rocrail.net/doku.php?id=loc ... etails_tab

Hi rob great test during last exhibition.....problem was solved with this fix!
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
 


Return to Loconet

cron