Forum Replies Created

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • in reply to: Bin neu hier und habe Fragen #8530
    Andreas BrockmeyerAndreas Brockmeyer
    Participant

    klingt einleuchtend. So werde ich es dann auch machen.

    in reply to: Bin neu hier und habe Fragen #8527
    Andreas BrockmeyerAndreas Brockmeyer
    Participant

    Hallo Matthias

    Daumen hoch ! Alles funktioniert. Du hast einen “interesierten Laien” und “blutigen Anfänger” glücklich gemacht. Jetzt kann ich meinen Testaufbau mal “zusammenlöten” und in die Lok einbauen. Die Geschwindigkeit muss ich noch neu einstellen. Mit den bisherigen Werte läuft er nicht mehr richtig. Das mache ich aber erst, wenn er in der Lok ist und diese fährt.

    Eine fachliche Frage habe ich aber doch noch. Warum darf ich die controller_config.h nicht in MTC4PF_conf_BR24.h umbenennen. Dann könnte ich sofort erkennen zu welcher Lok der Controller gehört. Deine Beispieldateien heissen doch auch anders.

    Unabhängig davon habe ich in den letzten Tagen viel dazugelernt. Ich hoffe, dass ich darauf aufbauen kann. Ich weiß ja jetzt, dass man hier im Forum von Dir die nötige Unterstützung erhält(brauche ich sicherlich irgendwann noch einmal).

    Vielen Dank nochmals.

    Viele Grüsse aus dem schönen Schaumburger Land in Niedersachsen

    in reply to: Bin neu hier und habe Fragen #8525
    Andreas BrockmeyerAndreas Brockmeyer
    Participant

    Hallo Matthias
    zu 1.
    der debug mode für das serial log sieht für mich aktiv aus. Ich habe im Vergleich zu Deiner controler_config.h Datei an diesen Einstellungen nichts verändert. Oder muss ich da noch weitere Eingaben machen?.

    die network_config.h Datei sieht so aus.
    ———————————
    #include “Syslog.h”

    // MattzoController Network Configuration
    // Author: Dr. Matthias Runte
    // Copyright 2020 by Dr. Matthias Runte
    // License:
    // Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
    // The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
    // THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

    // This file contains the network configuration for the firmware
    // You need to adapt it to your specific network environment

    // *************
    // WiFi settings
    // *************

    // The SSID of your WiFi network
    const char* WIFI_SSID = “LegoLoco”;

    // The passphrase of your WiFi network
    const char* WIFI_PASSWORD = “66574790903040715323”;

    // *************
    // MQTT settings
    // *************

    // The IP address or hostname of the host on which your MQTT broker (e.g. mosquitto) is running.
    const char* MQTT_BROKER_IP = “192.168.178.20”;
    const int MQTT_BROKER_PORT = 1883;

    // MQTT keep alive interval (in seconds)
    const int MQTT_KEEP_ALIVE_INTERVAL = 10;

    // ************
    // Log settings
    // ************
    // The log levels are defined in Syslog.h of the Syslog library:
    // LOG_EMERG 0 /* system is unusable */
    // LOG_ALERT 1 /* action must be taken immediately */
    // LOG_CRIT 2 /* critical conditions */
    // LOG_ERR 3 /* error conditions */
    // LOG_WARNING 4 /* warning conditions */
    // LOG_NOTICE 5 /* normal but significant condition */
    // LOG_INFO 6 /* informational */
    // LOG_DEBUG 7 /* debug-level messages */
    // Log level for serial output. Only message with a priority of the log level or greater will be logged.

    const int LOGLEVEL_SERIAL = LOG_INFO;
    // Log level for syslog output. Only message with a priority of the log level or greater will be logged.
    const int LOGLEVEL_SYSLOG = LOG_INFO;
    // Set to true if syslog shall be enabled
    const bool SYSLOG_ENABLED = false;
    // IP address or hostname of the syslog server
    const char* SYSLOG_SERVER = MQTT_BROKER_IP;
    // Port of the syslog server
    const int SYSLOG_PORT = 514;

    // ************
    // OTA settings
    // ************

    // Password for over-the-air firmware updates
    // PLEASE CHANGE THE PASSWORD AND KEEP IT SECRET FROM EVIL PLAYMOBIL FANS!
    const char* OTA_PASSWORD = “reyemkcorb”;

    ———————————-

    zu 2.
    Meine MTC4PF_conf_BR24.h (eigentlich nur eine angepasste Kopie Deiner controller_config.h Datei) und network_config.h Datei liegen beide im Verzeichnis “my”

    in reply to: Bin neu hier und habe Fragen #8523
    Andreas BrockmeyerAndreas Brockmeyer
    Participant

    Hallo Matthias
    Vielen Dank für Deine Geduld.
    Im Serial Monitor der Arduino IDE sehe ich nur Hieroglyphen.
    In VS-Code steht folgendes:

    * Task wird im Ordner MTC4PF ausgeführt: C:\Users\reyem\.platformio\penv\Scripts\platformio.exe device monitor

    — Terminal on COM3 | 115200 8-N-1
    — Available filters and text transformations: colorize, debug, default, direct, esp8266_exception_decoder, hexlify, log2file, nocontrol, printable, send_on_enter, time
    — More details at https://bit.ly/pio-monitor-filters
    — Quit: Ctrl+C | Menu: Ctrl+T | Help: Ctrl+T followed by Ctrl+H
    ��␃�␛�o�r��o|�␄l␌�␌l ␃␜c�␛␂␄�|␂r�␂l�o�␄�o�␃␄d`␂��{�d�$␒�␄␌␌�
    MattzoController booting…
    Loaded mattzoControllerId from EEPROM: 47685
    Connecting as MTC4PF-Lok1 to Wifi LegoLoco
    MattzoController setup completed.
    stopping all locos
    Setting train speed 0 (power: 0) for motor shield index 0
    setMotorShieldPower() called with msi=0, mpi=0, desiredPower=0
    Wifi connected. My IP address is 192.168.178.21.
    (Re)connecting to MQTT 192.168.178.20…
    MQTT connected, listening on topic [rocrail/service/command].
    No action found for loco address 9990, fn2, state=0
    No action found for loco address 9990, fn1, state=1
    No action found for loco address 9990, fn1, state=0
    No action found for loco address 9990, fn2, state=1

    in reply to: Bin neu hier und habe Fragen #8521
    Andreas BrockmeyerAndreas Brockmeyer
    Participant

    Hallo Matthias
    vielen Dank für die schnelle Antwort.
    Die LEDS sind offensichtlich i.O.
    Habe den Controler per USB an das Notebook auf dem Rocrail läuft angeschlossen. F1 und F2 gedrückt.
    Lach mich bitte jetzt nicht aus. Ich bin wirklich Laie. Wie finde ich das Seral Log?

Viewing 5 posts - 1 through 5 (of 5 total)