Click here to Skip to main content
15,890,336 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Dear, i am sending sms through visual basic2008 by Serialport1.The code that i am using for sending sms is
VB
Try
           If SerialPort1.IsOpen Then
               With SerialPort1
                   .Write("AT" & vbCrLf)
                   .Write("AT+CMGF=1" & vbCrLf)
                   .Write("AT+CMGS=" & Chr(34) & Label1.Text & Chr(34) & vbCrLf)
                   .Write(RichTextBox1.Text & Chr(26))
                   'Put some code in here to send the SMS
                   Label3.Text = "sending SMS to " + Label1.Text
               End With
           Else
               MsgBox("Sorry ! there is some error in your computer port")
           End If
       Catch ex As Exception
           MsgBox(ex.Message)
       End Try

And this code is working Fine.
I am using Nokiac210 mobile as my modem and want to get modem information such as Modem Company name, modem(mobile)IMEI number,Sim information,Battery status etc.But i have no idea about of this.Please help me for solving my question.
Posted
Updated 31-May-13 17:25pm
v3
Comments
[no name] 31-May-13 21:15pm    
You will probably have to consult the modem documentation to see what AT commands your modem support for this information. Also see http://michaelgellis.tripod.com/modem.html
Sergey Alexandrovich Kryukov 1-Jun-13 22:15pm    
Please don't re-post. Use "Improve question".
—SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900