Quote:
Originally Posted by Ty Tremblay
How was the automated bluetooth syncing executed? I have limited knowledge of bluetooth, but I'm under the impression that bluetooth is a 1-to-1 communication technology. How do you manage these connections and data transfer?
|
Quote:
Originally Posted by saikiranra
Bluetooth is actually one to many. IIRC one server can connect to 7 external devices at one time.
|
saikiranra is correct, through the maximum number of connections is slightly more complicated. The number is usually seven, but can vary between devices. A good brief explanation can be found at
http://superuser.com/questions/33276...uetooth-device.
Each of the super scout tablets (red and blue) is connected to the three scout tablets for the alliance. The scouts are able to transfer their files via this connection to the super scout. In addition, the scouts can request the competition schedule from the super scout, which is then sent from the super scout to the scout. For the technical details of how the bluetooth connection works, I would recommend looking over the Bluetooth connection code in the scout and super scout apps. Below are links to the files that control most of the Bluetooth connection.
Scout:
https://github.com/frc1678/scout-201...ectThread.java
https://github.com/frc1678/scout-201...leHandler.java
https://github.com/frc1678/scout-201...nActivity.java
Super Scout:
https://github.com/frc1678/super-201...eptThread.java
https://github.com/frc1678/super-201...cceptLoop.java