Can't read an sms Using TC35i & 16F690


Closed Thread
Results 1 to 15 of 15

Hybrid View

  1. #1


    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

  2. #2


    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

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

  4. #4


    Did you find this post helpful? Yes | No

    Red face

    Quote Originally Posted by aratti View Post
    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.
    Finally one step forward: The following code worked but of course this is not the target... but dont know where to go from here to check the messege and check the content & number...
    main:
    gosub two
    serout2 tx,baud,["AT+CMGR=1",13]
    Serin2 rx,baud,40000,main,[WAIT("+CMGR")]
    portc=255
    end

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


    Did you find this post helpful? Yes | No

    Default

    Finally one step forward: The following code worked but of course this is not the target... but dont know where to go from here to check the messege and check the content & number...
    Now you need hyperterminal. You will download a typical sms on the screen and then you can count where the data that interest you commence, so you can plan the number of skips, their dimention as well as the string that should capture your data.

    The other way is to use a large array and sent it to a LCD to do the same job.

    Al.
    All progress began with an idea

  6. #6


    Did you find this post helpful? Yes | No

    Exclamation

    Ok, Downloaded the hyperterminal for vista and bought the serial to usb cable.
    Progress:
    Checked all locations using at+cmgl=" REC READ", "REC UNREAD" STO SENT & UNSENT.
    All show no sign of an remaining sms.

    After that:

    Sent an sms to my phone. Did at+cmgr=1, but it shows +cmgr: 0, ,0
    Then I did at+cmgl="REC UNREAD" - - - Result is only OK ( No sign of an received sms at all.

    What settings should be used for CPMS & CNMI?
    I have got cpms as sm, sm, sm & CNMI as 2,0,0,1 - Are these correct?
    Last edited by financecatalyst; - 2nd October 2009 at 18:17.

  7. #7


    Did you find this post helpful? Yes | No

    Question

    Its working now: this is what I did:

    CNMI=00001
    CNMS=me, me, mt ' stores and reads from TA memory & NOT sim

    What I would like to do is change it to store, read, delete from sim only. I know I have to change CNMS=SM, SM, SM but for this to take effect I need help in changing value of CNMI (Which I am unable to figure out)
    Any advise on CNMI values?

    Thanks

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