Class v.c.s.SIMBaseClass(object):

Part of vmc.common.sim View In Hierarchy

Known subclasses: vmc.common.hardware.nokia.NokiaSIMBaseClass, vmc.common.hardware.option.OptionSIMClass

I take care of initing the SIM

The actual details of initing the SIM vary from mobile to datacard, so I am the one to subclass in case your device needs a special startup
Method __init__ Undocumented
Method set_size Undocumented
Method set_charset Undocumented
Method preinit What I do:

Method postinit Returns a Deferred that will be callbacked when the SIM is ready
def __init__(self, sconn):
Undocumented
def set_size(self, size):
Undocumented
def set_charset(self, charset):
Undocumented
def preinit(self):
What I do:
 - Reset settings
 - Disable echo
def _set_charset(self, charset):
Checks whether is necessary the change and memorizes the used charset
def _process_charsets(self, charsets):
Undocumented
def _setup_encoding(self):
Undocumented
def postinit(self, set_encoding=True):

Returns a Deferred that will be callbacked when the SIM is ready

What I do:
 - Set encoding to Unicode (if is possible, otherwise IRA or GSM
 - Whenever a new SMS is received I will save a copy in the SIM and
 will send a solicited SMS notification 
 - Set SMS format to PDU
Parametersucs2If True, it will set the SIM's enconding to UCS2 (type: bool )
ReturnsThe SIM's phonebook size (type: int )
API Documentation for vodafone-mobile-connect-card-driver-for-linux, generated by pydoctor at 2008-01-10 13:06:31.