CBX 0 Posted January 23, 2014 Hi all I just thought I'd share how to put your Hikvision camera into debug mode as it might prove helpful if you have issues. I asked Hikvision support, and they said debug was for internal use only and they wouldn't share this. So I've figured it out myself. Telnet into your camera (emable first if needed). # setDebug -h setDebug : Set debug parm. module name is nessary e.g. setDebug -l 2 -m rtsp -d 111 -l, --level range is 0~7: 0:NON 1:SYS_ERROR 2:RT_ERROR 3:KEY_WARN 4:NORMAL_WARN 5:DEBUG_NOTICE 6:DEBUG_INFO 7:DEBUG_ALL_DAV -d, --display from right to left: first bit'1' is show 'line'; second bit'1' is show 'function name'; third bit'1' is show 'file name' -m --module moudule name. below is all modules name ALL module class NETPRO_CLASS: RTSP WEBSERVER ONVIF PSIA CGI SDKCMD UNI_IF RTCP module class SYSFUN_CLASS: SYSINIT RECORD SYSLOG ALARM_EXP HDMANAGER SD NAS MOTDETECT FTP CAPA PIC module class NETFUN_CLASS: SADP ARP SNTP DDNS EMAIL PPP 8021X GB28181 TSOCKS module class HW_CLASS: HW_IF DSP FPGA RTC SENSOR PTZ MOTION DOME STRM_ANLS module class OTHER: OTHER IPZOOM IPZOOM_AF IPZOOM_AE # So to debug NAS: setDebug -m NAS -l 6 -d 111 # outputOpen redirectionOutput success. [01-23 11:58:52][NAS][DEBUG][nfsApp/nfsapp.c 332][check_and_repair_unformat_nas]nfs disk(8, 0) nas directory is OK!, rt_er 1 hdstat 0x0 When you have had enough: # outputClose redirectionOutputCancle success. Seems someone can't spell cancel Hope this is useful. Wish Hikvision would just tell people this if they want to know. Share this post Link to post Share on other sites
MasterVal 0 Posted January 27, 2014 Great write-up, thank you - might come handy in a hot situation. Share this post Link to post Share on other sites
buellwinkle 0 Posted January 27, 2014 Is there a log file somewhere. For example, if someone had their camera resetting itself for whatever reason, is there a system log, something like /var/log/messages in regular Linux Share this post Link to post Share on other sites
CBX 0 Posted January 28, 2014 Aside from enabling the debug log, dmesg is full of interesting stuff, though more to do with the hardware & OS than the davinci application (which does all the camera stuff). No other logs as far as I am aware. Share this post Link to post Share on other sites
CBX 0 Posted February 4, 2014 Though you can start davinci in console mode, but it's a bit of a hassle. While I'm here, how to enable FTP on 5.1 # setFtpService start Enable ftp service. Login with root and (admin) password. You could also just use iptables. Share this post Link to post Share on other sites