BearSentinel dashboard & serial protocol driver for Uniden BCD325P2 radio network telemetry.
Modern radio spectrum is noisy, transient, and distributed across trunked talkgroups that hop frequencies every few seconds. BearSentinel (bcd325-dashboard) converts off-the-shelf scanner hardware — specifically the Uniden BCD325P2 and BCD996P2 — into an automated RF situational awareness appliance. Instead of sitting next to a squawking speaker, you get structured, queryable telemetry streamed straight into a browser or ingestion pipeline.
The dashboard connects over USB serial (115,200 baud ASCII), continuously interrogates the scanner's internal DSP registers, and decodes live transmissions across P25 Phase I & II, EDACS, Motorola Type II, and conventional FM channels. Talkgroup IDs (TGID), radio Unit IDs (UID), signal strength metrics, and GPS positions are categorized in real time.
The Uniden BCD325P2 exposes a comprehensive bidirectional serial control protocol. By issuing continuous non-blocking STS (Status) queries every 50–100 milliseconds, the dashboard monitors whatever channel the scanner's discriminator has locked onto. Incoming frames are unpacked into clean JSON objects, classified against known agency talkgroup tables (RadioReference / local dispatch), and dispatched across two operational cores:
Communication follows a strict asynchronous lock-step request/reply contract. The host driver issues remote ASCII commands terminated by carriage returns (\r), and the scanner answers immediately before the next packet can be queued.
BearSentinel operates across two distinct analysis perspectives tailored for live operations vs. forensic investigations:
| Feature | SENTINEL (Tactical Live Monitor) | ANALYST (Forensic Historical Review) |
|---|---|---|
| Primary Objective | Immediate situational awareness, active transmission alarms. | Long-term traffic pattern forensics, audit trails, and correlation. |
| Stream Latency | Sub-50 ms real-time feed direct from serial discriminator. | Buffered, indexed, and aggregated across multi-hour logs. |
| Alert Engine | Threshold-based audio/visual alarms on priority TGIDs/UIDs. | Offline query search, talkgroup frequency histograms. |
| Geospatial GIS | Live scanner GPS fix (GLG) with breadcrumb tracking. | Historic transmission density heatmaps & cell range radii. |
| Data Export | Live WebSocket telemetry broadcast & raw serial pipe. | Structured CSV dump, SQLite database, and Splunk HEC ingest. |
1. Connect the scanner: Connect your Uniden BCD325P2 or BCD996P2 to your desktop computer using a standard mini-USB cable. Ensure the scanner is powered on and set to 115,200 bps baud rate in Settings → Set C-Bps.
2. Launch Browser Console: Open the Web Serial Live Console in Google Chrome, Microsoft Edge, or Opera on desktop. Click Connect Scanner and pick the detected COM/serial port. Live transmission telemetry will begin streaming immediately.
3. Launch Full React UI: For full forensic analysis and historical SQLite persistence, run the standalone React application:
# Clone and install dependencies
git clone https://github.com/GlomarGadaffi/bcd325-dashboard.git
cd bcd325-dashboard
npm install
# Start local telemetry server
npm run dev
The BCD325P2 serial protocol communicates over plain ASCII lines. The most critical commands utilized by the dashboard include:
| Command | Direction | Syntax / Return | Description |
|---|---|---|---|
MDL | Query | MDL\r → MDL,BCD325P2\r | Requests the hardware model identifier to verify receiver capabilities. |
VER | Query | VER\r → VER,1.06.00\r | Queries scanner firmware version. |
STS | Query | STS\r → STS,[status fields...]\r | Interrogates live screen buffer: frequency, mode, RSSI, TGID, system name. |
GLG | Query | GLG\r → GLG,[lat],[lon],[alt]...\r | Reads attached GPS receiver coordinates (NMEA format). |
VOL | Control | VOL,3\r → VOL,OK\r | Queries or sets receiver audio volume level (0–15). |
SQL | Control | SQL,2\r → SQL,OK\r | Queries or adjusts RF squelch threshold (0–15). |
KEY | Control | KEY,[code],[mode]\r → KEY,OK\r | Emulates front-panel keypad presses (e.g., Hold, Scan, Avoid). |
PRG | State | PRG\r → PRG,OK\r | Enters remote programming mode to modify channel banks in flash. |
EPG | State | EPG\r → EPG,OK\r | Exits programming mode and returns scanner to normal scanning operations. |
The full specification covering all 80+ commands and response byte offsets is documented in the Complete Protocol Reference.
| Model | Form Factor | Supported Protocols | Interface |
|---|---|---|---|
Uniden BCD325P2 | Handheld | P25 Phase I & II, EDACS, Motorola Trunked, Conventional | Front Mini-USB (115.2k) |
Uniden BCD996P2 | Mobile / Base | P25 Phase I & II, EDACS, Motorola Trunked, Conventional | Front USB + Rear DB9 RS-232 |
Uniden BC125AT | Handheld | Conventional Analog FM / AM (VHF/UHF Airband) | Mini-USB (Partial Protocol) |
Uniden BCD436HP | Handheld | P25 Phase I/II, ProVoice, DMR, NXDN (HomePatrol spec) | Mass Storage / Serial Link |