| Reply | « Previous Thread | Next Thread » |
|
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?
|
| zhuxiangguo |
| View Public Profile |
| Find all posts by zhuxiangguo |
|
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.
|
| eriksmartt |
| View Public Profile |
| Find all posts by eriksmartt |
|
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. |
|
Quote:
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,1.9.7,pygame,PyS60 CE on E90 , N810 with Python 2.5.2 and ... last PyS60 1.9.7 with touch ui on 5800 ! pys60 extension modules on http://cyke64.googlepages.com/ |
|
Hi could compile a version that support the phonebook?
|
| thefirestarter |
| View Public Profile |
| Find all posts by thefirestarter |
|
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')
pys60 1.4.5,1.9.7,pygame,PyS60 CE on E90 , N810 with Python 2.5.2 and ... last PyS60 1.9.7 with touch ui on 5800 ! pys60 extension modules on http://cyke64.googlepages.com/
Last edited by cyke64 : 2006-06-01 at 16:29.
Reason: answer !
|
| Reply | « Previous Thread | Next Thread » |
| Thread Tools | Search this Thread |
|---|---|
| Rate This Thread | |
| Thread | Thread Starter | Forum | Replies | Last Post |
|---|---|---|---|---|
| can i send SMS automatically? | vhepeter2005 | General Messaging | 3 | 2007-04-28 10:23 |
| Error sending SMS | jorge_c | Multimodecards | 0 | 2003-10-07 12:53 |
| D211Ctl perform illegal operation when trying to send sms by Req_Sms_Send | bcchong | Multimodecards | 1 | 2002-07-23 15:39 |
| Track if a sms is a response to a sms I send | tuender | General Messaging | 1 | 2002-07-19 08:47 |
| How to send Smart Messaging. I can send text SMS from Nokia Mobile Toolkit3 | ask_expert | General Browsing | 1 | 2002-05-10 17:19 |