Solved faulty handling CAN packet Lok Discovery?

Märklin Central Station 2

Solved faulty handling CAN packet Lok Discovery?

Postby 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.
Regards,

Bert

Equipment: Roco WLANMaus, MS2, Gleisbox 2x(separated switch & rollingstock). Ubuntu 16. Edits booster. Arduino: S88 CANbus interface & Ethernet-CANbus gateway
woodyboy
 

Postby rjversluis » 23.12.2013, 10:00

I removed that trace line.
It was at BYTE trace level which normal users do not use anyway...
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 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.
Regards,

Bert

Equipment: Roco WLANMaus, MS2, Gleisbox 2x(separated switch & rollingstock). Ubuntu 16. Edits booster. Arduino: S88 CANbus interface & Ethernet-CANbus gateway
woodyboy
 


Return to CS2