Skip to content
Maxime Colmant edited this page Feb 17, 2015 · 16 revisions

Preamble

This project works well with Linux.

For more support, contact us via the mailing list.

Prerequisites

[REQUIRED]

To be able to use the PowerSpy powermeter, you need to install the libbluetooth-dev library on your system.

[OPTIONAL]

If you want to pair the powermeter automatically, follow these steps:

  • Get your mac address => hcitool dev (DEVICE)
  • Get the PowerSpy's mac address => hcitool scan (POWERSPY)
  • Create/edit the file /var/lib/bluetooth/${DEVICE}/pincodes by adding the line ${POWERSPY} ${PIN}. The PIN is 0000 for PowerSpy v1, 1111 for the second version.
  • Restart the bluetooth service => sudo restart bluetooth

How to use?

As a program

  • Get our launcher
  • Unzip the archive, edit the configuration files in ./conf if needed
  • Run the script ./bin/powerspy-app [OPTIONS] ${POWERSPY}
  • For more details, use `./bin/powerspy-app --help``
  • Example: ./bin/powerspy-app 00:0b:ce:07:1e:9b

The launcher can be stopped by using the option [-t ${SECONDS}] or by using CTRL+C.

As a dependency for using the core package

With SBT

libraryDependencies += "fr.inria.powerspy" % "powerspy-core_2.11" % "1.1"

With Maven

<dependency>
  <groupId>fr.inria.powerspy</groupId>
  <artifactId>powerspy-core_2.11</artifactId>
  <version>1.1</version>
</dependency>
Clone this wiki locally