You Are Here:

Community: Developer Discussion Boards

#1 Old SMS Reading - 2008-05-16, 11:32

Join Date: May 2008
Posts: 88
rishabhgupta
Offline
Regular Contributor
Hi,

I have a doubt regarding SMS reading.I am making an application that reads an incoming message and does some action depending upon the content of the SMS.But while reading the SMS I have been getting some error.When I send a message through bluetooth from my PC to the mobile,it recogonizes the incoming messsage but is not able to print the content as required.

Rishabh
Reply With Quote

#2 Old Re: SMS Reading - 2008-05-16, 11:48

Join Date: Dec 2007
Posts: 409
Location: Tempe, AZ
Send a message via Yahoo to shubhendra Send a message via Skype™ to shubhendra
shubhendra's Avatar
shubhendra
Offline
Forum Nokia Champion
Hi Rishabh first of all welcome to forum,

Please see this page on wiki maybe this will be of some help
http://wiki.forum.nokia.com/index.ph...pp_using_Pys60

I haven't tested this code as such but i think this part will be able to help you,

Code:
def read_sms(id):
 
	e32.ao_sleep(0.1)        
	# create once more an instance of the inbox() class
	i=inbox.Inbox()
	# read the content out of the message that has just arrived
	sms_text = str(i.content(id))
	# display the content inside a pop-up note    
	print sms_text 
	m = i.sms_messages()  # all message ID's
	if sms_text:
		messaging.sms_send(i.address(m[0]),data)
If this doesn't help you please tell the error you are getting or maybe the code where you are reading a message.

I hope you are taking care of something i read here for SMS
http://www.developershome.com/sms/smsIntro.asp
Quote:
7-bit character encoding is used. (7-bit character encoding is suitable for encoding Latin characters like English alphabets.)


IDEAS is all they need but still they think only Genius can give them that.
Last edited by shubhendra : 2008-05-16 at 12:04.
Reply With Quote

#3 Old Re: SMS Reading - 2008-05-16, 11:59

Join Date: May 2008
Posts: 88
rishabhgupta
Offline
Regular Contributor
Thnx Shubendra for your help but the problem still exists.It is able to reconize the new message i send through bluetooth from my pc but cant print it.I tried using print command to check it but there also it prints a blank line.Is it something wrong with my way of sending the message.I am doing it by sending a file 1.txt containing 1231 to my cell using bluetooth file transfer wizard.

Please Help me I have been stuck with this problem for many days now

Rishabh
Reply With Quote

#4 Old Re: SMS Reading - 2008-05-16, 12:06

Join Date: Dec 2007
Posts: 409
Location: Tempe, AZ
Send a message via Yahoo to shubhendra Send a message via Skype™ to shubhendra
shubhendra's Avatar
shubhendra
Offline
Forum Nokia Champion
.txt is the problem i suppose, read the just previous post of mine where i told 7 bit character encoding required.


IDEAS is all they need but still they think only Genius can give them that.
Reply With Quote

#5 Old Re: SMS Reading - 2008-05-16, 12:07

Join Date: May 2007
Posts: 2,738
Location: 21.46 N 72.11 E
croozeus's Avatar
croozeus
Offline
Forum Nokia Champion
Quote:
Originally Posted by rishabhgupta View Post
Thnx Shubendra for your help but the problem still exists.It is able to reconize the new message i send through bluetooth from my pc but cant print it.I tried using print command to check it but there also it prints a blank line.Is it something wrong with my way of sending the message.I am doing it by sending a file 1.txt containing 1231 to my cell using bluetooth file transfer wizard.

Please Help me I have been stuck with this problem for many days now

Rishabh
Hi Rishabhgupta and welcome to Python Forum !

Yes, the mistake is in the form of sending SMS. You are sending a file from your PC to your Mobile inbox and not SMS. Try sending a text SMS from other Mobile and it will surely print.

Do let us know if you have any further problems.

Best Regards,
Croozeus
Reply With Quote

#6 Old Re: SMS Reading - 2008-05-16, 12:09

Join Date: Dec 2007
Posts: 409
Location: Tempe, AZ
Send a message via Yahoo to shubhendra Send a message via Skype™ to shubhendra
shubhendra's Avatar
shubhendra
Offline
Forum Nokia Champion
Ya rightly said croozeus or see this post for 7 bit encoding,

http://discussion.forum.nokia.com/fo...ad.php?t=36966


IDEAS is all they need but still they think only Genius can give them that.
Reply With Quote

#7 Old Re: SMS Reading - 2008-05-16, 12:24

Join Date: May 2008
Posts: 88
rishabhgupta
Offline
Regular Contributor
Hey,

Thnx Guys for clearing my doubts.

Cheers
Rishabh
Reply With Quote

#8 Old Re: SMS Reading - 2008-05-16, 13:31

Join Date: May 2008
Posts: 12
reallife47
Offline
Registered User
Can we also send MMS using Python?
Last edited by reallife47 : 2008-05-16 at 13:32. Reason: error
Reply With Quote

#9 Old Re: SMS Reading - 2008-05-16, 14:04

Join Date: May 2007
Posts: 2,738
Location: 21.46 N 72.11 E
croozeus's Avatar
croozeus
Offline
Forum Nokia Champion
Quote:
Originally Posted by reallife47 View Post
Can we also send MMS using Python?
OfCourse, Yes!

Here is how you can send an MMS

Code:
import messaging
 
attachment_path="E:\\Images\\picture.jpg"
messaging.mms_send("number", u"text", attachment_path)
Reply With Quote

#10 Old Re: SMS Reading - 2008-05-16, 14:54

Join Date: May 2008
Posts: 88
rishabhgupta
Offline
Regular Contributor
Hi. I have been trying to implement something that would be able to produce an alert sound whatever the current profile of the mobile may be.But no success so far.Can anybody help me plz.I want to play a beep sound at loud noise irrespective of the profile hes using at that time.


Rishabh
Reply With Quote

#11 Old Re: SMS Reading - 2008-05-16, 16:03

Join Date: Dec 2007
Posts: 409
Location: Tempe, AZ
Send a message via Yahoo to shubhendra Send a message via Skype™ to shubhendra
shubhendra's Avatar
shubhendra
Offline
Forum Nokia Champion
Rishabh i have given a probable solution at other thread of yours "Alert Sounds" please see it.


IDEAS is all they need but still they think only Genius can give them that.
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
Reading SMS in Port 50000 Nokia 6275 CDMA pmramprasath Mobile Java General 14 2009-01-07 15:04
reading sms from the sms application hatwarbabu General Messaging 6 2007-03-22 20:40
problem in reading sms index hosam2010 PC Suite API and PC Connectivity SDK 1 2005-06-12 18:39
reading and replying to sms automatically dgobin Symbian Networking & Messaging 11 2003-05-22 17:21

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