Rocrail ignores cbus sensor events

http://www.merg.org.uk/merg_resources/cbus.php
Post Reply
MikeBr
Posts: 18
Joined: 08.07.2016, 18:33

Rocrail ignores cbus sensor events

Post by MikeBr » 05.10.2016, 21:08

I need some help in finding out why the cbus sensor events are being ignored. The event is being recognized but nothing happens as a result. The loco leaves one block, enters the next block but Rocrail still thinks it is the first. The loco then passes through the next block without stopping as requested or being displayed in the block it is passing through it.
Any helpful suggestion as how to progress, welcome

example event processing
20161005.125705.358 r9999c cbreader OCBUS 0704 short event 0:1042 OFF
20161005.125724.132 r9999B cbreader OCBUS 0065 HEXA=[98]
20161005.125724.132 r0000B cbreader OCBUS *trace dump( 0x0473FE94: length=9 )
offset: 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F |ASCII...........|
--------------------------------------------------------- |----------------|
00000000: 3A 53 42 30 41 30 4E 39 38 |:SB0A0N98 |
20161005.125724.132 r0000B cbreader OCBUS *trace dump( 0x0473FE94: length=18 )
offset: 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F |ASCII...........|
--------------------------------------------------------- |----------------|
00000000: 3A 53 42 30 41 30 4E 39 38 30 30 30 30 30 34 30 |:SB0A0N980000040|
00000010: 31 3B |1; |
20161005.125724.132 r9999B cbreader OCBUS 0065 HEXA=[B0]
20161005.125724.132 r9999B cbreader OCBUS 0065 HEXA=[A0]
20161005.125724.148 r9999B cbreader OCBUS 0065 HEXA=[00]
20161005.125724.148 r9999B cbreader OCBUS 0065 HEXA=[00]
20161005.125724.148 r9999B cbreader OCBUS 0065 HEXA=[04]
20161005.125724.148 r9999B cbreader OCBUS 0065 HEXA=[01]
20161005.125724.148 r9999B cbreader OCBUS 0065 HEXA=[;]
20161005.125724.148 r9999B cbreader OCBUS 0065 HEXA=[]
20161005.125724.148 r9999B cbreader OCBUS 0065 HEXA=[]
20161005.125724.148 r9999B cbreader OCBUS 0180 [005] evaluate OPC=0x98 data=00000401000000
20161005.125724.148 r9999B cbreader OCBUS 0065 HEXA=[00]
20161005.125724.148 r9999B cbreader OCBUS 0065 HEXA=[00]
20161005.125724.148 r9999B cbreader OCBUS 0065 HEXA=[04]
20161005.125724.148 r9999B cbreader OCBUS 0065 HEXA=[01]


Would access to the source code enable me to debug this sensor problem?

Regards
Mike
Attachments
layout_mk6_good_events.zip
zipped copy of the plan, including trace files
(36.24 KiB) Not downloaded yet

rjversluis
Site Admin
Posts: 39369
Joined: 10.04.2006, 08:48
Location: Speyer, Germany
Contact:

Re: Rocrail ignores cbus sensor events

Post by rjversluis » 06.10.2016, 07:08

Mike,

turn the Byte trace level of and add the Automatic level trace.
Attach the new trace here.

You probably do not have defined a sensor with bus=0 and address=1024.

Use the sensor monitor.

MikeBr
Posts: 18
Joined: 08.07.2016, 18:33

Re: Rocrail ignores cbus sensor events

Post by MikeBr » 08.10.2016, 13:09

Hi
Change trace settings as requested. Also insreased delay between ON and OFF events.
The OFF events seems to be the problem I think

20161008.110103.452 r9999c cbreader OCBUS 0704 short event 0:1042 OFF
20161008.110103.452 r9999a 00001C3C OModel 4337 trying to match sensor event: [cbus-1] 0:1042 uidname=[] state=0 code=
20161008.110103.821 r9999a timedoff OFBack 0924 timed off event for tvbk10s+
20161008.110103.836 r9999a timedoff OFBack 0950 fb [tvbk10s+](OFF) val=0 count=1 call listener 2D8E56C...
20161008.110103.836 r9999a timedoff OBlock 0589 no fbevent found by key tvbk10s+-ep-
20161008.110103.852 r9999a timedoff OBlock 0604 Block [tvbk10] no event found for fromBlockId [?], try to find one for all with key [tvbk10s+-ep-all]...
20161008.110103.852 r9999a timedoff OBlock 0610 Block[tvbk10] id=tvbk10s+ fbid=tvbk10s+-ep-all state=false code= fbfrom=NULL fbaction=? from=? byroute=?
20161008.110103.852 r9999a timedoff OBlock 0663 loco [shunter_3162] found
20161008.110103.852 r9999a timedoff OBlock 0932 unhandled sensor [tvbk10s+-ep-all] in block [tvbk10]! puls=[0], code=[], ghost=[0], loc=[shunter_3162], fromBlockId=[NULL]

Hope this trace help to clarify the problem
Regards
Mike
Attachments
rocrail_trace.zip
trace files
(17.77 KiB) Downloaded 1 time

rjversluis
Site Admin
Posts: 39369
Joined: 10.04.2006, 08:48
Location: Speyer, Germany
Contact:

Re: Rocrail ignores cbus sensor events

Post by rjversluis » 08.10.2016, 16:39

It seems that you have a setup problem in block tvbk10.

CBUS is often used in combination with Rocrail; No issues known.
I also have a test setup with CBUS; No issues with sensors.

MikeBr
Posts: 18
Joined: 08.07.2016, 18:33

Re: Rocrail ignores cbus sensor events

Post by MikeBr » 10.10.2016, 21:53

I manually editted the xml file and removed the unwanted entries.
Also fixed other block which had lost their event entries.
The train now run from tvbk10 to lincbk2 correctly.

Thanks
Mike

Post Reply

Return to “mergCBUS”