IEEE 802.15.4 subsystem
Sign in or create your account | Project List | Help
IEEE 802.15.4 subsystem Git Source Tree
Root/
| Source at commit 624caeb00652f6118dc64698b7dad6fa3e5bdcc2 created 6 years 9 months ago. By Werner Almesberger, atusb/: use VR, POWERED, and LED from kicad-libs | |
|---|---|
| 1 | Setup between two Bens: |
| 2 | |
| 3 | Ben1: |
| 4 | iz add wpan-phy0 |
| 5 | ip link set wpan0 address de:ad:be:af:ca:fe:ba:be |
| 6 | ifconfig wpan0 up |
| 7 | izcoordinator -d 1 -l lease -i wpan0 -p 0x777 -s 1 -c 11 |
| 8 | |
| 9 | Ben2: |
| 10 | iz add wpan-phy0 |
| 11 | ip link set wpan0 address ca:fe:ca:fe:ca:fe:ca:fe |
| 12 | ifconfig wpan0 up |
| 13 | iz assoc wpan0 777 1 11 short |
| 14 | |
| 15 | Ben1: |
| 16 | izchat 777 1 8001 |
| 17 | Ben2: |
| 18 | izchat 777 8001 1 |
| 19 | |
| 20 | Based on |
| 21 | http://sourceforge.net/apps/trac/linux-zigbee/wiki/GettingStarted-0.2 |
| 22 | |
| 23 | |
| 24 | Instead of izchat, you can also set up crude IPv4 networking. For |
| 25 | this, we need two IPv4 addresses, let's call them $IP1 for Ben1 and |
| 26 | $IP2 for Ben2. |
| 27 | |
| 28 | Ben1: |
| 29 | dirtpan 777 1 8001 'ifconfig $ITF $IP1 dstaddr $IP2 up' |
| 30 | Ben2: |
| 31 | dirtpan 777 8001 1 'ifconfig $ITF $IP2 dstaddr $IP1 up' |
| 32 | |
| 33 | $ITF is an environment variable dirtpan sets to the name of the TUN |
| 34 | interface (tun0, etc.) before it invokes ifconfig. |
| 35 | |
