473,406 Members | 2,894 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

AT Commands For Vb.Net ASp.net To Send SMS Using GSM MODEM

Hi I am Developing web application in asp.net 4.0 (vb.NET)
I am using Sim900A GSM Modem to Send SMS using AT Command from VB.NET Below is my code but it does not work
whats wrong with the code

Expand|Select|Wrap|Line Numbers
  1. Dim ph_no As String
  2. ph_no = Char.ConvertFromUtf32(34) + txtadphonenorec.Text + Char.ConvertFromUtf32(34)
  3.  
  4. SP.Write("AT")
  5. SP.Write("AT+CMGF=1" & vbCrLf)
  6. SP.Write("AT+CMGS=" & ph_no & "" & vbCrLf)
  7. SP.Write(txtmsg.Text + Char.ConvertFromUtf32(26))
  8. Response.Write("Send")
  9.  
Please Help
Nov 30 '15 #1
5 3846
Luk3r
300 256MB
What error are you getting? I would start by changing line 4 to this
Expand|Select|Wrap|Line Numbers
  1. SP.Write("AT" & vbCrLf)
Nov 30 '15 #2
i tried your way but still it doesn't work
I am not getting any error but message is not getting sent.
When i try AT commands from hyper terminal it works
Plz help
Nov 30 '15 #3
Luk3r
300 256MB
If no errors, then I'm going to assume that the phone number syntax is wrong. I would suggest trying something like this on line 6:
Expand|Select|Wrap|Line Numbers
  1. SP.Write("AT+CMGS=15554443333"& vbCrLf)
Where 1555444333 represents a 10 digit phone number (1-555-444-3333) and you should replace what I've written with the phone number you are trying to send a text message to.
Nov 30 '15 #4
I tried Your way but still it doesn't work Luk3r
From hyper terminal mobile number in double quotes works.
But not from the code
Dec 1 '15 #5
Does code changes if GSM modem is connected to USB Port
Dec 1 '15 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Ashish | last post by:
Hi, I was trying to make a out going call through the voice modem, play a audio file and disconnect. With the XTAPI implementation of the JTAPI I am able to do it with an analog phone line. The...
0
by: A | last post by:
I need to send "AT" Commands to a GSM Modem that is connected to my local machine vi a USB port. How is this done? Is there an interface in .NET that allows communicating to the USB Port? Sample...
3
by: SenthilVel | last post by:
how to send message using net send in c#??
2
vijaydiwakar
by: vijaydiwakar | last post by:
Hi, to all I like to record the call with the help of TAPI or Mscomm ctrl on modem. If any one have the ans then pls give it me with sample code
2
by: hmdz | last post by:
I am currently working on an application in c# that doesn't trust the internet for its communication. Our company needs this software to connect to another computer through modem and then send and...
1
by: bhrugu | last post by:
HI, all I am new to modem programming using vc++. I have created two app. one for sending file and other is receiveing that. when i use this app. as our internal extension number(EPBX) such as 577...
1
by: apple sauce | last post by:
laptop runs vista. my isp is cox. modem is combination internet/phone jack modem by arris. my router is cisco. my laptop was connected to the modem and it would not access the internet. finally...
0
by: tawanda diza | last post by:
Hie Team, I am currently develeping an application for windows mobile. I am using C#2008 for this. I am sending and receiving messages to and from a server via GPRS. At the moment i am...
1
by: skavinkar | last post by:
Can we remove the limitation on data send using JSONP. Below is my code. What i am trying to do is to pass 3000 characters(actuallly a image which is converted to base64 data) at a time to...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.