FYI - LeChange / Dahua 8x 8MP/4K UHD IP PoE cameras + 16 channel port PoE NVR 2/3TB HDD $899 7/13/18

Otown

n3wb
Joined
Apr 18, 2019
Messages
12
Reaction score
3
Location
USA
Edit: I've successfully flashed my cameras and NVR, I'll update the following steps with what I actually did and what I observed.
Notes on the differences between the two types of firmware files to apply: One is a packaged type that contains the individual lib files, this format is needed when performing initial flashes and to actually migrate over to Dahua firmware. The second is a larger .bin file (one each for the cams/nvr), which can be applied after the fact to either fix an issue or to ensure a successful flash. The latter .bin file method is done on the cams via their web interface, or on the NVR either through the web interface or via a USB drive (an option comes up to let you pick the .bin to update to).

Here's my breakdown of the steps I actually took, and I left in my initial questions/assumptions to maybe help clear up any confusion for someone new to this (Like I was). This first section describes the process to convert/flash the Cams. I'm going based off of the main post on page one here.

1) Obtain network access to the camera as described in the post, to/from a windows machine. Run wireshark to monitor the network traffic.
Steps I took / my setup:
- Physical Connection: I used a separate machine as I would lose internet access, I used a flash drive to transfer needed files to/from this machine as needed. I used a single network cable to go from the PC to the camera, and powered the cameras using a spare 12-volt power adapter. My cameras are partially installed and easily accessible, if yours are not accessible I recommend using a POE injector and getting setup near your NVR.
- Follow step 1 here to configure the PC to communicate to the camera properly.
- I strongly recommend first accessing the NVR and taking note of all the camera's IP addresses (Registration page).
- If the camera is brand new or has not been registered to the NVR it should have the default 192.168.1.108 IP address (and will prompt to set a password, I suggest setting the same as the NVR password) and you don't need to do anything else. If it has been registered to the NVR it will be in the 10.1.1.X subnet and address, and you'll need to change it to the 192.168.1.108 IP address (or at least within the 192.168.1.X subnet I suspect, Else will fail to access the TFTPServer, FYI I tried it) and the default gateway to 192.168.1.1 , keep the same subnet mask.
- To change the cameras IP address (easy method, assuming you're ready to flash right away): access the NVR via a Internet Explorer (on a machine that still has network access) (Install/allow all plugins and prompts), go to the Registration page and find the cam to be upgraded, click the IE icon to access that camera's web interface, log in (should be NVR creds), access the network settings and change the IP to 192.168.1.108 and the default gateway to 192.168.1.1, once you hit "save" the page will go blank (since you'll no longer be communicating to the right IP), but the camera is then ready for the next steps.
- To change the cameras IP address (longer more tedious method): Follow the step 1 instructions in the post, except set your PCs IP to 10.1.1.1 and then ensure you can access the camera at its 10.1.1.X IP address (which you hopefully took note of prior), Change the camera's IP to 192.168.1.108 and subnet to 192.168.1.1 , save it, and then set your PCs IP address back to 192.168.1.1 as described in the linked post. (This is tedious, just do it the right/easy way first :) ).
- It will help to ensure that you're able to access the camera's login page via IE to ensure proper setup and to see where it's at in the process, and also to have wireshark running to ensure it can reach it and to see when the 192.168.254.254 destination packets are being sent (indicates successfully sending the files in subsequent steps).
- Note: You can probably bypass the needs to manually set the IP address by doing a hard reset on the camera, I'd just do that if you're stuck.

2) Download and extract the "Dahua_TFTPBackup.zip" from the post
3) Replace the contents of "commands.txt" with what @d.lux provided in his post.
4) Run "Command.bat" to generate a "upgrade_info_7db780a713a4.txt" file from the "commands.txt" file? (Edit: Confirmed this to work as described, do not run as Administrator on this .bat, else will fail to find "root" path)
Note: the output "upgrade_info_7db780a713a4.txt" file is generated differently on different machines, I noticed on my desktop it generated the file on a single line with all the command jumbled together (I thought this was invalid but it actually turned out to be correct). Do not attempt to modify the output file and just leave it at whatever it's defaulted to, only use the version generated on the machine you're running the flash on.
5) Place the unzipped .img files from the zip obtained as part of the steps @Levin83 mentions at the start of his post into the "root" directory of "Dahua_TFTPBackup"? Or does it mean the literal root of "Dahua_TFTPBackup" that contains the .bat and .txt files? (Edit: No, confirmed it's the former "root" directory)
Note: The zipped package "DH_IPC-HX5X3X-Rhea_MultiLang_NP_Stream3_V2.800.0000008.0.R.190619 " is in the download center.
Note: Windows see the .img files as a "Disk Image File", in case you don't have file extensions enabled.
6) Launch "TFTPServer.bat", I'm assuming as Administrator? Note: Do not run any of the .bat scripts as admin, with these they'll just open and close right away and are likely running in the background which will really throw you off. Just double click them and you'll be able to see the status output in the running console for each, which is really helpful.
7) Launch "Console.bat", I'm assuming as Administrator?
8) The camera should automatically apply the firmware update once powered on and with the TFTP server/Console running? (Yes! it's part of the startup process) Wait until all activity is done on the TFTP output and in wireshark (see notes)
Note: Make sure both the TFTPServer and Console command windows are up, plug the camera in when ready. If not running as POE plug in the network cable first, as the firmware update process is part of the camera's startup operation.
Note: The first time I noticed that the TFTP console complained about a missing "failed.txt" file, I created that in the "root" directory (an empty file), probably not needed but it could help with the script workflow.
- If everything is running right you should start to see activity in wireshark right after plugging in the camera, and there will be output on the TFTPServer console. You should see packets in wireshark to 192.168.254.254 as the files are being uploaded to the camera.
I just let the script keep running, eventually there will be a burst of output on the "Console" script after some time, with a final command of "write: " followed by some percentage less than 100 (Mine frequently showed "write: 49%") just as the process is done and right before the camera resets.
- It took roughly 10 minutes for the above steps.
- If you're near the camera you should be able to hear it click as it resets. Attempt to access the camera at 192.168.1.108 in IE and if all is well you should see the Dahua login page instead of "LeChange". From here you'll want to kill the running scripts (Else on subsequent restart it may attempt to flash when you don't want it to)
9) Attempt to re-connect the camera to the NVR, a hard-reset on the camera may be necessary
- If you intend on following step 10 you'll probably want do do that first as you still have access to the camera on the machine you flashed it with.
- Note: a hard reset is probably not needed unless you have a different password set on the camera vs what is set on the NVR. Mine actually re-assigned the same 10.1.1.x subnet IP and maintained it's existing registration settings (Probably tracked by the MAC anyways), just by plugging it back into the NVR.
10) Apply the same firmware update but this time via the provided "DH_IPC-HX5X3X.bin" file within the web GUI of the camera? Just to make sure everything was applied correctly?
- I really think this is optional, but it's good to get the feel-goods and to follow best practice :)
Notes on subsequent cameras: They're easier after you get the first one done and learn the process, and then you'll be able to quickly do step 1, 6-9 (and 10 if you're paranoid/thorough :wave: ).

Basically similar steps to upgrade the NVR... But with these caveats:
1) Obtain network access to the NVR via the network port on the NVR? This should be on the IP address it's already set/assigned to on the network or within the NVR settings right? (edit: Yes, the same IP Address it's set to and what you access it to on your network, I'm assuming it's within the 192.168.1.X subnet as with most home networks).
- Again I did this via a direct ethernet connection from my PC to the NVR's WAN port. If your computer's IP address is still the static 192.168.1.1 from the previous step 1 you should be able to access the NVR at it's set IP address. You should probably make sure the NVR has a set static IP address and not DHCP.
2) Purge any extra files from "Dahua_TFTPBackup" so that it's at its default state.
- Note: Was suggested (and a good idea) to just maintain a separate copy for the NVR files.
3) Create the text file named "ID_YourSerialNumberHere.txt" that I'm assuming I fill in the literal serial number of my NVR into, example if the serial is 123456 the file is to be named "ID_123456.txt"? (Yes!) Make its contents the 4 lines mentioned and place this into the "root" folder?
- Yes, and should be the actual Serial Number found within the NVR info area (May be abbreviated as just SN)
4) Obtain the "DH_NVR4XXX-4KS2_MultiLang_V3.216.0000003.0.R.190521" package from the download center (see other section/post for how/where to get this) for the NVR, extract all the files into the "root" directory.
note: I found two versions of "DH_NVR4XXX-4KS2_MultiLang_V3.216.0000003.0.R.190521" on the site, I went with the latest one.
note: the posted "DH_NVR4XX.bin" file is the "all-in-one"/recovery firmware file that cannot be used in this step, but may come into play later.
5) Launch "TFTPServer.bat", I'm assuming as Administrator? (edit: No, don't run any of the batch files as admin, see previous notes on step 6 above)
6) Launch "Console.bat", I'm assuming as Administrator?
7) The NVR should automatically upgrade the firmware through the TFTP Server? (Yes, upon power up, if all is setup right)
- On the TFTPServer output you should see your "ID_YourSerialNumberHere.txt" file being sent to the NVR, followed by the 4 other files listed within the file. This should then be followed by a "success.txt" response, I actually got 4 total lines of "success.txt". After some time the NVR should reboot itself. The whole process took about 20-25 minutes until it rebooted on its own)
- You should probably have the NVR displayed on a separate monitor to see what it's doing, as soon as it reboots and you see the "Dahua" start screen instead of the "LeChange" login screen you'll probably want to kill the running Console/TFTPServer batch processes.
- I made the mistake of not killing the batch scripts and it looks like the firmware update process started again on the NVR. I panicked and killed the scripts probably at the wrong time. The NVR was then in a startup/initialization loop, it would start loading a few cameras and then just restart, so I proceeded to the step below.
8) If the flash isn't successful and is stuck in a reboot loop then put the .bin file (from step 4) into the root of a flash drive and plug it into the USB port of the NVR... and it should automatically apply the firmware with that step alone? @Levin83 ?
- This is where the "DH_NVR4XX.bin" file will come into use, place it on a flash drive (it doesn't need to be blank or be setup any way special, just place it someone accessible like on the root of the flash drive).
- When the NVR boots it will come up with a different small menu that asks you what you want to do (when a USB drive is plugged in), I don't remember the exact option but it was obvious, I believe it was "update" or "upgrade", there were only like 4 to choose from. From there it brings up the content of your flash drive, just select the "DH_NVR4XX.bin" file and proceed, give it plenty of time to do its thing.
- It will reboot after some time, probably not as time-sensitive but you should just remove the flash drive after reboot.
- After this everything was stable and it brought back all the cameras and settings perfectly, all the old video content was there too.

And just to confirm, we can't just do step 10 on the cameras and step 8 on the NVR to bypass all this right? :lmao:
- I highly doubt it, there are probably safeguards in place to prevent it from going back to OEM easily, but I'd be highly curious if someone were to just try :p
Hi all,
been a lurker for a while. I don't have much networking experience, which I think is causing my problem..

I'm trying to cross flash my NVR, and following the steps as noted above, but am getting stuck.
When I open the TFTP/Console.bat files, they start "listening". once I reboot my NVR, which is physically connected to my laptop, they never progress beyond "listening".

I followed "option 2"; in the easy unbricking options, as my googlewifi setup is being a PIA to setup static routing..
With option 2, I followed the instructions exactly as stated (steps 1-11 in the pictures.)
I have also directly wired the NVR to the laptop..

I have a few hunches of what could be the problem, but need some expert help...

1) I did not setup my NVR to a static route, it's on DHCP(?) now. If I need to change the static routing, can someone point me to the right instructions, or elaborate on what I need to do..

2) I'm running this on a work laptop, which I am not admin of, I was able to change the NIC settings, so I doubt this is a probem.

3) I'm unclear if I should run the commands.bat and have it's output file for the NVR upgrade? The camera instruction stated to do so, then the NVR instructions said to wipe the /root file and start fresh, so I took this to mean don't run commands.bat

Any other ideas?

I'm pretty sure I'm making some minor error, but can't figure it out..

Thanks!
 

ip_poe

Getting the hang of it
Joined
Aug 7, 2018
Messages
45
Reaction score
45
Location
US
I have a few hunches of what could be the problem, but need some expert help...

1) I did not setup my NVR to a static route, it's on DHCP(?) now. If I need to change the static routing, can someone point me to the right instructions, or elaborate on what I need to do..

2) I'm running this on a work laptop, which I am not admin of, I was able to change the NIC settings, so I doubt this is a probem.

3) I'm unclear if I should run the commands.bat and have it's output file for the NVR upgrade? The camera instruction stated to do so, then the NVR instructions said to wipe the /root file and start fresh, so I took this to mean don't run commands.bat
1) This is within the NVR network settings (Under TCP/IP), you should be able to set the NVR's IP to one of two modes... Static (by which it will let you manually set the IP address, subnet mask, and default gateway), or DHCP (by which it will be automatically assigned by the router, although it's rarely changed unless you're on a busy network or the device is offline for a long time... those other options to set the IP will be grayed out... however the IP may still be set to whatever values are displayed and grayed out). Make sure your PC/laptop's static IP (the steps mentioned in step 1, option 2) is the exact same as the Default Gateway of the NVR... default gateway is basically the "parent" of a device for it's network route, so by you setting your PC's static IP as the default gateway the NVR/Cam will communicate to it first when making network requests.

I recommend opening Internet Explorer and attempting to access the NVR at the IP address set on the NVR (You just go to the address bar and type in the NVRs IP address as a page to load, for example mine is 192.168.1.140, which is the static IP I have set on my NVR). If you see the login page when you're directly connected to the NVR you're good on step 1. If you're stuck here just reply with your IP settings and screenshots/pics and I'm sure someone could help.

2) You might have a problem here, you almost certainly must be an admin on the machine I'm guessing. You might want to try the "Run as administrator" option by right-clicking on the scripts before you run them, if you have no admin password you may need to do this on another machine. I wouldn't bother with this step until you know your PC can communicate with the NVR (step 1), running wireshark can help but yeah it does have a little learning curve.

3) No, if you're just doing the NVR flash you should not use commands.bat , make sure that the "root" folder only contains the file ".FLASHING_DONE_STOP_TFTP_NOW", then add the file "ID_<YOUR_SN_NUMBER>.txt" that contains the 4 lines as described, and then finally the extracted .zip files of the NVR firmware obtained from the download.

Step 1 is the most critical, if you can't reach the NVR/Cams to/from the PC none of the other steps will matter. That's why you must either validate by either being able to access the login screen in IE and/or observing wireshark, even just watching for packet activity in wireshark when the NVR/Cams are booted can help ensure a successful connection. As far as the TFTP/Console scripts, I think you should see some type of output at least on the TFTP console so long as there is a successful setup and any form of instructional .txt file in "root".
 
Last edited:

Otown

n3wb
Joined
Apr 18, 2019
Messages
12
Reaction score
3
Location
USA
Thanks ip_poe

So I'm indeed getting stuck at step 1.
I changed the NVR from DHCP to static and setup the following addresses.

IP Address: 192.168.86.44
Default Gateway: 192.168.1.1
Subnet Mask: 255.255.0.0

I can hit the web log in via 192.168.86.44 when the NVR is plugged into my network.
However, when I unplug it and wire it directly it to my Mac or PC I can't.
I tried a variation of the IP Address with 192.168.1.44 with the default gateway and subnet the same, but neither worked (as in, I couldn't hit the web log in page).

As background, the macbook has a wonky usb-c to ethernet adapter, while the PC network card was setup per "option 2" of the EASY unbricking setup in the related thread.

Thoughts?
 

d.lux

Getting the hang of it
Joined
Nov 29, 2018
Messages
60
Reaction score
50
Location
Sacramento
Ensure you setup your laptop nic exactly like the unbrick thread.

Its configured that way to pick up broadcast ips...

iirc, the nvr broadcasts the .108 ip also
 

Otown

n3wb
Joined
Apr 18, 2019
Messages
12
Reaction score
3
Location
USA
afaik the PC network card was setup exactly like the instructions.

I'm lining up a loaner laptop with full admin privileges to eliminate that variable from the equation. Once I have that, I'll ensure it's setup as instructed..

Quick question in the meanwhile..

1) is my actual NVR address ok as is? 192.168.86.44? (I noticed all the other addresses were 192.168.1.xx, or is having the 86 vs 1 in the 3 sequence significant?)

2) To confirm, once I direct connect my NIC/PC to the NVR, and have the NIC configured as instructed.. I assume I should be able to log into the NVR control panel via the static IP address defined above?

Thanks for bearing with my simpleton questions.. This is a great learning experience for me..
 

tigerwillow1

Known around here
Joined
Jul 18, 2016
Messages
1,348
Reaction score
1,034
is having the 86 vs 1 in the 3 sequence significant?)
(My answer is based on some assumptions about your network ).
Yes, it's significant. Devices with 192.168.86.x IP addresses won't talk to devices with 192.168.1.x addresses. When they try, the messages will be routed to the gateway address, and go to the graveyeard from there. For the devices to talk to one another, the first 3 parts of the ip address should all be the same. For the 4th part, the addresses can range from 2 to 254. When you assign a static IP you need to make sure you don't duplicate an IP address assigned by the router.
 

d.lux

Getting the hang of it
Joined
Nov 29, 2018
Messages
60
Reaction score
50
Location
Sacramento
The ip defaults to a xx.xx.1.108 during boot (cool idea from mfgr) and it doesn't matter if it is static or dhcp as during boot it broadcasts this ip for these specific purposes (ie FW flash)...

If anyone on that subnet is listening it will talk to it, if not it will go to the "assigned ip" that was given to it...

After the NVR boots up regularly, the flash method wont work as it is looking for the xxx.xxx.1.108 address/subnet...

If you want to view the traffic, use wireshark to see what is happening...This way you can "see" what the nvr is trying to do...
 

ip_poe

Getting the hang of it
Joined
Aug 7, 2018
Messages
45
Reaction score
45
Location
US
Thanks ip_poe

So I'm indeed getting stuck at step 1.
I changed the NVR from DHCP to static and setup the following addresses.

IP Address: 192.168.86.44
Default Gateway: 192.168.1.1
Subnet Mask: 255.255.0.0

I can hit the web log in via 192.168.86.44 when the NVR is plugged into my network.
However, when I unplug it and wire it directly it to my Mac or PC I can't.
I tried a variation of the IP Address with 192.168.1.44 with the default gateway and subnet the same, but neither worked (as in, I couldn't hit the web log in page).
For the devices themselves (the NVR or the cameras) the subnet mask should be 255.255.255.0 (A quick read up on how IP spaces and subnets work can really help demystify networking if you're not familiar), the the IP address must be of the format 192.168.1.X, where X is between 2-253 (because 1 is usually the gateway, and 254 is used for routing packets here, and 255 is the broadcast that should never be applied to a device...to be safe just stay below 200).

Here's a critical note in the linked step 1 "It sends packets addressed to 192.168.254.254 to 192.168.1.1 because it's outside of the subnet," so this means that the device's subnet should be of the mask format 255.255.255.0 anyways else the script process will fail.

So in summary, on the NVR set the static IP like so:
IP Address: 192.168.1.108 (Again, the last number should be able to be anything from 2-253, but 108 is trusted to work)
Default Gateway: 192.168.1.1
Subnet Mask: 255.255.255.0

Attempt to reach the NVR via a direct connection again at whatever IP Address you set above (After the windows options have been saved and you're directly wired from PC to the NVR). If this still fails then there may be some other issues:
- It's possible the network setting changes on the PC are not actually being applied due to lack of admin rights
- There may be multiple network devices (or sometimes even virtual ones) on the PC, so maybe you're not modifying the right one
- The values typed in the PC are not set correctly, or are not being applied (All windows that pop up must have "ok" clicked and the window closed, you can re-open to ensure they're still set correctly). Triple check that the values are prefect.

As for Mac, I'm assuming you're overwriting the network values as well? It won't work at all just by plugging it in directly. The USB adapter may have it's own settings to override as well. These scripts won't work at all on a mac anyways, unless you're dual booting the mac into windows? Or running a windows VM within Mac with proper network routing to the VM. Those could potentially work but would be even more complicated if you're not familiar with those setups.

One final note, I suspect that your router's subnet mask is also 255.255.0.0, which is why you're able to access the NVR through the router. So whenever you do get this working right you'll want to get your NVRs IP back to what it was or back to DHCP.
 
Last edited:

d.lux

Getting the hang of it
Joined
Nov 29, 2018
Messages
60
Reaction score
50
Location
Sacramento
The ip defaults to a xx.xx.1.108 and it doesn't matter if it is static or dhcp as during boot, it broadcasts this ip...

If anyone is listening it will talk to it, if not it will go to the "assigned ip" that was given to it...
 

ip_poe

Getting the hang of it
Joined
Aug 7, 2018
Messages
45
Reaction score
45
Location
US
The ip defaults to a xx.xx.1.108 and it doesn't matter if it is static or dhcp as during boot, it broadcasts this ip...

If anyone is listening it will talk to it, if not it will go to the "assigned ip" that was given to it...
I see, if that's the case then it seems as though @Otown issues are exclusively related to the PC/NIC settings and/or the the lack of admin rights. I did, however, attempt to run the steps on a camera at one point when it was still within the 10.1.1.X subnet (assigned by the NVR) and it failed to reach the TFTP server until I switched it to the 192.168.1.X subnet :idk:
 

Otown

n3wb
Joined
Apr 18, 2019
Messages
12
Reaction score
3
Location
USA
I'm closer, but still no dice..

I changed to a static IP with all the changes noted earlier.. (see second pic)
I also got a pc I have admin rights to, and made the changes to the NIC card (again "option 2") and hardwired it straight to the NVR.
I can log into the web console using the static IP address I defined when hardwired to the unit.
So I'm making progress :)

Where I get stuck..
When running the TFTP and Console.bat,
It connects and I get 1 block served (ID_yourserialnumber.txt)
It then tries to load the custom-x.squashfs.img but says "timeout" then goes to failed.txt and says "file not found or no access".
attached is a pic of the tftp server screen.


It may be noteworthy, that when the NVR is talking to my PC it hangs on the "Lechange" start up screen but doesn't progress (the earlier image of the TFTP server also hangs at that spot..

Any thoughts?

nvr-network-settings.jpg
tftpserver-output.jpg
 
Last edited:

ip_poe

Getting the hang of it
Joined
Aug 7, 2018
Messages
45
Reaction score
45
Location
US
I'm closer, but still no dice..

I changed to a static IP with all the changes noted earlier.. (see second pic)
I also got a pc I have admin rights to, and made the changes to the NIC card (again "option 2") and hardwired it straight to the NVR.
I can log into the web console using the static IP address I defined when hardwired to the unit.
So I'm making progress :)

Where I get stuck..
When running the TFTP and Console.bat,
It connects and I get 1 block served (ID_yourserialnumber.txt)
It then tries to load the custom-x.squashfs.img but says "timeout" then goes to failed.txt and says "file not found or no access".
attached is a pic of the tftp server screen.


It may be noteworthy, that when the NVR is talking to my PC it hangs on the "Lechange" start up screen but doesn't progress (the earlier image of the TFTP server also hangs at that spot..

Any thoughts?
Well it looks like you've manged to get past step 1 :)

Some suggestions:
1) A subtle note I mentioned on my original post "Note: The first time I noticed that the TFTP console complained about a missing "failed.txt" file, I created that in the "root" directory (an empty file), probably not needed but it could help with the script workflow. "
2) Did you extract the firmware into the "root" directory? Does it contain the custom-x.squashfs.img file (and the 3 other's that are listed)? Please post a screenshot or list your contents of "root"
3) Did you follow step 1 sub-steps 9-11, which adds the IP 192.168.254.254 to your machine too? That is needed to actually serve the needed .img files from your machine.
4) The whole process can take 30 minutes plus, and just because you see that exact “failed.txt” line doesn’t guarantee it actually failed. Again monitoring wireshark would help here, but I’d let it at least run for a while and see if it progresses on it’s own.
 
Last edited:

Otown

n3wb
Joined
Apr 18, 2019
Messages
12
Reaction score
3
Location
USA
@ip_poe

In response to your suggestions:

1) I added failed.txt as suggested. Now I get "1 block served" instead of failed. (progress I guess?)

2) Attached is a pic of my root directory. (I just 'extracted' the firmware file, was I supposed to move the bin files into the "bin" directory, or delete any other files?
Note, I also updated the ID_yourserialnumberhere.txt with the 4 commands and checked for sp errors..

3) I went back and double checked the EASY unbrick thread and confirmed that I have followed all the steps for setting up my NIC. See attached pic and let me know if I missed something..

4) On this latest attempt, I let it go ~45 min + and didn't see any signs of progress beyond the attached pics or the "lechange" boot screen.
Note, I did d/l wireshark, but i'm pretty new to the product, I'll play with it to see if I can make heads or tails of all the traffic I'm seeing..

I'm sure I'm have some small error somewhere that's making this harder then it's supposed to be.. Thanks for the help!

directories+tftp screen.jpg
tftpserver-output.jpg
pc nic settings.jpg
 
Last edited:

d.lux

Getting the hang of it
Joined
Nov 29, 2018
Messages
60
Reaction score
50
Location
Sacramento
Hi @Otown

It looks like it begins to talk and then times out

You are almost there!

Can you show the contents of the ID_XXXX.txt file?

Also, can you explain your bench setup? Do you have a dumb switch you can throw into the setup?

Can you run wireshark and show us what it's doing?
 

Otown

n3wb
Joined
Apr 18, 2019
Messages
12
Reaction score
3
Location
USA
@d.lux

Attached is my ID file.

I have been direct connecting the PC to NVR via a cat5 cable. I will try an add the unmanaged POE switch I just got for the cam upgrade.

I don't have wireshark figured out yet, perhaps you can clue me into what I need to do to generate something you can look at?ID_file.jpg
 

ip_poe

Getting the hang of it
Joined
Aug 7, 2018
Messages
45
Reaction score
45
Location
US
@ip_poe

In response to your suggestions:

1) I added failed.txt as suggested. Now I get "1 block served" instead of failed. (progress I guess?)

2) Attached is a pic of my root directory. (I just 'extracted' the firmware file, was I supposed to move the bin files into the "bin" directory, or delete any other files?
Note, I also updated the ID_yourserialnumberhere.txt with the 4 commands and checked for sp errors..

3) I went back and double checked the EASY unbrick thread and confirmed that I have followed all the steps for setting up my NIC. See attached pic and let me know if I missed something..

4) On this latest attempt, I let it go ~45 min + and didn't see any signs of progress beyond the attached pics or the "lechange" boot screen.
Note, I did d/l wireshark, but i'm pretty new to the product, I'll play with it to see if I can make heads or tails of all the traffic I'm seeing..
This all looks correct, and your "root" folder looks exactly like mine. Yes I think it's just a matter of troubleshooting a minor issue.

At this point I think you'll really need to monitor wireshark to see that it's actually able to send the 4 .img files listed in the "ID_<SN>.txt" file. The program seems complicated, but basically you just need it to:
1) Capture the packets (Just select your ethernet adapter as it's capture source upon startup), or start a new capture if one is not currently running.
2) Verify that packets are being sent successfully to and from your PC to the NVR (Just look at the source and destination IPs, find ones that match 192.168.1.1 (your PC) and/or 192.168.1.108 (The NVR), make sure they're highlighted green for the most part or have a 200 (or 2XX level) status code)
3) Verify that there is a lot of packet activity happening when the NVR is first powered on, and when the TFTP script is displaying statuses.
4) Verify that files are actually being sent to the NVR (Should see packets with a destination and/or source as 192.168.254.254 in great volume as files are actually being sent to the NVR)
5) There may be some slight delay between the 4 .img file transfers for processing, but in general much of the time should be sent actually transferring the files.

Note: I don't recall seeing the "failed.txt" line after I added the "failed.txt" file (But I didn't take exact note of the output so maybe it was there), so maybe something isn't being sent correctly. But I think you really need to verify that the files are actually being sent based on the above notes.

If they're not actually being sent you may have an issue with perhaps a firewall restriction on the machine (May need to disable all firewalls temporarily), or maybe there is a permission issue on the files/folders themselves (would need to ensure full read access on all files/folders.
 

d.lux

Getting the hang of it
Joined
Nov 29, 2018
Messages
60
Reaction score
50
Location
Sacramento
Hi again,

Are my eyes getting old or are there any extra spaces after the "." in those text strings?

How about a leading space before logo? (Can't tell if there is or not?)

I used an unmanaged switch between my pc and the nvr...

I wouldn't use a POE switch between the two, just a dumb switch will do...

Just open/install wireshark and ensure you are "monitoring" the correct nic (on your pc/ethernet nic name )...

Like ip_poe stated, you should see "alot of stuff going on" from your local ip to the .108 ip.

If not, look for "something else" chatting via wireshark, if you see something, you may be able to decipher what ip your nvr "thinks it is" and we can go from there...

Also agreed that I would check your firewall/anti virus settings stuff...sometimes those get in the way and lock stuff down
 

ip_poe

Getting the hang of it
Joined
Aug 7, 2018
Messages
45
Reaction score
45
Location
US
Attached is my ID file.
View attachment 55042
This may be a non-issue but FYI this must be a plain text non-encoded file. You cannot create it in a program (like Word) that encodes characters. I just noticed because I have all defaults on my machine and my font characters are different (I'm using Consolas regular font, screenshot below). Probably not the case, especially if you created it within notepad and just had a different font, but I've seen this "gotcha" on a few occasions :) .

Make sure you have no white-space characters before or after either line, nor between each character, nor after the final line (make sure there's not 5 or more lines within the file). Maybe even do a "save as" within notepad and override the existing file just to ensure the correct plain-text format, or create a new notepad file, or delete everything and manually type in the values and override within notepad.

ID_SN.jpg
 
Last edited:

Otown

n3wb
Joined
Apr 18, 2019
Messages
12
Reaction score
3
Location
USA
Ok @d.lux & @ip_poe

1) I turned off my antivirus and firewalls.

2) i checked the ID file and confirmed no spaces (eventhough it looks like there are...)

3) I recreated the ID file on my PC in notepad to ensure proper formatting.

4) checked the spelling of the custom-x bin file name to make sure there were no hidden typos/errors.

5) attached is the wireshark data. After your encouragement, i could see where the NVR (192.168.1.108) was requesting the custom-x bin file, but it timed out quick. (1 step prior it asked for the ID text file and successfully obtained it, same with the failed.txt file.)

6) I dug out a dumb switch (non-poe) and will try that momentarily
 

Attachments

Top