A small Windows app that takes a factory-reset YsxLite A9 / TBBT battery camera to a working RTSP stream without the vendor app.
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.
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.
TBBT681302FNECR.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.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.rtsp://HOST:8554/camera.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.
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.
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.
0x1021, 0x1022, 0x1023) are silently ignored, so the camera stays on admin/admin. The honest trade is that anyone on the LAN who knows the trick can log in. Protect the network, not the camera.TBBTCameraSetup.exe — the app: setup sequence, status UI, tray and background mode, supervision of the other two.tbbt_bridge.exe — camera → MJPEG bridge; holds the camera's single client slot so viewers do not contend for it.go2rtc.exe — go2rtc v1.9.15; turns the local MJPEG stream into RTSP.QUICKSTART.txt — short written instructions._internal — PyInstaller runtime files. Required; do not delete or move.192.168.1.1 on its own subnet. Connect to that gateway address directly; a subnet sweep will not find it.TBBT... SSID, then retry; the app connects to the gateway address rather than scanning.go2rtc.exe missing. The RTSP side will not start. Keep the exe in its original folder alongside the rest of the build.tbbt_bridge.exe from an earlier run still holds the camera, quit the tray icon and end the leftover process before retrying.See also the packet-level write-up: The TBBT / A9 Cameras — the packet-level work this app came out of.