I am doing a school project where i need to get two self driving RC-cars to send signal to each other. One car will be in front and send signal to the one in the back, and the one in the back will only do the same as the one in the front (wont really be self driving). I am going to be using two RPI 3 model B for the communication. I was planing on using the BLE function that comes whit the RPI but i am having very little successes. I have tried using gatttool,hcitool and hciconfig, and the closes i have gotten to establish connection is using gatttool . But that only works for about 30 sec before they disconnects.
Is is bad to be using BLE for this? Is there a better way for me to be handling this problem?
If any one have a suggestion on a different way to handle the communication i will gladly revive it.