Wiki

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next 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 Hennerichresources: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>ADF7242]]   * [[adi>ADF7242]]
 +  * [[adi>ADF7241]]
  
 ===== Evaluation Boards ===== ===== Evaluation Boards =====
Line 16: Line 17:
 ===== Status ===== ===== Status =====
  
- Source   Mainlined?  +^ Source ^ Mainlined? ^ 
- [[linux.github>xcomm_zynq?drivers/net/ieee802154/adf7242.c|git]] |  No  | +| [[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-zigbeelinux-zigbee www]] +
-  *[[http://sourceforge.net/apps/trac/linux-zigbee/wiki | linux-zigbee wiki]] +
-  *[[http://linux-zigbee.git.sourceforge.net/git/gitweb-index.cgi linux-zigbee git]] +
-  *[[http://sourceforge.net/projects/linux-zigbee/ linux-zigbee Sourceforge]]+
  
 ===== Files ===== ===== Files =====
  
 ^ Function ^ File ^ ^ Function ^ File ^
-| driver  | [[linux.github>xcomm_zynq?drivers/net/ieee802154/adf7242.c | adf7242.c]] | +| driver  | [[linux.github>master?drivers/net/ieee802154/adf7242.c | adf7242.c]] | 
-| include | [[linux.github>xcomm_zynq?include/linux/spi/adf7242.h | adf7242.h]] |+| include | [[linux.github>master?include/linux/spi/adf7242.h | adf7242.h]] |
  
 ===== Firmware for Automatic IEEE 802.15.4 Operating Modes (AN-1082) ===== ===== Firmware for Automatic IEEE 802.15.4 Operating Modes (AN-1082) =====
  
-{{:resources:tools-software:linux-drivers:networking-mac802154:ram_lab_7242_2_0_ieee15dot4_full_r5.zip|}}\\+  * {{:resources:tools-software:linux-drivers:networking-mac802154:ram_lab_7242_2_0_ieee15dot4_full_r5.zip|}}\\ 
 +  * {{:resources:tools-software:linux-drivers:networking-mac802154:ram_lab_7242_2_0_ieee15dot4_full_r6.zip|}}\\ 
 + 
 + 
 + 
 +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. 
 + 
 +  * {{:resources:tools-software:linux-drivers:networking-mac802154:adf7242_do_firmware.zip| Hex2Bin Firmware Tool}} 
 + 
  
 ====== Example platform device initialization ====== ====== Example platform device initialization ======
Line 100: Line 103:
  
 Alternatively, it is possible to declare the SPI devices from a DeviceTree file. Alternatively, it is possible to declare the SPI devices from a DeviceTree file.
-\\ Read the [[linux.github>xcomm_zynq?Documentation/devicetree/bindings/net/ieee802154/adf7242.txt|documentation]] for more details.+\\ Read the [[linux.github>master?Documentation/devicetree/bindings/net/ieee802154/adf7242.txt|documentation]] for more details.
  
 Example: Example:
Line 149: Line 152:
 | {{:resources:tools-software:linux-drivers:networking-mac802154:raspi_adf7242.jpg?400|}} | {{ :resources:tools-software:linux-drivers:networking-mac802154:zedboard_adf7242.jpg?400|}} | | {{:resources:tools-software:linux-drivers:networking-mac802154:raspi_adf7242.jpg?400|}} | {{ :resources:tools-software:linux-drivers:networking-mac802154:zedboard_adf7242.jpg?400|}} |
 ===== Userspace tools for Linux IEEE 802.15.4 stack ===== ===== Userspace tools for Linux IEEE 802.15.4 stack =====
- 
-The next steps require the "iz" tool to be installed on your system. 
-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://sourceforge.net/apps/trac/linux-zigbee]] 
- 
 <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://github.com/linux-wpan/wpan-tools|linux-wpan]]
 </WRAP> </WRAP>
 +
 +Example using lowpan-tools\\
 +<xterm>
 +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
 +</xterm> 
  
 ===== 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::a200:0:0:1%lowpan0**: From the Raspberry Pi, we can now ping the ZedBoard at the address **fe80::a200:0:0:1%lowpan0**:
 <xterm> <xterm>
-root:/> ping6 fe80::a200:0:0:1%lowpan0 +root@analog:~# ping6 -i0.1 2001::
-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=ttl=64 time=44.8 ms 
-64 bytes from fe80::a200:0:0:1: icmp_seq=ttl=64 time=170 ms +64 bytes from 2001::3icmp_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.ms 
-64 bytes from fe80::a200:0:0:1: icmp_seq=ttl=64 time=139 ms +64 bytes from 2001::3icmp_seq=4 ttl=64 time=36.5 ms 
-64 bytes from fe80::a200:0:0:1: icmp_seq=ttl=64 time=173 ms+64 bytes from 2001::3icmp_seq=5 ttl=64 time=45.6 ms 
 +64 bytes from 2001::3: icmp_seq=6 ttl=64 time=49.ms 
 +64 bytes from 2001::3: icmp_seq=7 ttl=64 time=42.1 ms 
 +64 bytes from 2001::3icmp_seq=8 ttl=64 time=34.2 ms 
 +64 bytes from 2001::3: icmp_seq=9 ttl=64 time=35.ms 
 +64 bytes from 2001::3: icmp_seq=10 ttl=64 time=33.ms 
 +64 bytes from 2001::3: icmp_seq=11 ttl=64 time=46.6 ms 
 +64 bytes from 2001::3icmp_seq=12 ttl=64 time=28.8 ms 
 +64 bytes from 2001::3: icmp_seq=13 ttl=64 time=43.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.ms 
 +64 bytes from 2001::3: icmp_seq=16 ttl=64 time=40.3 ms 
 +64 bytes from 2001::3icmp_seq=17 ttl=64 time=45.6 ms 
 +64 bytes from 2001::3: icmp_seq=18 ttl=64 time=53.ms 
 +64 bytes from 2001::3: icmp_seq=19 ttl=64 time=51.6 ms 
 +64 bytes from 2001::3icmp_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::3icmp_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:0:0:1%lowpan0 ping statistics --- +--- 2001::ping statistics --- 
-packets transmitted, received, 0% packet loss, time 4002ms +23 packets transmitted, 23 received, 0% packet loss, time 2210ms 
-rtt min/avg/max/mdev = 87.627/152.533/191.436/36.491 ms +rtt min/avg/max/mdev = 26.622/41.122/53.348/6.945 ms 
-root:/>+root@analog:~# 
 </xterm> </xterm>
  
resources/tools-software/linux-drivers/networking-mac802154/adf7242.1449589044.txt.gz · Last modified: 08 Dec 2015 16:37 by Michael Hennerich