Upload Firmware: Unterschied zwischen den Versionen

Aus Gude Systems GmbH
Zur Navigation springen Zur Suche springen
Zeile 6: Zeile 6:
 
  upload.bat firmware_epc8226_v1.7.0.bin 192.168.0.4
 
  upload.bat firmware_epc8226_v1.7.0.bin 192.168.0.4
  
== upload.bat ==
+
'''upload.bat''':
 
  @echo off
 
  @echo off
 
  REM Upload FirmwareFile
 
  REM Upload FirmwareFile
Zeile 19: Zeile 19:
 
  ./upload.sh firmware_epc8226_v1.7.0.bin 192.168.0.4
 
  ./upload.sh firmware_epc8226_v1.7.0.bin 192.168.0.4
  
== upload.sh ==
+
'''upload.sh''':
 
  #!/bin/bash
 
  #!/bin/bash
 
   
 
   

Version vom 14. Februar 2020, 10:23 Uhr

If you want to install the same firmware update file to multiple devices, you can use http command line tools (curl) instead of using your Internet Browser.

Windows

upload.bat firmware_epc8226_v1.7.0.bin 192.168.0.2
upload.bat firmware_epc8226_v1.7.0.bin 192.168.0.3
upload.bat firmware_epc8226_v1.7.0.bin 192.168.0.4

upload.bat:

@echo off
REM Upload FirmwareFile
curl.exe --verbose -F file=@%1 "http://%2/fwupdate.txt?type=0"

REM Reboot
curl "http://$2/status.json?cmd=39"

Linux

./upload.sh firmware_epc8226_v1.7.0.bin 192.168.0.2
./upload.sh firmware_epc8226_v1.7.0.bin 192.168.0.3
./upload.sh firmware_epc8226_v1.7.0.bin 192.168.0.4

upload.sh:

#!/bin/bash

# Upload FirmwareFile
curl --verbose -F file=@./$1 "http://$2/fwupdate.txt?type=0"

# Rebot to apply
curl "http://$2/status.json?cmd=39"