How to make a BLE mesh network?

爷,独闯天下 提交于 2020-01-03 04:51:31

问题


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.

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 BLE 4.1 mesh and I am not sure if that would help either.

I have made images for the possible ways the multiple devices could communicate but I don't have enough reputation to attach the xD. I will try my best to describe them.

1) All devices manage to simultaneously communication with the smartphone.
2) All devices connect to a hub which relays data to the smartphone.
3) One device is the hub itself and relays data for all other devices while sending its own data.
4) The devices relay information for each other till the smartphone receives the data it called for.
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.

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.

Thanks for reading and I look forward to any and all responses.

IMAGE 1:

IMAGE 2:

IMAGE 3:

IMAGE 4:


回答1:


You need to consider few things first.

  • Since version 4.0 Bluetooth specification contains "Classic Bluetooth, Bluetooth high speed and Bluetooth low energy (BLE) protocols."
  • Bluetooth Classic provides profiles like A2DP, AVRCP that are usually implemented by Bluetooth earbuds or speakers.
  • BLE on the other hand communicates using GATT (a general specification for sending and receiving short pieces of data known as attributes over a low energy link).
  • BLE is not designed to handle high bandwidth scenarios like Audio.

Now getting to a point

  • You can have a smartphone connected to your earbuds with A2DP profile and simultaneously connected to several BLE devices.
  • One or more of these BLE devices can realize mesh connectivity


来源:https://stackoverflow.com/questions/41455560/how-to-make-a-ble-mesh-network

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!