103
1
SW
bEncrypt = DEV_isEncrypted(devUrl)
9.2.10
DEVICE (DEV) FUNCTIONS
Device functions allows the user to setup firmware and general PLAYER configurations.
Functions
Function:
Description:
Reboot the PLAYER inmediatly.
Function:
Description:
Get the PLAYER firmware version
Return:
txtVersion
– string containing PLAYER firmware version formatted
Function:
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:
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:
usb
7823420
4223365
mmc
15629312
68912 0
Function:
Description:
Set device boot mode to nBoot
Arguments:
nBoot
– number indicating load PRESET1 (bBoot=2) or keep settings (nBoot=1)
Function:
DEV_reboot()
txtVersion = DEV_version()
DEV_update(urlFirmware)
total, used, percent = DEV_get(devUrl)
require
"PLAYER"
ep=PLAYER.new()
print("usb", ep.DEV_get("usb://"))
total,user,percent=ep.DEV_get("mmc://")
print("mmc", total, user, percent)
DEV_boot(nBoot)