GithubHelp home page GithubHelp logo

k3170makan / btsnoop_parser Goto Github PK

View Code? Open in Web Editor NEW
5.0 2.0 1.0 95 KB

Implementation of a btsnoop file parser in c

License: GNU General Public License v3.0

Makefile 0.40% C 99.60%
bluetooth bluetooth-low-energy btnsoop

btsnoop_parser's Introduction

BTSnoop version 1.0 File Parser

Implementation of a btsnoop file parser in c.

Usage

./btsnoop_parse.elf btsnoop_hci.log

Sample output:

>>./btsnoop_parse.elf ./btsnoop_sample.log 
btsnoop_header{
	- magic	=> 'b[0x62]  t[0x74]  s[0x73]  n[0x6e]  o[0x6f]  o[0x6f]  p[0x70]  [0x00]  
	- version	=> '0x01'
	- data link type => '0x3ea'
	}
(44)[0x2c] btsnoop_packet_record_t {
	* orignal length => 4
	* included length => 4
	* flags => 2
	* cummulative drops => 0
	* timestamp => Sun 1970-06-21 10:36:15 PDT
	* data
	[0x01] [0x03] [0x0c] [0x00] 

	}
...
        (3)[0x03] btsnoop_packet_record_t {
        * orignal length => 4
        * included length => 4
        * flags => 2
        * cummulative drops => 0
        * timestamp => Sun 1970-06-21 10:36:15 PDT
        * data
        [0x01] [0x05] [0x10] [0x00] 
                HCI CMD: [READ_RSSI ] {
                * opcode -> '0x1005'
                * opcode group   -> '0x04'
                * opcode command -> '0x05'
                * param_len -> '0x00' (0) bytes 


                }


        }

        (4)[0x04] btsnoop_packet_record_t {
        * orignal length => 14
        * included length => 14
        * flags => 3
        * cummulative drops => 0
        * timestamp => Sun 1970-06-21 10:36:15 PDT
        * data
        [0x04] [0x0e] [0x0b] [0x01] [0x05] [0x10] [0x00] [0x00] [0x04] [0x3c]
        [0x07] [0x00] [0x08] [0x00] 
                HCI EVENT: [COMMAND COMPLETE] {
                * event code -> '0x0e'
                * param_len -> '0x0b' (11) bytes 


                }


        }

Building

make

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.