Solved faulty handling CAN packet Lok Discovery?

Märklin Central Station 2
Post Reply
woodyboy
Posts: 628
Joined: 18.11.2013, 16:01

Solved faulty handling CAN packet Lok Discovery?

Post by woodyboy » 22.12.2013, 23:33

Rocrail sends periodically the command Lok Discovery. If no loc is on track, the GFP responds according the specification with DLC=0, but Rocrail remarks the packet as an echo.

Rocrail version: 6562

See the Rocrail trace:

Code: Select all

    offset:   00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F |ASCII...........|
    --------------------------------------------------------- |----------------|
    00000000: 00 02 03 00 01 60 00 00 00 00 00 00 00          |.....`.......   |
20131222.232315.646 r0000B mcs2read (null)   *trace dump( 0x0509FEC4: length=13)
    offset:   00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F |ASCII...........|
    --------------------------------------------------------- |----------------|
    00000000: 00 03 23 09 00 00 00 00 00 00 00 00 00          |..#..........   |
20131222.232315.647 r9999B mcs2read OMCS2    0768 Discovery echo. dlc=0
Last edited by woodyboy on 26.12.2013, 10:40, edited 1 time in total.

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

Post by rjversluis » 23.12.2013, 10:00

I removed that trace line.
It was at BYTE trace level which normal users do not use anyway...

woodyboy
Posts: 628
Joined: 18.11.2013, 16:01

Post by woodyboy » 23.12.2013, 12:13

Hi Rob,

Hmm, I discovered it during debugging my Arduino CAN gateway sketch. So in this case I think I'm not a normal user :wink: . And yes, I configured byte logging. Thanks for solving.

Post Reply

Return to “CS2”