City Hub Broadcast and receive #1575
Replies: 3 comments 7 replies
-
|
Thanks for asking! Both trains in that video use a variation of this program: The train in this program broadcasts on channel 34 and listens on channel 12. The program for the other train is exactly the same, but it broadcasts on channel 12 and listens on channel 34. You can learn more about the techniques used in this program in these tutorials, which you might like to try out separately first: |
Beta Was this translation helpful? Give feedback.
-
|
I am continuing the discussion about missed BLE broadcasts from Reddit (https://www.reddit.com/r/LEGOtrains/comments/1bq45lc/comment/kz931lx/) Here is the sample code I created for checking message drops/delays The sender sideThe Receiver Side================================ |
Beta Was this translation helpful? Give feedback.
-
|
I am going to put this as user error 🤦. I thought I had the Hubs disconnected from the laptop when i was struggling with the train demo. |
Beta Was this translation helpful? Give feedback.





Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have been trying for days to connect my send and receive color data via two CityHubs, To try and replicate the latest collision avoidance as demonstrated here:
)Having used all the online examples provided to no avail. My programming knowledge is still rather quite basic and it is becoming increasingly frustrating.
My trains generally run on the following code but I would like all the trains to be able to talk to each other. Some assistance would be greatly appreciated.
Beta Was this translation helpful? Give feedback.
All reactions