Please tell me how to reply by SMS for a received SMS


Closed Thread
Results 1 to 12 of 12

Hybrid View

  1. #1
    Join Date
    May 2009
    Posts
    13

    Smile Thanks aratti

    Thanks aratti. You so kind. Ill check your codes.

  2. #2
    Join Date
    May 2009
    Posts
    13

    Question Another problem in reading data in to a array

    I used,

    Weight Get var BYTE[20]

    and use code to capture string comming via device serial port (The data I should send via SMS).

    SERIN comRs232In, T2400, 5000, Start, [weightGet]

    but it reads only first character of the string. I got stuck here.

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

    Default

    Code:
    Weight Get var BYTE[20]
    
    SERIN comRs232In, T2400, 5000, Start, [weightGet]
    This is not the code I have suggested!

    Try:

    Code:
    Weight_Get var BYTE[20]
    Serin2 comRs232In, T2400, 5000, Start,[STR Weight_Get\20]
    Al.
    Last edited by aratti; - 17th August 2009 at 10:32.
    All progress began with an idea

  4. #4
    Join Date
    May 2009
    Posts
    13

    Exclamation I did it, Thanks - But more to know

    Yes I got it using following code

    SERIN2 comRs232In, 396, 1000, Start, [STR wGet\20]

    Thanks you arrati

    But I couldnot read message sender number and body of text correctly using

    HSERIN 5000, Start,[SKIP 8,WAIT("REC UNREAD"), Skip 3, Str ArrayNum\12, Skip 25, str ArrayTxt\6]

    even could not read any text of message even using

    HSERIN 5000, Start,[Str ArrayNum\12]

    Please help me

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

    Default

    But I couldnot read message sender number and body of text correctly using
    Code:
    HSERIN 5000, Start,[SKIP 8,WAIT("REC UNREAD"), Skip 3, Str ArrayNum\12, Skip 25, str ArrayTxt\6]
    The SKIP instruction at the begining is wrong! remove it!

    Hserin will read the characters coming via RS232 and when the string indicated in The WAIT instruction is met than it start passing characters to your string.

    Make sure that your phone output the string "REC UNREAD" (remember that Wait is case sensitive) so if your phone output "rec unread" WAIT instruction will not identify the string and you will receive nothing.

    Code:
    HSERIN 5000, Start,[WAIT("REC UNREAD"), Skip 3, Str ArrayNum\12, Skip 25, str ArrayTxt\6]
    The above HSERIN code is the correct one, providing your phone send the "REC UNREAD" in uppercase and the skip values (3 and 25) are corrected, but this is something that you must verify.

    Al.
    All progress began with an idea

Similar Threads

  1. Problem with SMS IO Controller
    By dario.costa in forum GSM
    Replies: 4
    Last Post: - 30th November 2009, 07:04
  2. Replies: 288
    Last Post: - 25th August 2008, 16:53
  3. Reading a SMS to an array
    By KA5MAL in forum GSM
    Replies: 3
    Last Post: - 17th June 2008, 17:24
  4. Rs485 Using Hserin/hserout
    By koossa in forum mel PIC BASIC Pro
    Replies: 27
    Last Post: - 31st January 2008, 09:42

Members who have read this thread : 0

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

Tags for this Thread

Posting Permissions

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