Welcome to MattzoBricks › Forums › MattzoTrainController for Bluetooth (MTC4BT) › help with connecting to RocRail
- This topic has 1 reply, 2 voices, and was last updated 4 weeks ago by Hilbert B.
-
AuthorPosts
-
-
November 11, 2024 at 20:56 #7830Maiko OvergaauwParticipant
I have installed rocrail on a raspberry PI
It connects to my mqtt server (that is on a nuc)
the MTC4BT also connects to the mqtt.
So far so good.
But what do I have to install in rocrail to see te defined loc in the MTC4BT ? I miss some crucial steps I thinkBeside that the config json files are also on the esp32 . I extended the controller config by adding a config for my buwizz2
—– controller_config.json —–
{
“name”: “Mattzo1”,
“pwrIncStep”: 10,
“pwrDecStep”: 10,
“espPins”: [
{
“pin”: 5,
“attachedDevice”: “light”
},
{
“pin”: 23,
“attachedDevice”: “status”
}
],
“locos”: [
{
“address”: 1,
“name”: “YC7939”,
“bleHubs”: [
{
“type”: “SBrick”,
“address”: “00:07:80:d0:47:43”,
“channels”: [
{
“channel”: “B”,
“attachedDevice”: “light”
},
{
“channel”: “D”,
“attachedDevice”: “motor”
}
]
}
]
},
{
“address”: 2,
“name”: “BC60052”,
“bleHubs”: [
{
“type”: “SBrick”,
“address”: “88:6b:0f:23:78:10”,
“channels”: [
{
“channel”: “B”,
“attachedDevice”: “motor”
},
{
“channel”: “D”,
“attachedDevice”: “light”
}
]
}
]
},
{
“address”: 3,
“name”: “PT60197”,
“bleHubs”: [
{
“type”: “PU”,
“address”: “90:84:2b:07:13:7f”,
“channels”: [
{
“channel”: “LED”
},
{
“channel”: “A”,
“attachedDevice”: “motor”
},
{
“channel”: “B”,
“attachedDevice”: “motor”,
“direction”: “reverse”
}
]
}
],
“events”: [
{
“triggers”: [
{
“source”: “rr”,
“eventType”: “fnchanged”,
“identifier”: “f1”,
“value”: “on”
},
{
“source”: “loco”,
“eventType”: “dirchanged”,
“value”: “forward”
}
],
“actions”: [
{
“channel”: “LED”,
“color”: “yellow”
}
]
},
{
“triggers”: [
{
“source”: “rr”,
“eventType”: “fnchanged”,
“identifier”: “f1”,
“value”: “off”
},
{
“source”: “loco”,
“eventType”: “dirchanged”,
“value”: “stopped”
}
],
“actions”: [
{
“channel”: “LED”,
“color”: “off”
}
]
}
]
},
{
“address”: 4,
“name”: “BUW1”,
“bleHubs”: [
{
“type”: “BuWizz2”,
“address”: “50:fa:ab:7e:46:12”,
“channels”: [
{
“channel”: “A”,
“attachedDevice”: “motor”
},
{
“channel”: “D”,
“attachedDevice”: “light”
}
]
}
]
}
]
}——-
-
November 12, 2024 at 14:37 #7831Hilbert BKeymaster
Hello Maiko,
You don’t have to install anything in rocrail. Just make sure that:
– rocrail is connected to that mqtt server (reload/restart that layout if you changed it);
– the rocrail locomotive address is the same as the one in your config file;
– start the layout.On the serial console you should see messages that it received an lc command, if you don’t see the command any of the uper things went wrong.
-
-
AuthorPosts
- You must be logged in to reply to this topic.