Class v.c.m.SIMCardConnAdapter(SIMCardConnection):

Part of vmc.common.middleware View In Hierarchy

Known subclasses: vmc.common.hardware.huawei.HuaweiE2XXAdapter

Wrapper around common.SIMCardConnection

Its main objective is to provide error control on some operations and a cleaner API and way to deal with results than directly with vmc.common.protocol.SIMCardConnection
Method __init__ Undocumented
Method add_contact Adds contact to the SIM and returns the index where was stored
Method add_sms Adds sms to the SIM archive
Method check_pin Returns the SIM's auth state
Method find_contacts Returns a list of Contact whose name matches pattern
Method get_contacts Returns a list with all the contacts in the SIM
Method get_contact_by_index Undocumented
Method get_free_contact_ids Returns a deque with the contact ids not used
Method get_used_contact_ids Returns a list with the used contact ids
Method get_used_sms_ids Returns a list with used SMS ids in the SIM card
Method get_sms Returns a list of ShortMessage objects with all the SMS in the SIM card
Method get_available_charset Returns a list with the available character sets
Method get_card_model Returns the the card's model
Method get_card_version Returns a deferred that will be callbacked with the card's version
Method get_charset Returns the current charset
Method get_imei Returns the card's IMEI number
Method get_imsi Returns the SIM's IMSI number
Method get_manufacturer_name Returns the Manufacturer name
Method get_phonebook_size Returns the phonebook size of the SIM card
Method get_pin_status Returns 1 if PIN auth is active and 0 if its not
Method get_signal_level Returns the signal level
Method get_sms_by_index Returns a ShortMessage object representing the SMS at index
Method get_smsc Returns the SMSC number stored in the SIM
Method get_netreg_status Returns a tuple with the network registration status
Method get_network_info Returns the network info (a.k.a AT+COPS?)
Method get_network_names Returns a list of NetworkObjects (a.k.a AT+COPS=?)
Method get_roaming_ids Returns the network ids stored in the SIM to roam (a.k.a AT+CPOL?)
Method send_sms Sends sms and returns the index
Method set_charset Sets the character set used on the SIM
Method set_smsc Sets the SIMS's SMSC number to smsc

Inherited from SIMCardConnection:

Method change_pin Changes oldpin to newpin in the SIM card
Method delete_all_contacts Deletes all the contacts in SIM card, function useful for tests
Method delete_all_sms Deletes all the messages in SIM card, function useful for tests
Method delete_contact Deletes the contact specified by index
Method delete_sms Deletes the message specified by index
Method disable_echo Disables echo of AT cmds
Method disable_pin Disables pin authentication at startup
Method enable_pin Enables pin authentication at startup
Method get_next_contact_id Returns the next free contact id
Method register_with_network Registers with the given netid
Method reset_settings Resets the settings to factory settings
Method send_at Send an arbitrary AT string to the SIM card
Method send_pin Sends the PIN to the SIM card
Method send_puk Sends PUK and PIN to the SIM card
Method set_netreg_notification Sets CREG unsolicited notification
Method set_network_info_format Undocumented
Method set_sms_format Sets the format of the SMS
Method set_sms_indication Sets the SMS indication mode

Inherited from SIMProtocol (via SIMCardConnection):

Method __repr__ Undocumented
Method transition_to_idle Transitions to idle and processes next queued ATCmd
Method send_splitcmd Used to send the second part of a split command after prompt appears
Method _process_at_cmd Undocumented
Method _check_queue Undocumented
Method queue_at_cmd Queues an ATCmd and returns a deferred

Inherited from BufferingStateMachine (via SIMCardConnection, SIMProtocol):

Method _timeout_eb Undocumented
Method cancel_current_delayed_call Cancels current ATCmd dellayed call if active
Method notify_success Notify success to current ATCmd callbacks
Method notify_failure Notify failure to current ATCmd errbacks
Method set_cmd Sets self.cmd to cmd
Method set_state Sets and logs the new state
Method enque_notification Enqueues a notification
Method dataReceived See twisted.internet.protocol.Protocol.dataReceived
Method process_notifications Processes unsolicited notifications in buffer
Method handle_idle See the method comments
Method handle_waiting Undocumented
def __init__(self, device):
Undocumented
def add_contact(self, contact):
Adds contact to the SIM and returns the index where was stored
Returns (type: defer.Deferred )
def add_sms(self, sms):
Adds sms to the SIM archive
def check_pin(self):
Returns the SIM's auth state
Returns (type: defer.Deferred )
def find_contacts(self, pattern):
Returns a list of Contact whose name matches pattern
def get_contacts(self):
Returns a list with all the contacts in the SIM
def get_contact_by_index(self, index):
Undocumented
def get_free_contact_ids(self):
Returns a deque with the contact ids not used
def get_used_contact_ids(self):
Returns a list with the used contact ids
def get_used_sms_ids(self):
Returns a list with used SMS ids in the SIM card
def get_sms(self):
Returns a list of ShortMessage objects with all the SMS in the SIM card
def get_available_charset(self):
Returns a list with the available character sets
Returns (type: defer.Deferred )
def get_card_model(self):
Returns the the card's model
Returns (type: defer.Deferred )
def get_card_version(self):
Returns a deferred that will be callbacked with the card's version
def get_charset(self):
Returns the current charset
def get_imei(self):
Returns the card's IMEI number
Returns (type: Deferred )
def get_imsi(self):
Returns the SIM's IMSI number
Returns (type: Deferred )
def get_manufacturer_name(self):
Returns the Manufacturer name
Returns (type: Deferred )
def get_phonebook_size(self):
Returns the phonebook size of the SIM card
Returns (type: Deferred )
def get_pin_status(self):
Returns 1 if PIN auth is active and 0 if its not
Returns (type: Deferred )
def get_signal_level(self):
Returns the signal level
Returns (type: Deferred )
def get_sms_by_index(self, index):
Returns a ShortMessage object representing the SMS at index
Returns (type: Deferred )
def get_smsc(self):
Returns the SMSC number stored in the SIM
Returns (type: Deferred )
def get_netreg_status(self):

Returns a tuple with the network registration status

+CREG: 0,0 - Not registered and not scanning for a GSM network +CREG: 0,1 - Registered on the "HOME" network of the SIM +CREG: 0,2 - Not registered but is scanning for a GSM network +CREG: 0,3 - Registration is denied (Manual attempt failed) +CREG: 0,5 - Registered on to another network (roaming).
Returns (type: Deferred )
def get_network_info(self, process=True):

Returns the network info (a.k.a AT+COPS?)

The response will be a tuple as (OperatorName, ConnectionType) if it returns a (None, None) that means that some error occurred while obtaining the info. The class that requested the info should take care of insisting before this problem. This method will convert numeric network IDs to alphanumeric.
Returns (type: Deferred )
def get_network_names(self):
Returns a list of NetworkObjects (a.k.a AT+COPS=?)
Returns (type: Deferred )
def get_roaming_ids(self):
Returns the network ids stored in the SIM to roam (a.k.a AT+CPOL?)
Returns (type: Deferred )
def send_sms(self, sms):
Sends sms and returns the index
def set_charset(self, charset):
Sets the character set used on the SIM
def set_smsc(self, smsc):
Sets the SIMS's SMSC number to smsc
API Documentation for vodafone-mobile-connect-card-driver-for-linux, generated by pydoctor at 2008-01-10 13:06:31.