[VB6}Recieving & Extracting SMS from Gsm modem


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
    Posts
    1

    [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

    --pulling--

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

    ---Interupt---

    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
    Location
    Orange, California
    Posts
    1,263
    Just reciently, last month I think, there was a similar thread on SMS. Lots of code examples to look at, here is the thread:
    http://forums.devx.com/showthread.php?t=161129

  3. #3
    Join Date
    Jun 2007
    Posts
    1
    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: 14
    Last Post: 12-11-2012, 08:41 AM
  2. Receive sms by GSM modem to show in PC
    By nigege in forum VB Classic
    Replies: 12
    Last Post: 09-05-2008, 11:29 AM
  3. gsm modem response
    By azy_777 in forum Mobile
    Replies: 1
    Last Post: 05-03-2007, 12:07 PM
  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
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

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