Thanks aratti. You so kind. Ill check your codes.
Thanks aratti. You so kind. Ill check your codes.
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.![]()
This is not the code I have suggested!Code:Weight Get var BYTE[20] SERIN comRs232In, T2400, 5000, Start, [weightGet]
Try:
Al.Code:Weight_Get var BYTE[20] Serin2 comRs232In, T2400, 5000, Start,[STR Weight_Get\20]
Last edited by aratti; - 17th August 2009 at 10:32.
All progress began with an idea
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
But I couldnot read message sender number and body of text correctly usingThe SKIP instruction at the begining is wrong! remove it!Code:HSERIN 5000, Start,[SKIP 8,WAIT("REC UNREAD"), Skip 3, Str ArrayNum\12, Skip 25, str ArrayTxt\6]
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.
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.Code:HSERIN 5000, Start,[WAIT("REC UNREAD"), Skip 3, Str ArrayNum\12, Skip 25, str ArrayTxt\6]
Al.
All progress began with an idea
Bookmarks