- This topic has 10 replies, 2 voices, and was last updated 1 year, 8 months ago by Andrew Hewitt.
-
AuthorPosts
-
-
July 25, 2022 at 13:46 #5358Andrew HewittParticipant
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. -
July 25, 2022 at 13:56 #5359Andrew HewittParticipant
I have allready one solved
-
July 25, 2022 at 14:16 #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 ๐ -
July 25, 2022 at 14:56 #5361Andrew HewittParticipant
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 -
July 25, 2022 at 16:17 #5362Andrew HewittParticipant
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. -
July 25, 2022 at 17:16 #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
-
July 25, 2022 at 17:18 #5364Andrew HewittParticipant
Okay i shall that do. But it is mean path than with data_dir
-
July 25, 2022 at 17:31 #5365Hilbert BModerator
Please take a look at:
Everything you are asking here is explained there -
July 25, 2022 at 17:59 #5366Andrew HewittParticipant
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 -
July 26, 2022 at 09:49 #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 at 15:35 #5370Andrew HewittParticipant
is there a tool so i can see what is place on my esp32. Monitoring with Visual Studio Code not working
-
-
AuthorPosts
- You must be logged in to reply to this topic.