SDK and compatibility
The package is @danishjsheikh/doorlink-sdk. It is usable from the local workspace
or a packed tarball; an npm registry release is a separate publishing action.
Build with npm run build --workspace sdk, test with npm test --workspace sdk.
For full API usage see the SDK README on GitHub.
Compatibility matrix
| Capability | Evidence | Current release status |
|---|---|---|
BS-121, reporting tfs30, TH900 firmware family |
Selected requests observed on one privately owned unit | Extracted SDK not yet hardware-tested |
| Registration, scan push, user list and credential read/write | Observed wire shapes | Fake-machine/unit tests; retain hardware caveats |
| User validity, full delete, fingerprint delete, open-door | Selected effects observed | Retest SDK release and firmware before deployment |
| Device info, user names, new/all-log retrieval, all-users | Request strings observed | Unverified semantics/paging |
| Clock, reboot, device locks, holidays, enable/disable, profiles | Operation names observed | Inventory only; do not invent payloads |
| Remote enrollment, face, QR, other brands/models | Not established | Unsupported/unverified |
Similar casing, model names or JSON commands do not prove compatibility. Record exact firmware, each tested feature, side effects and regressions.
Our machine: brand, model and company
| Field | Value | Confidence |
|---|---|---|
| Brand on the device (seller) | Bioroles | Identified by the owner |
| Model | BS-121 | Identified by the owner |
| Model the device reports | tfs30 |
Reported by the device |
| Firmware family | TH900 | Reported by the device |
| Protocol | "cloud solution WEBSOCKET+JSON protocol" | Matches the vendor protocol document |
| Manufacturer (factory / OEM) | Unknown | Not established. Timmy and Qiandao occur only as names in third-party sample code; that does not prove either one makes the device. |
Protocol family and possibly compatible terminals
Our terminal speaks the vendor protocol titled "cloud solution WEBSOCKET+JSON
protocol" (revisions v1.0 2016 to v2.0 2021). Its example registration uses
modelname: "tfs30" and a thbio fingerprint algorithm, the same family as our
unit. Independent open-source projects implement the same /pub/chat,
reg/sendlog, cloudtime and nosenduser shapes for other terminals.
Searches for vendor names include AiFace, TimyTeco, Timmy
(com.timmy.websocket) and Qiandao (签到, check-in). The actual OEM
behind these names is not established.
| Brand / model reported elsewhere | Source of evidence | Doorlink status |
|---|---|---|
Bioroles BS-121 (tfs30, TH900 firmware family) |
Our own observations | Selected operations observed; extracted SDK untested |
Generic tfs30 (th600w firmware, thbio3.0) |
Protocol text copy | Same model string; untested |
| AiFace / TimyTeco AiFace terminals | laravel-aiface-websocket, aiface-websocket-python | Third-party reports; untested |
| TRG-AIFACE11F WiFi, TRG-AI01 WiFi | Device logs in websocketsdk | Third-party reports; untested |
| Evo Facial readers | websocket-AI-face | Brand unverified; untested |
| AI26 | QuynhHaiGym | Third-party report; untested |
Not established: ZKTeco, eSSL, Realand, Anviz or Eyecool terminals. Those use
other protocols unless someone proves otherwise. Face-capable firmware reportedly
uses backupnum 50 for photos and log mode 8 for face punches. Doorlink does not
implement either yet.
If you own one of these terminals, open an issue with the model, the
devinfo firmware strings (never the serial number) and the operations that
worked. That is how a row moves from "untested" to "tested".
Protocol constraints
- Plain WebSocket JSON; terminal connects to
/pub/chat, normally port 7788. - One request at a time, timeout and a quiet gap. A timeout is not proof of no effect; do not blindly retry writes.
- The default offset is +330 minutes. Fixed offsets are configurable; DST is not automatic.
- The registration acknowledgment includes
nosenduser: true; its behavior on this unit is unverified. No start-enrollment orsenduserhandler is provided. - A reported scan can include a refused attempt. It is not proof of entry.
- Known firmware's validity cutoff was approximate. Do not promise hard expiry.
- Credential payloads can contain templates, PINs or cards. Raw replies and the
SDK's
unknownevent must stay in local memory, not logs or frontend data. - Wipes and initialization require an explicit destructive-command opt-in.
The published inventory intentionally retains unknown operations as names, not fabricated command implementations.