2011-03-30 10:29:52 +03:00
|
|
|
Setup between two Bens:
|
|
|
|
|
2011-03-30 12:15:01 +03:00
|
|
|
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
|
2011-03-30 10:29:52 +03:00
|
|
|
|
2011-03-30 12:15:01 +03:00
|
|
|
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
|
2011-03-30 10:29:52 +03:00
|
|
|
|
2011-03-30 12:48:06 +03:00
|
|
|
Ben1:
|
|
|
|
izchat 777 1 8001
|
|
|
|
Ben2:
|
|
|
|
izchat 777 8001 1
|
|
|
|
|
2011-03-30 10:29:52 +03:00
|
|
|
Based on
|
|
|
|
http://sourceforge.net/apps/trac/linux-zigbee/wiki/GettingStarted-0.2
|
2011-05-12 23:07:01 +03:00
|
|
|
|
|
|
|
|
|
|
|
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.
|