Skip to content
apyfzPublic

About

Nikon ZR companion for Android: Bluetooth wake, Wi-Fi transfer, remote control

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

Z Control

A small Android app for the Nikon ZR that does the two things SnapBridge makes hard: wake the camera over Bluetooth, join its Wi-Fi, and pull photos and videos onto the phone. Remote monitoring and control over the same link is the next step.

Personal project, built for one Nikon ZR and one Android phone. It works, but it is not a product.

How it works

The ZR speaks Nikon's "LSS" Bluetooth LE service and standard PTP/IP over Wi-Fi. Everything the app does was worked out from the protocol as SnapBridge uses it:

  1. Bluetooth. Scan for the LSS service, connect, enable notifications, then run Nikon's four-stage challenge-response on the authentication characteristic. The camera then hands over its Wi-Fi SSID and passphrase, Blowfish-encrypted with the session key, and accepts a "turn on Wi-Fi" write.
  2. Wi-Fi. The app asks Android to join that network through WifiNetworkSpecifier, so the system shows its own connect sheet and no Settings trip is needed.
  3. PTP/IP. A plain ISO 15740 session on port 15740 lists the card, fetches thumbnails and streams files into Pictures/Z Control through MediaStore.

Pairing has three stages and the camera stays on "waiting" until all three are done: the Bluetooth LE handshake and name/time writes, a classic Bluetooth bond (this is when the camera shows its confirmation code), then a second LE session. The camera rotates its LE address, so the app scans by service and name on every connect rather than storing an address.

Building

You need the Nikon authentication library, which is not in this repository. Install SnapBridge on your phone, connect it over USB with debugging enabled, and run:

tools/extract-lssec.sh

That copies libLsSec-jni.so out of the SnapBridge APK into app/src/main/jniLibs/arm64-v8a/. Then build with Android Studio or:

JAVA_HOME="/Applications/Android Studio.app/Contents/jbr/Contents/Home" ./gradlew assembleDebug

The app targets arm64 only, minimum Android 12.

Status

  • Pairing, connect, browse, and download: working on a ZR with firmware 1.11.
  • Remote live view and exposure control: in progress.

License

PolyForm Noncommercial 1.0.0. See LICENSE.md.

About

Nikon ZR companion for Android: Bluetooth wake, Wi-Fi transfer, remote control

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages