GithubHelp home page GithubHelp logo

looper25 / bodybuggbypass Goto Github PK

View Code? Open in Web Editor NEW

This project forked from bemasher/bodybuggbypass

0.0 2.0 0.0 242 KB

A set of tools used for retrieving, parsing and clearing data from a BodyBugg.

License: Other

Java 32.42% Go 67.58%

bodybuggbypass's Introduction

Update

This project is dead, the method used to get access to the device has been fixed. I will leave this here simply for posterity.

Usage

Device Dump/Clear

Usage: java -jar bodybuggbypass.jar

The program writes all retrieved data to a file named: {timestamp of last data retrieval}.log

Once all data has been read, the device's memory is cleared and internal time as well as data retrieval times are set to the current date/time.

Dump Parser

Building the parser requires golang. Steps to build are as follows:

go get github.com/bemasher/errhandler
go build parser.go

Usage: parser [INFILE] [[OUTFILE]]

Parameters:

  • INFILE is required.
  • OUTFILE is optional and defaults to "data.json"

The input file is parsed and written as a json encoding to OUTFILE. The basic structure of the file is a list of the following object:

Session {
	Channel string
	Epoch int64
	Divisor uint32
	Payload []arbitrary
}
  • Channel represents the channel name of the session.
  • Epoch is the unix timestamp of the time the first data point was recorded.
  • Divisor is used for determining the time interval between records, 1 divisor = 1/32 sec.
  • Payload is a homogeneous list of any of the following types:
    • uint16
    • int64
    • {Timestamp int64, I int, J int}

Caveats

To avoid the same fate as the FreeTheBugg project, I am not packaging any of the jars this program depends on which belong to BodyMedia. Instead you'll need to download and place them in the directory bodybuggbypass_lib which must be in the same directory as the executable jar bodybuggbypass.jar:

This project was developed using version 1.10.0 of the jar's. I have not had time to add compatibility with version 1.11.0 and will not work. Links to version 1.10.0 no longer work.

Information

Sample dump and parsed data are found in sample.log and sample.json.

bodybuggbypass's People

Contributors

bemasher 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.