I'm trying to help out a neighbor add a Dahua 5231R-Z to his Lorex NVR. I got the camera to connect as an ONVIF device and everything seems to work for a while. But it periodically disconnects and when you look at the device config it's set back to private. It's like it's not saving the config. Same thing happens if you set it up and then unplug and re plug the camera.