Siemens c55 sms control help please


Closed Thread
Results 1 to 40 of 86

Hybrid View

  1. #1


    Did you find this post helpful? Yes | No

    Default

    Hi, that a whait for a ok 2s if dont came goto POR if came then store the "file" to mydata.

    AT+CMGR=1
    +CMGR: 1,,23
    0791539126010000240C915391663921010000807070819341 400453FA1B0E
    OK

    Its beter like this i think HSERIN 2000,POR,[WAIT("+CMGR: 1,,23"),STR myarray\62] ??


    LOOP:................
    HSERIN 2000,LOOP,[WAIT("OK")] Like this?

    IP:..................
    HSERIN 2000,IP,[WAIT("OK")] Like this ?

    I do not at home the pic/gsm...... to test it only tomorow

    Thanks for caring
    Last edited by camolas; - 10th July 2008 at 21:21.

  2. #2
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by camolas View Post
    I do not at home the pic/gsm...... to test it only tomorow
    Thanks for caring
    You haven't answered any questions yet...only skirted the issue.
    What do each of those lines in Post #54 and that last post do? And in what sequence?
    That's the issue...

  3. #3


    Did you find this post helpful? Yes | No

    Default

    What does this statement mean to you?

    Code:
    HSERIN 2000,POR,[WAIT("OK"),STR myarray\62]

    That mins to me that code whaits for a ok 2s if dont came gos to POR if it came then store the "file" to mydata. (have answered on the before post alredy)

    After realise that a change the code like i posted in the before post.

    Please give me you feedback on this.

    ..............................................
    LOOP:
    HSEROUT["AT+CPMS=",34,"SM",34,13]
    HSERIN 2000,LOOP,[WAIT("OK")]

    IP:
    HSEROUT["AT+CMGR=1",13,10]
    HSERIN 2000,IP,[WAIT("OK")]

    IT:
    HSERIN 2000,IT,[WAIT("+CMGR: 1,,23"),STR myarray\62]

    POR:
    if myarray[0]="0"then
    '0791539126010000240C91539166392101000080707081934 1400453FA1B0E

    goto success

    endif
    goto LOOP

    success:
    High PortD.2

    End
    ...............
    Last edited by camolas; - 10th July 2008 at 21:52.

  4. #4
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,133


    Did you find this post helpful? Yes | No

    Default

    Here you have to skip two bytes: HSERIN 2000,IT,[WAIT("+CMGR: 1,,23"),STR myarray\62]

    Why? because the string is on the next line as you show. So the phone is sending two more bytes after the 1,,23 and these bytes are.... surprise invisible!! They are 13 and 10. That's why your string appears on the next line. So correct the line as this:

    HSERIN 2000,IT,[WAIT("+CMGR: 1,,23"),skip 2, STR myarray\62]

    Now you will not lose your first and precious "0" byte!

    As for the timeouts, I cannot tell you if 100, 200, 500 or 5000 are enough, as each phone has its own respond times. Some phones have even 15 sec to start responding after reset, or 50sec to erase all messages!

    You can test it with timer, but that is another big issue...

    Ioannis
    Last edited by Ioannis; - 10th July 2008 at 22:45.

  5. #5


    Did you find this post helpful? Yes | No

    Default

    Hi,

    Thanks a lot men with out the all hellping and caring people and i do not made to this point.

    Tomorow i will test it and post it.

    Thanks a lot

Similar Threads

  1. sms to control pic..pls help...
    By Ziki in forum mel PIC BASIC Pro
    Replies: 53
    Last Post: - 12th April 2010, 21:19
  2. Replies: 11
    Last Post: - 19th August 2009, 15:23
  3. SMS control for Relays
    By charudatt in forum Code Examples
    Replies: 15
    Last Post: - 2nd May 2009, 00:08
  4. Reading a SMS to an array
    By KA5MAL in forum GSM
    Replies: 3
    Last Post: - 17th June 2008, 17:24
  5. Control RC servo via Parallax Servo Control
    By cibotsan in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 17th September 2005, 08:18

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