Loconet LocoIOKabelLocobufferMonitorVerschiedenes
Pfad: mknetz/Eisenbahn/Digital/Loconet
Impressum
Autor: Klaus Merkert
Letzte Änderung dieser Seite: 10.01.2018 12:25:31 3408

Dispatchvorgang für Fremo-Fred oder -Fredi an Intellibox 1

Der Vorgang ist in der LocoNet Personal Use Edition 1.0 SPECIFICATION auf page 6/7 beschrieben. Im Rocrail-Wiki findet man eine 1:1 deutsche Übersetzung

Es wird ein Arduino Uno zusammen mit einem Fremo-LN-Shield als Hardware und JMRI mit dem Loconet-Monitor zur Darstellung benutzt.

Am linken Regler wurde 2901 eingerichtet und dann am rechten 1234. Dargestellt ist die Ausgabe nach Drücken der lok#-Taste rechts.

15:48:37.985: [ED 0F 01 49 42 0D 01 52 04 00 00 00 00 00 4D]  Undefined Send Packet Immediate, 3rd byte id 0x1 not 0x7f.
contents: ED 0F 01 49 42 0D 01 52 04 00 00 00 00 00 4D
15:48:37.986: [81 7E]  Master is busy.
15:48:37.986: [81 7E]  Master is busy.
15:48:37.989: [81 7E]  Master is busy.
15:48:37.989: [81 7E]  Master is busy.
15:48:38.006: [E5 0F 00 49 4B 0B 15 52 04 52 11 52 04 78 32]  Message with opcode 0xE5 and unknown format.contents: E5 0F 00 49 4B 0B 15 52 04 52 11 52 04 78 32
15:48:38.011: [BE 09 52 1A]  Unable to parse command.
contents: BE 09 52 1A
15:48:38.011: [81 7E]  Master is busy.
15:48:38.014: [81 7E]  Master is busy.
15:48:38.015: [81 7E]  Master is busy.
15:48:38.018: [81 7E]  Master is busy.
15:48:38.035: [E6 15 00 02 20 52 09 07 00 00 00 00 00 00 00 00 00 00 00 00 72]  Read extended slot (Write reply): slot 2 stat 32 addr 1234 speed 0.
15:48:38.038: [BA 02 02 45]  Set status of slot 2 to IN_USE.
15:48:38.052: [E7 0E 02 30 52 00 00 07 00 09 00 00 00 78]  Response slot 2 information:
	Loco 1234 is Not Consisted, In-Use, operating in 28 SS mode, and is going Forward at speed 0,
	F0=Off, F1=Off, F2=Off, F3=Off, F4=Off, Sound1/F5=Off, Sound2/F6=Off, Sound3/F7=Off, Sound4/F8=Off
	Master: LocoNet 1.1; Track: On; Programming Track: Available; SS2=0x0, ThrottleID=0x0 0x0 (0)
15:48:38.064: [EF 0E 02 30 52 00 00 07 00 09 00 00 00 70]  Request slot 2 information:
	Loco 1234 is Not Consisted, In-Use, operating in 28 SS mode, and is going Forward at speed 0,
	F0=Off, F1=Off, F2=Off, F3=Off, F4=Off, Sound1/F5=Off, Sound2/F6=Off, Sound3/F7=Off, Sound4/F8=Off
	Master: LocoNet 1.1; Track: On; Programming Track: Available; SS2=0x0, ThrottleID=0x0 0x0 (0)
15:48:38.064: [81 7E]  Master is busy.
15:48:38.067: [B4 6F 7F 5B]  LONG_ACK: Function not implemented, no reply will follow.
15:48:38.075: [A0 02 00 5D]  Set speed of loco in slot 2 to 0.
15:48:53.606: [A0 01 00 5E]  Set speed of loco in slot 1 to 0.
15:49:27.994: [A0 02 00 5D]  Set speed of loco in slot 2 to 0.
15:49:43.519: [A0 01 00 5E]  Set speed of loco in slot 1 to 0.

Slot 2 wird durch Löschen der Lok im rechten Regler als 'Dispatch Slot' markiert.

16:14:40.832: [A0 01 00 5E]  Set speed of loco in slot 1 to 0.
16:14:42.126: [B5 02 10 58]  Write slot 2 with status value 16 (0x10) - Loco is Not Consisted, Common
	and operating in 28 speed step mode.
16:14:43.846: [BF 09 52 1B]  Request slot for loco address 1234.
16:14:43.846: [81 7E]  Master is busy.
16:14:43.859: [E7 0E 02 10 52 00 00 07 00 09 00 00 00 58]  Response slot 2 information:
	Loco 1234 is Not Consisted, Common, operating in 28 SS mode, and is going Forward at speed 0,
	F0=Off, F1=Off, F2=Off, F3=Off, F4=Off, Sound1/F5=Off, Sound2/F6=Off, Sound3/F7=Off, Sound4/F8=Off
	Master: LocoNet 1.1; Track: On; Programming Track: Available; SS2=0x0, ThrottleID=0x0 0x0 (0)
16:14:47.656: [BA 02 00 47]  Mark slot 2 as DISPATCHED.
16:14:47.660: [81 7E]  Master is busy.
16:14:47.672: [E7 0E 02 20 52 00 00 07 00 09 00 00 00 68]  Response slot 2 information:
	Loco 1234 is Not Consisted, Idle, operating in 28 SS mode, and is going Forward at speed 0,
	F0=Off, F1=Off, F2=Off, F3=Off, F4=Off, Sound1/F5=Off, Sound2/F6=Off, Sound3/F7=Off, Sound4/F8=Off
	Master: LocoNet 1.1; Track: On; Programming Track: Available; SS2=0x0, ThrottleID=0x0 0x0 (0)

Jetzt kann die Adresse in den Fred übernommen werden.

16:16:23.052: [BA 00 00 45]  Get most recently dispatched slot.
16:16:23.056: [81 7E]  Master is busy.
16:16:23.069: [E7 0E 02 30 52 00 00 07 00 09 00 00 00 78]  Response slot 2 information:
	Loco 1234 is Not Consisted, In-Use, operating in 28 SS mode, and is going Forward at speed 0,
	F0=Off, F1=Off, F2=Off, F3=Off, F4=Off, Sound1/F5=Off, Sound2/F6=Off, Sound3/F7=Off, Sound4/F8=Off
	Master: LocoNet 1.1; Track: On; Programming Track: Available; SS2=0x0, ThrottleID=0x0 0x0 (0)
16:16:23.085: [EF 0E 02 30 52 01 00 07 00 09 00 10 5A 3B]  Request slot 2 information:
	Loco 1234 is Not Consisted, In-Use, operating in 28 SS mode, and is going Forward at speed 1,
	F0=Off, F1=Off, F2=Off, F3=Off, F4=Off, Sound1/F5=Off, Sound2/F6=Off, Sound3/F7=Off, Sound4/F8=Off
	Master: LocoNet 1.1; Track: On; Programming Track: Available; SS2=0x0, ThrottleID=0x5a 0x10 (11536)
16:16:23.086: [B4 6F 7F 5B]  LONG_ACK: Function not implemented, no reply will follow.
16:16:23.093: [A0 02 00 5D]  Set speed of loco in slot 2 to 0.
16:16:23.233: [A0 02 00 5D]  Set speed of loco in slot 2 to 0.
16:16:48.151: [A0 02 00 5D]  Set speed of loco in slot 2 to 0.

Das E7-Kommando ist SLOT DATA RETURN. Hier scheint der Slotserver die Slotdaten auf den Bus zu schreiben. Eine ThrottleID kennt er zu diesem Zeitpunkt nicht. Das folgende EF-Kommando WRITE SLOT DATA scheint vom Fred zu kommen. Es enthält die ThrottleID, die in den Slot geschrieben wird.

Zieht man den Fred ab und steckt in wieder an, so passiert Folgendes:

16:24:59.355: [BF 09 52 1B]  Request slot for loco address 1234.
16:24:59.360: [81 7E]  Master is busy.
16:24:59.372: [E7 0E 02 30 52 00 00 07 00 09 00 10 5A 32]  Response slot 2 information:
	Loco 1234 is Not Consisted, In-Use, operating in 28 SS mode, and is going Forward at speed 0,
	F0=Off, F1=Off, F2=Off, F3=Off, F4=Off, Sound1/F5=Off, Sound2/F6=Off, Sound3/F7=Off, Sound4/F8=Off
	Master: LocoNet 1.1; Track: On; Programming Track: Available; SS2=0x0, ThrottleID=0x5a 0x10 (11536)
16:24:59.384: [EF 0E 02 30 52 00 00 07 00 09 00 10 5A 3A]  Request slot 2 information:
	Loco 1234 is Not Consisted, In-Use, operating in 28 SS mode, and is going Forward at speed 0,
	F0=Off, F1=Off, F2=Off, F3=Off, F4=Off, Sound1/F5=Off, Sound2/F6=Off, Sound3/F7=Off, Sound4/F8=Off
	Master: LocoNet 1.1; Track: On; Programming Track: Available; SS2=0x0, ThrottleID=0x5a 0x10 (11536)
16:24:59.384: [81 7E]  Master is busy.
16:24:59.388: [B4 6F 7F 5B]  LONG_ACK: Function not implemented, no reply will follow.
16:24:59.392: [A0 02 00 5D]  Set speed of loco in slot 2 to 0.

Die Freigabe der Adresse im Fred sieht so aus:

16:30:00.771: [A0 02 01 5C]  Set speed of loco in slot 2 to EMERGENCY STOP!
16:30:00.918: [A0 02 00 5D]  Set speed of loco in slot 2 to 0.
16:30:02.668: [EF 0E 02 20 52 01 00 07 00 09 00 10 5A 2B]  Request slot 2 information:
	Loco 1234 is Not Consisted, Idle, operating in 28 SS mode, and is going Forward at speed 1,
	F0=Off, F1=Off, F2=Off, F3=Off, F4=Off, Sound1/F5=Off, Sound2/F6=Off, Sound3/F7=Off, Sound4/F8=Off
	Master: LocoNet 1.1; Track: On; Programming Track: Available; SS2=0x0, ThrottleID=0x5a 0x10 (11536)
16:30:02.668: [B4 6F 7F 5B]  LONG_ACK: Function not implemented, no reply will follow.

Steckt man einen Fred mit einer Adresse an, die bisher keinem Slot zugeordnet ist, so wird ein neuer Slot erzeugt und dem Fred zugeordnet.

16:32:49.693: [BF 10 66 36]  Request slot for loco address 2150.
16:32:49.697: [81 7E]  Master is busy.
16:32:49.697: [81 7E]  Master is busy.
16:32:49.702: [81 7E]  Master is busy.
16:32:49.706: [81 7E]  Master is busy.
16:32:49.714: [E7 0E 03 20 66 00 00 07 00 10 00 00 00 44]  Response slot 3 information:
	Loco 2150 is Not Consisted, Idle, operating in 28 SS mode, and is going Forward at speed 0,
	F0=Off, F1=Off, F2=Off, F3=Off, F4=Off, Sound1/F5=Off, Sound2/F6=Off, Sound3/F7=Off, Sound4/F8=Off
	Master: LocoNet 1.1; Track: On; Programming Track: Available; SS2=0x0, ThrottleID=0x0 0x0 (0)
16:32:49.718: [BA 03 03 45]  Set status of slot 3 to IN_USE.
16:32:49.722: [81 7E]  Master is busy.
16:32:49.734: [E7 0E 03 30 66 00 00 07 00 10 00 00 00 54]  Response slot 3 information:
	Loco 2150 is Not Consisted, In-Use, operating in 28 SS mode, and is going Forward at speed 0,
	F0=Off, F1=Off, F2=Off, F3=Off, F4=Off, Sound1/F5=Off, Sound2/F6=Off, Sound3/F7=Off, Sound4/F8=Off
	Master: LocoNet 1.1; Track: On; Programming Track: Available; SS2=0x0, ThrottleID=0x0 0x0 (0)
16:32:49.743: [EF 0E 03 30 66 00 00 07 00 10 00 55 77 7E]  Request slot 3 information:
	Loco 2150 is Not Consisted, In-Use, operating in 28 SS mode, and is going Forward at speed 0,
	F0=Off, F1=Off, F2=Off, F3=Off, F4=Off, Sound1/F5=Off, Sound2/F6=Off, Sound3/F7=Off, Sound4/F8=Off
	Master: LocoNet 1.1; Track: On; Programming Track: Available; SS2=0x0, ThrottleID=0x77 0x55 (15317)
16:32:49.747: [B4 6F 7F 5B]  LONG_ACK: Function not implemented, no reply will follow.

Hat ein weiterer Fred die gleiche Adresse wie ein schon vergebener Slot, so wird der Fred nicht akzeptiert.

16:49:10.510: [BF 10 66 36]  Request slot for loco address 2150.
16:49:10.510: [81 7E]  Master is busy.
16:49:10.522: [E7 0E 01 30 66 00 10 07 00 10 00 56 77 67]  Response slot 1 information:
	Loco 2150 is Not Consisted, In-Use, operating in 28 SS mode, and is going Forward at speed 0,
	F0=On,  F1=Off, F2=Off, F3=Off, F4=Off, Sound1/F5=Off, Sound2/F6=Off, Sound3/F7=Off, Sound4/F8=Off
	Master: LocoNet 1.1; Track: On; Programming Track: Available; SS2=0x0, ThrottleID=0x77 0x56 (15318)

Vielleicht ist es so, dass der Slotserver mit den Slot-Informationen antwortet, die auch die Throttle-ID enthalten, und der Fred merkt, dass das nicht seine ID ist, und die eigene, ja bereits vergebene, Adresse löscht. Jedenfalls wird die LED am Fred rot.

Links