Open andreybavt opened 5 years ago
Hello. If you have made config export before, you could try to use vendor ui to restore configuration or reset to factory settings. All tool supported commands has been developed by analysis of original CMS software communication, so that functionality should be available in CMS. On my devices I was able to mount filesystem using NFS. Configuration files are kept in same JSON format as it exported.
Here is described how to mount NFS. You must be logged in as root: https://felipe.astroza.cl/hacking-hi3518-based-ip-camera/
Also here is a instruction that I've used to restore forgotten password through configuration files replacement. Similar methods could be used to restore settings. There could be some differences for your device, like paths, device names, etc.
On server:
/home/nfs *(rw,sync,no_root_squash,fsid=0,crossmnt,no_subtree_check)
On DVR/IPC:
telnet as root / xc3511 (or other)
mkdir -p /var/tmp/nfs
mount -t nfs 192.168.14.121:/home/nfs -o nolock /var/tmp/nfs
Copy following files to nfs
cp /mnt/mtd/Config/Account1 /var/tmp/nfs cp /mnt/mtd/Config/Account2 /var/tmp/nfs
Change password hash for the needed user to the hash of the known password on the host machine
Update account files
cat /var/tmp/nfs/Account1 > /mnt/mtd/Config/Account1 cat /var/tmp/nfs/Account2 > /mnt/mtd/Config/Account2
cat /etc/init.d/rcS
ps
kill <sofiapid>
dvrHelper /lib/modules /var/Sofia 127.0.0.1 9578 1
I had the same problem with my IVG-85HG50PYA-S, while trying to switch the IR Filter manually.
After i had written "Camera.Param" into just "Camera", die 'Camera param.'-Section in the Frontend was no longer accessible. All the other functions where still working.
Unfortunately i had no prior export of the whole configuration. This is what i did:
I exported the configuration from the cameras web Frontend (or CMS Tool). This File ist a ZIP-File.
Then i did the same with a different Camera, but with a similar Chip (Hi3516V100 instead of Hi3516V300), and other sensor. The i have copied the files "json/Camera" and json/Camera2 over the broken ones from my IVG-85HG50PYA-S. Re-Zipped the files and imported these File (rename to .cfg) on my IVG-85HG50PYA-S.
After that everything was working again.
Maybe this will held others.
BTW: IR Filter switching can be done by changing the DayNightColor Parameter. --command ConfigGet --co Camera.Param[0].DayNightColor
Also there are another way to factory reset using commands extracted from OEM ResetACTool.exe:
connect telnet as root. Telnet is opened by default on old devices, on new devices try to activate telnet with this tool https://github.com/Snawoot/hisilicon-dvr-telnet (ResetACTool.exe doing same)
Backup existing /mnt/mtd/Config/* (or better backup all mtdblock partitions, see https://github.com/667bdrm/sofiactl/issues/8#issuecomment-691716034)
Execute following to reset only user accounts to default:
rm -rf /mnt/mtd/Config/Account* reboot;exit
rm -rf /mnt/mtd/Config/* reboot;exit
The commands fro 3 and 4 is cutted out from ResetACTool.exe, I didn't tested it on real devices. The telnet activation just tested on new XM ipcam.
Also new version has OPDefaultConfig command
Hello,
I played with
ConfigSet
method and I think I broke the camera configuration onHI3516
. Now if I callsofiactl.pl --user admin --host 192.168.1.10 --port 34567 --command ConfigGet --co AVEnc
I get a response that doesn't contain some of the fields, for example Encode:Do you know if there's a way to restore this configuration to get camera back to life? P.S. I have telnet access to the camera, but I couldn't find where this configuration is stored.
Thanks