Bonjour is a zero-configuration networking protocol developed by Apple to simplify device discovery and connection on local networks. On Android systems, a similar functionality is provided by Network Service Discovery (NSD).
Key Features:
- Automatic Device Declaration: Once activated, devices automatically broadcast their presence on the local network.
- Name-based Discovery: Instead of using IP addresses, devices are identified by unique names, simplifying the connection process.
- Dynamic Network Adaptation: Bonjour/NSD can adapt to changing network conditions, maintaining connections even if IP addresses change.
Implementation in Yavin Terminals:
Yavin terminals utilize this technology to enhance discoverability and ease of connection:
- Activation: When the local API is enabled on a Yavin terminal, it automatically starts broadcasting its presence.
- Naming Convention: Yavin terminals broadcast using the format
yavin_<SN>, where <SN> represents the terminal's serial number.
- Discovery Process: Other devices on the network can perform a search to find available Yavin terminals, which will appear in the list of Bonjour/NSD-enabled devices.
Benefits:
- Simplified Connection: Users can connect to terminals with a single click, without needing to know or input IP addresses.
- Improved Reliability: Connections remain stable even if network configurations change, as the system relies on names rather than potentially volatile IP addresses.
- Enhanced User Experience: The plug-and-play nature of Bonjour/NSD significantly reduces setup complexity for end-users.
Example of use for an Android Cash Register
<aside>
🔗
https://gitlab.com/Yavin/android/cash-register
</aside>
By leveraging Bonjour/NSD, Yavin ensures that its terminals are easily discoverable and connectable in various network environments, enhancing overall usability and integration capabilities.