I have developed a program to send and receive SMS via GSM modem using C# and AT commands. The only issue remains is that I want to fire the send SMS function as a reply as soon as the SMS is received on the GSM modem. I don't want to use loops or timers to trigger the function. The function should be triggered as soon as the SMS is received. Any suggestions??
Salman FarooqSalman Farooq
Is this question similar to what you get asked at work? Learn more about asking and sharing private information with your coworkers using Stack Overflow for Teams.
Browse other questions tagged c#gsm or ask your own question.
Hi everyone,I am developing a ticket reservation application for mobile users. Basically, the mobile user will have in hisher mobile phone this application which helps himher to book a flight. And once heshe finishes, an SMS message is sent to a GSM modem(with a SIM card on it) that is connected to a database. The database searches if the required flight is available to be booked or not. Then it will accordingly send an SMS message back to the mobile phone over that GSM modem. I have developed an application that runs on the mobile phone using J2ME. And it works fine. However, I am having a problem with how to receive and send back and forth SMS messages over GSM modem.
I am almost finished with the database but, as i mentioned previously, the problem is how to interface the database with the mobile phone throu SMS messages over GSM modem.
can you please help me?
I am really looking for your replies.
Thank you for having time to read this
Best regards.
I have been trying to send an SMS using the code below. The code sends an SMS through a GSM modem that is attached to my system. I have located the COM port correctly. But still the message isn't going. Can anyone find what went wrong? Here is my code.
![How to send and receive sms using gsm modem in c 1 How to send and receive sms using gsm modem in c 1](/uploads/1/2/3/7/123700090/294264422.jpg)
The thing is I don't get any error or exception. But still SMS isn't going from the modem.
SparrowSparrow
1002 gold badges3 silver badges15 bronze badges
How To Send And Receive Sms Using Gsm Modem In C 1
3 Answers
Agent_SpockAgent_Spock
4261 gold badge6 silver badges29 bronze badges
Nayoon CoorayNayoon Cooray
Luzan Baral
2,2582 gold badges22 silver badges59 bronze badges
Asad ShafiqueAsad Shafique
Not the answer you're looking for? Browse other questions tagged c#asp.netsms or ask your own question.
Hi everyone,I am developing a ticket reservation application for mobile users. Basically, the mobile user will have in hisher mobile phone this application which helps himher to book a flight. And once heshe finishes, an SMS message is sent to a GSM modem(with a SIM card on it) that is connected to a database. The database searches if the required flight is available to be booked or not. Then it will accordingly send an SMS message back to the mobile phone over that GSM modem. I have developed an application that runs on the mobile phone using J2ME. And it works fine. However, I am having a problem with how to receive and send back and forth SMS messages over GSM modem.
I am almost finished with the database but, as i mentioned previously, the problem is how to interface the database with the mobile phone throu SMS messages over GSM modem.
can you please help me?
I am really looking for your replies.
Thank you for having time to read this
![Gsm Gsm](/uploads/1/2/3/7/123700090/991638348.jpg)
Best regards.
I need to create an application in C#.NET 2008 environment. This application is supposed to trigger SMS sending based on certain scenarios and conditions that are sensed & trapped by a rule execution / work flow mechanism that would be built as a part of this application. Besides this, I need to receive SMS and respond based on the command read from the text.
Can I use any GSM modem for doing this?
If so, please explain how to interface and send & receive SMS using this.
I need to have my application generic enough so that it can work with any make of GSM modem.