ItzOmii / tbbt-server Windows no vendor app RTSP out ← repository
README.md· factory reset → your Wi-Fi → RTSP, without the app

TBBT Server

A small Windows app that takes a factory-reset YsxLite A9 / TBBT battery camera to a working RTSP stream without the vendor app.

target TBBT / YsxLite A9 firmware mcuver 61.2.22.3 link PPPP over UDP/32108 camera login admin / admin out RTSP — mjpeg 240×320 build PyInstaller, Windows status working

What it is

TBBT Server is a single-folder Windows application that configures a factory-reset YsxLite A9 / TBBT battery camera and then republishes it as RTSP. It joins the camera's setup hotspot, logs in as admin/admin over the proprietary UDP/32108 PPPP protocol, writes the home Wi-Fi credentials into the camera, and waits for it to reappear on the LAN. Once the camera is back, the app holds its single client slot open with a persistent MJPEG bridge and runs go2rtc v1.9.15 in front of it, publishing rtsp://HOST:8554/camera. The visible surface is one small window: a status line, at most one row of controls, and a collapsible log.

The problem

These cameras (device ids like TBBT-xxxxxx-XXXX, firmware mcuver 61.2.22.3) speak a proprietary PPPP protocol, and the vendor app is the only supported way to configure them. During pairing that app silently generates a random 8-character device password with StringUtils.getRandStr(8), drawn from the app's own alphabet using an unseeded Random, and never shows it to the user. After pairing, the owner cannot log in to their own camera without sniffing the password off the wire.

A factory reset avoids the generated password — the camera keeps admin/admin — but it also wipes the Wi-Fi settings, so the camera has to be told the home network by hand before it is reachable at all. This app performs that hand-off directly, with no vendor app in the loop.

How it works

  1. Reset the camera. It starts broadcasting an open 2.4 GHz hotspot named after its device id, e.g. TBBT681302FNECR.
  2. Join that hotspot on the PC. The app notices by itself — it polls the current SSID.
  3. The app connects to the camera at 192.168.1.1 on the camera's own AP subnet. The camera ignores network sweeps in AP mode, so a normal subnet scan finds nothing; a direct connect to the gateway address works.
  4. It logs in with admin/admin over PPPP and writes the home Wi-Fi in one 264-byte settings command (0x6001): a 4-byte header, then mode/enable/authtype/dhcp and related fields, SSID at offset 28, PSK at offset 60. The camera acks with 0x6101. The write only lands with mode=0 (client), enable=1, dhcp=1; sending its own hotspot name back is silently refused.
  5. The camera reboots onto the home network. The app reconnects the PC to the home SSID, finds the camera on the LAN, and starts a persistent MJPEG bridge that holds the camera's single client slot, with go2rtc in front of it publishing rtsp://HOST:8554/camera.
  6. The window shows the live picture plus the RTSP address. Click the address to copy it.

Why a persistent bridge. The camera accepts exactly one client. go2rtc's on-demand exec: source kills the bridge when the last viewer leaves, and the next viewer can get a 404 while it restarts — the wrong trade for a camera that takes seconds to wake. Instead the app keeps the bridge running and go2rtc reads http://127.0.0.1:PORT/stream, so several RTSP viewers share one camera session.

Using it

Run TBBTCameraSetup.exe from inside its folder. Do not move the exe out on its own; it needs _internal, tbbt_bridge.exe and go2rtc.exe beside it.

  1. Reset the camera if it has been paired before.
  2. When the status line asks for it, join the camera's hotspot on the PC.
  3. Wait. The status line moves through login, Wi-Fi write, camera rejoining, bridge start, RTSP ready.

When live, the window shows the picture and the address. Click it to copy:

rtsp://HOST:8554/camera

HOST is the machine's LAN address. Paste that into any RTSP client.

What was verified

Limits

Files in the folder

If it goes wrong

See also the packet-level write-up: The TBBT / A9 Cameras — the packet-level work this app came out of.