×

Discussion Board

Results 1 to 11 of 11

Thread: SMS Reading

  1. #1
    Regular Contributor
    Join Date
    May 2008
    Posts
    88

    SMS Reading

    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

  2. #2
    Regular Contributor
    Join Date
    Dec 2007
    Location
    Tempe, AZ
    Posts
    411

    Re: SMS Reading

    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
    7-bit character encoding is used. (7-bit character encoding is suitable for encoding Latin characters like English alphabets.)
    Last edited by shubhendra; 2008-05-16 at 11:04.
    IDEAS is all they need but still they think only Genius can give them that.

  3. #3
    Regular Contributor
    Join Date
    May 2008
    Posts
    88

    Re: SMS Reading

    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

  4. #4
    Regular Contributor
    Join Date
    Dec 2007
    Location
    Tempe, AZ
    Posts
    411

    Re: SMS Reading

    .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.

  5. #5
    Nokia Developer Moderator
    Join Date
    May 2007
    Location
    21.46 N 72.11 E
    Posts
    3,777

    Re: SMS Reading

    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
    Pankaj Nathani
    www.croozeus.com

  6. #6
    Regular Contributor
    Join Date
    Dec 2007
    Location
    Tempe, AZ
    Posts
    411

    Re: SMS Reading

    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.

  7. #7
    Regular Contributor
    Join Date
    May 2008
    Posts
    88

    Re: SMS Reading

    Hey,

    Thnx Guys for clearing my doubts.

    Cheers
    Rishabh

  8. #8
    Registered User
    Join Date
    May 2008
    Posts
    12

    Re: SMS Reading

    Can we also send MMS using Python?
    Last edited by reallife47; 2008-05-16 at 12:32. Reason: error

  9. #9
    Nokia Developer Moderator
    Join Date
    May 2007
    Location
    21.46 N 72.11 E
    Posts
    3,777

    Re: SMS Reading

    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)
    Pankaj Nathani
    www.croozeus.com

  10. #10
    Regular Contributor
    Join Date
    May 2008
    Posts
    88

    Re: SMS Reading

    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

  11. #11
    Regular Contributor
    Join Date
    Dec 2007
    Location
    Tempe, AZ
    Posts
    411

    Re: SMS Reading

    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.

Similar Threads

  1. Reading SMS in Port 50000 Nokia 6275 CDMA
    By pmramprasath in forum Mobile Java General
    Replies: 14
    Last Post: 2009-01-07, 14:04
  2. reading sms from the sms application
    By hatwarbabu in forum General Messaging
    Replies: 6
    Last Post: 2007-03-22, 19:40
  3. problem in reading sms index
    By hosam2010 in forum PC Suite API and PC Connectivity SDK
    Replies: 1
    Last Post: 2005-06-12, 17:39
  4. reading and replying to sms automatically
    By dgobin in forum Symbian Networking & Messaging (Closed)
    Replies: 11
    Last Post: 2003-05-22, 16:21

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •