Package gammu :: Class StateMachine
[hide private]
[frames] | no frames]

Class StateMachine

source code

object --+
         |
        StateMachine

StateMachine(Locale)

StateMachine object, that is used for communication with phone.

param Locale: What locales to use for gammu error messages, default is 'auto' which does autodetection according to user locales type Locale: string

Instance Methods [hide private]
int
AddCalendar(Value)
Adds calendar entry.
source code
int
AddCategory(Type, Name)
Adds category to phone.
source code
hash
AddFilePart(File)
Adds file part to filesystem.
source code
string
AddFolder(ParentFolderID, Name)
Adds folder to filesystem.
source code
int
AddMemory(Value)
Adds memory (phonebooks or calls) entry.
source code
tuple
AddSMS(Value)
Adds SMS to specified folder.
source code
None
AddSMSFolder(Name)
Creates SMS folder.
source code
int
AddToDo(Value)
Adds ToDo in phone.
source code
None
AnswerCall(ID, All)
Accept current incoming call.
source code
None
CancelCall(ID, All)
Deny current incoming call.
source code
None
ConferenceCall(ID)
Initiates conference call.
source code
None
DeleteAllCalendar()
Deletes all calendar entries.
source code
None
DeleteAllMemory(Type)
Deletes all memory (phonebooks or calls) entries of specified type.
source code
None
DeleteAllToDo()
Deletes all todo entries in phone.
source code
None
DeleteCalendar(Location)
Deletes calendar entry.
source code
None
DeleteFile(FileID)
Deletes file from filesystem.
source code
None
DeleteFolder(FolderID)
Deletes folder on filesystem.
source code
None
DeleteMemory(Type, Location)
Deletes memory (phonebooks or calls) entry.
source code
None
DeleteSMS(Folder, Location)
Deletes SMS.
source code
None
DeleteSMSFolder(ID)
Deletes SMS folder.
source code
None
DeleteToDo(Location)
Deletes ToDo entry in phone.
source code
None
DialService(Number, ShowNumber)
Dials number and starts voice call.
source code
None
DialVoice(Number, ShowNumber)
Dials number and starts voice call.
source code
None
EnterSecurityCode(Type, Code)
Entres security code.
source code
hash
GetAlarm(Location)
Reads alarm set in phone.
source code
hash
GetBatteryCharge()
Gets information about batery charge and phone charging state.
source code
hash
GetCalendar(Location)
Retrieves calendar entry.
source code
hash
GetCalendarStatus()
Retrieves calendar status (number of used entries).
source code
string
GetCategory(Type, Location)
Reads category from phone.
source code
hash
GetCategoryStatus(Type)
Reads category status (number of used entries) from phone.
source code
hash
GetConfig(Section)
Gets specified config section.
source code
datetime.datetime
GetDateTime()
Reads date and time from phone.
source code
list
GetDisplayStatus()
Acquired display status.
source code
hash
GetFilePart(File)
Gets file part from filesystem.
source code
hash
GetFileSystemStatus()
Acquires filesystem status.
source code
tuple
GetFirmware()
Reads firmware information from phone.
source code
hash
GetFolderListing(Folder, Start)
Gets next filename from filesystem folder.
source code
string
GetHardware()
Gets hardware information about device.
source code
string
GetIMEI()
Reads IMEI/serial number from phone.
source code
hash
GetLocale()
Gets locale information from phone.
source code
string
GetManufactureMonth()
Gets month when device was manufactured.
source code
string
GetManufacturer()
Reads manufacturer from phone.
source code
hash
GetMemory(Type, Location)
Reads entry from memory (phonebooks or calls).
source code
hash
GetMemoryStatus(Type)
Gets memory (phonebooks or calls) status (eg.
source code
tuple
GetModel()
Reads model from phone.
source code
hash
GetNetworkInfo()
Gets network information.
source code
hash
GetNextCalendar(Start, Location)
Retrieves calendar entry.
source code
hash
GetNextFileFolder(Start)
Gets next filename from filesystem.
source code
hash
GetNextMemory(Type, Start, Location)
Reads entry from memory (phonebooks or calls).
source code
 
GetNextRootFolder(Folder)
Gets next root folder from filesystem.
source code
hash
GetNextSMS(Folder, Start, Location)
Reads next (or first if start set) SMS message.
source code
hash
GetNextToDo(Start, Location)
Reads ToDo from phone.
source code
string
GetOriginalIMEI()
Gets original IMEI from phone.
source code
string
GetPPM()
Gets PPM (Post Programmable Memory) from phone.
source code
string
GetProductCode()
Gets product code of device.
source code
string
GetSIMIMSI()
Gets SIM IMSI from phone.
source code
hash
GetSMS(Folder, Location)
Reads SMS message.
source code
hash
GetSMSC(Location)
Gets SMS Service Center number and SMS settings.
source code
list
GetSMSFolders()
Returns SMS folders information.
source code
hash
GetSMSStatus()
Gets information about SMS memory (read/unread/size of memory for both SIM and phone).
source code
string
GetSecurityStatus()
Queries whether some security code needs to be entered.
source code
hash
GetSignalQuality()
Reads signal quality (strength and error rate).
source code
hash
GetSpeedDial(Location)
Gets speed dial.
source code
hash
GetToDo(Location)
Reads ToDo from phone.
source code
hash
GetToDoStatus()
Gets status of ToDos (count of used entries).
source code
None
HoldCall(ID)
Holds call.
source code
None
Init(Replies)
Initialises the connection with phone.
source code
None
PressKey(Key, Press)
Emulates key press.
source code
None
ReadConfig(Section, Configuration, Filename)
Reads specified section of gammurc
source code
int
ReadDevice(Wait)
Reads data from device.
source code
None
Reset(Hard)
Performs phone reset.
source code
None
ResetPhoneSettings(Type)
Resets phone settings.
source code
hash
SendFilePart(File)
Sends file part to phone.
source code
int
SendSMS(Value)
Sends SMS.
source code
int
SendSavedSMS(Folder, Location)
Sends SMS saved in phone.
source code
None
SetAlarm(DateTime, Location, Repeating, Text)
Sets alarm in phone.
source code
None
SetAutoNetworkLogin()
Enables network auto login.
source code
int
SetCalendar(Value)
Sets calendar entry
source code
None
SetConfig(Section, Values)
Sets specified config section.
source code
None
SetDateTime(Date)
Sets date and time in phone.
source code
None
SetDebugFile(File, Global)
Sets state machine debug file.
source code
None
SetDebugLevel(Level)
Sets state machine debug level accorting to passed string.
source code
None
SetFileAttributes(Filename, ReadOnly, Protected, System, Hidden)
Sets file attributes.
source code
None
SetIncomingCB(Enable)
Gets network information from phone.
source code
None
SetIncomingCall(Enable)
Activates/deactivates noticing about incoming calls.
source code
None
SetIncomingCallback(Callback)
Sets callback function which is called whenever any (enabled) incoming event appears.
source code
None
SetIncomingSMS(Enable)
Enable/disable notification on incoming SMS.
source code
None
SetIncomingUSSD(Enable)
Activates/deactivates noticing about incoming USSDs (UnStructured Supplementary Services).
source code
None
SetLocale(DateSeparator, DateFormat, AMPMTime)
Sets locale of phone.
source code
int
SetMemory(Value)
Sets memory (phonebooks or calls) entry.
source code
tuple
SetSMS(Value)
Sets SMS.
source code
None
SetSMSC(Value)
Sets SMS Service Center number and SMS settings.
source code
None
SetSpeedDial(Value)
Sets speed dial.
source code
int
SetToDo(Value)
Sets ToDo in phone.
source code
None
SplitCall(ID)
Splits call.
source code
None
SwitchCall(ID, Next)
Switches call.
source code
None
Terminate()
Terminates the connection with phone.
source code
None
TransferCall(ID, Next)
Transfers call.
source code
None
UnholdCall(ID)
Unholds call.
source code
 
__init__(Locale)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
a new object with type S, a subtype of T
__new__(T, S, ...) source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

AddCalendar(Value)

source code 

Adds calendar entry.

Parameters:
  • Value (hash) - Calendar entry data
Returns: int
Location of newly created entry

AddCategory(Type, Name)

source code 

Adds category to phone.

Parameters:
  • Type (string) - Type of category to read, one of 'ToDo', 'Phonebook'
  • Name (string) - Category name
Returns: int
Location of created category

AddFilePart(File)

source code 

Adds file part to filesystem.

Parameters:
  • File (hash) - File data
Returns: hash
File data for subsequent calls (Finished indicates transfer has been completed)

AddFolder(ParentFolderID, Name)

source code 

Adds folder to filesystem.

Parameters:
  • ParentFolderID (string) - Folder where to create subfolder
  • Name (string) - New folder name
Returns: string
New folder ID.

AddMemory(Value)

source code 

Adds memory (phonebooks or calls) entry.

Parameters:
  • Value (hash) - Memory entry
Returns: int
Location of created entry

AddSMS(Value)

source code 

Adds SMS to specified folder.

Parameters:
  • Value (hash) - SMS data
Returns: tuple
Tuple for location and folder.

AddSMSFolder(Name)

source code 

Creates SMS folder.

Parameters:
  • Name (string) - Name of new folder
Returns: None
None

AddToDo(Value)

source code 

Adds ToDo in phone.

Parameters:
  • Value (hash) - ToDo data
Returns: int
Location of created entry

AnswerCall(ID, All)

source code 

Accept current incoming call.

Parameters:
  • ID (integer) - ID of call
  • All (bool) - Answer all calls?
Returns: None
None

CancelCall(ID, All)

source code 

Deny current incoming call.

Parameters:
  • ID (integer) - ID of call
  • All (bool) - Cancel all calls?
Returns: None
None

ConferenceCall(ID)

source code 

Initiates conference call.

Parameters:
  • ID (integer) - ID of call
Returns: None
None

DeleteAllCalendar()

source code 

Deletes all calendar entries.

Returns: None
None

DeleteAllMemory(Type)

source code 

Deletes all memory (phonebooks or calls) entries of specified type.

Parameters:
  • Type (string) - Memory type, one of 'ME', 'SM', 'ON', 'DC', 'RC', 'MC', 'MT', 'FD', 'VM'
Returns: None
None

DeleteAllToDo()

source code 

Deletes all todo entries in phone.

Returns: None
None

DeleteCalendar(Location)

source code 

Deletes calendar entry.

Parameters:
  • Location (int) - Calendar entry to delete
Returns: None
None

DeleteFile(FileID)

source code 

Deletes file from filesystem.

Parameters:
  • FileID (string) - File to delete
Returns: None
None

DeleteFolder(FolderID)

source code 

Deletes folder on filesystem.

Parameters:
  • FolderID (string) - Folder to delete
Returns: None
None

DeleteMemory(Type, Location)

source code 

Deletes memory (phonebooks or calls) entry.

Parameters:
  • Type (string) - Memory type, one of 'ME', 'SM', 'ON', 'DC', 'RC', 'MC', 'MT', 'FD', 'VM'
  • Location (int) - Location of entry to delete
Returns: None
None

DeleteSMS(Folder, Location)

source code 

Deletes SMS.

Parameters:
  • Folder (int) - Folder where to read entry (0 is emulated flat memory)
  • Location (int) - Location of entry to delete
Returns: None
None

DeleteSMSFolder(ID)

source code 

Deletes SMS folder.

Parameters:
  • ID (int) - Index of folder to delete
Returns: None
None

DeleteToDo(Location)

source code 

Deletes ToDo entry in phone.

Parameters:
  • Location (int) - Location of entry to delete
Returns: None
None

DialService(Number, ShowNumber)

source code 

Dials number and starts voice call.

Parameters:
  • Number (string) - Number to dial
Returns: None
None

DialVoice(Number, ShowNumber)

source code 

Dials number and starts voice call.

Parameters:
  • Number (string) - Number to dial
  • ShowNumber (bool or None) - Identifies whether to enable CLIR (None = keep default phone settings). Default is None
Returns: None
None

EnterSecurityCode(Type, Code)

source code 

Entres security code.

Parameters:
  • Type (string) - What code to enter, one of 'PIN', 'PUK', 'PIN2', 'PUK2', 'Phone'.
  • Code (string) - Code value
Returns: None
None

GetAlarm(Location)

source code 

Reads alarm set in phone.

Parameters:
  • Location (int) - Which alarm to read. Many phone support only one alarm. Default is 1.
Returns: hash
Alarm hash

GetBatteryCharge()

source code 

Gets information about batery charge and phone charging state.

Returns: hash
Hash containing information about battery state (BatteryPercent and ChargeState)

GetCalendar(Location)

source code 

Retrieves calendar entry.

Parameters:
  • Location (int) - Calendar entry to read
Returns: hash
Hash with calendar values

GetCalendarStatus()

source code 

Retrieves calendar status (number of used entries).

Returns: hash
Hash with calendar status (Used)

GetCategory(Type, Location)

source code 

Reads category from phone.

Parameters:
  • Type (string) - Type of category to read, one of 'ToDo', 'Phonebook'
  • Location (int) - Location of category to read
Returns: string
Category name as string

GetCategoryStatus(Type)

source code 

Reads category status (number of used entries) from phone.

Parameters:
  • Type (string) - Type of category to read, one of 'ToDo', 'Phonebook'
Returns: hash
Hash containing information about category status (Used)

GetConfig(Section)

source code 

Gets specified config section. Configuration consists of all params which can be defined in gammurc config file:

  • Model
  • DebugLevel
  • Device
  • Connection
  • SyncTime
  • LockDevice
  • DebugFile
  • StartInfo
  • UseGlobalDebugFile
Parameters:
  • Section (int) - Index of config section to read. Defaults to 0.
Returns: hash
Hash containing configuration

GetDateTime()

source code 

Reads date and time from phone.

Returns: datetime.datetime
Date and time from phone as datetime.datetime object.

GetDisplayStatus()

source code 

Acquired display status.

Returns: list
List of indicators displayed on display

GetFilePart(File)

source code 

Gets file part from filesystem.

Parameters:
  • File (hash) - File data
Returns: hash
File data for subsequent calls (Finished indicates transfer has been completed)

GetFileSystemStatus()

source code 

Acquires filesystem status.

Returns: hash
Hash containing filesystem status (Used and Free)

GetFirmware()

source code 

Reads firmware information from phone.

Returns: tuple
Tuple from version, date and numeric version.

GetFolderListing(Folder, Start)

source code 

Gets next filename from filesystem folder.

Parameters:
  • Folder (string) - Folder to list
  • Start (bool) - Whether we're starting listing. Defaults to False.
Returns: hash
File data as hash

GetHardware()

source code 

Gets hardware information about device.

Returns: string
Hardware information as string.

GetIMEI()

source code 

Reads IMEI/serial number from phone.

Returns: string
IMEI of phone as string.

GetLocale()

source code 

Gets locale information from phone.

Returns: hash
Hash of locale settings. SetLocale lists them all.

GetManufactureMonth()

source code 

Gets month when device was manufactured.

Returns: string
Month of manufacture as string.

GetManufacturer()

source code 

Reads manufacturer from phone.

Returns: string
String with manufacturer name

GetMemory(Type, Location)

source code 

Reads entry from memory (phonebooks or calls). Which entry shouldbe read is defined in entry.

Parameters:
  • Type (string) - Memory type, one of 'ME', 'SM', 'ON', 'DC', 'RC', 'MC', 'MT', 'FD', 'VM'
Returns: hash
Memory entry as hash

GetMemoryStatus(Type)

source code 

Gets memory (phonebooks or calls) status (eg. number of used andfree entries).

Parameters:
  • Type (string) - Memory type, one of 'ME', 'SM', 'ON', 'DC', 'RC', 'MC', 'MT', 'FD', 'VM'
Returns: hash
Hash with information about memory (Used and Free)

GetModel()

source code 

Reads model from phone.

Returns: tuple
Tuple containing gammu identification and real model returned by phone.

GetNetworkInfo()

source code 

Gets network information.

Returns: hash
Hash with information about network (NetworkName, State, NetworkCode, CID and LAC)

GetNextCalendar(Start, Location)

source code 

Retrieves calendar entry. This is useful for continuous reading of all calendar entries.

Parameters:
  • Start (bool) - Whether to start. This can not be used together with Location
  • Location (int) - Last read location. This can not be used together with Start
Returns: hash
Hash with calendar values

GetNextFileFolder(Start)

source code 

Gets next filename from filesystem.

Parameters:
  • Start (bool) - Whether we're starting listing. Defaults to False.
Returns: hash
File data as hash

GetNextMemory(Type, Start, Location)

source code 

Reads entry from memory (phonebooks or calls). Which entry shouldbe read is defined in entry. This can be easily used for reading all entries.

Parameters:
  • Type (string) - Memory type, one of 'ME', 'SM', 'ON', 'DC', 'RC', 'MC', 'MT', 'FD', 'VM'
  • Start (bool) - Whether to start. This can not be used together with Location
  • Location (int) - Last read location. This can not be used together with Start
Returns: hash
Memory entry as hash

GetNextRootFolder(Folder)

source code 

Gets next root folder from filesystem. Start with empty folder name.

Parameters:
  • Folder (string) - Previous read fodlder. Start with empty folder name.
Returns:
Structure with folder information

GetNextSMS(Folder, Start, Location)

source code 

Reads next (or first if start set) SMS message. This might befaster for some phones than using GetSMS for each message.

Parameters:
  • Folder (int) - Folder where to read entry (0 is emulated flat memory)
  • Start (bool) - Whether to start. This can not be used together with Location
  • Location (int) - Location last read entry. This can not be used together with Start
Returns: hash
Hash with SMS data

GetNextToDo(Start, Location)

source code 

Reads ToDo from phone.

Parameters:
  • Start (bool) - Whether to start. This can not be used together with Location
  • Location (int) - Last read location. This can not be used together with Start
Returns: hash
Hash with ToDo values

GetOriginalIMEI()

source code 

Gets original IMEI from phone.

Returns: string
Original IMEI of phone as string.

GetPPM()

source code 

Gets PPM (Post Programmable Memory) from phone.

Returns: string
PPM as string

GetProductCode()

source code 

Gets product code of device.

Returns: string
Product code as string.

GetSIMIMSI()

source code 

Gets SIM IMSI from phone.

Returns: string
SIM IMSI as string

GetSMS(Folder, Location)

source code 

Reads SMS message.

Parameters:
  • Folder (int) - Folder where to read entry (0 is emulated flat memory)
  • Location (int) - Location of entry to read
Returns: hash
Hash with SMS data

GetSMSC(Location)

source code 

Gets SMS Service Center number and SMS settings.

Parameters:
  • Location (int) - Location of entry to read. Defaults to 1
Returns: hash
Hash with SMSC information

GetSMSFolders()

source code 

Returns SMS folders information.

Returns: list
List of SMS folders.

GetSMSStatus()

source code 

Gets information about SMS memory (read/unread/size of memory for both SIM and phone).

Returns: hash
Hash with information about phone memory (SIMUnRead, SIMUsed, SIMSize, PhoneUnRead, PhoneUsed, PhoneSize and TemplatesUsed)

GetSecurityStatus()

source code 

Queries whether some security code needs to be entered.

Returns: string
String indicating which code needs to be entered or None if none is needed

GetSignalQuality()

source code 

Reads signal quality (strength and error rate).

Returns: hash
Hash containing information about signal state (SignalStrength, SignalPercent and BitErrorRate)

GetSpeedDial(Location)

source code 

Gets speed dial.

Parameters:
  • Location (int) - Location of entry to read
Returns: hash
Hash with speed dial (Location, MemoryLocation, MemoryNumberID, MemoryType)

GetToDo(Location)

source code 

Reads ToDo from phone.

Parameters:
  • Location (int) - Location of entry to read
Returns: hash
Hash with ToDo values

GetToDoStatus()

source code 

Gets status of ToDos (count of used entries).

Returns: hash
Hash of status (Used)

HoldCall(ID)

source code 

Holds call.

Parameters:
  • ID (integer) - ID of call
Returns: None
None

Init(Replies)

source code 

Initialises the connection with phone.

Parameters:
  • Replies (int) - Number of replies to wait for on each request. Defaults to 3.
Returns: None
None

PressKey(Key, Press)

source code 

Emulates key press.

Parameters:
  • Key (string) - What key to press
  • Press (bool) - Whether to emulate press or release.
Returns: None
None

ReadConfig(Section, Configuration, Filename)

source code 

Reads specified section of gammurc

Parameters:
  • Section (int) - Index of config section to read. Defaults to 0.
  • Configuration (int) - Index where config section will be stored. Defaults to Section.
  • Filename (string) - Path to configuration file (otherwise it is autodetected).
Returns: None
None

ReadDevice(Wait)

source code 

Reads data from device.

Parameters:
  • Wait (bool) - Whether to wait, default is not to wait.
Returns: int
Number of bytes read

Reset(Hard)

source code 

Performs phone reset.

Parameters:
  • Hard (bool) - Whether to make hard reset
Returns: None
None

ResetPhoneSettings(Type)

source code 

Resets phone settings.

Parameters:
  • Type (string) - What to reset, one of 'PHONE', 'UIF', 'ALL', 'DEV', 'FACTORY'
Returns: None
None

SendFilePart(File)

source code 

Sends file part to phone.

Parameters:
  • File (hash) - File data
Returns: hash
File data for subsequent calls (Finished indicates transfer has been completed)

SendSMS(Value)

source code 

Sends SMS.

Parameters:
  • Value (hash) - SMS data
Returns: int
Message reference as integer

SendSavedSMS(Folder, Location)

source code 

Sends SMS saved in phone.

Parameters:
  • Folder (int) - Folder where to read entry (0 is emulated flat memory)
  • Location (int) - Location of entry to send
Returns: int
Message reference as integer

SetAlarm(DateTime, Location, Repeating, Text)

source code 

Sets alarm in phone.

Parameters:
  • DateTime (datetime.datetime) - When should alarm happen.
  • Location (int) - Location of alarm to set. Defaults to 1.
  • Repeating (bool) - Whether alarm should be repeating. Defaults to True.
  • Text (string) - Text to be displayed on alarm. Defaults to empty.
Returns: None
None

SetAutoNetworkLogin()

source code 

Enables network auto login.

Returns: None
None

SetCalendar(Value)

source code 

Sets calendar entry

Parameters:
  • Value (hash) - Calendar entry data
Returns: int
Location of set entry

SetConfig(Section, Values)

source code 

Sets specified config section.

Parameters:
  • Section (int) - Index of config section to modify
  • Values (hash) - Config values, see GetConfig for description of accepted
Returns: None
None

SetDateTime(Date)

source code 

Sets date and time in phone.

Parameters:
  • Date (datetime.datetime) - Date to set
Returns: None
None

SetDebugFile(File, Global)

source code 

Sets state machine debug file.

Parameters:
  • File (mixed) - File where to write debug stuff (as configured by SetDebugLevel). Can be either None for no file, Python file object or filename.
  • Global (bool) - Whether to use global debug structure (overrides File)
Returns: None
None

SetDebugLevel(Level)

source code 

Sets state machine debug level accorting to passed string. You need to configure output file using SetDebugFile to activate it.

Parameters:
  • Level (string) - name of debug level to use, currently one of:
    • nothing
    • text
    • textall
    • binary
    • errors
    • textdate
    • textalldate
    • errorsdate
Returns: None
None

SetFileAttributes(Filename, ReadOnly, Protected, System, Hidden)

source code 

Sets file attributes.

Parameters:
  • Filename (string) - File to modify
  • ReadOnly (bool) - Whether file is read only. Default to False.
  • Protected (bool) - Whether file is protected. Default to False.
  • System (bool) - Whether file is system. Default to False.
  • Hidden (bool) - Whether file is hidden. Default to False.
Returns: None
None

SetIncomingCB(Enable)

source code 

Gets network information from phone.

Parameters:
  • Enable (boolean) - Whether to enable notifications, default is True
Returns: None
None

SetIncomingCall(Enable)

source code 

Activates/deactivates noticing about incoming calls.

Parameters:
  • Enable (boolean) - Whether to enable notifications, default is True
Returns: None
None

SetIncomingCallback(Callback)

source code 

Sets callback function which is called whenever any (enabled) incoming event appears. Please note that you have to enable each event type by calling SetIncoming* functions.

Parameters:
  • Callback (function, it will get three params: StateMachine object, event type and it's data in dictionary) - callback function or None for disabling
Returns: None
None

SetIncomingSMS(Enable)

source code 

Enable/disable notification on incoming SMS.

Parameters:
  • Enable (boolean) - Whether to enable notifications, default is True
Returns: None
None

SetIncomingUSSD(Enable)

source code 

Activates/deactivates noticing about incoming USSDs (UnStructured Supplementary Services).

Parameters:
  • Enable (boolean) - Whether to enable notifications, default is True
Returns: None
None

SetLocale(DateSeparator, DateFormat, AMPMTime)

source code 

Sets locale of phone.

Parameters:
  • DateSeparator (string) - Date separator.
  • DateFormat (string) - Date format, one of 'DDMMYYYY', 'MMDDYYYY', 'YYYYMMDD'
  • AMPMTime (bool) - Whether to use AM/PM time.
Returns: None
None

SetMemory(Value)

source code 

Sets memory (phonebooks or calls) entry.

Parameters:
  • Value (hash) - Memory entry
Returns: int
Location of created entry

SetSMS(Value)

source code 

Sets SMS.

Parameters:
  • Value (hash) - SMS data
Returns: tuple
Tuple for location and folder.

SetSMSC(Value)

source code 

Sets SMS Service Center number and SMS settings.

Parameters:
  • Value (hash) - SMSC information
Returns: None
None

SetSpeedDial(Value)

source code 

Sets speed dial.

Parameters:
  • Value (hash) - Speed dial data, see GetSpeedDial for listing.
Returns: None
None

SetToDo(Value)

source code 

Sets ToDo in phone.

Parameters:
  • Value (hash) - ToDo data
Returns: int
Location of created entry

SplitCall(ID)

source code 

Splits call.

Parameters:
  • ID (integer) - ID of call
Returns: None
None

SwitchCall(ID, Next)

source code 

Switches call.

Parameters:
  • ID (integer) - ID of call
Returns: None
None

Terminate()

source code 

Terminates the connection with phone.

Returns: None
None

TransferCall(ID, Next)

source code 

Transfers call.

Parameters:
  • ID (integer) - ID of call
Returns: None
None

UnholdCall(ID)

source code 

Unholds call.

Parameters:
  • ID (integer) - ID of call
Returns: None
None

__init__(Locale)
(Constructor)

source code 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: object.__init__

__new__(T, S, ...)

source code 
Returns: a new object with type S, a subtype of T
Overrides: object.__new__