Top DevX Stories
Creating Custom Export Filters for StarOffice with XSLT
WPF Wonders: Using DataTemplates
Crystal Reports Family Offers Options for Developers
Avaya Aura Session Manager video
Avaya Aura Overview video
Search the forums:

Go Back   DevX.com Forums > DevX Developer Forums > Mobile

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
  #1  
Old 11-06-2009, 03:28 PM
trips.dude trips.dude is offline
Registered User
 
Join Date: Nov 2009
Posts: 1
Exclamation Sending a retrieved SMS using Python

I am writing a Python script to read a SMS from the SIM memory, buffer it and send the same SMS to another number. I am executing this script on Telit GM862-GPS.
The script I have written is :
Code:
import MDM

MDM.send('AT+CMGF=1\r', 10)                      # Changing to Text mode
MDM.send('AT+CMGR=1\r',0)                        # Reading SMS at index 1
a = MDM.receive(10)                                  # Receiving as string

MDM.send('AT+CMGS="Phone no.", 129', 0)    #selecting a particular no.
MDM.send(a, 0)                                        # sending retrieved SMS
MDM.sendbyte(0x1A, 0)                             # sending Ctrl Z
But I am facing this problem:
After executing "AT+CMGR=1 \r" command, the script doesn't execute commands after that. I have checked this by putting a simple AT command to change some value after "Read SMS" command & that value doesnt get changed. I dont know for what weird reason its doing this.

It would be really helpful if someone can help me out with this.

Regards
Reply With Quote
Reply

Bookmarks

Tags
python, sms

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
(J2ME) Sending SMS with port number kalyan_2001148 Java 3 05-08-2009 09:46 AM
sending sms rangaraj VB Classic 1 08-17-2007 10:05 AM
Sending SMS in VB.Net aarvee .NET 4 06-05-2007 01:07 AM
sms sending gyoy Mobile 0 12-23-2002 05:32 AM
Sending SMS from Siemens M20 Terminal Tomcat Mobile 0 04-08-2002 10:12 AM


All times are GMT -4. The time now is 08:11 AM.


Sponsored Links



Acceptable Use Policy

internet.comMediabistrojusttechjobs.comGraphics.com

WebMediaBrands Corporate Info


Advertise | Newsletters | Feedback | Submit News

Legal Notices | Licensing | Permissions | Privacy Policy


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.