MODEMCTL

Description

Configuration helper for usb modem.

Command

modemctl ( devinfos [<device>] | eject <device> | reset <device> ) [-v]
A device is referenced by its unit address with the ugen<unit>.<addr> form (ugen4.2)
devinfos      : Display information about all plugged USB devices.
eject         : Power off <device> to eject safely.
reset         : Restart <device>. Useful to trigger probing by the kernel.
-v --verbose  : Verbose mode
-h --help     : This help

Results

Example

./modemctl devinfos
ugen4.2: <Mass Storage Generic> at usbus4, cfg=255 md=HOST spd=HIGH (480Mbps) pwr=OFF (200mA)
VendorId=058f
ProductId=6387

ugen4.3: <USB Modem USB Modem> at usbus4, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON (500mA)
VendorId=1c9e
ProductId=9603

ugen4.4: <HUAWEIMOBILE HUAWEIMOBILE> at usbus4, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON (2mA)
VendorId=12d1
ProductId=15cf
./modemctl eject ugen4.4
ugen4.4 has been powered off and can be ejected safely