Skip to content

标签:Smart Device

Bluetooth Troubleshooting: Pairing, Audio Glitches and Coexistence

Degraded performance with both Wi-Fi and Bluetooth on usually comes from 2.4GHz coexistence policy, not the Bluetooth module. Check coexistence before pairing Pairing failures: read scan and pairing logs in bluetoothctl and confirm firmware loaded (grep dmesg for bluetooth); Audio glitches: mostly Wi-Fi contending on 2.4GHz causing Bluetooth packet loss — moving Wi-Fi to 5GHz […]

阅读全文 →

Exercise Rep Counting: The Standard Skeleton-Keypoint Approach

A pose model outputs per-frame skeletons; turning poses into “one completed rep” takes state-machine logic. Counting is a state machine Define joint angles: squats watch the knee angle (160° standing) with hysteresis to avoid flicker; State machine: standing → down → standing counts one rep, with minimum-phase durations filtering jitter; Side view required: place the […]

阅读全文 →

ONVIF Camera Onboarding: Discovery, Auth and Substreams

ONVIF is a standard with uneven vendor implementations. Know these three pitfalls and onboarding goes smoothly. Three real-world ONVIF issues Discovery fails: across subnets multicast won’t route — enter IP and port manually (usually 80/8000/8899); Auth schemes: some older firmwares only do digest, which modern Frigate stacks handle; Stream URIs: confirm both profiles — main […]

阅读全文 →

I2C Sensors on RK3588: Reading Temperature, Light and Distance

The first step with any I2C device is scanning the bus for its address. Wrong address, wasted effort. Start with a bus scan Scan: i2cdetect -y 0 lists devices; nothing shows up means the controller isn’t enabled in the device tree; Driver path: kernel-supported parts (SHT3x) bind via hwmon; otherwise read registers with python-smbus per […]

阅读全文 →

PIR + Camera Fusion: Getting Camera False Alarms Under 1%

Vision alone is fooled by light; PIR alone by heat sources. Fused, false alarms approach zero at almost no extra cost. Let sensors vouch for each other Trigger chain: PIR wakes first (cheap) → vision confirms → both must agree before alert/recording; Fusion window: a person must appear within 5 s of the PIR trigger […]

阅读全文 →

EV Charger Controllers: Metering, Comms and Safety Interlocks

Chargers involve metering, payment and electrical safety, so the controller must first meet national comms protocols and billing accuracy. Compliance before features Protocols: national standards expect TCP or OCPP to the backend, CAN to the BMS locally — keep the two links independent; Reliable billing: read the meter over RS485 and persist locally so offline […]

阅读全文 →

Suspend and Resume Debugging: From Wake Failures to Sub-Second Recovery

Failed wake, peripherals broken after resume, and slow resume are three distinct problems with distinct paths. Three-step localization Read logs: dmesg shows per-phase suspend and resume timing and the failure point — watch for drivers timing out on resume; Minimize peripherals: disable USB, PCIe and wireless one by one until basic suspend works, then add […]

阅读全文 →

A Self-Hosted Face Access System: Recognition, Watchlists and the Door Relay

The hard part of DIY face access isn’t the model — it’s the engineering chain: lighting, angles, liveness and the door relay. Recognition is one link Model: InsightFace MobileFaceNet runs in under 50 ms per inference on the NPU, real-time for 1:1 checks; Enrollment quality beats quantity: 3-5 multi-angle frontal photos per person outperforms dozens […]

阅读全文 →

Implementing 3-2-1 for Photos: From Phone to Offsite

Manual backups always lapse. A finished photo pipeline should be invisible: shoot, and multiple copies exist. Automation is the point Copy one: phone → NAS via Immich auto-backup, syncing instantly on Wi-Fi; Copy two: NAS → USB disk with daily restic incrementals to a permanently attached drive; Copy three: offsite — cloud object storage or […]

阅读全文 →