com.esf.device.modem.factory.service
Interface IUsbModemFactoryService


public interface IUsbModemFactoryService


Field Summary
static java.lang.String SERVICE_NAME
          service name of this interface for the bundle activator (com.esf.device.modem.factory.service.IUsbModemFactoryService)
static int TYPE_BASIC
          Basic modem service
static int TYPE_EVDO
          Type of Modem Factory - EVDO
static int TYPE_HSDPA
          Type of Modem Factory - HSDPA
 
Method Summary
 java.util.Hashtable getModemServices()
          Reports modem services available
 int getType()
          Reports type of modem service
 ISierraEvdoModemService obtainEvdoModemService(java.lang.String vendorID, java.lang.String productID, java.lang.String usbPortAddress, java.util.Hashtable modemPorts)
          Obtains EVDO modem service
 ISierraHsdpaModemService obtainHsdpaModemService(java.lang.String vendorID, java.lang.String productID, java.lang.String usbPortAddress, java.util.Hashtable modemPorts)
          Obtains HSDPA modem service
 IUsbCellularModemService obtainUsbCellularModemService(java.lang.String vendorID, java.lang.String productID, java.lang.String usbPortAddress, java.util.Hashtable modemPorts)
          Obtains generic modem service
 void releaseModemService(java.lang.String usbPortAddress)
          Releases modem service specified by its USB address
 

Field Detail

SERVICE_NAME

static final java.lang.String SERVICE_NAME
service name of this interface for the bundle activator (com.esf.device.modem.factory.service.IUsbModemFactoryService)


TYPE_BASIC

static final int TYPE_BASIC
Basic modem service

See Also:
Constant Field Values

TYPE_EVDO

static final int TYPE_EVDO
Type of Modem Factory - EVDO

See Also:
Constant Field Values

TYPE_HSDPA

static final int TYPE_HSDPA
Type of Modem Factory - HSDPA

See Also:
Constant Field Values
Method Detail

obtainUsbCellularModemService

IUsbCellularModemService obtainUsbCellularModemService(java.lang.String vendorID,
                                                       java.lang.String productID,
                                                       java.lang.String usbPortAddress,
                                                       java.util.Hashtable modemPorts)
                                                       throws java.lang.Exception
Obtains generic modem service

Parameters:
vendorID - - vendor ID as String
productID - - product IDs as String
usbPortAddress - - USB port address as String
modemPorts - - modem's ttyUSB ports as Hashtable
Returns:
generic modem service as IModemService
Throws:
java.lang.Exception

obtainEvdoModemService

ISierraEvdoModemService obtainEvdoModemService(java.lang.String vendorID,
                                               java.lang.String productID,
                                               java.lang.String usbPortAddress,
                                               java.util.Hashtable modemPorts)
                                               throws java.lang.Exception
Obtains EVDO modem service

Parameters:
vendorID - - vendor ID as String
productID - - product IDs as String
usbPortAddress - - USB port address as String
modemPorts - - modem's ttyUSB ports as Hashtable
Returns:
EVDO modem service as IEvdoModemService
Throws:
java.lang.Exception

obtainHsdpaModemService

ISierraHsdpaModemService obtainHsdpaModemService(java.lang.String vendorID,
                                                 java.lang.String productID,
                                                 java.lang.String usbPortAddress,
                                                 java.util.Hashtable modemPorts)
                                                 throws java.lang.Exception
Obtains HSDPA modem service

Parameters:
vendorID - - vendor ID as String
productID - - product ID as String
usbPortAddress - - USB port address as String
modemPorts - - modem's ttyUSB ports as Hashtable
Returns:
HSDPA modem service as IHsdpaModemService
Throws:
java.lang.Exception

getModemServices

java.util.Hashtable getModemServices()
Reports modem services available

Returns:
list of modem services as Hashtable

releaseModemService

void releaseModemService(java.lang.String usbPortAddress)
Releases modem service specified by its USB address

Parameters:
usbPortAddress -

getType

int getType()
Reports type of modem service

Returns:
type of modem service as int