Bluetooth SIG announced Bluetooth Mesh functionality in July 2017. The mesh network specifications was derived from Bluetooth Low Energy v4.0 specification and many mobile phones support Bluetooth Low Energy v4.0.
However, mobile phone will not support Bluetooth Mesh networking topology in near future. This is just my thought.
In the mesh network, you can transmit packets to a destination which is out of direct radio range by hoping nodes.
I believe that, this scenario can be simulated by sending beacons and scanning beacons.
The following steps might not be an complete solution but it will give you insight about basic mesh network design.
Here is the steps;
- You need to know all mac address of your mobile devices.
- All mobile device must be in scanning mode to receive incoming beacons.
- You need to make custom beacon data format which must contain source address, destination address, time to live value and your data.
- When a mobile device receive BLE packet;
If the target address in the packet is same as receiving device address means that your packet is delivered successfully.
If the target address in the packet is not same as receiving device address means that the packet should be re-transmit. Before re-transmitting packet, you need to decrements time to live value for preventing infinite packet transmission.
It would be good practice, if you cache last sent beacon packets to prevent re-transmitting same packet more than one.
I hope that, this will give you basic understanding about how mesh networking topology can be implemented in mobile phones.