?
Solved

How to use ctrl-z in vb to send SMS

Posted on 2003-10-24
9
Medium Priority
?
4,199 Views
Last Modified: 2013-12-09
hello friends i m a newbie
i used
AT+CMGS="+targetno" CRLF  command to send SMS using nokia 5110 with nds2.0
once issued then the mobile respond by a ">" 
then Message text with CTRL-Z as terminating text.
now here i am using VB and can any one guide me that for ctrl-z what should i have to append with my message i use chr(17) for ctrl but it does not work, means the message did not send.
0
Comment
Question by:hemantbangwal
[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
9 Comments
 
LVL 16

Expert Comment

by:_nn_
ID: 9612983
CTRL-Z should rather be chr(26)
0
 
LVL 16

Accepted Solution

by:
_nn_ earned 500 total points
ID: 9612985
More precisely, the combination "CTRL-Z" is chr(26).
0
 

Expert Comment

by:rupeshbandi
ID: 9723390
Hello Friends,

I am new to this group.
I am using the AT+CMGS at command to send sms in ttcn script. i am using in the following format:

 "AT+CMGS=""+498911111""<CR>""Hello World""<ctrl-Z>"

But the format of <ctrl-Z> doesn't seems to work. Could somebody suggest me in which i can use the ctrl-z in ttcn script.

Your help would highly appriciable.

Thanks,
  --Rupesh

0
Manage your data center from practically anywhere

The KN8164V features HD resolution of 1920 x 1200, FIPS 140-2 with level 1 security standards and virtual media transmissions at twice the speed. Built for reliability, the KN series provides local console and remote over IP access, ensuring 24/7 availability to all servers.

 
LVL 16

Expert Comment

by:_nn_
ID: 9723504
I'd like to help, but
- you should ask this in a separate question, see http://www.experts-exchange.com/help.jsp#hs3 for details
- I hate ISO and I don't want to waste CHF 258 for that TTCN thingie. I think you'd better purchase that "standard" and check yourself.
0
 
LVL 1

Expert Comment

by:mobimouse
ID: 9819567
Hi I am giving you a Sample code here of mine you can just take whatever you wish mainly the CTRL Z problem. you can directly copy this CTRL Z from here. Sure it will work

The part of code is given below.

Dim rs As New ADODB.Recordset
    cmdok.Enabled = False
    FrmMain.lblhead = "Sending SMS"
    FrmMain.lbldata = "To :" + txtno.Text + vbCrLf + "Message :" + txtmessage.Text
    rs.Open "insert into smssent values ('" + Trim(txtno.Text) + "','" + Trim(txtmessage.Text) + "',#" + Format(Date, "MM/dd/yyyy") + "#,'" + Format(Time, "hh:mm:ss AM/PM") + "')", conn, 3, 2
    FrmMain.MSComm1.Output = "AT+CMGS=" & Chr(34) & Trim(txtno.Text) & Chr(34) & vbCr
    send = txtno.Text + " : " + txtmessage.Text + vbCrLf
    FrmMain.MSComm1.Output = Trim(txtmessage.Text) + vbCrLf + "<MobiMouse>" & ""
    Unload Me
    delay 3



The sqare is the control Z  

Thanks

<MobiMouse>
0
 

Expert Comment

by:thomashahn
ID: 9832650
var charstring command:= "AT+CMGS=" & int2char(34) & "+498911111" & int2char(34) & int2char(13 ) & "Hello World" & int2char(26);
0
 
LVL 1

Expert Comment

by:seekin
ID: 10113602
MSComm1.Output = Message_ + chr(26)  works for me.
0

Featured Post

Get MongoDB database support online, now!

At Percona’s web store you can order your MongoDB database support needs in minutes. No hassles, no fuss, just pick and click. Pay online with a credit card. Handle your MongoDB database support now!

Question has a verified solution.

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

Need WiFi? Often, there are perfectly good networks that don't have WiFi capability - and there's a need to add it.  - Perhaps you have an Ethernet port into a network but no WiFi nearby. - Perhaps you have a powerline extender and no WiFi at the…
This paper addresses the security of Sennheiser DECT Contact Center and Office (CC&O) headsets. It describes the DECT security chain comprised of “Pairing”, “Per Call Authentication” and “Encryption”, which are all part of the standard DECT protocol.
This Micro Tutorial will show you how to maximize your wireless card to its maximum capability. This will be demonstrated using Intel(R) Centrino(R) Wireless-N 2230 wireless card on Windows 8 operating system.
Viewers will learn how to connect to a wireless network using the network security key. They will also learn how to access the IP address and DNS server for connections that must be done manually. After setting up a router, find the network security…

777 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