Can't read an sms Using TC35i & 16F690


Closed Thread
Results 1 to 15 of 15

Hybrid View

  1. #1
    Join Date
    May 2008
    Location
    Italy
    Posts
    825


    Did you find this post helpful? Yes | No

    Default

    I suspect that you have few "Rec Read" message in memory. Delete them all and than send a new one and try again your code.

    Since you don't know how many sms are stored them loop several time with the "AT+CMGD=1",13 , wait for the "OK", leave a pause 5000 and repeat.

    Al.
    All progress began with an idea

  2. #2


    Did you find this post helpful? Yes | No

    Exclamation

    Quote Originally Posted by aratti View Post
    I suspect that you have few "Rec Read" message in memory. Delete them all and than send a new one and try again your code.

    Since you don't know how many sms are stored them loop several time with the "AT+CMGD=1",13 , wait for the "OK", leave a pause 5000 and repeat.

    Al.
    Hi, I actually inserted the sim in my mobile, deleted all text messeges from the sim and still having the same bad luck. Just to let you know, that I am using internet to send the text messeges (if that makes any difference).
    Is there any way I can point an incomming sms to be stored in location one?
    Is there any command I may be missing pointing to where the sms goes?

    Thanks

  3. #3
    Join Date
    May 2008
    Location
    Italy
    Posts
    825


    Did you find this post helpful? Yes | No

    Default

    You must delate also sms present in the modem (TC35i memory). Follow my advice given in previous post.

    First sms goes in position 1; second in position 2; etc. etc. This is way you must keep the modem memory clean deleting sms as soon as they have been read, so incoming sms are always stored in position 1.

    Al.
    Last edited by aratti; - 1st October 2009 at 23:11.
    All progress began with an idea

  4. #4


    Did you find this post helpful? Yes | No

    Exclamation

    Hi Aratti
    Tried deleting from location 1 to 9. Results are the same, the code can't seem to see REC UNREAD. Any other trick you suggest?

  5. #5


    Did you find this post helpful? Yes | No

    Default

    Here is the code at Present:
    main:
    serout2 tx,baud,["AT^SMGR=1",13]
    Serin2 rx,baud,5000,main,[WAIT("REC UNREAD")]
    portc=255
    End
    start:
    gosub one
    serout2 tx,baud,["AT+CMGD=1",13]
    serin2 rx,baud,5000,start,[WAIT("OK")]
    pause 1000
    gosub one
    serout2 tx,baud,["AT+CMGD=2",13]
    serin2 rx,baud,5000,start,[WAIT("OK")]
    pause 1000
    gosub one
    serout2 tx,baud,["AT+CMGD=3",13]
    serin2 rx,baud,5000,start,[WAIT("OK")]
    pause 1000
    gosub one
    serout2 tx,baud,["AT+CMGD=4",13]
    serin2 rx,baud,5000,start,[WAIT("OK")]
    pause 1000
    gosub one
    serout2 tx,baud,["AT+CMGD=5",13]
    serin2 rx,baud,5000,start,[WAIT("OK")]
    pause 1000
    gosub one
    serout2 tx,baud,["AT+CMGD=6",13]
    serin2 rx,baud,5000,start,[WAIT("OK")]
    pause 1000
    gosub one
    serout2 tx,baud,["AT+CMGD=7",13]
    serin2 rx,baud,5000,start,[WAIT("OK")]
    pause 1000
    gosub one
    serout2 tx,baud,["AT+CMGD=8",13]
    serin2 rx,baud,5000,start,[WAIT("OK")]
    pause 1000
    gosub one
    serout2 tx,baud,["AT+CMGD=9",13]
    serin2 rx,baud,5000,start,[WAIT("OK")]
    pause 1000
    gosub one
    serout2 tx,baud,["AT+CMGF=1",13]
    Serin2 rx,baud,5000,start,[WAIT("OK")]
    pause 1000
    goto one
    goto main

  6. #6


    Did you find this post helpful? Yes | No

    Question

    Additional information:

    main:
    serout2 tx,baud,["AT^SMGR=1",13] ' I have tried it with AT+CMGR=1
    Serin2 rx,baud,5000,main,[WAIT("REC UNREAD")] ' I have tried this string with REC READ, STO UNSENT, STO SENT - Nothing works!
    portc=255
    end

  7. #7
    Join Date
    May 2008
    Location
    Italy
    Posts
    825


    Did you find this post helpful? Yes | No

    Default

    Try to short the qualifier string and maintain the same AT comand:

    Code:
    serout2 tx,baud,["AT^SMGR=1",13]
    Serin2 rx,baud,5000,main,[WAIT("UNREAD")]
    Al.
    Last edited by aratti; - 2nd October 2009 at 09:54.
    All progress began with an idea

Similar Threads

  1. TC35i GSM With PIC 16F690 help
    By financecatalyst in forum General
    Replies: 33
    Last Post: - 22nd January 2012, 04:01
  2. Cleaning up code
    By Tobias in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 2nd December 2009, 07:14
  3. Replies: 13
    Last Post: - 12th May 2009, 17:26
  4. SEROUT WORD variable problem
    By Tobias in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 19th April 2009, 11:20
  5. Replies: 18
    Last Post: - 7th April 2009, 21:46

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

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