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?
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?
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.
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.
hello ,Originally Posted by cyke64
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
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