9.2.10
DEVICE (DEV) FUNCTIONS
Device functions allows the user to setup firmware and general PLAYER configurations.
Functions
Function:
DEV_reboot()
Description:
Reboot the PLAYER inmediatly.
Function:
txtVersion = DEV_version()
Description:
Get the PLAYER firmware version
Return:
txtVersion – string containing PLAYER firmware version formatted
Function:
DEV_update(urlFirmware)
Description:
Installs a new PLAYER firmware version. After installation device is rebooted automatically
Arguments:
urlFirmware – Url containing the path where PLAYER firmware resides. Must be a local
storage device or http/https url.
Function:
total, used, percent = DEV_get(devUrl)
Description:
Get the PLAYER firmware version
Arguments:
devUrl – url of local storage device. Must be mmc:// or usb://
Return:
total – number representing total number of bytes of external storage
device used – number of bytes representing the used size
percent – number parameter representing the used percentadge
Example:
require
"PLAYER"
ep=PLAYER.new()
print("usb", ep.DEV_get("usb://"))
total,user,percent=ep.DEV_get("mmc://")
print("mmc", total, user, percent)
usb
7823420
mmc
15629312
Function:
DEV_boot(nBoot)
Description:
Set device boot mode to nBoot
Arguments:
nBoot – number indicating load PRESET1 (bBoot=2) or keep settings (nBoot=1)
4223365
68912
0
SW
114