Skip to content

Arduino port zeroconf neighborhood

rraf edited this page Sep 6, 2012 · 1 revision

##Prerequisites

  • Arduino toolchain.

The Wiring library provided with the Arduino environment is too big for usage with Wiselib, so you'll need to use my fork.

git clone git://github.com/rraf/Arduino.git cd Arduino git checkout lite

  • Arduino Zeroconf library.

git clone git://github.com/rraf/EthernetBonjour.git cd EthernetBonjour git checkout wiselib-zeroconf

##Testing

You can change the MAC, IP, netmask, gateway settings for the Arduino board in wiselib.testing/external_interface/arduino/arduino_types.h

Make sure your Wiselib is up to date, and you're using the arduino branch.

git checkout arduino cd apps/arduino_apps

Update the paths in the Makefile and make sure your Arduino board is connected and the right PORT is set.

On your Linux machine you can use nc -lu 1337 to listen to Radio->send() calls from the Arduino board.

To browse Zeroconf services published by the Arduino board use avahi-browse -a.