Decoding GSM-SMS messages

Once connected to a computer, most mobile phones exhibit a modem-like interface. You might be interested in a (hastily put togehter) fragment of Python code which decodes GSM-SMS messages retrieved in this way into a readable format. It is available here. It is based largely on documentation obtained from these pages. Reference on the commands that need to be issued to retrieve the messages are available here for Sony-Erickson phones.