Hallo Eddch,
Eddch wrote: Tue Sep 21, 2021 9:24 am
Die Installation und Kompilierung haben funktioniert. Aber es ist immer das selbe wenn ich die Arduino Zentrale einrichte und mit dem Haken bestätige bricht das Programm sofort ab.
Mir ist noch nicht klar, ob der RailControl Server bei Dir korrekt läuft und wann das Programm (Welches genau?) abbricht.
Du musst unter cygwin in das Verzeichnis railcontrol wechseln und danach mit dem Befehl "./railcontrol.exe" den Server starten.
Erst dann kannst Du mit dem Browser "
http://127.0.0.1:8082/" auf den laufenden Server zugreifen und zwar auch ohne dass irgendeine Zentrale angeschlossen ist. Danach kannst Du den arduino anschließen und anfangen die Kommunikation zwichen Railcontrol und arduino mittels Browser zu konfigurieren...
MfG
vik
Bei mir sieht das dann wie folgt aus:
Viktor@MoBa01-Lisa ~
$ cd railcontrol
Viktor@MoBa01-Lisa ~/railcontrol
$ ./railcontrol.exe
2021-09-21 11:13:39.694801: Info: Main: Starting RailControl
2021-09-21 11:13:39.753136: Info: Main: Version: 20
2021-09-21 11:13:39.771714: Info: Main: Compile date: 2021-08-15 21:51:14
2021-09-21 11:13:39.771802: Info: Main: Last GIT commit hash: d2c7ebd7512bcf5ef16c5c2451bd578f38c5e1c9
2021-09-21 11:13:39.771849: Info: Main: Last GIT commit date: 2021-08-15 18:31:21
2021-09-21 11:13:39.771894: Info: Main: GIT working directory has 1 changed files since last commit.
2021-09-21 11:13:39.773352: Info: Config: Reading config file railcontrol.conf
2021-09-21 11:13:39.794985: Info: Config: Parameter found in config file: dbfilename = railcontrol.sqlite
2021-09-21 11:13:39.795093: Info: Config: Parameter found in config file: dbkeepbackups = 10
2021-09-21 11:13:39.795154: Info: Config: Parameter found in config file: webserveraddress = any
2021-09-21 11:13:39.795217: Info: Config: Parameter found in config file: webserverport = 8082
2021-09-21 11:13:39.799249: Info: SQLite: Opening SQLite database with filename railcontrol.sqlite
2021-09-21 11:13:39.882672: Info: SQLite: relations is up to date
2021-09-21 11:13:39.884312: Debug: SQLite: Query: SELECT value FROM settings WHERE key = 'Language';
2021-09-21 11:13:39.884837: Debug: SQLite: Abfrage: SELECT value FROM settings WHERE key = 'DefaultAccessoryDuration';
2021-09-21 11:13:39.885445: Debug: SQLite: Abfrage: SELECT value FROM settings WHERE key = 'AutoAddFeedback';
2021-09-21 11:13:39.886055: Debug: SQLite: Abfrage: SELECT value FROM settings WHERE key = 'StopOnFeedbackInFreeTrack';
2021-09-21 11:13:39.886538: Debug: SQLite: Abfrage: SELECT value FROM settings WHERE key = 'SelectRouteApproach';
2021-09-21 11:13:39.886948: Debug: SQLite: Abfrage: SELECT value FROM settings WHERE key = 'NrOfTracksToReserve';
2021-09-21 11:13:39.907187: Info: WebServer: Webserver wurde gestartet
2021-09-21 11:13:39.984520: Info: WebServer: Bitte einer der folgenden Links im Browser eingeben um sich mit RailControl zu verbinden:
http://localhost:8082/
http://192.168.0.120:8082/
http://192.168.23.100:8082/
http://127.0.0.1:8082/
http://[fe80:

436b:ed4f:2b8e]:8082/
http://[fe80::ec16

1e5c:edb0]:8082/
http://[::1]:8082/
2021-09-21 11:13:40.170579: Debug: SQLite: Abfrage: SELECT controlid, hardwaretype, name, arg1, arg2, arg3, arg4, arg5 FROM hardware ORDER BY controlid;
2021-09-21 11:13:40.173856: Info: DCCpp: Empfangs-Thread gestartet
2021-09-21 11:13:40.174225: Error: DCCpp: Serieller Anschluss /dev/ttyS22 kann nicht geöffnet werden
2021-09-21 11:13:40.174266: Info: DCCpp: Starte Dcc++EX Serial / DCCpp at serial port /dev/ttyS22
2021-09-21 11:13:40.174319: Info: Manager: Zentrale 10 geladen: DCCpp
2021-09-21 11:13:40.174668: Error: DCCpp: Daten empfangen nicht möglich
2021-09-21 11:13:40.175096: Debug: SQLite: Abfrage: SELECT object FROM objects WHERE objecttype = 7 ORDER BY objectid;
2021-09-21 11:13:40.175698: Debug: DCCpp:
2021-09-21 11:13:40.175753: Info: DCCpp: Beende Empfangs-Thread
2021-09-21 11:13:40.176066: Info: Manager: Schicht 1 geladen: Layer 1
2021-09-21 11:13:40.176658: Debug: SQLite: Abfrage: SELECT object FROM objects WHERE objecttype = 11 ORDER BY objectid;
2021-09-21 11:13:40.177113: Debug: SQLite: Abfrage: SELECT object FROM objects WHERE objecttype = 4 ORDER BY objectid;
2021-09-21 11:13:40.177560: Debug: SQLite: Abfrage: SELECT object FROM objects WHERE objecttype = 3 ORDER BY objectid;
2021-09-21 11:13:40.178465: Info: Manager: Rückmelder 1 geladen: RM01
2021-09-21 11:13:40.178510: Info: Manager: Rückmelder 2 geladen: RM02
2021-09-21 11:13:40.178548: Info: Manager: Rückmelder 3 geladen: 03
2021-09-21 11:13:40.178586: Info: Manager: Rückmelder 4 geladen: 04
2021-09-21 11:13:40.178623: Info: Manager: Rückmelder 5 geladen: 04-
2021-09-21 11:13:40.178659: Info: Manager: Rückmelder 6 geladen: Neu
2021-09-21 11:13:40.178696: Info: Manager: Rückmelder 7 geladen: 07
2021-09-21 11:13:40.178733: Info: Manager: Rückmelder 8 geladen: 08
2021-09-21 11:13:40.178770: Info: Manager: Rückmelder 9 geladen: 16
2021-09-21 11:13:40.179239: Debug: SQLite: Abfrage: SELECT object FROM objects WHERE objecttype = 8 ORDER BY objectid;
2021-09-21 11:13:40.179695: Debug: SQLite: Abfrage: SELECT object FROM objects WHERE objecttype = 2 ORDER BY objectid;
2021-09-21 11:13:40.180407: Debug: SQLite: Abfrage: SELECT relation FROM relations WHERE type = 16 AND objectid1 = 1 ORDER BY priority ASC;
2021-09-21 11:13:40.181017: Debug: SQLite: Abfrage: SELECT relation FROM relations WHERE type = 16 AND objectid1 = 2 ORDER BY priority ASC;
2021-09-21 11:13:40.181068: Info: Manager: Gleis 1 geladen: A
2021-09-21 11:13:40.181108: Info: Manager: Gleis 2 geladen: B
2021-09-21 11:13:40.181513: Debug: SQLite: Abfrage: SELECT object FROM objects WHERE objecttype = 5 ORDER BY objectid;
2021-09-21 11:13:40.181917: Debug: SQLite: Abfrage: SELECT object FROM objects WHERE objecttype = 9 ORDER BY objectid;
2021-09-21 11:13:40.182333: Debug: SQLite: Abfrage: SELECT object FROM objects WHERE objecttype = 6 ORDER BY objectid;
2021-09-21 11:13:40.183814: Debug: SQLite: Abfrage: SELECT relation FROM relations WHERE type = 48 AND objectid1 = 1 ORDER BY priority ASC;
2021-09-21 11:13:40.184312: Debug: SQLite: Abfrage: SELECT relation FROM relations WHERE type = 49 AND objectid1 = 1 ORDER BY priority ASC;
2021-09-21 11:13:40.184865: Debug: SQLite: Abfrage: SELECT relation FROM relations WHERE type = 48 AND objectid1 = 2 ORDER BY priority ASC;
2021-09-21 11:13:40.185290: Debug: SQLite: Abfrage: SELECT relation FROM relations WHERE type = 49 AND objectid1 = 2 ORDER BY priority ASC;
2021-09-21 11:13:40.185342: Info: Manager: Fahrstrasse 1 geladen: A>B
2021-09-21 11:13:40.185381: Info: Manager: Fahrstrasse 2 geladen: B>A
2021-09-21 11:13:40.185796: Debug: SQLite: Abfrage: SELECT object FROM objects WHERE objecttype = 1 ORDER BY objectid;
2021-09-21 11:13:40.189666: Debug: SQLite: Abfrage: SELECT relation FROM relations WHERE type = 8 AND objectid1 = 1 ORDER BY priority ASC;
2021-09-21 11:13:40.189750: Info: Manager: Lokomotive 1 geladen: DGH-3280
2021-09-21 11:13:40.190949: Info: Manager: Entprellthread gestartet
2021-09-21 11:13:41.198965: Debug: DCCpp: 0x0000 3c 74 20 31 20 33 32 38 30 20 30 20 31 3e <t 1 328 0 0 1>
2021-09-21 11:13:41.226833: Debug: DCCpp: 0x0000 3c 74 20 31 20 33 32 38 30 20 30 20 31 3e <t 1 328 0 0 1>
2021-09-21 11:13:41.257432: Debug: DCCpp: 0x0000 3c 46 20 33 32 38 30 20 30 20 30 3e <F 3280 0 0>