Verfasste Forenbeiträge
Ansicht von 1 Beitrag (von insgesamt 1)
-
AutorBeiträge
-
März 16, 2026 um 18:50 Uhr als Antwort auf: seeed Studio XIAO ESP32S3: detektion for PU didn’t work #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
Ansicht von 1 Beitrag (von insgesamt 1)
