Solved

Can not send a SMS

Posted on 2003-11-24
1
276 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

 One of the main issues with network wires is that you never have enough.  You run plenty and plan for the worst case but you still end up needing more.  What many people do not realize is with 10BaseT and 100BaseT (but not 1000BaseT) networks you …
When posting a question about a Cisco ASA, Cisco Router or Cisco Switch, it can aid diagnosis if a suitably sanitised copy of the config is provided. It is much better to leave as much of the configuration as original as possible, as it could be tha…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…

690 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