After update Dahua camera seems to reboot every 40s.

hughtm

n3wb
Apr 14, 2026
7
6
Belfast
I have a couple of IPC-HDBW4831E-ASE cameras. I thought it was good practice to keep the firmware up to date but now I'm not so sure!

I tried to update one of them with the Config Tool using the file DH_IPC-HX5X3X-Rhea_MultiLang_PN_Stream3_V2.800.0000032.0.R.250224.bin which, according to the Dahua site, is supposed to be the correct one for this camera. It seemed to complete the update at 100% but now the camera is stuck in a constant cycle. The green LED on the circuit board comes on for 30s and then off for 10s, then back on for 30s and so on... It looks as if it is constantly restarting and it happens both with a 12V PS and with PoE. Most of the camera functions actually seem to be working in the short time before the reboot. I have copied at the end of the post the results of some tests I have been able to do to check this.

I have been reading through some of the posts here and elsewhere and it seems that this sort of thing is fairly common and I should have a good chance of fixing it using the "easy" TFTP method.

However, I have some questions for clarity:

1) When the TFTP process starts early in the boot sequence do other processes still continue in the background or does the TFTP process have exclusive control? If the latter, I should be OK but, if the former, then it is highly likely that the camera will reboot before the update has completed. Can I get round this by putting something like "setenv appauto 0" at the top of the list in commands.txt and then "setenv appauto 1" at the bottom? If not, e.g. if the app will already have started, is there a way to stop the rebooting to allow the update to proceed?

2) Which firmware version should I use for this camera? I have identified three options:
a) The other camera I have which is identical (except that it works) has DH_IPC-HX2X3X-Rhea_MultiLang_PN_Stream2_V2.800.0000005.0.R.190325. Presumably this would be the lowest risk option but I might lose out on some bug fixes, security fixes etc.
b) In this forum the most recent recommendation I have found is DH_IPC-HX5X3X-Rhea_MultiLang_NP_Stream3_V2.800.0000018.0.R.210707. From what I have read it seems fairly stable and would include a number of fixes and might be a better option..
c) I could try again the one recommended by Dahua (mentioned above) but I am not sure if it is worth the risk. Could things go even worse if I tried it again?
I would be interested in any advice or recommendation.

3) I have seen varying advice on which .img files to include in the commands.txt file. There is a comment that if I have a working bootloader I shouldn't include the dhboot files. However, in other places it says that I should include everything because otherwise the signature will be wrong. Should I include everything including the dhboot files and the smaller check.img and sign.img?

4) Which files do I need in the TFTP folder. Obviously I need all the .img files and the upgrade_info_7db780a713a4.txt file. I read somewhere that I should include a file called FLASHING_DONE_STOP_TFTP_NOW. Is this necessary and what should be in it or where do I find a copy? Do I need anything else?

I would really welcome any insights on how to answer these four questions and I am happy to provide any further information if I have left out anything important.

If it helps I have some comments here on what I have found working on the camera:

I did a reset using the button on the circuit board and plugged the camera into my router. Then I found if I started the Config Tool at about 20s after the green LED came on, the Config Tool would find the camera. I had just enough time to initialise the camera before it rebooted.
On the next cycle I waited again for about 20s after the LED came on and I was able to find the camera again using the new password.
On the next cycle I was able to change the IP address to DHCP.
On the next cycle the camera picked up an IP address from the router.
I wasn't able to get to the web GUI.
I was able to perform other functions in the Config Tool such as getting an image from the camera and doing a factory reset.
I did a port scan and compared it with the working camera. The working camera had the following ports open: 80, 554, 1935, 5000 and 37777. The faulty camera had all of these except 1935. Also, the faulty camera had port 22 open earlier in the start up.
If I got the timing right I was able to get ONVIF Device Manager to connect to the camera, correctly identify it and report everything correctly in "get capabilities".
 
Are you certain the IP being used by the camera isn’t being used by another?
When you default it will become 192.168.1.108
 
Yes. Also, the rebooting occurs when it isn't connected to anything other than the power supply. I set the camera to DHCP and the IP address assigned by the NVR or my router (depending on what I connected it to) was always unique. When I was doing the tests in the first post nothing else was on the 192.168.xxx.xxx subnet.
 
  • Like
Reactions: bigredfish
Cool. That’s just the first thing I check when a camera is in a reboot loop

Is that a China region cam? I believe the 4431 was and there were always issues with FW updates on those
 
That is a very good question. I bought the camera second hand and have no idea about its provenance. However, I have just checked and the software reports the good camera as an HDBW4431E-ASE (via the web GUI), even though the label says it is an HDBW4831E-ASE. All I know is that the interface is in English. Does that reduce my chances of recovering it?

I did find this in the EASY unbricking thread (for a different camera) but the links to the Russian site () and the Spanish language one (user-site) don't work any more.

Good afternoon, I could finally make it work. First to cut the boot loop I followed these steps: RVi форум
I don't know what it does but it worked.
Then download this firmware:
DAHUA - DESCARGA DE FIRMWARE CORREGIDOS 2018 VIDEOPORTEROS IP

The first bit about cutting the boot loop might have been useful!
 
  • Like
Reactions: bigredfish
In this forum there used to be a lot of expertise in this type of thing. Has that all disappeared?

The post I referred to in my last message is
Does anyone know where I could get the information in the broken links?

I'm trying to gain insight before I try to update so that I don't make things worse.
 
I got this working. I gathered as much information as I could and took the plunge.

As far as I can see the camera is not a China region one as I was able to load English language firmware without difficulty. I based what I did on the thread:

As no one seemed to be both able and willing to answer my questions above I will answer them myself in case it helps someone else coming after me. These are in a slightly different order to the one above.

1) The TFTP process starts immediately after the camera starts to boot and before the operating system loads. Therefore, the update process has exclusive control and can proceed uninterrupted as the software initiated boot loop never occurs.

3) To create the upgrade_info_7db780a713a4.txt file from the commands.txt files as needed for the TFTP update I used the Python script upgrade_info.py from here:

My first commands.txt file was as follows:

echo help
help
echo printenv
printenv
echo "fatls"
fatls
echo "partition"
partition
echo "bdinfo"
bdinfo
echo "fsinfo"
fsinfo
sleep 5

The printenv bit of this allowed me to get the aliases to run for the update. Therefore my commands.txt file for the update was:

run dk
run dp
run dr
run pd
run du
run dc
run dw
tftp 0x02000000 .FLASHING_DONE_STOP_TFTP_NOW
sleep 5

I got the order for these from the "install" file obtained when I unzipped the .bin file (see 4) below). I omitted the run da command that writes files starting with dhboot... This was a precaution to make sure I didn't overwrite the working bootloader. I didn't write any .img files that didn't have an alias in printenv.

4) I converted the .bin file from Dahua to a zip file by changing the extension from .bin to .zip and changing the first two characters of the file from DH to PK using a HEX editor. I then unzipped the file and placed the whole of the contents in the TFTP root folder along with the upgrade_info_7db780a713a4.txt file. I also included these three files:
.FLASHING_DONE_STOP_TFTP_NOW
success.txt
failed.txt

2) I started off using a conservative approach and installed V2.800.0000005 (option a) above). As this worked without a hitch I thought I would try to install V2.800.0000032 as recommended by Dahua for this camera. The first attempt failed but I just tried again and it worked the second time. The update process takes minutes rather than seconds with some rather long pauses. I'm thinking that something timed out on the first attempt but that it got through OK on the second.

At any rate I now have a working camera on the most recent version of the firmware.