Solved

Can not send a SMS

Posted on 2003-11-24
1
274 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 500 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

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Issues with Ports in Linux (Hyper-V Guest) 2 105
Watchguard XTM 2 84
High Receive Utilization on my Cisco 3560 V2 10 76
UPS and BTU calculation 3 50
Hi there, This article summarizes what you need if you are going to set up your home or small business Network Attached Storage (NAS) to be accessible from the internet. Of course there are configuration differences based on your NAS or router ma…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

829 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