×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Oct 2009
    Posts
    1

    Python: SMS listen

    Hi Everybody,

    I am developing a simple application on GM862 GPS modem using python script. I want to toggle a GPIO (General Purpose IO)pin on the board from a SMS. Like if a SMS text says “ON”, the pin should set to “1″ and if it says “OFF”, pin should set to “0″.

    I think I can do the toggling part but where I am facing difficulty is:
    1. How to detect an incoming SMS. On the Rsterm it does show the response as “+CMTI: SM, 2″ but how to listen using a python script.
    2. How to extract the SMS text using python and use that text for invoking desired tasks.

    I would really appreciate if could guide me on this.

    Thanks

  2. #2
    Nokia Developer Champion
    Join Date
    Feb 2008
    Location
    Ahmedabad, Gujarat, India
    Posts
    3,852

    Re: Python: SMS listen

    Quote Originally Posted by trips.dude View Post
    Hi Everybody,

    I am developing a simple application on GM862 GPS modem using python script. I want to toggle a GPIO (General Purpose IO)pin on the board from a SMS. Like if a SMS text says “ON”, the pin should set to “1″ and if it says “OFF”, pin should set to “0″.

    I think I can do the toggling part but where I am facing difficulty is:
    1. How to detect an incoming SMS. On the Rsterm it does show the response as “+CMTI: SM, 2″ but how to listen using a python script.
    2. How to extract the SMS text using python and use that text for invoking desired tasks.

    I would really appreciate if could guide me on this.

    Thanks
    hello trips.dude

    welcome to forum nokia Python discussions Boards.

    I think you can wait for a incoming message and can assign a callback function to that. For both you can use the inbox module please go through the PyS60 documentation you will get the details.

    Regards,

Similar Threads

  1. Python for S60 1.9.6 released
    By tvijayan in forum Symbian
    Replies: 27
    Last Post: 2009-07-19, 15:52
  2. Python for S60 1.9.5 is now released
    By tvijayan in forum Symbian
    Replies: 8
    Last Post: 2009-05-30, 05:33
  3. How delete sms in python s60 ?
    By rmesino in forum Symbian
    Replies: 2
    Last Post: 2009-05-06, 13:52
  4. Python for S60 1.9.1 released
    By tvijayan in forum Symbian
    Replies: 30
    Last Post: 2009-02-26, 06:16
  5. Not listen incoming sms
    By aamitgupta in forum Symbian
    Replies: 12
    Last Post: 2008-10-17, 07:58

Posting Permissions

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