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.