DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: [VB6}Recieving & Extracting SMS from Gsm modem

  1. #1
    Join Date
    Jun 2007

    [VB6}Recieving & Extracting SMS from Gsm modem

    Hi, i'm currently on a project about Computer connected to gsm modem and phone.

    i need to recieve the sms from gsm modem and extract out to my GUI using VB6

    I tot of using the 'Pulling' or 'Interrupt' method but both i also cannot use due to wrong codes.

    the wrong codes is shown below. hope someone can edit or provide a better code


    If Instr(MSComm1.InBufferCount, ">") >= 1 Then
    MSComm1.Output = "AT+CMGF=" & "msgnum" & vbCr
    A = 0
    A = A + 1
    C = MSComm1.Input
    ArrivedMsg.Text = C
    If A = 2000 Then
    Exit Do
    End If
    Loop Until InStr(C,">")
    End If


    Select Case MSComm1.CommEvent
    Case comEvRecieve
    If(MSComm1.InBufferCount) >= 2 Then
    MSComm1.Input = "AT+CMGR=" & "msgnum" & vbCr
    C = MSComm1.Input
    ArrivedMsg.Text = C
    End If
    End Select

    i'm super lousy at receiving part and currently keep looking thru sample to get better. pls someone out there help urgent thx =)

  2. #2
    Join Date
    Aug 2004
    Orange, California
    Just reciently, last month I think, there was a similar thread on SMS. Lots of code examples to look at, here is the thread:

  3. #3
    Join Date
    Jun 2007
    thx Ron Weller =) .
    hope to find more pros assisting me =D .

Similar Threads

  1. send long sms via gsm modem
    By swy456 in forum Mobile
    Replies: 15
    Last Post: 06-13-2018, 03:54 AM
  2. Receive sms by GSM modem to show in PC
    By nigege in forum VB Classic
    Replies: 12
    Last Post: 09-05-2008, 10:29 AM
  3. gsm modem response
    By azy_777 in forum Mobile
    Replies: 1
    Last Post: 05-03-2007, 11:07 AM
  4. Replies: 1
    Last Post: 01-24-2007, 01:45 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
Latest Articles
Questions? Contact us.
Web Development
Latest Tips
Open Source

   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center