...
Applies a factory reset to the player. This method must be passed the string "confirm" to work; otherwise, it will return False and do nothing. If successful, this method will reboot without a return value. The following steps will be carried out during a factory reset:
1. All files are wiped from the BOOT:
drive (including custom splash screens and autorun scripts).
2. All values are wiped from the registry.
3. The RTC is reset (if the player has an RTC).
4. The FLASH:
drive is wiped.
ConfigureAsUsbGadget(roBool gadget)
This method allows the USB OTG (On The Go) port on the AU335 to be dynamically configured to host or gadget mode. In the host role, the USB port follows standard behavior (it allows USB devices to be plugged into it). In the gadget role, the player can behave as a USB device (for example, roUsbFilesystem). This method will return false on platforms other than the AU335.
This script switches to gadget role and presents sd:/test.img as a filesystem to a connected USB host:
Code Block | ||
---|---|---|
| ||
dc=CreateObject("roDeviceCustomization")
dc.ConfigureAsUsbGadget(1)
fs = CreateObject("roUsbFilesystem")
fs.Enable({filename: "SD:test.img"}) |
If ConfigureAsUsbGadget(1)
isn't called on an AU335, then the USB will only run in host mode, regardless of what is connected.
Note that on all BrightSign players other than AU335, the USB port doesn't need any configuration to work in USB OTG mode. The USB stack switches automatically between host and gadget depending on what is connected to the port.
EncryptStorage(device As String, params As roAssociativeArray) As Boolean
...