Forum Replies Created

Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • in reply to: MLC build goes wrong #6514
    Hilbert BHilbert B
    Moderator

    Hi,

    It looks like you have no or empty configuration files.

    In main.cpp you have on the top op the file:

    #include

    #include “../conf/my/controller_config.h”
    #include “../conf/my/network_config.h”

    #include “MLC_check.h”

    The ../conf/my include files may not me empty, the easiest thing to do is to copy the default ones (situated in ../conf/default) alter them to fit your configuration.

    As a best practice, do not edit the ../conf/default one’s, these will be overwritten when you update/download new versions of the source.

    Hilbert

    in reply to: MTC4BT not booting #6365
    Hilbert BHilbert B
    Moderator

    Hi Martin,

    There should be my_platformio.ini.example I assume you renamed/copied it to my_platformio.ini

    And I see that there is missing a [my_common] section, we added this because we saw that platformio wasn’t merging variables as expected. This section could be empty:
    [my_common]
    build_flags =

    (I did not test this) or otherwise you can try
    [my_common]
    build_flags = -DFOO

    This makes sure the section is defined, the -DFOO does not influence the build, just makes platformio happy.

    I openend a ticket, not sure how fast we pick this one up, because of summer and being more outside, than behind the screen 😉

    Hilbert

    Hilbert BHilbert B
    Moderator

    Sorry for replying in English, my German writing is really bad.

    But did you wire it according to the article on the site? If so can you test if the vcc has 5 volt? Some breadboards have the two outer lines split in half, if that is the case the pca9685 board does not get the 5 volt needed to power the servo.

    in reply to: Rockrail – step-by-step? #5554
    Hilbert BHilbert B
    Moderator

    Host open, should be host ip (entering this on my phone and something like autocorrect)

    in reply to: Rockrail – step-by-step? #5553
    Hilbert BHilbert B
    Moderator

    Hi Tomas,
    My guess would be that mqtt hostname cannot be blank. Please enter the mqtt host open in hostname and leave userid blank.
    It should probably be the same up address you entered in the network configuration json file. Then it should probably work.
    Hilbert

    in reply to: Big Layout with 23 MLC #5403
    Hilbert BHilbert B
    Moderator

    Hi David,
    To bad to hear that it did not workout for you.
    Hilbert

    in reply to: Big Layout with 23 MLC #5401
    Hilbert BHilbert B
    Moderator

    Hi,
    Sorry for the late reply.

    It looks like bad wifi coverage. What is the distance to your wifi access point (AP) and is it on the same floor?
    In the Netherlands, it is common to have laminate flooring with a subfloor in which aluminium foil has been used. If the AP is not on the same floor, you have very poor wifi conerage.
    Hilbert

    in reply to: constant reset MTC4BT not working #5398
    Hilbert BHilbert B
    Moderator

    Hi,
    Yes, it should upload. That is also described there.
    Here is more or less the same:

    ESP32 with VS Code and PlatformIO: Upload Files to Filesystem (SPIFFS)


    It looks like there are no files uploaded.

    in reply to: constant reset MTC4BT not working #5396
    Hilbert BHilbert B
    Moderator

    Hi,

    If you read the error it points you to the right direction:
    [1] Setup: Loading network configuration…
    Config file is empty

    Please read:

    MattzoTrainController for Bluetooth (MTC4BT)

    You did not upload the configuration file, or you uploaded an empty file.
    There must be two files:
    network_config.json
    controller_config.json

    in reply to: Help me #5367
    Hilbert BHilbert B
    Moderator

    Ah I get it now,
    the data_dir is the pointer to the directory where your json configuration file is living and from that directory the tools are uploading it to the esp32. In the example ‘$PROJECT_DIR/data/MTC4BT1’ this is the map where network_config.json and controller_config.json are places. When compiled and uploaded the code, you also have to upload these to files (using the desciption above) to place these file on the esp32, at that momoment, you have a running MTC4BT
    All other build flags should be ok.

    in reply to: Help me #5365
    Hilbert BHilbert B
    Moderator

    Please take a look at:

    MattzoTrainController for Bluetooth (MTC4BT)


    Everything you are asking here is explained there

    in reply to: Help me #5363
    Hilbert BHilbert B
    Moderator

    Andrew,

    Treinen is not free to choose, the program is looking for locos and not treinen. Please start simple with one sbrick, or pu hub. This will make troubleshooting a lot easier.

    Hilbert

    in reply to: Help me #5360
    Hilbert BHilbert B
    Moderator

    Andrew,
    It is not a script, it is a configuration and treat is as such:
    trienen -> locos
    And it would help if you post the errors 😉

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