| | |
Receive SMS through GSM Modem
![]() |
•
•
Join Date: Feb 2008
Posts: 6
Reputation:
Solved Threads: 0
Hello Friends,
I am trying this code to receive SMS through my GSM Modem but I just get this:
in the text2 box
Please help
Thanking u all in advance.
I am trying this code to receive SMS through my GSM Modem but I just get this:
•
•
•
•
AT+CMGL="ALL"
OK
Please help
Visual Basic 4 / 5 / 6 Syntax (Toggle Plain Text)
Private Sub Command2_Click() Dim buffer If MSComm1.PortOpen = True Then MSComm1.PortOpen = False With MSComm1 .CommPort = 3 .Settings = "9600,N,8,1" .InputLen = 0 .Handshaking = comNone .PortOpen = True End With MSComm1.Output = "AT" & vbCrLf Do DoEvents buffer = MSComm1.Input Loop Until InStr(buffer, "OK") buffer = "" MSComm1.Output = "AT+CMGF=1" & vbCrLf Do DoEvents buffer = MSComm1.Input Loop Until InStr(buffer, "OK") buffer = "" MSComm1.Output = "AT+CMGL=" & Chr(34) & "ALL" & Chr(34) & vbCrLf Do DoEvents buffer = buffer & MSComm1.Input Loop Until InStr(buffer, "OK") Text2.Text = buffer End Sub
Thanking u all in advance.
![]() |
Similar Threads
- Send & Receive SMS Via mobile Phone from PC (Visual Basic 4 / 5 / 6)
- SMS using gsm modem (VB.NET)
- SMS gateway Ozeki? (ASP.NET)
- Receive/read data from gsm modem in vb.net (VB.NET)
- How do i send and receive an SMS using VB (Visual Basic 4 / 5 / 6)
- How to send sms from computer to mobile phone? (C++)
- Sending and Receiving SMS using a GSM modem (Visual Basic 4 / 5 / 6)
- sms (VB.NET)
- sms through pc (Visual Basic 4 / 5 / 6)
Other Threads in the Visual Basic 4 / 5 / 6 Forum
- Previous Thread: Extracting or Filtering in Matlab
- Next Thread: datagrid to excel sheet
| Thread Tools | Search this Thread |
* 6 429 2007 access activex add age application basic beginner birth bmp calculator cd cells.find click client code college component connection connectionproblemusingvb6usingoledb copy creat ctrl+f data database datareport date delete dissertations dissertationthesis dissertationtopic edit error excel excelmacro file filename form hardware header iamthwee image inboxinvb internetfiledownload keypress label listbox listview liveperson login looping machine microsoft movingranges number objectinsert open oracle password prime program prompt range-objects readfile reading record refresh remotesqlserverdatabase report save search sendbyte sites sort sql sql2008 sqlserver subroutine tags textbox time urldownloadtofile vb vb6 vb6.0 vba visual visualbasic visualbasic6 web window windows





