If nothing happens when your device restarts, your device may be expectingĪnother IP address. The latter requires commandline overrides: $ sudo. There are two known configurations: client IP Note the expected IP addresses and file name appear to differ by model. The TFTP server is very simple but appears to be good enough. This script handles both the handshake and the actual TFTP transfer. The tftp server must replyįrom port 69 (unlike the tftpd package that comes with Debian). Happens, it proceeds to send a tftp request (on the standard tftp port, 69)įor a specific file, which it then installs. The client port 9979 and expects the server to echo it back. The client sends a particular packet to the server's port 9978 from The Hikvision TFTP handshake (for both cameras and NVRs) is stupid but easyĮnough. Osx$ sudo ifconfig en0 alias 192.0.0.128 255.255.255.0ĭownload the firmware to use: $ curl -o digicap.dav Setup the expected IP address: linux$ sudo ifconfig eth0:0 192.0.0.128 See the memory available with the "df" command.Unbrick a Hikvision device. You can add to this script to run other things, change the firewall, change which ports are used or run your own scripts. You now have a great new feature - a startup script. The language will change and remain this way until you replace the firmware. We will use echo to create the script.Ĭheck it's contents: cat /dav/scripts/startup.sh We create a symbolic link for zh that points to en. We move the Chinese language from directory zh to zh1. We want to change our directory to the xml area. You will use this in place of "en" as we move forward. If you want a language other than English, make note of the directory name. When the website uses Chinese, it actually uses what we want. We will change the directory containing Chinese to a different name and replace that directory with a symbolic link to English (or whatever language you want). Despite the default stated in this file to be English, it defaults to Chinese. The file Languages.xml tells the website what to use. You see directories containing the various languages. The website files are recreated fresh on boot. OK, we now have the camera firing off your non-existent script called startup.sh on boot. If you mess up, simple copy from the backup and try again. Modify it by appending a line: echo "bash /dav/scripts/startup.sh &" > /dav/initrun.sh There is no editor on the camera and care means you can avoid having to copy to/from a NAS for corrections.īackup the file: cp /dav/initrun.sh /dav/initrun-back.sh #Hikvision tftp test tftpserver series#BE VERY CAREFUL with this series of commands in case you make an error. You might want to look at this file before modifying it. Let's modify /dav/initrun.sh to execute our script at the conclusion of the boot process. Create a directory in /dav to place your script. On boot, the script /dav/initrun.sh is run. The directory /dav contains the firmware images, boot scripts and this directory survives a reboot. This can be used to start all kinds of personal processes. I'll show you have since we need this to change the web language. Wouldn't it be nice to be able to execute your own scripts at camera startup? There just isn't any mechanism for this. The, third category on the left is Advanced Configuration. Login, click the 4th item on the top which is Configuration. Go to the web interface and you'll have to hack your way to find it. The change survives a reboot.įirst, you need to enable SSH on the camera. I worked a few days to perfect this change which can easily be done on the camera to change the default language to any of those available. The camera web interface with new firmware is now Chinese. Once the firmware reports loaded, wait 2-3 minutes extra before power cycling. No cross over cable needed, just a regular ethernet will do. #Hikvision tftp test tftpserver pdf#Be sure to have it setup EXACTLY as stated in the pdf instructions. When the camera is first powered on, it looks briefly (2-3 seconds) for a handshake from the TFTP tool. Then, I discovered the Hikvision TFTP tool on this website. I obtained their pdf explaining the reload process which had a link to the TFTP tool imbedded in the pdf. I downloaded a new image from Hikvision's website. #Hikvision tftp test tftpserver Patch#I recently bricked my new IPcam while trying to patch the firmware to remove the NAS format issue.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |