×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Mar 2008
    Posts
    28

    Send message on communicator

    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"

  2. #2
    Registered User
    Join Date
    Mar 2008
    Posts
    28

    Unhappy Re: Send message on communicator

    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"

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

    Re: Send message on communicator

    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

  4. #4
    Registered User
    Join Date
    Mar 2008
    Posts
    28

    Re: Send message on communicator

    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

Similar Threads

  1. How to send wap push message to SmartPhones
    By Taroo2 in forum General Messaging
    Replies: 4
    Last Post: 2007-11-09, 14:37
  2. Extra number when I send message...
    By Suited_Up in forum General Messaging
    Replies: 0
    Last Post: 2007-02-01, 15:53
  3. Replies: 1
    Last Post: 2007-01-11, 05:33
  4. send message to group
    By goldenlife in forum Symbian User Interface
    Replies: 3
    Last Post: 2006-05-25, 09:27
  5. about wma, app exit when send message
    By badgunnokia in forum Mobile Java General
    Replies: 1
    Last Post: 2006-02-14, 02:37

Posting Permissions

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