Willkommen bei MattzoBricks › Foren › MattzoTrainController for Bluetooth (MTC4BT) › seeed Studio XIAO ESP32S3: detektion for PU didn’t work
- Dieses Thema hat 2 Antworten sowie 2 Teilnehmer und wurde zuletzt vor vor 18 Stunden, 6 Minuten von
Stefan Piltz aktualisiert.
-
AutorBeiträge
-
-
März 15, 2026 um 14:08 Uhr #8929
Stefan Piltz
TeilnehmerHello,
First of all, thank you so much for this great project!
I’m currently encountering the following problem with the MTC4BT.
For the MTC4BT, I’m using the Seeed Studio XIAO ESP32S3 with Mattzobricks 1.2.2.
The Discovering mode only works for SBrick and Buwizz2 but it didn’t find Lego PU, neither the hub nor the remote control.
What could be the problem? Another Seeed Studio XIAO ESP32S3 also doesn’t recognize the PU hub.
Compilation worked without any problems. I’m using a MacBook Air with an M.2 processor and macOS 26.3.1. -
März 16, 2026 um 07:36 Uhr #8930
Matthias Runte
AdministratorCan you post the content of your data directory? This should contain a controller_config.json and network.json file, and potentially other loco and remote files.
-
März 16, 2026 um 18:50 Uhr #8931
Stefan Piltz
TeilnehmerFolder Name: data/MTC4BT1
Content:
– controller_config.json
– network.json
– loco_BR81_001_PU.json
– loco_BR81_001_SBrick.jsonnetwork.json:
{ "logging": { "min_level": "debug", "serial": { "enabled": true }, "syslog": { "enabled": false, "server": "192.168.0.66", "port": 514, "appname": "MTC4BT1" } }, "network" : { "hostname": "mtc4bt", "otaPassword": "xxxxxx", "type" : "wireless" }, "wifi": { "SSID": "Vodafone-1D5C", "password": "ThatsMySecret", "wait": 500 }, "mqtt": { "broker": "192.168.0.66", "port": 1883, "keepalive": 10, "ping": 0 } }controller_config.json:
{ "name": "MTC4BT1", "pwrIncStep": 10, "pwrDecStep": 10, "espPins": [ { "pin": 21, "attachedDevice": "status" } ], "locos": [], "locoConfigs": [ "/loco_BR81_001_SBrick.json" ] }loco_BR81_001_PU.json
{ "locos": [ { "address": 3, "name": "BR81-001", "pwrIncStep": 10, "pwrDecStep": 10, "bleHubs": [ { "type": "PU", "address": "A8:E2:C1:99:52:F0", "channels": [ { "channel": "LED" }, { "channel": "B", "attachedDevice": "motor", "direction": "forward" } ] } ], "events": [ { "triggers": [ { "source": "loco", "eventType": "dirchanged", "value": "forward" } ], "actions": [ { "address": "A8:E2:C1:99:52:F0", "channel": "LED", "color": "white" } ] }, { "triggers": [ { "source": "loco", "eventType": "dirchanged", "value": "backward" } ], "actions": [ { "address": "A8:E2:C1:99:52:F0", "channel": "LED", "color": "red" } ] }, { "triggers": [ { "source": "loco", "eventType": "dirchanged", "value": "stopped" } ], "actions": [ { "address": "A8:E2:C1:99:52:F0", "channel": "LED", "color": "blue" } ] } ] } ] }my_platformio_ini:
[platformio] default_envs = seeed_xiao_esp32-s3 ; This controller must be configured through config files in the folder you define below. ; Configure your network in the <code>network_config.json</code> file. ; Configure the controller in the <code>controller_config.json</code> file. ; See the <code>/data_example</code> folder for example configuration files. ; Run <code>platformio.exe run --target uploadfs</code> to upload the data-folder content to the ESP32. ; moved to my_platformio.ini ; for Linux you have to add a / before $PROJECT_DIR data_dir = /$PROJECT_DIR/data/MTC4BT1Comment: for searching I have make an empty structure for locos and locoConfigs.
Currently I’m working with the Brick, which working well. And I know, that the MAC Adress for the PU is wrong because of not finding PU Hubs.
-
-
AutorBeiträge
- Du musst angemeldet sein, um auf dieses Thema antworten zu können.
