This is an old revision of the document!
WMPRO, WMMINI FW >= 1.0 WMMEGA FW >= 2.0
Get USB host status information
None
Array containing the following keys and values:
KEY | TYPE | VALUE |
---|---|---|
enabled | int | 1 if USB support is enabled, 0 if disabled |
state | string | USB state, one of the following: DETACHED - Device is detached ATTACHED - Device is attached ADDRESSING - Device is acquiring address CONFIGURING - Device is being configured RUNNING - Device is running HOLDING - Device is holding STATE=x - Other state (x) |
VID | int | USB Device VID (16bit) |
PID | int | USB Device PID (16bit) |
device | string | Name of the device (if a driver is found) |
CDC1) | int | 1 if the device supports CDC, otherwise 0 |
<? $arr=getusbstat(); print("USB device ID is: ".$arr['VID'].":".$arr['PID']\r\n"); ?>
setusbpower() - Set the USB host power on or off (1 or 0)
net_enable3g() - Enable USB dongle network connectivity if available
net_disable3g() - Disable USB dongle network connectivity
getethstat() - Get Ethernet connection information