?
Solved

Can not send a SMS

Posted on 2003-11-24
1
Medium Priority
?
282 Views
Last Modified: 2013-12-27
Hi All,

I have written an application which communicate with a GSM modem. I have problems to send 'CTRL+Z' to finish the sms text.

When I use the GSM-Modem testsoftware it works fine. I mean I can send a sms. My software works fine when I am using a Edit field to input the text and copy the text from the testsoftware to the Edit field. But it does not work when I input the data in the programme to send the text including 'CTRL+Z' to the modem.

'CTRL+Z' is a Windows keyboard shortcut for undo and this is exactly what my programme is doing. For example it copies some text to it but do not send the 'CTRL+Z'.

I tried quite a lot to solve the problem. I have sent the hex code such as (1A='CRTL+Z')
ComPort->WriteString("\0x35\0x31\0x2E\0x31\0x32\0x33\0x34\0x45\0x36\0x3B\0x2D\0x33\0x2E\0x31\0x32\0x33\0x34\0x35\0x36\0x1A\0x20\0x20\0x0d");
It does not work.

When I use the testsoftware it sends a sms with the following text: '> Test-SMS  '. '' seems to be 'CTRL+Z'. I have written my programme with the Borland C++ Builder 6 and it does not compile '' with the error message 'Unterminated string or character constant
'.

Is there anybody who had similar problems and can help me?

Cheers,
Ronald
 
0
Comment
Question by:rsch1973
1 Comment
 
LVL 4

Accepted Solution

by:
SimonTay earned 1500 total points
ID: 9989775
Make sure you do NOT send a CR (0x0d) after the CTRL-Z, and make sure your program waits for the > prompt after sending the initial AT+CGMS command.

Most people send the second line too quickly causing the problem.

Simon
0

Featured Post

 [eBook] Windows Nano Server

Download this FREE eBook and learn all you need to get started with Windows Nano Server, including deployment options, remote management
and troubleshooting tips and tricks

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Do you have a computer or other electronic gear that is attached to a rat nest of cables, or alternatively have your cables all bundled nice at neat?  If so then read this post to sidstep common pitfalls. When I was a student at DeVry University,…
This article will show how Aten was able to supply easy management and control for Artear's video walls and wide range display configurations of their newsroom.
this video summaries big data hadoop online training demo (http://onlineitguru.com/big-data-hadoop-online-training-placement.html) , and covers basics in big data hadoop .
Look below the covers at a subform control , and the form that is inside it. Explore properties and see how easy it is to aggregate, get statistics, and synchronize results for your data. A Microsoft Access subform is used to show relevant calcul…
Suggested Courses
Course of the Month14 days, 3 hours left to enroll

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question