2015/10/04 UPDATE: The ROI region limit has also been increased to 4, although I have only been able to get 3 regions working simultaneously. I've also added update-able zips for each version/region so you don't have to tinker with manually replacing the davinci binaries unless you actually want to.
First off, I'd like to say that I am disappointed that this wasn't shared earlier and was instead only shared to those whom were willing to pay money for it - I won't point fingers since I know there's more than a few people who have successfully modified firmware. I have noticed a lot of bright people in this community and we would all benefit from a greater amount of knowledge sharing.
So after spending a few days staring at code, I figured out the changes that needed to be made in order to increase the line crossing and intrusion detection limit. See the bottom of the post for downloads, I recommend flashing the modified firmware through the web-interface or tftp. EN/CH represents your camera region, NOT the language you want. For the technically inclined though, you can manually replace the davinci binary..
Before replacing the davinci binary, I highly recommend looking at the differences between your davinci binary and the corresponding one I've posted. You can do this with a tool called "VBinDiff" on Windows, just remember to extract the binary, don't compare the .tar.gz files. What you should see a total of 12 hex changes - see the attached 525-diff.png for what it should look like. If you see more changes than that, it will probably "brick" your camera when you upload it. I say "brick" because its not really bricked, you just have to tftp to reload the firmware.
I should also note here that if you're manually replacing the binary, my .tar.gz is NOT LZMA compressed, I cannot for the life of me create an lzma archive that the camera will extract properly (If you know how to do this, I would love to know). Thus, you will need to modify the initrun.sh to tell it that the archive is gzip formatted which can be done by running this command on your camera:
If you decide to restore your original davinci archive, you can swap 'axf' and 'zxf' to reverse the operation. Having the extraction parameters incorrectly paired with the archive format will also "brick" your camera.
If none of the attached files work for you and you have a Hikvision 2-series camera on 5.2.x firmware, post your firmware or davinci file with some info and I will take a look when I get the chance. If you're on 5.3.0 or up, you will not be able to use modified firmware until someone finds a way around the increased integrity checks Hikivision has implemented.
DOWNLOAD LINKS
V5.2.5
DS-2xx2_v5.2.5_141201_CH_4_line_intrusion_roi.zip
https://mega.nz/#!t4FhiKbQ!6tpEciLkUgLzQJ8uAnfQ1tnJXn3U6AaXzeMVylnxGds
DS-2xx2_v5.2.5_141201_EN_4_line_intrusion_roi.zip
https://mega.nz/#!IxFxRILK!LZa5q5Mn7RbLHOSNcqUG685AJ6456lLpr1qnCcIKEEA
v5.2.3
IPC_R0_CH_STD_5.2.3_141024_4_line_intrusion_roi.zip
https://mega.nz/#!lpFyybqD!kGrdmn6Evm4mYL4QZhStPt1roztqSdPJvVW19O9_Zss
IPC_R0_EN_STD_5.2.3_141024_4_line_intrusion_roi.zip
https://mega.nz/#!d00RQYaS!bD0uFGJv9_3hqTYRf40PmXhpLESC4pfqGoCx4sWTMS4
v5.2.0
DS-2xx2_v5.2.0_140721_CH_4_line_intrusion_roi.zip
https://mega.nz/#!hosmEACJ!r2EOG-1Lh9pys8FgM2JKJO_G_EWmws_3pftOun3fhPY
DS-2xx2_v5.2.0_140721_EN_4_line_intrusion_roi.zip
https://mega.nz/#!Rw01BaSQ!7rIb-ecd4-ZT4CPwC1qikp2FSOb_JS82QUlV9k0Rh8Q
davinci binaries
davinci-525-patched.tar.gz
https://mega.nz/#!cg1G3AzJ!lq_0Wgk3N6Zki6d_HlW8EqJ377qh_rPDc7YA__XwITw
davinci-523-patched.tar.gz
https://mega.nz/#!ttNQyKxC!bjydy7d71qQ1-TqJnGJu8xcPLRDl9SgR-ZfHiaeUifo
davinci-520-patched.tar.gz
https://mega.nz/#!s0MywaKA!8GDIdPWJEvARZ1rE65no0KJivwmynVUxe57hjJDepT0
First off, I'd like to say that I am disappointed that this wasn't shared earlier and was instead only shared to those whom were willing to pay money for it - I won't point fingers since I know there's more than a few people who have successfully modified firmware. I have noticed a lot of bright people in this community and we would all benefit from a greater amount of knowledge sharing.
So after spending a few days staring at code, I figured out the changes that needed to be made in order to increase the line crossing and intrusion detection limit. See the bottom of the post for downloads, I recommend flashing the modified firmware through the web-interface or tftp. EN/CH represents your camera region, NOT the language you want. For the technically inclined though, you can manually replace the davinci binary..
Before replacing the davinci binary, I highly recommend looking at the differences between your davinci binary and the corresponding one I've posted. You can do this with a tool called "VBinDiff" on Windows, just remember to extract the binary, don't compare the .tar.gz files. What you should see a total of 12 hex changes - see the attached 525-diff.png for what it should look like. If you see more changes than that, it will probably "brick" your camera when you upload it. I say "brick" because its not really bricked, you just have to tftp to reload the firmware.
I should also note here that if you're manually replacing the binary, my .tar.gz is NOT LZMA compressed, I cannot for the life of me create an lzma archive that the camera will extract properly (If you know how to do this, I would love to know). Thus, you will need to modify the initrun.sh to tell it that the archive is gzip formatted which can be done by running this command on your camera:
Code:
sed -i 's/axf davinci/zxf davinci/' /dav/initrun.sh
If none of the attached files work for you and you have a Hikvision 2-series camera on 5.2.x firmware, post your firmware or davinci file with some info and I will take a look when I get the chance. If you're on 5.3.0 or up, you will not be able to use modified firmware until someone finds a way around the increased integrity checks Hikivision has implemented.
DOWNLOAD LINKS
V5.2.5
DS-2xx2_v5.2.5_141201_CH_4_line_intrusion_roi.zip
https://mega.nz/#!t4FhiKbQ!6tpEciLkUgLzQJ8uAnfQ1tnJXn3U6AaXzeMVylnxGds
DS-2xx2_v5.2.5_141201_EN_4_line_intrusion_roi.zip
https://mega.nz/#!IxFxRILK!LZa5q5Mn7RbLHOSNcqUG685AJ6456lLpr1qnCcIKEEA
v5.2.3
IPC_R0_CH_STD_5.2.3_141024_4_line_intrusion_roi.zip
https://mega.nz/#!lpFyybqD!kGrdmn6Evm4mYL4QZhStPt1roztqSdPJvVW19O9_Zss
IPC_R0_EN_STD_5.2.3_141024_4_line_intrusion_roi.zip
https://mega.nz/#!d00RQYaS!bD0uFGJv9_3hqTYRf40PmXhpLESC4pfqGoCx4sWTMS4
v5.2.0
DS-2xx2_v5.2.0_140721_CH_4_line_intrusion_roi.zip
https://mega.nz/#!hosmEACJ!r2EOG-1Lh9pys8FgM2JKJO_G_EWmws_3pftOun3fhPY
DS-2xx2_v5.2.0_140721_EN_4_line_intrusion_roi.zip
https://mega.nz/#!Rw01BaSQ!7rIb-ecd4-ZT4CPwC1qikp2FSOb_JS82QUlV9k0Rh8Q
davinci binaries
davinci-525-patched.tar.gz
https://mega.nz/#!cg1G3AzJ!lq_0Wgk3N6Zki6d_HlW8EqJ377qh_rPDc7YA__XwITw
davinci-523-patched.tar.gz
https://mega.nz/#!ttNQyKxC!bjydy7d71qQ1-TqJnGJu8xcPLRDl9SgR-ZfHiaeUifo
davinci-520-patched.tar.gz
https://mega.nz/#!s0MywaKA!8GDIdPWJEvARZ1rE65no0KJivwmynVUxe57hjJDepT0
Attachments
Last edited by a moderator: