From 601d1bf173f54dd115ab855552f7af2c84ab9385 Mon Sep 17 00:00:00 2001 From: Werner Almesberger Date: Thu, 12 May 2011 17:07:01 -0300 Subject: [PATCH] install/: added build and usage instructions for dirtpan - install/INSTALL-Ben: added build instructions for dirtpan - install/USAGE: removed comment that doesn't work (it does) - install/USAGE: added usage instructions for dirtpan --- install/INSTALL-Ben | 18 ++++++++++++++++++ install/USAGE | 15 +++++++++++++-- 2 files changed, 31 insertions(+), 2 deletions(-) diff --git a/install/INSTALL-Ben b/install/INSTALL-Ben index 6fc80aa..c8d40f0 100644 --- a/install/INSTALL-Ben +++ b/install/INSTALL-Ben @@ -99,3 +99,21 @@ make scp src/iz src/izcoordinator src/izchat $NN:/usr/sbin/ + cd .. + +7. Build dirtpan, a crude IPv4-over-IEEE 802.15.4 tunnel + + git clone git://projects.qi-hardware.com/ben-wpan.git + git clone git://projects.qi-hardware.com/f32xbase.git + + # If compiling dirtpan.c fails due a missing ieee802145.h header, + # copy it over from lowpan-tools: + + cp lowpan-tools-0.2.2/include/ieee802154.h tools/dirtpan/ + + cd ben-wpan/tools + OWRT make TARGET=ben_openwrt + OWRT make -C dirtpan TARGET=ben_openwrt + JLime make TARGET=ben_jlime + JLime make -C dirtpan TARGET=ben_jlime + scp dirtpan/dirtpan $NN:/usr/sbin diff --git a/install/USAGE b/install/USAGE index 770583c..59b47c8 100644 --- a/install/USAGE +++ b/install/USAGE @@ -1,7 +1,5 @@ Setup between two Bens: -(for reference - doesn't work yet) - Ben1: iz add wpan-phy0 ip link set wpan0 address de:ad:be:af:ca:fe:ba:be @@ -21,3 +19,16 @@ Ben2: Based on http://sourceforge.net/apps/trac/linux-zigbee/wiki/GettingStarted-0.2 + + +Instead of izchat, you can also set up crude IPv4 networking. For +this, we need two IPv4 addresses, let's call them $IP1 for Ben1 and +$IP2 for Ben2. + +Ben1: + dirtpan 777 1 8001 'ifconfig $ITF $IP1 dstaddr $IP2 up' +Ben2: + dirtpan 777 8001 1 'ifconfig $ITF $IP2 dstaddr $IP1 up' + +$ITF is an environment variable dirtpan sets to the name of the TUN +interface (tun0, etc.) before it invokes ifconfig.