Replies: 3 comments 6 replies
-
Hi, great to hear brickrail is working for you at least to some extent, your layout sounds impressive! Indeed, you are probably running into a limitation there, and I fear it is a limitation of your Bluetooth adapter. The way I understand it, there is no theoretical limit to the number of simultaneous BLE connections, but most adapters still have a limit that seems to be around 7-8 connections. I have yet to run into it myself since my tests only went up to 7 hubs at the same time on the integrated bluetooth adapter of a Dell laptop. I am not sure what the situation is regarding adapters that support more simultaneous connections. I think at some point there also might be a lot of interference between the devices, but I am not sure when this becomes relevant. For scaling up a layout arbitrarily, bluetooth unfortunately is not the best choice, but it is what this project uses because it is the simplest to use with PoweredUp hardware. If you plan on scaling up way higher than currently, you probably might want to take a look at MattzoBricks. They use Non-LEGO microcontrollers and other third party hardware for automation of LEGO train layouts, where most of the communication happens via WiFi. This should scale much better to a high number of devices. Unfortunately, a lot more tinkering with electronics and microcontroller configuration is needed from the user, as far as I know. Other options for mitigating the issue might be:
Regarding development of Brickrail, I am actually working on a re-implementation of it in another language and framework, which makes it easier to add new features. It is right now not released yet, but it already has most of the required features to automate a layout and already has a few new features that are not in Brickrail yet, like multiple hubs and motors per train. It will probably still have the same limit on bluetooth connections on your machine, but it will probably be easier to publish a MacOS version of it, and I am closer to implementing multiple switches controlled with a single motor on that version. I will keep this discussion in mind when developing it further. |
Beta Was this translation helpful? Give feedback.
-
ok Great lets keep this thread for the BT topic |
Beta Was this translation helpful? Give feedback.
-
Hi Guys, the number of BT connections has always been a topic of discussion, for me ever since I used BAP. |
Beta Was this translation helpful? Give feedback.
-
Hi,
First of all Huge Thanks for making Brickrail. I’ve been putting together a Lego train layout over the last few months and I came across Brickrail. So far it’s been super cool and having got it working its encouraged me to push the boundaries - however today I seem to have hit a wall.
I now have 5 technic hubs running a total of 16 switches and I wanted to have 6 maybe 8 trains running at the same time… today I worked up to having 4 trains, however it seems that when I try to connect more than 8 powered up devices the connection to the 9th device fails to connect. I can scan and see the hub however the program will not connect. I’m wondering if this is a limitation in Brickrail or a limitation else where? I’m running Brickrail in a VM on my Mac
Beta Was this translation helpful? Give feedback.
All reactions