WMPRO, WMMINI FW >= 1.0 WMMEGA FW >= 2.0
Get USB host status information
Return an array containing information about the state of the USB interface
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() - Enable or disable USB power
net_enable3g() - Enable 3G support for the dongle
net_disable3g() - Disable 3G support for the dongle
getethstat() - Get Ethernet connection status information