You Are Here:

Community: Developer Discussion Boards

#1 Old Send message on communicator - 2008-03-26, 01:33

Join Date: Mar 2008
Posts: 28
freaky_911
Offline
Registered User
Hi!

I tried to execute the follwing code snippet on a 6120 Classic
and on a E90 communicator - the code on 6120 worked fine but
seems that the communicater does not get ab answer within STAT so
"END" will never be reached...

Does somebody know why - is there an alternative for this snippet?

Code:
import messaging, e32

def STAT(std):                                                                                                          # parameter is the answer from the os
        global lock; global i

        if std == messaging.ESent:                                                                                        # successfully sending              
                print("Message has been sent"); lock.signal(); return 1                                                                                           # unlock app
        elif std == messaging.ESendFailed:         
                print("Unable to send message"); lock.signal(); return 0


lock = e32.Ao_lock()
print "START"
messaging.sms_send("123456789","TEXTMESSAGE",'7bit',STAT)
lock.wait()
print "END"
Reply With Quote

#2 Old Unhappy Re: Send message on communicator - 2008-03-26, 18:02

Join Date: Mar 2008
Posts: 28
freaky_911
Offline
Registered User
There was a simular problem some time ago...

It seems to be a very serious problem/bug
with the Nokia e90 communicator.... but its
unsolved!

I do not know what to do
Can somebody give me suggetions???


Quote:
Originally Posted by freaky_911 View Post
Hi!

I tried to execute the follwing code snippet on a 6120 Classic
and on a E90 communicator - the code on 6120 worked fine but
seems that the communicater does not get ab answer within STAT so
"END" will never be reached...

Does somebody know why - is there an alternative for this snippet?

Code:
import messaging, e32

def STAT(std):                                                                                                          # parameter is the answer from the os
        global lock; global i

        if std == messaging.ESent:                                                                                        # successfully sending              
                print("Message has been sent"); lock.signal(); return 1                                                                                           # unlock app
        elif std == messaging.ESendFailed:         
                print("Unable to send message"); lock.signal(); return 0


lock = e32.Ao_lock()
print "START"
messaging.sms_send("123456789","TEXTMESSAGE",'7bit',STAT)
lock.wait()
print "END"
Reply With Quote

#3 Old Re: Send message on communicator - 2008-03-26, 18:32

Join Date: Feb 2008
Posts: 2,542
Location: Bhavnagar, Gujarat, India
Send a message via Yahoo to gaba88 Send a message via Skype™ to gaba88
gaba88's Avatar
gaba88
Offline
Forum Nokia Champion
hi freaky_911
ur code is alright but i cant find out what is the wrong wid the communicator. plz can u give the detail or any link abt what type of bug it was in the e90 communicator.
plz give the feedback
thanx


Gargi Das- http://gargidas.blogsot.com

Forum Nokia Python Wiki


Learn Python at http://mobapps.org/PyS60
Reply With Quote

#4 Old Re: Send message on communicator - 2008-03-26, 19:09

Join Date: Mar 2008
Posts: 28
freaky_911
Offline
Registered User
This is a quite funny problem... my last test was successfully...
I would be happy if the function would always work like that...
I do not know how to provoke this error to solve the problem...

It is not a classical bug with a error message. There
is only a problem with the messaging statment ... the
mobile waits for an answer but there is none so the
phone gets stuck in the STAT function...




Quote:
Originally Posted by gaba88 View Post
hi freaky_911
ur code is alright but i cant find out what is the wrong wid the communicator. plz can u give the detail or any link abt what type of bug it was in the e90 communicator.
plz give the feedback
thanx
Reply With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

vB 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
How to send wap push message to SmartPhones Taroo2 General Messaging 4 2007-11-09 15:37
Extra number when I send message... Suited_Up General Messaging 0 2007-02-01 16:53
How to send a message to *.exe and process the msg? boyknight General Symbian C++ 1 2007-01-11 06:33
send message to group goldenlife Symbian User Interface 3 2006-05-25 10:27
about wma, app exit when send message badgunnokia Mobile Java General 1 2006-02-14 03:37

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia