Devices¶
laserlog talks to laser meters over Bluetooth Low Energy using the browser's Web Bluetooth API. Each device family has one adapter in src/laser/adapters.ts: GATT service and characteristic, the frames to send after connecting, and a parser that turns a notification into metres.
No manufacturer publishes its protocol openly. What we use comes from public reverse-engineering work and from recordings of real devices.
Support¶
| Brand | Models (examples) | State | What we know |
|---|---|---|---|
| Bosch | Universal Distance 50C, Advanced Distance 50C, PLR 30 C / 40 C / 50 C, GLM 50 C, GLM 50-27 C, GLM 100 C, GLM 150 C | works (tested with a Universal Distance 50C) | One protocol ("MT") for all models, only the UUIDs differ. Well documented by the community. |
| Leica DISTO | D1, D2, D110, D510, D810, X3, X4, X6 | planned | Custom service 3ab10100-f831-4395-b29d-570977d5bf94; the distance arrives as a 4-byte float on 3ab10101-…. Leica offers an SDK on request. |
| Huepar | S120 and S-series | planned | Service 0xAE30, notifications on 0xAE02, distances as 16-bit millimetres, frames start with 0xF1. |
| Mileseey | S50C, P7, T7, M120, dTAPE | wanted | No public description yet; please help with a recording. |
| Stabila | LD 250 BT, LD 530 BT | wanted | as above |
| Stanley | TLM 99s, Fatmax TLM 165s | wanted | as above |
| DeWalt, Hilti, Johnson Level, Hersch | single models | wanted | as above |
Older lasers that only speak Bluetooth Classic (serial port profile) cannot be reached from a browser.
Browsers¶
| Platform | Browser | Web Bluetooth |
|---|---|---|
| Android | Chrome, Edge | yes |
| Windows, macOS, Linux, ChromeOS | Chrome, Edge | yes |
| iPhone, iPad | Safari and every other iOS browser | no (type values by hand) |
| any | Firefox | no |
Add a device family¶
- Record what the device sends: frames in hexadecimal together with the value on the display.
- Add a
LaserMeterAdapterinsrc/laser/adapters.tswith name prefixes, GATT profile, init frames and parser. - Add the recorded frames as tests in
tests/adapters.test.ts. - Open a pull request. Please never include serial numbers or Bluetooth addresses of your device.
Sources¶
- Bosch: pymtprotocol, jttdev/open3dFloorplan (the origin of our Bosch adapter, MIT)
- Leica: d2relay
- Huepar: S120 protocol notes
- Model lists: magicplan, Floor Plan Creator