Dne Sat, 07 Nov 2009 22:27:21 +0100 Petros Tavridis
<[email protected]> napsal/-a:
> sBlock.SendString('AT+CMGS="' + GSMaddress + '"'+ #$0D);
> sleep(50);
> sBlock.SendString('abcdefg 12345' + #$1A);
> sleep(200);
>
> may astually transmit 'cdefg 12345' to GSMaddress. I cannot find a
> patern as to how often this occurs and how many characters get truncated.
Have you read description of text mode command +CGMS
in the standard GSM 7.05?
the TA shall send a four character sequence
<CR><LF><greater_than><space> (IRA 13, 10, 62, 32)
after command line is terminated with <CR>;
after that text can be entered from TE to ME/TA
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Your implementation is absolutely wrong, it should
look like:
- send +CGMS command terminated by CR
- read response with timeout
- check response
- abort if it is not the prompt
- send a text terminated by ESC
- read response with timeout
- check response according your
ME/TA setting
- meabe extract a message reference
for later usage
note: when reading/checking responses,
eliminate echo o preset ME/TA echo mode
properly.
HTH, pf
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
synalist-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/synalist-public