Part of wader.common.protocol View In Hierarchy
Known subclasses: wader.common.middleware.WCDMAWrapper
Method | __init__ | Undocumented |
Method | add_contact | Adds a contact to the SIM card |
Method | add_sms | Adds sms to the SIM and returns the index
|
Method | change_pin | Changes oldpin to newpin in the SIM card
|
Method | check_pin | Checks what's necessary to authenticate against 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_pin | Disables pin authentication at startup |
Method | enable_pin | Enables pin authentication at startup |
Method | find_contacts | Returns a list of contacts that match the given pattern |
Method | get_available_charset | Returns the available character sets |
Method | get_card_model | Returns the SIM card model |
Method | get_card_version | Returns the SIM card version |
Method | get_charset | Returns the current character set name |
Method | get_contact_by_index | Undocumented |
Method | get_contacts | Returns a list with all the contacts stored in the SIM card |
Method | get_free_contact_ids | Returns a deque with the not used contact ids |
Method | get_imei | Returns the IMEI number of the SIM card |
Method | get_imsi | Returns the IMSI number of the SIM card |
Method | get_manufacturer_name | Returns the manufacturer name of the SIM card |
Method | get_netreg_status | Returns the network registration status |
Method | get_network_info | Returns a tuple with the network info |
Method | get_network_names | Returns a tuple with the network info |
Method | get_next_contact_id | Returns the next free contact id |
Method | get_phonebook_size | Returns the phonebook size of the SIM card |
Method | get_pin_status | Checks wether the pin is enabled or disabled |
Method | get_roaming_ids | Returns a list with the networks we can register with |
Method | get_sms | Returns a list with all the messages stored in the SIM card |
Method | get_sms_by_index | Returns the message stored at index |
Method | get_sms_format | Returns the message stored at index |
Method | get_smsc | Undocumented |
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 | register_with_network | Registers with the given netid |
Method | save_sms | Returns the index where sms was stored
|
Method | send_pin | Sends the PIN to the SIM card |
Method | send_puk | Sends PUK and PIN to the SIM card |
Method | send_sms | Sends the given pdu and returns the index |
Method | send_sms_from_storage | Sends the SMS stored at index and returns the new index
|
Method | set_charset | Sets the character set used on the SIM |
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 |
Method | set_smsc | Sets the SMSC |
Inherited from BaseDeviceConnection:
Method | disable_echo | Disables echo of AT cmds |
Method | enable_echo | Enables echo of AT cmds |
Method | get_signal_level | Returns a tuple with the RSSI and BER of the connection |
Method | send_at | Send an arbitrary AT string to the SIM card |
Method | reset_settings | Resets the settings to factory settings |
Inherited from SIMProtocol (via BaseDeviceConnection):
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 BaseDeviceConnection, SIMProtocol):
Method | _timeout_eb | Executed when a command exceeds its timeout |
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 | emit_signal | Emits a signal |
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 |
sms
to the SIM and returns the index
oldpin
to newpin
in the SIM card
Parameters | oldpin | (type: str
) |
newpin | (type: str
) | |
Returns | If everything goes well, it will return an 'OK' through the callback, otherwise it will raise an exception. | |
Raises | common.exceptions.ATError | When the password is incorrect. |
common.exceptions.CMEErrorIncorrectPassword | When the password is incorrect. | |
common.exceptions.InputValueError | When the PIN != \d{4} |
Returns | If everything goes well, it will return one of the following
| |
Raises | common.exceptions.CMEErrorSIMBusy | When the SIM is not ready |
common.exceptions.CMEErrorSIMNotStarted | When the SIM is not ready | |
common.exceptions.CMEErrorSIMFailure | This exception is raised by GlobeTrotter's 3G cards (without HSDPA) when PIN authentication is disabled |
Parameters | pin | (type: int
) |
Returns | If everything goes well, it will return an 'OK' through the callback, otherwise it will raise an exception. | |
Raises | common.exceptions.ATError | When the PIN is incorrect. |
common.exceptions.CMEErrorIncorrectPassword | When the PIN is incorrect. | |
common.exceptions.InputValueError | When the PIN != \d{4} |
Parameters | pin | (type: int
) |
Returns | If everything goes well, it will return an 'OK' through the callback, otherwise it will raise an exception. | |
Raises | common.exceptions.ATError | When the PIN is incorrect. |
common.exceptions.CMEErrorIncorrectPassword | When the PIN is incorrect. | |
common.exceptions.InputValueError | When the PIN != \d{4} |
Returns | Returns a list of re.MatchObject with the contacts.
| |
Raises | common.exceptions.ATError | When no contacts are found. |
common.exceptions.CMEErrorNotFound | When no contacts are found. | |
common.exceptions.CMEErrorSIMBusy | When the SIM is not ready. | |
common.exceptions.CMEErrorSIMNotStarted | When the SIM is not ready. |
Returns | A re.MatchObject with the size of the phonebook
| |
Raises | common.exceptions.CMEErrorSIMBusy | When the SIM is not ready. |
common.exceptions.CMSError500 | When the SIM is not ready. | |
common.exceptions.ATError | When the SIM is not ready. |
Returns | Returns a list of re.MatchObject with the messages.
| |
Raises | common.exceptions.ATError | When no messages are found. |
common.exceptions.CMEErrorNotFound | When no messages are found. | |
common.exceptions.CMEErrorSIMBusy | When the SIM is not ready. | |
common.exceptions.CMEErrorSIMNotStarted | When the SIM is not ready. | |
common.exceptions.CMSError500 | When the SIM is not ready. |
sms
was stored
Returns | True if everything went ok
| |
Raises | common.exceptions.ATError | Exception raised by Nozomi when the PUK is incorrect. |
common.exceptions.CMEErrorIncorrectPassword | Exception raised when the PUK is incorrect. |
index
and returns the new index