Player APIs (BrightScript & Ja...
...
Object Reference
Input/Output Objects
roUsbPowerControl
4min
the rousbpowercontrol object is used to control the power of the usb port for specific supported platforms the supported platforms are xt1144, xd1034, au325, and au335 this object is available on brightsign os 8 2 20 and above ifusbpowercontrol powercycleport(friendly name as string) as boolean allows you to power cycle the vbus on a device that may be stuck on a specific port this method returns true on success, or false on failure friendly name string string the friendly name of the specific usb port refer to the table below to map friendly names to supported platforms for example, call usb powercycleport("usb\ a") to turn the usb power on port 1 of au325 off and on again platform usb friendly name au325 1, 2, 3, 4, 5, 6 "usb\ a", "usb\ b", "usb\ c", "usb\ d", "usb\ e", "usb\ f" au335 type c "usb\ a" xd1034, xt1144 type c, type a "usb\ a", "usb\ b" powercycleallports() as boolean call usb powercycleallports() to turn the power off and on for all usb ports and power cycle all plugged in devices this method returns true on success, or false on failure portpoweron(friendly name as string) as boolean allows you to power on the specified port this method returns true on success, or false on failure friendly name string string the friendly name of the specific usb port please refer to the table above to map friendly names on supported platforms portpoweroff(friendly name as string) as boolean allows you to power off the specified port this method returns true on success, or false on failure friendly name string string the friendly name of the specific usb port please refer to the table above to map friendly names on supported platforms example this example power cycles usb\ a and usb\ b ports with a one second wait usb = createobject("rousbpowercontrol") ? usb portpoweroff("usb\ a") ? usb portpoweroff("usb\ b") sleep(1000) ? usb portpoweron("usb\ a") ? usb portpoweron("usb\ b")