/A9_PPPP

HDWiFiCam Pro (DGOA WiFi Prefix) JS-Api

Primary LanguageJavaScript

HDWiFiCam Pro (DGOA WiFi Prefix) JS-Api

Thanks to all the people in this Home Assistant Community thread.

This code is tested for a cheap WiFi cam with software version "A9_IPC_20220506 10:41:05" and the "HB3_V0.3D210726" marking on the PCB. This Camera opens a WiFi Access Point with the "DGOA" prefix and works with the HDWiFiCam Pro App.

HB3_V0.3D210726

This Camera uses the PPPP-Protocol with some sort of "propietary XOR encryption". Actual Commands to the Camera are JSON embedded in a custom Payload header in the MSG_DRW packets.

Video is received as MJPEG stream, the audio samples are ADPCM encoded.

Usage

The run.js starts a webserver on port 3000 wich serves the mjpeg data. The run_with_audio.js additionally plays audio using the npm plugin speaker.