Discussion Board

Results 1 to 6 of 6
  1. #1
    Registered User zhuxiangguo's Avatar
    Join Date
    Nov 2004
    Posts
    5
    We usually send sms with messaging.sms_send(recipient, message) to send sms, but this type of sms is class 1 (or none?). How to send sms with class 0?

  2. #2
    Regular Contributor eriksmartt's Avatar
    Join Date
    Jul 2004
    Posts
    76
    Uh... no idea. You'll probably have to poke around in the messaging module's source code. Perhaps it's an option that could be defined there.

  3. #3
    Registered User cyke64's Avatar
    Join Date
    Feb 2005
    Location
    Belgium (Europe)
    Posts
    1,352
    Look all types of SMS there http://www.gsm-technology.com/gsm.ph...id,smsfaq.html
    You can send SMS class 0 in S60 phone with free app FLASHSMS (without paying adding services !) http://www.symbian-toys.com/FlashSms.aspx

    Classes identify the message's importance as well as the location where it should be stored. There are 4 message classes.
    Class 0: Indicates that this message is to be displayed on the MS immediately and a message delivery report is to be sent back to the SC. The message does not have to be saved in the MS or on the SIM card (unless selected to do so by the mobile user).
    Class 1: Indicates that this message is to be stored in the MS memory or the SIM card (depending on memory availability).
    Class 2: This message class is Phase 2 specific and carries SIM card data. The SIM card data must be successfully transferred prior to sending acknowledgement to the SC. An error message will be sent to the SC if this transmission is not possible.
    Class 3: Indicates that this message will be forwarded from the receiving entity to an external device. The delivery acknowledgement will be sent to the SC regardless of whether or not the message was forwarded to the external device.


  4. #4
    Registered User cyke64's Avatar
    Join Date
    Feb 2005
    Location
    Belgium (Europe)
    Posts
    1,352
    Quote Originally Posted by cyke64
    Look all types of SMS there http://www.gsm-technology.com/gsm.ph...id,smsfaq.html
    You can send SMS class 0 in S60 phone with free app FLASHSMS (without paying adding services !) http://www.symbian-toys.com/FlashSms.aspx

    Classes identify the message's importance as well as the location where it should be stored.
    Class 0: Indicates that this message is to be displayed on the MS immediately and a message delivery report is to be sent back to the SC. The message does not have to be saved in the MS or on the SIM card (unless selected to do so by the mobile user).


    hello ,

    Two months ago you're talking about the possibility to send SMS class 0 or usually named as FLASH SMS

    I showed you how to send this kind of SMS with a free app Say SMS 1.0 for S60 phones but not how to use it in py_s60
    But the author ()of this free app release now the source code (symbian C++)
    Thanks to Gunasekaran Ramanujam from CMans Studios having release source code !
    Without him I couldn't provide this wonderful feature to you for py_s60

    Then I carefully read it and with many tricks (during 8 hours today !) I try to make a very interesting module for all of us ! I call it [b]flashy[b] !

    How to use it ?
    - send flashy.PYD to phone and install as lib

    Use in python :

    import flashy
    # send flash SMS (class 0) "hello there !" to dummy phone number "012345678"
    flashy.flashsms_send(u"012345678",u"Hello there !")

    PS:
    Official announce soon and source code soon as possible also
    Now you can use regular SMS , MMS and flash SMS (many choices
    pys60 1.4.5 and 2.0.0, pygame, PyS60 CE on E90 and 5800 !

    Find my pys60 extension modules on cyke64.googlepages.com

  5. #5
    Hi could compile a version that support the phonebook?

  6. #6
    Registered User cyke64's Avatar
    Join Date
    Feb 2005
    Location
    Belgium (Europe)
    Posts
    1,352
    hello ,

    You don't need a new flashy module to do that !
    You can do it with pys60
    Here's a snippet for sending the three categories of message to a contact that you choice in a selection list

    Code:
    import appuifw
    import contacts
    import flashy
    import messaging
    import mmsmodule 
    
    db=contacts.open()
    name = '' # trick for all contacts !
    list=[]
    list_last_name=[]
    list_first_name=[]
    for n in db.find(name):
      list.append(u'%s %s'%(n.find('last_name')[0].value,n.find('first_name')[0].value))
      list_last_name.append(n.find('last_name')[0].value)
      list_first_name.append(n.find('first_name')[0].value) 
    
    ind=appuifw.selection_list(list,1)  
    cont = db.find(list_last_name[ind])[0]
    number = cont.find('mobile_number')[0].value # you could use also 'phone_number'
    
    
    # Flash SMS
    flashy.flashsms_send(number,u'How are you %s ?'%list[ind])   
    # SMS
    messaging.sms_send(str(number),u'How are you %s ?'%list[ind] )
    # MMS
    ret = mmsmodule.mms_send(str(number), u'How are you %s ?'%list[ind], u'e:\\temp\\image.jpg')
    Last edited by cyke64; 2006-06-01 at 15:29. Reason: answer !
    pys60 1.4.5 and 2.0.0, pygame, PyS60 CE on E90 and 5800 !

    Find my pys60 extension modules on cyke64.googlepages.com

Similar Threads

  1. can i send SMS automatically?
    By vhepeter2005 in forum General Messaging
    Replies: 3
    Last Post: 2007-04-28, 09:23
  2. Error sending SMS
    By jorge_c in forum Multimodecards
    Replies: 0
    Last Post: 2003-10-07, 11:53
  3. Replies: 1
    Last Post: 2002-07-23, 14:39
  4. Track if a sms is a response to a sms I send
    By tuender in forum General Messaging
    Replies: 1
    Last Post: 2002-07-19, 07:47
  5. How to send Smart Messaging. I can send text SMS from Nokia Mobile Toolkit3
    By ask_expert in forum Mobile Web Site Development
    Replies: 1
    Last Post: 2002-05-10, 16:19

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved