Помогите прошить AirTies 7120 IP Set-Top Box !!
может кто то разжует поэтапно как это делать ?
в мануале написан пример : Following is an example for file upgrade from JavaScript Code. For more information on AirTies JavaScript API <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title></title> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <script language="javascript"> var AirJS = new AirTiesVP(); var file_firmware_path = "file:///mnt/usb/firmware.bin"; var MULTICAST_UPGRADE = 0; var HTTP_UPGRADE = 1; var FILE_UPGRADE = 2; AirJS.onFirmwareEvent( firmwareEventHandler ); AirJS.setUpgradeParameters( FILE_UPGRADE , file_firmware_path ); function firmwareEventHandler( event ){ switch( event ) { case 1000: //"New Firmware is available."; break; case 1001: //"Current Firmware is up-to-date."; break; case 1002: //"Upgrade check failed!"; break; case 1003: //"Upgrade complete"; AirJS.reboot(); // must reboot after upgrade break; case 1004: //"Unable to upgrade! "; break; case 1005: //"Upgrade File not Found!"; break; case 1006: //"Force to upgrade!"; break; case 1007: //"Config check failed!"; break; case 1008: //"Firmware check failed!"; break; case 1009: //"Version mismatch<br>"; break; case 1010: //"Unable to retrieve config!<br>"; break; case 1111: //"Unexpected error occured!<br>"; break; default: } } function myUpgrade() { //"Stb is being upgraded , please wait..."; AirJS.upgrade(); } </script> </head> <body> <h1> FW Upgrade Page </h1> <a rel="nofollow" href="#" onClick=" myUpgrade();"/>Click for Upgrade</a><br/><br/> </body> </html> |
Текущее время: 21:30. Часовой пояс GMT +3. |
Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd. Перевод: zCarot