- Dieses Thema hat 10 Antworten und 2 Teilnehmer, und wurde zuletzt aktualisiert vor 1 Jahr, 9 Monaten von Andrew Hewitt.
-
AutorBeiträge
-
-
Juli 25, 2022 um 13:46 Uhr #5358Andrew HewittTeilnehmer
Can soneone look at this script for me
He gives 5 error.{
“treinen”: [
{
“address”: 1,
“name”: “KTST”,
“speedStep”: 10,
“brakeStep”: 20,
“bleHubs”: [
{
“type”: “PU”,
“address”: “90:84:2B:07:F5:BB”,
“channels”: [
{
“channel”: “B”,
“attachedDevice”: “motor”,
“direction”: “forward”
},
]
}
],
“fn”: [
{
“name”: “F0”,
“device”: “bleHub”,
“address”: “90:84:2B:07:F5:BB”,
“channel”: “B”
},
]
},
{
“address”: 2,
“name”: “STBlue”,
“speedStep”: 10,
“brakeStep”: 20,
“bleHubs”: [
{
“type”: “SBrick”,
“address”: “5C:02:72:C4:16:71”,
“channels”: [
{
“channel”: “A”,
“attachedDevice”: “motor”,
“direction”: “forward”
},
]
}
]
},
{
“address”: 3,
“name”: “SPR”,
“speedStep”: 8,
“brakeStep”: 50,
“bleHubs”: [
{
“type”: “PU”,
“address”: “90:84:2B:05:F0:32”,
“channels”: [
{
“channel”: “A”,
“attachedDevice”: “light”,
“direction”: “forward”
},
{
“channel”: “B”,
“attachedDevice”: “motor”,
“direction”: “forward”
}
]
}
]
}
{
“address”: 4,
“name”: “RED”,
“speedStep”: 8,
“brakeStep”: 50,
“bleHubs”: [
{
“type”: “SBrick”,
“address”: “84:2G:14:7D:5D:89”,
“channels”: [
{
“channel”: “A”,
“attachedDevice”: “motor”,
“direction”: “forward”
},
{
“channel”: “B”,
“attachedDevice”: “light”,
“direction”: “forward”
}
]
}
]
}
}Thnx everyone for this
This is my first traincontroller BLCBT = Brian Layout Traincontroller (MTC4BT) with 4 trains 2 PU and 2 SBrick. -
Juli 25, 2022 um 13:56 Uhr #5359Andrew HewittTeilnehmer
I have allready one solved
-
Juli 25, 2022 um 14:16 Uhr #5360Hilbert BModerator
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 😉 -
Juli 25, 2022 um 14:56 Uhr #5361Andrew HewittTeilnehmer
I have solved the errors. And my is dutch so treinen —- no locos. That is also good. I have upload this configuration with network and platform.ini in my esp32 and corrected upload.
When my son is finished playing with the trains here manual i shall tested it.
Thnx Hilbert for notice me -
Juli 25, 2022 um 16:17 Uhr #5362Andrew HewittTeilnehmer
I must now create a path in platform.ini with data_dir
Now that we have prepared the folder that holds our controller configuration files, we can put the folder path in platformio.ini. One of the first settings in platformio.ini is called data_dir. This setting should point to the folder your put your controller configuration files in. If you followed the example above it’s value should be: $PROJECT_DIR/data/MTC4BT1
What means it and how i can do that than. -
Juli 25, 2022 um 17:16 Uhr #5363Hilbert BModerator
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
-
Juli 25, 2022 um 17:18 Uhr #5364Andrew HewittTeilnehmer
Okay i shall that do. But it is mean path than with data_dir
-
Juli 25, 2022 um 17:31 Uhr #5365Hilbert BModerator
Please take a look at:
Everything you are asking here is explained there -
Juli 25, 2022 um 17:59 Uhr #5366Andrew HewittTeilnehmer
I have read that but i not understand the platform.ini with a path.
Build flags that say not on that.
So that i was asking -
Juli 26, 2022 um 09:49 Uhr #5367Hilbert BModerator
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. -
August 1, 2022 um 15:35 Uhr #5370Andrew HewittTeilnehmer
is there a tool so i can see what is place on my esp32. Monitoring with Visual Studio Code not working
-
-
AutorBeiträge
- Du musst angemeldet sein, um auf dieses Thema antworten zu können.