Siemens c55 sms control help please


Closed Thread
Results 1 to 40 of 86

Hybrid View

  1. #1
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Ioannis View Post
    Skimask got me on the turn!
    Pheww! Yes at last... 8-)
    Always do this kind of check. It is the only way to communicate. Otherwise you may well be talking but no-one listening!
    Ioannis
    Wouldn't it be a kick to find out that all of this was being done on some sort of 'simulator' or something?

  2. #2


    Did you find this post helpful? Yes | No

    Default

    Hi,



    Its supposed to send:

    at+cpms="SM" 'and get:
    +CPMS: 1,15,1,15,1,15
    OK


    then its supposed to send:

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


    By put the code like this
    .................................................
    LOOP:

    HSEROUT["at+cpms=",34,"SM",34,13]
    HSERIN 2000,IP,[WAIT("OK")]

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

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

    POR:
    if myarray[0]="0"then
    'pdu sms in the phone 0791539126010000240C915391663921010000807070819341 400453FA1B0E


    goto success

    endif
    goto LOOP

    success:
    High PortD.2

    End
    .......................

    Its give on hterminal the good info
    at+cpms="SM"
    +CPMS: 1,15,1,15,1,15
    OK

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

    But still cand find the myarray[0]="0" to high the led

  3. #3
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    So, you send:
    at+cpms="SM"
    HSEROUT["at+cpms=",34,"SM",34,13]

    Then the phone sends:
    +CPMS: 1,15,1,15,1,15
    OK
    HSERIN 2000,IP,[WAIT("OK")]
    (But all you're checking for is the OK, not the rest of the items. How do you know the items are actually there?)

    Then you send:
    AT+CMGR=1
    HSEROUT["AT+CMGR=1",13,10]

    And the phone sends:
    +CMGR: 1,,23
    HSERIN 2000,LI,[WAIT("OK")]
    (Where's the OK?)

    0791539126010000240C915391663921010000807070819341 400453FA1B0E
    OK
    HSERIN 2000,POR,[WAIT("OK"),STR myarray\62]
    (Where's the OK that the line is supposed to start off with? I see it at the end, not at the beginning.)

    It looks to me like you need to rethink your code...a bunch. The order in which you are sending and receiving items to and from the phone doesn't match up with the order in which the phone is actually going to receive and send those items, at least not the way you've written your program.

  4. #4


    Did you find this post helpful? Yes | No

    Default

    Hi,

    The HSEROUT["at+cpms=",34,"SM",34,13] is to change the momory of the cell phone and phone send back comfirmaction on the change +CPMS: 1,15,1,15,1,15
    OK

    The HSERIN 2000,IP,[WAIT("OK")] is to for the above ok and then goto next step

    The IP: HSEROUT["AT+CMGR=1",13,10] is the next step and reads the pdu sms phone send back the comfirmaction AT+CMGR=1
    +CMGR: 1,,23
    0791539126010000240C915391663921010000807070819341 400453FA1B0E (my message)
    OK (the ok by the phone)

    HSERIN 2000,LI,[WAIT("OK")] whaits for the above ok and goto


    LI:
    HSERIN 2000,POR,[WAIT("OK"),STR myarray\62]
    here i have some ??? because i dont have a ok input from the cell phone


    Then if myrray zero posiction are zero like its in pda array next goto so sucess if not goto lop
    POR:
    if myarray[0]="0"then
    'pdu sms in the phone 0791539126010000240C915391663921010000807070819341 400453FA1B0E

    goto success

    endif
    goto LOOP

    success:
    High PortD.2
    End
    Last edited by camolas; - 10th July 2008 at 16:05.

  5. #5
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    And you've just answered your own question and/or fixed your own...if you knew where to look for it...or if you could see the forest through the trees.
    Where are you filling myvar and where are you getting the last OK? And when are you going to reorder your code to match what you want?

  6. #6


    Did you find this post helpful? Yes | No

    Default

    Hi ,

    Big mess please give me some hellp

  7. #7
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Hi,
    The HSEROUT["at+cpms=",34,"SM",34,13] is to change the momory of the cell phone and phone send back comfirmaction on the change +CPMS: 1,15,1,15,1,15
    OK
    The HSERIN 2000,IP,[WAIT("OK")] is to for the above ok and then goto next step
    The IP: HSEROUT["AT+CMGR=1",13,10] is the next step and reads the pdu sms phone send back the comfirmaction AT+CMGR=1
    +CMGR: 1,,23
    0791539126010000240C915391663921010000807070819341 400453FA1B0E (my message)
    OK (the ok by the phone)
    HSERIN 2000,LI,[WAIT("OK")] whaits for the above ok and goto
    LI:
    HSERIN 2000,POR,[WAIT("OK"),STR myarray\62]
    here i have some ??? because i dont have a ok input from the cell phone
    Then if myrray zero posiction are zero like its in pda array next goto so sucess if not goto lop
    POR:
    if myarray[0]="0"then
    'pdu sms in the phone 0791539126010000240C915391663921010000807070819341 400453FA1B0E
    goto success
    endif
    goto LOOP
    success:
    High PortD.2
    End
    Quote Originally Posted by camolas View Post
    Hi ,
    Big mess please give me some hellp
    Anything yet? Do you understand the format of the HSERIN command? The time-out, the WAIT, the rest?

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