title: How to make a BLE mesh network?
body: <p>I had been wondering how wireless earbuds work and came across this image. I do not know how to replicate what is shown in the following image and would like to learn how to do it.</p>
  
  <p>My end goal is to be able to have the smartphone connect to a device, while still being able to play music to a Bluetooth Headphone. I read into <strong>BLE 4.1</strong> mesh and I am not sure if that would help either. </p>
  
  <p>I have made images for the possible ways the multiple devices could communicate but I don't have enough reputation to attach the <strong>xD</strong>. I will try my best to describe them.</p>
  
  <p>1) All devices manage to simultaneously communication with the smartphone. <br>
  2) All devices connect to a hub which relays data to the smartphone.<br> 
  3) One device is the hub itself and relays data for all other devices while sending its own data. <br>
  4) The devices relay information for each other till the smartphone receives the data it called for. <br>
  5) Another possibility is to have a mesh structure where the devices relay all messages broadcast-ed over the network until the device for which the message is meant for, receives it. </p>
  
  <p>I hope to make a project where a Bluetooth device I make does not hinder the user from connecting and using other Bluetooth devices simultaneously. </p>
  
  <p>Thanks for reading and I look forward to any and all responses. </p>
  
  <p><strong>IMAGE 1:</strong></p>
  
  <p><a href="https://i.stack.imgur.com/aQf8m.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/aQf8m.png" alt="enter image description here"></a></p>
  
  <p><strong>IMAGE 2:</strong></p>
  
  <p><a href="https://i.stack.imgur.com/cN3QK.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/cN3QK.png" alt="enter image description here"></a></p>
  
  <p><strong>IMAGE 3:</strong></p>
  
  <p><a href="https://i.stack.imgur.com/fhePS.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/fhePS.png" alt="enter image description here"></a></p>
  
  <p><strong>IMAGE 4:</strong></p>
  
  <p><a href="https://i.stack.imgur.com/i8NyF.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/i8NyF.png" alt="enter image description here"></a></p>