You Are Here:

Community: Developer Discussion Boards

#1 Old HOw to send sms with class 0?? - 2006-03-01, 03:30

Join Date: Nov 2004
Posts: 5
zhuxiangguo
Offline
Registered User
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?
Reply With Quote

#2 Old Re: HOw to send sms with class 0?? - 2006-03-01, 11:51

Join Date: Jul 2004
Posts: 76
eriksmartt
Offline
Regular Contributor
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.
Reply With Quote

#3 Old Re: HOw to send sms with class 0?? - 2006-03-01, 20:13

Join Date: Feb 2005
Posts: 1,353
Location: Belgium (Europe)
cyke64's Avatar
cyke64
Offline
Super Contributor
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.

Reply With Quote

#4 Old Re: HOw to send sms with class 0?? - 2006-05-17, 19:02

Join Date: Feb 2005
Posts: 1,353
Location: Belgium (Europe)
cyke64's Avatar
cyke64
Offline
Super Contributor
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,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/
Reply With Quote

#5 Old Re: HOw to send sms with class 0?? - 2006-06-01, 11:54

Join Date: Jun 2006
Posts: 2
thefirestarter
Offline
Registered User
Hi could compile a version that support the phonebook?
Reply With Quote

#6 Old Re: HOw to send sms with class 0?? - 2006-06-01, 12:40

Join Date: Feb 2005
Posts: 1,353
Location: Belgium (Europe)
cyke64's Avatar
cyke64
Offline
Super Contributor
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 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
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

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