What is Service Discovery - MDHSRobotics/TeamWiki GitHub Wiki
#What is Service Discovery?
Service discovery is a set of technologies that enables devices to automatically discover each other and automatically configure themselves to work with one another. A popular implementation of service discovery is Bonjour by Apple. This is what enables you to automatically discover a speaker or printer from your iPhone or iPad and just start using it without having to do anything.
###How does it work? The basic concept is that each device announces to the network that it is providing a certain service to devices on the network. For example, a printer might announce that it can print for devices attached to the network. Devices on the network can receive these announcements and decide whether to connect with them.
###How can w use this with our Robot? FRC already uses service discover. This is what enables the driver station to automatically connect with the robot. As the complexity of the robot increases, it may require additional components augment the robot control system. Common uses in FRC competition include
- using a co-processor board to handle robot vision
- using the driver station computer to augment the robot with code that the RoboRio is unable to handle efficiently
In both of these cases, one of the challenges is determining the communication settings of the robot in order to connect to it due to DHCP. Service Discovery can address this challenge by letting the various additions to the robot discover each other and automatically configure themselves to connect to one another.
###Overview
###Sequence Diagram