Skip to content

seichter/d2relay

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

D2Relay

D2 Relay is a small tool to relay measurements of a Leica DISTO™ D2 device to the console. This tool is Linux only due to its dependency on python-gatt.

© Copyrights 2021 Hartmut Seichter

Prerequisites

You need to install gatt integration for python. To do so only for your user account it is sufficient to execute:

$ pip install --user gatt

Collaboration

There are many ways to collaborate, please open an issue or a pull request. Some ideas:

  • separate python-gatt from the tool itself to support Windows, Mac or any other platform
  • create a proper d2relay module to encapsulate the functionality
  • support other Leica BLE devices

Screenshot

d2relay capturing data from the device

Todo

Plenty of hints can be found in my notes while reverse engineering my device.

  • Infer correct units
  • Detect error states such as 255 (too close)
  • Make things configurable by using command line parameters
  • Interactive Mode: trigger measurements over BT
  • Demonstrator with FreeCAD or the like