Hikvision Serial Console Firmware Recovery: PuTTY, TTL and TFTP Step by Step
首页 / 论坛 / Hikvision Devices / Hikvision Serial Console Firmware Recovery: PuTTY, TTL and TFTP Step by Step
-
作者帖子
-
中文版本: https://hiipc.com/forums/topic/hikvision-serial-flashing-putty-ttl-tftp-zh/
An NVR that lost power during a firmware upgrade, a recorder frozen on the boot logo, a device that reboot-looping, or a web interface you can no longer reach — once you are in this “half-bricked” state, the normal upgrade paths are gone. Serial console recovery (TTL/UART plus TFTP) is the standard way to bring it back.
This guide walks through the whole procedure, with extra attention on the two details people most often get wrong: what logic level the serial cable actually uses, and how to fill in the two IP addresses.
0. Read this first (scope and risk)
- Only work on equipment you own or have explicit written authorisation for. Flashing or clearing passwords on someone else’s device may be illegal.
- Flashing can brick the device: never cut power, unplug the cable or close the tool during the upgrade.
- Serial recovery does not unbind a device from Hik-Connect, and it does not guarantee a password reset on every model.
- Back up the configuration first where possible. On production sites, validate the whole flow on a spare unit.
1. When you need serial recovery
- Power loss during an upgrade — corrupted system files, stuck on the boot screen or reboot-looping.
- Normal upgrade failed — the web UI or local GUI reports an error and the system will not start.
- Large version jump — intermediate firmware is required and cannot be applied from the interface.
- Lost admin password — some models can be reset by restoring factory firmware. Not all.
- Unusual boot failures — the GUI never loads but the serial console still produces output.
If you can still log in, use the web interface or a USB drive instead. Serial flashing is a recovery tool, not a routine upgrade method.
2. The most common mistake: is the serial cable TTL?
Keep the two concepts separate:
- Serial / COM port is the physical interface and communication method (UART).
- TTL / RS-232 / RS-485 are logic-level standards — they describe signal voltage.
The 4-pin debug header on a Hikvision recorder is, in the vast majority of cases, TTL level (3.3 V). That means you need a USB-to-TTL adapter (CH340 / CP2102 / PL2303 / FT232) — this is what people call a “TTL flash cable”. A DB9 nine-pin port is RS-232 (±5~15 V) and needs a proper RS-232 cable.
⚠️ Never connect an RS-232 ±12 V signal directly to a TTL header — you will damage the UART or the whole board. If you are unsure, check three ways:
- Look at the connector: a 4-pin Dupont header is almost always TTL; a DB9 is RS-232.
- Look for silkscreen or manual markings:
UART,TTL,JP3orCON. - Measure with a multimeter: a TTL signal stays between 0 and 3.3 V; RS-232 swings roughly ±5~15 V.
Wiring (4-pin TTL header):
Recorder 4-pin header USB-to-TTL adapter ┌───┬───┬───┬───┐ │VCC│TX │RX │GND│ └─┬─┴─┬─┴─┬─┴─┬─┘ ✕ │ │ │ leave↓ ↓ ↓ open RXD TXD GND- Connect only TX, RX and GND — three wires. Leave VCC unconnected (tape it off so it cannot touch anything).
- Cross TX and RX: device TX → adapter RX, device RX → adapter TX.
- Share a common ground: GND must be connected or you get garbage characters or no output at all.
- Garbage on screen? Check the baud rate. No output at all? Check TX/RX first.
3. What you need
- A USB-to-TTL adapter plus Dupont wires, or a ready-made Hikvision serial cable.
- PuTTY (free serial terminal) and Tftpd64 (free TFTP server).
- Firmware downloaded from the official Hikvision website, matching the exact model. Support → Download Center → Firmware.
- An Ethernet cable — PC directly to the recorder LAN port, or via a switch.
- A Windows PC with admin rights to set a static IP and allow the firewall rule.
Two hard rules for the firmware:
- The model must match exactly. Firmware from sub-models in the same family (
N-EU/K75/K74, etc.) is not interchangeable. - Step up through major versions, for example 3.4.x → 4.1.x → 4.2.x → 4.4.x. Do not jump straight across major releases. The package is usually
digicap.davand goes in the Tftpd64 root directory.
4. Configure the PC
4.1 Driver and COM port. Plug in the USB-to-TTL adapter, install the driver, then find the new port under Device Manager → Ports (COM & LPT), for example COM4. Remember the number.
4.2 PuTTY settings. Open PuTTY, select Session → Serial on the left and set:
- Serial line: COM4 (use your actual port)
- Speed (baud): 115200
- Data bits 8, Stop bits 1, Parity None, Flow control None
Optionally save the session and click Open to leave the console window ready.
4.3 Set the PC’s Ethernet IP. Use
192.168.1.128— it must be in the same subnet as the temporary address you assign to the device in the next step. From an elevated command prompt (replace “Ethernet” with your actual adapter name):netsh interface ip set address name="Ethernet" static 192.168.1.128 255.255.255.04.4 Configure Tftpd64. Point Current Directory at the folder containing
digicap.dav; select192.168.1.128under Server interfaces; allow UDP 69 through Windows Firewall or disable the firewall temporarily (turn it back on afterwards).5. Key point: you assign both IPs yourself, they just need to share a subnet
The addresses you enter are temporary IPs, not the device’s normal login address and not values burned into the hardware. After you press
u, the console asks for two addresses in order:Please input ip address of device:→ the temporary IP you assign to the device, e.g.192.168.1.64.Please input ip address of upgrade server:→ the TFTP server, i.e. your PC, e.g.192.168.1.128.
The only hard requirement: both addresses must be in the same subnet (with a
255.255.255.0mask, the first three octets must match).Device temporary IP PC IP Same subnet? 192.168.1.64 192.168.1.128 ✅ Recommended 192.168.1.64 192.0.0.128 ❌ No — TFTP will fail 10.0.0.64 10.0.0.128 ✅ Also fine You can pick any subnet you like. If the site uses
192.168.0.x, assign192.168.0.64to the device and set the PC to192.168.0.128, avoiding addresses already in use.192.168.1.64/192.168.1.128is recommended simply because it is the most common and least likely to conflict.After both addresses are entered and you confirm
y, the console echoes a line like:TFTP from server 192.168.1.128; our IP address is 192.168.1.64That line is just an echo of the two values you entered:
our IP addressis the device,TFTP from serveris the PC. Seeing it means the parameters were accepted — it is not a source you “copy” addresses from.Note: a few firmware versions do not prompt for addresses at all. Pressing
ustarts the upgrade with built-in defaults and prints the line above. Only in that case do you set the PC IP to match theTFTP from servervalue from the echo.6. The recovery procedure
Power off → connect serial + Ethernet → open PuTTY + Tftpd64 → hold Ctrl+U while powering on → press u at the prompt → enter device IP → enter PC IP → confirm with y → wait for 100% → press ENTER after the success message- Power off the device, connect the serial cable and Ethernet cable, and have PuTTY and Tftpd64 open on the PC.
- Apply power and immediately hold
Ctrl + U. The window is short — the safest method is to hold Ctrl+U first, then switch on the power. - When PuTTY shows
Hit Ctrl+u to stop autoboot: 0andNow press [u/U] key to upgrade software:, the boot was interrupted successfully. Release the keys. - Type lowercase
uand press Enter. (A few PTZ models require theupdatecommand instead.) - At
Please input ip address of device:→ assign a temporary IP, e.g.192.168.1.64, and press Enter. It only applies to this recovery session. - At
Please input ip address of upgrade server:→ enter the PC / TFTP server IP, e.g.192.168.1.128, and press Enter. It must be in the same subnet as the previous value. - At
Confirm?(y/n):→ typeyand press Enter to start flashing. - The Tftpd64 progress bar runs from 1% to 100% while PuTTY scrolls log output, including lines like
cramfs.img checkSum ok. - Wait 3–5 minutes. Do not cut power and do not close the tools.
Upgrade success! Press ENTER key to reboot resetting ...means the flash succeeded. Press Enter to reboot, then wait another 3–5 minutes before expecting the login screen on a monitor.
7. Troubleshooting
Symptom Likely cause What to do Ctrl+U does nothing, device boots normally Keystroke too late Hold Ctrl+U before applying power; retry a few times No response, nothing in PuTTY Window has no focus Click inside the PuTTY window first, then press the keys No serial output at all TX/RX swapped, GND missing, wrong COM port Cross TX/RX, confirm common ground, check the COM number Garbage characters Wrong baud rate Set 115200 (a few older models use 9600) RRQ failed / TFTP timeout Device and PC IPs in different subnets; wrong server IP; firewall blocking Match the first three octets, use the PC’s real IP, allow UDP 69 packet mismatch / checksum failure Firmware does not match the model or version Use official firmware for the exact model, step up through major versions Progress completes but device will not boot Wrong firmware, or needs more time Wait the full five minutes; otherwise reflash with the right firmware System loads but the password is unknown This model does not support serial password clearing Use the official password reset process or contact support 8. After the flash
- Run SADP to confirm the device is discoverable, then log in with the official default or restored password.
- Set a new admin password, device time (enable NTP) and network parameters.
- Check HDD status; format and enable overwrite if needed.
- Re-add cameras and restore channel configuration.
- Return the PC’s IP and firewall settings to their original state.
- If the device was bound to Hik-Connect, note that flashing does not unbind it — handle that on the platform side.
9. Quick reference
WIRES 4-pin TTL: TX / RX / GND only, leave VCC open, cross TX-RX SERIAL PuTTY: Serial, 115200, 8-N-1, Flow control = None BREAK hold Ctrl+U while powering on CMD u (update on a few models) IPS you assign both, same subnet (first three octets match): device 192.168.1.64 → PC TFTP 192.168.1.128 (recommended) the echo "TFTP from server X; our IP address is Y" only confirms it GO y, wait 3–5 min, press ENTER after Upgrade success NEVER cut power; use official matching firmware; step up major versionsSources: Hikvision “How to upgrade NVR-DVR using serial cable”, Hikvision Europe “How to upgrade firmware for IPC that cannot get IP”, Hikvision official Download Center.
举报 -
作者帖子
- 您必须登录才能回复此话题。
