This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
resources:tools-software:linux-drivers:networking-mac802154:adf7242 [08 Dec 2015 16:37] – [Firmware for Automatic IEEE 802.15.4 Operating Modes (AN-1082)] Michael Hennerich | resources:tools-software:linux-drivers:networking-mac802154:adf7242 [04 Feb 2021 15:40] (current) – [Userspace tools for Linux IEEE 802.15.4 stack] Michael Hennerich | ||
---|---|---|---|
Line 4: | Line 4: | ||
* [[adi> | * [[adi> | ||
+ | * [[adi> | ||
===== Evaluation Boards ===== | ===== Evaluation Boards ===== | ||
Line 16: | Line 17: | ||
===== Status ===== | ===== Status ===== | ||
- | ^ Source | + | ^ Source ^ Mainlined? ^ |
- | | [[linux.github> | + | | [[https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/drivers/net/ieee802154/adf7242.c|git]] | Yes | |
- | + | ||
- | This driver is not mainline - it can be found in the IEEE802.15.4/ZigBee Stack for Linux Project. | + | |
- | + | ||
- | *[[http://apps.sourceforge.net/trac/linux-zigbee/ | linux-zigbee www]] | + | |
- | *[[http:// | + | |
- | *[[http:// | + | |
- | *[[http:// | + | |
===== Files ===== | ===== Files ===== | ||
^ Function ^ File ^ | ^ Function ^ File ^ | ||
- | | driver | + | | driver |
- | | include | [[linux.github> | + | | include | [[linux.github> |
===== Firmware for Automatic IEEE 802.15.4 Operating Modes (AN-1082) ===== | ===== Firmware for Automatic IEEE 802.15.4 Operating Modes (AN-1082) ===== | ||
- | {{: | + | * {{: |
+ | * {{: | ||
+ | |||
+ | |||
+ | |||
+ | Below you can find a simple command line tool that was used to convert the original firmware HEX file into binary format consumed by the ADF7242 Linux device driver. | ||
+ | |||
+ | * {{: | ||
+ | |||
====== Example platform device initialization ====== | ====== Example platform device initialization ====== | ||
Line 100: | Line 103: | ||
Alternatively, | Alternatively, | ||
- | \\ Read the [[linux.github> | + | \\ Read the [[linux.github> |
Example: | Example: | ||
Line 149: | Line 152: | ||
| {{: | | {{: | ||
===== Userspace tools for Linux IEEE 802.15.4 stack ===== | ===== Userspace tools for Linux IEEE 802.15.4 stack ===== | ||
- | |||
- | The next steps require the " | ||
- | On Debian-based systems, it can be installed via the package **lowpan-tools**. | ||
- | \\ It can also be compiled from the sources, located at the following address: [[http:// | ||
- | |||
<WRAP round important> | <WRAP round important> | ||
- | The minimum supported version is 0.3.1. Be sure to have this version (or newer) installed. | + | lowpan-tools are deprecated please use linux-wpan tools available here: |
+ | [[https:// | ||
</ | </ | ||
+ | |||
+ | Example using lowpan-tools\\ | ||
+ | < | ||
+ | iwpan dev wpan0 set pan_id 0x777 | ||
+ | iwpan phy phy0 set channel 0 11 | ||
+ | iwpan dev wpan0 set ackreq_default 1 | ||
+ | ifconfig wpan0 up | ||
+ | ip link add link wpan0 name lowpan0 type lowpan | ||
+ | ip route add 2001::/64 dev lowpan0 | ||
+ | ip addr add 2001::4/128 dev lowpan0 | ||
+ | ifconfig lowpan0 up | ||
+ | </ | ||
===== Configuration of the IEEE 802.15.4 layer ===== | ===== Configuration of the IEEE 802.15.4 layer ===== | ||
Line 272: | Line 283: | ||
From the Raspberry Pi, we can now ping the ZedBoard at the address **fe80:: | From the Raspberry Pi, we can now ping the ZedBoard at the address **fe80:: | ||
< | < | ||
- | root:/> ping6 fe80::a200:0:0:1%lowpan0 | + | root@analog:~# ping6 -i0.1 2001::3 |
- | PING fe80::a200:0:0:1%lowpan0(fe80::a200:0:0:1) 56 data bytes | + | PING 2001::3(2001::3) 56 data bytes |
- | 64 bytes from fe80::a200:0:0:1: icmp_seq=1 ttl=64 time=191 ms | + | 64 bytes from 2001::3: icmp_seq=1 ttl=64 time=44.8 ms |
- | 64 bytes from fe80::a200:0:0:1: icmp_seq=2 ttl=64 time=170 ms | + | 64 bytes from 2001::3: icmp_seq=2 ttl=64 time=39.9 ms |
- | 64 bytes from fe80::a200:0:0:1: icmp_seq=3 ttl=64 time=87.6 ms | + | 64 bytes from 2001::3: icmp_seq=3 ttl=64 time=44.0 ms |
- | 64 bytes from fe80::a200:0:0:1: icmp_seq=4 ttl=64 time=139 ms | + | 64 bytes from 2001::3: icmp_seq=4 ttl=64 time=36.5 ms |
- | 64 bytes from fe80::a200:0:0:1: icmp_seq=5 ttl=64 time=173 ms | + | 64 bytes from 2001::3: icmp_seq=5 ttl=64 time=45.6 ms |
+ | 64 bytes from 2001::3: icmp_seq=6 ttl=64 time=49.1 ms | ||
+ | 64 bytes from 2001::3: icmp_seq=7 ttl=64 time=42.1 ms | ||
+ | 64 bytes from 2001::3: icmp_seq=8 ttl=64 time=34.2 ms | ||
+ | 64 bytes from 2001::3: icmp_seq=9 ttl=64 time=35.0 ms | ||
+ | 64 bytes from 2001::3: icmp_seq=10 ttl=64 time=33.1 ms | ||
+ | 64 bytes from 2001::3: icmp_seq=11 | ||
+ | 64 bytes from 2001::3: icmp_seq=12 ttl=64 time=28.8 ms | ||
+ | 64 bytes from 2001::3: icmp_seq=13 ttl=64 time=43.0 ms | ||
+ | 64 bytes from 2001::3: icmp_seq=14 ttl=64 time=38.6 ms | ||
+ | 64 bytes from 2001::3: icmp_seq=15 ttl=64 time=41.1 ms | ||
+ | 64 bytes from 2001::3: icmp_seq=16 ttl=64 time=40.3 ms | ||
+ | 64 bytes from 2001::3: icmp_seq=17 ttl=64 time=45.6 ms | ||
+ | 64 bytes from 2001::3: icmp_seq=18 ttl=64 time=53.3 ms | ||
+ | 64 bytes from 2001::3: icmp_seq=19 | ||
+ | 64 bytes from 2001::3: icmp_seq=20 ttl=64 time=26.6 ms | ||
+ | 64 bytes from 2001::3: icmp_seq=21 ttl=64 time=42.3 ms | ||
+ | 64 bytes from 2001::3: icmp_seq=22 ttl=64 time=32.7 ms | ||
+ | 64 bytes from 2001::3: icmp_seq=23 ttl=64 time=50.0 ms | ||
^C | ^C | ||
- | --- fe80::a200: | + | --- 2001::3 ping statistics --- |
- | 5 packets transmitted, | + | 23 packets transmitted, |
- | rtt min/ | + | rtt min/ |
- | root:/> | + | root@analog:~# |
</ | </ | ||