Need a quote? A specific configuration, a project? Contact us on 02 51 99 13 03 .

How to upgrade Milesight Gateway

Comment mettre à niveau la passerelle Milesight

luna fouilleul |

Requirement

Configuration

Upgrading via Web GUI

1. Access to the gateway web GUI locally or remotely.

2. Go to Maintenance > Upgrade to import the firmware and perform the upgrade.

Note: Do not operate the device during the upgrade.

Upgrade via CLI

1. Access to the CLI gateway via the root account referring to the article How to Access the Command Line Interface (CLI) .

2. Import the firmware into the “overlay” folder via the WinSCP tool. If the gateway has accessed the Internet, you can try the wget command to download the firmware, the firmware link can be found on the Milesight download center :

 wget https://resource.milesight.com/milesight/iot/firmware/61.1.0.9-r2.bin  
Generic


3. Create an upgrade script.

 vim upgrade.sh  
Generic

Fill in the contents of the script:

 #! / bin / sh

 platform_check_image $ 1 888
 
if [ $ ? != 0 ] ; then
 echo "check image is failed!"
 exit 0
 fi

 echo "start upgrade firmware"
 
platform_check_image$ 2 &  
VS

4. Change the authority of update.sh

 chmod + x upgrade . sh  
VS

5. Run the command to upgrade:

 . / upgrade . sh / overlay / 61.1 .0 .9 - r2 . bin 1  
VS