Skip to content

How it works

catmurdock edited this page Nov 29, 2026 · 1 revision

How it works

 Speed Editor ──USB/Bluetooth HID──▶  SpeedEditorLR2.exe  ──key presses (SendInput)──▶  Lightroom
                                          │      ▲
                         TCP localhost:58771     │ link.txt (state, values)
                                          ▼      │
                                   Speed Editor LR plug-in (inside Lightroom)

Talking to the Speed Editor

The Speed Editor is a HID device (Blackmagic vendor ID 1EDB, product DA0E). Over USB and Bluetooth (BLE HID) it works the same:

  • Sign-in: before it sends anything useful, the panel wants a challenge-response handshake over feature report 6. The algorithm comes from the reverse-engineering work of Sylvain Munaut (smunaut/blackmagic-misc). The sign-in expires and is renewed automatically.
  • Input reports:
    • 0x03 jog wheel: mode + value. In relative mode the value is the movement since the last report, in units of 360 per tick, about 3600 ticks per turn. If the panel reports an absolute position instead, the app converts it and switches the panel back to relative mode.
    • 0x04 buttons: the codes of all buttons held down.
    • 0x07 battery: charging flag and level. The app also asks for it right after connecting.
  • Output reports: lamps (2 for the button lamps, 4 for JOG/SHTL/SCRL) and wheel mode (3).

Talking to Lightroom

Lightroom plug-ins can only open sockets themselves, and Lightroom's send socket proved unreliable on reconnects. So:

  • App → Lightroom: the plug-in listens on localhost:58771 (LrSocket in receive mode). The app sends one line per command: INC Exposure 3 0.05, DEC Shadows 1, RESET Contrast, CMD autotone, MODULE develop, plus SESSION and PING.

  • Lightroom → app: the plug-in writes link.txt in its own folder, about once a second and on every change:

    HB <time> <version>
    STATE <module> <rating> <label> <pick>
    VAL <sequence> <slider> <value>
    END
    

    The app reads it 10× per second. It counts as connected when the socket is open and the file is less than 6 seconds old.

Inside the plug-in, wheel commands are added up per slider and applied in one go (one setValue in Develop, one catalog write in Library), instead of one task per command. That way Lightroom never builds a backlog.

Settings

Settings are layered: General plus a page per module (Library, Develop, Other) that only stores what differs. Each button has press, long press and hold + wheel; each page has three wheel functions (SHTL/JOG/SCRL). The config file carries a version, and older files are migrated on load (e.g. wheel steps converted to the real wheel resolution).

Clone this wiki locally