Return code | Definition |
---|---|
100 | Success |
101 | Unknown error |
102 | Version not supported |
103 | Illegal request |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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, " |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 | |
# | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 | |
# |