[SOLVED] Session timeout using Merg CBus.

http://www.merg.org.uk/merg_resources/cbus.php

[SOLVED] Session timeout using Merg CBus.

Postby neil » 07.11.2011, 09:42

Hi,

Have recently set up rocrail to control my merg cbus layout but find the session times out when the loco is idle for more than about 20 secs. There must be a way, in the setup, that I can send a refresh automatically, can someone tell me where it is. ?

rgds

Neil
:?
neil
 

Postby rjversluis » 07.11.2011, 09:48

Hi Neil,

check this option:
http://wiki.rocrail.net/doku.php?id=cbu ... purge_time

Default is 60 seconds.
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 neil » 07.11.2011, 10:05

Hi Bob,

Thanks for the quick reply,

Yes I saw the slot purge time. Did a more accurate check of timings and found that the sessions expires after 14/15 seconds of inactivity, but the purge time range is 20 to 60 seconds which is too late. !

This is using a merg c.s.

rgds

Neil
neil
 

Postby rjversluis » 07.11.2011, 10:20

Hi Neil,

I will change the range in the dialog.
In the meantime you can change the purgetime directly in the rocrail.ini.
Just Post your rocrail.ini if you need help.

BTW: Not Bob, but Rob. ;)
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 neil » 07.11.2011, 11:01

Thanks Rob,

rgds

Neil
neil
 

purge time for cbus

Postby neil » 07.11.2011, 13:56

Hi Rob,


I changed the purge time in the rocrail.ini to 10sec, but it still remains and behaves as 20sec as seen in the diaglogue.

rdgs

Neil
neil
 

Postby rjversluis » 07.11.2011, 14:03

Hi Neil,

can you post the rocrail.ini and rocrail traces? (Best way is to zip them in one file.)
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
 

purge time for cbus

Postby neil » 07.11.2011, 15:48

Hi Rob,

attached is the rocrail.ini

do not know how to send trace info.

rgds

neil
You do not have the required permissions to view the files attached to this post.
neil
 

Postby rjversluis » 07.11.2011, 17:37

Hi Neil,

I tried a purgetime of 5 seconds:
Code: Select all
20111107.173516.951 r9999I keeper   OCBUS    1355 keep session 1 for NS2433: tick=1412, lastkeep=956, purgetime=450
20111107.173521.558 r9999I keeper   OCBUS    1355 keep session 1 for NS2433: tick=1866, lastkeep=1412, purgetime=450
20111107.173526.163 r9999I keeper   OCBUS    1355 keep session 1 for NS2433: tick=2320, lastkeep=1866, purgetime=450
20111107.173530.770 r9999I keeper   OCBUS    1355 keep session 1 for NS2433: tick=2774, lastkeep=2320, purgetime=450


Seems to work well. Tested with a Merg CANCMD.
Attached is my rocrail.ini.
You do not have the required permissions to view the files attached to this post.
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
 

purge time for cbus

Postby neil » 08.11.2011, 10:11

Hi Rob,

thanks for the file- I copied it into my installation but did not improve matters. Still getting a time out after 15 sec.
It may have something to do with where the file is installed. The setup program puts the rocrail folder and the rocrail.ini into the folder c:/documents and settings / railway / and many other folders down from the root which seems very strange.
Will look into this. Many thanks for your patience.

rgds

Neil
neil
 

Postby rjversluis » 08.11.2011, 10:14

Hi Neil,

with the latest nightly build you can set it by dialog:
http://rocrail.saturnus.it/unicode/
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
 

session timeout using merg cbus

Postby neil » 09.11.2011, 09:02

Hi Rob,

Still having the same timeout problems. I have deleted all previous settings and re-installed rocrail. Using the sample provided, I have only changed the purgetime to 6 sec, the loco address to 15 and usb port to com7.

My loco is controlled correctly but still times out after 15secs.

Have attached a zip file containing trace/ini files from both rocview and roc rail.

Am using your program revision 3004

regards

Neil
You do not have the required permissions to view the files attached to this post.
neil
 

Postby rjversluis » 09.11.2011, 09:15

Hi Neil,

I think we are not discussing the same issue.
Your rocrail.ini is correct and the trace shows sending an OPC_KEEP every 6 seconds to the CANCMD. (The CANCAB sends this OPC also to keep the session alive.)

What do you mean with:

Neil wrote:My loco is controlled correctly but still times out after 15secs.
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
 

session timeout using merg cbus

Postby neil » 09.11.2011, 09:27

Hi Rob,

I am controlling the loco from the onscreen throttle and it works fine, but after 15 seconds of inactivity it does not respond and I have to quit and restart Rocrail to get control again but as before after 15 seconds of inactivity it does not respond.

rgds

Neil
neil
 

Postby rjversluis » 09.11.2011, 09:33

Hi Neil,

your trace does not show this behaviour; The session remains valid.
Try to make a (longer) trace which shows your issue.
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
 

Next

Return to mergCBUS