 |
|
 |
hi
your code is not working with windows mobile. Can you send me the code for sending and receiving sms with windows mobile.
My id is shahid241@hotmail.com
Thanks
Shahid
|
|
|
|
 |
|
 |
helo sir, i getting problem with my codding say that
"Argument not specified for parameter 'COMMPORT' of 'Public Sub New(ByRef COMMPORT As String)"
for this codding
Imports System
Imports System.Threading
Imports System.ComponentModel
Imports System.IO.Ports
Public Class Form2
Dim smsengine As New smscomms
Dim COMMPORT As String
Public Class smscomms
Private WithEvents SMSPort As SerialPort
Private SMSThread As Thread
Private ReadThread As Thread
Shared _Continue As Boolean = False
Shared _ContSMS As Boolean = False
Private _Wait As Boolean = False
Shared _ReadPort As Boolean = False
Public Event Sending(ByVal Done As Boolean)
Public Event DataReceived(ByVal Message As String)
Public Sub New(ByRef COMMPORT As String)
'initialize all values
SMSPort = New SerialPort
With SMSPort
.PortName = COMMPORT
.BaudRate = 9600
.Parity = Parity.None
.DataBits = 8
.StopBits = StopBits.One
.Handshake = Handshake.RequestToSend
.DtrEnable = True
.RtsEnable = True
.NewLine = vbCrLf
End With
End Sub
Public Function SMSsetting() As Boolean
If SMSPort.IsOpen = True Then
'sending AT commands
SMSPort.WriteLine("AT")
SMSPort.WriteLine("AT+CMGF=1" & vbCrLf) 'set command message format to text mode(1)
SMSPort.WriteLine("AT+CSMP=17,167,0,0" & vbCrLf) 'set the parameter
SMSPort.WriteLine("AT+CNMI=1,1,2,0,0" & vbCrLf) 'set the indicator parameter
SMSPort.WriteLine("AT+CMGD=1,4" & vbCrLf) 'delete sms inbox
MessageBox.Show("Connect")
SMSPort.Close()
End If
End Function
Public Sub Open()
If Not (SMSPort.IsOpen = True) Then
SMSPort.Open()
End If
End Sub
|
|
|
|
 |
|
 |
Dear,
Using above code, message sent successfully to recipient but in message only ??? displays instead of my actual message string.
|
|
|
|
 |
|
 |
first of all thanx to share this code.but i m using samsung champ mobile & i have tried this app. for sending sms but it did not work.so plz give me solution on this as fast as possible.morever what is the reason behind the thing of writing com2 if it is com1?
|
|
|
|
 |
|
 |
how to set AT commands???????????
|
|
|
|
 |
|
 |
It’s Can not’s works on Samsung Mobile Galaxy 551, there is any other setting for to do? & how I can send SMS using Samsung Mobile please H elp... Thank you
|
|
|
|
 |
|
 |
Same problem it is not working with samsung galaxy ace mobile
It’s Can not’s works on Samsung Mobile Galaxy 551, there is any other setting for to do? & how I can send SMS using Samsung Mobile please HConfused | elp... Thank you
|
|
|
|
 |
|
 |
thanks what about sending an sms to multiple recepients e.g whos numbers are stored in a database
|
|
|
|
 |
|
 |
<pre></pre> I used this code , i connected my phone and asigned com port also..it shows message also that :send but actually message is not sending... plz help me if i am dng any mistake... thanks surbhi
|
|
|
|
 |
|
 |
Though i set propert COM port value and baud rate, the application freezes. Also code is wrong that you must set Modem port which is DIFFERENT from device port that can be seen either from device manager or from control panel (phone and modem options).
|
|
|
|
 |
|
|
 |
|
 |
i use nokia 3110 classic ,the code works well,BUT the receiver never receives the msg ples. help me how can i sent msg my mail- pkumar.bdc@gmail.com
|
|
|
|
 |
|
 |
Please help me. because i can't identify how does the coding given below is working.I can't find where the data can be taken and how it can be sent.
SMSPort.WriteLine("AT+CSCA=""+919869099994""" & vbCrLf) 'set service center address (which varies for service providers (idea, airtel))
SMSPort.WriteLine("AT+CMGS= + TextBox1.text + " & vbCrLf) ' enter the mobile number whom you want to send the SMS
_ContSMS = False
SMSPort.WriteLine("+ TextBox1.text +" & vbCrLf & Chr(26)) 'SMS sending
MessageBox.Show(":send")
|
|
|
|
 |
|
 |
I think win7 denied ports against any type of I/O function. As i connect my modem to PC i can find modem by my codes and then after a few seconds it's denied. help me please about this.
Thanks a lot all of you codeproject's guys
|
|
|
|
 |
|
 |
first of all thank you for sharing your knowledge. i was trying out your code and i am getting an error that says port is in use.let me explain my situation. i have a 3g modem(ZTE proprietary usb modem) with a sim card. this modem is connecting using port 18 so i changed your code to initialise port 18.i set up my modem and connected and its showing me that it is connected. also i changed your code to refelct the message center on the sim card. then i try to run the application and i am running into the error when i try to connect that says the port is already in use. if i disconnect my modem i dont get that error upon connecting but then sending the sms doesnt work.nothing happens at all. can you please help me.
|
|
|
|
 |
|
 |
By any chance, do you know how to send sms through modile broadband using ASP.NET? Thanks
|
|
|
|
 |
|
 |
i use photon+ via usb,its com port is COM4,as per you,after changing the com port to COM5,the code doesn't work,without changing the com port,the code works well,BUT the receiver never receives the msg sent
|
|
|
|
 |
|
|
 |
|
 |
code shows msg :send but receiver never recvs msg...what to do...............???????????????????????????????????? plz help if any one have done this plz EMail me on subhu.ite@gmail.com
|
|
|
|
 |
|
 |
hi i am in chennai. i use bsnl broadband, is it possible to send sms through c # application using bsnl broadband . i also tryed ur project . its fine . but it will not work for me . can you plz plz guide me . i need urgent . plz revet me as soon as possible . my mail-id is hema12_latha@yahoo.com you can send process to my mail also ...
|
|
|
|
 |
|
 |
hello;
ı need help for my final project whhich is about data transfer with Gsm modem;
my question is how can ı connect gsm modem and my circuit;my project is; if temperature increase until 40 degree;my circuit will send me sms;ı use pic basic for my pic and ı know that ı need to use at commands for sending data with gsm modem to my mobile phone.how can ı do that?plz help me about this problem..
|
|
|
|
 |
|
 |
Dear Sir,
i am trying this code but it gives the output send but unfortunately message is not send.
please help me
|
|
|
|
 |
|
|
 |
|
|
 |
|
 |
hi i need to write a program making calls directly with At comands without using hyper terminal or any program i need an urgent help about how to use that codes exactly i appreciate any help thnx...
|
|
|
|
 |