zeroconf_android: zeroconf_android_jmdns | zeroconf_android_jmdns_demos | zeroconf_android_master_browser
Package Summary
Uses jmdns to do zeroconf discovery of various ros style services (ros, concert, app managers).
- Author: Daniel Stonier
- License: BSD
- Repository: yujin-ros-pkg
- Source: git https://github.com/stonier/zeroconf_android.git
Contents
Overview
Utility program to:
Test the zeroconf_jmdns callback discovery api on android.
Discover the 'semi-official' ros service types.
Compile/Install
Install the ros zeroconf stacks.
Setup the adk and your device to work with this ros install.
Compile zeroconf_android_master_browser.
> rosmake zeroconf_android_master_browser
- Connect your device
# Check your device is listed > adb devices
- Install to your device.
# Ros method > roscd zeroconf_android_master_browser > ant installd # Android Method > roscd zeroconf_android_master_browser/bin > adb install master_browser-debug.apk > adb uninstall ros.zeroconf.android.jmdns.master_browser
To uninstall:
> ant uninstall # OR > adb uninstall ros.zeroconf.android.jmdns.master_browser
Usage
Since this detects ros masters (amongst others), for testing you could publish a real ros master with discovery using zeroconf_avahi, but to quickly get things going use the avahi command line tools.
Fire up a shell and run some fake zeroconf services:
> avahi-publish -s FooMaster _ros-master._tcp 8887 & > avahi-publish -s BarMaster _ros-master._udp 8888 & > avahi-publish -s Concerto _concert-master._tcp 8889 & > avahi-publish -s AppManager _app-manager._tcp 8890
On the android, connect the wireless to your lan an start the app (screenshot below).
For more detailed debugging, connect your device to the pc over usb and run
> adb logcat zeroconf:I *:S






