-
Dec 6th, 2019, 01:44 AM
#1
Thread Starter
New Member
How to send message using GSM from VB6
Private Sub Command1_Click()
On Error Resume Next
MSComm1.CommPort = 9
MSComm1.Settings = "9600,N,8,1"
MSComm1.Handshaking = comRTS
MSComm1.RTSEnable = True
MSComm1.DTREnable = True
MSComm1.RThreshold = 1
MSComm1.SThreshold = 1
MSComm1.InputMode = comInputModeText
MSComm1.InputLen = 0
MSComm1.PortOpen = True
MSComm1.Output = "AT" & vbCrLf
MSComm1.Output = "AT+CMGF=1" & vbCrLf
MSComm1.Output = "AT+CMGS=" '& Chr(34) & Trim(Text1.Text) & Chr(34) & vbCrLf
MSComm1.Output = Mid(Text2.Text, 1, 160) & Chr(26)
MSComm1.PortOpen = False
MsgBox "Successfully send Msg "
End Sub
-
Dec 6th, 2019, 06:14 AM
#2
Re: How to send message using GSM from VB6
does that code have anything to do with GSM?
do you have GSM modem?
there have been many threads about sending text messages in this forum, most seem to use some web interface
i do my best to test code works before i post it, but sometimes am unable to do so for some reason, and usually say so if this is the case.
Note code snippets posted are just that and do not include error handling that is required in real world applications, but avoid On Error Resume Next
dim all variables as required as often i have done so elsewhere in my code but only posted the relevant part
come back and mark your original post as resolved if your problem is fixed
pete
-
Dec 6th, 2019, 06:23 AM
#3
Addicted Member
Re: How to send message using GSM from VB6
The link below has VB6 SMS Source Samples;
http://www.scampers.org/steve/sms/samples.htm
Joe
-
Dec 6th, 2019, 10:21 AM
#4
Re: How to send message using GSM from VB6
Try this : https://sindhitutorials.com/blog/gsm...s-android-app/
Seems very promising, tested in a few minutes seems working
-
Dec 6th, 2019, 07:07 PM
#5
Re: How to send message using GSM from VB6
In Australia ALL new smart phones use 4G (aka LTE I think).
Australia still has 3G, and phones can revert to that (EG when I call my friend, both of our phones revert to 3G whilst we are on the call)
I just googled, and still could not find an answer to this question -
Is 4G GSM ?
-
Dec 6th, 2019, 10:50 PM
#6
Thread Starter
New Member
Re: How to send message using GSM from VB6
Originally Posted by westconn1
does that code have anything to do with GSM?
do you have GSM modem?
there have been many threads about sending text messages in this forum, most seem to use some web interface
it is SIM300Z GSM MODULE
-
Dec 6th, 2019, 10:51 PM
#7
Thread Starter
New Member
Re: How to send message using GSM from VB6
Originally Posted by westconn1
does that code have anything to do with GSM?
do you have GSM modem?
there have been many threads about sending text messages in this forum, most seem to use some web interface
it is SIM300Z GSM MODULE
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|