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 a5ab9bbf0f0749f37c144d7fe4586dbd67c72093 created 7 years 6 days ago. By Werner Almesberger, atusb/: use page layout similar to eeschema's traditional default | |
---|---|
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 |