Discussion Board

Results 1 to 8 of 8
  1. #1
    Registered User
    Join Date
    Feb 2006
    Posts
    23

    Run PyS60 App from a SMS

    Hello,

    I am wondering if it is possible to run a PyS60 app from an SMS.

    Basically, I want a user to be able to send a message to a friend, which will be recieved as a SMS by the friend with a link to run the PyS60 app on the other phone (if installed) with something equivilant to some command line args (so the app can do something different at startup.

    -a.

  2. #2
    Registered User
    Join Date
    Apr 2006
    Posts
    1

    Re: Run PyS60 App from a SMS

    good ideal,but i cannot help

  3. #3
    Regular Contributor
    Join Date
    Sep 2003
    Location
    Finland
    Posts
    209

    Re: Run PyS60 App from a SMS

    Quote Originally Posted by aymanshamma
    I am wondering if it is possible to run a PyS60 app from an SMS.

    Basically, I want a user to be able to send a message to a friend, which will be recieved as a SMS by the friend with a link to run the PyS60 app on the other phone (if installed) with something equivilant to some command line args (so the app can do something different at startup.
    The "run" the program is a bit trickier issue and the solution you need can be achieved at least by these two ways:

    1. Program running already when the SMS is received

    See the "inbox" extension, there you can bind callbacks for received SMSes. For this to work the Python program receiving the SMS messages should have been started e.g. 1) manually or 2) during device boot. The latter option would be the optimal one. For this you have two options:

    a. Code it yourself. In 3rdEd, see the startup list API, for earlier versions see recognizers, this link might be of use http://www.midpjni.com/symbian/recognizer/

    b. use e.g. http://www.newlc.com/EzBoot.html or http://www.symbian.com/developer/dow...slibs.html#sob

    WARNING: installing applications to device boot sequence could potentially mess-up your device. I have not tried the SIS files from a) or b) so use it at your own risk.

    2. Program should be started (i.e. "run" for real) when certain SMS is received

    For this option you need to take a look at BIO messaging. The option 1. with the added start-on-boot implementation of a "watcher" Python application equals roughly this solution.

  4. #4
    Registered User
    Join Date
    Jun 2014
    Posts
    9

    Re: Run PyS60 App from a SMS

    Quote Originally Posted by otsov View Post
    The "run" the program is a bit trickier issue and the solution you need can be achieved at least by these two ways:

    1. Program running already when the SMS is received

    See the "inbox" extension, there you can bind callbacks for received SMSes. For this to work the Python program receiving the SMS messages should have been started e.g. 1) manually or 2) during device boot. The latter option would be the optimal one. For this you have two options:

    a. Code it yourself. In 3rdEd, see the startup list API, for earlier versions see recognizers, this link might be of use http://www.midpjni.com/symbian/recognizer/

    b. use e.g. http://www.newlc.com/EzBoot.html or http://www.symbian.com/developer/dow...slibs.html#sob

    WARNING: installing applications to device boot sequence could potentially mess-up your device. I have not tried the SIS files from a) or b) so use it at your own risk.

    2. Program should be started (i.e. "run" for real) when certain SMS is received

    For this option you need to take a look at BIO messaging. The option 1. with the added start-on-boot implementation of a "watcher" Python application equals roughly this solution.
    the links don't seem to work. please help. thanks.

  5. #5
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,807

    Re: Run PyS60 App from a SMS

    Note that this discussion happened more than 8 years ago, it is not a miracle if the links do not work any more. The Internet Archive, https://archive.org/ may have some copies of the pages.
    Otherwise the things here have restricted use:
    - the recognizer thing still works for S60 2nd edition or Series 80 devices, but they are not manufactured for 8 years by now
    - EzBoot was a recognizer too, in an easy-to-manage shape
    - the Startup List Management API for later devices is actually described in the SDK documentation, search for Startup List Management for example. Really compressed descriptions are also provided in #35 and #39 of http://developer.nokia.com/community...ation-Signing!
    - BIO messaging may have something in the Wiki
    Note that most of these approaches are about automatically starting some code (like a daemon) when the phone boots. Then that daemon can watch for incoming SMS-s and react to them. That part is not discussed here, but I do remember such discussions too, search attempts may find them.
    An important thing is that if you aim Symbian devices from the past 8 years, these codes need signing, which Symbian Signed has been shut down with January the 1st, this year.

  6. #6
    Registered User
    Join Date
    Jun 2014
    Posts
    9

    Re: Run PyS60 App from a SMS

    great help wizard_hu. Were currentlly reviving the nokia 6600, buying refurbish 6600 and using it as a traking device. had a crash course in pys60 trying the EzBoot method for this.

  7. #7
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,807

    Re: Run PyS60 App from a SMS

    Oh, then you really have good chances, since it is an S60 2nd edition device, thus there is no need for signing, and recognizer-based autostart will work fine.
    Then for watching SMS-s in the background you can instantiate a CMsvSession, and check the events in your MMsvSessionObserver::HanldeSessionEventL. You may find an SMSExample in the SDK, I do not really remember (perhaps in Series60Ex). Though that is GUI code.
    If you search for site:nokia.com wiki KMsvGlobalInBoxIndexEntryId with Google, you will find some examples from the Wiki.

  8. #8
    Registered User
    Join Date
    Jun 2014
    Posts
    9

    Re: Run PyS60 App from a SMS

    I have successfully implemented watching for SMS in the background. I have the app sleeping for 20 sec before sending another feed. if I increase the sleep to 60, it fails (stop sending feed). any idea why it fails? the battery life has been affected maybe because the app wakes up every 20 sec.

Similar Threads

  1. VB.Net app for sending SMS
    By nileshagni in forum General Messaging
    Replies: 12
    Last Post: 2011-01-29, 13:47
  2. How to start sms UI app ??
    By jend_rommel in forum Symbian
    Replies: 5
    Last Post: 2010-05-26, 17:37
  3. VB.Net app for sending SMS
    By nileshagni in forum PC Suite API and PC Connectivity SDK
    Replies: 3
    Last Post: 2006-03-07, 18:26
  4. Accessing IR port from an App to send SMS
    By tanabian in forum General Messaging
    Replies: 0
    Last Post: 2003-07-21, 20:03
  5. Replies: 2
    Last Post: 2003-06-23, 05:51

Posting Permissions

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