Coder Social home page Coder Social logo

ankieventsniffer's Introduction

ankiEventSniffer

Anki Overdrive demo: python code to sniff BLE data between Mobile App and Anki cars

  • Main code from Adafruit
  • Anki Overdrive main parts from Oracle Australian Presales Team (John Graves <[email protected]> and others)
  • Additional changes and improvements by Oracle Spanish Presales Team (Víctor Mendo <[email protected]> and Carlos Casares <[email protected])

Event types

  • The script captures bluetooth packets emitted by cars.
  • Further interprets the info and sends them as structured event to an http Endpoint.
  • Http endpoint performs further event processing. For more info look at anki-rest

SPEED_MEASUREMENT

 {
  "demozone": demozone,
  "deviceId": piId,
  "dateTime": int(time.time()),
  "dateTimeString": dateTimeString,
  "raceStatus": raceStatus,
  "raceId": raceCount,
  "carId": myDeviceAddress,
  "carName": myCarName,
  "speed": speed,
  "trackId": trackId,
  "lap": currentLap,
  "type": "SPEED_MEASUREMENT"
 }

LANE_CHANGED

{
  "demozone": demozone,
  "deviceId": piId,
  "dateTime": int(time.time()),
  "dateTimeString": dateTimeString,
  "raceStatus": raceStatus,
  "raceId": raceCount,
  "type": "LANE_CHANGED",
  "carId": myDeviceAddress,
  "carName": myCarName,
  "lap": currentLap
}

LAP_COMPLETED

{
  "demozone": demozone,
  "deviceId": piId,
  "dateTime": int(time.time()),
  "dateTimeString": dateTimeString,
  "raceStatus": raceStatus,
  "raceId": raceCount,
  "carId": myDeviceAddress,
  "carName": myCarName,
  "lap": currentLap,
  "lapTime": lapTime,
  "type": "LAP_COMPLETED"
}

CAR_TRANSITIONED

{
  "demozone": demozone,
  "deviceId": piId,
  "dateTime": int(time.time()),
  "dateTimeString": dateTimeString,
  "raceStatus": raceStatus,
  "raceId": raceCount,
  "carId": myDeviceAddress,
  "carName": myCarName,
  "trackStyle": trackStyle,
  "trackSegment": trackSegment,
  "lap": currentLap,
  "type": "CAR_TRANSITIONED"
}

VEHICLE_DELOCALIZED

{
  "demozone": demozone,
  "deviceId": piId,
  "dateTime": int(time.time()),
  "dateTimeString": dateTimeString,
  "raceStatus": raceStatus,
  "raceId": raceCount,
  "carId": myDeviceAddress,
  "carName": myCarName,
  "lap": currentLap,
  "type": "VEHICLE_DELOCALIZED",
  "lastKnownTrack": tentative_offtrack_position
}

ankieventsniffer's People

Contributors

ccasares avatar prakharsrivastav avatar

Watchers

 avatar

Forkers

iampoul apsaltis

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.