I used Serial port communication using c#.net and AT commands for communicating with the modem. ..Its working perfectly for me.I can send and receive sms using this … You can download ,distribute and modify this code to meet your requirements. If u prefer using OZeki(SMS Gateway software) ,here is the tutorial for using those kind of stuffs
Before reading this tutorial,you may consider reading my previous articles
I will sum up the method which i have implemented
1.Take message from User
2.Convert it to PDU format
3.Connect the mobile using the serial port.
4.Send the message in Pdu format to the mobile using AT Commands(Read previous article about AT COmmands)
1.Connect the mobile using the serial port.
2.Read SMS from mobile using AT COmmands(Read previous article about AT COmmands)
3.Extract the message from PDU format
The process of reading sms from mobile do have limitations.Nokia phones normally does not allow to read its phone memory due to security reasons.So it workks only with Sony Erricson handsets.
Okiee..lets move on to the source code..It contains mainly 3 classes
This class is responsible for sending and receiving sms.Separate functions are written inside this class to send,receive and to estab ish connection before sending.
This class converts the message in text format to pdu format which can be recognised by mobiles.If you want to know what exactly is pdu format,you may consider reading my previous article
This class extracts message from PDU format into human readable text format.
How to use this class?
Hope you know the port in which you connected your mobile.Please change the port specified in the class SMSCOMMS.cs
You can invoke these classes in the following format
SendSMS obj = new SendSMS();
You can Receive SMS in the following format
ReceiveSMS obj = new ReceiveSMS();
The reccieved message will be avalable in the array messageDetails
messageDetails = Message Centre Number
messageDetails = Sender Number
messageDetails = Message
Please comment onÃ‚Â if you the code is not working for you or incase you need more clarifications