send incomming msg (SMS) to VB


Closed Thread
Results 1 to 20 of 20

Hybrid View

  1. #1
    Join Date
    Feb 2006
    Location
    johor,Malaysia
    Posts
    57


    Did you find this post helpful? Yes | No

    Default

    hello
    charudatt

    i use this code for read the msg and serperate the msg...

    Private Sub Command1_Click()
    Dim buffer$
    DIM newMsg As String, MSG As String

    MSComm1.Output = "AT+CMGF=1" + Chr(13)

    Do
    DoEvents
    buffer$ = buffer$ & MSComm1.Input
    Loop Until InStr(buffer$, "OK")
    Text1.Text = Text1.Text & vbCr & buffer$
    buffer$ = ""
    MSComm1.Output = "AT+CMGR=1" + Chr(13)

    Do
    DoEvents
    buffer$ = buffer$ & MSComm1.Input
    Loop Until InStr(buffer$, "OK")
    Text1.Text = Text2.Text & vbCr & buffer$
    Text2.Text = buffer$
    buffer$ = ""


    newMsg = Text2.Text
    newMsg = Right(newMsg, Len(newMsg) - 51) 'SKIP 51 character

    MSG = Left(newMsg, 100) 'NO 100 DEPEND YOUR MSG LENGTH,IF DONT KNOW U CAN PUT MORE THAN 100

    newMsg = newMsg & "MESSAGE =" & MSG & vbCrLf

    MSComm1.PortOpen = False
    End Sub



    Private Sub Form_Load()
    MSComm1.CommPort = 1
    MSComm1.Settings = "57600,n,8,1"
    MSComm1.PortOpen = True
    MSComm1.Handshaking = comNone

    End Sub

    i hope help u abit.
    but i still problem for read incomming msg.. i still study now

  2. #2
    Join Date
    Sep 2003
    Location
    INDIA
    Posts
    161


    Did you find this post helpful? Yes | No

    Default Thank you

    Thank you. But my idea is to read a incoming SMS using VB. This includes the following steps.

    (from cell phone): +CMTI: "ME",27
    (from computer): at+cmgr=27
    (from cell phone): +CMGR: "REC UNREAD","+15551234567","John Doe","05/10/18,23:21:45-20"
    Hello World

    This is simple using PIC BASIC Pro but I am not sure how to do this in VB6
    OK step one has definate characters to trap as I am going to keep my SMS's below 10
    Step 2 Is simple as I can just issue a command using VB.
    Step 3 is a bit challengeing as I am interested in only "Hello World"

    Any help. Are there any free ActiveX/OCX for receiving SMS for VB6

    regards
    Charudatt

    an after thought : should i be trapping a carriage return as the EOM (End Of Message) marker ?
    Last edited by charudatt; - 15th April 2006 at 16:51.

  3. #3
    Join Date
    Feb 2006
    Location
    johor,Malaysia
    Posts
    57


    Did you find this post helpful? Yes | No

    Default

    hello
    charudatt

    u say simple using PIC BASIC Pro for read incomming msg.
    can u share it..
    i want send and read incomming msg.. using pic

  4. #4
    Join Date
    Sep 2003
    Location
    INDIA
    Posts
    161


    Did you find this post helpful? Yes | No

    Default

    OK I shall share it. Give me a day, shall format the text and share it with you. Right now its just small routines.

    regards
    Charudatt

  5. #5
    Join Date
    Sep 2003
    Location
    INDIA
    Posts
    161


    Did you find this post helpful? Yes | No

    Default Sms Relay Control

    Hi , Hello,

    I have shared my SMS relay control code with all in the Code Example section.
    http://www.picbasic.co.uk/forum/show...9977#post19977

    regards

  6. #6
    Join Date
    Feb 2006
    Location
    johor,Malaysia
    Posts
    57


    Did you find this post helpful? Yes | No

    Default

    Hi, hello..
    thankQ
    last night i success read sms using Vb..
    u want the code..

  7. #7
    Join Date
    Sep 2003
    Location
    INDIA
    Posts
    161


    Did you find this post helpful? Yes | No

    Default Yes, please share !

    Yes I would love to go thru it.

    regards.

Similar Threads

  1. Active low input?
    By CosMecc in forum mel PIC BASIC Pro
    Replies: 14
    Last Post: - 8th August 2010, 20:31
  2. Please send me a SMS program
    By hjcool in forum GSM
    Replies: 7
    Last Post: - 17th June 2009, 10:33
  3. how to send and receive sms using vb?
    By shyhigh2002 in forum Off Topic
    Replies: 0
    Last Post: - 1st April 2009, 09:18
  4. Replies: 0
    Last Post: - 1st September 2008, 07:03
  5. sms send sht11 pic16f876 nokia 6210
    By elektoro2009 in forum GSM
    Replies: 11
    Last Post: - 9th June 2008, 08:57

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts