Forum Replies Created
-
AuthorPosts
-
Hilbert BModerator
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
Hilbert BModeratorHi 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 = -DFOOThis 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
December 27, 2022 at 23:48 in reply to: MLC sendet an den Port Extender aber keine Reaktion der Weichenmotoren #5712Hilbert BModeratorSorry 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.
Hilbert BModeratorHost open, should be host ip (entering this on my phone and something like autocorrect)
Hilbert BModeratorHi 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.
HilbertHilbert BModeratorHi David,
To bad to hear that it did not workout for you.
HilbertHilbert BModeratorHi,
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.
HilbertHilbert BModeratorHi,
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.Hilbert BModeratorHi,
If you read the error it points you to the right direction:
[1] Setup: Loading network configuration…
Config file is emptyPlease read:
You did not upload the configuration file, or you uploaded an empty file.
There must be two files:
network_config.json
controller_config.jsonHilbert BModeratorAh 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.Hilbert BModeratorPlease take a look at:
Everything you are asking here is explained thereHilbert BModeratorAndrew,
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
Hilbert BModeratorAndrew,
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 😉 -
AuthorPosts