Whisperstream Research Group - SerialComm GSM SDK Documentation

SMSUtil Members

SMSUtil overview

Public Static Methods

CalculateTPDLengthOverloaded. calculates the tpd length of the pdu encoded byte array, this number is needed for commands such as AT+CMGW
ConvertAsciiTo7bit Use a lookup table to convert from an ISO-8859-1 string to the 7-bit default alphabet used by SMS.
ConvertByteFormatToPhoneNumber converts a pdu encoded number in byte format to a string
ConvertByteToNumberType converts a numbertype code byte in pdu format into it's NumberType enum
ConvertDateTimeToPDUTimestamp Converts a datetime object into a series of pdu encoded bytes
ConvertPDUTimestampToDateTimeOverloaded. creates a datetime object from an array of bytes, each byte is first reversed
ConvertPhoneNumberToByteFormat converts a phone number to a pdu encoded series of bytes
GetNumberType determines the number type based on the number string returns International if number starts with a +, local otherwise
Int2HexString converts an integer value into a hexstring equivalent numbver must be between 0 and 255
IsHexString determines whether or not a string is in hex format or not e.g. "AEFDA4350893534FEDA"
PDU2TextConvertOverloaded. converts a pdu encoded string to a readable string
Text2PDUConvert Convert an ISO-8859-1 ASCII string to an array of PDU-coded bytes

Public Instance Constructors

SMSUtil ConstructorInitializes a new instance of the SMSUtil class.

Public Instance Methods

Equals (inherited from Object)Determines whether the specified Object is equal to the current Object.
GetHashCode (inherited from Object)Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
GetType (inherited from Object)Gets the Type of the current instance.
ToString (inherited from Object)Returns a String that represents the current Object.

Protected Instance Methods

Finalize (inherited from Object)Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
MemberwiseClone (inherited from Object)Creates a shallow copy of the current Object.

See Also

SMSUtil Class | Whisperstream.SerialComm.Framework.SMS Namespace