Decodes PDU data.
Parameters: |
|
---|
Decodes SMS frame.
Finds out coding type based on TPDCS header byte as defined by GSM 03.38.
Encodes SMS frame.
Decodes SMS frame for status report.
Decodes SMS frame in textual representation.
Decodes UDH header.
Encodes UDH header.
Sets default content for SMS except for changing locations. Use this for clearing structure while keeping location of message.
Parameters: |
|
---|
Sets default content for SMS. Use this for clearing structure.
Parameters: |
|
---|
Decodes Siemens OTA data.
Encodes SMS frame according to layout.
Return: | Error code. |
---|
Encodes multi part SMS from “readable” format.
Return: | Error code. |
---|
Decodes multi part SMS to “readable” format.
Clears GSM_MultiPartSMSInfo to default values.
Frees any allocated structures inside GSM_MultiPartSMSInfo.
Links SMS messages according to IDs.
Return: | Error code. |
---|
Decodes MMS data.
Clears MMS data, used to initialize structure.
Gets SMS Service Center number and SMS settings.
Parameters: |
|
---|---|
Return: | Error code. |
Sets SMS Service Center number and SMS settings.
Parameters: |
|
---|---|
Return: | Error code. |
Gets information about SMS memory (read/unread/size of memory for both SIM and phone).
Parameters: |
|
---|---|
Return: | Error code. |
Reads SMS message.
Parameters: |
|
---|---|
Return: | Error code. |
Reads next (or first if start set) SMS message. This might be faster for some phones than using GSM_GetSMS for each message.
Please note that this commend does not have to mark message as read in phone. To do so, you have to call GSM_GetSMS.
Parameters: |
|
---|---|
Return: | Error code. |
Sets SMS.
Parameters: |
|
---|---|
Return: | Error code. |
Adds SMS to specified folder.
Parameters: |
|
---|---|
Return: | Error code. |
Deletes SMS.
Parameters: |
|
---|---|
Return: | Error code. |
Sends SMS.
Parameters: |
|
---|---|
Return: | Error code. |
Sends SMS already saved in phone.
Parameters: |
|
---|---|
Return: | Error code. |
Configures fast SMS sending.
Parameters: |
|
---|---|
Return: | Error code. |
Enable/disable notification on incoming SMS.
Parameters: |
|
---|---|
Return: | Error code. |
Gets network information from phone.
Parameters: |
|
---|---|
Return: | Error code. |
Returns SMS folders information.
Parameters: |
|
---|---|
Return: | Error code. |
Creates SMS folder.
Parameters: |
|
---|---|
Return: | Error code. |
Deletes SMS folder.
Parameters: |
|
---|---|
Return: | Error code. |
Lists MMS folders.
Parameters: |
|
---|---|
Return: | Error code. |
Retrieves next part of MMS file information.
Parameters: |
|
---|---|
Return: | Error code. |
Activates/deactivates noticing about incoming USSDs (UnStructured Supplementary Services).
Parameters: |
|
---|---|
Return: | Error code. |
Calculates number of messages and free chars needed for text.
Parameters: |
|
---|
MMS message class.
Values:
None class specified.
Personal message.
Advertisement message.
Informational message.
Automatic message class.
struct GSM_MMSIndicator
MMS indicator data.
Public Members
- char Address[500]
Message address (URL for download).
- char Title[200]
Message title (subject).
- char Sender[200]
Message sender.
- size_t MessageSize
Message size, if 0 it won’t be decoded or was not decoded.
- GSM_MMS_Class Class
Class of a message.
struct GSM_CBMessage
Structure for Cell Broadcast messages.
Public Members
- int Channel
Channel number.
- char Text[300]
Message text.
Status of USSD message.
Values:
Unknown status
No action is needed, maybe network initiated USSD
Reply is expected
USSD dialog terminated
Another client replied
Operation not supported
Network timeout
struct GSM_USSDMessage
Structure for USSD messages.
Public Members
- unsigned char Text[2 *(GSM_MAX_USSD_LENGTH+1)]
Message text.
- GSM_USSDStatus Status
Message status.
struct GSM_SMSMemoryStatus
Status of SMS memory.
Public Members
- int SIMUnRead
Number of unread messages on SIM.
- int SIMUsed
Number of all saved messages (including unread) on SIM.
- int SIMSize
Number of all possible messages on SIM.
- int TemplatesUsed
Number of used templates (62xx/63xx/7110/etc.).
- int PhoneUnRead
Number of unread messages in phone.
- int PhoneUsed
Number of all saved messages in phone.
- int PhoneSize
Number of all possible messages on phone.
Enum defines format of SMS messages. See GSM 03.40 section 9.2.3.9
Values:
Enum defines some the most often used validity lengths for SMS messages for relative validity format. See GSM 03.40 section 9.2.3.12.1 - it gives more values.
Values:
Enum defines format of validity period for SMS messages. See GSM 03.40 section 9.2.3.12
Values:
struct GSM_SMSValidity
Structure for validity of SMS messages
Public Members
- GSM_ValidityPeriodFormat Format
- GSM_ValidityPeriod Relative
Value defines period for relative format
struct GSM_SMSC
Structure for SMSC (SMS Center) information.
Public Members
- int Location
Number of the SMSC on SIM
- unsigned char Name[(GSM_MAX_SMSC_NAME_LENGTH+1)*2]
Name of the SMSC
- unsigned char Number[(GSM_MAX_NUMBER_LENGTH+1)*2]
SMSC phone number.
- GSM_SMSValidity Validity
Validity of SMS messages.
- GSM_SMSFormat Format
Format of sent SMS messages.
- unsigned char DefaultNumber[(GSM_MAX_NUMBER_LENGTH+1)*2]
Default recipient number. In old DCT3 ignored
Status of SMS message.
Values:
Coding type of SMS.
Values:
Unicode
Default GSM alphabet.
8-bit.
Types of UDH (User Data Header).
Values:
Linked SMS.
Linked SMS with 16 bit reference.
struct GSM_UDHHeader
Structure for User Data Header.
Public Members
- GSM_UDH Type
UDH type.
- int Length
UDH length.
- unsigned char Text[GSM_MAX_UDH_LENGTH]
UDH text.
- int ID8bit
8-bit ID, when required (-1 otherwise).
- int ID16bit
16-bit ID, when required (-1 otherwise).
- int PartNumber
Number of current part.
- int AllParts
Total number of parts.
TP-Message-Type-Indicator. See GSM 03.40 section 9.2.3.1.
Values:
SMS in Inbox.
Delivery Report
SMS for sending or in Outbox
struct GSM_SMSMessage
SMS message data.
Public Members
- unsigned char ReplaceMessage
Message to be replaced.
- gboolean RejectDuplicates
Whether to reject duplicates.
- GSM_UDHHeader UDH
UDH (User Data Header)
- unsigned char Number[(GSM_MAX_NUMBER_LENGTH+1)*2]
Sender or recipient number.
- unsigned char OtherNumbers[GSM_SMS_OTHER_NUMBERS][(GSM_MAX_NUMBER_LENGTH+1)*2]
- int OtherNumbersNum
- GSM_SMSC SMSC
SMSC (SMS Center)
- GSM_MemoryType Memory
For saved SMS: where exactly it’s saved (SIM/phone)
- int Location
For saved SMS: location of SMS in memory.
- int Folder
For saved SMS: number of folder, where SMS is saved
- gboolean InboxFolder
For saved SMS: whether SMS is really in Inbox.
- int Length
Length of the SMS message.
- GSM_SMS_State State
Status (read/unread/...) of SMS message.
- unsigned char Name[(GSM_MAX_SMS_NAME_LENGTH+1)*2]
Name in Nokia with SMS memory (6210/7110, etc.) Ignored in other.
- unsigned char Text[(GSM_MAX_SMS_LENGTH+1)*2]
Text for SMS.
- GSM_SMSMessageType PDU
Type of message.
- GSM_Coding_Type Coding
Type of coding.
- GSM_DateTime DateTime
Date and time, when SMS was saved or sent
- GSM_DateTime SMSCTime
Date of SMSC response in DeliveryReport messages.
- unsigned char DeliveryStatus
In delivery reports: status.
- gboolean ReplyViaSameSMSC
Indicates whether “Reply via same center” is set.
- signed char Class
SMS class (0 is flash SMS, 1 is normal one).
- unsigned char MessageReference
Message reference.
struct GSM_SMSMessageLayout
Public Members
- unsigned char Text
TP-User-Data. GSM 03.40 section 9.2.3.24.
- unsigned char Number
- unsigned char SMSCNumber
SMSC number
- unsigned char TPDCS
TP-Data-Coding-Scheme. GSM 03.40 section 9.2.3.10. Contains alphabet type, SMS class (and some others)
- unsigned char DateTime
- unsigned char SMSCTime
TP-Service-Centre-Time-Stamp in SMS-Status-Report. GSM 03.40 section 9.2.3.11.
- unsigned char TPStatus
TP-Status in SMS-Status-Report. GSM 03.40 section 9.2.3.15.
- unsigned char TPUDL
TP-User-Data-Length. GSM 03.40 section 9.2.3.16.
- unsigned char TPVP
TP-Validity Period in SMS-Submit. GSM 03.40 section 9.2.3.12.
- unsigned char firstbyte
Byte contains in SMS-Deliver:
Byte contains in SMS-Submit:
- unsigned char TPMR
TP-Message Reference in SMS-Submit. GSM 03.40 section 9.2.3.6
- unsigned char TPPID
TP-Protocol-Identifier. GSM 03.40 section 9.2.3.9
struct GSM_OneSMSFolder
Information about SMS folder.
Public Members
- gboolean InboxFolder
Whether it is inbox.
- gboolean OutboxFolder
Whether it is outbox.
- GSM_MemoryType Memory
Where exactly it’s saved.
- unsigned char Name[(GSM_MAX_SMS_FOLDER_NAME_LEN+1)*2]
Name of the folder
struct GSM_SMSFolders
List of SMS folders.
Public Members
- GSM_OneSMSFolder Folder[GSM_MAX_SMS_FOLDERS]
Array of structures holding information about each folder.
- int Number
Number of SMS folders.
struct GSM_SiemensOTASMSInfo
Siemens OTA data.
Public Members
- unsigned long SequenceID
- unsigned int PacketsNum
- unsigned int PacketNum
- unsigned long AllDataLen
- unsigned char DataType[10]
- unsigned char DataName[40]
- unsigned int DataLen
- unsigned char Data[140]
struct GSM_MultiSMSMessage
Multiple SMS messages, used for Smart Messaging 3.0/EMS.
Public Members
- int Number
Number of messages.
- GSM_SMSMessage SMS[GSM_MAX_MULTI_SMS]
Array of SMSes.
struct GSM_OneMMSFolder
Information about MMS folder.
Public Members
- gboolean InboxFolder
Whether it is really inbox.
- char Name[(GSM_MAX_MMS_FOLDER_NAME_LEN+1)*2]
Name for MMS folder.
struct GSM_MMSFolders
List of MMS folders.
Public Members
- unsigned char Number
Number of MMS folders.
- GSM_OneMMSFolder Folder[GSM_MAX_MMS_FOLDERS]
Array of structures holding information about each folder.
ID during packing SMS for Smart Messaging 3.0, EMS and other
Values:
1 text SMS.
Contacenated SMS, when longer than 1 SMS.
Contacenated SMS, auto Default/Unicode coding.
Nokia profile = Name, Ringtone, ScreenSaver
Nokia Picture Image + (text)
Nokia screen saver + (text)
Nokia ringtone - old SM2.0 format, 1 SMS
Nokia ringtone contacenated, when very long
Nokia 72x14 operator logo, 1 SMS
Nokia 72x14 op logo or 78x21 in 2 SMS
Nokia 72x14 caller logo, 1 SMS
Nokia WAP bookmark in 1 or 2 SMS
Nokia WAP settings in 2 SMS
Nokia MMS settings in 2 SMS
Nokia VCARD 1.0 - only name and default number
Nokia VCARD 2.1 - all numbers + text
Nokia VCALENDAR 1.0 - can be in few sms
IMelody 1.0
IMelody 1.2
IMelody without header - SonyEricsson extension
IMelody 1.0 with UPI.
IMelody 1.2 with UPI.
IMelody without header with UPI.
Fixed bitmap of size 16x16 or 32x32.
MMS message indicator.
Variable bitmap with black and white colors
Variable animation with black and white colors
Siemens OTA
struct GSM_MultiPartSMSEntry
Entry of multipart SMS.
Public Members
- EncodeMultiPartSMSID ID
- int Number
- GSM_Ringtone * Ringtone
- GSM_MultiBitmap * Bitmap
- GSM_WAPBookmark * Bookmark
- GSM_WAPSettings * Settings
- GSM_MMSIndicator * MMSIndicator
- GSM_MemoryEntry * Phonebook
- GSM_CalendarEntry * Calendar
- GSM_ToDoEntry * ToDo
- GSM_File * File
- gboolean Protected
- unsigned char * Buffer
- gboolean Left
- gboolean Right
- gboolean Center
- gboolean Large
- gboolean Small
- gboolean Bold
- gboolean Italic
- gboolean Underlined
- gboolean Strikethrough
- int RingtoneNotes
struct GSM_MultiPartSMSInfo
Multipart SMS information.
Public Members
- int EntriesNum
- gboolean UnicodeCoding
- int Class
- unsigned char ReplaceMessage
- gboolean Unknown
- GSM_MultiPartSMSEntry Entries[GSM_MAX_MULTI_SMS]
MMS address type.
Values:
struct GSM_EncodedMultiPartMMSEntry
MMS entry.
Public Members
- GSM_File File
- unsigned char ContentType[400]
CT in Unicode
- unsigned char SMIL[400]
Smil ID in Unicode
struct GSM_EncodedMultiPartMMSInfo
MMS part.
Public Members
- int EntriesNum
- unsigned char Source[200]
in Unicode
- MMSAddressType SourceType
- unsigned char Destination[200]
in Unicode
- MMSAddressType DestinationType
- unsigned char CC[200]
in Unicode
- MMSAddressType CCType
- unsigned char Subject[200]
in Unicode
- unsigned char ContentType[400]
CT in Unicode
- unsigned char MSGType[50]
no Unicode
- gboolean DateTimeAvailable
- GSM_DateTime DateTime
- gboolean MMSReportAvailable
- gboolean MMSReport
- GSM_EncodedMultiPartMMSEntry Entries[GSM_MAX_MULTI_MMS]
Subparts.