DS-2CD2342WD-I all settings lost on reboot

Skifree

n3wb
Aug 16, 2015
2
0
I have a strange issue with one of my Hikvision DS-2CD2342WD-I cameras. Each time I reboot the camera or unplug it all settings are lost and the camera is back to factory settings. I have 2 other Hikvision cameras with no issues. One DS-2CD2042WD-I and two DS-2CD2342WD-I.

The two DS-2CD2342WD-I were bought att the same time from the same seller and according to serial they should both be english version cameras. I updated the firmware from the original 5.3.3 to 5.3.6 and finally to 5.3.8. The firmware update works but the issue with the lost settings remains. I have tried 2 different poe switches and cables but no change. As soon as the camera starts all settings are back to factory settings.

Anyone that have experienced something like this? I have searched but I haven't found anything.
 
A suggestion to try:
This feature may have been removed from that version of firmware - it's been a bit of a moving target in terms of what's been taken out, put back in, taken out again - but :
If SSH is still available to enable, connect to the camera with an SSH client (PuTTY works well and is easy to use - http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html)
Log in with user=root, password=your admin password
You will only gain access to the 'psh' restricted shell, but on some firmware versions the command 'dmesg' is available, which will list the contents of the system log, from which a clue to the problem may possibly be seen.
PuTTY has a large scrollback buffer that can be copied / pasted out for inspection.
 
dmesg
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Initializing cgroup subsys cpu
[ 0.000000] Linux version 3.10.73+ (zhangtao12@Cpl-Frt-BSP) (gcc ?? 4.8.2 20130902 (prerelease) (crosstool-NG - Ambarella Linaro Multilib GCC [CortexA9 & ARMv6k] 2013.09) ) #1 PREEMPT Fri Dec 18 15:24:28 CST 2015
[ 0.000000] CPU: ARMv7 Processor [414fc091] revision 1 (ARMv7), cr=10c53c7d
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[ 0.000000] Machine: Ambarella S2L (Flattened Device Tree), model: Ambarella S2LM Kiwi Board
[ 0.000000] dev type:0x0
[ 0.000000] Memory policy: ECC disabled, Data cache writeback
[ 0.000000] Ambarella: AHB = 0xe0000000[0xe0000000],0x01000000 0
[ 0.000000] Ambarella: APB = 0xe8000000[0xe8000000],0x01000000 0
[ 0.000000] Ambarella: PPM = 0x00000000[0xdfe00000],0x00200000 9
[ 0.000000] Ambarella: AXI = 0xf0000000[0xf0000000],0x00030000 0
[ 0.000000] Ambarella: DRAMC = 0xdffe0000[0xef000000],0x00020000 0
[ 0.000000] Ambarella: DBGBUS = 0xec000000[0xec000000],0x00200000 0
[ 0.000000] Ambarella: DBGFMEM = 0xee000000[0xee000000],0x01000000 0
[ 0.000000] Ambarella: IAVMEM = 0x06800000[ ],0x09800000
[ 0.000000] On node 0 totalpages: 26112
[ 0.000000] free_area_init_node: node 0, pgdat 807aeb80, node_mem_map 807de000
[ 0.000000] Normal zone: 204 pages used for memmap
[ 0.000000] Normal zone: 0 pages reserved
[ 0.000000] Normal zone: 26112 pages, LIFO batch:7
[ 0.000000] CPU: All CPU(s) started in SVC mode.
[ 0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[ 0.000000] pcpu-alloc: [0] 0
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 25908
[ 0.000000] Kernel command line: console=ttyS0 KRN_PRT=pri
[ 0.000000] PID hash table entries: 512 (order: -1, 2048 bytes)
[ 0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
[ 0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
[ 0.000000] Memory: 102MB = 102MB total
[ 0.000000] Memory: 95392k/95392k available, 9056k reserved, 0K highmem
[ 0.000000] Virtual kernel memory layout:
[ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB)
[ 0.000000] fixmap : 0xfff00000 - 0xfffe0000 ( 896 kB)
[ 0.000000] vmalloc : 0x86800000 - 0xff000000 (1928 MB)
[ 0.000000] lowmem : 0x80000000 - 0x86600000 ( 102 MB)
[ 0.000000] modules : 0x7f000000 - 0x80000000 ( 16 MB)
[ 0.000000] .text : 0x80008000 - 0x804fb2cc (5069 kB)
[ 0.000000] .init : 0x804fc000 - 0x8077b794 (2558 kB)
[ 0.000000] .data : 0x8077c000 - 0x807b69a0 ( 235 kB)
[ 0.000000] .bss : 0x807b69a0 - 0x807d94a8 ( 139 kB)
[ 0.000000] NR_IRQS:240
[ 0.000000] sched_clock: 32 bits at 54MHz, resolution 18ns, wraps every 79536ms
[ 0.000000] Console: colour dummy device 80x30
[ 0.000000] console [ttyS0] enabled
[ 0.230916] Calibrating delay loop... 597.60 BogoMIPS (lpj=2988032)
[ 0.292604] pid_max: default: 32768 minimum: 301
[ 1.754599] Card authentication succeeded
[ 1.758665] Mount-cache hash table entries: 512
[ 1.765367] CPU: Testing write buffer coherency: ok
[ 1.770540] Setting up static identity map for 0x803c20c0 - 0x803c2118
[ 1.780541] devtmpfs: initialized
[ 1.784983] pinctrl core: initialized pinctrl subsystem
[ 1.790521] NET: Registered protocol family 16
[ 1.795677] DMA: preallocated 256 KiB pool for atomic coherent allocations
[ 1.803047] L310 cache controller enabled
[ 1.807046] l2x0: 8 ways, CACHE_ID 0x410000c8, AUX_CTRL 0x32020000, Cache size: 131072 B
[ 1.816415] ambarella-pinctrl e8009000.pinctrl: Ambarella pinctrl driver registered
[ 1.824425] ambarella-gpio gpio.0: Ambarella GPIO driver registered
[ 1.832224] read dev-tree[misc_ctrl_pin] pro [rst_time] error!
[ 1.832236] read dev-tree[misc_ctrl_pin] pro [rst_delay] error!
[ 1.834725] bio: create slab <bio-0> at 0
[ 1.839770] ambarella-dma e0005000.dma: Ambarella DMA Engine
[ 1.847392] ambarella-i2c e8003000.i2c: Ambarella I2C adapter[0] probed!
[ 1.854459] Advanced Linux Sound Architecture Driver Initialized.
[ 1.861205] Switching to clocksource ambarella-cs-timer
[ 1.873095] ambarella-sd e0002000.sdmmc0: Slot0 use bounce buffer[0x85f20000<->0x06120000]
[ 1.881383] ambarella-sd e0002000.sdmmc0: Slot0 req_size=0x00020000, segs=32, seg_size=0x00020000
[ 1.890255] ambarella-sd e0002000.sdmmc0: Slot0 use ADMA
[ 1.966521] ambarella-sd e0002000.sdmmc0: 1 slots @ 24000000Hz
[ 1.972495] NET: Registered protocol family 2
[ 1.977760] TCP established hash table entries: 1024 (order: 1, 8192 bytes)
[ 1.984727] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[ 1.992194] TCP: Hash tables configured (established 1024 bind 1024)
[ 1.998612] TCP: reno registered
[ 2.001831] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 2.007677] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 2.014087] NET: Registered protocol family 1
[ 2.018739] RPC: Registered named UNIX socket transport module.
[ 2.024640] RPC: Registered udp transport module.
[ 2.029375] RPC: Registered tcp transport module.
[ 2.034058] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 2.228966] msgmni has been set to 186
[ 2.233939] NET: Registered protocol family 38
[ 2.238545] io scheduler noop registered
[ 2.242451] io scheduler deadline registered
[ 2.246756] io scheduler cfq registered (default)
[ 2.251910] ambarella-fb ambarella-fb.0: ambfb_probe: use prealloc.
[ 2.258453] ambarella-fb ambarella-fb.0: probe p[320x240] v[320x480] c[16] b[0] l[1280] @ [0x00100000:0x00100000]!
[ 2.269164] e8005000.uart: ttyS0 at MMIO 0xe8005000 (irq = 9) is a ambuart
[ 2.276344] ambarella-uart e0032000.uart: Serial[1] use txdma
[ 2.282118] ambarella-uart e0032000.uart: Serial[1] use rxdma
[ 2.287869] e0032000.uart: ttyS1 at MMIO 0xe0032000 (irq = 25) is a ambuart
[ 2.295640] brd: module loaded
[ 2.301358] loop: module loaded
[ 2.307126] ambarella-nand e0001000.nand: in ecc-[1]bit mode
[ 2.312768] ambarella_nand: Use On Flash BBT
[ 2.317106] NAND device: Manufacturer ID: 0x01, Chip ID: 0xf1 (AMD/Spansion NAND 128MiB 3,3V 8-bit), 128MiB, page size: 2048, OOB size: 64
[ 2.329766] Bad block table found at page 65472, version 0x01
[ 2.335648] Bad block table found at page 65408, version 0x01
[ 2.341665] 16 ofpart partitions found on MTD device amba_nand
[ 2.347500] Creating 16 MTD partitions on "amba_nand":
[ 2.352621] 0x000000000000-0x000000020000 : "bst"
[ 2.358052] 0x000000020000-0x000000120000 : "bld"
[ 2.363373] 0x000000120000-0x000000200000 : "ptb"
[ 2.368743] 0x000000200000-0x000000280000 : "env"
[ 2.374063] 0x000000280000-0x000000380000 : "sysflg"
[ 2.379701] 0x000000380000-0x000000400000 : "param"
[ 2.385261] 0x000000400000-0x000000500000 : "dpt"
[ 2.390667] 0x000000500000-0x000000f00000 : "rcvy"
[ 2.396103] 0x000000f00000-0x000001700000 : "krn_pri"
[ 2.401865] 0x000001700000-0x000001f00000 : "krn_sec"
[ 2.407671] 0x000001f00000-0x000004100000 : "app_pri"
[ 2.413391] 0x000004100000-0x000006300000 : "app_sec"
[ 2.419155] 0x000006300000-0x000006900000 : "cfg_pri"
[ 2.424809] 0x000006900000-0x000006f00000 : "cfg_sec"
[ 2.430551] 0x000006f00000-0x000007700000 : "dbg"
[ 2.435886] 0x000007700000-0x000007f00000 : "syslog"
[ 2.442135] ambarella-spi e0020000.spi: Ambarella spi controller 0 created.
[ 2.449346] tun: Universal TUN/TAP device driver, 1.6
[ 2.454377] tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
[ 2.516442] libphy: Ambarella MII Bus: probed
[ 2.522222] ambarella-eth e000e000.ethernet: Ethernet PHY[0]: 0x001cc816!
[ 2.529550] ambarella-eth e000e000.ethernet: MAC Address[c4:2f:90:db:fc:f8].
[ 2.536692] PPP generic driver version 2.4.2
[ 2.541125] PPP BSD Compression module registered
[ 2.545809] PPP Deflate Compression module registered
[ 2.551070] mousedev: PS/2 mouse device common for all mice
[ 5.556464] ambarella-i2c e8003000.i2c: No ACK from address 0xa2, 0:0!
[ 5.563322] ambarella-rtc e8015000.rtc: rtc core: registered rtc-ambarella as rtc0
[ 5.571001] pcf85163 is not exist.
[ 5.574382] i2c /dev entries driver
[ 5.578378] ambarella-wdt e800c000.wdt: Ambarella Watchdog Timer Probed.
[ 5.585676] Netfilter messages via NETLINK v0.30.
[ 5.590486] nf_conntrack version 0.5.0 (1490 buckets, 5960 max)
[ 5.596780] ip_tables: (C) 2000-2006 Netfilter Core Team
[ 5.602118] TCP: cubic registered
[ 5.605454] NET: Registered protocol family 10
[ 5.610774] ip6_tables: (C) 2000-2006 Netfilter Core Team
[ 5.616209] sit: IPv6 over IPv4 tunneling driver
[ 5.621464] NET: Registered protocol family 17
[ 5.625950] VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
[ 5.633622] ThumbEE CPU extension supported.
[ 5.639073] ambarella-rtc e8015000.rtc: setting system clock to 2016-04-18 17:07:31 UTC (1460999251)
[ 5.648295] ALSA device list:
[ 5.651246] No soundcards found.
[ 5.657307] Freeing unused kernel memory: 2556K (804fc000 - 8077b000)
[ 6.249450] UBI: attaching mtd10 to ubi1
[ 6.339332] UBI: scanning is finished
[ 6.353504] UBI: attached mtd10 (name "app_pri", size 34 MiB) to ubi1
[ 6.362634] UBI: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
[ 6.369480] UBI: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
[ 6.376158] UBI: VID header offset: 2048 (aligned 2048), data offset: 4096
[ 6.383024] UBI: good PEBs: 272, bad PEBs: 0, corrupted PEBs: 0
[ 6.388930] UBI: user volume: 1, internal volumes: 1, max. volumes count: 128
[ 6.396040] UBI: max/mean erase counter: 7/4, WL threshold: 4096, image sequence number: 1625822008
[ 6.405065] UBI: available PEBs: 0, total reserved PEBs: 272, PEBs reserved for bad PEB handling: 10
[ 6.414193] UBI: background thread "ubi_bgt1d" started, PID 268
[ 6.435676] UBIFS: background thread "ubifs_bgt1_0" started, PID 273
[ 6.461855] UBIFS: recovery needed
[ 6.510177] UBIFS: recovery completed
[ 6.514029] UBIFS: mounted UBI device 1, volume 0, name "app_pri"
[ 6.520179] UBIFS: LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
[ 6.529306] UBIFS: FS size: 31490048 bytes (30 MiB, 248 LEBs), journal size 1523712 bytes (1 MiB, 12 LEBs)
[ 6.538939] UBIFS: reserved for root: 1487352 bytes (1452 KiB)
[ 6.544755] UBIFS: media format: w4/r0 (latest is w4/r0), UUID 2899019B-2795-4857-B31C-F2BF57D67576, small LPT model
[ 6.568464] UBI: attaching mtd12 to ubi3
[ 6.587432] UBI: scanning is finished
[ 6.601102] UBI: attached mtd12 (name "cfg_pri", size 6 MiB) to ubi3
[ 6.610158] UBI: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
[ 6.617004] UBI: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
[ 6.623682] UBI: VID header offset: 2048 (aligned 2048), data offset: 4096
[ 6.630548] UBI: good PEBs: 48, bad PEBs: 0, corrupted PEBs: 0
[ 6.636357] UBI: user volume: 1, internal volumes: 1, max. volumes count: 128
[ 6.643478] UBI: max/mean erase counter: 49/33, WL threshold: 4096, image sequence number: 179895146
[ 6.652592] UBI: available PEBs: 0, total reserved PEBs: 48, PEBs reserved for bad PEB handling: 10
[ 6.661631] UBI: background thread "ubi_bgt3d" started, PID 277
[ 6.683087] UBIFS: background thread "ubifs_bgt3_0" started, PID 282
[ 6.709031] UBIFS: recovery needed
[ 6.770127] UBIFS: recovery completed
[ 6.773936] UBIFS: mounted UBI device 3, volume 0, name "cfg_pri"
[ 6.780090] UBIFS: LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
[ 6.789216] UBIFS: FS size: 3047424 bytes (2 MiB, 24 LEBs), journal size 1015809 bytes (0 MiB, 6 LEBs)
[ 6.798503] UBIFS: reserved for root: 143937 bytes (140 KiB)
[ 6.804145] UBIFS: media format: w4/r0 (latest is w4/r0), UUID 6E81EF36-EAFE-4F1C-8936-96D90934857F, small LPT model
[ 6.864128] UBI: attaching mtd13 to ubi4
[ 6.883430] UBI: scanning is finished
[ 6.897109] UBI: attached mtd13 (name "cfg_sec", size 6 MiB) to ubi4
[ 6.903449] UBI: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
[ 6.912904] UBI: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
[ 6.919663] UBI: VID header offset: 2048 (aligned 2048), data offset: 4096
[ 6.926532] UBI: good PEBs: 48, bad PEBs: 0, corrupted PEBs: 0
[ 6.932341] UBI: user volume: 1, internal volumes: 1, max. volumes count: 128
[ 6.939463] UBI: max/mean erase counter: 18/9, WL threshold: 4096, image sequence number: 1359760523
[ 6.948575] UBI: available PEBs: 0, total reserved PEBs: 48, PEBs reserved for bad PEB handling: 10
[ 6.957614] UBI: background thread "ubi_bgt4d" started, PID 287
[ 6.979253] UBIFS: background thread "ubifs_bgt4_0" started, PID 292
[ 7.004946] UBIFS: recovery needed
[ 7.066522] UBIFS: recovery completed
[ 7.070373] UBIFS: mounted UBI device 4, volume 0, name "cfg_sec"
[ 7.076521] UBIFS: LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
[ 7.085628] UBIFS: FS size: 3047424 bytes (2 MiB, 24 LEBs), journal size 1015809 bytes (0 MiB, 6 LEBs)
[ 7.094926] UBIFS: reserved for root: 143937 bytes (140 KiB)
[ 7.100582] UBIFS: media format: w4/r0 (latest is w4/r0), UUID 7DC3E7F8-CC45-49CD-96A0-7C8FD2F40859, small LPT model
[ 7.195985] net eth0: adv: sym 1, asym: 1
[ 7.200254] net eth0: lp: sym: 0, asym: 0
[ 7.204317] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[ 8.812666] dsp: module license 'Proprietary' taints kernel.
[ 8.820513] Disabling lock debugging due to kernel taint
[ 8.850546] img: IMG KERN VIRT: WR [0x86af5000, 184 KB], RD [0x85f70000, 36 KB].
[ 8.962348] amba_debug_init 248:248.
[ 9.050482] base module init.
[ 9.065231] [ kernel version: svn-149524 ]
[ 9.074175] mmc0 power register success!
[ 9.078202] mmc1 power register success!
[ 9.082107] request sd[mmc1] power ctrl pin error!
[ 9.086899] usb0 power register success!
[ 9.106537] usbcore: registered new interface driver usbfs
[ 9.121707] usbcore: registered new interface driver hub
[ 9.128413] usbcore: registered new device driver usb
[ 9.141154] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 9.147929] ambarella-ehci e0018000.ehci: EHCI Host Controller
[ 9.153824] ambarella-ehci e0018000.ehci: new USB bus registered, assigned bus number 1
[ 9.162052] ambarella-ehci e0018000.ehci: irq 39, io mem 0xe0018000
[ 9.186658] net eth0: lp: sym: 0, asym: 0
[ 9.190652] libphy: e000e000.etherne:00 - Link is Up - 100/Full
[ 9.196588] ambarella-ehci e0018000.ehci: USB 2.0 started, EHCI 1.00
[ 9.203006] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[ 9.209818] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[ 9.216219] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 9.223451] usb usb1: Product: EHCI Host Controller
[ 9.228415] usb usb1: Manufacturer: Linux 3.10.73+ ehci_hcd
[ 9.233969] usb usb1: SerialNumber: AmbUSB
[ 9.240751] hub 1-0:1.0: USB hub found
[ 9.244516] hub 1-0:1.0: 2 ports detected
[ 11.293033] RTL871X: module init start
[ 11.298963] RTL871X: rtl8188eu v4.3.0.4_11485.20140519
[ 11.304090] RTL871X: build time: Dec 18 2015 15:25:41
[ 11.310508] usbcore: registered new interface driver rtl8188eu
[ 11.316328] RTL871X: module init ret=0
[ 22.716488] SYSCLK:SO[24167807]
[ 22.940276] SYSCLK:VOUT[27000000]
[ 22.943646] ambarella_vout_clk_set_rate: rate = 27000000
[ 35.206645] net eth0: lp: sym: 0, asym: 0
[ 35.210645] libphy: e000e000.etherne:00 - Link is Down
[ 36.226667] net eth0: lp: sym: 0, asym: 0
[ 36.230671] libphy: e000e000.etherne:00 - Link is Up - 100/Full
[ 37.230443] ambarella_vout_clk_set_rate: rate = 27000000
[ 38.104105] ambarella_vout_clk_set_rate: rate = 27000000
 
That was quick!
I've scanned that log - and I see no errors that would have a bearing on the problem.
What might have been interesting, and documentable grounds for a replacement, would be errors in the flash areas that hold the config. But there are none, at least during initialisation.
I'm not sure if that's a good thing or not.

And a long shot - make a configuration change via the menus and see if anything new shows in the log.
And despite the reset happening itself - trigger a reset to defaults via the maintenance menus, and see if any changes stick.
 
I had the same problem with one out of the 11 or so Hikvision cameras I purchased. Fortunately mine all came with a warranty so I just had it replaced. Replacement camera worked fine without any issues, so it was definitely a bad camera in my case.


Sent from my iPhone using Tapatalk
 
As soon as the camera starts all settings are back to factory settings.
Just a stray thought ...
I wonder if it has a reset switch.
The Hikvision reset switch operates at power-on, needs to be pressed prior to power on and remain pressed for about 10 seconds.
Maybe it has one and it's stuck on.
That would give the symptoms being seen.
 
"Each time I reboot the camera or unplug it all settings are lost and the camera is back to factory settings."

I had a 2032F bullet behaving this way. Took it apart to find the reset switch casing was touching one of the solder connection pins.
a little bending back with needle-nose pliers fixed the short across the switch that was causing it to behave as if the button was
constantly pressed...