Note:
This method is used to flash the entire program when the device's RFS is malfunctioning and the IP address cannot be pinged.
Preparation:
MDVR, adapter and power cord, serial port output cable, USB to RS232 serial port print debug cable, aviation head to network port cable, network cable, computer and Device Programming (Technical Inquiry);program (SecureCRT.exe/tftpd32.exe/flash.img) download address scrt804-x64.exe /tftpd32.exe, burning program will be updated frequently, so ask the technicians to obtain it
1. Connection
1.1 USB to rs232 serial port printing and debugging cable. Plug one end of the USB into the computer USB port, and the other male end into the serial port output cable 1.2 Plug the serial port output cable into the MDVR 232 output port 1.3 Plug the aviation head to network port cable into the MDVR LAN port, and plug the other end of the RJ45 port into the network cable and connect it to the computer network port 1.4 Prepare to connect the power cord and power it on at any time Connection example diagram:
MDVR 232 output port example:
M51Hv
M32Hv
 M20Hv
M16Hv
M91Hv
M10Cv
2. Upgrade
2.1 Open the securecrt.exe tool, select serial mode for the new connection, select the COM port where the USB to RS232 serial port print debug cable is inserted into the USB port (if you don’t know which COM port it is, open the computer properties--click the device management serial port column to see it. If the computer does not recognize it correctly, please check whether the driver is installed correctly and whether the USB port is damaged), select 115200 for the baud rate and other defaults. After the creation is completed, double-click it to enter the output window.
2.2 Click the output window to switch to this interface. Power on the MDVR and immediately press the "Ctrl+ Q" key combination on the keyboard to enter the MDVR TFTP interface.
2.3 Copy the following command to configure network parameters
setenv serverip 192.168.1.171;setenv ipaddr 192.168.1.207;setenv ethaddr 00:00:85:18:01:31;setenv netmask 255.255.255.0;setenv gatewayip 192.168.1.1;saveenv;
Note: serverip refers to the computer IP, ipaddr refers to the device IP, and gatewayip refers to the gateway. These three parameters should be changed according to the actual use environment. The computer and device IP must be configured in the same network segment to ensure normal communication.
2.4 Check if MDVR and computer network are communicating ping + computer IP, for example: ping 192. 168.1.172 Return to normal
Return failure, check if the computer or MDVR LAN port is plugged in tightly, if the computer local network port is recognized normally, etc.
2.5 Put tftpd32.exe Put it in the same directory as flash.img and open tftpd32.exe
2.6 Switch to the output window and copy the corresponding model command upgrade program. Wait for a few minutes until the upgrade is completed. //M20Hv, M16Hv, M32Hv, M51Hv, M61Hv
mw.b 0x1800000 ff 0x1000000;tftpboot 0x1800000 M51Hv_flash16m_V010145.img;sf probe 0;sf erase 0x0 0x1000000;sf write 0x1800000 0x0 0x1000000;
//M10Hv、M15Hv
mw.b 0x1800000 ff 0x800000;tftpboot 0x1800000 M10Cv_flash109.img;sf probe 0;sf erase 0x0 0x800000;sf write 0x1800000 0x0 0x800000;
//M91Hv
mw.b 0x01800000 0xff 0x2000000;tftpboot 0x01800000 M91Hv_flash32m_V010119.img;nand erase 0x00000 0x2000000;nand write 0x01800000 0x00000 0x2000000;
Note: The specific flash.img program name should be replaced after the command tftpboot 0x1800000. Since the MCU of the M51Hv model will restart, steps 2.2-2.6 need to be completed as quickly as possible to avoid restarting and causing bricking and inability to upgrade through TFTP.
The upgrade is completed as shown below:
2.7 Enter the "reset" command to restart and check whether it returns to normal.