Skip to content

bertrandmartel/radiotap-decoder-java

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Radiotap Decoder in Java

http://bertrandmartel.github.io/radiotap-decoder-java/

Last update 04/05/2015

Will decode any radiotap formatted byte array according to specification in http://www.radiotap.org

Following field will be implemented later:

  • VHT field type decoding
  • MCS field type decoding
  • FHSS field type decoding
  • AMPDU field type decoding

USAGE

The following usage show how to parse a pcapng file (from Wireshark) that contains Packet with Radiotap headers.

You can use

You dont have to take the jar to you it is already in lib folder


COMMAND LINE SYNTAX

java -cp ../lib/pcapngdecoder-1.0.jar:radiotapdecoder-1.0.jar fr.bmartel.radiotapdecoder.main.DecodeMain -f ../radiotap_file/exemple.pcapng -v

-f <file.pcapng> : input file

-v : verbose, will show all section parsing content

This exemple is launched from release folder


PROGRAM SYNTAX

byte[] radioTapData = packet.getPacketData();

RadioTap radioTap = new RadioTap(radioTapData);

You can then look at all fields that are in the radiotap data with radioTap.getRadioTapFlagList()

Go check fr.bmartel.protocol.radiotap.inter.IRadiotapFlags interface to see all list.

radioTap.getRadioTapFlagList().getRadioTapData() will give you all the data you can grab according to flags above.

Go check fr.bmartel.protocol.radiotap.inter.IRadiotapData to see all data available.


Output Example

###############################################################################################
RadioTap Version : 0
RadioTap length : 18
RadioTap data :
flags : 16
data rate : 1000kbps

ant signal in dbm : -62 dbm
antenna : 7 (unitless) (indication of the Rx/Tx antenna for this packet)
PLCP CRC error : false
channel number : 12
frequency used : 2467MHz
CCK channel : true
DYNAMIC CCK channel : false
GFSK channel : false
OFDM channel : false
only passive scan : false
spectrum channel 2GHZ : true
spectrum channel 5GHZ : false
turbo channel : false
###############################################################################################


* Project is JRE 1.7 compliant * You can build it with ant => build.xml * Development on Eclipse * Specification from http://www.radiotap.org