×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Regular Contributor
    Join Date
    Jun 2007
    Posts
    54

    problem running sms sending program

    Hi there!

    I have problem running my compiled program.

    Code:
    import appuifw
    import messaging
    
    data = appuifw.query(u"Type your name:", "text")
    
    nbr1 = "09208738005" # change the mobile number here
    txt = u"Greetings from:" +data
    
    if appuifw.query(u"Send message to your friends","query") == True:
        messaging.sms_send(nbr1, txt)
    
    
        appuifw.note(u"Messages sent", "info")
    else:
        appuifw.note(u"Well, your Messages are not sent then", "info")

    It has NO problem when run on python interactive environment. but after i compile (using ensymble) and signed (open sign), it hang on "messageing.sms_send" area.

    What could be the problem?

    My setup:
    1. N95 8Gig (with python 1.4.2/ pythonshell 1.4.2)
    2. Intel Core 2 installed python 2.5 with Symbian SDK 8.0 and 9.2 (on separate folder of c:\symbian)
    NOTE:
    im using ensyble to compile, below is the command:
    Code:
    python ensymble_python2.5-0.24.py py2sis --uid=0x0CFFFFFF --appname="XpertLoad"  --shortcaption="XpertLoad" --caption="XpertLoad" --version=1.2.3 --verbose XpertLoad_unsign
    Please help!

  2. #2
    Super Contributor
    Join Date
    Oct 2007
    Location
    Deva, Romania
    Posts
    3,471

    Re: problem running sms sending program

    You probably need to add the "NetworkServices" capability (both when making the sis with Ensymble and when open-signing it). And set the UID to 0xECFFFFFF, so that it's in the so-called "Test Range".
    Last edited by bogdan.galiceanu; 2008-04-26 at 09:44.

  3. #3
    Regular Contributor
    Join Date
    Jun 2007
    Posts
    54

    Re: problem running sms sending program

    Thank for immediate reply.

    Can you please give sample on how to put CAPABILITIES in ensymble?

    I try to use the code below, but it brings error

    Code:
    python ensymble_python2.5-0.24.py py2sis 
    
    execaps=LocalServices+Location+NetworkServices+PowerMgmt+ProtServ+ReadUserData+SurroundingsDD+SWEven
    
    t+UserEnvironment+WriteUserData+ReadDeviceData+TrustedUI+WriteDeviceData --uid=0xECFFFFFF --
    
    appname="XpertLoad"  --shortcaption="XpertLoad" --caption="XpertLoad" --version=1.2.3 --verbose 
    
    XpertLoad_unsign
    You help is very much appreciated. Thanks

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

    Re: problem running sms sending program

    hi rsf again
    regarding your query you can get the best help at the wiki.plz have a look at that.
    hope that helps.

  5. #5
    Regular Contributor
    Join Date
    Jun 2007
    Posts
    54

    Re: problem running sms sending program

    Thanks to bogdan!

    I realize my problem now.

    I want to share my resolution.

    It is not enough to CHECK all capability on OPEN SIGN. Upon compiling my PY to SIS, I still need to put the CAPABILITY (using --caps ) while using PY2SIS with ensymble.

    Great! Problem solved.

    NOTE:
    for Nokia 3rd edition only.

Similar Threads

  1. Problem in SMS Sending Example
    By abhijeetguptag in forum Symbian Networking & Messaging (Closed)
    Replies: 28
    Last Post: 2011-11-22, 05:31
  2. Problem with sending SMS through J2ME
    By gtarmidi in forum Mobile Java General
    Replies: 2
    Last Post: 2007-04-30, 07:43
  3. Problem regarding sending sms from pc to mobile
    By Archana. M in forum PC Suite API and PC Connectivity SDK
    Replies: 0
    Last Post: 2007-01-10, 05:52
  4. Problem with sending SMS in Nokia 3200 from Java app
    By destroyer2003 in forum General Messaging
    Replies: 0
    Last Post: 2004-09-22, 12:12
  5. HELP! problem w/ sending and reading sms..
    By mauve928 in forum General Messaging
    Replies: 0
    Last Post: 2003-12-14, 19:10

Posting Permissions

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