Coder Social home page Coder Social logo

jinmatt / betaengine Goto Github PK

View Code? Open in Web Editor NEW

This project forked from george-hawkins/betaengine

0.0 2.0 0.0 2.37 MB

SmartConfig & its decoding for CC3100 & CC3200

Home Page: http://depletionregion.blogspot.ch/2013/10/cc3000-smart-config-transmitting-ssid.html

Java 100.00%

betaengine's Introduction

Beta-engine

All net.betaengine code requires Java 7 or later.

This project depends on various jars and resources that are covered by their own licenses. The origin of these items and the relevant licenses are covered in the file RESOURCES.txt.

The net.betaengine code and related resources are covered the Apache License, Version 2.0. You may obtain a copy of this License at:

http://www.apache.org/licenses/LICENSE-2.0

Build

The following sequence of commands will build the net.betaengine codebase on Linux or Mac OS X and should be easy to adapt for Windows.

$ java -jar lib/jarjar-1.4.jar process assembly/resources/rules.txt ti-resources/smartConfig.jar lib/com.ti.smartconfig-1.1.jar
$ mkdir -p bin
$ javac -d bin -classpath 'lib/*' $(find src -name '*.java')

The first step repackages the original TI smartConfig.jar file into a useable jar called com.ti.smartconfig-1.1.jar.

Tools

Once you've built the codebase you can run the various tools as follows.

mDNS listener

$ java -classpath 'bin:lib/*' net.betaengine.mdns.MDNSListener

Smart Config responder

$ java -classpath 'bin:lib/*' net.betaengine.smartconfig.device.Responder <device-name>

If no device-name is provided then the default name "CC3000" is used.

Smart Config desktop UI

$ java -classpath 'bin:resources:lib/*' net.betaengine.smartconfig.desktop.Main

Decoder

Running the decoder is a little more complex than the other tools.

It should be run in combination with tshark like so:

$ tshark -o 'wlan.enable_decryption:FALSE' \
    -i en0 -I -f 'subtype qos-data' -Y 'wlan.fc.retry==0' -T fields \
    -e wlan.bssid -e radiotap.channel.freq -e wlan.sa -e wlan.da -e data.len 2> /dev/null \
    | java -classpath "bin:lib/*" net.betaengine.smartconfig.device.decoder.Consumer

Replace en0 with the appropriate wifi device reported by:

$ tshark -D

Note: stderr is redirected to /dev/null simply in order to throw away the frame count information that tshark reports. It looks like one should be able to disable this output with -Q but this does not work with my version of tshark.

betaengine's People

Contributors

george-hawkins avatar tbfly avatar

Watchers

 avatar  avatar

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.