1
0
mirror of git://projects.qi-hardware.com/ben-wpan.git synced 2024-12-29 04:03:00 +02:00
ben-wpan/install/USAGE
Werner Almesberger 601d1bf173 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
2011-05-12 17:07:01 -03:00

35 lines
837 B
Plaintext

Setup between two Bens:
Ben1:
iz add wpan-phy0
ip link set wpan0 address de:ad:be:af:ca:fe:ba:be
ifconfig wpan0 up
izcoordinator -d 1 -l lease -i wpan0 -p 0x777 -s 1 -c 11
Ben2:
iz add wpan-phy0
ip link set wpan0 address ca:fe:ca:fe:ca:fe:ca:fe
ifconfig wpan0 up
iz assoc wpan0 777 1 11 short
Ben1:
izchat 777 1 8001
Ben2:
izchat 777 8001 1
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.