(Created page with " === Budget 802.15.4 6LoWPAN Protocol Analyser using Wireshark === When I first started developing with the [http://www.microchip.com/wwwproducts/Devices.aspx?dDocName=en0277...")
(Download)
 
(3 intermediate revisions by one user not shown)
Line 1: Line 1:
  
=== Budget 802.15.4 6LoWPAN Protocol Analyser using Wireshark ===
+
== Budget 802.15.4 6LoWPAN Protocol Analyser using Wireshark ==
  
When I first started developing with the [http://www.microchip.com/wwwproducts/Devices.aspx?dDocName=en027752| Microchip MRF24J40 802.15.4 Radio], I purchased Microchip's [http://www.microchip.com/stellent/idcplg?IdcService=SS_GET_PAGE&nodeId=1406&dDocName=en554244| Zena Wireless Adapter] and downloaded a copy of the Wireless Development Studio. It has been adequate for diagnosing issues at the raw [http://standards.ieee.org/getieee802/download/802.15.4-2011.pdf|802.15.4 MAC] layer, but less useful when it has come to protocols such as 6LoWPAN with IPv6 header compression.
+
When I first started developing with the [http://www.microchip.com/wwwproducts/Devices.aspx?dDocName=en027752 Microchip MRF24J40 802.15.4 Radio], I purchased Microchip's [http://www.microchip.com/stellent/idcplg?IdcService=SS_GET_PAGE&nodeId=1406&dDocName=en554244 Zena Wireless Adapter] and downloaded a copy of the Wireless Development Studio. It has been adequate for diagnosing issues at the raw [http://standards.ieee.org/getieee802/download/802.15.4-2011.pdf 802.15.4 MAC] layer, but less useful when it has come to protocols such as 6LoWPAN with IPv6 header compression.
  
[http://www.wireshark.org| Wireshark] is the de facto standard for analysing IP based networks and has support to [http://wiki.wireshark.org/IEEE_802.15.4| decode 802.15.4] packets. The problem is finding suitable hardware to capture the 802.15.4 packets and pass them to Wirehark for decoding and display. Much of the existing hardware encapsulates the packets and sends them to Wireshark over an ethernet or TCP/IP connection.
+
[http://www.wireshark.org Wireshark] is the de facto standard for analysing IP based networks and has support to [http://wiki.wireshark.org/IEEE_802.15.4 decode 802.15.4] and [http://en.wikipedia.org/wiki/6LoWPAN 6LoWPAN] packets. The problem is finding suitable hardware to capture the 802.15.4 packets and pass them to Wirehark for decoding and display. Much of the existing hardware encapsulates the packets and sends them to Wireshark over an ethernet or TCP/IP connection.
  
The guys over at [http://www.freaklabs.org/ Freaklabs] have a [http://www.freaklabs.org/index.php/WSBridge.html| WSBridge] open source application that acts as a bridge between Chibi/chibiArduino and Wireshark. It receives raw packets on a serial port and creates a Pipe to feed the captured packets into Wireshark.
+
The guys over at [http://www.freaklabs.org/ Freaklabs] have a [http://www.freaklabs.org/index.php/WSBridge.html WSBridge] open source application that acts as a bridge between Chibi/chibiArduino and Wireshark. It receives raw packets on a serial port and creates a pipe to feed the captured packets into Wireshark. STMicroelectronics have a similar application for the [http://www.st.com/st-web-ui/static/active/en/resource/technical/document/application_note/DM00029709.pdf STM32W108-based boards]
 +
 
 +
I've been using a cheap [http://www.sureelectronics.net/goods.php?id=984  Explorer 2.4GHz Wireless UART 'Development Kit' (GP-GC500)] from Sure Electronics. The boards consist of a Microchip MRF24J40 and Microchip PIC24FJ32GA002 for around $15 USD, and even cheaper on eBay. The documentation on these modules is not great, but I have previously spent the effort to [http://wiki.beyondlogic.org/index.php/Microchip_MRF24J40_Explorer_2.4GHz_Wireless_UART_Development_Kit_(GP-GC500) work out the schematic]. 
 +
 
 +
Therefore it was relatively easy to turn these cheap modules into an 802.15.4 Protocol Analyser, dumping the raw packets out on the serial port. The only additional hardware required was an FTDI USB to serial cable. Freaklab's [http://www.freaklabs.org/index.php/WSBridge.html WSBridge] was used on the PC to pipe the captured data to Wirehark.
 +
 
 +
To program the Sure Electronic's Explorer 2.4GHz Wireless UART Development Kit, users will need a Microchip PicKit3 or ICD3.
 +
 
 +
1. Start WSBridge:
 +
 
 +
http://wiki.beyondlogic.org/i/wsbridge.png
 +
 
 +
2. Open Wireshark and add pipe interface:
 +
 
 +
http://wiki.beyondlogic.org/i/wireshark_pipe.png
 +
 
 +
3. Start capturing:
 +
 
 +
http://wiki.beyondlogic.org/i/Wireshark_6LoWPAN.png
 +
 
 +
== Download ==
 +
 
 +
* [http://wiki.beyondlogic.org/i/6LoWPANSnifferV1.00.zip MPLAB X Project for 6LoWPAN Sniffer - GPL2]

Latest revision as of 06:42, 10 January 2014

Budget 802.15.4 6LoWPAN Protocol Analyser using Wireshark

When I first started developing with the Microchip MRF24J40 802.15.4 Radio, I purchased Microchip's Zena Wireless Adapter and downloaded a copy of the Wireless Development Studio. It has been adequate for diagnosing issues at the raw 802.15.4 MAC layer, but less useful when it has come to protocols such as 6LoWPAN with IPv6 header compression.

Wireshark is the de facto standard for analysing IP based networks and has support to decode 802.15.4 and 6LoWPAN packets. The problem is finding suitable hardware to capture the 802.15.4 packets and pass them to Wirehark for decoding and display. Much of the existing hardware encapsulates the packets and sends them to Wireshark over an ethernet or TCP/IP connection.

The guys over at Freaklabs have a WSBridge open source application that acts as a bridge between Chibi/chibiArduino and Wireshark. It receives raw packets on a serial port and creates a pipe to feed the captured packets into Wireshark. STMicroelectronics have a similar application for the STM32W108-based boards

I've been using a cheap Explorer 2.4GHz Wireless UART 'Development Kit' (GP-GC500) from Sure Electronics. The boards consist of a Microchip MRF24J40 and Microchip PIC24FJ32GA002 for around $15 USD, and even cheaper on eBay. The documentation on these modules is not great, but I have previously spent the effort to work out the schematic.

Therefore it was relatively easy to turn these cheap modules into an 802.15.4 Protocol Analyser, dumping the raw packets out on the serial port. The only additional hardware required was an FTDI USB to serial cable. Freaklab's WSBridge was used on the PC to pipe the captured data to Wirehark.

To program the Sure Electronic's Explorer 2.4GHz Wireless UART Development Kit, users will need a Microchip PicKit3 or ICD3.

1. Start WSBridge:

wsbridge.png

2. Open Wireshark and add pipe interface:

wireshark_pipe.png

3. Start capturing:

Wireshark_6LoWPAN.png

Download