Hi Everyone,

I Need a simple project which is developed in Microsoft Visual Studio 2005 in VB.net the project features are

1. I have to send multiple SMS from a mobile device connected through a USB.
2. I have to receive SMS from a mobile device and parse it and store it into various text file.

Please help.. it will be better if any of you can upload the project with solution.

Thanks

Dani AI

Generated

A practical, learning-focused approach for : treat the USB phone/modem as a virtual COM port and drive it with AT commands from VB.NET's System.IO.Ports.SerialPort. Start in text mode (AT+CMGF=1) for simplicity; switch to PDU (AT+CMGF=0) when concatenation or UCS‑2/unicode decoding is required. Configure unsolicited notifications (AT+CNMI) so incoming messages are reported immediately, parse the modem replies to extract sender/timestamp/body, and persist each record to disk (use UTF-8 to avoid encoding loss).

Steps to implement (minimal checklist):

  1. Verify the device appears as COMx in Device Manager and install the vendor driver.
  2. Initialize SerialPort with the device baud (common values: 9600/115200), 8,N,1, no handshake.
  3. Probe with AT; then set AT+CMGF=1 and a CNMI variant supported by the modem to receive new-message notices.
  4. Use the DataReceived event to detect +CMTI: "SM",<index>; call AT+CMGR=<index> to fetch the message.
  5. Parse the +CMGR: reply for sender, timestamp and body; append to a text file with proper locking and UTF-8 encoding.
  6. Optionally delete processed messages (AT+CMGD) to prevent re-processing.

Example VB.NET sketch:

Imports System.IO.Ports
Imports System.Text

Dim WithEvents serialPort As New SerialPort()

Sub InitModem(portName As String)
    serialPort.PortName = portName
    serialPort.BaudRate = 115200
    serialPort.Parity = Parity.None
    serialPort.DataBits = 8
    serialPort.StopBits = StopBits.One
    serialPort.Handshake = Handshake.None
    serialPort.Encoding = Encoding.UTF8
    serialPort.Open()
    SendAT("AT")
    SendAT("AT+CMGF=1")
    SendAT("AT+CNMI=2,1,0,0,0")
End Sub

Sub SendAT(cmd As String)
    If serialPort IsNot Nothing AndAlso serialPort.IsOpen Then
        serialPort.Write(cmd & vbCrLf)
    End If
End Sub

Troubleshooting and practical notes: PC‑suite software often seizes the modem—disable it. Some phones require vendor SDKs instead of AT; modern smartphones may not expose a COM port. PDU decoding is needed for non-Latin alphabets and multipart messages. Test first with a terminal (PuTTY/HyperTerminal) to validate AT command behavior before coding. Thread-safety: DataReceived runs on a background thread, so UI updates must use Invoke and file writes should be locked. The CodeProject pointer from and the Java approach mentioned by are complementary—building this step‑by‑step yields the best learning outcome (vs simply receiving a finished project as discussed earlier by , and ).

Recommended Answers

All 7 Replies

Please help.. it will be better if any of you can upload the project with solution.

Thanks

Better for whom? What do you think you'll learn from that?

I am ready to upload.

How much you are ready to pay me ?

I am ready to upload.

How much you are ready to pay me ?

The aim of this forum is
Learning by others
Teach others

Not

Earning Money

tqmd1, read the entire thread and re-evaluate that post.

sayeedbd is just wanting someone to hand him a completed project. That is a work for hire.

Look friends,
I am not wanting any one just do this job for me or else. I know how to work with VB6 but now I wish to develop all my developed program redevelop in VB.Net 2008. I just want to learn. I am not going to develop for sale or else. If you can then help me or I can find my own way by reading books but if you can help then I can save my time and money also. Thanks for commenting on my thread. Good luck.

Who is administrator of this forum.

Any way you can create your own application in JAVA. you can even send and receive sms from java you don't need to purchase any service. you can do it by using gsm modem or even your mobile phone.

Check this out and download it by searching from google.
JMS
JavaSMSAPI

commented: This VB section and has nothing to do with Java. -2

Hi,

You can find some explanation, how to send SMS with VB.Net,

You can find some more by Uncle Google :)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.