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.
Bookmarks