-
|
Hello, I am wondering if there is any way how to troubleshoot the bluetooth messaging from a city hub. Program runs fine and print-out the correct values (using print command while connected to PC) however I am trying to understand whether it successfully sends out the same values via ble.broadcast function as well. Is there a way to see if the broadcast message has been sent ? My program is a "master" hub which listens on approx 10 channels for data sent from other hubs and then I am trying to broadcast on channel 99 some information out after "massaging" the received data. I have other hubs that do listen on this channel 99 for this information sent by this master hub. It seems like when master is actually receiving information from 10 hubs/channels sometimes the broadcasting does not seem to work - the receiving hubs (listening on channel 99 which is used as broadcast channel from the master) do not seem to be getting the data. When it is more like 5 hubs/channels it seems to be fine. Can this be related to memory capacity or something ? I am thinking of maybe getting one of the Inventor/Prime hubs to run this master program but it is not cheap so I want to make sure it will resolve this issues. Many thanks in advance for any ideas. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 16 replies
-
I'm not sure we've ever tried this many at once! I don't think I even have that many hubs.
The Bluetooth chips in the city and techic hubs do seem to get overwhelmed sometimes and not function correctly. The firmware there is a black box to us, we can't say for sure what causes the problems. It could very likely be a memory issue.
We can't offer a money-back guarantee that it will work, but we can say that it has a much better Bluetooth chip. If you don't care that the central station is official LEGO, you could buy a cheap microcontroller with BLE and use that instead. The protocol is pretty simple, so it shouldn't be too hard to program, especially with the help of AI agents these days. |
Beta Was this translation helpful? Give feedback.
-
|
Bluetooth messages between Pybricks hubs work better when the hub is not connected to the PC. When the PC is connected, the hubs have to share the Bluetooth channel between the PC and hub(s). If you disconnect the hub from the PC, the connection works much more smoothly. |
Beta Was this translation helpful? Give feedback.
Yes, the Bluetooth chip (or firmware rather - that we can't change) on the City and Technic hubs isn't the greatest. If you are connected to a computer and trying to broadcast and/or observer, it doesn't always work well. Or if you disconnect from the computer and try to broadcast and observe at the same time, sometimes it will fail as well.