Skip to content

Instantly share code, notes, and snippets.

@ekwoodrich
ekwoodrich / DVRIP-Sonia Reference Codes.md
Last active April 30, 2024 20:24
Reference codes for the DVRIP/Sonia TCP protocol used by the Net Surveillance ActiveX plugin

DVRIP/Sonia Protocol

DVRIP/Sonia TCP protocol used by the Net Surveillance ActiveX plugin

1. Response Codes

Return code Definition
100 Success
101 Unknown error
102 Version not supported
103 Illegal request
@knight-of-ni
knight-of-ni / netcat.txt
Created January 31, 2016 18:25
NetCat PTZ Data Wireshark Data
// The words SEND and RECEIVE were added by me to keep track of the direction
// SEND -> data sent to the Netcat camera
// RECEIVE -> data recevied from the Netcat camera
SEND: 9Xd'hxE-v@S"[%Pd{ "EncryptType" : "MD5", "LoginType" : "DVRIP-Web", "PassWord" : "ORsEWe7l", "UserName" : "admin" }
RECEIVE: 'hx9XdEg@@S"[&#PO{ "AliveInterval" : 21, "ChannelNum" : 1, "DeviceType " : "IPC", "ExtraChannel" : 0, "Ret" : 100, "SessionID" : "0x00000018" }
SEND: 9Xd'hxEr-w@S"[&#P6{ "Name" : "SystemInfo", "SessionID" : "0x00000018" }
RECEIVE: 'hx9XdEi@@S"[&mPI{ "Name" : "SystemInfo", "Ret" : 100, "SessionID" : "0x18", "SystemInfo" : { "AlarmInChannel" : 2, "AlarmOutChannel" : 1, "AudioInChannel" : 1, "BuildTime" : "2015-09-11 17:25:08", "CombineSwitch" : 0, "DeviceRunTime" : "0x00000A94", "DigChannel" : 0, "EncryptVersion" : "Unknown", "ExtraChannel" : 0, "HardWare" : "N51820L", "HardWareVersion" : "Unknown", "SerialNo" : "d4f6eef9ffc895b7", "SoftWareVersion" : "V4.02.R11.00001906.10010.230100", "TalkInChannel" : 1, "
@667bdrm
667bdrm / ipcam-clock-set.pl
Last active September 10, 2022 16:54
Simple clock synchronization for some chinese DVRs supporting CMS with json-like protocol. Includes some other API commands. Fork at https://gitlab.com/667bdrm/sofiactl
#!/usr/bin/perl
# latest release at https://gitlab.com/667bdrm/sofiactl
#
# Simple clock synchronization for some chinese HiSilicon based DVRs supporting CMS (Sofia software) with json-like protocol. Tested with:
#
# HJCCTV HJ-H4808BW (XiongMai, Hi3520, MBD6304T)
# http://www.aliexpress.com/item/Hybird-NVR-8chs-H-264DVR-8chs-onvif-2-3-Economical-DVR-8ch-Video-4-AUDIO-AND/1918734952.html
#
#
@667bdrm
667bdrm / dvr-alarm-server.pl
Last active May 16, 2021 17:43
Chinese DVR Alarm Server
#!/usr/bin/perl
#
# Simple log/alarm server receiving and printing to console remote dvr/camera events.
# future releases at https://gitlab.com/667bdrm/sofiactl
# Tested with:
#
# HJCCTV HJ-H4808BW
# http://www.aliexpress.com/item/Hybird-NVR-8chs-H-264DVR-8chs-onvif-2-3-Economical-DVR-8ch-Video-4-AUDIO-AND/1918734952.html
#