Code Monkey home page Code Monkey logo

glukose-service's Introduction

glukose-drivers-java

Java glucomenter protocol service implementation using Reverse Engineering Hacking techniques

Hacked Devices

Sniffing Tools

The sniffing tool used for reverse engineering the glucometer device protocols is the Windows tool called USBTrace

The application uses

Installation

  • Create a USB rules (60-freestyle-optium-neo.rules) on your Linux Box directory(/etc/udev/rules.d) using this script, you only must change the group name used when you start your node app.
ATTRS{idVendor}=="1a61", ATTRS{idProduct}=="3850", SUBSYSTEMS=="usb", ACTION=="add", MODE="0666", GROUP+="miguel"
  • Refresh udev to reflect changes with the command: sudo udevadm trigger

Execution

The service have two parameters:

  • -p: indicate the path where we must export the json result of the service. Default path the same directory where we start the service.
  • -w: the wait time (in milliseconds) between the send a command and receice the result from the device. Default time is 1000 ms

An example could be:

java -jar glukose.jar -p /opt/glukose/export -w 1500

Result

The result of the service have a JSON format to be consumed by the app glukose. The file created have this name: [Device Serial Number]#[Created time].json

An example could be LAGV041S04629#20160225234331.json

{"ptname":"THINGTRACK",
 "ptid":"masalinas",
 "measures":[{"value":74.0,"date":"2016-02-23T18:50+0000"},
             {"value":107.0,"date":"2016-02-04T12:02+0000"},
             {"value":0.0,"date":"2016-01-31T00:43+0000"},
             {"value":0.0,"date":"2016-01-31T00:43+0000"},
             {"value":0.0,"date":"2016-01-31T00:26+0000"},
             {"value":0.0,"date":"2016-01-31T00:25+0000"},
             {"value":119.0,"date":"2016-01-30T13:14+0000"},
             {"value":0.0,"date":"2016-01-30T13:08+0000"}],
 "date":"2016-02-29T19:38+0000",
 "serlnum":"LAGV041S04629"}

Licenses

The source code is released under Apache 2.0.

glukose-service's People

Contributors

masalinas avatar

Watchers

 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.