Solved

Can not send a SMS

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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Suggested Solutions

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…
#Citrix #Citrix Netscaler #HTTP Compression #Load Balance
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

746 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now