Ansicht von 10 Antwort-Themen
  • Autor
    Beiträge
    • #5358
      Andrew HewittAndrew Hewitt
      Teilnehmer

      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.

    • #5359
      Andrew HewittAndrew Hewitt
      Teilnehmer

      I have allready one solved

    • #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 😉

    • #5361
      Andrew HewittAndrew Hewitt
      Teilnehmer

      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

    • #5362
      Andrew HewittAndrew Hewitt
      Teilnehmer

      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.

    • #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

    • #5364
      Andrew HewittAndrew Hewitt
      Teilnehmer

      Okay i shall that do. But it is mean path than with data_dir

    • #5365
      Hilbert BHilbert B
      Moderator

      Please take a look at:

      MattzoTrainController for Bluetooth (MTC4BT)


      Everything you are asking here is explained there

    • #5366
      Andrew HewittAndrew Hewitt
      Teilnehmer

      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

    • #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.

    • #5370
      Andrew HewittAndrew Hewitt
      Teilnehmer

      is there a tool so i can see what is place on my esp32. Monitoring with Visual Studio Code not working

Ansicht von 10 Antwort-Themen
  • Du musst angemeldet sein, um auf dieses Thema antworten zu können.