Solved

Can not send a SMS

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

Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

Question has a verified solution.

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

This article will step through configuring a SonicWALL appliance to utilize an internal DHCP server for Global VPN Client (GVC) hosts.  There are times when using an external (external to the SonicWALL) DHCP server, such as Windows Servers, isn’t pr…
Arrow Electronics was searching for a KVM  (Keyboard/Video/Mouse) switch that could display on one single monitor the current status of all units being tested on the rack.
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

730 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