Sending a retrieved SMS using Python
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums
Results 1 to 2 of 2

Thread: Sending a retrieved SMS using Python

Hybrid View

  1. #1
    Join Date
    Nov 2009

    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 gsm modem.
    The script I have written is :

    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.


  2. #2
    Join Date
    Apr 2011

    Re: Sending a retrieved SMS using Python

    I know this is an extremely old post but does anyone have some information on this? I'd be really interested to experiment with this kind of stuff.

    Last edited by yoerski; April 21st, 2011 at 12:50 PM.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Windows Mobile Development Center

Click Here to Expand Forum to Full Width

This is a survey!

HTML5 Development Center