Some feedback on this excellent script.
For the IPC, another way to get the HWID is the device type from version page but caveat.
Device Type IPC-HDW5541H-AS-PV
Mine is PAL, so HWID is actually: IPC-HDW5541HP-AS-PV
Tried this for several cams and works but sure it wont be all of them!
It's not working with my NVR, I get an error of: Data must be aligned to block boundary in ECB mode
Noted the file for NVR is 144Kb and IPC it's 140Kb.
Noted my file is 1 bytes too long so tried both subtracting that byte and adding another 15.
But neither seems to work with what I think my HWID is.
Added a file from another NVR, this one is smaller than IPC or first NVR. Same problem.
DHI-NVR5216-8P-I
V4.001.0000000.3, Build Date: 2020-10-22
Also, curious, where did "dh_string" come from ?