Hallo Rainald,
[quote="Rainald Adamski" post_id=2110118 time=1588188939 user_id=450]
Hallo zusammen,
mein letzter Post war der 150. in diesen Thread. Ich hatte/habe Probleme mit der Einbindung von Märklins LinkS88. Die Probleme vor 2 Jahren waren z.T. hausgemacht, da das Teil damals defekt war.
Nun versuche ich ein neues LinkS88 einzubinden, was mich aber wegen mangelnder Kenntnis scheitern läßt.
Ich weiß nicht wie die Einbindung funktioniert. Die Beschreibung von Gerd im Github verstehe ich nicht.
Folgendes habe ich bisher nach dem Beispiel in Github gemacht.
root@Omega-1818:~# cansend can0 00300300#
Antwort:
2
3
4
21:01:08.043 CAN 0x00311B42 [8] 43 42 00 00 01 04 00 40 Ping Antwort von S88 Gateway UID 0x43420000, Software Version 1.4
21:01:08.044 CAN 0x00316F0D [8] 47 43 4A 2F 01 29 00 10 Ping Antwort von Gleisbox UID 0x47434A2F, Software Version 1.41
21:01:08.045 CAN 0x0031231F [8] 53 38 57 27 01 00 00 40 Ping Antwort von LinkS88 UID 0x53385727, Software Version 1.0
Was ist jetzt meine ID? 43420000??? Ist die gleiche ID wie im Github beschrieben :
[/quote]das ist das integrierte S88 Gateway in der PIC Firmware. Im Grunde eine abgespeckte Version eines LinkS88. Die PIC-Firmware Version 1.4 ist schon etwas alt - 1.11 ist die aktuelle Version (Stand 30.04.2020). Du solltest ein Update machen.
Zitat
Wo stehen die Kanalnummern 2 und 3?
Wie kann ich jetzt meine beiden Busse konfigurieren? (Bus 1=2 Module a 16 Eingänge, Bus 2 3 Module a 16 Eingänge.)
Das ist der Text aus dem Github1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# Bestimmen der ID des S88 Gateways (aka CAN-Buster)
cansend can0 00300300#
# can-monitor
# 07:56:36.393 CAN 0x0031B311 [8] 43 42 55 53 01 02 00 40 Ping Antwort von S88 Gateway UID 0x43425553, Software Version 1.2
# 07:56:36.395 CAN 0x00313B6A [8] 47 43 2D 79 01 27 00 10 Ping Antwort von Gleisbox UID 0x47432D79, Software Version 1.39
# 43420000 ist hier die ID
#
# Kanal 2 Startnummer
# Kanal 3 Laenge
# Beispiel : S88 Startnummer der Kontakte 1000 (Hex 0x03D8)
cansend can0 00000300#434255530B0203D8
# 43425553 ID
# 0B Kanal Wert Setzen
# 02 Kanal Nummer 2
# 03D8 Wert
# can-monitor Output
# 07:56:29.257 CAN 0x00000300 [8] 43 42 55 53 0B 02 03 D8 System: Konfiguration UID 0x43425553 Kanal 0x02 Konfigurationswert 0x03D8
# 07:56:29.261 CAN 0x0001B311 [7] 43 42 55 53 0B 02 01 System: Konfiguration UID 0x43425553 Kanal 0x02 gültig(1)
# Beispiel : S88 Bus-Lange 2 (0x0002)
cansend can0 00000300#434255530B030002
# 43425553 ID
# 0B Kanal Wert Setzen
# 03 Kanal Nummer 3
# 0002 Wert
# can-monitor Output
# 07:55:50.394 CAN 0x00000300 [8] 43 42 55 53 0B 03 00 02 System: Konfiguration UID 0x43425553 Kanal 0x03 Konfigurationswert 0x0002
# 07:55:50.399 CAN 0x0001B311 [7] 43 42 55 53 0B 03 01 System: Konfiguration UID 0x43425553 Kanal 0x03 gültig(1)
Für etwas Nachhilfe wäre ich sehr dankbar
Das ist die Konfiguration der eingebauten PIC Firmware. Beim LnkS88 ist das etwas anders. Das wird mittels eines Programms eingestellt:
2
3
4
5
6
7
8
9
10
11
12
wake-up-links88 -h
Usage: wake-up-links88 -i <can interface>
Version 1.21
-c <config_string> config string like "B1=1,T1=10,B2=3"
means: B1=1 -> bus 1 length one module
T1=10 -> bus 1 cycle time 10ms
B2=3 -> bus 2 length three modules
-i <can int> can interface - default can0
-d daemonize
-e #no_of_links88 exit after no of LinkS88 responded - default 1
Da Dein LinkS88 schon auf CAN Ping antwortet, vermute ich, das das Programm bei Dir über /etc/init.d/wake-up-links88 bereits gestartet wird und den LinkS88 aufgeweckt wird. Du musst im Skript die Parameter entsprechend anpassen:
wake-up-links88 -dc "B1=2,B2=3" -i can0
Gruß
Gerd